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
153 # Specify the g++ header file directory
154 AC_ARG_WITH(gxx-include-dir,
155 [ --with-gxx-include-dir=DIR
156 specifies directory to put g++ header files.],
157 [case "${withval}" in
158 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
160 *) gxx_include_dir=$with_gxx_include_dir ;;
163 if test x${gxx_include_dir} = x; then
164 if test x${enable_version_specific_runtime_libs} = xyes; then
165 gxx_include_dir='${libsubdir}/include/g++'
167 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
168 changequote(<<, >>)dnl
169 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
174 # Enable expensive internal checks
175 AC_ARG_ENABLE(checking,
176 [ --enable-checking enable expensive run-time checks.],
177 [case "${enableval}" in
178 yes) AC_DEFINE(ENABLE_CHECKING) ;;
180 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
183 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
185 AC_ARG_ENABLE(cpplib,
186 [ --enable-cpplib use cpplib for the C preprocessor.],
187 if test x$enable_cpplib != xno; then
191 # Link cpplib into the compiler proper, for C/C++/ObjC.
192 AC_ARG_ENABLE(c-cpplib,
193 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
194 (implies --enable-cpplib).],
195 if test x$enable_c_cpplib != xno; then
196 extra_c_objs="${extra_c_objs} libcpp.a"
197 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
198 extra_c_flags=-DUSE_CPPLIB=1
202 # Enable Multibyte Characters for C/C++
203 AC_ARG_ENABLE(c-mbchar,
204 [ --enable-c-mbchar enable multibyte characters for C and C++.],
205 if test x$enable_c_mbchar != xno; then
206 extra_c_flags=-DMULTIBYTE_CHARS=1
209 # Enable Haifa scheduler.
211 [ --enable-haifa use the experimental scheduler.
212 --disable-haifa don't use the experimental scheduler for the
213 targets which normally enable it.])
216 # This is a work in progress...
217 AC_ARG_WITH(fast-fixincludes,
218 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
219 fast_fixinc="$with_fast_fixincludes",
222 # Enable init_priority.
223 AC_ARG_ENABLE(init-priority,
224 [ --enable-init-priority use attributes to assign initialization order
226 --disable-init-priority conform to ISO C++ rules for ordering static objects
227 (i.e. initialized in order of declaration). ],
228 if test x$enable_init_priority != xno; then
229 extra_c_flags=-DUSE_INIT_PRIORITY
233 # Pass with no value to take the default
234 # Pass with a value to specify a thread package
235 AC_ARG_ENABLE(threads,
236 [ --enable-threads enable thread usage for target GCC.
237 --enable-threads=LIB use LIB thread package for target GCC.],
238 if test x$enable_threads = xno; then
243 enable_threads_flag=$enable_threads
244 # Check if a valid thread package
245 case x${enable_threads_flag} in
248 target_thread_file='single'
252 target_thread_file=''
254 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
255 xsolaris | xwin32 | xdce | xvxworks)
256 target_thread_file=$enable_threads_flag
259 echo "$enable_threads is an unknown thread package" 1>&2
264 AC_ARG_ENABLE(objc-gc,
265 [ --enable-objc-gc enable the use of Boehm's garbage collector with
266 the GNU Objective-C runtime.],
267 if [[[ x$enable_objc_gc = xno ]]]; then
274 AC_ARG_ENABLE(java-gc,
275 changequote(<<,>>)dnl
276 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
282 [ --enable-dwarf2 enable DWARF2 debugging as default.],
283 dwarf2="$with_dwarf2",
286 # Determine the host, build, and target systems
289 # Find the native compiler
292 # If the native compiler is GCC, we can enable warnings even in stage1.
293 # That's useful for people building cross-compilers, or just running a
295 if test "x$GCC" = "xyes"; then
296 stage1_warn_cflags='$(WARN_CFLAGS)'
298 stage1_warn_cflags=""
300 AC_SUBST(stage1_warn_cflags)
304 AC_MSG_CHECKING([whether a default assembler was specified])
305 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
306 if test x"$with_gas" = x"no"; then
307 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
309 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
315 AC_MSG_CHECKING([whether a default linker was specified])
316 if test x"${DEFAULT_LINKER+set}" = x"set"; then
317 if test x"$with_gnu_ld" = x"no"; then
318 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
320 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
326 # Find some useful tools
340 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)
342 # Check for thread headers.
343 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
344 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
346 # See if GNAT has been installed
347 AC_CHECK_PROG(gnat, gnatbind, yes, no)
349 # See if the system preprocessor understands the ANSI C preprocessor
350 # stringification operator.
351 AC_MSG_CHECKING(whether cpp understands the stringify operator)
352 AC_CACHE_VAL(gcc_cv_c_have_stringify,
355 char *test = S(foo);],
356 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
357 AC_MSG_RESULT($gcc_cv_c_have_stringify)
358 if test $gcc_cv_c_have_stringify = yes; then
359 AC_DEFINE(HAVE_CPP_STRINGIFY)
362 # Use <inttypes.h> only if it exists,
363 # doesn't clash with <sys/types.h>, and declares intmax_t.
364 AC_MSG_CHECKING(for inttypes.h)
365 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
367 [#include <sys/types.h>
368 #include <inttypes.h>],
370 [gcc_cv_header_inttypes_h=yes],
371 gcc_cv_header_inttypes_h=no)])
372 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
373 if test $gcc_cv_header_inttypes_h = yes; then
374 AC_DEFINE(HAVE_INTTYPES_H)
377 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
378 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
379 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
382 # Make sure wchar_t is available
383 #AC_CHECK_TYPE(wchar_t, unsigned int)
385 GCC_FUNC_VFPRINTF_DOPRNT
389 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
390 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
393 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
394 #include <sys/types.h>
395 #ifdef HAVE_SYS_RESOURCE_H
396 #include <sys/resource.h>
410 build_install_headers_dir=install-headers-tar
415 host_truncate_target=
418 # Decode the host machine, then the target machine.
419 # For the host machine, we save the xm_file variable as host_xm_file;
420 # then we decode the target machine and forget everything else
421 # that came from the host machine.
422 for machine in $build $host $target; do
436 # Set this to force installation and use of collect2.
438 # Set this to override the default target model.
440 # Set this to control which fixincludes program to use.
441 if test x$fast_fixinc != xyes; then
442 fixincludes=fixincludes
443 else fixincludes=fixinc.sh ; fi
444 # Set this to control how the header file directory is installed.
445 install_headers_dir=install-headers-tar
446 # Set this to a non-empty list of args to pass to cpp if the target
447 # wants its .md file passed through cpp.
449 # Set this if directory names should be truncated to 14 characters.
451 # Set this if gdb needs a dir command with `dirname $out_file`
452 gdb_needs_out_file_path=
453 # Set this if the build machine requires executables to have a
456 # Set this to control which thread package will be used.
458 # Reinitialize these from the flag values every loop pass, since some
459 # configure entries modify them.
461 gnu_ld="$gnu_ld_flag"
462 enable_threads=$enable_threads_flag
464 # Set default cpu_type, tm_file and xm_file so it can be updated in
465 # each machine entry.
466 cpu_type=`echo $machine | sed 's/-.*$//'`
502 tm_file=${cpu_type}/${cpu_type}.h
503 xm_file=${cpu_type}/xm-${cpu_type}.h
505 # Set the default macros to define for GNU/Linux systems.
508 xm_defines="HAVE_ATEXIT POSIX BSTRING"
513 # Support site-specific machine types.
515 cpu_type=`echo $machine | sed -e 's/-.*//'`
516 rest=`echo $machine | sed -e "s/$cpu_type-//"`
517 xm_file=${cpu_type}/xm-$rest.h
518 tm_file=${cpu_type}/$rest.h
519 if test -f $srcdir/config/${cpu_type}/x-$rest; \
520 then xmake_file=${cpu_type}/x-$rest; \
523 if test -f $srcdir/config/${cpu_type}/t-$rest; \
524 then tmake_file=${cpu_type}/t-$rest; \
530 a29k-*-bsd* | a29k-*-sym1*)
531 tm_file="${tm_file} a29k/unix.h"
533 xmake_file=a29k/x-unix
536 a29k-*-udi | a29k-*-coff)
537 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
538 tmake_file=a29k/t-a29kbare
541 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
542 tmake_file=a29k/t-vx29k
543 extra_parts="crtbegin.o crtend.o"
544 thread_file='vxworks'
546 a29k-*-*) # Default a29k environment.
549 alpha*-*-linux-gnuecoff*)
550 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
551 target_cpu_default="MASK_GAS"
556 alpha*-*-linux-gnulibc1*)
557 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
558 target_cpu_default="MASK_GAS"
559 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
560 extra_parts="crtbegin.o crtend.o"
561 fixincludes=fixinc.wrap
564 if test x$enable_threads = xyes; then
569 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
570 target_cpu_default="MASK_GAS"
571 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
572 extra_parts="crtbegin.o crtend.o"
574 fixincludes=Makefile.in
576 if test x$enable_threads = xyes; then
581 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
582 target_cpu_default="MASK_GAS"
583 tmake_file="alpha/t-crtbe"
584 extra_parts="crtbegin.o crtend.o"
586 fixincludes=fixinc.wrap
591 if test x$stabs = xyes
593 tm_file="${tm_file} dbx.h"
595 if test x$gas != xyes
597 extra_passes="mips-tfile mips-tdump"
602 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
607 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
610 tm_file="${tm_file} alpha/osf.h"
611 # Some versions of OSF4 (specifically X4.0-9 296.7) have
612 # a broken tar, so we use cpio instead.
613 install_headers_dir=install-headers-cpio
618 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
620 target_cpu_default=MASK_SUPPORT_ARCH
625 tm_file="${tm_file} dbx.h alpha/vxworks.h"
628 extra_passes="mips-tfile mips-tdump"
633 tm_file="${tm_file} alpha/win-nt.h"
634 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
636 xmake_file=winnt/x-winnt
637 extra_host_objs=oldnames.o
638 extra_gcc_objs="spawnv.o oldnames.o"
639 fixincludes=fixinc.winnt
640 if test x$gnu_ld != xyes
642 extra_programs=ld.exe
644 if test x$enable_threads = xyes; then
650 xm_file="${xm_file} alpha/xm-vms.h"
651 tmake_file=alpha/t-vms
652 fixincludes=Makefile.in
655 extra_parts="crtinit.o crtfini.o"
657 arm-*-coff* | armel-*-coff*)
659 tmake_file=arm/t-bare
662 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
664 tm_file=arm/riscix1-1.h
667 arm-*-riscix*) # Acorn RISC machine
670 tm_file=arm/rix-gas.h
674 xmake_file=arm/x-riscix
675 tmake_file=arm/t-riscix
678 arm-semi-aout | armel-semi-aout)
680 tmake_file=arm/t-semi
681 fixincludes=Makefile.in # There is nothing to fix
683 arm-semi-aof | armel-semi-aof)
684 tm_file=arm/semiaof.h
685 tmake_file=arm/t-semiaof
686 fixincludes=Makefile.in # There is nothing to fix
690 xm_file="arm/xm-netbsd.h ${xm_file}"
691 tmake_file="t-netbsd arm/t-netbsd"
692 # On NetBSD, the headers are already okay, except for math.h.
693 fixincludes=fixinc.wrap
695 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
698 tm_file=arm/linux-aout.h
699 tmake_file=arm/t-linux
700 fixincludes=Makefile.in
703 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
704 xm_file=arm/xm-linux.h
708 tm_file=arm/linux-elf26.h
711 tm_file=arm/linux-elf.h
714 tmake_file="t-linux arm/t-linux"
715 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
716 fixincludes=Makefile.in # Nothing to fix
721 tmake_file=arm/t-bare
724 tm_file=arm/ecos-elf.h
728 tm_file=arm/unknown-elf.h
729 tmake_file=arm/t-arm-elf
731 c1-convex-*) # Convex C1
734 fixincludes=Makefile.in
736 c2-convex-*) # Convex C2
739 fixincludes=Makefile.in
744 fixincludes=Makefile.in
749 fixincludes=Makefile.in
752 target_cpu_default=16
754 fixincludes=Makefile.in
760 clipper-intergraph-clix*)
761 tm_file="${tm_file} svr3.h clipper/clix.h"
762 xm_file=clipper/xm-clix.h
763 xmake_file=clipper/x-clix
764 extra_headers=va-clipper.h
765 extra_parts="crtbegin.o crtend.o"
766 install_headers_dir=install-headers-cpio
773 # This hasn't been upgraded to GCC 2.
774 # fx80-alliant-*) # Alliant FX/80
780 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
781 xm_file=pa/xm-papro.h
786 tm_file="${tm_file} pa/pa-osf.h"
788 fixincludes=Makefile.in
791 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
792 xm_file=pa/xm-papro.h
796 tm_file="${tm_file} pa/pa-osf.h"
798 fixincludes=Makefile.in
803 fixincludes=Makefile.in
807 fixincludes=Makefile.in
810 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
811 xm_file=pa/xm-pahpux.h
812 xmake_file=pa/x-pa-hpux
815 tm_file="${tm_file} pa/gas.h"
817 install_headers_dir=install-headers-cpio
821 hppa1.0-*-hpux8.0[0-2]*)
823 tm_file="${tm_file} pa/pa-hpux.h"
824 xm_file=pa/xm-pahpux.h
825 xmake_file=pa/x-pa-hpux
828 tm_file="${tm_file} pa/pa-gas.h"
830 tm_file="pa/pa-oldas.h ${tm_file}"
832 install_headers_dir=install-headers-cpio
836 hppa1.1-*-hpux8.0[0-2]*)
839 tm_file="${tm_file} pa/pa-hpux.h"
840 xm_file=pa/xm-pahpux.h
841 xmake_file=pa/x-pa-hpux
844 tm_file="${tm_file} pa/pa-gas.h"
846 tm_file="pa/pa-oldas.h ${tm_file}"
848 install_headers_dir=install-headers-cpio
853 tm_file="${tm_file} pa/pa-hpux.h"
854 xm_file=pa/xm-pahpux.h
855 xmake_file=pa/x-pa-hpux
858 tm_file="${tm_file} pa/pa-gas.h"
860 install_headers_dir=install-headers-cpio
864 tm_file="${tm_file} pa/pa-hpux.h"
865 xm_file=pa/xm-pahpux.h
866 xmake_file=pa/x-pa-hpux
869 tm_file="${tm_file} pa/pa-gas.h"
871 install_headers_dir=install-headers-cpio
874 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
876 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
877 xm_file=pa/xm-pahpux.h
878 xmake_file=pa/x-pa-hpux
882 tm_file="${tm_file} pa/pa-gas.h"
884 if test x$enable_threads = x; then
885 enable_threads=$have_pthread_h
887 if test x$enable_threads = xyes; then
889 tmake_file="${tmake_file} pa/t-dce-thr"
891 install_headers_dir=install-headers-cpio
895 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
896 xm_file=pa/xm-pahpux.h
897 xmake_file=pa/x-pa-hpux
901 tm_file="${tm_file} pa/pa-gas.h"
903 if test x$enable_threads = x; then
904 enable_threads=$have_pthread_h
906 if test x$enable_threads = xyes; then
908 tmake_file="${tmake_file} pa/t-dce-thr"
910 install_headers_dir=install-headers-cpio
913 hppa1.1-*-hpux* | hppa2*-*-hpux*)
915 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
916 xm_file=pa/xm-pahpux.h
917 xmake_file=pa/x-pa-hpux
920 tm_file="${tm_file} pa/pa-gas.h"
922 install_headers_dir=install-headers-cpio
926 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
927 xm_file=pa/xm-pahpux.h
928 xmake_file=pa/x-pa-hpux
931 tm_file="${tm_file} pa/pa-gas.h"
933 install_headers_dir=install-headers-cpio
936 hppa1.1-*-hiux* | hppa2*-*-hiux*)
938 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
939 xm_file=pa/xm-pahpux.h
940 xmake_file=pa/x-pa-hpux
943 tm_file="${tm_file} pa/pa-gas.h"
945 install_headers_dir=install-headers-cpio
949 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
950 xm_file=pa/xm-pahpux.h
951 xmake_file=pa/x-pa-hpux
954 tm_file="${tm_file} pa/pa-gas.h"
956 install_headers_dir=install-headers-cpio
962 fixincludes=Makefile.in
967 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
971 tm_file=i386/aix386.h
972 extra_parts="crtbegin.o crtend.o"
973 tmake_file=i386/t-crtstuff
975 tm_file=i386/aix386ng.h
978 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
980 xmake_file=i386/x-aix
983 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
985 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
986 xm_defines="USG POSIX SMALL_ARG_MAX"
987 xmake_file=i386/x-ncr3000
988 if test x$stabs = xyes -a x$gas = xyes
990 tm_file=i386/sysv4gdb.h
994 extra_parts="crtbegin.o crtend.o"
995 tmake_file=i386/t-crtpic
1001 xm_file=i386/xm-next.h
1002 tmake_file=i386/t-next
1003 xmake_file=i386/x-next
1004 extra_objs=nextstep.o
1005 extra_parts="crtbegin.o crtend.o"
1006 if test x$enable_threads = xyes; then
1011 i[34567]86-sequent-bsd*) # 80386 from Sequent
1014 if test x$gas = xyes
1016 tm_file=i386/seq-gas.h
1018 tm_file=i386/sequent.h
1022 i[34567]86-sequent-ptx1*)
1024 xm_defines="USG SVR3"
1025 xmake_file=i386/x-sysv3
1026 tm_file=i386/seq-sysv3.h
1027 tmake_file=i386/t-crtstuff
1028 fixincludes=fixinc.ptx
1029 extra_parts="crtbegin.o crtend.o"
1030 install_headers_dir=install-headers-cpio
1033 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1035 xm_defines="USG SVR3"
1036 xmake_file=i386/x-sysv3
1037 tm_file=i386/seq2-sysv3.h
1038 tmake_file=i386/t-crtstuff
1039 extra_parts="crtbegin.o crtend.o"
1040 fixincludes=fixinc.ptx
1041 install_headers_dir=install-headers-cpio
1044 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1046 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1047 xm_defines="USG POSIX SMALL_ARG_MAX"
1049 tm_file=i386/ptx4-i.h
1051 extra_parts="crtbegin.o crtend.o"
1052 fixincludes=fixinc.ptx
1053 install_headers_dir=install-headers-cpio
1055 i386-sun-sunos*) # Sun i386 roadrunner
1061 i[34567]86-wrs-vxworks*)
1063 tm_file=i386/vxi386.h
1064 tmake_file=i386/t-i386bare
1069 tm_file=i386/i386-aout.h
1070 tmake_file=i386/t-i386bare
1073 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1075 tm_file=i386/bsd386.h
1076 # tmake_file=t-libc-ok
1081 tm_file=i386/386bsd.h
1082 # tmake_file=t-libc-ok
1083 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1087 i[34567]86-*-freebsdelf*)
1089 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1090 # On FreeBSD, the headers are already ok, except for math.h.
1091 fixincludes=fixinc.wrap
1092 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1093 tmake_file=i386/t-freebsd
1099 i[34567]86-*-freebsd*)
1101 tm_file=i386/freebsd.h
1102 # On FreeBSD, the headers are already ok, except for math.h.
1103 fixincludes=fixinc.wrap
1104 tmake_file=i386/t-freebsd
1106 # We are hoping OpenBSD is still close enough to NetBSD that we can
1107 # share the configurations.
1109 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1111 tm_file=i386/netbsd.h
1112 # On NetBSD, the headers are already okay, except for math.h.
1113 fixincludes=fixinc.wrap
1119 tm_file=i386/i386-coff.h
1120 tmake_file=i386/t-i386bare
1123 i[34567]86-*-isc*) # 80386 running ISC system
1125 xm_file="${xm_file} i386/xm-isc.h"
1126 xm_defines="USG SVR3"
1129 i[34567]86-*-isc[34]*)
1131 xmake_file=i386/x-isc3
1134 xmake_file=i386/x-isc
1137 if test x$gas = xyes -a x$stabs = xyes
1139 tm_file=i386/iscdbx.h
1140 tmake_file=i386/t-svr3dbx
1141 extra_parts="svr3.ifile svr3z.ifile"
1143 tm_file=i386/isccoff.h
1144 tmake_file=i386/t-crtstuff
1145 extra_parts="crtbegin.o crtend.o"
1147 install_headers_dir=install-headers-cpio
1150 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1151 changequote([,])dnl # with a.out format using
1153 xmake_file=x-linux-aout
1154 tmake_file="t-linux-aout i386/t-crtstuff"
1155 tm_file=i386/linux-oldld.h
1156 fixincludes=Makefile.in #On Linux, the headers are ok already.
1161 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1162 changequote([,])dnl # with a.out format
1163 xmake_file=x-linux-aout
1164 tmake_file="t-linux-aout i386/t-crtstuff"
1165 tm_file=i386/linux-aout.h
1166 fixincludes=Makefile.in #On Linux, the headers are ok already.
1171 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1172 changequote([,])dnl # with ELF format using the
1173 # GNU/Linux C library 5
1175 tm_file=i386/linux.h
1176 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1177 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1178 fixincludes=Makefile.in #On Linux, the headers are ok already.
1181 if test x$enable_threads = xyes; then
1182 thread_file='single'
1186 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1187 changequote([,])dnl # with ELF format using glibc 2
1188 # aka GNU/Linux C library 6
1190 tm_file=i386/linux.h
1191 tmake_file="t-linux i386/t-crtstuff"
1192 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1193 fixincludes=Makefile.in #On Linux, the headers are ok already.
1196 if test x$enable_threads = xyes; then
1205 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1207 xm_file=i386/xm-go32.h
1209 tmake_file=i386/t-go32
1212 i[34567]86-pc-msdosdjgpp*)
1214 xm_file=i386/xm-go32.h
1216 tmake_file=i386/t-go32
1217 xmake_file=i386/x-go32
1228 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1231 tmake_file=t-libc-ok
1232 fixincludes=Makefile.in
1237 i[34567]86-*-lynxos*)
1239 if test x$gas = xyes
1243 tm_file=i386/lynx-ng.h
1245 xm_file=i386/xm-lynx.h
1246 tmake_file=i386/t-i386bare
1253 # tmake_file=t-libc-ok
1257 i[34567]86-*-osfrose*) # 386 using OSF/rose
1259 if test x$elf = xyes
1261 tm_file=i386/osfelf.h
1264 tm_file=i386/osfrose.h
1267 xm_file="i386/xm-osf.h ${xm_file}"
1268 xmake_file=i386/x-osfrose
1269 tmake_file=i386/t-osf
1270 extra_objs=halfpic.o
1273 i[34567]86-go32-rtems*)
1276 xm_file=i386/xm-go32.h
1277 tm_file=i386/go32-rtems.h
1278 tmake_file="i386/t-go32 t-rtems"
1281 i[34567]86-*-rtemself*)
1284 tm_file=i386/rtemself.h
1285 tmake_file="i386/t-i386bare t-rtems"
1288 i[34567]86-*-rtems*)
1291 tm_file=i386/rtems.h
1292 tmake_file="i386/t-i386bare t-rtems"
1295 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1297 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1298 xm_defines="USG SVR3"
1299 xmake_file=i386/x-sco5
1300 fixincludes=fixinc.sco
1301 install_headers_dir=install-headers-cpio
1303 if test x$gas = xyes
1305 tm_file="i386/sco5gas.h ${tm_file}"
1306 tmake_file=i386/t-sco5gas
1308 tmake_file=i386/t-sco5
1310 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1313 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1315 xm_file="${xm_file} i386/xm-sco.h"
1316 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1317 xmake_file=i386/x-sco4
1318 fixincludes=fixinc.sco
1319 install_headers_dir=install-headers-cpio
1320 if test x$stabs = xyes
1322 tm_file=i386/sco4dbx.h
1323 tmake_file=i386/t-svr3dbx
1324 extra_parts="svr3.ifile svr3z.rfile"
1327 tmake_file=i386/t-crtstuff
1328 extra_parts="crtbegin.o crtend.o"
1333 i[34567]86-*-sco*) # 80386 running SCO system
1335 xm_file=i386/xm-sco.h
1336 xmake_file=i386/x-sco
1337 install_headers_dir=install-headers-cpio
1338 if test x$stabs = xyes
1340 tm_file=i386/scodbx.h
1341 tmake_file=i386/t-svr3dbx
1342 extra_parts="svr3.ifile svr3z.rfile"
1345 extra_parts="crtbegin.o crtend.o"
1346 tmake_file=i386/t-crtstuff
1351 i[34567]86-*-solaris2*)
1353 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1354 xm_defines="USG POSIX SMALL_ARG_MAX"
1355 if test x$stabs = xyes
1357 tm_file=i386/sol2dbg.h
1361 tmake_file=i386/t-sol2
1362 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1368 fixincludes=fixinc.svr4;;
1370 fixincludes=fixinc.wrap;;
1372 if test x$enable_threads = xyes; then
1373 thread_file='solaris'
1377 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1379 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1380 xm_defines="USG POSIX"
1381 tm_file=i386/sysv4.h
1382 if test x$stabs = xyes
1384 tm_file="${tm_file} dbx.h"
1386 tmake_file=i386/t-crtpic
1388 extra_parts="crtbegin.o crtend.o"
1389 fixincludes=fixinc.svr4
1392 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1394 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1395 xm_defines="USG POSIX SMALL_ARG_MAX"
1396 tm_file=i386/sysv4.h
1397 if test x$stabs = xyes
1399 tm_file="${tm_file} dbx.h"
1401 tmake_file=i386/t-crtpic
1403 extra_parts="crtbegin.o crtend.o"
1406 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1408 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1409 xm_defines="USG POSIX"
1411 tmake_file="i386/t-crtpic i386/t-udk"
1413 extra_parts="crtbegin.o crtend.o"
1414 fixincludes="fixinc.svr4"
1417 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1420 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1421 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1422 fixincludes=Makefile.in #Don't do it on OSF/1
1423 if test x$stabs = xyes
1425 tm_file=i386/osf1elfgdb.h
1427 tm_file=i386/osf1elf.h
1429 tmake_file=i386/t-osf1elf
1430 xmake_file=i386/x-osf1elf
1431 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1434 i[34567]86-*-sysv*) # Intel 80386's running system V
1436 xm_defines="USG SVR3"
1437 xmake_file=i386/x-sysv3
1438 if test x$gas = xyes
1440 if test x$stabs = xyes
1442 tm_file=i386/svr3dbx.h
1443 tmake_file=i386/t-svr3dbx
1444 extra_parts="svr3.ifile svr3z.rfile"
1446 tm_file=i386/svr3gas.h
1447 extra_parts="crtbegin.o crtend.o"
1448 tmake_file=i386/t-crtstuff
1451 tm_file=i386/sysv3.h
1452 extra_parts="crtbegin.o crtend.o"
1453 tmake_file=i386/t-crtstuff
1456 i386-*-vsta) # Intel 80386's running VSTa kernel
1457 xm_file="${xm_file} i386/xm-vsta.h"
1459 tmake_file=i386/t-vsta
1460 xmake_file=i386/x-vsta
1465 xm_file="${xm_file} i386/xm-cygwin.h"
1466 tmake_file=i386/t-cygwin
1467 tm_file=i386/win32.h
1468 xmake_file=i386/x-cygwin
1470 fixincludes=Makefile.in
1471 if test x$enable_threads = xyes; then
1477 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1479 xm_file="${xm_file} i386/xm-cygwin.h"
1480 tmake_file=i386/t-cygwin
1481 tm_file=i386/cygwin.h
1482 xmake_file=i386/x-cygwin
1484 fixincludes=Makefile.in
1485 if test x$enable_threads = xyes; then
1491 i[34567]86-*-mingw32*)
1493 tm_file=i386/mingw32.h
1494 xm_file="${xm_file} i386/xm-mingw32.h"
1495 tmake_file="i386/t-cygwin i386/t-mingw32"
1497 xmake_file=i386/x-cygwin
1498 fixincludes=Makefile.in
1499 if test x$enable_threads = xyes; then
1506 *minwg32crt* | *mingw32*)
1507 tm_file="${tm_file} i386/crtdll.h"
1512 i[34567]86-*-winnt3*)
1514 tm_file=i386/win-nt.h
1515 out_file=i386/i386.c
1516 xm_file="xm-winnt.h ${xm_file}"
1517 xmake_file=winnt/x-winnt
1518 tmake_file=i386/t-winnt
1519 extra_host_objs="winnt.o oldnames.o"
1520 extra_gcc_objs="spawnv.o oldnames.o"
1521 fixincludes=fixinc.winnt
1522 if test x$gnu_ld != xyes
1524 extra_programs=ld.exe
1526 if test x$enable_threads = xyes; then
1531 i[34567]86-dg-dgux*)
1533 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1534 xm_defines="USG POSIX"
1535 out_file=i386/dgux.c
1537 tmake_file=i386/t-dgux
1538 xmake_file=i386/x-dgux
1539 fixincludes=fixinc.dgux
1540 install_headers_dir=install-headers-cpio
1542 i860-alliant-*) # Alliant FX/2800
1543 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1544 xm_file="${xm_file}"
1545 xmake_file=i860/x-fx2800
1546 tmake_file=i860/t-fx2800
1547 extra_parts="crtbegin.o crtend.o"
1550 tm_file="${tm_file} i860/bsd.h"
1551 if test x$gas = xyes
1553 tm_file="${tm_file} i860/bsd-gas.h"
1558 tm_file="${tm_file} i860/mach.h"
1559 tmake_file=t-libc-ok
1561 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1562 tm_file="${tm_file} svr3.h i860/paragon.h"
1563 xm_defines="USG SVR3"
1567 tm_file="${tm_file} svr3.h i860/sysv3.h"
1568 xm_defines="USG SVR3"
1569 xmake_file=i860/x-sysv3
1570 extra_parts="crtbegin.o crtend.o"
1573 tm_file="${tm_file} svr4.h i860/sysv4.h"
1574 xm_defines="USG SVR3"
1575 xmake_file=i860/x-sysv4
1577 extra_parts="crtbegin.o crtend.o"
1579 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1580 tm_file="${tm_file} i960/vx960.h"
1581 tmake_file=i960/t-vxworks960
1583 thread_file='vxworks'
1585 i960-wrs-vxworks5* | i960-wrs-vxworks)
1586 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1587 tmake_file=i960/t-vxworks960
1589 thread_file='vxworks'
1592 tm_file="${tm_file} i960/vx960.h"
1593 tmake_file=i960/t-vxworks960
1595 thread_file='vxworks'
1598 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1599 tmake_file=i960/t-960bare
1603 tmake_file="i960/t-960bare t-rtems"
1604 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1607 i960-*-*) # Default i960 environment.
1611 extra_parts="crtinit.o crtfini.o"
1613 m68000-convergent-sysv*)
1615 xm_file="m68k/xm-3b1.h ${xm_file}"
1618 extra_headers=math-68881.h
1620 m68000-hp-bsd*) # HP 9000/200 running BSD
1621 tm_file=m68k/hp2bsd.h
1622 xmake_file=m68k/x-hp2bsd
1624 extra_headers=math-68881.h
1626 m68000-hp-hpux*) # HP 9000 series 300
1627 xm_file="xm_alloca.h ${xm_file}"
1628 xm_defines="USG NO_SYS_SIGLIST"
1629 if test x$gas = xyes
1631 xmake_file=m68k/x-hp320g
1632 tm_file=m68k/hp310g.h
1634 xmake_file=m68k/x-hp320
1635 tm_file=m68k/hp310.h
1637 install_headers_dir=install-headers-cpio
1639 extra_headers=math-68881.h
1644 extra_headers=math-68881.h
1647 tm_file=m68k/sun2o4.h
1649 extra_headers=math-68881.h
1652 xm_file="m68k/xm-3b1.h ${xm_file}"
1654 if test x$gas = xyes
1661 extra_headers=math-68881.h
1663 m68k-apple-aux*) # Apple Macintosh running A/UX
1664 xm_defines="USG AUX"
1665 tmake_file=m68k/t-aux
1666 install_headers_dir=install-headers-cpio
1667 extra_headers=math-68881.h
1668 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1670 if test "$gnu_ld" = yes
1672 tm_file="${tm_file} m68k/auxgld.h"
1674 tm_file="${tm_file} m68k/auxld.h"
1676 if test "$gas" = yes
1678 tm_file="${tm_file} m68k/auxgas.h"
1680 tm_file="${tm_file} m68k/auxas.h"
1682 tm_file="${tm_file} m68k/a-ux.h"
1686 tm_file=m68k/apollo68.h
1687 xmake_file=m68k/x-apollo68
1689 extra_headers=math-68881.h
1692 m68k-altos-sysv*) # Altos 3068
1693 if test x$gas = xyes
1695 tm_file=m68k/altos3068.h
1698 echo "The Altos is supported only with the GNU assembler" 1>&2
1701 extra_headers=math-68881.h
1703 m68k-bull-sysv*) # Bull DPX/2
1704 if test x$gas = xyes
1706 if test x$stabs = xyes
1708 tm_file=m68k/dpx2cdbx.h
1710 tm_file=m68k/dpx2g.h
1715 xm_file="xm-alloca.h ${xm_file}"
1717 xmake_file=m68k/x-dpx2
1719 extra_headers=math-68881.h
1721 m68k-atari-sysv4*) # Atari variant of V.4.
1722 tm_file=m68k/atari.h
1723 xm_file="xm-alloca.h ${xm_file}"
1724 xm_defines="USG FULL_PROTOTYPES"
1726 extra_parts="crtbegin.o crtend.o"
1727 extra_headers=math-68881.h
1730 m68k-motorola-sysv*)
1731 tm_file=m68k/mot3300.h
1732 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1733 xm_defines=NO_SYS_SIGLIST
1734 if test x$gas = xyes
1736 xmake_file=m68k/x-mot3300-gas
1737 if test x$gnu_ld = xyes
1739 tmake_file=m68k/t-mot3300-gald
1741 tmake_file=m68k/t-mot3300-gas
1745 xmake_file=m68k/x-mot3300
1746 if test x$gnu_ld = xyes
1748 tmake_file=m68k/t-mot3300-gld
1750 tmake_file=m68k/t-mot3300
1754 gdb_needs_out_file_path=yes
1755 extra_parts="crt0.o mcrt0.o"
1756 extra_headers=math-68881.h
1759 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1760 tm_file=m68k/tower-as.h
1761 xm_defines="USG SVR3"
1762 xmake_file=m68k/x-tower
1763 extra_parts="crtbegin.o crtend.o"
1764 extra_headers=math-68881.h
1767 tm_file=m68k/plexus.h
1768 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1771 extra_headers=math-68881.h
1775 xm_file="xm-alloca.h ${xm_file}"
1777 extra_headers=math-68881.h
1780 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1781 xm_defines="USG unos"
1782 xmake_file=m68k/x-crds
1785 extra_headers=math-68881.h
1787 m68k-cbm-sysv4*) # Commodore variant of V.4.
1789 xm_file="xm-alloca.h ${xm_file}"
1790 xm_defines="USG FULL_PROTOTYPES"
1791 xmake_file=m68k/x-amix
1793 extra_parts="crtbegin.o crtend.o"
1794 extra_headers=math-68881.h
1798 tm_file=m68k/ccur-GAS.h
1799 xmake_file=m68k/x-ccur
1800 extra_headers=math-68881.h
1804 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1805 tm_file=m68k/hp3bsd44.h
1806 xmake_file=m68k/x-hp3bsd44
1808 extra_headers=math-68881.h
1811 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1812 tm_file=m68k/hp3bsd.h
1814 extra_headers=math-68881.h
1818 if test x$with_fp = xno
1820 tm_file=m68k/isi-nfp.h
1826 extra_headers=math-68881.h
1828 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1829 xm_file="xm_alloca.h ${xm_file}"
1830 xm_defines="USG NO_SYS_SIGLIST"
1831 if test x$gas = xyes
1833 xmake_file=m68k/x-hp320g
1834 tm_file=m68k/hp320g.h
1836 xmake_file=m68k/x-hp320
1837 tm_file=m68k/hpux7.h
1839 install_headers_dir=install-headers-cpio
1841 extra_headers=math-68881.h
1844 m68k-hp-hpux*) # HP 9000 series 300
1845 xm_file="xm_alloca.h ${xm_file}"
1846 xm_defines="USG NO_SYS_SIGLIST"
1847 if test x$gas = xyes
1849 xmake_file=m68k/x-hp320g
1850 tm_file=m68k/hp320g.h
1852 xmake_file=m68k/x-hp320
1853 tm_file=m68k/hp320.h
1855 install_headers_dir=install-headers-cpio
1857 extra_headers=math-68881.h
1861 tm_file=m68k/sun3mach.h
1863 extra_headers=math-68881.h
1867 if test x$gas = xyes
1869 tm_file=m68k/news3gas.h
1871 tm_file=m68k/news3.h
1874 extra_headers=math-68881.h
1877 m68k-sony-bsd* | m68k-sony-newsos*)
1878 if test x$gas = xyes
1880 tm_file=m68k/newsgas.h
1885 extra_headers=math-68881.h
1888 m68k-next-nextstep2*)
1889 tm_file=m68k/next21.h
1890 xm_file="m68k/xm-next.h ${xm_file}"
1891 tmake_file=m68k/t-next
1892 xmake_file=m68k/x-next
1893 extra_objs=nextstep.o
1894 extra_headers=math-68881.h
1898 m68k-next-nextstep3*)
1900 xm_file="m68k/xm-next.h ${xm_file}"
1901 tmake_file=m68k/t-next
1902 xmake_file=m68k/x-next
1903 extra_objs=nextstep.o
1904 extra_parts="crtbegin.o crtend.o"
1905 extra_headers=math-68881.h
1907 if test x$enable_threads = xyes; then
1912 if test x$with_fp = xno
1914 tm_file=m68k/sun3n3.h
1916 tm_file=m68k/sun3o3.h
1920 extra_headers=math-68881.h
1922 m68k-sun-sunos*) # For SunOS 4 (the default).
1923 if test x$with_fp = xno
1925 tm_file=m68k/sun3n.h
1931 extra_headers=math-68881.h
1934 tm_file=m68k/vxm68k.h
1935 tmake_file=m68k/t-vxworks68
1936 extra_headers=math-68881.h
1937 thread_file='vxworks'
1941 tmake_file=m68k/t-m68kbare
1942 tm_file="m68k/m68k-aout.h libgloss.h"
1943 extra_headers=math-68881.h
1947 tmake_file=m68k/t-m68kbare
1948 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1949 extra_headers=math-68881.h
1952 m68020-*-elf* | m68k-*-elf*)
1953 tm_file="m68k/m68020-elf.h libgloss.h"
1954 xm_file=m68k/xm-m68kv.h
1955 tmake_file=m68k/t-m68kelf
1956 header_files=math-68881.h
1959 if test x$gas = xyes
1963 tm_file=m68k/lynx-ng.h
1965 xm_file=m68k/xm-lynx.h
1967 tmake_file=m68k/t-lynx
1968 extra_headers=math-68881.h
1972 tm_file=m68k/netbsd.h
1973 # On NetBSD, the headers are already okay, except for math.h.
1974 fixincludes=fixinc.wrap
1978 m68k-*-sysv3*) # Motorola m68k's running system V.3
1979 xm_file="xm-alloca.h ${xm_file}"
1981 xmake_file=m68k/x-m68kv
1982 extra_parts="crtbegin.o crtend.o"
1983 extra_headers=math-68881.h
1986 m68k-*-sysv4*) # Motorola m68k's running system V.4
1987 tm_file=m68k/m68kv4.h
1988 xm_file="xm-alloca.h ${xm_file}"
1991 extra_parts="crtbegin.o crtend.o"
1992 extra_headers=math-68881.h
1995 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1998 tm_file=m68k/linux-aout.h
1999 tmake_file="t-linux-aout m68k/t-linux-aout"
2000 fixincludes=Makefile.in # The headers are ok already.
2001 extra_headers=math-68881.h
2005 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2006 # with ELF format using the
2007 # GNU/Linux C library 5
2009 tm_file=m68k/linux.h
2010 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2011 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2012 fixincludes=Makefile.in # The headers are ok already.
2013 extra_headers=math-68881.h
2017 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2018 # with ELF format using glibc 2
2019 # aka the GNU/Linux C library 6.
2021 tm_file=m68k/linux.h
2022 tmake_file="t-linux m68k/t-linux"
2023 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2024 fixincludes=Makefile.in # The headers are ok already.
2025 extra_headers=math-68881.h
2028 if test x$enable_threads = xyes; then
2033 tmake_file=m68k/t-m68kbare
2034 tm_file=m68k/m68k-psos.h
2035 extra_headers=math-68881.h
2039 tmake_file="m68k/t-m68kbare t-rtems"
2040 tm_file=m68k/rtems.h
2041 extra_headers=math-68881.h
2048 tm_file=m88k/dguxbcs.h
2049 tmake_file=m88k/t-dguxbcs
2053 tmake_file=m88k/t-dgux
2056 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2057 xmake_file=m88k/x-dgux
2058 if test x$gas = xyes
2060 tmake_file=m88k/t-dgux-gas
2062 fixincludes=fixinc.dgux
2064 m88k-dolphin-sysv3*)
2065 tm_file=m88k/dolph.h
2066 extra_parts="crtbegin.o crtend.o"
2067 xm_file="m88k/xm-sysv3.h ${xm_file}"
2068 xmake_file=m88k/x-dolph
2069 if test x$gas = xyes
2071 tmake_file=m88k/t-m88k-gas
2074 m88k-tektronix-sysv3)
2075 tm_file=m88k/tekXD88.h
2076 extra_parts="crtbegin.o crtend.o"
2077 xm_file="m88k/xm-sysv3.h ${xm_file}"
2078 xmake_file=m88k/x-tekXD88
2079 if test x$gas = xyes
2081 tmake_file=m88k/t-m88k-gas
2085 tm_file=m88k/m88k-aout.h
2088 tm_file=m88k/m88k-coff.h
2089 tmake_file=m88k/t-bug
2093 extra_parts="crtbegin.o crtend.o"
2094 if test x$gas = xyes
2096 tmake_file=m88k/t-luna-gas
2098 tmake_file=m88k/t-luna
2102 tm_file=m88k/sysv3.h
2103 extra_parts="crtbegin.o crtend.o"
2104 xm_file="m88k/xm-sysv3.h ${xm_file}"
2105 xmake_file=m88k/x-sysv3
2106 if test x$gas = xyes
2108 tmake_file=m88k/t-m88k-gas
2112 tm_file=m88k/sysv4.h
2113 extra_parts="crtbegin.o crtend.o"
2114 xmake_file=m88k/x-sysv4
2115 tmake_file=m88k/t-sysv4
2117 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2118 tm_file=mips/iris6.h
2119 xm_file=mips/xm-iris6.h
2120 fixincludes=fixinc.irix
2121 xmake_file=mips/x-iris6
2122 tmake_file=mips/t-iris6
2123 # if test x$enable_threads = xyes; then
2124 # thread_file='irix'
2128 tm_file="mips/elf.h libgloss.h"
2129 tmake_file=mips/t-ecoff
2132 extra_parts="crtbegin.o crtend.o"
2133 # thread_file='vxworks'
2135 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2136 tm_file="mips/iris6.h mips/cross64.h"
2138 xm_file="mips/xm-iris5.h"
2139 fixincludes=Makefile.in
2140 xmake_file=mips/x-iris
2141 tmake_file=mips/t-cross64
2142 # See comment in mips/iris[56].h files.
2144 # if test x$enable_threads = xyes; then
2145 # thread_file='irix'
2149 if test x$gas = xyes
2151 if test x$stabs = xyes
2153 tm_file=mips/iris5gdb.h
2155 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2158 tm_file=mips/sni-svr4.h
2161 xmake_file=mips/x-sni-svr4
2162 tmake_file=mips/t-mips-gas
2163 if test x$gnu_ld != xyes
2168 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2169 if test x$gas = xyes
2171 tm_file="mips/iris5.h mips/iris5gas.h"
2172 if test x$stabs = xyes
2174 tm_file="${tm_file} dbx.h"
2177 tm_file=mips/iris5.h
2180 xm_file="mips/xm-iris5.h"
2181 fixincludes=fixinc.irix
2182 xmake_file=mips/x-iris
2183 # mips-tfile doesn't work yet
2184 tmake_file=mips/t-mips-gas
2185 # See comment in mips/iris5.h file.
2187 # if test x$enable_threads = xyes; then
2188 # thread_file='irix'
2191 mips-sgi-irix4loser*) # Mostly like a MIPS.
2192 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2193 if test x$stabs = xyes; then
2194 tm_file="${tm_file} dbx.h"
2197 xmake_file=mips/x-iris
2198 if test x$gas = xyes
2200 tmake_file=mips/t-mips-gas
2202 extra_passes="mips-tfile mips-tdump"
2204 if test x$gnu_ld != xyes
2208 # if test x$enable_threads = xyes; then
2209 # thread_file='irix'
2212 mips-sgi-irix4*) # Mostly like a MIPS.
2213 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2214 if test x$stabs = xyes; then
2215 tm_file="${tm_file} dbx.h"
2218 xmake_file=mips/x-iris
2219 if test x$gas = xyes
2221 tmake_file=mips/t-mips-gas
2223 extra_passes="mips-tfile mips-tdump"
2225 if test x$gnu_ld != xyes
2229 # if test x$enable_threads = xyes; then
2230 # thread_file='irix'
2233 mips-sgi-*) # Mostly like a MIPS.
2234 tm_file="mips/iris3.h ${tm_file}"
2235 if test x$stabs = xyes; then
2236 tm_file="${tm_file} dbx.h"
2239 xmake_file=mips/x-iris3
2240 if test x$gas = xyes
2242 tmake_file=mips/t-mips-gas
2244 extra_passes="mips-tfile mips-tdump"
2246 if test x$gnu_ld != xyes
2251 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2252 tm_file="mips/osfrose.h ${tm_file}"
2253 xmake_file=mips/x-osfrose
2254 tmake_file=mips/t-osfrose
2255 extra_objs=halfpic.o
2258 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2259 tm_file=mips/dec-osf1.h
2260 if test x$stabs = xyes; then
2261 tm_file="${tm_file} dbx.h"
2263 xmake_file=mips/x-dec-osf1
2264 if test x$gas = xyes
2266 tmake_file=mips/t-mips-gas
2268 tmake_file=mips/t-ultrix
2269 extra_passes="mips-tfile mips-tdump"
2271 if test x$gnu_ld != xyes
2276 mips-dec-bsd*) # Decstation running 4.4 BSD
2277 tm_file=mips/dec-bsd.h
2279 if test x$gas = xyes
2281 tmake_file=mips/t-mips-gas
2283 tmake_file=mips/t-ultrix
2284 extra_passes="mips-tfile mips-tdump"
2286 if test x$gnu_ld != xyes
2291 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2292 tm_file=mips/netbsd.h
2293 # On NetBSD, the headers are already okay, except for math.h.
2294 fixincludes=fixinc.wrap
2297 mips*-*-linux*) # Linux MIPS, either endian.
2299 xm_file="xm-siglist.h ${xm_file}"
2301 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2302 *) tm_file="mips/elf.h mips/linux.h" ;;
2304 extra_parts="crtbegin.o crtend.o"
2307 fixincludes=Makefile.in
2309 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2310 tm_file="mips/news4.h ${tm_file}"
2311 if test x$stabs = xyes; then
2312 tm_file="${tm_file} dbx.h"
2314 if test x$gas = xyes
2316 tmake_file=mips/t-mips-gas
2318 extra_passes="mips-tfile mips-tdump"
2320 if test x$gnu_ld != xyes
2324 xmake_file=mips/x-sony
2326 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2327 # That is based on svr4.
2328 # t-svr4 is not right because this system doesn't use ELF.
2329 tm_file="mips/news5.h ${tm_file}"
2330 if test x$stabs = xyes; then
2331 tm_file="${tm_file} dbx.h"
2333 xm_file="xm-siglist.h ${xm_file}"
2335 if test x$gas = xyes
2337 tmake_file=mips/t-mips-gas
2339 extra_passes="mips-tfile mips-tdump"
2341 if test x$gnu_ld != xyes
2346 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2347 tm_file="mips/svr4-5.h mips/svr4-t.h"
2348 if test x$stabs = xyes; then
2349 tm_file="${tm_file} dbx.h"
2351 xm_file="xm-siglist.h ${xm_file}"
2353 xmake_file=mips/x-sysv
2354 if test x$gas = xyes
2356 tmake_file=mips/t-mips-gas
2357 extra_parts="crtbegin.o crtend.o"
2359 tmake_file=mips/t-mips
2360 extra_passes="mips-tfile mips-tdump"
2362 if test x$gnu_ld != xyes
2367 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2368 tm_file="mips/ultrix.h ${tm_file}"
2369 if test x$stabs = xyes; then
2370 tm_file="${tm_file} dbx.h"
2372 xmake_file=mips/x-ultrix
2373 if test x$gas = xyes
2375 tmake_file=mips/t-mips-gas
2377 tmake_file=mips/t-ultrix
2378 extra_passes="mips-tfile mips-tdump"
2380 if test x$gnu_ld != xyes
2386 mips-*-riscos[56789]bsd*)
2388 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2389 if test x$stabs = xyes; then
2390 tm_file="${tm_file} dbx.h"
2392 if test x$gas = xyes
2394 tmake_file=mips/t-bsd-gas
2396 tmake_file=mips/t-bsd
2397 extra_passes="mips-tfile mips-tdump"
2399 if test x$gnu_ld != xyes
2405 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2407 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2408 if test x$stabs = xyes; then
2409 tm_file="${tm_file} dbx.h"
2411 if test x$gas = xyes
2413 tmake_file=mips/t-bsd-gas
2415 tmake_file=mips/t-bsd
2416 extra_passes="mips-tfile mips-tdump"
2418 if test x$gnu_ld != xyes
2424 mips-*-riscos[56789]sysv4*)
2426 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2427 if test x$stabs = xyes; then
2428 tm_file="${tm_file} dbx.h"
2430 xm_file="xm-siglist.h ${xm_file}"
2431 xmake_file=mips/x-sysv
2432 if test x$gas = xyes
2434 tmake_file=mips/t-svr4-gas
2436 tmake_file=mips/t-svr4
2437 extra_passes="mips-tfile mips-tdump"
2439 if test x$gnu_ld != xyes
2445 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2447 tm_file="mips/svr4-4.h ${tm_file}"
2448 if test x$stabs = xyes; then
2449 tm_file="${tm_file} dbx.h"
2452 xmake_file=mips/x-sysv
2453 if test x$gas = xyes
2455 tmake_file=mips/t-svr4-gas
2457 tmake_file=mips/t-svr4
2458 extra_passes="mips-tfile mips-tdump"
2460 if test x$gnu_ld != xyes
2466 mips-*-riscos[56789]sysv*)
2468 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2469 if test x$stabs = xyes; then
2470 tm_file="${tm_file} dbx.h"
2473 xmake_file=mips/x-sysv
2474 if test x$gas = xyes
2476 tmake_file=mips/t-svr3-gas
2478 tmake_file=mips/t-svr3
2479 extra_passes="mips-tfile mips-tdump"
2481 if test x$gnu_ld != xyes
2486 mips-*-sysv* | mips-*-riscos*sysv*)
2487 tm_file="mips/svr3-4.h ${tm_file}"
2488 if test x$stabs = xyes; then
2489 tm_file="${tm_file} dbx.h"
2492 xmake_file=mips/x-sysv
2493 if test x$gas = xyes
2495 tmake_file=mips/t-svr3-gas
2497 tmake_file=mips/t-svr3
2498 extra_passes="mips-tfile mips-tdump"
2500 if test x$gnu_ld != xyes
2506 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2508 tm_file=mips/mips-5.h
2509 if test x$stabs = xyes; then
2510 tm_file="${tm_file} dbx.h"
2512 if test x$gas = xyes
2514 tmake_file=mips/t-mips-gas
2516 extra_passes="mips-tfile mips-tdump"
2518 if test x$gnu_ld != xyes
2526 tm_file=mips/ecoffl.h
2527 if test x$stabs = xyes; then
2528 tm_file="${tm_file} dbx.h"
2530 tmake_file=mips/t-ecoff
2533 tm_file="gofast.h mips/ecoff.h"
2534 if test x$stabs = xyes; then
2535 tm_file="${tm_file} dbx.h"
2537 tmake_file=mips/t-ecoff
2540 tm_file="mips/elfl.h libgloss.h"
2541 tmake_file=mips/t-ecoff
2544 tm_file="mips/elf.h libgloss.h"
2545 tmake_file=mips/t-ecoff
2548 tm_file="mips/elfl64.h libgloss.h"
2549 tmake_file=mips/t-ecoff
2551 mips64orionel-*-elf*)
2552 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2553 tmake_file=mips/t-ecoff
2556 tm_file="mips/elf64.h libgloss.h"
2557 tmake_file=mips/t-ecoff
2560 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2561 tmake_file=mips/t-ecoff
2563 mips64orion-*-rtems*)
2564 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2565 tmake_file="mips/t-ecoff t-rtems"
2568 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2569 tmake_file=mips/t-r3900
2572 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2573 tmake_file=mips/t-r3900
2574 # FIXME mips-elf should be fixed to use crtstuff.
2577 mips-*-*) # Default MIPS RISC-OS 4.0.
2578 if test x$stabs = xyes; then
2579 tm_file="${tm_file} dbx.h"
2581 if test x$gas = xyes
2583 tmake_file=mips/t-mips-gas
2585 extra_passes="mips-tfile mips-tdump"
2587 if test x$gnu_ld != xyes
2594 tm_file="mn10200/mn10200.h"
2595 if test x$stabs = xyes
2597 tm_file="${tm_file} dbx.h"
2603 tm_file="mn10300/mn10300.h"
2604 if test x$stabs = xyes
2606 tm_file="${tm_file} dbx.h"
2611 tm_file=ns32k/encore.h
2615 tm_file=ns32k/sequent.h
2619 tm_file=ns32k/tek6100.h
2623 tm_file=ns32k/tek6200.h
2626 # This has not been updated to GCC 2.
2629 # xmake_file=ns32k/x-genix
2630 # tm_file=ns32k/genix.h
2634 tm_file=ns32k/merlin.h
2638 tm_file=ns32k/pc532-mach.h
2642 tm_file=ns32k/pc532-min.h
2643 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2648 tm_file=ns32k/netbsd.h
2649 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2650 # On NetBSD, the headers are already okay, except for math.h.
2651 fixincludes=fixinc.wrap
2655 tm_file="${tm_file} pdp11/2bsd.h"
2661 xmake_file=pyr/x-pyr
2668 xmake_file=romp/x-mach
2673 tm_file=rs6000/beos.h
2674 xm_file=rs6000/xm-beos.h
2675 tmake_file=rs6000/t-beos
2676 xmake_file=rs6000/x-beos
2678 powerpc-*-sysv* | powerpc-*-elf*)
2679 tm_file=rs6000/sysv4.h
2680 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2681 xm_defines="USG POSIX"
2682 extra_headers=ppc-asm.h
2683 if test x$gas = xyes
2685 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2687 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2689 xmake_file=rs6000/x-sysv4
2692 tm_file=rs6000/eabiaix.h
2693 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2694 fixincludes=Makefile.in
2695 extra_headers=ppc-asm.h
2698 tm_file=rs6000/eabisim.h
2699 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2700 fixincludes=Makefile.in
2701 extra_headers=ppc-asm.h
2704 tm_file=rs6000/eabi.h
2705 if test x$gas = xyes
2707 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2709 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2711 fixincludes=Makefile.in
2712 extra_headers=ppc-asm.h
2715 tm_file=rs6000/rtems.h
2716 if test x$gas = xyes
2718 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2720 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2722 fixincludes=Makefile.in
2723 extra_headers=ppc-asm.h
2725 powerpc-*-linux-gnulibc1)
2726 tm_file=rs6000/linux.h
2727 xm_file=rs6000/xm-sysv4.h
2728 out_file=rs6000/rs6000.c
2729 if test x$gas = xyes
2731 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2733 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2736 fixincludes=Makefile.in
2737 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2738 extra_headers=ppc-asm.h
2739 if test x$enable_threads = xyes; then
2743 powerpc-*-linux-gnu*)
2744 tm_file=rs6000/linux.h
2745 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2746 xm_defines="USG ${xm_defines}"
2747 out_file=rs6000/rs6000.c
2748 if test x$gas = xyes
2750 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2752 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2755 fixincludes=Makefile.in
2756 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2757 extra_headers=ppc-asm.h
2758 if test x$enable_threads = xyes; then
2762 powerpc-wrs-vxworks*)
2764 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2765 xm_defines="USG POSIX"
2766 tm_file=rs6000/vxppc.h
2767 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2768 extra_headers=ppc-asm.h
2769 thread_file='vxworks'
2771 powerpcle-*-sysv* | powerpcle-*-elf*)
2772 tm_file=rs6000/sysv4le.h
2773 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2774 xm_defines="USG POSIX"
2775 if test x$gas = xyes
2777 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2779 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2781 xmake_file=rs6000/x-sysv4
2782 extra_headers=ppc-asm.h
2784 powerpcle-*-eabisim*)
2785 tm_file=rs6000/eabilesim.h
2786 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2787 fixincludes=Makefile.in
2788 extra_headers=ppc-asm.h
2791 tm_file=rs6000/eabile.h
2792 if test x$gas = xyes
2794 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2796 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2798 fixincludes=Makefile.in
2799 extra_headers=ppc-asm.h
2801 powerpcle-*-winnt* )
2802 tm_file=rs6000/win-nt.h
2803 tmake_file=rs6000/t-winnt
2805 fixincludes=Makefile.in
2806 if test x$enable_threads = xyes; then
2809 extra_headers=ppc-asm.h
2811 powerpcle-*-pe | powerpcle-*-cygwin*)
2812 tm_file=rs6000/cygwin.h
2813 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2814 tmake_file=rs6000/t-winnt
2815 xmake_file=rs6000/x-cygwin
2817 fixincludes=Makefile.in
2818 if test x$enable_threads = xyes; then
2822 extra_headers=ppc-asm.h
2824 powerpcle-*-solaris2*)
2825 tm_file=rs6000/sol2.h
2826 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2827 xm_defines="USG POSIX"
2828 if test x$gas = xyes
2830 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2832 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2834 xmake_file=rs6000/x-sysv4
2839 fixincludes=fixinc.svr4;;
2841 fixincludes=fixinc.wrap;;
2843 extra_headers=ppc-asm.h
2846 rs6000-ibm-aix3.[01]*)
2848 tm_file=rs6000/aix31.h
2849 xmake_file=rs6000/x-aix31
2853 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2855 tm_file=rs6000/aix3newas.h
2856 if test x$host != x$target
2858 tmake_file=rs6000/t-xnewas
2860 tmake_file=rs6000/t-newas
2865 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2867 if test "$gnu_ld" = yes
2869 tm_file=rs6000/aix41-gld.h
2871 tm_file=rs6000/aix41.h
2873 if test x$host != x$target
2875 tmake_file=rs6000/t-xnewas
2877 tmake_file=rs6000/t-newas
2879 xmake_file=rs6000/x-aix41
2883 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2885 tm_file=rs6000/aix43.h
2886 if test x$host != x$target
2888 tmake_file=rs6000/t-xaix43
2890 tmake_file=rs6000/t-aix43
2892 xmake_file=rs6000/x-aix43
2896 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2898 tm_file=rs6000/aix43.h
2899 if test x$host != x$target
2901 tmake_file=rs6000/t-xaix43
2903 tmake_file=rs6000/t-aix43
2905 xmake_file=rs6000/x-aix43
2915 tm_file=rs6000/mach.h
2916 xm_file="${xm_file} rs6000/xm-mach.h"
2917 xmake_file=rs6000/x-mach
2921 tm_file=rs6000/lynx.h
2922 xm_file=rs6000/xm-lynx.h
2923 tmake_file=rs6000/t-rs6000
2924 xmake_file=rs6000/x-lynx
2932 tmake_file="sh/t-sh t-rtems"
2933 tm_file=sh/rtemself.h
2937 tmake_file="sh/t-sh t-rtems"
2946 xm_file="xm-alloca.h ${xm_file}"
2949 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2950 tm_file=sparc/vxsparc.h
2951 tmake_file=sparc/t-vxsparc
2953 thread_file='vxworks'
2956 tmake_file=sparc/t-sparcbare
2957 tm_file="sparc/aout.h libgloss.h"
2960 tm_file=sparc/netbsd.h
2961 # On NetBSD, the headers are already okay, except for math.h.
2962 fixincludes=fixinc.wrap
2970 tmake_file=sparc/t-elf
2971 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2975 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2976 xm_file="${xm_file} sparc/xm-linux.h"
2977 tm_file=sparc/linux-aout.h
2979 fixincludes=Makefile.in #On Linux, the headers are ok already.
2982 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2983 xm_file="${xm_file} sparc/xm-linux.h"
2985 tm_file=sparc/linux.h
2986 tmake_file="t-linux t-linux-gnulibc1"
2987 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2988 fixincludes=Makefile.in #On Linux, the headers are ok already.
2991 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2992 xm_file="${xm_file} sparc/xm-linux.h"
2994 tm_file=sparc/linux.h
2995 tmake_file="t-linux"
2996 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2997 fixincludes=Makefile.in #On Linux, the headers are ok already.
2999 if test x$enable_threads = xyes; then
3004 if test x$gas = xyes
3006 tm_file=sparc/lynx.h
3008 tm_file=sparc/lynx-ng.h
3010 xm_file=sparc/xm-lynx.h
3011 tmake_file=sparc/t-sunos41
3015 tmake_file="sparc/t-sparcbare t-rtems"
3016 tm_file=sparc/rtems.h
3018 sparcv9-*-solaris2*)
3019 tm_file=sparc/sol2-sld-64.h
3020 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3021 xm_defines="USG POSIX"
3022 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3023 xmake_file=sparc/x-sysv4
3024 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3025 fixincludes=fixinc.wrap
3027 if test x${enable_threads} = x ; then
3028 enable_threads=$have_pthread_h
3029 if test x${enable_threads} = x ; then
3030 enable_threads=$have_thread_h
3033 if test x${enable_threads} = xyes ; then
3034 if test x${have_pthread_h} = xyes ; then
3037 thread_file='solaris'
3041 sparc-hal-solaris2*)
3042 xm_file=sparc/xm-sol2.h
3043 tm_file="sparc/sol2.h sparc/hal.h"
3044 tmake_file="sparc/t-halos sparc/t-sol2"
3045 xmake_file=sparc/x-sysv4
3046 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3047 fixincludes=fixinc.svr4
3051 if test x$gnu_ld = xyes
3053 tm_file=sparc/sol2.h
3055 tm_file=sparc/sol2-sld.h
3057 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3058 xm_defines="USG POSIX"
3059 tmake_file=sparc/t-sol2
3060 xmake_file=sparc/x-sysv4
3061 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3066 fixincludes=fixinc.svr4;;
3068 fixincludes=fixinc.wrap;;
3071 if test x${enable_threads} = x; then
3072 enable_threads=$have_pthread_h
3073 if test x${enable_threads} = x; then
3074 enable_threads=$have_thread_h
3077 if test x${enable_threads} = xyes; then
3078 if test x${have_pthread_h} = xyes; then
3081 thread_file='solaris'
3086 tm_file=sparc/sunos4.h
3087 tmake_file=sparc/t-sunos40
3091 tm_file=sparc/sunos4.h
3092 tmake_file=sparc/t-sunos41
3094 if test x$gas = xyes; then
3095 tm_file="${tm_file} sparc/sun4gas.h"
3099 tm_file=sparc/sun4o3.h
3103 tm_file=sparc/sysv4.h
3104 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3105 xm_defines="USG POSIX"
3107 xmake_file=sparc/x-sysv4
3108 extra_parts="crtbegin.o crtend.o"
3111 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3112 xm_defines="USG POSIX"
3113 tm_file=sparc/vxsim.h
3114 tmake_file=sparc/t-vxsparc
3115 xmake_file=sparc/x-sysv4
3118 tm_file="sparc/splet.h libgloss.h"
3119 tmake_file=sparc/t-splet
3122 tm_file="sparc/litecoff.h libgloss.h"
3123 tmake_file=sparc/t-sparclite
3126 tm_file="sparc/lite.h aoutos.h libgloss.h"
3127 tmake_file=sparc/t-sparclite
3130 tmake_file=sparc/t-sp64
3131 tm_file=sparc/sp64-aout.h
3134 tmake_file=sparc/t-sp64
3135 tm_file=sparc/sp64-elf.h
3136 extra_parts="crtbegin.o crtend.o"
3138 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3139 tmake_file="t-linux sparc/t-linux64"
3140 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3141 tm_file=sparc/linux64.h
3143 fixincludes=Makefile.in # The headers are ok already.
3144 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3147 # This hasn't been upgraded to GCC 2.
3148 # tahoe-harris-*) # Harris tahoe, using COFF.
3149 # tm_file=tahoe/harris.h
3151 # tahoe-*-bsd*) # tahoe running BSD
3153 thumb-*-coff* | thumbel-*-coff*)
3155 out_file=arm/thumb.c
3156 xm_file=arm/xm-thumb.h
3157 md_file=arm/thumb.md
3158 tmake_file=arm/t-thumb
3159 fixincludes=Makefile.in # There is nothing to fix
3161 # This hasn't been upgraded to GCC 2.
3168 tm_file="v850/v850.h"
3169 xm_file="v850/xm-v850.h"
3170 tmake_file=v850/t-v850
3171 if test x$stabs = xyes
3173 tm_file="${tm_file} dbx.h"
3177 vax-*-bsd*) # vaxen running BSD
3181 vax-*-sysv*) # vaxen running system V
3182 tm_file="${tm_file} vax/vaxv.h"
3187 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3188 # On NetBSD, the headers are already okay, except for math.h.
3189 fixincludes=fixinc.wrap
3193 vax-*-ultrix*) # vaxen running ultrix
3194 tm_file="${tm_file} vax/ultrix.h"
3198 vax-*-vms*) # vaxen running VMS
3199 xm_file=vax/xm-vms.h
3203 vax-*-*) # vax default entry
3207 xm_file="${xm_file} xm-svr3"
3211 echo "Configuration $machine not supported" 1>&2
3218 ;; # Existing GNU/Linux systems do not use the GNU setup.
3220 # On the GNU system, the setup is just about the same on
3221 # each different CPU. The specific machines that GNU
3222 # supports are matched above and just set $cpu_type.
3223 xm_file="xm-gnu.h ${xm_file}"
3224 tm_file=${cpu_type}/gnu.h
3225 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3226 # GNU always uses ELF.
3228 # GNU tools are the only tools.
3231 # On GNU, the headers are already okay.
3232 fixincludes=Makefile.in
3233 xmake_file=x-linux # These details are the same as Linux.
3234 tmake_file=t-gnu # These are not.
3237 fixincludes=fixinc.svr4
3238 xmake_try_sysv=x-sysv
3239 install_headers_dir=install-headers-cpio
3242 install_headers_dir=install-headers-cpio
3246 # Distinguish i[34567]86
3247 # Also, do not run mips-tfile on MIPS if using gas.
3248 # Process --with-cpu= for PowerPC/rs6000
3249 target_cpu_default2=
3252 target_cpu_default2=1
3255 target_cpu_default2=2
3257 i686-*-* | i786-*-*)
3258 target_cpu_default2=3
3263 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3266 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3269 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3272 target_cpu_default2="MASK_CPU_EV5"
3276 if test x$gas = xyes
3278 if test "$target_cpu_default2" = ""
3280 target_cpu_default2="MASK_GAS"
3282 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3287 case "x$with_cpu" in
3290 target_cpu_default2="TARGET_CPU_generic"
3293 # Distinguish cores, and major variants
3294 # arm7m doesn't exist, but D & I don't affect code
3295 xarm[23678] | xarm250 | xarm[67][01]0 \
3296 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3297 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3298 | xstrongarm | xstrongarm110)
3299 target_cpu_default2="TARGET_CPU_$with_cpu"
3303 echo "--with-cpu must be passed a value" 1>&2
3308 if test x$pass2done = xyes
3310 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3317 mips*-*-ecoff* | mips*-*-elf*)
3318 if test x$gas = xyes
3320 if test x$gnu_ld = xyes
3322 target_cpu_default2=20
3324 target_cpu_default2=16
3329 if test x$gas = xyes
3331 target_cpu_default2=16
3334 powerpc*-*-* | rs6000-*-*)
3335 case "x$with_cpu" in
3339 xcommon | xpower | xpower2 | xpowerpc | xrios \
3340 | xrios1 | xrios2 | xrsc | xrsc1 \
3341 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3342 | x403 | x505 | x801 | x821 | x823 | x860)
3343 target_cpu_default2="\"$with_cpu\""
3347 echo "--with-cpu must be passed a value" 1>&2
3352 if test x$pass2done = xyes
3354 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3361 case ".$with_cpu" in
3363 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3365 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3366 target_cpu_default2="TARGET_CPU_$with_cpu"
3369 if test x$pass2done = xyes
3371 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3379 if test "$target_cpu_default2" != ""
3381 if test "$target_cpu_default" != ""
3383 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3385 target_cpu_default=$target_cpu_default2
3389 # No need for collect2 if we have the GNU linker.
3390 # Actually, there is now; GNU ld doesn't handle the EH info or
3391 # collecting for shared libraries.
3398 # Save data on machine being used to compile GCC in build_xm_file.
3399 # Save data on host machine in vars host_xm_file and host_xmake_file.
3400 if test x$pass1done = x
3402 if test x"$xm_file" = x
3403 then build_xm_file=$cpu_type/xm-$cpu_type.h
3404 else build_xm_file=$xm_file
3406 build_xm_defines=$xm_defines
3407 build_install_headers_dir=$install_headers_dir
3408 build_exeext=$exeext
3411 if test x$pass2done = x
3413 if test x"$xm_file" = x
3414 then host_xm_file=$cpu_type/xm-$cpu_type.h
3415 else host_xm_file=$xm_file
3417 host_xm_defines=$xm_defines
3418 if test x"$xmake_file" = x
3419 then xmake_file=$cpu_type/x-$cpu_type
3421 host_xmake_file="$xmake_file"
3422 host_truncate_target=$truncate_target
3423 host_extra_gcc_objs=$extra_gcc_objs
3424 host_extra_objs=$extra_host_objs
3431 extra_objs="${host_extra_objs} ${extra_objs}"
3433 # Default the target-machine variables that were not explicitly set.
3434 if test x"$tm_file" = x
3435 then tm_file=$cpu_type/$cpu_type.h; fi
3437 if test x$extra_headers = x
3438 then extra_headers=; fi
3440 if test x"$xm_file" = x
3441 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3443 if test x$md_file = x
3444 then md_file=$cpu_type/$cpu_type.md; fi
3446 if test x$out_file = x
3447 then out_file=$cpu_type/$cpu_type.c; fi
3449 if test x"$tmake_file" = x
3450 then tmake_file=$cpu_type/t-$cpu_type
3453 if test x"$dwarf2" = xyes
3454 then tm_file="tm-dwarf2.h $tm_file"
3457 if test x$float_format = x
3458 then float_format=i64
3461 if test x$enable_haifa = x
3464 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3469 # Say what files are being used for the output code and MD file.
3470 echo "Using \`$srcdir/config/$out_file' to output insns."
3471 echo "Using \`$srcdir/config/$md_file' as machine description file."
3474 for f in $tm_file; do
3477 if test $count = ax; then
3478 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3480 echo "Using the following target machine macro files:"
3481 for f in $tm_file; do
3482 echo " $srcdir/config/$f"
3487 for f in $host_xm_file; do
3490 if test $count = ax; then
3491 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3493 echo "Using the following host machine macro files:"
3494 for f in $host_xm_file; do
3495 echo " $srcdir/config/$f"
3499 if test "$host_xm_file" != "$build_xm_file"; then
3501 for f in $build_xm_file; do
3504 if test $count = ax; then
3505 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3507 echo "Using the following build machine macro files:"
3508 for f in $build_xm_file; do
3509 echo " $srcdir/config/$f"
3514 if test x$thread_file = x; then
3515 if test x$target_thread_file != x; then
3516 thread_file=$target_thread_file
3518 thread_file='single'
3522 # Set up the header files.
3523 # $links is the list of header files to create.
3524 # $vars is the list of shell variables with file names to include.
3525 # auto-host.h is the file containing items generated by autoconf and is
3526 # the first file included by config.h.
3528 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3530 # If host=build, it is correct to have hconfig include auto-host.h
3531 # as well. If host!=build, we are in error and need to do more
3532 # work to find out the build config parameters.
3533 if test x$host = x$build
3535 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3537 # We create a subdir, then run autoconf in the subdir.
3538 # To prevent recursion we set host and build for the new
3539 # invocation of configure to the build for this invocation
3546 /*) realsrcdir=${srcdir};;
3547 *) realsrcdir=../${srcdir};;
3549 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3550 --target=$target --host=$build --build=$build
3552 # We just finished tests for the build machine, so rename
3553 # the file auto-build.h in the gcc directory.
3554 mv auto-host.h ../auto-build.h
3557 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3560 xm_file="gansidecl.h ${xm_file}"
3561 tm_file="gansidecl.h ${tm_file}"
3563 vars="host_xm_file tm_file xm_file build_xm_file"
3564 links="config.h tm.h tconfig.h hconfig.h"
3565 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3568 if test -f config.status; then mv -f config.status config.bak; fi
3571 while test -n "$vars"
3573 set $vars; var=$1; shift; vars=$*
3574 set $links; link=$1; shift; links=$*
3575 set $defines; define=$1; shift; defines=$*
3579 # Define TARGET_CPU_DEFAULT if the system wants one.
3580 # This substitutes for lots of *.h files.
3581 if test "$target_cpu_default" != "" -a $link = tm.h
3583 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3586 for file in `eval echo '$'$var`; do
3591 echo '#ifdef IN_GCC' >>$link
3594 echo "#include \"$file\"" >>$link
3599 echo '#endif' >>$link
3604 for def in `eval echo '$'$define`; do
3605 echo "#ifndef $def" >>$link
3606 echo "#define $def" >>$link
3607 echo "#endif" >>$link
3611 # Truncate the target if necessary
3612 if test x$host_truncate_target != x; then
3613 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3616 # Get the version trigger filename from the toplevel
3617 if test "${with_gcc_version_trigger+set}" = set; then
3618 gcc_version_trigger=$with_gcc_version_trigger
3620 gcc_version_trigger=${srcdir}/version.c
3623 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3626 # Internationalization
3628 VERSION="$gcc_version"
3629 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3630 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3636 # NLS support is still experimental, so disable it by default for now.
3638 [ --enable-nls use Native Language Support (disabled by default)],
3642 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3644 # Get an absolute path to the GCC top-level source directory
3650 # Conditionalize the makefile for this host machine.
3651 # Make-host contains the concatenation of all host makefile fragments
3652 # [there can be more than one]. This file is built by configure.frag.
3653 host_overrides=Make-host
3654 dep_host_xmake_file=
3655 for f in .. ${host_xmake_file}
3657 if test -f ${srcdir}/config/$f
3659 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3663 # Conditionalize the makefile for this target machine.
3664 # Make-target contains the concatenation of all host makefile fragments
3665 # [there can be more than one]. This file is built by configure.frag.
3666 target_overrides=Make-target
3668 for f in .. ${tmake_file}
3670 if test -f ${srcdir}/config/$f
3672 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3676 # If the host doesn't support symlinks, modify CC in
3677 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3678 # Otherwise, we can use "CC=$(CC)".
3680 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3682 cc_set_by_configure="\$(CC)"
3683 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3686 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3688 symbolic_link="cp -p"
3692 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3693 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3697 out_object_file=`basename $out_file .c`.o
3700 for f in $tm_file; do
3701 if test $f != "gansidecl.h" ; then
3702 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3704 tm_file_list="${tm_file_list} $f"
3709 for f in $host_xm_file; do
3710 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3711 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3713 host_xm_file_list="${host_xm_file_list} $f"
3718 for f in $build_xm_file; do
3719 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3720 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3722 build_xm_file_list="${build_xm_file_list} $f"
3726 # Define macro CROSS_COMPILE in compilation
3727 # if this is a cross-compiler.
3728 # Also use all.cross instead of all.internal
3729 # and add cross-make to Makefile.
3730 cross_overrides="/dev/null"
3731 if test x$host != x$target
3733 cross_defines="CROSS=-DCROSS_COMPILE"
3734 cross_overrides="${topdir}/cross-make"
3737 # When building gcc with a cross-compiler, we need to fix a few things.
3738 # This must come after cross-make as we want all.build to override
3740 build_overrides="/dev/null"
3741 if test x$build != x$host
3743 build_overrides="${topdir}/build-make"
3746 # Expand extra_headers to include complete path.
3747 # This substitutes for lots of t-* files.
3749 if test "x$extra_headers" = x
3752 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3753 for file in $extra_headers;
3755 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3759 if test x$use_collect2 = xno; then
3763 # Add a definition of USE_COLLECT2 if system wants one.
3764 # Also tell toplev.c what to do.
3765 # This substitutes for lots of t-* files.
3766 if test x$use_collect2 = x
3771 will_use_collect2="collect2"
3772 maybe_use_collect2="-DUSE_COLLECT2"
3776 # Set MD_DEPS if the real md file is in md.pre-cpp.
3777 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3778 # for line oriented comments, so we must always use a GNU cpp. If
3779 # building gcc with a cross compiler, use the cross compiler just
3780 # built. Otherwise, we can use the cpp just built.
3782 if test "x$md_cppflags" = x
3784 md_file_sub=$srcdir/config/$md_file
3789 # If we have gas in the build tree, make a link to it.
3790 if test -f ../gas/Makefile; then
3791 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3794 # If we have nm in the build tree, make a link to it.
3795 if test -f ../binutils/Makefile; then
3796 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3799 # If we have ld in the build tree, make a link to it.
3800 if test -f ../ld/Makefile; then
3801 # if test x$use_collect2 = x; then
3802 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3804 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3808 # Figure out what assembler alignment features are present.
3809 AC_MSG_CHECKING(assembler alignment features)
3811 gcc_cv_as_alignment_features=
3812 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3813 if test -x "$DEFAULT_ASSEMBLER"; then
3814 gcc_cv_as="$DEFAULT_ASSEMBLER"
3815 elif test -x "$AS"; then
3817 elif test -x as$host_exeext; then
3818 # Build using assembler in the current directory.
3819 gcc_cv_as=./as$host_exeext
3820 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3821 # Single tree build which includes gas.
3822 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3825 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3827 if test x$gcc_cv_gas_version != x; then
3832 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3833 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3835 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3836 # Gas version 2.6 and later support for .balign and .p2align.
3837 # bytes to skip when using .p2align.
3838 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
3839 gcc_cv_as_alignment_features=".balign and .p2align"
3840 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3842 # Gas version 2.8 and later support specifying the maximum
3843 # bytes to skip when using .p2align.
3844 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
3845 gcc_cv_as_alignment_features=".p2align including maximum skip"
3846 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3849 elif test x$host = x$target; then
3851 gcc_cv_as=as$host_exeext
3853 if test x$gcc_cv_as != x; then
3854 # Check if we have .balign and .p2align
3855 echo ".balign 4" > conftest.s
3856 echo ".p2align 2" >> conftest.s
3857 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3858 gcc_cv_as_alignment_features=".balign and .p2align"
3859 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3861 rm -f conftest.s conftest.o
3862 # Check if specifying the maximum bytes to skip when
3863 # using .p2align is supported.
3864 echo ".p2align 4,,7" > conftest.s
3865 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3866 gcc_cv_as_alignment_features=".p2align including maximum skip"
3867 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3869 rm -f conftest.s conftest.o
3871 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3873 AC_MSG_CHECKING(assembler subsection support)
3874 gcc_cv_as_subsections=
3875 if test x$gcc_cv_as != x; then
3876 # Check if we have .subsection
3877 echo ".subsection 1" > conftest.s
3878 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3879 gcc_cv_as_subsections=".subsection"
3880 if test -x nm$host_exeext; then
3881 gcc_cv_nm=./nm$host_exeext
3882 elif test x$host = x$target; then
3884 gcc_cv_nm=nm$host_exeext
3886 if test x$gcc_cv_nm != x; then
3887 cat > conftest.s <<EOF
3888 conftest_label1: .word 0
3890 conftest_label2: .word 0
3893 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3894 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3895 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3896 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3899 gcc_cv_as_subsections="working .subsection -1"
3900 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3905 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3907 AC_MSG_RESULT($gcc_cv_as_subsections)
3909 # Figure out what language subdirectories are present.
3910 # Look if the user specified --enable-languages="..."; if not, use
3911 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3913 if test x"${enable_languages+set}" != xset; then
3914 if test x"${LANGUAGES+set}" = xset; then
3915 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
3917 enable_languages=all
3921 for lang in ${srcdir}/*/config-lang.in ..
3925 # The odd quoting in the next line works around
3926 # an apparent bug in bash 1.12 on linux.
3928 ${srcdir}/[*]/config-lang.in) ;;
3930 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
3931 if test "x$lang_alias" = x
3933 echo "$lang doesn't set \$language." 1>&2
3936 if test x"${enable_languages}" = xall; then
3939 case "${enable_languages}" in
3940 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
3948 if test x"${add_this_lang}" = xyes; then
3950 ${srcdir}/ada/config-lang.in)
3951 if test x$gnat = xyes ; then
3952 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3956 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3965 # Make gthr-default.h if we have a thread file.
3967 if test $thread_file != single; then
3968 rm -f gthr-default.h
3969 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3970 gthread_flags=-DHAVE_GTHR_DEFAULT
3972 AC_SUBST(gthread_flags)
3974 # Make empty files to contain the specs and options for each language.
3975 # Then add #include lines to for a compiler that has specs and/or options.
3980 rm -f specs.h options.h gencheck.h
3981 touch specs.h options.h gencheck.h
3982 for subdir in . $subdirs
3984 if test -f $srcdir/$subdir/lang-specs.h; then
3985 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3986 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3988 if test -f $srcdir/$subdir/lang-options.h; then
3989 echo "#include \"$subdir/lang-options.h\"" >>options.h
3990 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3992 if test -f $srcdir/$subdir/$subdir-tree.def; then
3993 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3994 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3998 # These (without "all_") are set in each config-lang.in.
3999 # `language' must be a single word so is spelled singularly.
4005 all_outputs='Makefile intl/Makefile po/Makefile.in'
4006 # List of language makefile fragments.
4011 # Add the language fragments.
4012 # Languages are added via two mechanisms. Some information must be
4013 # recorded in makefile variables, these are defined in config-lang.in.
4014 # We accumulate them and plug them into the main Makefile.
4015 # The other mechanism is a set of hooks for each of the main targets
4016 # like `clean', `install', etc.
4018 language_fragments="Make-lang"
4019 language_hooks="Make-hooks"
4022 for s in .. $subdirs
4034 . ${srcdir}/$s/config-lang.in
4035 if test "x$language" = x
4037 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4040 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4041 all_languages="$all_languages $language"
4042 if test "x$boot_language" = xyes
4044 all_boot_languages="$all_boot_languages $language"
4046 all_compilers="$all_compilers $compilers"
4047 all_stagestuff="$all_stagestuff $stagestuff"
4048 all_diff_excludes="$all_diff_excludes $diff_excludes"
4049 all_headers="$all_headers $headers"
4050 all_outputs="$all_outputs $outputs"
4051 if test x$outputs = x
4053 oldstyle_subdirs="$oldstyle_subdirs $s"
4055 all_lib2funcs="$all_lib2funcs $lib2funcs"
4059 # Since we can't use `::' targets, we link each language in
4060 # with a set of hooks, reached indirectly via lang.${target}.
4064 target_list="all.build all.cross start.encap rest.encap \
4066 install-normal install-common install-info install-man \
4068 mostlyclean clean distclean extraclean maintainer-clean \
4069 stage1 stage2 stage3 stage4"
4070 for t in $target_list
4073 for lang in .. $all_languages
4075 if test $lang != ".."; then
4079 echo "lang.$t: $x" >> Make-hooks
4082 # If we're not building in srcdir, create .gdbinit.
4084 if test ! -f Makefile.in; then
4085 echo "dir ." > .gdbinit
4086 echo "dir ${srcdir}" >> .gdbinit
4087 if test x$gdb_needs_out_file_path = xyes
4089 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4091 if test "x$subdirs" != x; then
4094 echo "dir ${srcdir}/$s" >> .gdbinit
4097 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4100 # Define variables host_canonical and build_canonical
4101 # because some Cygnus local changes in the Makefile depend on them.
4102 build_canonical=${build}
4103 host_canonical=${host}
4105 if test "${host}" != "${target}" ; then
4106 target_subdir=${target}/
4108 AC_SUBST(build_canonical)
4109 AC_SUBST(host_canonical)
4110 AC_SUBST(target_subdir)
4112 # If this is using newlib, then define inhibit_libc in
4113 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4114 # libgcc.a, but that's OK because newib should have its own version of
4117 if test x$with_newlib = xyes; then
4118 inhibit_libc=-Dinhibit_libc
4120 AC_SUBST(inhibit_libc)
4122 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4125 if test x$enable_haifa = xyes; then
4126 echo "Using the Haifa scheduler."
4128 sched_cflags=-DHAIFA
4130 AC_SUBST(sched_prefix)
4131 AC_SUBST(sched_cflags)
4132 if test x$enable_haifa != x; then
4133 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4134 for x in genattrtab.o toplev.o *sched.o; do
4142 # if $(exec_prefix) is not the same as $(prefix), then do not use a relative
4143 # directory to get to $gcc_tooldir. Also handle the case where the user did
4144 # not specify a value for exec_prefix.
4145 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4146 # make and thus we'd get different behavior depending on where we built the
4148 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4149 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4151 gcc_tooldir='$(exec_prefix)'/${target_alias}
4153 AC_SUBST(gcc_tooldir)
4155 # Warn if using init_priority.
4156 AC_MSG_CHECKING(whether to enable init_priority by default)
4157 if test x$enable_init_priority != xyes; then
4158 enable_init_priority=no
4160 AC_MSG_RESULT($enable_init_priority)
4162 # Nothing to do for FLOAT_H, float_format already handled.
4166 # Process the language and host/target makefile fragments.
4167 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4169 # Substitute configuration variables
4171 AC_SUBST(all_languages)
4172 AC_SUBST(all_boot_languages)
4173 AC_SUBST(all_compilers)
4174 AC_SUBST(all_lang_makefiles)
4175 AC_SUBST(all_stagestuff)
4176 AC_SUBST(all_diff_excludes)
4177 AC_SUBST(all_lib2funcs)
4178 AC_SUBST(all_headers)
4180 AC_SUBST(extra_passes)
4181 AC_SUBST(extra_programs)
4182 AC_SUBST(extra_parts)
4183 AC_SUBST(extra_c_objs)
4184 AC_SUBST(extra_cxx_objs)
4185 AC_SUBST(extra_cpp_objs)
4186 AC_SUBST(extra_c_flags)
4187 AC_SUBST(extra_objs)
4188 AC_SUBST(host_extra_gcc_objs)
4189 AC_SUBST(extra_headers_list)
4190 AC_SUBST(dep_host_xmake_file)
4191 AC_SUBST(dep_tmake_file)
4193 AC_SUBST(out_object_file)
4195 AC_SUBST(tm_file_list)
4196 AC_SUBST(build_xm_file_list)
4197 AC_SUBST(host_xm_file_list)
4198 AC_SUBST(lang_specs_files)
4199 AC_SUBST(lang_options_files)
4200 AC_SUBST(lang_tree_files)
4201 AC_SUBST(thread_file)
4202 AC_SUBST(objc_boehm_gc)
4204 AC_SUBST(gcc_version)
4205 AC_SUBST(gcc_version_trigger)
4206 AC_SUBST(local_prefix)
4207 AC_SUBST(gxx_include_dir)
4208 AC_SUBST(fixincludes)
4209 AC_SUBST(build_install_headers_dir)
4210 AC_SUBST(build_exeext)
4211 AC_SUBST(host_exeext)
4212 AC_SUBST(float_format)
4213 AC_SUBST(will_use_collect2)
4214 AC_SUBST(maybe_use_collect2)
4215 AC_SUBST(cc_set_by_configure)
4216 AC_SUBST(stage_prefix_set_by_configure)
4218 AC_SUBST(symbolic_link)
4220 AC_SUBST_FILE(target_overrides)
4221 AC_SUBST_FILE(host_overrides)
4222 AC_SUBST(cross_defines)
4223 AC_SUBST_FILE(cross_overrides)
4224 AC_SUBST_FILE(build_overrides)
4225 AC_SUBST_FILE(language_fragments)
4226 AC_SUBST_FILE(language_hooks)
4228 # Echo that links are built
4229 if test x$host = x$target
4237 if test x$host != x$build
4239 str3=" on a $build system"
4242 if test "x$str2" != x || test "x$str3" != x
4247 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4249 if test "x$str2" != x || test "x$str3" != x
4251 echo " ${str2}${str3}." 1>&2
4254 # Truncate the target if necessary
4255 if test x$host_truncate_target != x; then
4256 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4259 # Configure the subdirectories
4260 # AC_CONFIG_SUBDIRS($subdirs)
4262 # Create the Makefile
4263 # and configure language subdirectories
4264 AC_OUTPUT($all_outputs,
4266 . $srcdir/configure.lang
4267 case x$CONFIG_HEADERS in
4268 xauto-host.h:config.in)
4271 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4272 # bootstrapping and the installation procedure can still use
4273 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4274 # FLAGS_TO_PASS has been modified to solve the problem there.
4275 # This is virtually a duplicate of what happens in configure.lang; we do
4276 # an extra check to make sure this only happens if ln -s can be used.
4277 if test "$symbolic_link" = "ln -s"; then
4278 for d in .. ${subdirs} ; do
4279 if test $d != ..; then
4282 for t in stage1 stage2 stage3 stage4 include
4285 $symbolic_link ../$t $t 2>/dev/null
4291 # Avoid having to add intl to our include paths.
4292 if test -f intl/libintl.h; then
4293 echo creating libintl.h
4294 echo '#include "intl/libintl.h"' >libintl.h
4301 target_alias='${target_alias}'
4303 subdirs='${subdirs}'
4304 oldstyle_subdirs='${oldstyle_subdirs}'
4305 symbolic_link='${symbolic_link}'
4306 program_transform_set='${program_transform_set}'
4307 program_transform_name='${program_transform_name}'
4308 dep_host_xmake_file='${dep_host_xmake_file}'
4309 host_xmake_file='${host_xmake_file}'
4310 dep_tmake_file='${dep_tmake_file}'
4311 tmake_file='${tmake_file}'
4312 thread_file='${thread_file}'
4313 gcc_version='${gcc_version}'
4314 gcc_version_trigger='${gcc_version_trigger}'
4315 local_prefix='${local_prefix}'
4316 build_install_headers_dir='${build_install_headers_dir}'
4317 build_exeext='${build_exeext}'
4318 host_exeext='${host_exeext}'
4319 out_file='${out_file}'
4320 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4321 SET_MAKE='${SET_MAKE}'
4322 target_list='${target_list}'
4323 target_overrides='${target_overrides}'
4324 host_overrides='${host_overrides}'
4325 cross_defines='${cross_defines}'
4326 cross_overrides='${cross_overrides}'
4327 build_overrides='${build_overrides}'