1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998 Free Software Foundation, Inc.
6 #This file is part of GNU CC.
8 #GNU CC is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by
10 #the Free Software Foundation; either version 2, or (at your option)
13 #GNU CC is distributed in the hope that it will be useful,
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #GNU General Public License for more details.
18 #You should have received a copy of the GNU General Public License
19 #along with GNU CC; see the file COPYING. If not, write to
20 #the Free Software Foundation, 59 Temple Place - Suite 330,
21 #Boston, MA 02111-1307, USA.
23 # Initialization and defaults
25 AC_CONFIG_HEADER(auto-host.h:config.in)
32 # Check for bogus environment variables.
33 # Test if LIBRARY_PATH contains the notation for the current directory
34 # since this would lead to problems installing/building glibc.
35 # LIBRARY_PATH contains the current directory if one of the following
37 # - one of the terminals (":" and ";") is the first or last sign
38 # - two terminals occur directly after each other
39 # - the path contains an element with a dot in it
40 AC_MSG_CHECKING(LIBRARY_PATH variable)
42 case ${LIBRARY_PATH} in
43 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
44 library_path_setting="contains current directory"
47 library_path_setting="ok"
51 AC_MSG_RESULT($library_path_setting)
52 if test "$library_path_setting" != "ok"; then
54 *** LIBRARY_PATH shouldn't contain the current directory when
55 *** building egcs. Please change the environment variable
56 *** and run configure again.])
59 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
60 # since this would lead to problems installing/building glibc.
61 # GCC_EXEC_PREFIX contains the current directory if one of the following
63 # - one of the terminals (":" and ";") is the first or last sign
64 # - two terminals occur directly after each other
65 # - the path contains an element with a dot in it
66 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
68 case ${GCC_EXEC_PREFIX} in
69 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
70 gcc_exec_prefix_setting="contains current directory"
73 gcc_exec_prefix_setting="ok"
77 AC_MSG_RESULT($gcc_exec_prefix_setting)
78 if test "$gcc_exec_prefix_setting" != "ok"; then
80 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
81 *** building egcs. Please change the environment variable
82 *** and run configure again.])
85 # Check for additional parameters
89 [ --with-gnu-ld arrange to work with GNU ld.],
90 gnu_ld_flag="$with_gnu_ld",
95 [ --with-ld arrange to use the specified ld (full pathname).],
97 if test x"${LD+set}" = x"set"; then
98 if test ! -x "$LD"; then
99 AC_MSG_WARN([cannot execute: $LD: check --with-ld or env. var. LD])
100 elif test "GNU" = `$LD -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
103 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$LD")
108 [ --with-gnu-as arrange to work with GNU as.],
109 gas_flag="$with_gnu_as",
113 [ --with-as arrange to use the specified as (full pathname).],
115 if test x"${AS+set}" = x"set"; then
116 if test ! -x "$AS"; then
117 AC_MSG_WARN([cannot execute: $AS: check --with-as or env. var. AS])
118 elif test "GNU" = `$AS -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
121 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$AS")
126 [ --with-stabs arrange to use stabs instead of host debug format.],
132 [ --with-elf arrange to use ELF instead of host debug format.],
136 # Specify the local prefix
138 AC_ARG_WITH(local-prefix,
139 [ --with-local-prefix=DIR specifies directory to put local include.],
140 [case "${withval}" in
141 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
143 *) local_prefix=$with_local_prefix ;;
146 # Default local prefix if it is empty
147 if test x$local_prefix = x; then
148 local_prefix=/usr/local
152 # Specify the g++ header file directory
153 AC_ARG_WITH(gxx-include-dir,
154 [ --with-gxx-include-dir=DIR
155 specifies directory to put g++ header files.],
156 [case "${withval}" in
157 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
159 *) gxx_include_dir=$with_gxx_include_dir ;;
162 if test x${gxx_include_dir} = x; then
163 if test x${enable_version_specific_runtime_libs} = xyes; then
164 gxx_include_dir='${libsubdir}/include/g++'
166 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
167 gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface}
171 # Enable expensive internal checks
172 AC_ARG_ENABLE(checking,
173 [ --enable-checking enable expensive run-time checks.],
174 [case "${enableval}" in
175 yes) AC_DEFINE(ENABLE_CHECKING) ;;
177 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
180 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
182 AC_ARG_ENABLE(cpplib,
183 [ --enable-cpplib use cpplib for the C preprocessor.],
184 if test x$enable_cpplib != xno; then
188 # Link cpplib into the compiler proper, for C/C++/ObjC.
189 AC_ARG_ENABLE(c-cpplib,
190 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
191 (implies --enable-cpplib).],
192 if test x$enable_c_cpplib != xno; then
193 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
194 extra_c_objs="${extra_c_objs} prefix.o"
195 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
196 extra_c_flags=-DUSE_CPPLIB=1
200 # Enable Multibyte Characters for C/C++
201 AC_ARG_ENABLE(c-mbchar,
202 [ --enable-c-mbchar enable multibyte characters for C and C++.],
203 if test x$enable_c_mbchar != xno; then
204 extra_c_flags=-DMULTIBYTE_CHARS=1
207 # Enable Haifa scheduler.
209 [ --enable-haifa use the experimental scheduler.
210 --disable-haifa don't use the experimental scheduler for the
211 targets which normally enable it.])
214 # This is a work in progress...
215 AC_ARG_WITH(fast-fixincludes,
216 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
217 fast_fixinc="$with_fast_fixincludes",
220 # Enable init_priority.
221 AC_ARG_ENABLE(init-priority,
222 [ --enable-init-priority use attributes to assign initialization order
224 --disable-init-priority conform to ISO C++ rules for ordering static objects
225 (i.e. initialized in order of declaration). ],
226 if test x$enable_init_priority != xno; then
227 extra_c_flags=-DUSE_INIT_PRIORITY
231 # Pass with no value to take the default
232 # Pass with a value to specify a thread package
233 AC_ARG_ENABLE(threads,
234 [ --enable-threads enable thread usage for target GCC.
235 --enable-threads=LIB use LIB thread package for target GCC.],
236 if test x$enable_threads = xno; then
241 enable_threads_flag=$enable_threads
242 # Check if a valid thread package
243 case x${enable_threads_flag} in
246 target_thread_file='single'
250 target_thread_file=''
252 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
253 xsolaris | xwin32 | xdce | xvxworks)
254 target_thread_file=$enable_threads_flag
257 echo "$enable_threads is an unknown thread package" 1>&2
262 AC_ARG_ENABLE(objc-gc,
263 [ --enable-objc-gc enable the use of Boehm's garbage collector with
264 the GNU Objective-C runtime.],
265 if [[[ x$enable_objc_gc = xno ]]]; then
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"${AS+set}" = x"set"; then
292 if test x"$with_gas" = x"no"; then
293 AC_MSG_RESULT([yes ($AS)])
295 AC_MSG_RESULT([yes ($AS - GNU as)])
301 AC_MSG_CHECKING([whether a default linker was specified])
302 if test x"${LD+set}" = x"set"; then
303 if test x"$with_gnu_ld" = x"no"; then
304 AC_MSG_RESULT([yes ($LD)])
306 AC_MSG_RESULT([yes ($LD - GNU ld)])
312 # Find some useful tools
325 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 wait.h sys/wait.h)
327 # Check for thread headers.
328 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
329 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
331 # See if GNAT has been installed
332 AC_CHECK_PROG(gnat, gnatbind, yes, no)
334 # See if the system preprocessor understands the ANSI C preprocessor
335 # stringification operator.
336 AC_MSG_CHECKING(whether cpp understands the stringify operator)
337 AC_CACHE_VAL(gcc_cv_c_have_stringify,
340 char *test = S(foo);],
341 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
342 AC_MSG_RESULT($gcc_cv_c_have_stringify)
343 if test $gcc_cv_c_have_stringify = yes; then
344 AC_DEFINE(HAVE_CPP_STRINGIFY)
347 # Use <inttypes.h> only if it exists,
348 # doesn't clash with <sys/types.h>, and declares intmax_t.
349 AC_MSG_CHECKING(for inttypes.h)
350 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
352 [#include <sys/types.h>
353 #include <inttypes.h>],
355 [AC_DEFINE_UNQUOTED(HAVE_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)
360 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
361 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
362 sysconf isascii gettimeofday strsignal)
364 # Make sure wchar_t is available
365 #AC_CHECK_TYPE(wchar_t, unsigned int)
367 GCC_FUNC_VFPRINTF_DOPRNT
370 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
371 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
374 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
375 #include <sys/types.h>
376 #ifdef HAVE_SYS_RESOURCE_H
377 #include <sys/resource.h>
391 build_install_headers_dir=install-headers-tar
396 host_truncate_target=
399 # Decode the host machine, then the target machine.
400 # For the host machine, we save the xm_file variable as host_xm_file;
401 # then we decode the target machine and forget everything else
402 # that came from the host machine.
403 for machine in $build $host $target; do
417 # Set this to force installation and use of collect2.
419 # Set this to override the default target model.
421 # Set this to control which fixincludes program to use.
422 if test x$fast_fixinc != xyes; then
423 fixincludes=fixincludes
424 else fixincludes=fixinc.sh ; fi
425 # Set this to control how the header file directory is installed.
426 install_headers_dir=install-headers-tar
427 # Set this to a non-empty list of args to pass to cpp if the target
428 # wants its .md file passed through cpp.
430 # Set this if directory names should be truncated to 14 characters.
432 # Set this if gdb needs a dir command with `dirname $out_file`
433 gdb_needs_out_file_path=
434 # Set this if the build machine requires executables to have a
437 # Set this to control which thread package will be used.
439 # Reinitialize these from the flag values every loop pass, since some
440 # configure entries modify them.
442 gnu_ld="$gnu_ld_flag"
443 enable_threads=$enable_threads_flag
445 # Set default cpu_type, tm_file and xm_file so it can be updated in
446 # each machine entry.
447 cpu_type=`echo $machine | sed 's/-.*$//'`
483 tm_file=${cpu_type}/${cpu_type}.h
484 xm_file=${cpu_type}/xm-${cpu_type}.h
486 # Set the default macros to define for GNU/Linux systems.
489 xm_defines="HAVE_ATEXIT POSIX BSTRING"
494 # Support site-specific machine types.
496 cpu_type=`echo $machine | sed -e 's/-.*//'`
497 rest=`echo $machine | sed -e "s/$cpu_type-//"`
498 xm_file=${cpu_type}/xm-$rest.h
499 tm_file=${cpu_type}/$rest.h
500 if test -f $srcdir/config/${cpu_type}/x-$rest; \
501 then xmake_file=${cpu_type}/x-$rest; \
504 if test -f $srcdir/config/${cpu_type}/t-$rest; \
505 then tmake_file=${cpu_type}/t-$rest; \
511 a29k-*-bsd* | a29k-*-sym1*)
512 tm_file="${tm_file} a29k/unix.h"
514 xmake_file=a29k/x-unix
517 a29k-*-udi | a29k-*-coff)
518 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
519 tmake_file=a29k/t-a29kbare
522 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
523 tmake_file=a29k/t-vx29k
524 extra_parts="crtbegin.o crtend.o"
525 thread_file='vxworks'
527 a29k-*-*) # Default a29k environment.
530 alpha*-*-linux-gnuecoff*)
531 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
532 target_cpu_default="MASK_GAS"
537 alpha*-*-linux-gnulibc1*)
538 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
539 target_cpu_default="MASK_GAS"
540 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
541 extra_parts="crtbegin.o crtend.o"
542 fixincludes=fixinc.wrap
545 if test x$enable_threads = xyes; then
550 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
551 target_cpu_default="MASK_GAS"
552 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
553 extra_parts="crtbegin.o crtend.o"
555 fixincludes=Makefile.in
557 if test x$enable_threads = xyes; then
562 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
563 target_cpu_default="MASK_GAS"
564 tmake_file="alpha/t-crtbe"
565 extra_parts="crtbegin.o crtend.o"
567 fixincludes=fixinc.wrap
572 if test x$stabs = xyes
574 tm_file="${tm_file} dbx.h"
576 if test x$gas != xyes
578 extra_passes="mips-tfile mips-tdump"
583 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
588 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
591 tm_file="${tm_file} alpha/osf.h"
592 # Some versions of OSF4 (specifically X4.0-9 296.7) have
593 # a broken tar, so we use cpio instead.
594 install_headers_dir=install-headers-cpio
599 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
601 target_cpu_default=MASK_SUPPORT_ARCH
606 tm_file="${tm_file} dbx.h alpha/vxworks.h"
609 extra_passes="mips-tfile mips-tdump"
614 tm_file="${tm_file} alpha/win-nt.h"
615 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
617 xmake_file=winnt/x-winnt
618 extra_host_objs=oldnames.o
619 extra_gcc_objs="spawnv.o oldnames.o"
620 fixincludes=fixinc.winnt
621 if test x$gnu_ld != xyes
623 extra_programs=ld.exe
625 if test x$enable_threads = xyes; then
631 xm_file="${xm_file} alpha/xm-vms.h"
632 tmake_file=alpha/t-vms
633 fixincludes=Makefile.in
636 extra_parts="crtinit.o crtfini.o"
638 arm-*-coff* | armel-*-coff*)
640 tmake_file=arm/t-bare
643 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
645 tm_file=arm/riscix1-1.h
648 arm-*-riscix*) # Acorn RISC machine
651 tm_file=arm/rix-gas.h
655 xmake_file=arm/x-riscix
656 tmake_file=arm/t-riscix
659 arm-semi-aout | armel-semi-aout)
661 tmake_file=arm/t-semi
662 fixincludes=Makefile.in # There is nothing to fix
664 arm-semi-aof | armel-semi-aof)
665 tm_file=arm/semiaof.h
666 tmake_file=arm/t-semiaof
667 fixincludes=Makefile.in # There is nothing to fix
671 xm_file="arm/xm-netbsd.h ${xm_file}"
672 tmake_file="t-netbsd arm/t-netbsd"
673 # On NetBSD, the headers are already okay, except for math.h.
674 fixincludes=fixinc.wrap
676 arm-*-linux-gnuaout*) # ARM GNU/Linux
679 tm_file=arm/linux-gas.h
680 tmake_file=arm/t-linux
681 fixincludes=Makefile.in
686 tmake_file=arm/t-bare
688 c1-convex-*) # Convex C1
691 fixincludes=Makefile.in
693 c2-convex-*) # Convex C2
696 fixincludes=Makefile.in
701 fixincludes=Makefile.in
706 fixincludes=Makefile.in
709 target_cpu_default=16
711 fixincludes=Makefile.in
717 clipper-intergraph-clix*)
718 tm_file="${tm_file} svr3.h clipper/clix.h"
719 xm_file=clipper/xm-clix.h
720 xmake_file=clipper/x-clix
721 extra_headers=va-clipper.h
722 extra_parts="crtbegin.o crtend.o"
723 install_headers_dir=install-headers-cpio
730 # This hasn't been upgraded to GCC 2.
731 # fx80-alliant-*) # Alliant FX/80
737 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
738 xm_file=pa/xm-papro.h
743 tm_file="${tm_file} pa/pa-osf.h"
745 fixincludes=Makefile.in
748 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
749 xm_file=pa/xm-papro.h
753 tm_file="${tm_file} pa/pa-osf.h"
755 fixincludes=Makefile.in
760 fixincludes=Makefile.in
764 fixincludes=Makefile.in
767 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
768 xm_file=pa/xm-pahpux.h
769 xmake_file=pa/x-pa-hpux
772 tm_file="${tm_file} pa/gas.h"
774 install_headers_dir=install-headers-cpio
778 hppa1.0-*-hpux8.0[0-2]*)
780 tm_file="${tm_file} pa/pa-hpux.h"
781 xm_file=pa/xm-pahpux.h
782 xmake_file=pa/x-pa-hpux
785 tm_file="${tm_file} pa/pa-gas.h"
787 tm_file="pa/pa-oldas.h ${tm_file}"
789 install_headers_dir=install-headers-cpio
793 hppa1.1-*-hpux8.0[0-2]*)
796 tm_file="${tm_file} pa/pa-hpux.h"
797 xm_file=pa/xm-pahpux.h
798 xmake_file=pa/x-pa-hpux
801 tm_file="${tm_file} pa/pa-gas.h"
803 tm_file="pa/pa-oldas.h ${tm_file}"
805 install_headers_dir=install-headers-cpio
810 tm_file="${tm_file} pa/pa-hpux.h"
811 xm_file=pa/xm-pahpux.h
812 xmake_file=pa/x-pa-hpux
815 tm_file="${tm_file} pa/pa-gas.h"
817 install_headers_dir=install-headers-cpio
821 tm_file="${tm_file} pa/pa-hpux.h"
822 xm_file=pa/xm-pahpux.h
823 xmake_file=pa/x-pa-hpux
826 tm_file="${tm_file} pa/pa-gas.h"
828 install_headers_dir=install-headers-cpio
833 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
834 xm_file=pa/xm-pahpux.h
835 xmake_file=pa/x-pa-hpux
839 tm_file="${tm_file} pa/pa-gas.h"
841 if test x$enable_threads = x; then
842 enable_threads=$have_pthread_h
844 if test x$enable_threads = xyes; then
846 tmake_file="${tmake_file} pa/t-dce-thr"
848 install_headers_dir=install-headers-cpio
852 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
853 xm_file=pa/xm-pahpux.h
854 xmake_file=pa/x-pa-hpux
857 tm_file="${tm_file} pa/pa-gas.h"
859 if test x$enable_threads = x; then
860 enable_threads=$have_pthread_h
862 if test x$enable_threads = xyes; then
864 tmake_file="${tmake_file} pa/t-dce-thr"
866 install_headers_dir=install-headers-cpio
871 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
872 xm_file=pa/xm-pahpux.h
873 xmake_file=pa/x-pa-hpux
876 tm_file="${tm_file} pa/pa-gas.h"
878 install_headers_dir=install-headers-cpio
882 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
883 xm_file=pa/xm-pahpux.h
884 xmake_file=pa/x-pa-hpux
887 tm_file="${tm_file} pa/pa-gas.h"
889 install_headers_dir=install-headers-cpio
894 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
895 xm_file=pa/xm-pahpux.h
896 xmake_file=pa/x-pa-hpux
899 tm_file="${tm_file} pa/pa-gas.h"
901 install_headers_dir=install-headers-cpio
905 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
906 xm_file=pa/xm-pahpux.h
907 xmake_file=pa/x-pa-hpux
910 tm_file="${tm_file} pa/pa-gas.h"
912 install_headers_dir=install-headers-cpio
918 fixincludes=Makefile.in
923 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
927 tm_file=i386/aix386.h
928 extra_parts="crtbegin.o crtend.o"
929 tmake_file=i386/t-crtstuff
931 tm_file=i386/aix386ng.h
934 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
936 xmake_file=i386/x-aix
939 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
941 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
942 xm_defines="USG POSIX SMALL_ARG_MAX"
943 xmake_file=i386/x-ncr3000
944 if test x$stabs = xyes -a x$gas = xyes
946 tm_file=i386/sysv4gdb.h
950 extra_parts="crtbegin.o crtend.o"
951 tmake_file=i386/t-crtpic
957 xm_file=i386/xm-next.h
958 tmake_file=i386/t-next
959 xmake_file=i386/x-next
960 extra_objs=nextstep.o
961 extra_parts="crtbegin.o crtend.o"
962 if test x$enable_threads = xyes; then
967 i[34567]86-sequent-bsd*) # 80386 from Sequent
972 tm_file=i386/seq-gas.h
974 tm_file=i386/sequent.h
978 i[34567]86-sequent-ptx1*)
980 xm_defines="USG SVR3"
981 xmake_file=i386/x-sysv3
982 tm_file=i386/seq-sysv3.h
983 tmake_file=i386/t-crtstuff
984 fixincludes=fixinc.ptx
985 extra_parts="crtbegin.o crtend.o"
986 install_headers_dir=install-headers-cpio
989 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
991 xm_defines="USG SVR3"
992 xmake_file=i386/x-sysv3
993 tm_file=i386/seq2-sysv3.h
994 tmake_file=i386/t-crtstuff
995 extra_parts="crtbegin.o crtend.o"
996 fixincludes=fixinc.ptx
997 install_headers_dir=install-headers-cpio
1000 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1002 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1003 xm_defines="USG POSIX SMALL_ARG_MAX"
1005 tm_file=i386/ptx4-i.h
1007 extra_parts="crtbegin.o crtend.o"
1008 fixincludes=fixinc.ptx
1009 install_headers_dir=install-headers-cpio
1011 i386-sun-sunos*) # Sun i386 roadrunner
1017 i[34567]86-wrs-vxworks*)
1019 tm_file=i386/vxi386.h
1020 tmake_file=i386/t-i386bare
1025 tm_file=i386/i386-aout.h
1026 tmake_file=i386/t-i386bare
1029 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1031 tm_file=i386/bsd386.h
1032 # tmake_file=t-libc-ok
1037 tm_file=i386/386bsd.h
1038 # tmake_file=t-libc-ok
1039 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1043 i[34567]86-*-freebsdelf*)
1045 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1046 # On FreeBSD, the headers are already ok, except for math.h.
1047 fixincludes=fixinc.wrap
1048 tmake_file=i386/t-freebsd
1054 i[34567]86-*-freebsd*)
1056 tm_file=i386/freebsd.h
1057 # On FreeBSD, the headers are already ok, except for math.h.
1058 fixincludes=fixinc.wrap
1059 tmake_file=i386/t-freebsd
1061 # We are hoping OpenBSD is still close enough to NetBSD that we can
1062 # share the configurations.
1064 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1066 tm_file=i386/netbsd.h
1067 # On NetBSD, the headers are already okay, except for math.h.
1068 fixincludes=fixinc.wrap
1074 tm_file=i386/i386-coff.h
1075 tmake_file=i386/t-i386bare
1078 i[34567]86-*-isc*) # 80386 running ISC system
1080 xm_file="${xm_file} i386/xm-isc.h"
1081 xm_defines="USG SVR3"
1084 i[34567]86-*-isc[34]*)
1086 xmake_file=i386/x-isc3
1089 xmake_file=i386/x-isc
1092 if test x$gas = xyes -a x$stabs = xyes
1094 tm_file=i386/iscdbx.h
1095 tmake_file=i386/t-svr3dbx
1096 extra_parts="svr3.ifile svr3z.ifile"
1098 tm_file=i386/isccoff.h
1099 tmake_file=i386/t-crtstuff
1100 extra_parts="crtbegin.o crtend.o"
1102 install_headers_dir=install-headers-cpio
1105 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1106 changequote([,])dnl # with a.out format using
1108 xmake_file=x-linux-aout
1109 tmake_file="t-linux-aout i386/t-crtstuff"
1110 tm_file=i386/linux-oldld.h
1111 fixincludes=Makefile.in #On Linux, the headers are ok already.
1116 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1117 changequote([,])dnl # with a.out format
1118 xmake_file=x-linux-aout
1119 tmake_file="t-linux-aout i386/t-crtstuff"
1120 tm_file=i386/linux-aout.h
1121 fixincludes=Makefile.in #On Linux, the headers are ok already.
1126 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1127 changequote([,])dnl # with ELF format using the
1128 # GNU/Linux C library 5
1130 tm_file=i386/linux.h
1131 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1132 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1133 fixincludes=Makefile.in #On Linux, the headers are ok already.
1136 if test x$enable_threads = xyes; then
1137 thread_file='single'
1141 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1142 changequote([,])dnl # with ELF format using glibc 2
1143 # aka GNU/Linux C library 6
1145 tm_file=i386/linux.h
1146 tmake_file="t-linux i386/t-crtstuff"
1147 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1148 fixincludes=Makefile.in #On Linux, the headers are ok already.
1151 if test x$enable_threads = xyes; then
1160 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1162 xm_file=i386/xm-go32.h
1164 tmake_file=i386/t-go32
1167 i[34567]86-pc-msdosdjgpp*)
1169 xm_file=i386/xm-go32.h
1171 tmake_file=i386/t-go32
1176 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1179 tmake_file=t-libc-ok
1180 fixincludes=Makefile.in
1185 i[34567]86-*-lynxos*)
1187 if test x$gas = xyes
1191 tm_file=i386/lynx-ng.h
1193 xm_file=i386/xm-lynx.h
1194 tmake_file=i386/t-i386bare
1201 # tmake_file=t-libc-ok
1205 i[34567]86-*-osfrose*) # 386 using OSF/rose
1207 if test x$elf = xyes
1209 tm_file=i386/osfelf.h
1212 tm_file=i386/osfrose.h
1215 xm_file="i386/xm-osf.h ${xm_file}"
1216 xmake_file=i386/x-osfrose
1217 tmake_file=i386/t-osf
1218 extra_objs=halfpic.o
1221 i[34567]86-go32-rtems*)
1224 xm_file=i386/xm-go32.h
1225 tm_file=i386/go32-rtems.h
1226 tmake_file="i386/t-go32 t-rtems"
1229 i[34567]86-*-rtemself*)
1232 tm_file=i386/rtemself.h
1233 tmake_file="i386/t-i386bare t-rtems"
1236 i[34567]86-*-rtems*)
1239 tm_file=i386/rtems.h
1240 tmake_file="i386/t-i386bare t-rtems"
1243 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1245 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1246 xm_defines="USG SVR3"
1247 xmake_file=i386/x-sco5
1248 fixincludes=fixinc.sco
1249 install_headers_dir=install-headers-cpio
1251 if test x$gas = xyes
1253 tm_file="i386/sco5gas.h ${tm_file}"
1254 tmake_file=i386/t-sco5gas
1256 tmake_file=i386/t-sco5
1258 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1261 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1263 xm_file="${xm_file} i386/xm-sco.h"
1264 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1265 xmake_file=i386/x-sco4
1266 fixincludes=fixinc.sco
1267 install_headers_dir=install-headers-cpio
1268 if test x$stabs = xyes
1270 tm_file=i386/sco4dbx.h
1271 tmake_file=i386/t-svr3dbx
1272 extra_parts="svr3.ifile svr3z.rfile"
1275 tmake_file=i386/t-crtstuff
1276 extra_parts="crtbegin.o crtend.o"
1281 i[34567]86-*-sco*) # 80386 running SCO system
1283 xm_file=i386/xm-sco.h
1284 xmake_file=i386/x-sco
1285 install_headers_dir=install-headers-cpio
1286 if test x$stabs = xyes
1288 tm_file=i386/scodbx.h
1289 tmake_file=i386/t-svr3dbx
1290 extra_parts="svr3.ifile svr3z.rfile"
1293 extra_parts="crtbegin.o crtend.o"
1294 tmake_file=i386/t-crtstuff
1299 i[34567]86-*-solaris2*)
1301 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1302 xm_defines="USG POSIX SMALL_ARG_MAX"
1303 if test x$stabs = xyes
1305 tm_file=i386/sol2dbg.h
1309 tmake_file=i386/t-sol2
1310 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1316 fixincludes=fixinc.svr4;;
1318 fixincludes=fixinc.wrap;;
1320 if test x$enable_threads = xyes; then
1321 thread_file='solaris'
1325 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1327 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1328 xm_defines="USG POSIX"
1329 tm_file=i386/sysv4.h
1330 if test x$stabs = xyes
1332 tm_file="${tm_file} dbx.h"
1334 tmake_file=i386/t-crtpic
1336 extra_parts="crtbegin.o crtend.o"
1337 fixincludes=fixinc.svr4
1340 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1342 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1343 xm_defines="USG POSIX SMALL_ARG_MAX"
1344 tm_file=i386/sysv4.h
1345 if test x$stabs = xyes
1347 tm_file="${tm_file} dbx.h"
1349 tmake_file=i386/t-crtpic
1351 extra_parts="crtbegin.o crtend.o"
1354 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1356 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1357 xm_defines="USG POSIX"
1359 tmake_file="i386/t-crtpic i386/t-udk"
1361 extra_parts="crtbegin.o crtend.o"
1362 fixincludes="fixinc.svr4"
1365 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1368 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1369 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1370 fixincludes=Makefile.in #Don't do it on OSF/1
1371 if test x$stabs = xyes
1373 tm_file=i386/osf1elfgdb.h
1375 tm_file=i386/osf1elf.h
1377 tmake_file=i386/t-osf1elf
1378 xmake_file=i386/x-osf1elf
1379 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1382 i[34567]86-*-sysv*) # Intel 80386's running system V
1384 xm_defines="USG SVR3"
1385 xmake_file=i386/x-sysv3
1386 if test x$gas = xyes
1388 if test x$stabs = xyes
1390 tm_file=i386/svr3dbx.h
1391 tmake_file=i386/t-svr3dbx
1392 extra_parts="svr3.ifile svr3z.rfile"
1394 tm_file=i386/svr3gas.h
1395 extra_parts="crtbegin.o crtend.o"
1396 tmake_file=i386/t-crtstuff
1399 tm_file=i386/sysv3.h
1400 extra_parts="crtbegin.o crtend.o"
1401 tmake_file=i386/t-crtstuff
1404 i386-*-vsta) # Intel 80386's running VSTa kernel
1405 xm_file="${xm_file} i386/xm-vsta.h"
1407 tmake_file=i386/t-vsta
1408 xmake_file=i386/x-vsta
1413 xm_file="${xm_file} i386/xm-cygwin32.h"
1414 tmake_file=i386/t-cygwin32
1415 tm_file=i386/win32.h
1416 xmake_file=i386/x-cygwin32
1418 fixincludes=Makefile.in
1419 if test x$enable_threads = xyes; then
1425 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1427 xm_file="${xm_file} i386/xm-cygwin32.h"
1428 tmake_file=i386/t-cygwin32
1429 tm_file=i386/cygwin32.h
1430 xmake_file=i386/x-cygwin32
1432 fixincludes=Makefile.in
1433 if test x$enable_threads = xyes; then
1439 i[34567]86-*-mingw32*)
1441 tm_file=i386/mingw32.h
1442 xm_file="${xm_file} i386/xm-mingw32.h"
1443 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1445 xmake_file=i386/x-cygwin32
1446 fixincludes=Makefile.in
1447 if test x$enable_threads = xyes; then
1454 *minwg32crt* | *mingw32*)
1455 tm_file="${tm_file} i386/crtdll.h"
1460 i[34567]86-*-winnt3*)
1462 tm_file=i386/win-nt.h
1463 out_file=i386/i386.c
1464 xm_file="xm-winnt.h ${xm_file}"
1465 xmake_file=winnt/x-winnt
1466 tmake_file=i386/t-winnt
1467 extra_host_objs="winnt.o oldnames.o"
1468 extra_gcc_objs="spawnv.o oldnames.o"
1469 fixincludes=fixinc.winnt
1470 if test x$gnu_ld != xyes
1472 extra_programs=ld.exe
1474 if test x$enable_threads = xyes; then
1479 i[34567]86-dg-dgux*)
1481 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1482 xm_defines="USG POSIX"
1483 out_file=i386/dgux.c
1485 tmake_file=i386/t-dgux
1486 xmake_file=i386/x-dgux
1487 fixincludes=fixinc.dgux
1488 install_headers_dir=install-headers-cpio
1490 i860-alliant-*) # Alliant FX/2800
1491 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1492 xm_file="${xm_file}"
1493 xmake_file=i860/x-fx2800
1494 tmake_file=i860/t-fx2800
1495 extra_parts="crtbegin.o crtend.o"
1498 tm_file="${tm_file} i860/bsd.h"
1499 if test x$gas = xyes
1501 tm_file="${tm_file} i860/bsd-gas.h"
1506 tm_file="${tm_file} i860/mach.h"
1507 tmake_file=t-libc-ok
1509 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1510 tm_file="${tm_file} svr3.h i860/paragon.h"
1511 xm_defines="USG SVR3"
1515 tm_file="${tm_file} svr3.h i860/sysv3.h"
1516 xm_defines="USG SVR3"
1517 xmake_file=i860/x-sysv3
1518 extra_parts="crtbegin.o crtend.o"
1521 tm_file="${tm_file} svr4.h i860/sysv4.h"
1522 xm_defines="USG SVR3"
1523 xmake_file=i860/x-sysv4
1525 extra_parts="crtbegin.o crtend.o"
1527 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1528 tm_file="${tm_file} i960/vx960.h"
1529 tmake_file=i960/t-vxworks960
1531 thread_file='vxworks'
1533 i960-wrs-vxworks5* | i960-wrs-vxworks)
1534 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1535 tmake_file=i960/t-vxworks960
1537 thread_file='vxworks'
1540 tm_file="${tm_file} i960/vx960.h"
1541 tmake_file=i960/t-vxworks960
1543 thread_file='vxworks'
1546 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1547 tmake_file=i960/t-960bare
1551 tmake_file="i960/t-960bare t-rtems"
1552 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1555 i960-*-*) # Default i960 environment.
1559 extra_parts="crtinit.o crtfini.o"
1561 m68000-convergent-sysv*)
1563 xm_file="m68k/xm-3b1.h ${xm_file}"
1566 extra_headers=math-68881.h
1568 m68000-hp-bsd*) # HP 9000/200 running BSD
1569 tm_file=m68k/hp2bsd.h
1570 xmake_file=m68k/x-hp2bsd
1572 extra_headers=math-68881.h
1574 m68000-hp-hpux*) # HP 9000 series 300
1575 xm_file="xm_alloca.h ${xm_file}"
1576 xm_defines="USG NO_SYS_SIGLIST"
1577 if test x$gas = xyes
1579 xmake_file=m68k/x-hp320g
1580 tm_file=m68k/hp310g.h
1582 xmake_file=m68k/x-hp320
1583 tm_file=m68k/hp310.h
1585 install_headers_dir=install-headers-cpio
1587 extra_headers=math-68881.h
1592 extra_headers=math-68881.h
1595 tm_file=m68k/sun2o4.h
1597 extra_headers=math-68881.h
1600 xm_file="m68k/xm-3b1.h ${xm_file}"
1602 if test x$gas = xyes
1609 extra_headers=math-68881.h
1611 m68k-apple-aux*) # Apple Macintosh running A/UX
1612 xm_defines="USG AUX"
1613 tmake_file=m68k/t-aux
1614 install_headers_dir=install-headers-cpio
1615 extra_headers=math-68881.h
1616 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1618 if test "$gnu_ld" = yes
1620 tm_file="${tm_file} m68k/auxgld.h"
1622 tm_file="${tm_file} m68k/auxld.h"
1624 if test "$gas" = yes
1626 tm_file="${tm_file} m68k/auxgas.h"
1628 tm_file="${tm_file} m68k/auxas.h"
1630 tm_file="${tm_file} m68k/a-ux.h"
1634 tm_file=m68k/apollo68.h
1635 xmake_file=m68k/x-apollo68
1637 extra_headers=math-68881.h
1640 m68k-altos-sysv*) # Altos 3068
1641 if test x$gas = xyes
1643 tm_file=m68k/altos3068.h
1646 echo "The Altos is supported only with the GNU assembler" 1>&2
1649 extra_headers=math-68881.h
1651 m68k-bull-sysv*) # Bull DPX/2
1652 if test x$gas = xyes
1654 if test x$stabs = xyes
1656 tm_file=m68k/dpx2cdbx.h
1658 tm_file=m68k/dpx2g.h
1663 xm_file="xm-alloca.h ${xm_file}"
1665 xmake_file=m68k/x-dpx2
1667 extra_headers=math-68881.h
1669 m68k-atari-sysv4*) # Atari variant of V.4.
1670 tm_file=m68k/atari.h
1671 xm_file="xm-alloca.h ${xm_file}"
1672 xm_defines="USG FULL_PROTOTYPES"
1674 extra_parts="crtbegin.o crtend.o"
1675 extra_headers=math-68881.h
1678 m68k-motorola-sysv*)
1679 tm_file=m68k/mot3300.h
1680 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1681 xm_defines=NO_SYS_SIGLIST
1682 if test x$gas = xyes
1684 xmake_file=m68k/x-mot3300-gas
1685 if test x$gnu_ld = xyes
1687 tmake_file=m68k/t-mot3300-gald
1689 tmake_file=m68k/t-mot3300-gas
1693 xmake_file=m68k/x-mot3300
1694 if test x$gnu_ld = xyes
1696 tmake_file=m68k/t-mot3300-gld
1698 tmake_file=m68k/t-mot3300
1702 gdb_needs_out_file_path=yes
1703 extra_parts="crt0.o mcrt0.o"
1704 extra_headers=math-68881.h
1707 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1708 tm_file=m68k/tower-as.h
1709 xm_defines="USG SVR3"
1710 xmake_file=m68k/x-tower
1711 extra_parts="crtbegin.o crtend.o"
1712 extra_headers=math-68881.h
1715 tm_file=m68k/plexus.h
1716 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1719 extra_headers=math-68881.h
1723 xm_file="xm-alloca.h ${xm_file}"
1725 extra_headers=math-68881.h
1728 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1729 xm_defines="USG unos"
1730 xmake_file=m68k/x-crds
1733 extra_headers=math-68881.h
1735 m68k-cbm-sysv4*) # Commodore variant of V.4.
1737 xm_file="xm-alloca.h ${xm_file}"
1738 xm_defines="USG FULL_PROTOTYPES"
1739 xmake_file=m68k/x-amix
1741 extra_parts="crtbegin.o crtend.o"
1742 extra_headers=math-68881.h
1746 tm_file=m68k/ccur-GAS.h
1747 xmake_file=m68k/x-ccur
1748 extra_headers=math-68881.h
1752 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1753 tm_file=m68k/hp3bsd44.h
1754 xmake_file=m68k/x-hp3bsd44
1756 extra_headers=math-68881.h
1759 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1760 tm_file=m68k/hp3bsd.h
1762 extra_headers=math-68881.h
1766 if test x$with_fp = xno
1768 tm_file=m68k/isi-nfp.h
1774 extra_headers=math-68881.h
1776 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1777 xm_file="xm_alloca.h ${xm_file}"
1778 xm_defines="USG NO_SYS_SIGLIST"
1779 if test x$gas = xyes
1781 xmake_file=m68k/x-hp320g
1782 tm_file=m68k/hp320g.h
1784 xmake_file=m68k/x-hp320
1785 tm_file=m68k/hpux7.h
1787 install_headers_dir=install-headers-cpio
1789 extra_headers=math-68881.h
1792 m68k-hp-hpux*) # HP 9000 series 300
1793 xm_file="xm_alloca.h ${xm_file}"
1794 xm_defines="USG NO_SYS_SIGLIST"
1795 if test x$gas = xyes
1797 xmake_file=m68k/x-hp320g
1798 tm_file=m68k/hp320g.h
1800 xmake_file=m68k/x-hp320
1801 tm_file=m68k/hp320.h
1803 install_headers_dir=install-headers-cpio
1805 extra_headers=math-68881.h
1809 tm_file=m68k/sun3mach.h
1811 extra_headers=math-68881.h
1815 if test x$gas = xyes
1817 tm_file=m68k/news3gas.h
1819 tm_file=m68k/news3.h
1822 extra_headers=math-68881.h
1825 m68k-sony-bsd* | m68k-sony-newsos*)
1826 if test x$gas = xyes
1828 tm_file=m68k/newsgas.h
1833 extra_headers=math-68881.h
1836 m68k-next-nextstep2*)
1837 tm_file=m68k/next21.h
1838 xm_file="m68k/xm-next.h ${xm_file}"
1839 tmake_file=m68k/t-next
1840 xmake_file=m68k/x-next
1841 extra_objs=nextstep.o
1842 extra_headers=math-68881.h
1846 m68k-next-nextstep3*)
1848 xm_file="m68k/xm-next.h ${xm_file}"
1849 tmake_file=m68k/t-next
1850 xmake_file=m68k/x-next
1851 extra_objs=nextstep.o
1852 extra_parts="crtbegin.o crtend.o"
1853 extra_headers=math-68881.h
1855 if test x$enable_threads = xyes; then
1860 if test x$with_fp = xno
1862 tm_file=m68k/sun3n3.h
1864 tm_file=m68k/sun3o3.h
1868 extra_headers=math-68881.h
1870 m68k-sun-sunos*) # For SunOS 4 (the default).
1871 if test x$with_fp = xno
1873 tm_file=m68k/sun3n.h
1879 extra_headers=math-68881.h
1882 tm_file=m68k/vxm68k.h
1883 tmake_file=m68k/t-vxworks68
1884 extra_headers=math-68881.h
1885 thread_file='vxworks'
1889 tmake_file=m68k/t-m68kbare
1890 tm_file="m68k/m68k-aout.h libgloss.h"
1891 extra_headers=math-68881.h
1895 tmake_file=m68k/t-m68kbare
1896 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1897 extra_headers=math-68881.h
1901 if test x$gas = xyes
1905 tm_file=m68k/lynx-ng.h
1907 xm_file=m68k/xm-lynx.h
1909 tmake_file=m68k/t-lynx
1910 extra_headers=math-68881.h
1914 tm_file=m68k/netbsd.h
1915 # On NetBSD, the headers are already okay, except for math.h.
1916 fixincludes=fixinc.wrap
1920 m68k-*-sysv3*) # Motorola m68k's running system V.3
1921 xm_file="xm-alloca.h ${xm_file}"
1923 xmake_file=m68k/x-m68kv
1924 extra_parts="crtbegin.o crtend.o"
1925 extra_headers=math-68881.h
1928 m68k-*-sysv4*) # Motorola m68k's running system V.4
1929 tm_file=m68k/m68kv4.h
1930 xm_file="xm-alloca.h ${xm_file}"
1933 extra_parts="crtbegin.o crtend.o"
1934 extra_headers=math-68881.h
1937 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1940 tm_file=m68k/linux-aout.h
1941 tmake_file="t-linux-aout m68k/t-linux-aout"
1942 fixincludes=Makefile.in # The headers are ok already.
1943 extra_headers=math-68881.h
1947 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1948 # with ELF format using the
1949 # GNU/Linux C library 5
1951 tm_file=m68k/linux.h
1952 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1953 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1954 fixincludes=Makefile.in # The headers are ok already.
1955 extra_headers=math-68881.h
1959 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1960 # with ELF format using glibc 2
1961 # aka the GNU/Linux C library 6.
1963 tm_file=m68k/linux.h
1964 tmake_file="t-linux m68k/t-linux"
1965 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1966 fixincludes=Makefile.in # The headers are ok already.
1967 extra_headers=math-68881.h
1970 if test x$enable_threads = xyes; then
1975 tmake_file=m68k/t-m68kbare
1976 tm_file=m68k/m68k-psos.h
1977 extra_headers=math-68881.h
1981 tmake_file="m68k/t-m68kbare t-rtems"
1982 tm_file=m68k/rtems.h
1983 extra_headers=math-68881.h
1990 tm_file=m88k/dguxbcs.h
1991 tmake_file=m88k/t-dguxbcs
1995 tmake_file=m88k/t-dgux
1998 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1999 xmake_file=m88k/x-dgux
2000 if test x$gas = xyes
2002 tmake_file=m88k/t-dgux-gas
2004 fixincludes=fixinc.dgux
2006 m88k-dolphin-sysv3*)
2007 tm_file=m88k/dolph.h
2008 extra_parts="crtbegin.o crtend.o"
2009 xm_file="m88k/xm-sysv3.h ${xm_file}"
2010 xmake_file=m88k/x-dolph
2011 if test x$gas = xyes
2013 tmake_file=m88k/t-m88k-gas
2016 m88k-tektronix-sysv3)
2017 tm_file=m88k/tekXD88.h
2018 extra_parts="crtbegin.o crtend.o"
2019 xm_file="m88k/xm-sysv3.h ${xm_file}"
2020 xmake_file=m88k/x-tekXD88
2021 if test x$gas = xyes
2023 tmake_file=m88k/t-m88k-gas
2027 tm_file=m88k/m88k-aout.h
2030 tm_file=m88k/m88k-coff.h
2031 tmake_file=m88k/t-bug
2035 extra_parts="crtbegin.o crtend.o"
2036 if test x$gas = xyes
2038 tmake_file=m88k/t-luna-gas
2040 tmake_file=m88k/t-luna
2044 tm_file=m88k/sysv3.h
2045 extra_parts="crtbegin.o crtend.o"
2046 xm_file="m88k/xm-sysv3.h ${xm_file}"
2047 xmake_file=m88k/x-sysv3
2048 if test x$gas = xyes
2050 tmake_file=m88k/t-m88k-gas
2054 tm_file=m88k/sysv4.h
2055 extra_parts="crtbegin.o crtend.o"
2056 xmake_file=m88k/x-sysv4
2057 tmake_file=m88k/t-sysv4
2059 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2060 tm_file=mips/iris6.h
2061 xm_file=mips/xm-iris6.h
2062 fixincludes=fixinc.irix
2063 xmake_file=mips/x-iris6
2064 tmake_file=mips/t-iris6
2065 # if test x$enable_threads = xyes; then
2066 # thread_file='irix'
2070 tm_file="mips/elf.h libgloss.h"
2071 tmake_file=mips/t-ecoff
2074 extra_parts="crtbegin.o crtend.o"
2075 # thread_file='vxworks'
2077 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2078 tm_file="mips/iris6.h mips/cross64.h"
2080 xm_file="mips/xm-iris5.h"
2081 fixincludes=Makefile.in
2082 xmake_file=mips/x-iris
2083 tmake_file=mips/t-cross64
2084 # See comment in mips/iris[56].h files.
2086 # if test x$enable_threads = xyes; then
2087 # thread_file='irix'
2091 if test x$gas = xyes
2093 if test x$stabs = xyes
2095 tm_file=mips/iris5gdb.h
2097 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2100 tm_file=mips/sni-svr4.h
2103 xmake_file=mips/x-sni-svr4
2104 tmake_file=mips/t-mips-gas
2105 if test x$gnu_ld != xyes
2110 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2111 if test x$gas = xyes
2113 tm_file="mips/iris5.h mips/iris5gas.h"
2114 if test x$stabs = xyes
2116 tm_file="${tm_file} dbx.h"
2119 tm_file=mips/iris5.h
2122 xm_file="mips/xm-iris5.h"
2123 fixincludes=fixinc.irix
2124 xmake_file=mips/x-iris
2125 # mips-tfile doesn't work yet
2126 tmake_file=mips/t-mips-gas
2127 # See comment in mips/iris5.h file.
2129 # if test x$enable_threads = xyes; then
2130 # thread_file='irix'
2133 mips-sgi-irix4loser*) # Mostly like a MIPS.
2134 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2135 if test x$stabs = xyes; then
2136 tm_file="${tm_file} dbx.h"
2139 xmake_file=mips/x-iris
2140 if test x$gas = xyes
2142 tmake_file=mips/t-mips-gas
2144 extra_passes="mips-tfile mips-tdump"
2146 if test x$gnu_ld != xyes
2150 # if test x$enable_threads = xyes; then
2151 # thread_file='irix'
2154 mips-sgi-irix4*) # Mostly like a MIPS.
2155 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2156 if test x$stabs = xyes; then
2157 tm_file="${tm_file} dbx.h"
2160 xmake_file=mips/x-iris
2161 if test x$gas = xyes
2163 tmake_file=mips/t-mips-gas
2165 extra_passes="mips-tfile mips-tdump"
2167 if test x$gnu_ld != xyes
2171 # if test x$enable_threads = xyes; then
2172 # thread_file='irix'
2175 mips-sgi-*) # Mostly like a MIPS.
2176 tm_file="mips/iris3.h ${tm_file}"
2177 if test x$stabs = xyes; then
2178 tm_file="${tm_file} dbx.h"
2181 xmake_file=mips/x-iris3
2182 if test x$gas = xyes
2184 tmake_file=mips/t-mips-gas
2186 extra_passes="mips-tfile mips-tdump"
2188 if test x$gnu_ld != xyes
2193 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2194 tm_file="mips/osfrose.h ${tm_file}"
2195 xmake_file=mips/x-osfrose
2196 tmake_file=mips/t-osfrose
2197 extra_objs=halfpic.o
2200 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2201 tm_file=mips/dec-osf1.h
2202 if test x$stabs = xyes; then
2203 tm_file="${tm_file} dbx.h"
2205 xmake_file=mips/x-dec-osf1
2206 if test x$gas = xyes
2208 tmake_file=mips/t-mips-gas
2210 tmake_file=mips/t-ultrix
2211 extra_passes="mips-tfile mips-tdump"
2213 if test x$gnu_ld != xyes
2218 mips-dec-bsd*) # Decstation running 4.4 BSD
2219 tm_file=mips/dec-bsd.h
2221 if test x$gas = xyes
2223 tmake_file=mips/t-mips-gas
2225 tmake_file=mips/t-ultrix
2226 extra_passes="mips-tfile mips-tdump"
2228 if test x$gnu_ld != xyes
2233 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2234 tm_file=mips/netbsd.h
2235 # On NetBSD, the headers are already okay, except for math.h.
2236 fixincludes=fixinc.wrap
2239 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2240 tm_file="mips/news4.h ${tm_file}"
2241 if test x$stabs = xyes; then
2242 tm_file="${tm_file} dbx.h"
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
2254 xmake_file=mips/x-sony
2256 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2257 # That is based on svr4.
2258 # t-svr4 is not right because this system doesn't use ELF.
2259 tm_file="mips/news5.h ${tm_file}"
2260 if test x$stabs = xyes; then
2261 tm_file="${tm_file} dbx.h"
2263 xm_file="xm-siglist.h ${xm_file}"
2265 if test x$gas = xyes
2267 tmake_file=mips/t-mips-gas
2269 extra_passes="mips-tfile mips-tdump"
2271 if test x$gnu_ld != xyes
2276 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2277 tm_file="mips/svr4-5.h mips/svr4-t.h"
2278 if test x$stabs = xyes; then
2279 tm_file="${tm_file} dbx.h"
2281 xm_file="xm-siglist.h ${xm_file}"
2283 xmake_file=mips/x-sysv
2284 if test x$gas = xyes
2286 tmake_file=mips/t-mips-gas
2287 extra_parts="crtbegin.o crtend.o"
2289 tmake_file=mips/t-mips
2290 extra_passes="mips-tfile mips-tdump"
2292 if test x$gnu_ld != xyes
2297 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2298 tm_file="mips/ultrix.h ${tm_file}"
2299 if test x$stabs = xyes; then
2300 tm_file="${tm_file} dbx.h"
2302 xmake_file=mips/x-ultrix
2303 if test x$gas = xyes
2305 tmake_file=mips/t-mips-gas
2307 tmake_file=mips/t-ultrix
2308 extra_passes="mips-tfile mips-tdump"
2310 if test x$gnu_ld != xyes
2316 mips-*-riscos[56789]bsd*)
2318 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2319 if test x$stabs = xyes; then
2320 tm_file="${tm_file} dbx.h"
2322 if test x$gas = xyes
2324 tmake_file=mips/t-bsd-gas
2326 tmake_file=mips/t-bsd
2327 extra_passes="mips-tfile mips-tdump"
2329 if test x$gnu_ld != xyes
2335 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2337 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2338 if test x$stabs = xyes; then
2339 tm_file="${tm_file} dbx.h"
2341 if test x$gas = xyes
2343 tmake_file=mips/t-bsd-gas
2345 tmake_file=mips/t-bsd
2346 extra_passes="mips-tfile mips-tdump"
2348 if test x$gnu_ld != xyes
2354 mips-*-riscos[56789]sysv4*)
2356 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2357 if test x$stabs = xyes; then
2358 tm_file="${tm_file} dbx.h"
2360 xm_file="xm-siglist.h ${xm_file}"
2361 xmake_file=mips/x-sysv
2362 if test x$gas = xyes
2364 tmake_file=mips/t-svr4-gas
2366 tmake_file=mips/t-svr4
2367 extra_passes="mips-tfile mips-tdump"
2369 if test x$gnu_ld != xyes
2375 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2377 tm_file="mips/svr4-4.h ${tm_file}"
2378 if test x$stabs = xyes; then
2379 tm_file="${tm_file} dbx.h"
2382 xmake_file=mips/x-sysv
2383 if test x$gas = xyes
2385 tmake_file=mips/t-svr4-gas
2387 tmake_file=mips/t-svr4
2388 extra_passes="mips-tfile mips-tdump"
2390 if test x$gnu_ld != xyes
2396 mips-*-riscos[56789]sysv*)
2398 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2399 if test x$stabs = xyes; then
2400 tm_file="${tm_file} dbx.h"
2403 xmake_file=mips/x-sysv
2404 if test x$gas = xyes
2406 tmake_file=mips/t-svr3-gas
2408 tmake_file=mips/t-svr3
2409 extra_passes="mips-tfile mips-tdump"
2411 if test x$gnu_ld != xyes
2416 mips-*-sysv* | mips-*-riscos*sysv*)
2417 tm_file="mips/svr3-4.h ${tm_file}"
2418 if test x$stabs = xyes; then
2419 tm_file="${tm_file} dbx.h"
2422 xmake_file=mips/x-sysv
2423 if test x$gas = xyes
2425 tmake_file=mips/t-svr3-gas
2427 tmake_file=mips/t-svr3
2428 extra_passes="mips-tfile mips-tdump"
2430 if test x$gnu_ld != xyes
2436 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2438 tm_file=mips/mips-5.h
2439 if test x$stabs = xyes; then
2440 tm_file="${tm_file} dbx.h"
2442 if test x$gas = xyes
2444 tmake_file=mips/t-mips-gas
2446 extra_passes="mips-tfile mips-tdump"
2448 if test x$gnu_ld != xyes
2456 tm_file=mips/ecoffl.h
2457 if test x$stabs = xyes; then
2458 tm_file="${tm_file} dbx.h"
2460 tmake_file=mips/t-ecoff
2463 tm_file="gofast.h mips/ecoff.h"
2464 if test x$stabs = xyes; then
2465 tm_file="${tm_file} dbx.h"
2467 tmake_file=mips/t-ecoff
2470 tm_file="mips/elfl.h libgloss.h"
2471 tmake_file=mips/t-ecoff
2474 tm_file="mips/elf.h libgloss.h"
2475 tmake_file=mips/t-ecoff
2478 tm_file="mips/elfl64.h libgloss.h"
2479 tmake_file=mips/t-ecoff
2481 mips64orionel-*-elf*)
2482 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2483 tmake_file=mips/t-ecoff
2486 tm_file="mips/elf64.h libgloss.h"
2487 tmake_file=mips/t-ecoff
2490 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2491 tmake_file=mips/t-ecoff
2493 mips64orion-*-rtems*)
2494 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2495 tmake_file="mips/t-ecoff t-rtems"
2498 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2499 tmake_file=mips/t-r3900
2502 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2503 tmake_file=mips/t-r3900
2504 # FIXME mips-elf should be fixed to use crtstuff.
2507 mips-*-*) # Default MIPS RISC-OS 4.0.
2508 if test x$stabs = xyes; then
2509 tm_file="${tm_file} dbx.h"
2511 if test x$gas = xyes
2513 tmake_file=mips/t-mips-gas
2515 extra_passes="mips-tfile mips-tdump"
2517 if test x$gnu_ld != xyes
2524 tm_file="mn10200/mn10200.h"
2525 if test x$stabs = xyes
2527 tm_file="${tm_file} dbx.h"
2533 tm_file="mn10300/mn10300.h"
2534 if test x$stabs = xyes
2536 tm_file="${tm_file} dbx.h"
2541 tm_file=ns32k/encore.h
2545 tm_file=ns32k/sequent.h
2549 tm_file=ns32k/tek6100.h
2553 tm_file=ns32k/tek6200.h
2556 # This has not been updated to GCC 2.
2559 # xmake_file=ns32k/x-genix
2560 # tm_file=ns32k/genix.h
2564 tm_file=ns32k/merlin.h
2568 tm_file=ns32k/pc532-mach.h
2572 tm_file=ns32k/pc532-min.h
2573 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2578 tm_file=ns32k/netbsd.h
2579 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2580 # On NetBSD, the headers are already okay, except for math.h.
2581 fixincludes=fixinc.wrap
2585 tm_file="${tm_file} pdp11/2bsd.h"
2591 xmake_file=pyr/x-pyr
2598 xmake_file=romp/x-mach
2603 tm_file=rs6000/beos.h
2604 xm_file=rs6000/xm-beos.h
2605 tmake_file=rs6000/t-beos
2606 xmake_file=rs6000/x-beos
2608 powerpc-*-sysv* | powerpc-*-elf*)
2609 tm_file=rs6000/sysv4.h
2610 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2611 xm_defines="USG POSIX"
2612 extra_headers=ppc-asm.h
2613 if test x$gas = xyes
2615 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2617 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2619 xmake_file=rs6000/x-sysv4
2622 tm_file=rs6000/eabiaix.h
2623 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2624 fixincludes=Makefile.in
2625 extra_headers=ppc-asm.h
2628 tm_file=rs6000/eabisim.h
2629 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2630 fixincludes=Makefile.in
2631 extra_headers=ppc-asm.h
2634 tm_file=rs6000/eabi.h
2635 if test x$gas = xyes
2637 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2639 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2641 fixincludes=Makefile.in
2642 extra_headers=ppc-asm.h
2645 tm_file=rs6000/rtems.h
2646 if test x$gas = xyes
2648 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2650 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2652 fixincludes=Makefile.in
2653 extra_headers=ppc-asm.h
2655 powerpc-*-linux-gnulibc1)
2656 tm_file=rs6000/linux.h
2657 xm_file=rs6000/xm-sysv4.h
2658 out_file=rs6000/rs6000.c
2659 if test x$gas = xyes
2661 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2663 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2666 fixincludes=Makefile.in
2667 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2668 extra_headers=ppc-asm.h
2669 if test x$enable_threads = xyes; then
2673 powerpc-*-linux-gnu*)
2674 tm_file=rs6000/linux.h
2675 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2676 xm_defines="USG ${xm_defines}"
2677 out_file=rs6000/rs6000.c
2678 if test x$gas = xyes
2680 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2682 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2685 fixincludes=Makefile.in
2686 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2687 extra_headers=ppc-asm.h
2688 if test x$enable_threads = xyes; then
2692 powerpc-wrs-vxworks*)
2694 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2695 xm_defines="USG POSIX"
2696 tm_file=rs6000/vxppc.h
2697 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2698 extra_headers=ppc-asm.h
2699 thread_file='vxworks'
2701 powerpcle-*-sysv* | powerpcle-*-elf*)
2702 tm_file=rs6000/sysv4le.h
2703 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2704 xm_defines="USG POSIX"
2705 if test x$gas = xyes
2707 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2709 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2711 xmake_file=rs6000/x-sysv4
2712 extra_headers=ppc-asm.h
2714 powerpcle-*-eabisim*)
2715 tm_file=rs6000/eabilesim.h
2716 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2717 fixincludes=Makefile.in
2718 extra_headers=ppc-asm.h
2721 tm_file=rs6000/eabile.h
2722 if test x$gas = xyes
2724 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2726 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2728 fixincludes=Makefile.in
2729 extra_headers=ppc-asm.h
2731 powerpcle-*-winnt* )
2732 tm_file=rs6000/win-nt.h
2733 tmake_file=rs6000/t-winnt
2735 fixincludes=Makefile.in
2736 if test x$enable_threads = xyes; then
2739 extra_headers=ppc-asm.h
2741 powerpcle-*-pe | powerpcle-*-cygwin32)
2742 tm_file=rs6000/cygwin32.h
2743 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2744 tmake_file=rs6000/t-winnt
2745 xmake_file=rs6000/x-cygwin32
2747 fixincludes=Makefile.in
2748 if test x$enable_threads = xyes; then
2752 extra_headers=ppc-asm.h
2754 powerpcle-*-solaris2*)
2755 tm_file=rs6000/sol2.h
2756 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2757 xm_defines="USG POSIX"
2758 if test x$gas = xyes
2760 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2762 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2764 xmake_file=rs6000/x-sysv4
2769 fixincludes=fixinc.svr4;;
2771 fixincludes=fixinc.wrap;;
2773 extra_headers=ppc-asm.h
2776 rs6000-ibm-aix3.[01]*)
2778 tm_file=rs6000/aix31.h
2779 xmake_file=rs6000/x-aix31
2783 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2785 tm_file=rs6000/aix3newas.h
2786 if test x$host != x$target
2788 tmake_file=rs6000/t-xnewas
2790 tmake_file=rs6000/t-newas
2795 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2797 tm_file=rs6000/aix41.h
2798 if test x$host != x$target
2800 tmake_file=rs6000/t-xnewas
2802 tmake_file=rs6000/t-newas
2804 xmake_file=rs6000/x-aix41
2808 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2810 tm_file=rs6000/aix43.h
2811 if test x$host != x$target
2813 tmake_file=rs6000/t-xaix43
2815 tmake_file=rs6000/t-aix43
2817 xmake_file=rs6000/x-aix43
2821 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2823 tm_file=rs6000/aix43.h
2824 if test x$host != x$target
2826 tmake_file=rs6000/t-xaix43
2828 tmake_file=rs6000/t-aix43
2830 xmake_file=rs6000/x-aix43
2840 tm_file=rs6000/mach.h
2841 xm_file="${xm_file} rs6000/xm-mach.h"
2842 xmake_file=rs6000/x-mach
2846 tm_file=rs6000/lynx.h
2847 xm_file=rs6000/xm-lynx.h
2848 tmake_file=rs6000/t-rs6000
2849 xmake_file=rs6000/x-lynx
2857 tmake_file="sh/t-sh t-rtems"
2858 tm_file=sh/rtemself.h
2862 tmake_file="sh/t-sh t-rtems"
2871 xm_file="xm-alloca.h ${xm_file}"
2874 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2875 tm_file=sparc/vxsparc.h
2876 tmake_file=sparc/t-vxsparc
2878 thread_file='vxworks'
2881 tmake_file=sparc/t-sparcbare
2882 tm_file="sparc/aout.h libgloss.h"
2885 tm_file=sparc/netbsd.h
2886 # On NetBSD, the headers are already okay, except for math.h.
2887 fixincludes=fixinc.wrap
2895 tmake_file=sparc/t-elf
2896 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2900 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2901 xm_file="${xm_file} sparc/xm-linux.h"
2902 tm_file=sparc/linux-aout.h
2904 fixincludes=Makefile.in #On Linux, the headers are ok already.
2907 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2908 xm_file="${xm_file} sparc/xm-linux.h"
2910 tm_file=sparc/linux.h
2911 tmake_file="t-linux t-linux-gnulibc1"
2912 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2913 fixincludes=Makefile.in #On Linux, the headers are ok already.
2916 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2917 xm_file="${xm_file} sparc/xm-linux.h"
2919 tm_file=sparc/linux.h
2920 tmake_file="t-linux"
2921 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2922 fixincludes=Makefile.in #On Linux, the headers are ok already.
2924 if test x$enable_threads = xyes; then
2929 if test x$gas = xyes
2931 tm_file=sparc/lynx.h
2933 tm_file=sparc/lynx-ng.h
2935 xm_file=sparc/xm-lynx.h
2936 tmake_file=sparc/t-sunos41
2940 tmake_file="sparc/t-sparcbare t-rtems"
2941 tm_file=sparc/rtems.h
2943 sparcv9-*-solaris2*)
2944 tm_file=sparc/sol2-sld-64.h
2945 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2946 xm_defines="USG POSIX"
2947 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2948 xmake_file=sparc/x-sysv4
2949 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2950 fixincludes=fixinc.wrap
2952 if test x${enable_threads} = x ; then
2953 enable_threads=$have_pthread_h
2954 if test x${enable_threads} = x ; then
2955 enable_threads=$have_thread_h
2958 if test x${enable_threads} = xyes ; then
2959 if test x${have_pthread_h} = xyes ; then
2962 thread_file='solaris'
2967 if test x$gnu_ld = xyes
2969 tm_file=sparc/sol2.h
2971 tm_file=sparc/sol2-sld.h
2973 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2974 xm_defines="USG POSIX"
2975 tmake_file=sparc/t-sol2
2976 xmake_file=sparc/x-sysv4
2977 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2982 fixincludes=fixinc.svr4;;
2984 fixincludes=fixinc.wrap;;
2987 if test x${enable_threads} = x; then
2988 enable_threads=$have_pthread_h
2989 if test x${enable_threads} = x; then
2990 enable_threads=$have_thread_h
2993 if test x${enable_threads} = xyes; then
2994 if test x${have_pthread_h} = xyes; then
2997 thread_file='solaris'
3002 tm_file=sparc/sunos4.h
3003 tmake_file=sparc/t-sunos40
3007 tm_file=sparc/sunos4.h
3008 tmake_file=sparc/t-sunos41
3010 if test x$gas = xyes; then
3011 tm_file="${tm_file} sparc/sun4gas.h"
3015 tm_file=sparc/sun4o3.h
3019 tm_file=sparc/sysv4.h
3020 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3021 xm_defines="USG POSIX"
3023 xmake_file=sparc/x-sysv4
3024 extra_parts="crtbegin.o crtend.o"
3027 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3028 xm_defines="USG POSIX"
3029 tm_file=sparc/vxsim.h
3030 tmake_file=sparc/t-vxsparc
3031 xmake_file=sparc/x-sysv4
3034 tm_file="sparc/splet.h libgloss.h"
3035 tmake_file=sparc/t-splet
3038 tm_file="sparc/litecoff.h libgloss.h"
3039 tmake_file=sparc/t-sparclite
3042 tm_file="sparc/lite.h aoutos.h libgloss.h"
3043 tmake_file=sparc/t-sparclite
3046 tmake_file=sparc/t-sp64
3047 tm_file=sparc/sp64-aout.h
3050 tmake_file=sparc/t-sp64
3051 tm_file=sparc/sp64-elf.h
3052 extra_parts="crtbegin.o crtend.o"
3054 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3055 tmake_file="t-linux sparc/t-linux64"
3056 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3057 tm_file=sparc/linux64.h
3059 fixincludes=Makefile.in # The headers are ok already.
3060 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3063 # This hasn't been upgraded to GCC 2.
3064 # tahoe-harris-*) # Harris tahoe, using COFF.
3065 # tm_file=tahoe/harris.h
3067 # tahoe-*-bsd*) # tahoe running BSD
3069 thumb-*-coff* | thumbel-*-coff*)
3071 out_file=arm/thumb.c
3072 xm_file=arm/xm-thumb.h
3073 md_file=arm/thumb.md
3074 tmake_file=arm/t-thumb
3075 fixincludes=Makefile.in # There is nothing to fix
3077 # This hasn't been upgraded to GCC 2.
3084 tm_file="v850/v850.h"
3085 xm_file="v850/xm-v850.h"
3086 tmake_file=v850/t-v850
3087 if test x$stabs = xyes
3089 tm_file="${tm_file} dbx.h"
3093 vax-*-bsd*) # vaxen running BSD
3097 vax-*-sysv*) # vaxen running system V
3098 tm_file="${tm_file} vax/vaxv.h"
3103 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3104 # On NetBSD, the headers are already okay, except for math.h.
3105 fixincludes=fixinc.wrap
3109 vax-*-ultrix*) # vaxen running ultrix
3110 tm_file="${tm_file} vax/ultrix.h"
3114 vax-*-vms*) # vaxen running VMS
3115 xm_file=vax/xm-vms.h
3119 vax-*-*) # vax default entry
3123 xm_file="${xm_file} xm-svr3"
3127 echo "Configuration $machine not supported" 1>&2
3134 ;; # Existing GNU/Linux systems do not use the GNU setup.
3136 # On the GNU system, the setup is just about the same on
3137 # each different CPU. The specific machines that GNU
3138 # supports are matched above and just set $cpu_type.
3139 xm_file="xm-gnu.h ${xm_file}"
3140 tm_file=${cpu_type}/gnu.h
3141 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3142 # GNU always uses ELF.
3144 # GNU tools are the only tools.
3147 # On GNU, the headers are already okay.
3148 fixincludes=Makefile.in
3149 xmake_file=x-linux # These details are the same as Linux.
3150 tmake_file=t-gnu # These are not.
3153 fixincludes=fixinc.svr4
3154 xmake_try_sysv=x-sysv
3155 install_headers_dir=install-headers-cpio
3158 install_headers_dir=install-headers-cpio
3162 # Distinguish i[34567]86
3163 # Also, do not run mips-tfile on MIPS if using gas.
3164 # Process --with-cpu= for PowerPC/rs6000
3165 target_cpu_default2=
3168 target_cpu_default2=1
3171 target_cpu_default2=2
3173 i686-*-* | i786-*-*)
3174 target_cpu_default2=3
3179 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3182 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3185 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3188 target_cpu_default2="MASK_CPU_EV5"
3192 if test x$gas = xyes
3194 if test "$target_cpu_default2" = ""
3196 target_cpu_default2="MASK_GAS"
3198 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3203 case "x$with_cpu" in
3206 target_cpu_default2="TARGET_CPU_generic"
3209 # Distinguish cores, and major variants
3210 # arm7m doesn't exist, but D & I don't affect code
3211 xarm[23678] | xarm250 | xarm[67][01]0 \
3212 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3213 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3214 | xstrongarm | xstrongarm110)
3215 target_cpu_default2="TARGET_CPU_$with_cpu"
3219 echo "--with-cpu must be passed a value" 1>&2
3224 if test x$pass2done = xyes
3226 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3233 mips*-*-ecoff* | mips*-*-elf*)
3234 if test x$gas = xyes
3236 if test x$gnu_ld = xyes
3238 target_cpu_default2=20
3240 target_cpu_default2=16
3245 if test x$gas = xyes
3247 target_cpu_default2=16
3250 powerpc*-*-* | rs6000-*-*)
3251 case "x$with_cpu" in
3255 xcommon | xpower | xpower2 | xpowerpc | xrios \
3256 | xrios1 | xrios2 | xrsc | xrsc1 \
3257 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3258 | x403 | x505 | x801 | x821 | x823 | x860)
3259 target_cpu_default2="\"$with_cpu\""
3263 echo "--with-cpu must be passed a value" 1>&2
3268 if test x$pass2done = xyes
3270 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3277 case ".$with_cpu" in
3279 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3281 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3282 target_cpu_default2="TARGET_CPU_$with_cpu"
3285 if test x$pass2done = xyes
3287 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3295 if test "$target_cpu_default2" != ""
3297 if test "$target_cpu_default" != ""
3299 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3301 target_cpu_default=$target_cpu_default2
3305 # No need for collect2 if we have the GNU linker.
3306 # Actually, there is now; GNU ld doesn't handle the EH info or
3307 # collecting for shared libraries.
3314 # Save data on machine being used to compile GCC in build_xm_file.
3315 # Save data on host machine in vars host_xm_file and host_xmake_file.
3316 if test x$pass1done = x
3318 if test x"$xm_file" = x
3319 then build_xm_file=$cpu_type/xm-$cpu_type.h
3320 else build_xm_file=$xm_file
3322 build_xm_defines=$xm_defines
3323 build_install_headers_dir=$install_headers_dir
3324 build_exeext=$exeext
3327 if test x$pass2done = x
3329 if test x"$xm_file" = x
3330 then host_xm_file=$cpu_type/xm-$cpu_type.h
3331 else host_xm_file=$xm_file
3333 host_xm_defines=$xm_defines
3334 if test x"$xmake_file" = x
3335 then xmake_file=$cpu_type/x-$cpu_type
3337 host_xmake_file="$xmake_file"
3338 host_truncate_target=$truncate_target
3339 host_extra_gcc_objs=$extra_gcc_objs
3340 host_extra_objs=$extra_host_objs
3347 extra_objs="${host_extra_objs} ${extra_objs}"
3349 # Default the target-machine variables that were not explicitly set.
3350 if test x"$tm_file" = x
3351 then tm_file=$cpu_type/$cpu_type.h; fi
3353 if test x$extra_headers = x
3354 then extra_headers=; fi
3356 if test x"$xm_file" = x
3357 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3359 if test x$md_file = x
3360 then md_file=$cpu_type/$cpu_type.md; fi
3362 if test x$out_file = x
3363 then out_file=$cpu_type/$cpu_type.c; fi
3365 if test x"$tmake_file" = x
3366 then tmake_file=$cpu_type/t-$cpu_type
3369 if test x$float_format = x
3370 then float_format=i64
3373 if test x$enable_haifa = x
3376 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3381 # Say what files are being used for the output code and MD file.
3382 echo "Using \`$srcdir/config/$out_file' to output insns."
3383 echo "Using \`$srcdir/config/$md_file' as machine description file."
3386 for f in $tm_file; do
3389 if test $count = ax; then
3390 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3392 echo "Using the following target machine macro files:"
3393 for f in $tm_file; do
3394 echo " $srcdir/config/$f"
3399 for f in $host_xm_file; do
3402 if test $count = ax; then
3403 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3405 echo "Using the following host machine macro files:"
3406 for f in $host_xm_file; do
3407 echo " $srcdir/config/$f"
3411 if test "$host_xm_file" != "$build_xm_file"; then
3413 for f in $build_xm_file; do
3416 if test $count = ax; then
3417 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3419 echo "Using the following build machine macro files:"
3420 for f in $build_xm_file; do
3421 echo " $srcdir/config/$f"
3426 if test x$thread_file = x; then
3427 if test x$target_thread_file != x; then
3428 thread_file=$target_thread_file
3430 thread_file='single'
3434 # Set up the header files.
3435 # $links is the list of header files to create.
3436 # $vars is the list of shell variables with file names to include.
3437 # auto-host.h is the file containing items generated by autoconf and is
3438 # the first file included by config.h.
3440 host_xm_file="auto-host.h ${host_xm_file}"
3442 # If host=build, it is correct to have hconfig include auto-host.h
3443 # as well. If host!=build, we are in error and need to do more
3444 # work to find out the build config parameters.
3445 if test x$host = x$build
3447 build_xm_file="auto-host.h ${build_xm_file}"
3449 # We create a subdir, then run autoconf in the subdir.
3450 # To prevent recursion we set host and build for the new
3451 # invocation of configure to the build for this invocation
3458 /*) realsrcdir=${srcdir};;
3459 *) realsrcdir=../${srcdir};;
3461 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3462 --target=$target --host=$build --build=$build
3464 # We just finished tests for the build machine, so rename
3465 # the file auto-build.h in the gcc directory.
3466 mv auto-host.h ../auto-build.h
3469 build_xm_file="auto-build.h ${build_xm_file}"
3472 vars="host_xm_file tm_file xm_file build_xm_file"
3473 links="config.h tm.h tconfig.h hconfig.h"
3474 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3477 if test -f config.status; then mv -f config.status config.bak; fi
3480 while test -n "$vars"
3482 set $vars; var=$1; shift; vars=$*
3483 set $links; link=$1; shift; links=$*
3484 set $defines; define=$1; shift; defines=$*
3488 # Define TARGET_CPU_DEFAULT if the system wants one.
3489 # This substitutes for lots of *.h files.
3490 if test "$target_cpu_default" != "" -a $link = tm.h
3492 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3495 for file in `eval echo '$'$var`; do
3496 echo "#include \"$file\"" >>$link
3499 for def in `eval echo '$'$define`; do
3500 echo "#ifndef $def" >>$link
3501 echo "#define $def" >>$link
3502 echo "#endif" >>$link
3506 # Truncate the target if necessary
3507 if test x$host_truncate_target != x; then
3508 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3511 # Get the version trigger filename from the toplevel
3512 if test "${with_gcc_version_trigger+set}" = set; then
3513 gcc_version_trigger=$with_gcc_version_trigger
3515 gcc_version_trigger=${srcdir}/version.c
3518 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3521 # Get an absolute path to the GCC top-level source directory
3527 # Conditionalize the makefile for this host machine.
3528 # Make-host contains the concatenation of all host makefile fragments
3529 # [there can be more than one]. This file is built by configure.frag.
3530 host_overrides=Make-host
3531 dep_host_xmake_file=
3532 for f in .. ${host_xmake_file}
3534 if test -f ${srcdir}/config/$f
3536 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3540 # Conditionalize the makefile for this target machine.
3541 # Make-target contains the concatenation of all host makefile fragments
3542 # [there can be more than one]. This file is built by configure.frag.
3543 target_overrides=Make-target
3545 for f in .. ${tmake_file}
3547 if test -f ${srcdir}/config/$f
3549 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3553 # If the host doesn't support symlinks, modify CC in
3554 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3555 # Otherwise, we can use "CC=$(CC)".
3557 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3559 cc_set_by_configure="\$(CC)"
3560 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3563 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3565 symbolic_link="cp -p"
3569 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3570 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3574 out_object_file=`basename $out_file .c`.o
3577 for f in $tm_file; do
3578 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3582 for f in $host_xm_file; do
3583 if test $f != "auto-host.h"; then
3584 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3586 host_xm_file_list="${host_xm_file_list} auto-host.h"
3591 for f in $build_xm_file; do
3592 if test $f != "auto-build.h"; then
3593 if test $f != "auto-host.h"; then
3594 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3596 build_xm_file_list="${build_xm_file_list} auto-host.h"
3599 build_xm_file_list="${build_xm_file_list} auto-build.h"
3603 # Define macro CROSS_COMPILE in compilation
3604 # if this is a cross-compiler.
3605 # Also use all.cross instead of all.internal
3606 # and add cross-make to Makefile.
3607 cross_overrides="/dev/null"
3608 if test x$host != x$target
3610 cross_defines="CROSS=-DCROSS_COMPILE"
3611 cross_overrides="${topdir}/cross-make"
3614 # When building gcc with a cross-compiler, we need to fix a few things.
3615 # This must come after cross-make as we want all.build to override
3617 build_overrides="/dev/null"
3618 if test x$build != x$host
3620 build_overrides="${topdir}/build-make"
3623 # Expand extra_headers to include complete path.
3624 # This substitutes for lots of t-* files.
3626 if test "x$extra_headers" = x
3629 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3630 for file in $extra_headers;
3632 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3636 if test x$use_collect2 = xno; then
3640 # Add a definition of USE_COLLECT2 if system wants one.
3641 # Also tell toplev.c what to do.
3642 # This substitutes for lots of t-* files.
3643 if test x$use_collect2 = x
3648 will_use_collect2="collect2"
3649 maybe_use_collect2="-DUSE_COLLECT2"
3653 # Set MD_DEPS if the real md file is in md.pre-cpp.
3654 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3655 # for line oriented comments, so we must always use a GNU cpp. If
3656 # building gcc with a cross compiler, use the cross compiler just
3657 # built. Otherwise, we can use the cpp just built.
3659 if test "x$md_cppflags" = x
3661 md_file_sub=$srcdir/config/$md_file
3666 # If we have gas in the build tree, make a link to it.
3667 if test -f ../gas/Makefile; then
3668 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3671 # If we have nm in the build tree, make a link to it.
3672 if test -f ../binutils/Makefile; then
3673 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3676 # If we have ld in the build tree, make a link to it.
3677 if test -f ../ld/Makefile; then
3678 # if test x$use_collect2 = x; then
3679 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3681 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3685 # Figure out what assembler alignment features are present.
3686 AC_MSG_CHECKING(assembler alignment features)
3688 gcc_cv_as_alignment_features=
3689 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3690 if test -x "$AS"; then
3692 elif test -x as$host_exeext; then
3693 # Build using assembler in the current directory.
3694 gcc_cv_as=./as$host_exeext
3695 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3696 # Single tree build which includes gas.
3697 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3700 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3702 if test x$gcc_cv_gas_version != x; then
3707 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3708 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3710 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3711 # Gas version 2.6 and later support for .balign and .p2align.
3712 # bytes to skip when using .p2align.
3713 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
3714 gcc_cv_as_alignment_features=".balign and .p2align"
3715 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3717 # Gas version 2.8 and later support specifying the maximum
3718 # bytes to skip when using .p2align.
3719 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
3720 gcc_cv_as_alignment_features=".p2align including maximum skip"
3721 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3724 elif test x$host = x$target; then
3726 gcc_cv_as=as$host_exeext
3728 if test x$gcc_cv_as != x; then
3729 # Check if we have .balign and .p2align
3730 echo ".balign 4" > conftest.s
3731 echo ".p2align 2" >> conftest.s
3732 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3733 gcc_cv_as_alignment_features=".balign and .p2align"
3734 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3736 rm -f conftest.s conftest.o
3737 # Check if specifying the maximum bytes to skip when
3738 # using .p2align is supported.
3739 echo ".p2align 4,,7" > conftest.s
3740 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3741 gcc_cv_as_alignment_features=".p2align including maximum skip"
3742 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3744 rm -f conftest.s conftest.o
3746 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3748 AC_MSG_CHECKING(assembler subsection support)
3749 gcc_cv_as_subsections=
3750 if test x$gcc_cv_as != x; then
3751 # Check if we have .subsection
3752 echo ".subsection 1" > conftest.s
3753 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3754 gcc_cv_as_subsections=".subsection"
3755 if test -x nm$host_exeext; then
3756 gcc_cv_nm=./nm$host_exeext
3757 elif test x$host = x$target; then
3759 gcc_cv_nm=nm$host_exeext
3761 if test x$gcc_cv_nm != x; then
3762 cat > conftest.s <<EOF
3763 conftest_label1: .word 0
3765 conftest_label2: .word 0
3768 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3769 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3770 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3771 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3774 gcc_cv_as_subsections="working .subsection -1"
3775 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3780 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3782 AC_MSG_RESULT($gcc_cv_as_subsections)
3784 # Figure out what language subdirectories are present.
3786 for lang in ${srcdir}/*/config-lang.in ..
3790 # The odd quoting in the next line works around
3791 # an apparent bug in bash 1.12 on linux.
3793 ${srcdir}/ada/config-lang.in)
3794 if test x$gnat = xyes ; then
3795 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3798 ${srcdir}/[*]/config-lang.in) ;;
3799 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3804 # Make gthr-default.h if we have a thread file.
3806 if test $thread_file != single; then
3807 rm -f gthr-default.h
3808 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3809 gthread_flags=-DHAVE_GTHR_DEFAULT
3811 AC_SUBST(gthread_flags)
3813 # Make empty files to contain the specs and options for each language.
3814 # Then add #include lines to for a compiler that has specs and/or options.
3819 rm -f specs.h options.h gencheck.h
3820 touch specs.h options.h gencheck.h
3821 for subdir in . $subdirs
3823 if test -f $srcdir/$subdir/lang-specs.h; then
3824 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3825 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3827 if test -f $srcdir/$subdir/lang-options.h; then
3828 echo "#include \"$subdir/lang-options.h\"" >>options.h
3829 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3831 if test -f $srcdir/$subdir/$subdir-tree.def; then
3832 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3833 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3837 # These (without "all_") are set in each config-lang.in.
3838 # `language' must be a single word so is spelled singularly.
3844 all_outputs=Makefile
3845 # List of language makefile fragments.
3850 # Add the language fragments.
3851 # Languages are added via two mechanisms. Some information must be
3852 # recorded in makefile variables, these are defined in config-lang.in.
3853 # We accumulate them and plug them into the main Makefile.
3854 # The other mechanism is a set of hooks for each of the main targets
3855 # like `clean', `install', etc.
3857 language_fragments="Make-lang"
3858 language_hooks="Make-hooks"
3861 for s in .. $subdirs
3873 . ${srcdir}/$s/config-lang.in
3874 if test "x$language" = x
3876 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3879 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3880 all_languages="$all_languages $language"
3881 if test "x$boot_language" = xyes
3883 all_boot_languages="$all_boot_languages $language"
3885 all_compilers="$all_compilers $compilers"
3886 all_stagestuff="$all_stagestuff $stagestuff"
3887 all_diff_excludes="$all_diff_excludes $diff_excludes"
3888 all_headers="$all_headers $headers"
3889 all_outputs="$all_outputs $outputs"
3890 if test x$outputs = x
3892 oldstyle_subdirs="$oldstyle_subdirs $s"
3894 all_lib2funcs="$all_lib2funcs $lib2funcs"
3898 # Since we can't use `::' targets, we link each language in
3899 # with a set of hooks, reached indirectly via lang.${target}.
3903 target_list="all.build all.cross start.encap rest.encap \
3905 install-normal install-common install-info install-man \
3907 mostlyclean clean distclean extraclean maintainer-clean \
3908 stage1 stage2 stage3 stage4"
3909 for t in $target_list
3912 for l in .. $all_languages
3914 if test $l != ".."; then
3918 echo "lang.$t: $x" >> Make-hooks
3921 # If we're not building in srcdir, create .gdbinit.
3923 if test ! -f Makefile.in; then
3924 echo "dir ." > .gdbinit
3925 echo "dir ${srcdir}" >> .gdbinit
3926 if test x$gdb_needs_out_file_path = xyes
3928 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3930 if test "x$subdirs" != x; then
3933 echo "dir ${srcdir}/$s" >> .gdbinit
3936 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3939 # Define variables host_canonical and build_canonical
3940 # because some Cygnus local changes in the Makefile depend on them.
3941 build_canonical=${build}
3942 host_canonical=${host}
3944 if test "${host}" != "${target}" ; then
3945 target_subdir=${target}/
3947 AC_SUBST(build_canonical)
3948 AC_SUBST(host_canonical)
3949 AC_SUBST(target_subdir)
3951 # If this is using newlib, then define inhibit_libc in
3952 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3953 # libgcc.a, but that's OK because newib should have its own version of
3956 if test x$with_newlib = xyes; then
3957 inhibit_libc=-Dinhibit_libc
3959 AC_SUBST(inhibit_libc)
3961 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3964 if test x$enable_haifa = xyes; then
3965 echo "Using the Haifa scheduler."
3967 sched_cflags=-DHAIFA
3969 AC_SUBST(sched_prefix)
3970 AC_SUBST(sched_cflags)
3971 if test x$enable_haifa != x; then
3972 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3973 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3981 # Warn if using init_priority.
3982 AC_MSG_CHECKING(whether to enable init_priority by default)
3983 if test x$enable_init_priority != xyes; then
3984 enable_init_priority=no
3986 AC_MSG_RESULT($enable_init_priority)
3988 # Nothing to do for FLOAT_H, float_format already handled.
3992 # Process the language and host/target makefile fragments.
3993 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3995 # Substitute configuration variables
3997 AC_SUBST(all_languages)
3998 AC_SUBST(all_boot_languages)
3999 AC_SUBST(all_compilers)
4000 AC_SUBST(all_lang_makefiles)
4001 AC_SUBST(all_stagestuff)
4002 AC_SUBST(all_diff_excludes)
4003 AC_SUBST(all_lib2funcs)
4004 AC_SUBST(all_headers)
4006 AC_SUBST(extra_passes)
4007 AC_SUBST(extra_programs)
4008 AC_SUBST(extra_parts)
4009 AC_SUBST(extra_c_objs)
4010 AC_SUBST(extra_cxx_objs)
4011 AC_SUBST(extra_cpp_objs)
4012 AC_SUBST(extra_c_flags)
4013 AC_SUBST(extra_objs)
4014 AC_SUBST(host_extra_gcc_objs)
4015 AC_SUBST(extra_headers_list)
4016 AC_SUBST(dep_host_xmake_file)
4017 AC_SUBST(dep_tmake_file)
4019 AC_SUBST(out_object_file)
4021 AC_SUBST(tm_file_list)
4022 AC_SUBST(build_xm_file_list)
4023 AC_SUBST(host_xm_file_list)
4024 AC_SUBST(lang_specs_files)
4025 AC_SUBST(lang_options_files)
4026 AC_SUBST(lang_tree_files)
4027 AC_SUBST(thread_file)
4028 AC_SUBST(objc_boehm_gc)
4029 AC_SUBST(gcc_version)
4030 AC_SUBST(gcc_version_trigger)
4031 AC_SUBST(local_prefix)
4032 AC_SUBST(gxx_include_dir)
4033 AC_SUBST(fixincludes)
4034 AC_SUBST(build_install_headers_dir)
4035 AC_SUBST(build_exeext)
4036 AC_SUBST(host_exeext)
4037 AC_SUBST(float_format)
4038 AC_SUBST(will_use_collect2)
4039 AC_SUBST(maybe_use_collect2)
4040 AC_SUBST(cc_set_by_configure)
4041 AC_SUBST(stage_prefix_set_by_configure)
4043 AC_SUBST(symbolic_link)
4045 AC_SUBST_FILE(target_overrides)
4046 AC_SUBST_FILE(host_overrides)
4047 AC_SUBST(cross_defines)
4048 AC_SUBST_FILE(cross_overrides)
4049 AC_SUBST_FILE(build_overrides)
4050 AC_SUBST_FILE(language_fragments)
4051 AC_SUBST_FILE(language_hooks)
4053 # Echo that links are built
4054 if test x$host = x$target
4062 if test x$host != x$build
4064 str3=" on a $build system"
4067 if test "x$str2" != x || test "x$str3" != x
4072 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4074 if test "x$str2" != x || test "x$str3" != x
4076 echo " ${str2}${str3}." 1>&2
4079 # Truncate the target if necessary
4080 if test x$host_truncate_target != x; then
4081 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4084 # Configure the subdirectories
4085 # AC_CONFIG_SUBDIRS($subdirs)
4087 # Create the Makefile
4088 # and configure language subdirectories
4089 AC_OUTPUT($all_outputs,
4091 . $srcdir/configure.lang
4092 case x$CONFIG_HEADERS in
4093 xauto-host.h:config.in)
4096 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4097 # bootstrapping and the installation procedure can still use
4098 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4099 # FLAGS_TO_PASS has been modified to solve the problem there.
4100 # This is virtually a duplicate of what happens in configure.lang; we do
4101 # an extra check to make sure this only happens if ln -s can be used.
4102 if test "$symbolic_link" = "ln -s"; then
4103 for d in .. ${subdirs} ; do
4104 if test $d != ..; then
4107 for t in stage1 stage2 stage3 stage4 include
4110 $symbolic_link ../$t $t 2>/dev/null
4121 target_alias='${target_alias}'
4123 subdirs='${subdirs}'
4124 oldstyle_subdirs='${oldstyle_subdirs}'
4125 symbolic_link='${symbolic_link}'
4126 program_transform_set='${program_transform_set}'
4127 program_transform_name='${program_transform_name}'
4128 dep_host_xmake_file='${dep_host_xmake_file}'
4129 host_xmake_file='${host_xmake_file}'
4130 dep_tmake_file='${dep_tmake_file}'
4131 tmake_file='${tmake_file}'
4132 thread_file='${thread_file}'
4133 gcc_version='${gcc_version}'
4134 gcc_version_trigger='${gcc_version_trigger}'
4135 local_prefix='${local_prefix}'
4136 build_install_headers_dir='${build_install_headers_dir}'
4137 build_exeext='${build_exeext}'
4138 host_exeext='${host_exeext}'
4139 out_file='${out_file}'
4140 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4141 SET_MAKE='${SET_MAKE}'
4142 target_list='${target_list}'
4143 target_overrides='${target_overrides}'
4144 host_overrides='${host_overrides}'
4145 cross_defines='${cross_defines}'
4146 cross_overrides='${cross_overrides}'
4147 build_overrides='${build_overrides}'