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 # Pass with no value to take the default
220 # Pass with a value to specify a thread package
221 AC_ARG_ENABLE(threads,
222 [ --enable-threads enable thread usage for target GCC.
223 --enable-threads=LIB use LIB thread package for target GCC.],
224 if test x$enable_threads = xno; then
229 enable_threads_flag=$enable_threads
230 # Check if a valid thread package
231 case x${enable_threads_flag} in
234 target_thread_file='single'
238 target_thread_file=''
240 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
241 xsolaris | xwin32 | xdce | xvxworks)
242 target_thread_file=$enable_threads_flag
245 echo "$enable_threads is an unknown thread package" 1>&2
250 AC_ARG_ENABLE(objc-gc,
251 [ --enable-objc-gc enable the use of Boehm's garbage collector with
252 the GNU Objective-C runtime.],
253 if [[[ x$enable_objc_gc = xno ]]]; then
260 AC_ARG_ENABLE(java-gc,
261 changequote(<<,>>)dnl
262 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
268 [ --enable-dwarf2 enable DWARF2 debugging as default.],
269 dwarf2="$with_dwarf2",
272 # Determine the host, build, and target systems
275 # Find the native compiler
278 # If the native compiler is GCC, we can enable warnings even in stage1.
279 # That's useful for people building cross-compilers, or just running a
281 if test "x$GCC" = "xyes"; then
282 stage1_warn_cflags='$(WARN_CFLAGS)'
284 stage1_warn_cflags=""
286 AC_SUBST(stage1_warn_cflags)
290 AC_MSG_CHECKING([whether a default assembler was specified])
291 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
292 if test x"$with_gas" = x"no"; then
293 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
295 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
301 AC_MSG_CHECKING([whether a default linker was specified])
302 if test x"${DEFAULT_LINKER+set}" = x"set"; then
303 if test x"$with_gnu_ld" = x"no"; then
304 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
306 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
312 # Find some useful tools
326 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)
328 # Check for thread headers.
329 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
330 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
332 # See if GNAT has been installed
333 AC_CHECK_PROG(gnat, gnatbind, yes, no)
335 # See if the system preprocessor understands the ANSI C preprocessor
336 # stringification operator.
337 AC_MSG_CHECKING(whether cpp understands the stringify operator)
338 AC_CACHE_VAL(gcc_cv_c_have_stringify,
341 char *test = S(foo);],
342 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
343 AC_MSG_RESULT($gcc_cv_c_have_stringify)
344 if test $gcc_cv_c_have_stringify = yes; then
345 AC_DEFINE(HAVE_CPP_STRINGIFY)
348 # Use <inttypes.h> only if it exists,
349 # doesn't clash with <sys/types.h>, and declares intmax_t.
350 AC_MSG_CHECKING(for inttypes.h)
351 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
353 [#include <sys/types.h>
354 #include <inttypes.h>],
356 [gcc_cv_header_inttypes_h=yes],
357 gcc_cv_header_inttypes_h=no)])
358 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
359 if test $gcc_cv_header_inttypes_h = yes; then
360 AC_DEFINE(HAVE_INTTYPES_H)
363 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
364 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
365 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
368 # Make sure wchar_t is available
369 #AC_CHECK_TYPE(wchar_t, unsigned int)
371 GCC_FUNC_VFPRINTF_DOPRNT
376 # Under some versions of uwin, vfork is notoriously buggy and the test
377 # can hang configure; on other versions, vfork exists just as a stub.
378 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
379 ac_cv_func_vfork_works=no
384 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
385 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
386 strsignal putc_unlocked fputs_unlocked)
388 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
389 #include <sys/types.h>
390 #ifdef HAVE_SYS_RESOURCE_H
391 #include <sys/resource.h>
405 build_install_headers_dir=install-headers-tar
410 host_truncate_target=
413 # It is relative to $prefix.
416 # Decode the host machine, then the target machine.
417 # For the host machine, we save the xm_file variable as host_xm_file;
418 # then we decode the target machine and forget everything else
419 # that came from the host machine.
420 for machine in $build $host $target; do
434 # Set this to force installation and use of collect2.
436 # Set this to override the default target model.
438 # Set this to control how the header file directory is installed.
439 install_headers_dir=install-headers-tar
440 # Set this to a non-empty list of args to pass to cpp if the target
441 # wants its .md file passed through cpp.
443 # Set this if directory names should be truncated to 14 characters.
445 # Set this if gdb needs a dir command with `dirname $out_file`
446 gdb_needs_out_file_path=
447 # Set this if the build machine requires executables to have a
450 # Set this to control which thread package will be used.
452 # Reinitialize these from the flag values every loop pass, since some
453 # configure entries modify them.
455 gnu_ld="$gnu_ld_flag"
456 enable_threads=$enable_threads_flag
458 # Set default cpu_type, tm_file and xm_file so it can be updated in
459 # each machine entry.
460 cpu_type=`echo $machine | sed 's/-.*$//'`
496 tm_file=${cpu_type}/${cpu_type}.h
497 xm_file=${cpu_type}/xm-${cpu_type}.h
499 # Common parts for linux-gnu and openbsd systems
502 xm_defines="HAVE_ATEXIT POSIX BSTRING"
505 tm_file=${cpu_type}/openbsd.h
506 # On OpenBSD systems, the headers are okay
507 fixincludes=Makefile.in
508 tmake_file="t-libc-ok t-openbsd"
509 # avoid surprises, always provide an xm-openbsd file
510 xm_file=${cpu_type}/xm-openbsd.h
511 if test x$enable_threads = xyes; then
513 tmake_file="${tmake_file} t-openbsd-thread"
519 # Support site-specific machine types.
521 cpu_type=`echo $machine | sed -e 's/-.*//'`
522 rest=`echo $machine | sed -e "s/$cpu_type-//"`
523 xm_file=${cpu_type}/xm-$rest.h
524 tm_file=${cpu_type}/$rest.h
525 if test -f $srcdir/config/${cpu_type}/x-$rest; \
526 then xmake_file=${cpu_type}/x-$rest; \
529 if test -f $srcdir/config/${cpu_type}/t-$rest; \
530 then tmake_file=${cpu_type}/t-$rest; \
536 a29k-*-bsd* | a29k-*-sym1*)
537 tm_file="${tm_file} a29k/unix.h"
539 xmake_file=a29k/x-unix
542 a29k-*-udi | a29k-*-coff)
543 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
544 tmake_file=a29k/t-a29kbare
547 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
548 tmake_file=a29k/t-vx29k
549 extra_parts="crtbegin.o crtend.o"
550 thread_file='vxworks'
552 a29k-*-*) # Default a29k environment.
555 alpha*-*-linux-gnuecoff*)
556 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
557 target_cpu_default="MASK_GAS"
562 alpha*-*-linux-gnulibc1*)
563 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
564 target_cpu_default="MASK_GAS"
565 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
566 extra_parts="crtbegin.o crtend.o"
569 if test x$enable_threads = xyes; then
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 alpha/t-linux alpha/t-crtbe"
577 extra_parts="crtbegin.o crtend.o"
580 if test x$enable_threads = xyes; then
585 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
586 target_cpu_default="MASK_GAS"
587 tmake_file="alpha/t-crtbe"
588 extra_parts="crtbegin.o crtend.o"
594 # default x-alpha is only appropriate for dec-osf.
595 target_cpu_default="MASK_GAS"
600 if test x$stabs = xyes
602 tm_file="${tm_file} dbx.h"
604 if test x$gas != xyes
606 extra_passes="mips-tfile mips-tdump"
611 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
616 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
619 tm_file="${tm_file} alpha/osf.h"
620 # Some versions of OSF4 (specifically X4.0-9 296.7) have
621 # a broken tar, so we use cpio instead.
622 install_headers_dir=install-headers-cpio
627 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
629 target_cpu_default=MASK_SUPPORT_ARCH
634 tm_file="${tm_file} dbx.h alpha/vxworks.h"
637 extra_passes="mips-tfile mips-tdump"
642 tm_file="${tm_file} alpha/win-nt.h"
643 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
645 xmake_file=winnt/x-winnt
646 extra_host_objs=oldnames.o
647 extra_gcc_objs="spawnv.o oldnames.o"
648 if test x$gnu_ld != xyes
650 extra_programs=ld.exe
652 if test x$enable_threads = xyes; then
658 xm_file="${xm_file} alpha/xm-vms.h"
659 tmake_file=alpha/t-vms
662 extra_parts="crtinit.o crtfini.o"
664 arm-*-coff* | armel-*-coff*)
666 tmake_file=arm/t-bare
669 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
671 tm_file=arm/riscix1-1.h
674 arm-*-riscix*) # Acorn RISC machine
677 tm_file=arm/rix-gas.h
681 xmake_file=arm/x-riscix
682 tmake_file=arm/t-riscix
685 arm-semi-aout | armel-semi-aout)
687 tmake_file=arm/t-semi
689 arm-semi-aof | armel-semi-aof)
690 tm_file=arm/semiaof.h
691 tmake_file=arm/t-semiaof
695 xm_file="arm/xm-netbsd.h ${xm_file}"
696 tmake_file="t-netbsd arm/t-netbsd"
698 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
701 tm_file=arm/linux-aout.h
702 tmake_file=arm/t-linux
705 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
706 xm_file=arm/xm-linux.h
710 tm_file=arm/linux-elf26.h
713 tm_file=arm/linux-elf.h
716 tmake_file="t-linux arm/t-linux"
717 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
722 tmake_file=arm/t-bare
725 tm_file=arm/ecos-elf.h
729 tm_file=arm/unknown-elf.h
730 tmake_file=arm/t-arm-elf
733 tm_file=arm/unknown-elf-oabi.h
734 tmake_file=arm/t-arm-elf
736 c1-convex-*) # Convex C1
740 c2-convex-*) # Convex C2
753 target_cpu_default=16
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 target_cpu_default="MASK_SNAKE"
781 tmake_file=pa/t-openbsd
784 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
785 xm_file=pa/xm-papro.h
789 target_cpu_default="MASK_SNAKE"
790 tm_file="${tm_file} pa/pa-osf.h"
794 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
795 xm_file=pa/xm-papro.h
799 tm_file="${tm_file} pa/pa-osf.h"
803 target_cpu_default="MASK_SNAKE"
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]*)
838 target_cpu_default="MASK_SNAKE"
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
852 target_cpu_default="MASK_SNAKE"
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*)
875 target_cpu_default="MASK_SNAKE"
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*)
914 target_cpu_default="MASK_SNAKE"
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*)
937 target_cpu_default="MASK_SNAKE"
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
960 target_cpu_default="MASK_SNAKE"
966 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
970 tm_file=i386/aix386.h
971 extra_parts="crtbegin.o crtend.o"
972 tmake_file=i386/t-crtstuff
974 tm_file=i386/aix386ng.h
977 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
979 xmake_file=i386/x-aix
982 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
984 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
985 xm_defines="USG POSIX SMALL_ARG_MAX"
986 xmake_file=i386/x-ncr3000
987 if test x$stabs = xyes -a x$gas = xyes
989 tm_file=i386/sysv4gdb.h
993 extra_parts="crtbegin.o crtend.o"
994 tmake_file=i386/t-crtpic
1000 xm_file=i386/xm-next.h
1001 tmake_file=i386/t-next
1002 xmake_file=i386/x-next
1003 extra_objs=nextstep.o
1004 extra_parts="crtbegin.o crtend.o"
1005 if test x$enable_threads = xyes; then
1010 i[34567]86-sequent-bsd*) # 80386 from Sequent
1013 if test x$gas = xyes
1015 tm_file=i386/seq-gas.h
1017 tm_file=i386/sequent.h
1021 i[34567]86-sequent-ptx1*)
1023 xm_defines="USG SVR3"
1024 xmake_file=i386/x-sysv3
1025 tm_file=i386/seq-sysv3.h
1026 tmake_file=i386/t-crtstuff
1027 extra_parts="crtbegin.o crtend.o"
1028 install_headers_dir=install-headers-cpio
1031 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1033 xm_defines="USG SVR3"
1034 xmake_file=i386/x-sysv3
1035 tm_file=i386/seq2-sysv3.h
1036 tmake_file=i386/t-crtstuff
1037 extra_parts="crtbegin.o crtend.o"
1038 install_headers_dir=install-headers-cpio
1041 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1043 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1044 xm_defines="USG POSIX SMALL_ARG_MAX"
1046 tm_file=i386/ptx4-i.h
1048 extra_parts="crtbegin.o crtend.o"
1049 install_headers_dir=install-headers-cpio
1051 i386-sun-sunos*) # Sun i386 roadrunner
1057 i[34567]86-wrs-vxworks*)
1059 tm_file=i386/vxi386.h
1060 tmake_file=i386/t-i386bare
1065 tm_file=i386/i386-aout.h
1066 tmake_file=i386/t-i386bare
1069 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1071 tm_file=i386/bsd386.h
1072 # tmake_file=t-libc-ok
1077 tm_file=i386/386bsd.h
1078 # tmake_file=t-libc-ok
1079 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1083 i[34567]86-*-freebsdelf*)
1085 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1086 # On FreeBSD, the headers are already ok, except for math.h.
1087 fixincludes=fixinc.wrap
1088 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1089 tmake_file=i386/t-freebsd
1095 i[34567]86-*-freebsd*)
1097 tm_file=i386/freebsd.h
1098 tmake_file=i386/t-freebsd
1101 i[34567]86-*-netbsd*)
1103 tm_file=i386/netbsd.h
1107 i[34567]86-*-openbsd*)
1109 # Remove when the math emulator is fixed
1110 # we need collect2 until our bug is fixed...
1116 tm_file=i386/i386-coff.h
1117 tmake_file=i386/t-i386bare
1120 i[34567]86-*-isc*) # 80386 running ISC system
1122 xm_file="${xm_file} i386/xm-isc.h"
1123 xm_defines="USG SVR3"
1126 i[34567]86-*-isc[34]*)
1128 xmake_file=i386/x-isc3
1131 xmake_file=i386/x-isc
1134 if test x$gas = xyes -a x$stabs = xyes
1136 tm_file=i386/iscdbx.h
1137 tmake_file=i386/t-svr3dbx
1138 extra_parts="svr3.ifile svr3z.ifile"
1140 tm_file=i386/isccoff.h
1141 tmake_file=i386/t-crtstuff
1142 extra_parts="crtbegin.o crtend.o"
1144 install_headers_dir=install-headers-cpio
1147 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1148 changequote([,])dnl # with a.out format using
1150 xmake_file=x-linux-aout
1151 tmake_file="t-linux-aout i386/t-crtstuff"
1152 tm_file=i386/linux-oldld.h
1157 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1158 changequote([,])dnl # with a.out format
1159 xmake_file=x-linux-aout
1160 tmake_file="t-linux-aout i386/t-crtstuff"
1161 tm_file=i386/linux-aout.h
1166 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1167 changequote([,])dnl # with ELF format using the
1168 # GNU/Linux C library 5
1170 tm_file=i386/linux.h
1171 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1172 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1175 if test x$enable_threads = xyes; then
1176 thread_file='single'
1180 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1181 changequote([,])dnl # with ELF format using glibc 2
1182 # aka GNU/Linux C library 6
1184 tm_file=i386/linux.h
1185 tmake_file="t-linux i386/t-crtstuff"
1186 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1189 if test x$enable_threads = xyes; then
1199 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1201 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1205 i[34567]86-pc-msdosdjgpp*)
1207 xm_file=i386/xm-djgpp.h
1208 tm_file=i386/djgpp.h
1209 tmake_file=i386/t-djgpp
1210 xmake_file=i386/x-djgpp
1214 case $host in *pc-msdosdjgpp*)
1220 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1223 tmake_file=t-libc-ok
1228 i[34567]86-*-lynxos*)
1230 if test x$gas = xyes
1234 tm_file=i386/lynx-ng.h
1236 xm_file=i386/xm-lynx.h
1237 tmake_file=i386/t-i386bare
1244 # tmake_file=t-libc-ok
1248 i[34567]86-*-osfrose*) # 386 using OSF/rose
1250 if test x$elf = xyes
1252 tm_file=i386/osfelf.h
1255 tm_file=i386/osfrose.h
1258 xm_file="i386/xm-osf.h ${xm_file}"
1259 xmake_file=i386/x-osfrose
1260 tmake_file=i386/t-osf
1261 extra_objs=halfpic.o
1264 i[34567]86-go32-rtems*)
1267 xm_file=i386/xm-go32.h
1268 tm_file=i386/go32-rtems.h
1269 tmake_file="i386/t-go32 t-rtems"
1272 i[34567]86-*-rtemself*)
1275 tm_file=i386/rtemself.h
1276 tmake_file="i386/t-i386bare t-rtems"
1279 i[34567]86-*-rtems*)
1282 tm_file=i386/rtems.h
1283 tmake_file="i386/t-i386bare t-rtems"
1286 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1288 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1289 xm_defines="USG SVR3"
1290 xmake_file=i386/x-sco5
1291 install_headers_dir=install-headers-cpio
1293 if test x$gas = xyes
1295 tm_file="i386/sco5gas.h ${tm_file}"
1296 tmake_file=i386/t-sco5gas
1298 tmake_file=i386/t-sco5
1300 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1303 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1305 xm_file="${xm_file} i386/xm-sco.h"
1306 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1307 xmake_file=i386/x-sco4
1308 install_headers_dir=install-headers-cpio
1309 if test x$stabs = xyes
1311 tm_file=i386/sco4dbx.h
1312 tmake_file=i386/t-svr3dbx
1313 extra_parts="svr3.ifile svr3z.rfile"
1316 tmake_file=i386/t-crtstuff
1317 extra_parts="crtbegin.o crtend.o"
1322 i[34567]86-*-sco*) # 80386 running SCO system
1324 xm_file=i386/xm-sco.h
1325 xmake_file=i386/x-sco
1326 install_headers_dir=install-headers-cpio
1327 if test x$stabs = xyes
1329 tm_file=i386/scodbx.h
1330 tmake_file=i386/t-svr3dbx
1331 extra_parts="svr3.ifile svr3z.rfile"
1334 extra_parts="crtbegin.o crtend.o"
1335 tmake_file=i386/t-crtstuff
1340 i[34567]86-*-solaris2*)
1342 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1343 xm_defines="USG POSIX SMALL_ARG_MAX"
1344 if test x$stabs = xyes
1346 tm_file=i386/sol2dbg.h
1350 tmake_file=i386/t-sol2
1351 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1353 if test x$enable_threads = xyes; then
1354 thread_file='solaris'
1358 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1360 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1361 xm_defines="USG POSIX"
1362 tm_file=i386/sysv4.h
1363 if test x$stabs = xyes
1365 tm_file="${tm_file} dbx.h"
1367 tmake_file=i386/t-crtpic
1369 extra_parts="crtbegin.o crtend.o"
1372 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1374 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1375 xm_defines="USG POSIX SMALL_ARG_MAX"
1376 tm_file=i386/sysv4.h
1377 if test x$stabs = xyes
1379 tm_file="${tm_file} dbx.h"
1381 tmake_file=i386/t-crtpic
1383 extra_parts="crtbegin.o crtend.o"
1386 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1388 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1389 xm_defines="USG POSIX"
1391 tmake_file="i386/t-crtpic i386/t-udk"
1393 extra_parts="crtbegin.o crtend.o"
1396 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1399 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1400 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1401 if test x$stabs = xyes
1403 tm_file=i386/osf1elfgdb.h
1405 tm_file=i386/osf1elf.h
1407 tmake_file=i386/t-osf1elf
1408 xmake_file=i386/x-osf1elf
1409 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1412 i[34567]86-*-sysv*) # Intel 80386's running system V
1414 xm_defines="USG SVR3"
1415 xmake_file=i386/x-sysv3
1416 if test x$gas = xyes
1418 if test x$stabs = xyes
1420 tm_file=i386/svr3dbx.h
1421 tmake_file=i386/t-svr3dbx
1422 extra_parts="svr3.ifile svr3z.rfile"
1424 tm_file=i386/svr3gas.h
1425 extra_parts="crtbegin.o crtend.o"
1426 tmake_file=i386/t-crtstuff
1429 tm_file=i386/sysv3.h
1430 extra_parts="crtbegin.o crtend.o"
1431 tmake_file=i386/t-crtstuff
1434 i386-*-vsta) # Intel 80386's running VSTa kernel
1435 xm_file="${xm_file} i386/xm-vsta.h"
1437 tmake_file=i386/t-vsta
1438 xmake_file=i386/x-vsta
1443 xm_file="${xm_file} i386/xm-cygwin.h"
1444 tmake_file=i386/t-cygwin
1445 tm_file=i386/win32.h
1446 xmake_file=i386/x-cygwin
1448 if test x$enable_threads = xyes; then
1454 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1456 xm_file="${xm_file} i386/xm-cygwin.h"
1457 tmake_file=i386/t-cygwin
1458 tm_file=i386/cygwin.h
1459 xmake_file=i386/x-cygwin
1461 if test x$enable_threads = xyes; then
1467 i[34567]86-*-mingw32*)
1469 tm_file=i386/mingw32.h
1470 xm_file="${xm_file} i386/xm-mingw32.h"
1471 tmake_file="i386/t-cygwin i386/t-mingw32"
1473 xmake_file=i386/x-cygwin
1474 if test x$enable_threads = xyes; then
1481 *minwg32crt* | *mingw32*)
1482 tm_file="${tm_file} i386/crtdll.h"
1490 xm_file="${xm_file} i386/xm-uwin.h"
1491 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
1492 tmake_file="i386/t-cygwin i386/t-uwin"
1494 xmake_file=i386/x-cygwin
1495 fixincludes=Makefile.in
1496 if test x$enable_threads = xyes; then
1502 i[34567]86-*-interix*)
1504 tm_file=i386/interix.h
1505 xm_file="${xm_file} xm-interix.h"
1506 xm_defines="USG NO_SYS_SIGLIST"
1507 tmake_file="i386/t-interix"
1508 extra_objs=interix.o
1509 xmake_file=x-interix
1510 fixincludes=fixinc.interix
1511 if [[ x$enable_threads = xyes ]]; then
1514 if [[ x$stabs = xyes ]]; then
1515 tm_file="${tm_file} dbxcoff.h"
1519 i[34567]86-*-winnt3*)
1521 tm_file=i386/win-nt.h
1522 out_file=i386/i386.c
1523 xm_file="xm-winnt.h ${xm_file}"
1524 xmake_file=winnt/x-winnt
1525 tmake_file=i386/t-winnt
1526 extra_host_objs="winnt.o oldnames.o"
1527 extra_gcc_objs="spawnv.o oldnames.o"
1528 if test x$gnu_ld != xyes
1530 extra_programs=ld.exe
1532 if test x$enable_threads = xyes; then
1537 i[34567]86-dg-dgux*)
1539 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1540 xm_defines="USG POSIX"
1541 out_file=i386/dgux.c
1543 tmake_file=i386/t-dgux
1544 xmake_file=i386/x-dgux
1545 install_headers_dir=install-headers-cpio
1547 i860-alliant-*) # Alliant FX/2800
1548 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1549 xm_file="${xm_file}"
1550 xmake_file=i860/x-fx2800
1551 tmake_file=i860/t-fx2800
1552 extra_parts="crtbegin.o crtend.o"
1555 tm_file="${tm_file} i860/bsd.h"
1556 if test x$gas = xyes
1558 tm_file="${tm_file} i860/bsd-gas.h"
1563 tm_file="${tm_file} i860/mach.h"
1564 tmake_file=t-libc-ok
1566 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1567 tm_file="${tm_file} svr3.h i860/paragon.h"
1568 xm_defines="USG SVR3"
1572 tm_file="${tm_file} svr3.h i860/sysv3.h"
1573 xm_defines="USG SVR3"
1574 xmake_file=i860/x-sysv3
1575 extra_parts="crtbegin.o crtend.o"
1578 tm_file="${tm_file} svr4.h i860/sysv4.h"
1579 xm_defines="USG SVR3"
1580 xmake_file=i860/x-sysv4
1582 extra_parts="crtbegin.o crtend.o"
1584 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1585 tm_file="${tm_file} i960/vx960.h"
1586 tmake_file=i960/t-vxworks960
1588 thread_file='vxworks'
1590 i960-wrs-vxworks5* | i960-wrs-vxworks)
1591 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1592 tmake_file=i960/t-vxworks960
1594 thread_file='vxworks'
1597 tm_file="${tm_file} i960/vx960.h"
1598 tmake_file=i960/t-vxworks960
1600 thread_file='vxworks'
1603 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1604 tmake_file=i960/t-960bare
1608 tmake_file="i960/t-960bare t-rtems"
1609 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1612 i960-*-*) # Default i960 environment.
1616 extra_parts="crtinit.o crtfini.o"
1618 m68000-convergent-sysv*)
1620 xm_file="m68k/xm-3b1.h ${xm_file}"
1623 extra_headers=math-68881.h
1625 m68000-hp-bsd*) # HP 9000/200 running BSD
1626 tm_file=m68k/hp2bsd.h
1627 xmake_file=m68k/x-hp2bsd
1629 extra_headers=math-68881.h
1631 m68000-hp-hpux*) # HP 9000 series 300
1632 xm_file="xm_alloca.h ${xm_file}"
1633 xm_defines="USG NO_SYS_SIGLIST"
1634 if test x$gas = xyes
1636 xmake_file=m68k/x-hp320g
1637 tm_file=m68k/hp310g.h
1639 xmake_file=m68k/x-hp320
1640 tm_file=m68k/hp310.h
1642 install_headers_dir=install-headers-cpio
1644 extra_headers=math-68881.h
1649 extra_headers=math-68881.h
1652 tm_file=m68k/sun2o4.h
1654 extra_headers=math-68881.h
1657 xm_file="m68k/xm-3b1.h ${xm_file}"
1659 if test x$gas = xyes
1666 extra_headers=math-68881.h
1668 m68k-apple-aux*) # Apple Macintosh running A/UX
1669 xm_defines="USG AUX"
1670 tmake_file=m68k/t-aux
1671 install_headers_dir=install-headers-cpio
1672 extra_headers=math-68881.h
1673 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1675 if test "$gnu_ld" = yes
1677 tm_file="${tm_file} m68k/auxgld.h"
1679 tm_file="${tm_file} m68k/auxld.h"
1681 if test "$gas" = yes
1683 tm_file="${tm_file} m68k/auxgas.h"
1685 tm_file="${tm_file} m68k/auxas.h"
1687 tm_file="${tm_file} m68k/a-ux.h"
1691 tm_file=m68k/apollo68.h
1692 xmake_file=m68k/x-apollo68
1694 extra_headers=math-68881.h
1697 m68k-altos-sysv*) # Altos 3068
1698 if test x$gas = xyes
1700 tm_file=m68k/altos3068.h
1703 echo "The Altos is supported only with the GNU assembler" 1>&2
1706 extra_headers=math-68881.h
1708 m68k-bull-sysv*) # Bull DPX/2
1709 if test x$gas = xyes
1711 if test x$stabs = xyes
1713 tm_file=m68k/dpx2cdbx.h
1715 tm_file=m68k/dpx2g.h
1720 xm_file="xm-alloca.h ${xm_file}"
1722 xmake_file=m68k/x-dpx2
1724 extra_headers=math-68881.h
1726 m68k-atari-sysv4*) # Atari variant of V.4.
1727 tm_file=m68k/atari.h
1728 xm_file="xm-alloca.h ${xm_file}"
1729 xm_defines="USG FULL_PROTOTYPES"
1731 extra_parts="crtbegin.o crtend.o"
1732 extra_headers=math-68881.h
1735 m68k-motorola-sysv*)
1736 tm_file=m68k/mot3300.h
1737 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1738 xm_defines=NO_SYS_SIGLIST
1739 if test x$gas = xyes
1741 xmake_file=m68k/x-mot3300-gas
1742 if test x$gnu_ld = xyes
1744 tmake_file=m68k/t-mot3300-gald
1746 tmake_file=m68k/t-mot3300-gas
1750 xmake_file=m68k/x-mot3300
1751 if test x$gnu_ld = xyes
1753 tmake_file=m68k/t-mot3300-gld
1755 tmake_file=m68k/t-mot3300
1759 gdb_needs_out_file_path=yes
1760 extra_parts="crt0.o mcrt0.o"
1761 extra_headers=math-68881.h
1764 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1765 tm_file=m68k/tower-as.h
1766 xm_defines="USG SVR3"
1767 xmake_file=m68k/x-tower
1768 extra_parts="crtbegin.o crtend.o"
1769 extra_headers=math-68881.h
1772 tm_file=m68k/plexus.h
1773 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1776 extra_headers=math-68881.h
1780 xm_file="xm-alloca.h ${xm_file}"
1782 extra_headers=math-68881.h
1785 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1786 xm_defines="USG unos"
1787 xmake_file=m68k/x-crds
1790 extra_headers=math-68881.h
1792 m68k-cbm-sysv4*) # Commodore variant of V.4.
1794 xm_file="xm-alloca.h ${xm_file}"
1795 xm_defines="USG FULL_PROTOTYPES"
1796 xmake_file=m68k/x-amix
1798 extra_parts="crtbegin.o crtend.o"
1799 extra_headers=math-68881.h
1803 tm_file=m68k/ccur-GAS.h
1804 xmake_file=m68k/x-ccur
1805 extra_headers=math-68881.h
1809 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1810 tm_file=m68k/hp3bsd44.h
1811 xmake_file=m68k/x-hp3bsd44
1813 extra_headers=math-68881.h
1816 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1817 tm_file=m68k/hp3bsd.h
1819 extra_headers=math-68881.h
1823 if test x$with_fp = xno
1825 tm_file=m68k/isi-nfp.h
1831 extra_headers=math-68881.h
1833 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1834 xm_file="xm_alloca.h ${xm_file}"
1835 xm_defines="USG NO_SYS_SIGLIST"
1836 if test x$gas = xyes
1838 xmake_file=m68k/x-hp320g
1839 tm_file=m68k/hp320g.h
1841 xmake_file=m68k/x-hp320
1842 tm_file=m68k/hpux7.h
1844 install_headers_dir=install-headers-cpio
1846 extra_headers=math-68881.h
1849 m68k-hp-hpux*) # HP 9000 series 300
1850 xm_file="xm_alloca.h ${xm_file}"
1851 xm_defines="USG NO_SYS_SIGLIST"
1852 if test x$gas = xyes
1854 xmake_file=m68k/x-hp320g
1855 tm_file=m68k/hp320g.h
1857 xmake_file=m68k/x-hp320
1858 tm_file=m68k/hp320.h
1860 install_headers_dir=install-headers-cpio
1862 extra_headers=math-68881.h
1866 tm_file=m68k/sun3mach.h
1868 extra_headers=math-68881.h
1872 if test x$gas = xyes
1874 tm_file=m68k/news3gas.h
1876 tm_file=m68k/news3.h
1879 extra_headers=math-68881.h
1882 m68k-sony-bsd* | m68k-sony-newsos*)
1883 if test x$gas = xyes
1885 tm_file=m68k/newsgas.h
1890 extra_headers=math-68881.h
1893 m68k-next-nextstep2*)
1894 tm_file=m68k/next21.h
1895 xm_file="m68k/xm-next.h ${xm_file}"
1896 tmake_file=m68k/t-next
1897 xmake_file=m68k/x-next
1898 extra_objs=nextstep.o
1899 extra_headers=math-68881.h
1903 m68k-next-nextstep3*)
1905 xm_file="m68k/xm-next.h ${xm_file}"
1906 tmake_file=m68k/t-next
1907 xmake_file=m68k/x-next
1908 extra_objs=nextstep.o
1909 extra_parts="crtbegin.o crtend.o"
1910 extra_headers=math-68881.h
1912 if test x$enable_threads = xyes; then
1917 if test x$with_fp = xno
1919 tm_file=m68k/sun3n3.h
1921 tm_file=m68k/sun3o3.h
1925 extra_headers=math-68881.h
1927 m68k-sun-sunos*) # For SunOS 4 (the default).
1928 if test x$with_fp = xno
1930 tm_file=m68k/sun3n.h
1936 extra_headers=math-68881.h
1939 tm_file=m68k/vxm68k.h
1940 tmake_file=m68k/t-vxworks68
1941 extra_headers=math-68881.h
1942 thread_file='vxworks'
1946 tmake_file=m68k/t-m68kbare
1947 tm_file="m68k/m68k-aout.h libgloss.h"
1948 extra_headers=math-68881.h
1952 tmake_file=m68k/t-m68kbare
1953 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1954 extra_headers=math-68881.h
1957 m68020-*-elf* | m68k-*-elf*)
1958 tm_file="m68k/m68020-elf.h libgloss.h"
1959 xm_file=m68k/xm-m68kv.h
1960 tmake_file=m68k/t-m68kelf
1961 header_files=math-68881.h
1964 if test x$gas = xyes
1968 tm_file=m68k/lynx-ng.h
1970 xm_file=m68k/xm-lynx.h
1972 tmake_file=m68k/t-lynx
1973 extra_headers=math-68881.h
1977 tm_file=m68k/netbsd.h
1983 # we need collect2 until our bug is fixed...
1986 m68k-*-sysv3*) # Motorola m68k's running system V.3
1987 xm_file="xm-alloca.h ${xm_file}"
1989 xmake_file=m68k/x-m68kv
1990 extra_parts="crtbegin.o crtend.o"
1991 extra_headers=math-68881.h
1994 m68k-*-sysv4*) # Motorola m68k's running system V.4
1995 tm_file=m68k/m68kv4.h
1996 xm_file="xm-alloca.h ${xm_file}"
1999 extra_parts="crtbegin.o crtend.o"
2000 extra_headers=math-68881.h
2003 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2006 tm_file=m68k/linux-aout.h
2007 tmake_file="t-linux-aout m68k/t-linux-aout"
2008 extra_headers=math-68881.h
2012 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2013 # with ELF format using the
2014 # GNU/Linux C library 5
2016 tm_file=m68k/linux.h
2017 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2018 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2019 extra_headers=math-68881.h
2023 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2024 # with ELF format using glibc 2
2025 # aka the GNU/Linux C library 6.
2027 tm_file=m68k/linux.h
2028 tmake_file="t-linux m68k/t-linux"
2029 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2030 extra_headers=math-68881.h
2033 if test x$enable_threads = xyes; then
2038 tmake_file=m68k/t-m68kbare
2039 tm_file=m68k/m68k-psos.h
2040 extra_headers=math-68881.h
2044 tmake_file="m68k/t-m68kbare t-rtems"
2045 tm_file=m68k/rtems.h
2046 extra_headers=math-68881.h
2053 tm_file=m88k/dguxbcs.h
2054 tmake_file=m88k/t-dguxbcs
2058 tmake_file=m88k/t-dgux
2061 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2062 xmake_file=m88k/x-dgux
2063 if test x$gas = xyes
2065 tmake_file=m88k/t-dgux-gas
2068 m88k-dolphin-sysv3*)
2069 tm_file=m88k/dolph.h
2070 extra_parts="crtbegin.o crtend.o"
2071 xm_file="m88k/xm-sysv3.h ${xm_file}"
2072 xmake_file=m88k/x-dolph
2073 if test x$gas = xyes
2075 tmake_file=m88k/t-m88k-gas
2078 m88k-tektronix-sysv3)
2079 tm_file=m88k/tekXD88.h
2080 extra_parts="crtbegin.o crtend.o"
2081 xm_file="m88k/xm-sysv3.h ${xm_file}"
2082 xmake_file=m88k/x-tekXD88
2083 if test x$gas = xyes
2085 tmake_file=m88k/t-m88k-gas
2089 tm_file=m88k/m88k-aout.h
2092 tm_file=m88k/m88k-coff.h
2093 tmake_file=m88k/t-bug
2097 extra_parts="crtbegin.o crtend.o"
2098 if test x$gas = xyes
2100 tmake_file=m88k/t-luna-gas
2102 tmake_file=m88k/t-luna
2106 tmake_file="${tmake_file} m88k/t-luna-gas"
2109 tm_file=m88k/sysv3.h
2110 extra_parts="crtbegin.o crtend.o"
2111 xm_file="m88k/xm-sysv3.h ${xm_file}"
2112 xmake_file=m88k/x-sysv3
2113 if test x$gas = xyes
2115 tmake_file=m88k/t-m88k-gas
2119 tm_file=m88k/sysv4.h
2120 extra_parts="crtbegin.o crtend.o"
2121 xmake_file=m88k/x-sysv4
2122 tmake_file=m88k/t-sysv4
2124 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2125 tm_file=mips/iris6.h
2126 xm_file=mips/xm-iris6.h
2127 xmake_file=mips/x-iris6
2128 tmake_file=mips/t-iris6
2129 # if test x$enable_threads = xyes; then
2130 # thread_file='irix'
2134 tm_file="mips/elf.h libgloss.h"
2135 tmake_file=mips/t-ecoff
2138 extra_parts="crtbegin.o crtend.o"
2139 thread_file='vxworks'
2141 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2142 tm_file="mips/iris6.h mips/cross64.h"
2144 xm_file="mips/xm-iris5.h"
2145 xmake_file=mips/x-iris
2146 tmake_file=mips/t-cross64
2147 # See comment in mips/iris[56].h files.
2149 # if test x$enable_threads = xyes; then
2150 # thread_file='irix'
2154 if test x$gas = xyes
2156 if test x$stabs = xyes
2158 tm_file=mips/iris5gdb.h
2160 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2163 tm_file=mips/sni-svr4.h
2166 xmake_file=mips/x-sni-svr4
2167 tmake_file=mips/t-mips-gas
2168 if test x$gnu_ld != xyes
2173 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2174 if test x$gas = xyes
2176 tm_file="mips/iris5.h mips/iris5gas.h"
2177 if test x$stabs = xyes
2179 tm_file="${tm_file} dbx.h"
2182 tm_file=mips/iris5.h
2185 xm_file="mips/xm-iris5.h"
2186 xmake_file=mips/x-iris
2187 # mips-tfile doesn't work yet
2188 tmake_file=mips/t-mips-gas
2189 # See comment in mips/iris5.h file.
2191 # if test x$enable_threads = xyes; then
2192 # thread_file='irix'
2195 mips-sgi-irix4loser*) # Mostly like a MIPS.
2196 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2197 if test x$stabs = xyes; then
2198 tm_file="${tm_file} dbx.h"
2201 xmake_file=mips/x-iris
2202 if test x$gas = xyes
2204 tmake_file=mips/t-mips-gas
2206 extra_passes="mips-tfile mips-tdump"
2208 if test x$gnu_ld != xyes
2212 # if test x$enable_threads = xyes; then
2213 # thread_file='irix'
2216 mips-sgi-irix4*) # Mostly like a MIPS.
2217 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2218 if test x$stabs = xyes; then
2219 tm_file="${tm_file} dbx.h"
2222 xmake_file=mips/x-iris
2223 if test x$gas = xyes
2225 tmake_file=mips/t-mips-gas
2227 extra_passes="mips-tfile mips-tdump"
2229 if test x$gnu_ld != xyes
2233 # if test x$enable_threads = xyes; then
2234 # thread_file='irix'
2237 mips-sgi-*) # Mostly like a MIPS.
2238 tm_file="mips/iris3.h ${tm_file}"
2239 if test x$stabs = xyes; then
2240 tm_file="${tm_file} dbx.h"
2243 xmake_file=mips/x-iris3
2244 if test x$gas = xyes
2246 tmake_file=mips/t-mips-gas
2248 extra_passes="mips-tfile mips-tdump"
2250 if test x$gnu_ld != xyes
2255 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2256 tm_file="mips/osfrose.h ${tm_file}"
2257 xmake_file=mips/x-osfrose
2258 tmake_file=mips/t-osfrose
2259 extra_objs=halfpic.o
2262 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2263 tm_file=mips/dec-osf1.h
2264 if test x$stabs = xyes; then
2265 tm_file="${tm_file} dbx.h"
2267 xmake_file=mips/x-dec-osf1
2268 if test x$gas = xyes
2270 tmake_file=mips/t-mips-gas
2272 tmake_file=mips/t-ultrix
2273 extra_passes="mips-tfile mips-tdump"
2275 if test x$gnu_ld != xyes
2280 mips-dec-bsd*) # Decstation running 4.4 BSD
2281 tm_file=mips/dec-bsd.h
2282 if test x$gas = xyes
2284 tmake_file=mips/t-mips-gas
2286 tmake_file=mips/t-ultrix
2287 extra_passes="mips-tfile mips-tdump"
2289 if test x$gnu_ld != xyes
2294 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2295 tm_file=mips/netbsd.h
2296 # On NetBSD, the headers are already okay, except for math.h.
2299 mips*-*-linux*) # Linux MIPS, either endian.
2301 xm_file="xm-siglist.h ${xm_file}"
2303 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2304 *) tm_file="mips/elf.h mips/linux.h" ;;
2306 extra_parts="crtbegin.o crtend.o"
2309 fixincludes=Makefile.in
2311 mips*el-*-openbsd*) # mips little endian
2312 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2313 tm_file=mips/openbsd.h
2316 mips*-*-openbsd*) # mips big endian
2317 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2318 tm_file=mips/openbsd-be.h
2321 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2322 tm_file="mips/news4.h ${tm_file}"
2323 if test x$stabs = xyes; then
2324 tm_file="${tm_file} dbx.h"
2326 if test x$gas = xyes
2328 tmake_file=mips/t-mips-gas
2330 extra_passes="mips-tfile mips-tdump"
2332 if test x$gnu_ld != xyes
2336 xmake_file=mips/x-sony
2338 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2339 # That is based on svr4.
2340 # t-svr4 is not right because this system doesn't use ELF.
2341 tm_file="mips/news5.h ${tm_file}"
2342 if test x$stabs = xyes; then
2343 tm_file="${tm_file} dbx.h"
2345 xm_file="xm-siglist.h ${xm_file}"
2347 if test x$gas = xyes
2349 tmake_file=mips/t-mips-gas
2351 extra_passes="mips-tfile mips-tdump"
2353 if test x$gnu_ld != xyes
2358 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2359 tm_file="mips/svr4-5.h mips/svr4-t.h"
2360 if test x$stabs = xyes; then
2361 tm_file="${tm_file} dbx.h"
2363 xm_file="xm-siglist.h ${xm_file}"
2365 xmake_file=mips/x-sysv
2366 if test x$gas = xyes
2368 tmake_file=mips/t-mips-gas
2369 extra_parts="crtbegin.o crtend.o"
2371 tmake_file=mips/t-mips
2372 extra_passes="mips-tfile mips-tdump"
2374 if test x$gnu_ld != xyes
2379 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2380 tm_file="mips/ultrix.h ${tm_file}"
2381 if test x$stabs = xyes; then
2382 tm_file="${tm_file} dbx.h"
2384 xmake_file=mips/x-ultrix
2385 if test x$gas = xyes
2387 tmake_file=mips/t-mips-gas
2389 tmake_file=mips/t-ultrix
2390 extra_passes="mips-tfile mips-tdump"
2392 if test x$gnu_ld != xyes
2398 mips-*-riscos[56789]bsd*)
2400 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2401 if test x$stabs = xyes; then
2402 tm_file="${tm_file} dbx.h"
2404 if test x$gas = xyes
2406 tmake_file=mips/t-bsd-gas
2408 tmake_file=mips/t-bsd
2409 extra_passes="mips-tfile mips-tdump"
2411 if test x$gnu_ld != xyes
2417 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2419 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2420 if test x$stabs = xyes; then
2421 tm_file="${tm_file} dbx.h"
2423 if test x$gas = xyes
2425 tmake_file=mips/t-bsd-gas
2427 tmake_file=mips/t-bsd
2428 extra_passes="mips-tfile mips-tdump"
2430 if test x$gnu_ld != xyes
2436 mips-*-riscos[56789]sysv4*)
2438 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2439 if test x$stabs = xyes; then
2440 tm_file="${tm_file} dbx.h"
2442 xm_file="xm-siglist.h ${xm_file}"
2443 xmake_file=mips/x-sysv
2444 if test x$gas = xyes
2446 tmake_file=mips/t-svr4-gas
2448 tmake_file=mips/t-svr4
2449 extra_passes="mips-tfile mips-tdump"
2451 if test x$gnu_ld != xyes
2457 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2459 tm_file="mips/svr4-4.h ${tm_file}"
2460 if test x$stabs = xyes; then
2461 tm_file="${tm_file} dbx.h"
2464 xmake_file=mips/x-sysv
2465 if test x$gas = xyes
2467 tmake_file=mips/t-svr4-gas
2469 tmake_file=mips/t-svr4
2470 extra_passes="mips-tfile mips-tdump"
2472 if test x$gnu_ld != xyes
2478 mips-*-riscos[56789]sysv*)
2480 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2481 if test x$stabs = xyes; then
2482 tm_file="${tm_file} dbx.h"
2485 xmake_file=mips/x-sysv
2486 if test x$gas = xyes
2488 tmake_file=mips/t-svr3-gas
2490 tmake_file=mips/t-svr3
2491 extra_passes="mips-tfile mips-tdump"
2493 if test x$gnu_ld != xyes
2498 mips-*-sysv* | mips-*-riscos*sysv*)
2499 tm_file="mips/svr3-4.h ${tm_file}"
2500 if test x$stabs = xyes; then
2501 tm_file="${tm_file} dbx.h"
2504 xmake_file=mips/x-sysv
2505 if test x$gas = xyes
2507 tmake_file=mips/t-svr3-gas
2509 tmake_file=mips/t-svr3
2510 extra_passes="mips-tfile mips-tdump"
2512 if test x$gnu_ld != xyes
2518 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2520 tm_file=mips/mips-5.h
2521 if test x$stabs = xyes; then
2522 tm_file="${tm_file} dbx.h"
2524 if test x$gas = xyes
2526 tmake_file=mips/t-mips-gas
2528 extra_passes="mips-tfile mips-tdump"
2530 if test x$gnu_ld != xyes
2538 tm_file=mips/ecoffl.h
2539 if test x$stabs = xyes; then
2540 tm_file="${tm_file} dbx.h"
2542 tmake_file=mips/t-ecoff
2545 tm_file="gofast.h mips/ecoff.h"
2546 if test x$stabs = xyes; then
2547 tm_file="${tm_file} dbx.h"
2549 tmake_file=mips/t-ecoff
2552 tm_file="mips/elfl.h libgloss.h"
2553 tmake_file=mips/t-ecoff
2556 tm_file="mips/elf.h libgloss.h"
2557 tmake_file=mips/t-ecoff
2560 tm_file="mips/elfl64.h libgloss.h"
2561 tmake_file=mips/t-ecoff
2563 mips64orionel-*-elf*)
2564 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2565 tmake_file=mips/t-ecoff
2568 tm_file="mips/elf64.h libgloss.h"
2569 tmake_file=mips/t-ecoff
2572 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2573 tmake_file=mips/t-ecoff
2575 mips64orion-*-rtems*)
2576 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2577 tmake_file="mips/t-ecoff t-rtems"
2580 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2581 tmake_file=mips/t-r3900
2584 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2585 tmake_file=mips/t-r3900
2586 # FIXME mips-elf should be fixed to use crtstuff.
2589 mips-*-*) # Default MIPS RISC-OS 4.0.
2590 if test x$stabs = xyes; then
2591 tm_file="${tm_file} dbx.h"
2593 if test x$gas = xyes
2595 tmake_file=mips/t-mips-gas
2597 extra_passes="mips-tfile mips-tdump"
2599 if test x$gnu_ld != xyes
2606 tm_file="mn10200/mn10200.h"
2607 if test x$stabs = xyes
2609 tm_file="${tm_file} dbx.h"
2615 tm_file="mn10300/mn10300.h"
2616 if test x$stabs = xyes
2618 tm_file="${tm_file} dbx.h"
2623 tm_file=ns32k/encore.h
2627 tm_file=ns32k/sequent.h
2631 tm_file=ns32k/tek6100.h
2635 tm_file=ns32k/tek6200.h
2638 # This has not been updated to GCC 2.
2641 # xmake_file=ns32k/x-genix
2642 # tm_file=ns32k/genix.h
2646 tm_file=ns32k/merlin.h
2650 tm_file=ns32k/pc532-mach.h
2654 tm_file=ns32k/pc532-min.h
2655 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2660 tm_file=ns32k/netbsd.h
2661 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2662 # On NetBSD, the headers are already okay, except for math.h.
2666 tm_file="${tm_file} pdp11/2bsd.h"
2675 xmake_file=pyr/x-pyr
2682 xmake_file=romp/x-mach
2689 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2694 tm_file=rs6000/beos.h
2695 xm_file=rs6000/xm-beos.h
2696 tmake_file=rs6000/t-beos
2697 xmake_file=rs6000/x-beos
2699 powerpc-*-sysv* | powerpc-*-elf*)
2700 tm_file=rs6000/sysv4.h
2701 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2702 xm_defines="USG POSIX"
2703 extra_headers=ppc-asm.h
2704 if test x$gas = xyes
2706 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2708 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2710 xmake_file=rs6000/x-sysv4
2713 tm_file=rs6000/eabiaix.h
2714 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2715 extra_headers=ppc-asm.h
2718 tm_file=rs6000/eabisim.h
2719 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2720 extra_headers=ppc-asm.h
2723 tm_file=rs6000/eabi.h
2724 if test x$gas = xyes
2726 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2728 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2730 extra_headers=ppc-asm.h
2733 tm_file=rs6000/rtems.h
2734 if test x$gas = xyes
2736 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2738 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2740 extra_headers=ppc-asm.h
2742 powerpc-*-linux-gnulibc1)
2743 tm_file=rs6000/linux.h
2744 xm_file=rs6000/xm-sysv4.h
2745 out_file=rs6000/rs6000.c
2746 if test x$gas = xyes
2748 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2750 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2753 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2754 extra_headers=ppc-asm.h
2755 if test x$enable_threads = xyes; then
2759 powerpc-*-linux-gnu*)
2760 tm_file=rs6000/linux.h
2761 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2762 xm_defines="USG ${xm_defines}"
2763 out_file=rs6000/rs6000.c
2764 if test x$gas = xyes
2766 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2768 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2771 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2772 extra_headers=ppc-asm.h
2773 if test x$enable_threads = xyes; then
2777 powerpc-wrs-vxworks*)
2779 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2780 xm_defines="USG POSIX"
2781 tm_file=rs6000/vxppc.h
2782 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2783 extra_headers=ppc-asm.h
2784 thread_file='vxworks'
2786 powerpcle-*-sysv* | powerpcle-*-elf*)
2787 tm_file=rs6000/sysv4le.h
2788 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2789 xm_defines="USG POSIX"
2790 if test x$gas = xyes
2792 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2794 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2796 xmake_file=rs6000/x-sysv4
2797 extra_headers=ppc-asm.h
2799 powerpcle-*-eabisim*)
2800 tm_file=rs6000/eabilesim.h
2801 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2802 extra_headers=ppc-asm.h
2805 tm_file=rs6000/eabile.h
2806 if test x$gas = xyes
2808 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2810 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2812 extra_headers=ppc-asm.h
2814 powerpcle-*-winnt* )
2815 tm_file=rs6000/win-nt.h
2816 tmake_file=rs6000/t-winnt
2818 if test x$enable_threads = xyes; then
2821 extra_headers=ppc-asm.h
2823 powerpcle-*-pe | powerpcle-*-cygwin*)
2824 tm_file=rs6000/cygwin.h
2825 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2826 tmake_file=rs6000/t-winnt
2827 xmake_file=rs6000/x-cygwin
2829 if test x$enable_threads = xyes; then
2833 extra_headers=ppc-asm.h
2835 powerpcle-*-solaris2*)
2836 tm_file=rs6000/sol2.h
2837 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2838 xm_defines="USG POSIX"
2839 if test x$gas = xyes
2841 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2843 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2845 xmake_file=rs6000/x-sysv4
2846 extra_headers=ppc-asm.h
2849 rs6000-ibm-aix3.[01]*)
2851 tm_file=rs6000/aix31.h
2852 xmake_file=rs6000/x-aix31
2857 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2859 tm_file=rs6000/aix3newas.h
2860 if test x$host != x$target
2862 tmake_file=rs6000/t-xnewas
2864 tmake_file=rs6000/t-newas
2870 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2872 if test "$gnu_ld" = yes
2874 tm_file=rs6000/aix41-gld.h
2876 tm_file=rs6000/aix41.h
2878 if test x$host != x$target
2880 tmake_file=rs6000/t-xnewas
2882 tmake_file=rs6000/t-newas
2884 xmake_file=rs6000/x-aix41
2889 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2891 tm_file=rs6000/aix43.h
2892 if test x$host != x$target
2894 tmake_file=rs6000/t-xaix43
2896 tmake_file=rs6000/t-aix43
2898 xmake_file=rs6000/x-aix43
2903 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2905 tm_file=rs6000/aix43.h
2906 if test x$host != x$target
2908 tmake_file=rs6000/t-xaix43
2910 tmake_file=rs6000/t-aix43
2912 xmake_file=rs6000/x-aix43
2925 tm_file=rs6000/mach.h
2926 xm_file="${xm_file} rs6000/xm-mach.h"
2927 xmake_file=rs6000/x-mach
2931 tm_file=rs6000/lynx.h
2932 xm_file=rs6000/xm-lynx.h
2933 tmake_file=rs6000/t-rs6000
2934 xmake_file=rs6000/x-lynx
2942 tmake_file="sh/t-sh t-rtems"
2943 tm_file=sh/rtemself.h
2947 tmake_file="sh/t-sh t-rtems"
2956 xm_file="xm-alloca.h ${xm_file}"
2959 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2960 tm_file=sparc/vxsparc.h
2961 tmake_file=sparc/t-vxsparc
2963 thread_file='vxworks'
2966 tmake_file=sparc/t-sparcbare
2967 tm_file="sparc/aout.h libgloss.h"
2970 tm_file=sparc/netbsd.h
2974 # we need collect2 until our bug is fixed...
2982 tmake_file=sparc/t-elf
2983 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2987 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2988 xm_file="${xm_file} sparc/xm-linux.h"
2989 tm_file=sparc/linux-aout.h
2993 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2994 xm_file="${xm_file} sparc/xm-linux.h"
2996 tm_file=sparc/linux.h
2997 tmake_file="t-linux t-linux-gnulibc1"
2998 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3001 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3002 xm_file="${xm_file} sparc/xm-linux.h"
3004 tm_file=sparc/linux.h
3005 tmake_file="t-linux"
3006 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3008 if test x$enable_threads = xyes; then
3013 if test x$gas = xyes
3015 tm_file=sparc/lynx.h
3017 tm_file=sparc/lynx-ng.h
3019 xm_file=sparc/xm-lynx.h
3020 tmake_file=sparc/t-sunos41
3024 tmake_file="sparc/t-sparcbare t-rtems"
3025 tm_file=sparc/rtems.h
3027 sparcv9-*-solaris2*)
3028 tm_file=sparc/sol2-sld-64.h
3029 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3030 xm_defines="USG POSIX"
3031 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3032 xmake_file=sparc/x-sysv4
3033 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3035 if test x${enable_threads} = x ; then
3036 enable_threads=$have_pthread_h
3037 if test x${enable_threads} = x ; then
3038 enable_threads=$have_thread_h
3041 if test x${enable_threads} = xyes ; then
3042 if test x${have_pthread_h} = xyes ; then
3045 thread_file='solaris'
3049 sparc-hal-solaris2*)
3050 xm_file=sparc/xm-sol2.h
3051 tm_file="sparc/sol2.h sparc/hal.h"
3052 tmake_file="sparc/t-halos sparc/t-sol2"
3053 xmake_file=sparc/x-sysv4
3054 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3055 fixincludes=fixinc.svr4
3059 if test x$gnu_ld = xyes
3061 tm_file=sparc/sol2.h
3063 tm_file=sparc/sol2-sld.h
3065 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3066 xm_defines="USG POSIX"
3067 tmake_file=sparc/t-sol2
3068 xmake_file=sparc/x-sysv4
3069 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3080 if test x${enable_threads} = x; then
3081 enable_threads=$have_pthread_h
3082 if test x${enable_threads} = x; then
3083 enable_threads=$have_thread_h
3086 if test x${enable_threads} = xyes; then
3087 if test x${have_pthread_h} = xyes; then
3090 thread_file='solaris'
3095 tm_file=sparc/sunos4.h
3096 tmake_file=sparc/t-sunos40
3100 tm_file=sparc/sunos4.h
3101 tmake_file=sparc/t-sunos41
3103 if test x$gas = xyes; then
3104 tm_file="${tm_file} sparc/sun4gas.h"
3108 tm_file=sparc/sun4o3.h
3112 tm_file=sparc/sysv4.h
3113 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3114 xm_defines="USG POSIX"
3116 xmake_file=sparc/x-sysv4
3117 extra_parts="crtbegin.o crtend.o"
3120 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3121 xm_defines="USG POSIX"
3122 tm_file=sparc/vxsim.h
3123 tmake_file=sparc/t-vxsparc
3124 xmake_file=sparc/x-sysv4
3127 tm_file="sparc/splet.h libgloss.h"
3128 tmake_file=sparc/t-splet
3131 tm_file="sparc/litecoff.h libgloss.h"
3132 tmake_file=sparc/t-sparclite
3135 tm_file="sparc/lite.h aoutos.h libgloss.h"
3136 tmake_file=sparc/t-sparclite
3139 tmake_file=sparc/t-sp64
3140 tm_file=sparc/sp64-aout.h
3143 tmake_file=sparc/t-sp64
3144 tm_file=sparc/sp64-elf.h
3145 extra_parts="crtbegin.o crtend.o"
3147 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3148 tmake_file="t-linux sparc/t-linux64"
3149 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3150 tm_file=sparc/linux64.h
3152 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3155 # This hasn't been upgraded to GCC 2.
3156 # tahoe-harris-*) # Harris tahoe, using COFF.
3157 # tm_file=tahoe/harris.h
3159 # tahoe-*-bsd*) # tahoe running BSD
3161 thumb-*-coff* | thumbel-*-coff*)
3163 out_file=arm/thumb.c
3164 xm_file=arm/xm-thumb.h
3165 md_file=arm/thumb.md
3166 tmake_file=arm/t-thumb
3168 # This hasn't been upgraded to GCC 2.
3175 tm_file="v850/v850.h"
3176 xm_file="v850/xm-v850.h"
3177 tmake_file=v850/t-v850
3178 if test x$stabs = xyes
3180 tm_file="${tm_file} dbx.h"
3184 vax-*-bsd*) # vaxen running BSD
3188 vax-*-sysv*) # vaxen running system V
3189 tm_file="${tm_file} vax/vaxv.h"
3194 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3199 tmake_file="${tm_file} vax/t-openbsd"
3201 vax-*-ultrix*) # vaxen running ultrix
3202 tm_file="${tm_file} vax/ultrix.h"
3206 vax-*-vms*) # vaxen running VMS
3207 xm_file=vax/xm-vms.h
3211 vax-*-*) # vax default entry
3215 xm_file="${xm_file} xm-svr3"
3219 echo "Configuration $machine not supported" 1>&2
3226 ;; # Existing GNU/Linux systems do not use the GNU setup.
3228 # On the GNU system, the setup is just about the same on
3229 # each different CPU. The specific machines that GNU
3230 # supports are matched above and just set $cpu_type.
3231 xm_file="xm-gnu.h ${xm_file}"
3232 tm_file=${cpu_type}/gnu.h
3233 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3234 # GNU always uses ELF.
3236 # GNU tools are the only tools.
3239 xmake_file=x-linux # These details are the same as Linux.
3240 tmake_file=t-gnu # These are not.
3243 xmake_try_sysv=x-sysv
3244 install_headers_dir=install-headers-cpio
3247 install_headers_dir=install-headers-cpio
3251 # Distinguish i[34567]86
3252 # Also, do not run mips-tfile on MIPS if using gas.
3253 # Process --with-cpu= for PowerPC/rs6000
3254 target_cpu_default2=
3257 target_cpu_default2=1
3260 target_cpu_default2=2
3262 i686-*-* | i786-*-*)
3263 target_cpu_default2=3
3268 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
3271 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3274 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3277 target_cpu_default2="MASK_CPU_EV5"
3281 if test x$gas = xyes
3283 if test "$target_cpu_default2" = ""
3285 target_cpu_default2="MASK_GAS"
3287 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3292 case "x$with_cpu" in
3295 target_cpu_default2="TARGET_CPU_generic"
3298 # Distinguish cores, and major variants
3299 # arm7m doesn't exist, but D & I don't affect code
3300 xarm[23678] | xarm250 | xarm[67][01]0 \
3301 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3302 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3303 | xstrongarm | xstrongarm110 | xstrongarm1100)
3304 target_cpu_default2="TARGET_CPU_$with_cpu"
3308 echo "--with-cpu must be passed a value" 1>&2
3313 if test x$pass2done = xyes
3315 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3322 mips*-*-ecoff* | mips*-*-elf*)
3323 if test x$gas = xyes
3325 if test x$gnu_ld = xyes
3327 target_cpu_default2=20
3329 target_cpu_default2=16
3334 if test x$gas = xyes
3336 target_cpu_default2=16
3339 powerpc*-*-* | rs6000-*-*)
3340 case "x$with_cpu" in
3344 xcommon | xpower | xpower2 | xpowerpc | xrios \
3345 | xrios1 | xrios2 | xrsc | xrsc1 \
3346 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3347 | xec603e | x740 | x750 | x401 \
3348 | x403 | x505 | x801 | x821 | x823 | x860)
3349 target_cpu_default2="\"$with_cpu\""
3353 echo "--with-cpu must be passed a value" 1>&2
3358 if test x$pass2done = xyes
3360 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3367 case ".$with_cpu" in
3369 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3371 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3372 target_cpu_default2="TARGET_CPU_$with_cpu"
3375 if test x$pass2done = xyes
3377 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3385 if test "$target_cpu_default2" != ""
3387 if test "$target_cpu_default" != ""
3389 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3391 target_cpu_default=$target_cpu_default2
3395 # No need for collect2 if we have the GNU linker.
3396 # Actually, there is now; GNU ld doesn't handle the EH info or
3397 # collecting for shared libraries.
3404 # Save data on machine being used to compile GCC in build_xm_file.
3405 # Save data on host machine in vars host_xm_file and host_xmake_file.
3406 if test x$pass1done = x
3408 if test x"$xm_file" = x
3409 then build_xm_file=$cpu_type/xm-$cpu_type.h
3410 else build_xm_file=$xm_file
3412 build_xm_defines=$xm_defines
3413 build_install_headers_dir=$install_headers_dir
3414 build_exeext=$exeext
3417 if test x$pass2done = x
3419 if test x"$xm_file" = x
3420 then host_xm_file=$cpu_type/xm-$cpu_type.h
3421 else host_xm_file=$xm_file
3423 host_xm_defines=$xm_defines
3424 if test x"$xmake_file" = x
3425 then xmake_file=$cpu_type/x-$cpu_type
3427 host_xmake_file="$xmake_file"
3428 host_truncate_target=$truncate_target
3429 host_extra_gcc_objs=$extra_gcc_objs
3430 host_extra_objs=$extra_host_objs
3437 extra_objs="${host_extra_objs} ${extra_objs}"
3439 # Default the target-machine variables that were not explicitly set.
3440 if test x"$tm_file" = x
3441 then tm_file=$cpu_type/$cpu_type.h; fi
3443 if test x$extra_headers = x
3444 then extra_headers=; fi
3446 if test x"$xm_file" = x
3447 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3449 if test x$md_file = x
3450 then md_file=$cpu_type/$cpu_type.md; fi
3452 if test x$out_file = x
3453 then out_file=$cpu_type/$cpu_type.c; fi
3455 if test x"$tmake_file" = x
3456 then tmake_file=$cpu_type/t-$cpu_type
3459 if test x"$dwarf2" = xyes
3460 then tm_file="tm-dwarf2.h $tm_file"
3463 if test x$float_format = x
3464 then float_format=i64
3467 if test $float_format = none
3468 then float_h_file=Makefile.in
3469 else float_h_file=float-$float_format.h
3472 if test x$enable_haifa = x
3475 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3480 # Handle cpp installation.
3481 if [[ x$enable_cpp != x ]]
3483 tmake_file="$tmake_file t-install-cpp"
3486 # Say what files are being used for the output code and MD file.
3487 echo "Using \`$srcdir/config/$out_file' to output insns."
3488 echo "Using \`$srcdir/config/$md_file' as machine description file."
3491 for f in $tm_file; do
3494 if test $count = ax; then
3495 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3497 echo "Using the following target machine macro files:"
3498 for f in $tm_file; do
3499 echo " $srcdir/config/$f"
3504 for f in $host_xm_file; do
3507 if test $count = ax; then
3508 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3510 echo "Using the following host machine macro files:"
3511 for f in $host_xm_file; do
3512 echo " $srcdir/config/$f"
3516 if test "$host_xm_file" != "$build_xm_file"; then
3518 for f in $build_xm_file; do
3521 if test $count = ax; then
3522 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3524 echo "Using the following build machine macro files:"
3525 for f in $build_xm_file; do
3526 echo " $srcdir/config/$f"
3531 if test x$thread_file = x; then
3532 if test x$target_thread_file != x; then
3533 thread_file=$target_thread_file
3535 thread_file='single'
3539 # Set up the header files.
3540 # $links is the list of header files to create.
3541 # $vars is the list of shell variables with file names to include.
3542 # auto-host.h is the file containing items generated by autoconf and is
3543 # the first file included by config.h.
3545 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3547 # If host=build, it is correct to have hconfig include auto-host.h
3548 # as well. If host!=build, we are in error and need to do more
3549 # work to find out the build config parameters.
3550 if test x$host = x$build
3552 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3554 # We create a subdir, then run autoconf in the subdir.
3555 # To prevent recursion we set host and build for the new
3556 # invocation of configure to the build for this invocation
3563 /*) realsrcdir=${srcdir};;
3564 *) realsrcdir=../${srcdir};;
3566 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3567 --target=$target --host=$build --build=$build
3569 # We just finished tests for the build machine, so rename
3570 # the file auto-build.h in the gcc directory.
3571 mv auto-host.h ../auto-build.h
3574 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3577 xm_file="gansidecl.h ${xm_file}"
3578 tm_file="gansidecl.h ${tm_file}"
3580 vars="host_xm_file tm_file xm_file build_xm_file"
3581 links="config.h tm.h tconfig.h hconfig.h"
3582 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3585 if test -f config.status; then mv -f config.status config.bak; fi
3588 while test -n "$vars"
3590 set $vars; var=$1; shift; vars=$*
3591 set $links; link=$1; shift; links=$*
3592 set $defines; define=$1; shift; defines=$*
3596 # Define TARGET_CPU_DEFAULT if the system wants one.
3597 # This substitutes for lots of *.h files.
3598 if test "$target_cpu_default" != "" -a $link = tm.h
3600 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3603 for file in `eval echo '$'$var`; do
3608 echo '#ifdef IN_GCC' >>$link
3611 echo "#include \"$file\"" >>$link
3616 echo '#endif' >>$link
3621 for def in `eval echo '$'$define`; do
3622 echo "#ifndef $def" >>$link
3623 echo "#define $def" >>$link
3624 echo "#endif" >>$link
3628 # Truncate the target if necessary
3629 if test x$host_truncate_target != x; then
3630 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3633 # Get the version trigger filename from the toplevel
3634 if test "${with_gcc_version_trigger+set}" = set; then
3635 gcc_version_trigger=$with_gcc_version_trigger
3637 gcc_version_trigger=${srcdir}/version.c
3640 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3643 # Internationalization
3645 VERSION="$gcc_version"
3646 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3647 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3653 # NLS support is still experimental, so disable it by default for now.
3655 [ --enable-nls use Native Language Support (disabled by default)],
3659 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3661 # Get an absolute path to the GCC top-level source directory
3667 # Conditionalize the makefile for this host machine.
3668 # Make-host contains the concatenation of all host makefile fragments
3669 # [there can be more than one]. This file is built by configure.frag.
3670 host_overrides=Make-host
3671 dep_host_xmake_file=
3672 for f in .. ${host_xmake_file}
3674 if test -f ${srcdir}/config/$f
3676 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3680 # Conditionalize the makefile for this target machine.
3681 # Make-target contains the concatenation of all host makefile fragments
3682 # [there can be more than one]. This file is built by configure.frag.
3683 target_overrides=Make-target
3685 for f in .. ${tmake_file}
3687 if test -f ${srcdir}/config/$f
3689 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3693 # If the host doesn't support symlinks, modify CC in
3694 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3695 # Otherwise, we can use "CC=$(CC)".
3697 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3699 cc_set_by_configure="\$(CC)"
3700 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3703 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3705 symbolic_link="cp -p"
3709 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3710 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3714 out_object_file=`basename $out_file .c`.o
3717 for f in $tm_file; do
3718 if test $f != "gansidecl.h" ; then
3719 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3721 tm_file_list="${tm_file_list} $f"
3726 for f in $host_xm_file; do
3727 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3728 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3730 host_xm_file_list="${host_xm_file_list} $f"
3735 for f in $build_xm_file; do
3736 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3737 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3739 build_xm_file_list="${build_xm_file_list} $f"
3743 # Define macro CROSS_COMPILE in compilation
3744 # if this is a cross-compiler.
3745 # Also use all.cross instead of all.internal
3746 # and add cross-make to Makefile.
3747 cross_overrides="/dev/null"
3748 if test x$host != x$target
3750 cross_defines="CROSS=-DCROSS_COMPILE"
3751 cross_overrides="${topdir}/cross-make"
3754 # When building gcc with a cross-compiler, we need to fix a few things.
3755 # This must come after cross-make as we want all.build to override
3757 build_overrides="/dev/null"
3758 if test x$build != x$host
3760 build_overrides="${topdir}/build-make"
3763 # Expand extra_headers to include complete path.
3764 # This substitutes for lots of t-* files.
3766 if test "x$extra_headers" = x
3769 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3770 for file in $extra_headers;
3772 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3776 if test x$use_collect2 = xno; then
3780 # Add a definition of USE_COLLECT2 if system wants one.
3781 # Also tell toplev.c what to do.
3782 # This substitutes for lots of t-* files.
3783 if test x$use_collect2 = x
3788 will_use_collect2="collect2"
3789 maybe_use_collect2="-DUSE_COLLECT2"
3793 # Set MD_DEPS if the real md file is in md.pre-cpp.
3794 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3795 # for line oriented comments, so we must always use a GNU cpp. If
3796 # building gcc with a cross compiler, use the cross compiler just
3797 # built. Otherwise, we can use the cpp just built.
3799 if test "x$md_cppflags" = x
3801 md_file_sub=$srcdir/config/$md_file
3806 # If we have gas in the build tree, make a link to it.
3807 if test -f ../gas/Makefile; then
3808 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3811 # If we have nm in the build tree, make a link to it.
3812 if test -f ../binutils/Makefile; then
3813 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3816 # If we have ld in the build tree, make a link to it.
3817 if test -f ../ld/Makefile; then
3818 # if test x$use_collect2 = x; then
3819 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3821 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3825 # Figure out what assembler alignment features are present.
3826 AC_MSG_CHECKING(assembler alignment features)
3828 gcc_cv_as_alignment_features=
3829 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3830 if test -x "$DEFAULT_ASSEMBLER"; then
3831 gcc_cv_as="$DEFAULT_ASSEMBLER"
3832 elif test -x "$AS"; then
3834 elif test -x as$host_exeext; then
3835 # Build using assembler in the current directory.
3836 gcc_cv_as=./as$host_exeext
3837 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3838 # Single tree build which includes gas.
3839 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3842 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3844 if test x$gcc_cv_gas_version != x; then
3849 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3850 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3852 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3853 # Gas version 2.6 and later support for .balign and .p2align.
3854 # bytes to skip when using .p2align.
3855 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
3856 gcc_cv_as_alignment_features=".balign and .p2align"
3857 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3859 # Gas version 2.8 and later support specifying the maximum
3860 # bytes to skip when using .p2align.
3861 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
3862 gcc_cv_as_alignment_features=".p2align including maximum skip"
3863 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3866 elif test x$host = x$target; then
3868 gcc_cv_as=as$host_exeext
3870 if test x$gcc_cv_as != x; then
3871 # Check if we have .balign and .p2align
3872 echo ".balign 4" > conftest.s
3873 echo ".p2align 2" >> conftest.s
3874 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3875 gcc_cv_as_alignment_features=".balign and .p2align"
3876 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3878 rm -f conftest.s conftest.o
3879 # Check if specifying the maximum bytes to skip when
3880 # using .p2align is supported.
3881 echo ".p2align 4,,7" > conftest.s
3882 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3883 gcc_cv_as_alignment_features=".p2align including maximum skip"
3884 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3886 rm -f conftest.s conftest.o
3888 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3890 AC_MSG_CHECKING(assembler subsection support)
3891 gcc_cv_as_subsections=
3892 if test x$gcc_cv_as != x; then
3893 # Check if we have .subsection
3894 echo ".subsection 1" > conftest.s
3895 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3896 gcc_cv_as_subsections=".subsection"
3897 if test -x nm$host_exeext; then
3898 gcc_cv_nm=./nm$host_exeext
3899 elif test x$host = x$target; then
3901 gcc_cv_nm=nm$host_exeext
3903 if test x$gcc_cv_nm != x; then
3904 cat > conftest.s <<EOF
3905 conftest_label1: .word 0
3907 conftest_label2: .word 0
3910 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3911 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3912 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3913 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3916 gcc_cv_as_subsections="working .subsection -1"
3917 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3922 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3924 AC_MSG_RESULT($gcc_cv_as_subsections)
3926 # Figure out what language subdirectories are present.
3927 # Look if the user specified --enable-languages="..."; if not, use
3928 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3930 if test x"${enable_languages+set}" != xset; then
3931 if test x"${LANGUAGES+set}" = xset; then
3932 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
3934 enable_languages=all
3938 for lang in ${srcdir}/*/config-lang.in ..
3942 # The odd quoting in the next line works around
3943 # an apparent bug in bash 1.12 on linux.
3945 ${srcdir}/[*]/config-lang.in) ;;
3947 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
3948 if test "x$lang_alias" = x
3950 echo "$lang doesn't set \$language." 1>&2
3953 if test x"${enable_languages}" = xall; then
3956 case "${enable_languages}" in
3957 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
3965 if test x"${add_this_lang}" = xyes; then
3967 ${srcdir}/ada/config-lang.in)
3968 if test x$gnat = xyes ; then
3969 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3973 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3982 # Make gthr-default.h if we have a thread file.
3984 if test $thread_file != single; then
3985 rm -f gthr-default.h
3986 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3987 gthread_flags=-DHAVE_GTHR_DEFAULT
3989 AC_SUBST(gthread_flags)
3991 # Make empty files to contain the specs and options for each language.
3992 # Then add #include lines to for a compiler that has specs and/or options.
3997 rm -f specs.h options.h gencheck.h
3998 touch specs.h options.h gencheck.h
3999 for subdir in . $subdirs
4001 if test -f $srcdir/$subdir/lang-specs.h; then
4002 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4003 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4005 if test -f $srcdir/$subdir/lang-options.h; then
4006 echo "#include \"$subdir/lang-options.h\"" >>options.h
4007 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4009 if test -f $srcdir/$subdir/$subdir-tree.def; then
4010 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4011 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4015 # These (without "all_") are set in each config-lang.in.
4016 # `language' must be a single word so is spelled singularly.
4022 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
4023 # List of language makefile fragments.
4028 # Add the language fragments.
4029 # Languages are added via two mechanisms. Some information must be
4030 # recorded in makefile variables, these are defined in config-lang.in.
4031 # We accumulate them and plug them into the main Makefile.
4032 # The other mechanism is a set of hooks for each of the main targets
4033 # like `clean', `install', etc.
4035 language_fragments="Make-lang"
4036 language_hooks="Make-hooks"
4039 for s in .. $subdirs
4051 . ${srcdir}/$s/config-lang.in
4052 if test "x$language" = x
4054 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4057 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4058 all_languages="$all_languages $language"
4059 if test "x$boot_language" = xyes
4061 all_boot_languages="$all_boot_languages $language"
4063 all_compilers="$all_compilers $compilers"
4064 all_stagestuff="$all_stagestuff $stagestuff"
4065 all_diff_excludes="$all_diff_excludes $diff_excludes"
4066 all_headers="$all_headers $headers"
4067 all_outputs="$all_outputs $outputs"
4068 if test x$outputs = x
4070 oldstyle_subdirs="$oldstyle_subdirs $s"
4072 all_lib2funcs="$all_lib2funcs $lib2funcs"
4076 # Since we can't use `::' targets, we link each language in
4077 # with a set of hooks, reached indirectly via lang.${target}.
4081 target_list="all.build all.cross start.encap rest.encap \
4083 install-normal install-common install-info install-man \
4085 mostlyclean clean distclean extraclean maintainer-clean \
4086 stage1 stage2 stage3 stage4"
4087 for t in $target_list
4090 for lang in .. $all_languages
4092 if test $lang != ".."; then
4096 echo "lang.$t: $x" >> Make-hooks
4099 # If we're not building in srcdir, create .gdbinit.
4101 if test ! -f Makefile.in; then
4102 echo "dir ." > .gdbinit
4103 echo "dir ${srcdir}" >> .gdbinit
4104 if test x$gdb_needs_out_file_path = xyes
4106 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4108 if test "x$subdirs" != x; then
4111 echo "dir ${srcdir}/$s" >> .gdbinit
4114 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4117 # Define variables host_canonical and build_canonical
4118 # because some Cygnus local changes in the Makefile depend on them.
4119 build_canonical=${build}
4120 host_canonical=${host}
4122 if test "${host}" != "${target}" ; then
4123 target_subdir=${target}/
4125 AC_SUBST(build_canonical)
4126 AC_SUBST(host_canonical)
4127 AC_SUBST(target_subdir)
4129 # If this is using newlib, then define inhibit_libc in
4130 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4131 # libgcc.a, but that's OK because newib should have its own version of
4134 if test x$with_newlib = xyes; then
4135 inhibit_libc=-Dinhibit_libc
4137 AC_SUBST(inhibit_libc)
4139 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4142 if test x$enable_haifa = xyes; then
4143 echo "Using the Haifa scheduler."
4145 sched_cflags=-DHAIFA
4147 AC_SUBST(sched_prefix)
4148 AC_SUBST(sched_cflags)
4149 if test x$enable_haifa != x; then
4150 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4151 for x in genattrtab.o toplev.o *sched.o; do
4159 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4160 # absolute path for gcc_tooldir based on inserting the number of up-directory
4161 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4162 # $(libsubdir)/@(unlibsubdir) based path.
4163 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4164 # make and thus we'd get different behavior depending on where we built the
4166 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4167 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4169 changequote(<<, >>)dnl
4170 # An explanation of the sed strings:
4171 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4172 # -e 's|/$||' match a trailing forward slash and eliminates it
4173 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4174 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4176 # (*) Note this pattern overwrites the first character of the string
4177 # with a forward slash if one is not already present. This is not a
4178 # problem because the exact names of the sub-directories concerned is
4179 # unimportant, just the number of them matters.
4181 # The practical upshot of these patterns is like this:
4183 # prefix exec_prefix result
4184 # ------ ----------- ------
4186 # /foo/ /foo/bar ../
4187 # /foo /foo/bar/ ../
4188 # /foo/ /foo/bar/ ../
4189 # /foo /foo/bar/ugg ../../
4192 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4193 changequote([, ])dnl
4195 AC_SUBST(gcc_tooldir)
4198 # Nothing to do for FLOAT_H, float_format already handled.
4202 # Process the language and host/target makefile fragments.
4203 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4205 # Substitute configuration variables
4207 AC_SUBST(all_boot_languages)
4208 AC_SUBST(all_compilers)
4209 AC_SUBST(all_diff_excludes)
4210 AC_SUBST(all_headers)
4211 AC_SUBST(all_lang_makefiles)
4212 AC_SUBST(all_languages)
4213 AC_SUBST(all_lib2funcs)
4214 AC_SUBST(all_stagestuff)
4215 AC_SUBST(build_exeext)
4216 AC_SUBST(build_install_headers_dir)
4217 AC_SUBST(build_xm_file_list)
4218 AC_SUBST(cc_set_by_configure)
4219 AC_SUBST(cpp_install_dir)
4221 AC_SUBST(dep_host_xmake_file)
4222 AC_SUBST(dep_tmake_file)
4223 AC_SUBST(extra_c_flags)
4224 AC_SUBST(extra_c_objs)
4225 AC_SUBST(extra_cpp_objs)
4226 AC_SUBST(extra_cxx_objs)
4227 AC_SUBST(extra_headers_list)
4228 AC_SUBST(extra_objs)
4229 AC_SUBST(extra_parts)
4230 AC_SUBST(extra_passes)
4231 AC_SUBST(extra_programs)
4232 AC_SUBST(fixinc_defs)
4233 AC_SUBST(float_h_file)
4234 AC_SUBST(gcc_gxx_include_dir)
4235 AC_SUBST(gcc_version)
4236 AC_SUBST(gcc_version_trigger)
4237 AC_SUBST(host_exeext)
4238 AC_SUBST(host_extra_gcc_objs)
4239 AC_SUBST(host_xm_file_list)
4242 AC_SUBST(lang_options_files)
4243 AC_SUBST(lang_specs_files)
4244 AC_SUBST(lang_tree_files)
4245 AC_SUBST(local_prefix)
4246 AC_SUBST(maybe_use_collect2)
4248 AC_SUBST(objc_boehm_gc)
4250 AC_SUBST(out_object_file)
4251 AC_SUBST(stage_prefix_set_by_configure)
4252 AC_SUBST(symbolic_link)
4253 AC_SUBST(thread_file)
4254 AC_SUBST(tm_file_list)
4255 AC_SUBST(will_use_collect2)
4258 AC_SUBST_FILE(target_overrides)
4259 AC_SUBST_FILE(host_overrides)
4260 AC_SUBST(cross_defines)
4261 AC_SUBST_FILE(cross_overrides)
4262 AC_SUBST_FILE(build_overrides)
4263 AC_SUBST_FILE(language_fragments)
4264 AC_SUBST_FILE(language_hooks)
4266 # Echo that links are built
4267 if test x$host = x$target
4275 if test x$host != x$build
4277 str3=" on a $build system"
4280 if test "x$str2" != x || test "x$str3" != x
4285 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4287 if test "x$str2" != x || test "x$str3" != x
4289 echo " ${str2}${str3}." 1>&2
4292 # Truncate the target if necessary
4293 if test x$host_truncate_target != x; then
4294 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4297 # Configure the subdirectories
4298 # AC_CONFIG_SUBDIRS($subdirs)
4300 # Create the Makefile
4301 # and configure language subdirectories
4302 AC_OUTPUT($all_outputs,
4304 . $srcdir/configure.lang
4305 case x$CONFIG_HEADERS in
4306 xauto-host.h:config.in)
4309 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4310 # bootstrapping and the installation procedure can still use
4311 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4312 # FLAGS_TO_PASS has been modified to solve the problem there.
4313 # This is virtually a duplicate of what happens in configure.lang; we do
4314 # an extra check to make sure this only happens if ln -s can be used.
4315 if test "$symbolic_link" = "ln -s"; then
4316 for d in .. ${subdirs} ; do
4317 if test $d != ..; then
4320 for t in stage1 stage2 stage3 stage4 include
4323 $symbolic_link ../$t $t 2>/dev/null
4329 # Avoid having to add intl to our include paths.
4330 if test -f intl/libintl.h; then
4331 echo creating libintl.h
4332 echo '#include "intl/libintl.h"' >libintl.h
4339 target_alias='${target_alias}'
4341 subdirs='${subdirs}'
4342 oldstyle_subdirs='${oldstyle_subdirs}'
4343 symbolic_link='${symbolic_link}'
4344 program_transform_set='${program_transform_set}'
4345 program_transform_name='${program_transform_name}'
4346 dep_host_xmake_file='${dep_host_xmake_file}'
4347 host_xmake_file='${host_xmake_file}'
4348 dep_tmake_file='${dep_tmake_file}'
4349 tmake_file='${tmake_file}'
4350 thread_file='${thread_file}'
4351 gcc_version='${gcc_version}'
4352 gcc_version_trigger='${gcc_version_trigger}'
4353 local_prefix='${local_prefix}'
4354 build_install_headers_dir='${build_install_headers_dir}'
4355 build_exeext='${build_exeext}'
4356 host_exeext='${host_exeext}'
4357 out_file='${out_file}'
4358 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4359 SET_MAKE='${SET_MAKE}'
4360 target_list='${target_list}'
4361 target_overrides='${target_overrides}'
4362 host_overrides='${host_overrides}'
4363 cross_defines='${cross_defines}'
4364 cross_overrides='${cross_overrides}'
4365 build_overrides='${build_overrides}'
4366 cpp_install_dir='${cpp_install_dir}'