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 \
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 target_cpu_default="MASK_NO_FANCY_MATH_387"
1111 # we need collect2 until our bug is fixed...
1117 tm_file=i386/i386-coff.h
1118 tmake_file=i386/t-i386bare
1121 i[34567]86-*-isc*) # 80386 running ISC system
1123 xm_file="${xm_file} i386/xm-isc.h"
1124 xm_defines="USG SVR3"
1127 i[34567]86-*-isc[34]*)
1129 xmake_file=i386/x-isc3
1132 xmake_file=i386/x-isc
1135 if test x$gas = xyes -a x$stabs = xyes
1137 tm_file=i386/iscdbx.h
1138 tmake_file=i386/t-svr3dbx
1139 extra_parts="svr3.ifile svr3z.ifile"
1141 tm_file=i386/isccoff.h
1142 tmake_file=i386/t-crtstuff
1143 extra_parts="crtbegin.o crtend.o"
1145 install_headers_dir=install-headers-cpio
1148 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1149 changequote([,])dnl # with a.out format using
1151 xmake_file=x-linux-aout
1152 tmake_file="t-linux-aout i386/t-crtstuff"
1153 tm_file=i386/linux-oldld.h
1158 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1159 changequote([,])dnl # with a.out format
1160 xmake_file=x-linux-aout
1161 tmake_file="t-linux-aout i386/t-crtstuff"
1162 tm_file=i386/linux-aout.h
1167 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1168 changequote([,])dnl # with ELF format using the
1169 # GNU/Linux C library 5
1171 tm_file=i386/linux.h
1172 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1173 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1176 if test x$enable_threads = xyes; then
1177 thread_file='single'
1181 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1182 changequote([,])dnl # with ELF format using glibc 2
1183 # aka GNU/Linux C library 6
1185 tm_file=i386/linux.h
1186 tmake_file="t-linux i386/t-crtstuff"
1187 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1190 if test x$enable_threads = xyes; then
1200 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1202 xm_file=i386/xm-go32.h
1204 tmake_file=i386/t-go32
1207 i[34567]86-pc-msdosdjgpp*)
1209 xm_file=i386/xm-go32.h
1211 tmake_file=i386/t-go32
1212 xmake_file=i386/x-go32
1223 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1226 tmake_file=t-libc-ok
1231 i[34567]86-*-lynxos*)
1233 if test x$gas = xyes
1237 tm_file=i386/lynx-ng.h
1239 xm_file=i386/xm-lynx.h
1240 tmake_file=i386/t-i386bare
1247 # tmake_file=t-libc-ok
1251 i[34567]86-*-osfrose*) # 386 using OSF/rose
1253 if test x$elf = xyes
1255 tm_file=i386/osfelf.h
1258 tm_file=i386/osfrose.h
1261 xm_file="i386/xm-osf.h ${xm_file}"
1262 xmake_file=i386/x-osfrose
1263 tmake_file=i386/t-osf
1264 extra_objs=halfpic.o
1267 i[34567]86-go32-rtems*)
1270 xm_file=i386/xm-go32.h
1271 tm_file=i386/go32-rtems.h
1272 tmake_file="i386/t-go32 t-rtems"
1275 i[34567]86-*-rtemself*)
1278 tm_file=i386/rtemself.h
1279 tmake_file="i386/t-i386bare t-rtems"
1282 i[34567]86-*-rtems*)
1285 tm_file=i386/rtems.h
1286 tmake_file="i386/t-i386bare t-rtems"
1289 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1291 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1292 xm_defines="USG SVR3"
1293 xmake_file=i386/x-sco5
1294 install_headers_dir=install-headers-cpio
1296 if test x$gas = xyes
1298 tm_file="i386/sco5gas.h ${tm_file}"
1299 tmake_file=i386/t-sco5gas
1301 tmake_file=i386/t-sco5
1303 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1306 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1308 xm_file="${xm_file} i386/xm-sco.h"
1309 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1310 xmake_file=i386/x-sco4
1311 install_headers_dir=install-headers-cpio
1312 if test x$stabs = xyes
1314 tm_file=i386/sco4dbx.h
1315 tmake_file=i386/t-svr3dbx
1316 extra_parts="svr3.ifile svr3z.rfile"
1319 tmake_file=i386/t-crtstuff
1320 extra_parts="crtbegin.o crtend.o"
1325 i[34567]86-*-sco*) # 80386 running SCO system
1327 xm_file=i386/xm-sco.h
1328 xmake_file=i386/x-sco
1329 install_headers_dir=install-headers-cpio
1330 if test x$stabs = xyes
1332 tm_file=i386/scodbx.h
1333 tmake_file=i386/t-svr3dbx
1334 extra_parts="svr3.ifile svr3z.rfile"
1337 extra_parts="crtbegin.o crtend.o"
1338 tmake_file=i386/t-crtstuff
1343 i[34567]86-*-solaris2*)
1345 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1346 xm_defines="USG POSIX SMALL_ARG_MAX"
1347 if test x$stabs = xyes
1349 tm_file=i386/sol2dbg.h
1353 tmake_file=i386/t-sol2
1354 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1356 if test x$enable_threads = xyes; then
1357 thread_file='solaris'
1361 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1363 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1364 xm_defines="USG POSIX"
1365 tm_file=i386/sysv4.h
1366 if test x$stabs = xyes
1368 tm_file="${tm_file} dbx.h"
1370 tmake_file=i386/t-crtpic
1372 extra_parts="crtbegin.o crtend.o"
1375 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1377 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1378 xm_defines="USG POSIX SMALL_ARG_MAX"
1379 tm_file=i386/sysv4.h
1380 if test x$stabs = xyes
1382 tm_file="${tm_file} dbx.h"
1384 tmake_file=i386/t-crtpic
1386 extra_parts="crtbegin.o crtend.o"
1389 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1391 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1392 xm_defines="USG POSIX"
1394 tmake_file="i386/t-crtpic i386/t-udk"
1396 extra_parts="crtbegin.o crtend.o"
1399 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1402 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1403 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1404 if test x$stabs = xyes
1406 tm_file=i386/osf1elfgdb.h
1408 tm_file=i386/osf1elf.h
1410 tmake_file=i386/t-osf1elf
1411 xmake_file=i386/x-osf1elf
1412 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1415 i[34567]86-*-sysv*) # Intel 80386's running system V
1417 xm_defines="USG SVR3"
1418 xmake_file=i386/x-sysv3
1419 if test x$gas = xyes
1421 if test x$stabs = xyes
1423 tm_file=i386/svr3dbx.h
1424 tmake_file=i386/t-svr3dbx
1425 extra_parts="svr3.ifile svr3z.rfile"
1427 tm_file=i386/svr3gas.h
1428 extra_parts="crtbegin.o crtend.o"
1429 tmake_file=i386/t-crtstuff
1432 tm_file=i386/sysv3.h
1433 extra_parts="crtbegin.o crtend.o"
1434 tmake_file=i386/t-crtstuff
1437 i386-*-vsta) # Intel 80386's running VSTa kernel
1438 xm_file="${xm_file} i386/xm-vsta.h"
1440 tmake_file=i386/t-vsta
1441 xmake_file=i386/x-vsta
1446 xm_file="${xm_file} i386/xm-cygwin.h"
1447 tmake_file=i386/t-cygwin
1448 tm_file=i386/win32.h
1449 xmake_file=i386/x-cygwin
1451 if test x$enable_threads = xyes; then
1457 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1459 xm_file="${xm_file} i386/xm-cygwin.h"
1460 tmake_file=i386/t-cygwin
1461 tm_file=i386/cygwin.h
1462 xmake_file=i386/x-cygwin
1464 if test x$enable_threads = xyes; then
1470 i[34567]86-*-mingw32*)
1472 tm_file=i386/mingw32.h
1473 xm_file="${xm_file} i386/xm-mingw32.h"
1474 tmake_file="i386/t-cygwin i386/t-mingw32"
1476 xmake_file=i386/x-cygwin
1477 if test x$enable_threads = xyes; then
1484 *minwg32crt* | *mingw32*)
1485 tm_file="${tm_file} i386/crtdll.h"
1493 xm_file="${xm_file} i386/xm-uwin.h"
1494 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
1495 tmake_file="i386/t-cygwin i386/t-uwin"
1497 xmake_file=i386/x-cygwin
1498 fixincludes=Makefile.in
1499 if test x$enable_threads = xyes; then
1505 i[34567]86-*-winnt3*)
1507 tm_file=i386/win-nt.h
1508 out_file=i386/i386.c
1509 xm_file="xm-winnt.h ${xm_file}"
1510 xmake_file=winnt/x-winnt
1511 tmake_file=i386/t-winnt
1512 extra_host_objs="winnt.o oldnames.o"
1513 extra_gcc_objs="spawnv.o oldnames.o"
1514 if test x$gnu_ld != xyes
1516 extra_programs=ld.exe
1518 if test x$enable_threads = xyes; then
1523 i[34567]86-dg-dgux*)
1525 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1526 xm_defines="USG POSIX"
1527 out_file=i386/dgux.c
1529 tmake_file=i386/t-dgux
1530 xmake_file=i386/x-dgux
1531 install_headers_dir=install-headers-cpio
1533 i860-alliant-*) # Alliant FX/2800
1534 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1535 xm_file="${xm_file}"
1536 xmake_file=i860/x-fx2800
1537 tmake_file=i860/t-fx2800
1538 extra_parts="crtbegin.o crtend.o"
1541 tm_file="${tm_file} i860/bsd.h"
1542 if test x$gas = xyes
1544 tm_file="${tm_file} i860/bsd-gas.h"
1549 tm_file="${tm_file} i860/mach.h"
1550 tmake_file=t-libc-ok
1552 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1553 tm_file="${tm_file} svr3.h i860/paragon.h"
1554 xm_defines="USG SVR3"
1558 tm_file="${tm_file} svr3.h i860/sysv3.h"
1559 xm_defines="USG SVR3"
1560 xmake_file=i860/x-sysv3
1561 extra_parts="crtbegin.o crtend.o"
1564 tm_file="${tm_file} svr4.h i860/sysv4.h"
1565 xm_defines="USG SVR3"
1566 xmake_file=i860/x-sysv4
1568 extra_parts="crtbegin.o crtend.o"
1570 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1571 tm_file="${tm_file} i960/vx960.h"
1572 tmake_file=i960/t-vxworks960
1574 thread_file='vxworks'
1576 i960-wrs-vxworks5* | i960-wrs-vxworks)
1577 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1578 tmake_file=i960/t-vxworks960
1580 thread_file='vxworks'
1583 tm_file="${tm_file} i960/vx960.h"
1584 tmake_file=i960/t-vxworks960
1586 thread_file='vxworks'
1589 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1590 tmake_file=i960/t-960bare
1594 tmake_file="i960/t-960bare t-rtems"
1595 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1598 i960-*-*) # Default i960 environment.
1602 extra_parts="crtinit.o crtfini.o"
1604 m68000-convergent-sysv*)
1606 xm_file="m68k/xm-3b1.h ${xm_file}"
1609 extra_headers=math-68881.h
1611 m68000-hp-bsd*) # HP 9000/200 running BSD
1612 tm_file=m68k/hp2bsd.h
1613 xmake_file=m68k/x-hp2bsd
1615 extra_headers=math-68881.h
1617 m68000-hp-hpux*) # HP 9000 series 300
1618 xm_file="xm_alloca.h ${xm_file}"
1619 xm_defines="USG NO_SYS_SIGLIST"
1620 if test x$gas = xyes
1622 xmake_file=m68k/x-hp320g
1623 tm_file=m68k/hp310g.h
1625 xmake_file=m68k/x-hp320
1626 tm_file=m68k/hp310.h
1628 install_headers_dir=install-headers-cpio
1630 extra_headers=math-68881.h
1635 extra_headers=math-68881.h
1638 tm_file=m68k/sun2o4.h
1640 extra_headers=math-68881.h
1643 xm_file="m68k/xm-3b1.h ${xm_file}"
1645 if test x$gas = xyes
1652 extra_headers=math-68881.h
1654 m68k-apple-aux*) # Apple Macintosh running A/UX
1655 xm_defines="USG AUX"
1656 tmake_file=m68k/t-aux
1657 install_headers_dir=install-headers-cpio
1658 extra_headers=math-68881.h
1659 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1661 if test "$gnu_ld" = yes
1663 tm_file="${tm_file} m68k/auxgld.h"
1665 tm_file="${tm_file} m68k/auxld.h"
1667 if test "$gas" = yes
1669 tm_file="${tm_file} m68k/auxgas.h"
1671 tm_file="${tm_file} m68k/auxas.h"
1673 tm_file="${tm_file} m68k/a-ux.h"
1677 tm_file=m68k/apollo68.h
1678 xmake_file=m68k/x-apollo68
1680 extra_headers=math-68881.h
1683 m68k-altos-sysv*) # Altos 3068
1684 if test x$gas = xyes
1686 tm_file=m68k/altos3068.h
1689 echo "The Altos is supported only with the GNU assembler" 1>&2
1692 extra_headers=math-68881.h
1694 m68k-bull-sysv*) # Bull DPX/2
1695 if test x$gas = xyes
1697 if test x$stabs = xyes
1699 tm_file=m68k/dpx2cdbx.h
1701 tm_file=m68k/dpx2g.h
1706 xm_file="xm-alloca.h ${xm_file}"
1708 xmake_file=m68k/x-dpx2
1710 extra_headers=math-68881.h
1712 m68k-atari-sysv4*) # Atari variant of V.4.
1713 tm_file=m68k/atari.h
1714 xm_file="xm-alloca.h ${xm_file}"
1715 xm_defines="USG FULL_PROTOTYPES"
1717 extra_parts="crtbegin.o crtend.o"
1718 extra_headers=math-68881.h
1721 m68k-motorola-sysv*)
1722 tm_file=m68k/mot3300.h
1723 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1724 xm_defines=NO_SYS_SIGLIST
1725 if test x$gas = xyes
1727 xmake_file=m68k/x-mot3300-gas
1728 if test x$gnu_ld = xyes
1730 tmake_file=m68k/t-mot3300-gald
1732 tmake_file=m68k/t-mot3300-gas
1736 xmake_file=m68k/x-mot3300
1737 if test x$gnu_ld = xyes
1739 tmake_file=m68k/t-mot3300-gld
1741 tmake_file=m68k/t-mot3300
1745 gdb_needs_out_file_path=yes
1746 extra_parts="crt0.o mcrt0.o"
1747 extra_headers=math-68881.h
1750 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1751 tm_file=m68k/tower-as.h
1752 xm_defines="USG SVR3"
1753 xmake_file=m68k/x-tower
1754 extra_parts="crtbegin.o crtend.o"
1755 extra_headers=math-68881.h
1758 tm_file=m68k/plexus.h
1759 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1762 extra_headers=math-68881.h
1766 xm_file="xm-alloca.h ${xm_file}"
1768 extra_headers=math-68881.h
1771 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1772 xm_defines="USG unos"
1773 xmake_file=m68k/x-crds
1776 extra_headers=math-68881.h
1778 m68k-cbm-sysv4*) # Commodore variant of V.4.
1780 xm_file="xm-alloca.h ${xm_file}"
1781 xm_defines="USG FULL_PROTOTYPES"
1782 xmake_file=m68k/x-amix
1784 extra_parts="crtbegin.o crtend.o"
1785 extra_headers=math-68881.h
1789 tm_file=m68k/ccur-GAS.h
1790 xmake_file=m68k/x-ccur
1791 extra_headers=math-68881.h
1795 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1796 tm_file=m68k/hp3bsd44.h
1797 xmake_file=m68k/x-hp3bsd44
1799 extra_headers=math-68881.h
1802 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1803 tm_file=m68k/hp3bsd.h
1805 extra_headers=math-68881.h
1809 if test x$with_fp = xno
1811 tm_file=m68k/isi-nfp.h
1817 extra_headers=math-68881.h
1819 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1820 xm_file="xm_alloca.h ${xm_file}"
1821 xm_defines="USG NO_SYS_SIGLIST"
1822 if test x$gas = xyes
1824 xmake_file=m68k/x-hp320g
1825 tm_file=m68k/hp320g.h
1827 xmake_file=m68k/x-hp320
1828 tm_file=m68k/hpux7.h
1830 install_headers_dir=install-headers-cpio
1832 extra_headers=math-68881.h
1835 m68k-hp-hpux*) # HP 9000 series 300
1836 xm_file="xm_alloca.h ${xm_file}"
1837 xm_defines="USG NO_SYS_SIGLIST"
1838 if test x$gas = xyes
1840 xmake_file=m68k/x-hp320g
1841 tm_file=m68k/hp320g.h
1843 xmake_file=m68k/x-hp320
1844 tm_file=m68k/hp320.h
1846 install_headers_dir=install-headers-cpio
1848 extra_headers=math-68881.h
1852 tm_file=m68k/sun3mach.h
1854 extra_headers=math-68881.h
1858 if test x$gas = xyes
1860 tm_file=m68k/news3gas.h
1862 tm_file=m68k/news3.h
1865 extra_headers=math-68881.h
1868 m68k-sony-bsd* | m68k-sony-newsos*)
1869 if test x$gas = xyes
1871 tm_file=m68k/newsgas.h
1876 extra_headers=math-68881.h
1879 m68k-next-nextstep2*)
1880 tm_file=m68k/next21.h
1881 xm_file="m68k/xm-next.h ${xm_file}"
1882 tmake_file=m68k/t-next
1883 xmake_file=m68k/x-next
1884 extra_objs=nextstep.o
1885 extra_headers=math-68881.h
1889 m68k-next-nextstep3*)
1891 xm_file="m68k/xm-next.h ${xm_file}"
1892 tmake_file=m68k/t-next
1893 xmake_file=m68k/x-next
1894 extra_objs=nextstep.o
1895 extra_parts="crtbegin.o crtend.o"
1896 extra_headers=math-68881.h
1898 if test x$enable_threads = xyes; then
1903 if test x$with_fp = xno
1905 tm_file=m68k/sun3n3.h
1907 tm_file=m68k/sun3o3.h
1911 extra_headers=math-68881.h
1913 m68k-sun-sunos*) # For SunOS 4 (the default).
1914 if test x$with_fp = xno
1916 tm_file=m68k/sun3n.h
1922 extra_headers=math-68881.h
1925 tm_file=m68k/vxm68k.h
1926 tmake_file=m68k/t-vxworks68
1927 extra_headers=math-68881.h
1928 thread_file='vxworks'
1932 tmake_file=m68k/t-m68kbare
1933 tm_file="m68k/m68k-aout.h libgloss.h"
1934 extra_headers=math-68881.h
1938 tmake_file=m68k/t-m68kbare
1939 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1940 extra_headers=math-68881.h
1943 m68020-*-elf* | m68k-*-elf*)
1944 tm_file="m68k/m68020-elf.h libgloss.h"
1945 xm_file=m68k/xm-m68kv.h
1946 tmake_file=m68k/t-m68kelf
1947 header_files=math-68881.h
1950 if test x$gas = xyes
1954 tm_file=m68k/lynx-ng.h
1956 xm_file=m68k/xm-lynx.h
1958 tmake_file=m68k/t-lynx
1959 extra_headers=math-68881.h
1963 tm_file=m68k/netbsd.h
1969 # we need collect2 until our bug is fixed...
1972 m68k-*-sysv3*) # Motorola m68k's running system V.3
1973 xm_file="xm-alloca.h ${xm_file}"
1975 xmake_file=m68k/x-m68kv
1976 extra_parts="crtbegin.o crtend.o"
1977 extra_headers=math-68881.h
1980 m68k-*-sysv4*) # Motorola m68k's running system V.4
1981 tm_file=m68k/m68kv4.h
1982 xm_file="xm-alloca.h ${xm_file}"
1985 extra_parts="crtbegin.o crtend.o"
1986 extra_headers=math-68881.h
1989 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1992 tm_file=m68k/linux-aout.h
1993 tmake_file="t-linux-aout m68k/t-linux-aout"
1994 extra_headers=math-68881.h
1998 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1999 # with ELF format using the
2000 # GNU/Linux C library 5
2002 tm_file=m68k/linux.h
2003 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2004 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2005 extra_headers=math-68881.h
2009 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2010 # with ELF format using glibc 2
2011 # aka the GNU/Linux C library 6.
2013 tm_file=m68k/linux.h
2014 tmake_file="t-linux m68k/t-linux"
2015 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2016 extra_headers=math-68881.h
2019 if test x$enable_threads = xyes; then
2024 tmake_file=m68k/t-m68kbare
2025 tm_file=m68k/m68k-psos.h
2026 extra_headers=math-68881.h
2030 tmake_file="m68k/t-m68kbare t-rtems"
2031 tm_file=m68k/rtems.h
2032 extra_headers=math-68881.h
2039 tm_file=m88k/dguxbcs.h
2040 tmake_file=m88k/t-dguxbcs
2044 tmake_file=m88k/t-dgux
2047 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2048 xmake_file=m88k/x-dgux
2049 if test x$gas = xyes
2051 tmake_file=m88k/t-dgux-gas
2054 m88k-dolphin-sysv3*)
2055 tm_file=m88k/dolph.h
2056 extra_parts="crtbegin.o crtend.o"
2057 xm_file="m88k/xm-sysv3.h ${xm_file}"
2058 xmake_file=m88k/x-dolph
2059 if test x$gas = xyes
2061 tmake_file=m88k/t-m88k-gas
2064 m88k-tektronix-sysv3)
2065 tm_file=m88k/tekXD88.h
2066 extra_parts="crtbegin.o crtend.o"
2067 xm_file="m88k/xm-sysv3.h ${xm_file}"
2068 xmake_file=m88k/x-tekXD88
2069 if test x$gas = xyes
2071 tmake_file=m88k/t-m88k-gas
2075 tm_file=m88k/m88k-aout.h
2078 tm_file=m88k/m88k-coff.h
2079 tmake_file=m88k/t-bug
2083 extra_parts="crtbegin.o crtend.o"
2084 if test x$gas = xyes
2086 tmake_file=m88k/t-luna-gas
2088 tmake_file=m88k/t-luna
2092 tmake_file="${tmake_file} m88k/t-luna-gas"
2095 tm_file=m88k/sysv3.h
2096 extra_parts="crtbegin.o crtend.o"
2097 xm_file="m88k/xm-sysv3.h ${xm_file}"
2098 xmake_file=m88k/x-sysv3
2099 if test x$gas = xyes
2101 tmake_file=m88k/t-m88k-gas
2105 tm_file=m88k/sysv4.h
2106 extra_parts="crtbegin.o crtend.o"
2107 xmake_file=m88k/x-sysv4
2108 tmake_file=m88k/t-sysv4
2110 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2111 tm_file=mips/iris6.h
2112 xm_file=mips/xm-iris6.h
2113 xmake_file=mips/x-iris6
2114 tmake_file=mips/t-iris6
2115 # if test x$enable_threads = xyes; then
2116 # thread_file='irix'
2120 tm_file="mips/elf.h libgloss.h"
2121 tmake_file=mips/t-ecoff
2124 extra_parts="crtbegin.o crtend.o"
2125 thread_file='vxworks'
2127 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2128 tm_file="mips/iris6.h mips/cross64.h"
2130 xm_file="mips/xm-iris5.h"
2131 xmake_file=mips/x-iris
2132 tmake_file=mips/t-cross64
2133 # See comment in mips/iris[56].h files.
2135 # if test x$enable_threads = xyes; then
2136 # thread_file='irix'
2140 if test x$gas = xyes
2142 if test x$stabs = xyes
2144 tm_file=mips/iris5gdb.h
2146 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2149 tm_file=mips/sni-svr4.h
2152 xmake_file=mips/x-sni-svr4
2153 tmake_file=mips/t-mips-gas
2154 if test x$gnu_ld != xyes
2159 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2160 if test x$gas = xyes
2162 tm_file="mips/iris5.h mips/iris5gas.h"
2163 if test x$stabs = xyes
2165 tm_file="${tm_file} dbx.h"
2168 tm_file=mips/iris5.h
2171 xm_file="mips/xm-iris5.h"
2172 xmake_file=mips/x-iris
2173 # mips-tfile doesn't work yet
2174 tmake_file=mips/t-mips-gas
2175 # See comment in mips/iris5.h file.
2177 # if test x$enable_threads = xyes; then
2178 # thread_file='irix'
2181 mips-sgi-irix4loser*) # Mostly like a MIPS.
2182 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2183 if test x$stabs = xyes; then
2184 tm_file="${tm_file} dbx.h"
2187 xmake_file=mips/x-iris
2188 if test x$gas = xyes
2190 tmake_file=mips/t-mips-gas
2192 extra_passes="mips-tfile mips-tdump"
2194 if test x$gnu_ld != xyes
2198 # if test x$enable_threads = xyes; then
2199 # thread_file='irix'
2202 mips-sgi-irix4*) # Mostly like a MIPS.
2203 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2204 if test x$stabs = xyes; then
2205 tm_file="${tm_file} dbx.h"
2208 xmake_file=mips/x-iris
2209 if test x$gas = xyes
2211 tmake_file=mips/t-mips-gas
2213 extra_passes="mips-tfile mips-tdump"
2215 if test x$gnu_ld != xyes
2219 # if test x$enable_threads = xyes; then
2220 # thread_file='irix'
2223 mips-sgi-*) # Mostly like a MIPS.
2224 tm_file="mips/iris3.h ${tm_file}"
2225 if test x$stabs = xyes; then
2226 tm_file="${tm_file} dbx.h"
2229 xmake_file=mips/x-iris3
2230 if test x$gas = xyes
2232 tmake_file=mips/t-mips-gas
2234 extra_passes="mips-tfile mips-tdump"
2236 if test x$gnu_ld != xyes
2241 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2242 tm_file="mips/osfrose.h ${tm_file}"
2243 xmake_file=mips/x-osfrose
2244 tmake_file=mips/t-osfrose
2245 extra_objs=halfpic.o
2248 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2249 tm_file=mips/dec-osf1.h
2250 if test x$stabs = xyes; then
2251 tm_file="${tm_file} dbx.h"
2253 xmake_file=mips/x-dec-osf1
2254 if test x$gas = xyes
2256 tmake_file=mips/t-mips-gas
2258 tmake_file=mips/t-ultrix
2259 extra_passes="mips-tfile mips-tdump"
2261 if test x$gnu_ld != xyes
2266 mips-dec-bsd*) # Decstation running 4.4 BSD
2267 tm_file=mips/dec-bsd.h
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 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2281 tm_file=mips/netbsd.h
2282 # On NetBSD, the headers are already okay, except for math.h.
2285 mips*-*-linux*) # Linux MIPS, either endian.
2287 xm_file="xm-siglist.h ${xm_file}"
2289 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2290 *) tm_file="mips/elf.h mips/linux.h" ;;
2292 extra_parts="crtbegin.o crtend.o"
2295 fixincludes=Makefile.in
2297 mips*el-*-openbsd*) # mips little endian
2298 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2299 tm_file=mips/openbsd.h
2302 mips*-*-openbsd*) # mips big endian
2303 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2304 tm_file=mips/openbsd-be.h
2307 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2308 tm_file="mips/news4.h ${tm_file}"
2309 if test x$stabs = xyes; then
2310 tm_file="${tm_file} dbx.h"
2312 if test x$gas = xyes
2314 tmake_file=mips/t-mips-gas
2316 extra_passes="mips-tfile mips-tdump"
2318 if test x$gnu_ld != xyes
2322 xmake_file=mips/x-sony
2324 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2325 # That is based on svr4.
2326 # t-svr4 is not right because this system doesn't use ELF.
2327 tm_file="mips/news5.h ${tm_file}"
2328 if test x$stabs = xyes; then
2329 tm_file="${tm_file} dbx.h"
2331 xm_file="xm-siglist.h ${xm_file}"
2333 if test x$gas = xyes
2335 tmake_file=mips/t-mips-gas
2337 extra_passes="mips-tfile mips-tdump"
2339 if test x$gnu_ld != xyes
2344 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2345 tm_file="mips/svr4-5.h mips/svr4-t.h"
2346 if test x$stabs = xyes; then
2347 tm_file="${tm_file} dbx.h"
2349 xm_file="xm-siglist.h ${xm_file}"
2351 xmake_file=mips/x-sysv
2352 if test x$gas = xyes
2354 tmake_file=mips/t-mips-gas
2355 extra_parts="crtbegin.o crtend.o"
2357 tmake_file=mips/t-mips
2358 extra_passes="mips-tfile mips-tdump"
2360 if test x$gnu_ld != xyes
2365 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2366 tm_file="mips/ultrix.h ${tm_file}"
2367 if test x$stabs = xyes; then
2368 tm_file="${tm_file} dbx.h"
2370 xmake_file=mips/x-ultrix
2371 if test x$gas = xyes
2373 tmake_file=mips/t-mips-gas
2375 tmake_file=mips/t-ultrix
2376 extra_passes="mips-tfile mips-tdump"
2378 if test x$gnu_ld != xyes
2384 mips-*-riscos[56789]bsd*)
2386 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2387 if test x$stabs = xyes; then
2388 tm_file="${tm_file} dbx.h"
2390 if test x$gas = xyes
2392 tmake_file=mips/t-bsd-gas
2394 tmake_file=mips/t-bsd
2395 extra_passes="mips-tfile mips-tdump"
2397 if test x$gnu_ld != xyes
2403 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2405 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2406 if test x$stabs = xyes; then
2407 tm_file="${tm_file} dbx.h"
2409 if test x$gas = xyes
2411 tmake_file=mips/t-bsd-gas
2413 tmake_file=mips/t-bsd
2414 extra_passes="mips-tfile mips-tdump"
2416 if test x$gnu_ld != xyes
2422 mips-*-riscos[56789]sysv4*)
2424 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2425 if test x$stabs = xyes; then
2426 tm_file="${tm_file} dbx.h"
2428 xm_file="xm-siglist.h ${xm_file}"
2429 xmake_file=mips/x-sysv
2430 if test x$gas = xyes
2432 tmake_file=mips/t-svr4-gas
2434 tmake_file=mips/t-svr4
2435 extra_passes="mips-tfile mips-tdump"
2437 if test x$gnu_ld != xyes
2443 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2445 tm_file="mips/svr4-4.h ${tm_file}"
2446 if test x$stabs = xyes; then
2447 tm_file="${tm_file} dbx.h"
2450 xmake_file=mips/x-sysv
2451 if test x$gas = xyes
2453 tmake_file=mips/t-svr4-gas
2455 tmake_file=mips/t-svr4
2456 extra_passes="mips-tfile mips-tdump"
2458 if test x$gnu_ld != xyes
2464 mips-*-riscos[56789]sysv*)
2466 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2467 if test x$stabs = xyes; then
2468 tm_file="${tm_file} dbx.h"
2471 xmake_file=mips/x-sysv
2472 if test x$gas = xyes
2474 tmake_file=mips/t-svr3-gas
2476 tmake_file=mips/t-svr3
2477 extra_passes="mips-tfile mips-tdump"
2479 if test x$gnu_ld != xyes
2484 mips-*-sysv* | mips-*-riscos*sysv*)
2485 tm_file="mips/svr3-4.h ${tm_file}"
2486 if test x$stabs = xyes; then
2487 tm_file="${tm_file} dbx.h"
2490 xmake_file=mips/x-sysv
2491 if test x$gas = xyes
2493 tmake_file=mips/t-svr3-gas
2495 tmake_file=mips/t-svr3
2496 extra_passes="mips-tfile mips-tdump"
2498 if test x$gnu_ld != xyes
2504 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2506 tm_file=mips/mips-5.h
2507 if test x$stabs = xyes; then
2508 tm_file="${tm_file} dbx.h"
2510 if test x$gas = xyes
2512 tmake_file=mips/t-mips-gas
2514 extra_passes="mips-tfile mips-tdump"
2516 if test x$gnu_ld != xyes
2524 tm_file=mips/ecoffl.h
2525 if test x$stabs = xyes; then
2526 tm_file="${tm_file} dbx.h"
2528 tmake_file=mips/t-ecoff
2531 tm_file="gofast.h mips/ecoff.h"
2532 if test x$stabs = xyes; then
2533 tm_file="${tm_file} dbx.h"
2535 tmake_file=mips/t-ecoff
2538 tm_file="mips/elfl.h libgloss.h"
2539 tmake_file=mips/t-ecoff
2542 tm_file="mips/elf.h libgloss.h"
2543 tmake_file=mips/t-ecoff
2546 tm_file="mips/elfl64.h libgloss.h"
2547 tmake_file=mips/t-ecoff
2549 mips64orionel-*-elf*)
2550 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2551 tmake_file=mips/t-ecoff
2554 tm_file="mips/elf64.h libgloss.h"
2555 tmake_file=mips/t-ecoff
2558 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2559 tmake_file=mips/t-ecoff
2561 mips64orion-*-rtems*)
2562 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2563 tmake_file="mips/t-ecoff t-rtems"
2566 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2567 tmake_file=mips/t-r3900
2570 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2571 tmake_file=mips/t-r3900
2572 # FIXME mips-elf should be fixed to use crtstuff.
2575 mips-*-*) # Default MIPS RISC-OS 4.0.
2576 if test x$stabs = xyes; then
2577 tm_file="${tm_file} dbx.h"
2579 if test x$gas = xyes
2581 tmake_file=mips/t-mips-gas
2583 extra_passes="mips-tfile mips-tdump"
2585 if test x$gnu_ld != xyes
2592 tm_file="mn10200/mn10200.h"
2593 if test x$stabs = xyes
2595 tm_file="${tm_file} dbx.h"
2601 tm_file="mn10300/mn10300.h"
2602 if test x$stabs = xyes
2604 tm_file="${tm_file} dbx.h"
2609 tm_file=ns32k/encore.h
2613 tm_file=ns32k/sequent.h
2617 tm_file=ns32k/tek6100.h
2621 tm_file=ns32k/tek6200.h
2624 # This has not been updated to GCC 2.
2627 # xmake_file=ns32k/x-genix
2628 # tm_file=ns32k/genix.h
2632 tm_file=ns32k/merlin.h
2636 tm_file=ns32k/pc532-mach.h
2640 tm_file=ns32k/pc532-min.h
2641 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2646 tm_file=ns32k/netbsd.h
2647 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2648 # On NetBSD, the headers are already okay, except for math.h.
2652 tm_file="${tm_file} pdp11/2bsd.h"
2661 xmake_file=pyr/x-pyr
2668 xmake_file=romp/x-mach
2675 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2680 tm_file=rs6000/beos.h
2681 xm_file=rs6000/xm-beos.h
2682 tmake_file=rs6000/t-beos
2683 xmake_file=rs6000/x-beos
2685 powerpc-*-sysv* | powerpc-*-elf*)
2686 tm_file=rs6000/sysv4.h
2687 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2688 xm_defines="USG POSIX"
2689 extra_headers=ppc-asm.h
2690 if test x$gas = xyes
2692 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2694 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2696 xmake_file=rs6000/x-sysv4
2699 tm_file=rs6000/eabiaix.h
2700 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2701 extra_headers=ppc-asm.h
2704 tm_file=rs6000/eabisim.h
2705 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2706 extra_headers=ppc-asm.h
2709 tm_file=rs6000/eabi.h
2710 if test x$gas = xyes
2712 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2714 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2716 extra_headers=ppc-asm.h
2719 tm_file=rs6000/rtems.h
2720 if test x$gas = xyes
2722 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2724 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2726 extra_headers=ppc-asm.h
2728 powerpc-*-linux-gnulibc1)
2729 tm_file=rs6000/linux.h
2730 xm_file=rs6000/xm-sysv4.h
2731 out_file=rs6000/rs6000.c
2732 if test x$gas = xyes
2734 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2736 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2739 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2740 extra_headers=ppc-asm.h
2741 if test x$enable_threads = xyes; then
2745 powerpc-*-linux-gnu*)
2746 tm_file=rs6000/linux.h
2747 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2748 xm_defines="USG ${xm_defines}"
2749 out_file=rs6000/rs6000.c
2750 if test x$gas = xyes
2752 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2754 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2757 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2758 extra_headers=ppc-asm.h
2759 if test x$enable_threads = xyes; then
2763 powerpc-wrs-vxworks*)
2765 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2766 xm_defines="USG POSIX"
2767 tm_file=rs6000/vxppc.h
2768 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2769 extra_headers=ppc-asm.h
2770 thread_file='vxworks'
2772 powerpcle-*-sysv* | powerpcle-*-elf*)
2773 tm_file=rs6000/sysv4le.h
2774 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2775 xm_defines="USG POSIX"
2776 if test x$gas = xyes
2778 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2780 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2782 xmake_file=rs6000/x-sysv4
2783 extra_headers=ppc-asm.h
2785 powerpcle-*-eabisim*)
2786 tm_file=rs6000/eabilesim.h
2787 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
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 extra_headers=ppc-asm.h
2800 powerpcle-*-winnt* )
2801 tm_file=rs6000/win-nt.h
2802 tmake_file=rs6000/t-winnt
2804 if test x$enable_threads = xyes; then
2807 extra_headers=ppc-asm.h
2809 powerpcle-*-pe | powerpcle-*-cygwin*)
2810 tm_file=rs6000/cygwin.h
2811 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2812 tmake_file=rs6000/t-winnt
2813 xmake_file=rs6000/x-cygwin
2815 if test x$enable_threads = xyes; then
2819 extra_headers=ppc-asm.h
2821 powerpcle-*-solaris2*)
2822 tm_file=rs6000/sol2.h
2823 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2824 xm_defines="USG POSIX"
2825 if test x$gas = xyes
2827 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2829 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2831 xmake_file=rs6000/x-sysv4
2832 extra_headers=ppc-asm.h
2835 rs6000-ibm-aix3.[01]*)
2837 tm_file=rs6000/aix31.h
2838 xmake_file=rs6000/x-aix31
2842 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2844 tm_file=rs6000/aix3newas.h
2845 if test x$host != x$target
2847 tmake_file=rs6000/t-xnewas
2849 tmake_file=rs6000/t-newas
2854 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2856 if test "$gnu_ld" = yes
2858 tm_file=rs6000/aix41-gld.h
2860 tm_file=rs6000/aix41.h
2862 if test x$host != x$target
2864 tmake_file=rs6000/t-xnewas
2866 tmake_file=rs6000/t-newas
2868 xmake_file=rs6000/x-aix41
2872 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2874 tm_file=rs6000/aix43.h
2875 if test x$host != x$target
2877 tmake_file=rs6000/t-xaix43
2879 tmake_file=rs6000/t-aix43
2881 xmake_file=rs6000/x-aix43
2885 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2887 tm_file=rs6000/aix43.h
2888 if test x$host != x$target
2890 tmake_file=rs6000/t-xaix43
2892 tmake_file=rs6000/t-aix43
2894 xmake_file=rs6000/x-aix43
2904 tm_file=rs6000/mach.h
2905 xm_file="${xm_file} rs6000/xm-mach.h"
2906 xmake_file=rs6000/x-mach
2910 tm_file=rs6000/lynx.h
2911 xm_file=rs6000/xm-lynx.h
2912 tmake_file=rs6000/t-rs6000
2913 xmake_file=rs6000/x-lynx
2921 tmake_file="sh/t-sh t-rtems"
2922 tm_file=sh/rtemself.h
2926 tmake_file="sh/t-sh t-rtems"
2935 xm_file="xm-alloca.h ${xm_file}"
2938 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2939 tm_file=sparc/vxsparc.h
2940 tmake_file=sparc/t-vxsparc
2942 thread_file='vxworks'
2945 tmake_file=sparc/t-sparcbare
2946 tm_file="sparc/aout.h libgloss.h"
2949 tm_file=sparc/netbsd.h
2953 # we need collect2 until our bug is fixed...
2961 tmake_file=sparc/t-elf
2962 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2966 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2967 xm_file="${xm_file} sparc/xm-linux.h"
2968 tm_file=sparc/linux-aout.h
2972 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2973 xm_file="${xm_file} sparc/xm-linux.h"
2975 tm_file=sparc/linux.h
2976 tmake_file="t-linux t-linux-gnulibc1"
2977 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2980 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2981 xm_file="${xm_file} sparc/xm-linux.h"
2983 tm_file=sparc/linux.h
2984 tmake_file="t-linux"
2985 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2987 if test x$enable_threads = xyes; then
2992 if test x$gas = xyes
2994 tm_file=sparc/lynx.h
2996 tm_file=sparc/lynx-ng.h
2998 xm_file=sparc/xm-lynx.h
2999 tmake_file=sparc/t-sunos41
3003 tmake_file="sparc/t-sparcbare t-rtems"
3004 tm_file=sparc/rtems.h
3006 sparcv9-*-solaris2*)
3007 tm_file=sparc/sol2-sld-64.h
3008 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3009 xm_defines="USG POSIX"
3010 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3011 xmake_file=sparc/x-sysv4
3012 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3014 if test x${enable_threads} = x ; then
3015 enable_threads=$have_pthread_h
3016 if test x${enable_threads} = x ; then
3017 enable_threads=$have_thread_h
3020 if test x${enable_threads} = xyes ; then
3021 if test x${have_pthread_h} = xyes ; then
3024 thread_file='solaris'
3028 sparc-hal-solaris2*)
3029 xm_file=sparc/xm-sol2.h
3030 tm_file="sparc/sol2.h sparc/hal.h"
3031 tmake_file="sparc/t-halos sparc/t-sol2"
3032 xmake_file=sparc/x-sysv4
3033 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3034 fixincludes=fixinc.svr4
3038 if test x$gnu_ld = xyes
3040 tm_file=sparc/sol2.h
3042 tm_file=sparc/sol2-sld.h
3044 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3045 xm_defines="USG POSIX"
3046 tmake_file=sparc/t-sol2
3047 xmake_file=sparc/x-sysv4
3048 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3059 if test x${enable_threads} = x; then
3060 enable_threads=$have_pthread_h
3061 if test x${enable_threads} = x; then
3062 enable_threads=$have_thread_h
3065 if test x${enable_threads} = xyes; then
3066 if test x${have_pthread_h} = xyes; then
3069 thread_file='solaris'
3074 tm_file=sparc/sunos4.h
3075 tmake_file=sparc/t-sunos40
3079 tm_file=sparc/sunos4.h
3080 tmake_file=sparc/t-sunos41
3082 if test x$gas = xyes; then
3083 tm_file="${tm_file} sparc/sun4gas.h"
3087 tm_file=sparc/sun4o3.h
3091 tm_file=sparc/sysv4.h
3092 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3093 xm_defines="USG POSIX"
3095 xmake_file=sparc/x-sysv4
3096 extra_parts="crtbegin.o crtend.o"
3099 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3100 xm_defines="USG POSIX"
3101 tm_file=sparc/vxsim.h
3102 tmake_file=sparc/t-vxsparc
3103 xmake_file=sparc/x-sysv4
3106 tm_file="sparc/splet.h libgloss.h"
3107 tmake_file=sparc/t-splet
3110 tm_file="sparc/litecoff.h libgloss.h"
3111 tmake_file=sparc/t-sparclite
3114 tm_file="sparc/lite.h aoutos.h libgloss.h"
3115 tmake_file=sparc/t-sparclite
3118 tmake_file=sparc/t-sp64
3119 tm_file=sparc/sp64-aout.h
3122 tmake_file=sparc/t-sp64
3123 tm_file=sparc/sp64-elf.h
3124 extra_parts="crtbegin.o crtend.o"
3126 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3127 tmake_file="t-linux sparc/t-linux64"
3128 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3129 tm_file=sparc/linux64.h
3131 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3134 # This hasn't been upgraded to GCC 2.
3135 # tahoe-harris-*) # Harris tahoe, using COFF.
3136 # tm_file=tahoe/harris.h
3138 # tahoe-*-bsd*) # tahoe running BSD
3140 thumb-*-coff* | thumbel-*-coff*)
3142 out_file=arm/thumb.c
3143 xm_file=arm/xm-thumb.h
3144 md_file=arm/thumb.md
3145 tmake_file=arm/t-thumb
3147 # This hasn't been upgraded to GCC 2.
3154 tm_file="v850/v850.h"
3155 xm_file="v850/xm-v850.h"
3156 tmake_file=v850/t-v850
3157 if test x$stabs = xyes
3159 tm_file="${tm_file} dbx.h"
3163 vax-*-bsd*) # vaxen running BSD
3167 vax-*-sysv*) # vaxen running system V
3168 tm_file="${tm_file} vax/vaxv.h"
3173 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3178 tmake_file="${tm_file} vax/t-openbsd"
3180 vax-*-ultrix*) # vaxen running ultrix
3181 tm_file="${tm_file} vax/ultrix.h"
3185 vax-*-vms*) # vaxen running VMS
3186 xm_file=vax/xm-vms.h
3190 vax-*-*) # vax default entry
3194 xm_file="${xm_file} xm-svr3"
3198 echo "Configuration $machine not supported" 1>&2
3205 ;; # Existing GNU/Linux systems do not use the GNU setup.
3207 # On the GNU system, the setup is just about the same on
3208 # each different CPU. The specific machines that GNU
3209 # supports are matched above and just set $cpu_type.
3210 xm_file="xm-gnu.h ${xm_file}"
3211 tm_file=${cpu_type}/gnu.h
3212 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3213 # GNU always uses ELF.
3215 # GNU tools are the only tools.
3218 xmake_file=x-linux # These details are the same as Linux.
3219 tmake_file=t-gnu # These are not.
3222 xmake_try_sysv=x-sysv
3223 install_headers_dir=install-headers-cpio
3226 install_headers_dir=install-headers-cpio
3230 # Distinguish i[34567]86
3231 # Also, do not run mips-tfile on MIPS if using gas.
3232 # Process --with-cpu= for PowerPC/rs6000
3233 target_cpu_default2=
3236 target_cpu_default2=1
3239 target_cpu_default2=2
3241 i686-*-* | i786-*-*)
3242 target_cpu_default2=3
3247 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
3250 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3253 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3256 target_cpu_default2="MASK_CPU_EV5"
3260 if test x$gas = xyes
3262 if test "$target_cpu_default2" = ""
3264 target_cpu_default2="MASK_GAS"
3266 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3271 case "x$with_cpu" in
3274 target_cpu_default2="TARGET_CPU_generic"
3277 # Distinguish cores, and major variants
3278 # arm7m doesn't exist, but D & I don't affect code
3279 xarm[23678] | xarm250 | xarm[67][01]0 \
3280 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3281 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3282 | xstrongarm | xstrongarm110 | xstrongarm1100)
3283 target_cpu_default2="TARGET_CPU_$with_cpu"
3287 echo "--with-cpu must be passed a value" 1>&2
3292 if test x$pass2done = xyes
3294 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3301 mips*-*-ecoff* | mips*-*-elf*)
3302 if test x$gas = xyes
3304 if test x$gnu_ld = xyes
3306 target_cpu_default2=20
3308 target_cpu_default2=16
3313 if test x$gas = xyes
3315 target_cpu_default2=16
3318 powerpc*-*-* | rs6000-*-*)
3319 case "x$with_cpu" in
3323 xcommon | xpower | xpower2 | xpowerpc | xrios \
3324 | xrios1 | xrios2 | xrsc | xrsc1 \
3325 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3326 | xec603e | x740 | x750 | x401 \
3327 | x403 | x505 | x801 | x821 | x823 | x860)
3328 target_cpu_default2="\"$with_cpu\""
3332 echo "--with-cpu must be passed a value" 1>&2
3337 if test x$pass2done = xyes
3339 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3346 case ".$with_cpu" in
3348 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3350 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3351 target_cpu_default2="TARGET_CPU_$with_cpu"
3354 if test x$pass2done = xyes
3356 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3364 if test "$target_cpu_default2" != ""
3366 if test "$target_cpu_default" != ""
3368 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3370 target_cpu_default=$target_cpu_default2
3374 # No need for collect2 if we have the GNU linker.
3375 # Actually, there is now; GNU ld doesn't handle the EH info or
3376 # collecting for shared libraries.
3383 # Save data on machine being used to compile GCC in build_xm_file.
3384 # Save data on host machine in vars host_xm_file and host_xmake_file.
3385 if test x$pass1done = x
3387 if test x"$xm_file" = x
3388 then build_xm_file=$cpu_type/xm-$cpu_type.h
3389 else build_xm_file=$xm_file
3391 build_xm_defines=$xm_defines
3392 build_install_headers_dir=$install_headers_dir
3393 build_exeext=$exeext
3396 if test x$pass2done = x
3398 if test x"$xm_file" = x
3399 then host_xm_file=$cpu_type/xm-$cpu_type.h
3400 else host_xm_file=$xm_file
3402 host_xm_defines=$xm_defines
3403 if test x"$xmake_file" = x
3404 then xmake_file=$cpu_type/x-$cpu_type
3406 host_xmake_file="$xmake_file"
3407 host_truncate_target=$truncate_target
3408 host_extra_gcc_objs=$extra_gcc_objs
3409 host_extra_objs=$extra_host_objs
3416 extra_objs="${host_extra_objs} ${extra_objs}"
3418 # Default the target-machine variables that were not explicitly set.
3419 if test x"$tm_file" = x
3420 then tm_file=$cpu_type/$cpu_type.h; fi
3422 if test x$extra_headers = x
3423 then extra_headers=; fi
3425 if test x"$xm_file" = x
3426 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3428 if test x$md_file = x
3429 then md_file=$cpu_type/$cpu_type.md; fi
3431 if test x$out_file = x
3432 then out_file=$cpu_type/$cpu_type.c; fi
3434 if test x"$tmake_file" = x
3435 then tmake_file=$cpu_type/t-$cpu_type
3438 if test x"$dwarf2" = xyes
3439 then tm_file="tm-dwarf2.h $tm_file"
3442 if test x$float_format = x
3443 then float_format=i64
3446 if test $float_format = none
3447 then float_h_file=Makefile.in
3448 else float_h_file=float-$float_format.h
3451 if test x$enable_haifa = x
3454 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3459 # Handle cpp installation.
3460 if [[ x$enable_cpp != x ]]
3462 tmake_file="$tmake_file t-install-cpp"
3465 # Say what files are being used for the output code and MD file.
3466 echo "Using \`$srcdir/config/$out_file' to output insns."
3467 echo "Using \`$srcdir/config/$md_file' as machine description file."
3470 for f in $tm_file; do
3473 if test $count = ax; then
3474 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3476 echo "Using the following target machine macro files:"
3477 for f in $tm_file; do
3478 echo " $srcdir/config/$f"
3483 for f in $host_xm_file; do
3486 if test $count = ax; then
3487 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3489 echo "Using the following host machine macro files:"
3490 for f in $host_xm_file; do
3491 echo " $srcdir/config/$f"
3495 if test "$host_xm_file" != "$build_xm_file"; then
3497 for f in $build_xm_file; do
3500 if test $count = ax; then
3501 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3503 echo "Using the following build machine macro files:"
3504 for f in $build_xm_file; do
3505 echo " $srcdir/config/$f"
3510 if test x$thread_file = x; then
3511 if test x$target_thread_file != x; then
3512 thread_file=$target_thread_file
3514 thread_file='single'
3518 # Set up the header files.
3519 # $links is the list of header files to create.
3520 # $vars is the list of shell variables with file names to include.
3521 # auto-host.h is the file containing items generated by autoconf and is
3522 # the first file included by config.h.
3524 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3526 # If host=build, it is correct to have hconfig include auto-host.h
3527 # as well. If host!=build, we are in error and need to do more
3528 # work to find out the build config parameters.
3529 if test x$host = x$build
3531 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3533 # We create a subdir, then run autoconf in the subdir.
3534 # To prevent recursion we set host and build for the new
3535 # invocation of configure to the build for this invocation
3542 /*) realsrcdir=${srcdir};;
3543 *) realsrcdir=../${srcdir};;
3545 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3546 --target=$target --host=$build --build=$build
3548 # We just finished tests for the build machine, so rename
3549 # the file auto-build.h in the gcc directory.
3550 mv auto-host.h ../auto-build.h
3553 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3556 xm_file="gansidecl.h ${xm_file}"
3557 tm_file="gansidecl.h ${tm_file}"
3559 vars="host_xm_file tm_file xm_file build_xm_file"
3560 links="config.h tm.h tconfig.h hconfig.h"
3561 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3564 if test -f config.status; then mv -f config.status config.bak; fi
3567 while test -n "$vars"
3569 set $vars; var=$1; shift; vars=$*
3570 set $links; link=$1; shift; links=$*
3571 set $defines; define=$1; shift; defines=$*
3575 # Define TARGET_CPU_DEFAULT if the system wants one.
3576 # This substitutes for lots of *.h files.
3577 if test "$target_cpu_default" != "" -a $link = tm.h
3579 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3582 for file in `eval echo '$'$var`; do
3587 echo '#ifdef IN_GCC' >>$link
3590 echo "#include \"$file\"" >>$link
3595 echo '#endif' >>$link
3600 for def in `eval echo '$'$define`; do
3601 echo "#ifndef $def" >>$link
3602 echo "#define $def" >>$link
3603 echo "#endif" >>$link
3607 # Truncate the target if necessary
3608 if test x$host_truncate_target != x; then
3609 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3612 # Get the version trigger filename from the toplevel
3613 if test "${with_gcc_version_trigger+set}" = set; then
3614 gcc_version_trigger=$with_gcc_version_trigger
3616 gcc_version_trigger=${srcdir}/version.c
3619 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3622 # Internationalization
3624 VERSION="$gcc_version"
3625 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3626 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3632 # NLS support is still experimental, so disable it by default for now.
3634 [ --enable-nls use Native Language Support (disabled by default)],
3638 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3640 # Get an absolute path to the GCC top-level source directory
3646 # Conditionalize the makefile for this host machine.
3647 # Make-host contains the concatenation of all host makefile fragments
3648 # [there can be more than one]. This file is built by configure.frag.
3649 host_overrides=Make-host
3650 dep_host_xmake_file=
3651 for f in .. ${host_xmake_file}
3653 if test -f ${srcdir}/config/$f
3655 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3659 # Conditionalize the makefile for this target machine.
3660 # Make-target contains the concatenation of all host makefile fragments
3661 # [there can be more than one]. This file is built by configure.frag.
3662 target_overrides=Make-target
3664 for f in .. ${tmake_file}
3666 if test -f ${srcdir}/config/$f
3668 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3672 # If the host doesn't support symlinks, modify CC in
3673 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3674 # Otherwise, we can use "CC=$(CC)".
3676 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3678 cc_set_by_configure="\$(CC)"
3679 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3682 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3684 symbolic_link="cp -p"
3688 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3689 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3693 out_object_file=`basename $out_file .c`.o
3696 for f in $tm_file; do
3697 if test $f != "gansidecl.h" ; then
3698 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3700 tm_file_list="${tm_file_list} $f"
3705 for f in $host_xm_file; do
3706 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3707 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3709 host_xm_file_list="${host_xm_file_list} $f"
3714 for f in $build_xm_file; do
3715 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3716 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3718 build_xm_file_list="${build_xm_file_list} $f"
3722 # Define macro CROSS_COMPILE in compilation
3723 # if this is a cross-compiler.
3724 # Also use all.cross instead of all.internal
3725 # and add cross-make to Makefile.
3726 cross_overrides="/dev/null"
3727 if test x$host != x$target
3729 cross_defines="CROSS=-DCROSS_COMPILE"
3730 cross_overrides="${topdir}/cross-make"
3733 # When building gcc with a cross-compiler, we need to fix a few things.
3734 # This must come after cross-make as we want all.build to override
3736 build_overrides="/dev/null"
3737 if test x$build != x$host
3739 build_overrides="${topdir}/build-make"
3742 # Expand extra_headers to include complete path.
3743 # This substitutes for lots of t-* files.
3745 if test "x$extra_headers" = x
3748 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3749 for file in $extra_headers;
3751 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3755 if test x$use_collect2 = xno; then
3759 # Add a definition of USE_COLLECT2 if system wants one.
3760 # Also tell toplev.c what to do.
3761 # This substitutes for lots of t-* files.
3762 if test x$use_collect2 = x
3767 will_use_collect2="collect2"
3768 maybe_use_collect2="-DUSE_COLLECT2"
3772 # Set MD_DEPS if the real md file is in md.pre-cpp.
3773 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3774 # for line oriented comments, so we must always use a GNU cpp. If
3775 # building gcc with a cross compiler, use the cross compiler just
3776 # built. Otherwise, we can use the cpp just built.
3778 if test "x$md_cppflags" = x
3780 md_file_sub=$srcdir/config/$md_file
3785 # If we have gas in the build tree, make a link to it.
3786 if test -f ../gas/Makefile; then
3787 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3790 # If we have nm in the build tree, make a link to it.
3791 if test -f ../binutils/Makefile; then
3792 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3795 # If we have ld in the build tree, make a link to it.
3796 if test -f ../ld/Makefile; then
3797 # if test x$use_collect2 = x; then
3798 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3800 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3804 # Figure out what assembler alignment features are present.
3805 AC_MSG_CHECKING(assembler alignment features)
3807 gcc_cv_as_alignment_features=
3808 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3809 if test -x "$DEFAULT_ASSEMBLER"; then
3810 gcc_cv_as="$DEFAULT_ASSEMBLER"
3811 elif test -x "$AS"; then
3813 elif test -x as$host_exeext; then
3814 # Build using assembler in the current directory.
3815 gcc_cv_as=./as$host_exeext
3816 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3817 # Single tree build which includes gas.
3818 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3821 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3823 if test x$gcc_cv_gas_version != x; then
3828 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3829 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3831 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3832 # Gas version 2.6 and later support for .balign and .p2align.
3833 # bytes to skip when using .p2align.
3834 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
3835 gcc_cv_as_alignment_features=".balign and .p2align"
3836 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3838 # Gas version 2.8 and later support specifying the maximum
3839 # bytes to skip when using .p2align.
3840 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
3841 gcc_cv_as_alignment_features=".p2align including maximum skip"
3842 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3845 elif test x$host = x$target; then
3847 gcc_cv_as=as$host_exeext
3849 if test x$gcc_cv_as != x; then
3850 # Check if we have .balign and .p2align
3851 echo ".balign 4" > conftest.s
3852 echo ".p2align 2" >> conftest.s
3853 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3854 gcc_cv_as_alignment_features=".balign and .p2align"
3855 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3857 rm -f conftest.s conftest.o
3858 # Check if specifying the maximum bytes to skip when
3859 # using .p2align is supported.
3860 echo ".p2align 4,,7" > conftest.s
3861 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3862 gcc_cv_as_alignment_features=".p2align including maximum skip"
3863 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3865 rm -f conftest.s conftest.o
3867 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3869 AC_MSG_CHECKING(assembler subsection support)
3870 gcc_cv_as_subsections=
3871 if test x$gcc_cv_as != x; then
3872 # Check if we have .subsection
3873 echo ".subsection 1" > conftest.s
3874 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3875 gcc_cv_as_subsections=".subsection"
3876 if test -x nm$host_exeext; then
3877 gcc_cv_nm=./nm$host_exeext
3878 elif test x$host = x$target; then
3880 gcc_cv_nm=nm$host_exeext
3882 if test x$gcc_cv_nm != x; then
3883 cat > conftest.s <<EOF
3884 conftest_label1: .word 0
3886 conftest_label2: .word 0
3889 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3890 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3891 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3892 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3895 gcc_cv_as_subsections="working .subsection -1"
3896 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3901 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3903 AC_MSG_RESULT($gcc_cv_as_subsections)
3905 # Figure out what language subdirectories are present.
3906 # Look if the user specified --enable-languages="..."; if not, use
3907 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3909 if test x"${enable_languages+set}" != xset; then
3910 if test x"${LANGUAGES+set}" = xset; then
3911 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
3913 enable_languages=all
3917 for lang in ${srcdir}/*/config-lang.in ..
3921 # The odd quoting in the next line works around
3922 # an apparent bug in bash 1.12 on linux.
3924 ${srcdir}/[*]/config-lang.in) ;;
3926 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
3927 if test "x$lang_alias" = x
3929 echo "$lang doesn't set \$language." 1>&2
3932 if test x"${enable_languages}" = xall; then
3935 case "${enable_languages}" in
3936 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
3944 if test x"${add_this_lang}" = xyes; then
3946 ${srcdir}/ada/config-lang.in)
3947 if test x$gnat = xyes ; then
3948 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3952 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3961 # Make gthr-default.h if we have a thread file.
3963 if test $thread_file != single; then
3964 rm -f gthr-default.h
3965 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3966 gthread_flags=-DHAVE_GTHR_DEFAULT
3968 AC_SUBST(gthread_flags)
3970 # Make empty files to contain the specs and options for each language.
3971 # Then add #include lines to for a compiler that has specs and/or options.
3976 rm -f specs.h options.h gencheck.h
3977 touch specs.h options.h gencheck.h
3978 for subdir in . $subdirs
3980 if test -f $srcdir/$subdir/lang-specs.h; then
3981 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3982 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3984 if test -f $srcdir/$subdir/lang-options.h; then
3985 echo "#include \"$subdir/lang-options.h\"" >>options.h
3986 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3988 if test -f $srcdir/$subdir/$subdir-tree.def; then
3989 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3990 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3994 # These (without "all_") are set in each config-lang.in.
3995 # `language' must be a single word so is spelled singularly.
4001 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
4002 # List of language makefile fragments.
4007 # Add the language fragments.
4008 # Languages are added via two mechanisms. Some information must be
4009 # recorded in makefile variables, these are defined in config-lang.in.
4010 # We accumulate them and plug them into the main Makefile.
4011 # The other mechanism is a set of hooks for each of the main targets
4012 # like `clean', `install', etc.
4014 language_fragments="Make-lang"
4015 language_hooks="Make-hooks"
4018 for s in .. $subdirs
4030 . ${srcdir}/$s/config-lang.in
4031 if test "x$language" = x
4033 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4036 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4037 all_languages="$all_languages $language"
4038 if test "x$boot_language" = xyes
4040 all_boot_languages="$all_boot_languages $language"
4042 all_compilers="$all_compilers $compilers"
4043 all_stagestuff="$all_stagestuff $stagestuff"
4044 all_diff_excludes="$all_diff_excludes $diff_excludes"
4045 all_headers="$all_headers $headers"
4046 all_outputs="$all_outputs $outputs"
4047 if test x$outputs = x
4049 oldstyle_subdirs="$oldstyle_subdirs $s"
4051 all_lib2funcs="$all_lib2funcs $lib2funcs"
4055 # Since we can't use `::' targets, we link each language in
4056 # with a set of hooks, reached indirectly via lang.${target}.
4060 target_list="all.build all.cross start.encap rest.encap \
4062 install-normal install-common install-info install-man \
4064 mostlyclean clean distclean extraclean maintainer-clean \
4065 stage1 stage2 stage3 stage4"
4066 for t in $target_list
4069 for lang in .. $all_languages
4071 if test $lang != ".."; then
4075 echo "lang.$t: $x" >> Make-hooks
4078 # If we're not building in srcdir, create .gdbinit.
4080 if test ! -f Makefile.in; then
4081 echo "dir ." > .gdbinit
4082 echo "dir ${srcdir}" >> .gdbinit
4083 if test x$gdb_needs_out_file_path = xyes
4085 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4087 if test "x$subdirs" != x; then
4090 echo "dir ${srcdir}/$s" >> .gdbinit
4093 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4096 # Define variables host_canonical and build_canonical
4097 # because some Cygnus local changes in the Makefile depend on them.
4098 build_canonical=${build}
4099 host_canonical=${host}
4101 if test "${host}" != "${target}" ; then
4102 target_subdir=${target}/
4104 AC_SUBST(build_canonical)
4105 AC_SUBST(host_canonical)
4106 AC_SUBST(target_subdir)
4108 # If this is using newlib, then define inhibit_libc in
4109 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4110 # libgcc.a, but that's OK because newib should have its own version of
4113 if test x$with_newlib = xyes; then
4114 inhibit_libc=-Dinhibit_libc
4116 AC_SUBST(inhibit_libc)
4118 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4121 if test x$enable_haifa = xyes; then
4122 echo "Using the Haifa scheduler."
4124 sched_cflags=-DHAIFA
4126 AC_SUBST(sched_prefix)
4127 AC_SUBST(sched_cflags)
4128 if test x$enable_haifa != x; then
4129 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4130 for x in genattrtab.o toplev.o *sched.o; do
4138 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4139 # absolute path for gcc_tooldir based on inserting the number of up-directory
4140 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4141 # $(libsubdir)/@(unlibsubdir) based path.
4142 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4143 # make and thus we'd get different behavior depending on where we built the
4145 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4146 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4148 changequote(<<, >>)dnl
4149 # An explanation of the sed strings:
4150 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4151 # -e 's|/$||' match a trailing forward slash and eliminates it
4152 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4153 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4155 # (*) Note this pattern overwrites the first character of the string
4156 # with a forward slash if one is not already present. This is not a
4157 # problem because the exact names of the sub-directories concerned is
4158 # unimportant, just the number of them matters.
4160 # The practical upshot of these patterns is like this:
4162 # prefix exec_prefix result
4163 # ------ ----------- ------
4165 # /foo/ /foo/bar ../
4166 # /foo /foo/bar/ ../
4167 # /foo/ /foo/bar/ ../
4168 # /foo /foo/bar/ugg ../../
4171 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4172 changequote([, ])dnl
4174 AC_SUBST(gcc_tooldir)
4177 # Nothing to do for FLOAT_H, float_format already handled.
4181 # Process the language and host/target makefile fragments.
4182 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4184 # Substitute configuration variables
4186 AC_SUBST(all_boot_languages)
4187 AC_SUBST(all_compilers)
4188 AC_SUBST(all_diff_excludes)
4189 AC_SUBST(all_headers)
4190 AC_SUBST(all_lang_makefiles)
4191 AC_SUBST(all_languages)
4192 AC_SUBST(all_lib2funcs)
4193 AC_SUBST(all_stagestuff)
4194 AC_SUBST(build_exeext)
4195 AC_SUBST(build_install_headers_dir)
4196 AC_SUBST(build_xm_file_list)
4197 AC_SUBST(cc_set_by_configure)
4198 AC_SUBST(cpp_install_dir)
4200 AC_SUBST(dep_host_xmake_file)
4201 AC_SUBST(dep_tmake_file)
4202 AC_SUBST(extra_c_flags)
4203 AC_SUBST(extra_c_objs)
4204 AC_SUBST(extra_cpp_objs)
4205 AC_SUBST(extra_cxx_objs)
4206 AC_SUBST(extra_headers_list)
4207 AC_SUBST(extra_objs)
4208 AC_SUBST(extra_parts)
4209 AC_SUBST(extra_passes)
4210 AC_SUBST(extra_programs)
4211 AC_SUBST(fixinc_defs)
4212 AC_SUBST(float_h_file)
4213 AC_SUBST(gcc_gxx_include_dir)
4214 AC_SUBST(gcc_version)
4215 AC_SUBST(gcc_version_trigger)
4216 AC_SUBST(host_exeext)
4217 AC_SUBST(host_extra_gcc_objs)
4218 AC_SUBST(host_xm_file_list)
4221 AC_SUBST(lang_options_files)
4222 AC_SUBST(lang_specs_files)
4223 AC_SUBST(lang_tree_files)
4224 AC_SUBST(local_prefix)
4225 AC_SUBST(maybe_use_collect2)
4227 AC_SUBST(objc_boehm_gc)
4229 AC_SUBST(out_object_file)
4230 AC_SUBST(stage_prefix_set_by_configure)
4231 AC_SUBST(symbolic_link)
4232 AC_SUBST(thread_file)
4233 AC_SUBST(tm_file_list)
4234 AC_SUBST(will_use_collect2)
4237 AC_SUBST_FILE(target_overrides)
4238 AC_SUBST_FILE(host_overrides)
4239 AC_SUBST(cross_defines)
4240 AC_SUBST_FILE(cross_overrides)
4241 AC_SUBST_FILE(build_overrides)
4242 AC_SUBST_FILE(language_fragments)
4243 AC_SUBST_FILE(language_hooks)
4245 # Echo that links are built
4246 if test x$host = x$target
4254 if test x$host != x$build
4256 str3=" on a $build system"
4259 if test "x$str2" != x || test "x$str3" != x
4264 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4266 if test "x$str2" != x || test "x$str3" != x
4268 echo " ${str2}${str3}." 1>&2
4271 # Truncate the target if necessary
4272 if test x$host_truncate_target != x; then
4273 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4276 # Configure the subdirectories
4277 # AC_CONFIG_SUBDIRS($subdirs)
4279 # Create the Makefile
4280 # and configure language subdirectories
4281 AC_OUTPUT($all_outputs,
4283 . $srcdir/configure.lang
4284 case x$CONFIG_HEADERS in
4285 xauto-host.h:config.in)
4288 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4289 # bootstrapping and the installation procedure can still use
4290 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4291 # FLAGS_TO_PASS has been modified to solve the problem there.
4292 # This is virtually a duplicate of what happens in configure.lang; we do
4293 # an extra check to make sure this only happens if ln -s can be used.
4294 if test "$symbolic_link" = "ln -s"; then
4295 for d in .. ${subdirs} ; do
4296 if test $d != ..; then
4299 for t in stage1 stage2 stage3 stage4 include
4302 $symbolic_link ../$t $t 2>/dev/null
4308 # Avoid having to add intl to our include paths.
4309 if test -f intl/libintl.h; then
4310 echo creating libintl.h
4311 echo '#include "intl/libintl.h"' >libintl.h
4318 target_alias='${target_alias}'
4320 subdirs='${subdirs}'
4321 oldstyle_subdirs='${oldstyle_subdirs}'
4322 symbolic_link='${symbolic_link}'
4323 program_transform_set='${program_transform_set}'
4324 program_transform_name='${program_transform_name}'
4325 dep_host_xmake_file='${dep_host_xmake_file}'
4326 host_xmake_file='${host_xmake_file}'
4327 dep_tmake_file='${dep_tmake_file}'
4328 tmake_file='${tmake_file}'
4329 thread_file='${thread_file}'
4330 gcc_version='${gcc_version}'
4331 gcc_version_trigger='${gcc_version_trigger}'
4332 local_prefix='${local_prefix}'
4333 build_install_headers_dir='${build_install_headers_dir}'
4334 build_exeext='${build_exeext}'
4335 host_exeext='${host_exeext}'
4336 out_file='${out_file}'
4337 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4338 SET_MAKE='${SET_MAKE}'
4339 target_list='${target_list}'
4340 target_overrides='${target_overrides}'
4341 host_overrides='${host_overrides}'
4342 cross_defines='${cross_defines}'
4343 cross_overrides='${cross_overrides}'
4344 build_overrides='${build_overrides}'
4345 cpp_install_dir='${cpp_install_dir}'