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 additional parameters
36 [ --with-gnu-ld arrange to work with GNU ld.],
37 gnu_ld_flag="$with_gnu_ld",
42 [ --with-gnu-as arrange to work with GNU as.],
43 gas_flag="$with_gnu_as",
48 [ --with-stabs arrange to use stabs instead of host debug format.],
54 [ --with-elf arrange to use ELF instead of host debug format.],
58 # Specify the local prefix
60 AC_ARG_WITH(local-prefix,
61 [ --with-local-prefix=DIR specifies directory to put local include.],
63 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
65 *) local_prefix=$with_local_prefix ;;
68 # Default local prefix if it is empty
69 if test x$local_prefix = x; then
70 local_prefix=/usr/local
74 # Specify the g++ header file directory
75 AC_ARG_WITH(gxx-include-dir,
76 [ --with-gxx-include-dir=DIR
77 specifies directory to put g++ header files.],
79 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
81 *) gxx_include_dir=$with_gxx_include_dir ;;
84 if test x${gxx_include_dir} = x; then
85 if test x${enable_version_specific_runtime_libs} = xyes; then
86 gxx_include_dir='${libsubdir}/include/g++'
88 gxx_include_dir='${prefix}/include/g++'
92 # Enable expensive internal checks
93 AC_ARG_ENABLE(checking,
94 [ --enable-checking enable expensive run-time checks.],
95 [case "${enableval}" in
96 yes) AC_DEFINE(ENABLE_CHECKING) ;;
98 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
101 # Enable use of cpplib for C.
103 AC_ARG_ENABLE(c-cpplib,
104 [ --enable-c-cpplib Use cpplib for C and C++.],
105 if test x$enable_c_cpplib != xno; then
106 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
107 extra_c_objs="${extra_c_objs} prefix.o"
108 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
109 extra_c_flags=-DUSE_CPPLIB=1
113 # Enable Multibyte Characters for C/C++
114 AC_ARG_ENABLE(c-mbchar,
115 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
116 if test x$enable_c_mbchar != xno; then
117 extra_c_flags=-DMULTIBYTE_CHARS=1
120 # Enable Haifa scheduler.
122 [ --enable-haifa Use the experimental scheduler.
123 --disable-haifa Don't use the experimental scheduler for the
124 targets which normally enable it.])
127 # This is a work in progress...
128 AC_ARG_WITH(fast-fixincludes,
129 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
130 fast_fixinc="$with_fast_fixincludes",
133 # Enable init_priority.
134 AC_ARG_ENABLE(init-priority,
135 [ --enable-init-priority Use attributes to assign initialization order
137 --disable-init-priority Conform to ISO C++ rules for ordering static objects
138 (i.e. initialized in order of declaration). ],
139 if test x$enable_init_priority != xno; then
140 extra_c_flags=-DUSE_INIT_PRIORITY
144 # Pass with no value to take the default
145 # Pass with a value to specify a thread package
146 AC_ARG_ENABLE(threads,
147 [ --enable-threads enable thread usage for target GCC.
148 --enable-threads=LIB use LIB thread package for target GCC.],
149 if test x$enable_threads = xno; then
154 enable_threads_flag=$enable_threads
155 # Check if a valid thread package
156 case x${enable_threads_flag} in
159 target_thread_file='single'
163 target_thread_file=''
165 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
166 xsolaris | xwin32 | xdce | xvxworks)
167 target_thread_file=$enable_threads_flag
170 echo "$enable_threads is an unknown thread package" 1>&2
175 # Determine the host, build, and target systems
178 # Find the native compiler
182 # Find some useful tools
194 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)
196 # Check for thread headers.
197 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
198 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
200 # See if the system preprocessor understands the ANSI C preprocessor
201 # stringification operator.
202 AC_MSG_CHECKING(whether cpp understands the stringify operator)
203 AC_CACHE_VAL(gcc_cv_c_have_stringify,
206 char *test = S(foo);],
207 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
208 AC_MSG_RESULT($gcc_cv_c_have_stringify)
209 if test $gcc_cv_c_have_stringify = yes; then
210 AC_DEFINE(HAVE_CPP_STRINGIFY)
213 # Use <inttypes.h> only if it exists,
214 # doesn't clash with <sys/types.h>, and declares intmax_t.
215 AC_MSG_CHECKING(for inttypes.h)
216 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
218 [#include <sys/types.h>
219 #include <inttypes.h>],
221 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
222 gcc_cv_header_inttypes_h=yes],
223 gcc_cv_header_inttypes_h=no)])
224 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
226 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
227 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
228 sysconf isascii gettimeofday)
230 # Make sure wchar_t is available
231 #AC_CHECK_TYPE(wchar_t, unsigned int)
233 GCC_FUNC_VFPRINTF_DOPRNT
236 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
237 index rindex getenv atol sbrk abort atof strerror getcwd getwd)
239 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
240 #include <sys/types.h>
241 #ifdef HAVE_SYS_RESOURCE_H
242 #include <sys/resource.h>
256 build_install_headers_dir=install-headers-tar
261 host_truncate_target=
264 # Decode the host machine, then the target machine.
265 # For the host machine, we save the xm_file variable as host_xm_file;
266 # then we decode the target machine and forget everything else
267 # that came from the host machine.
268 for machine in $build $host $target; do
282 # Set this to force installation and use of collect2.
284 # Set this to override the default target model.
286 # Set this to control which fixincludes program to use.
287 if test x$fast_fixinc != xyes; then
288 fixincludes=fixincludes
289 else fixincludes=fixinc.sh ; fi
290 # Set this to control how the header file directory is installed.
291 install_headers_dir=install-headers-tar
292 # Set this to a non-empty list of args to pass to cpp if the target
293 # wants its .md file passed through cpp.
295 # Set this if directory names should be truncated to 14 characters.
297 # Set this if gdb needs a dir command with `dirname $out_file`
298 gdb_needs_out_file_path=
299 # Set this if the build machine requires executables to have a
302 # Set this to control which thread package will be used.
304 # Reinitialize these from the flag values every loop pass, since some
305 # configure entries modify them.
307 gnu_ld="$gnu_ld_flag"
308 enable_threads=$enable_threads_flag
310 # Set default cpu_type, tm_file and xm_file so it can be updated in
311 # each machine entry.
312 cpu_type=`echo $machine | sed 's/-.*$//'`
348 tm_file=${cpu_type}/${cpu_type}.h
349 xm_file=${cpu_type}/xm-${cpu_type}.h
351 # Set the default macros to define for GNU/Linux systems.
354 xm_defines="HAVE_ATEXIT POSIX BSTRING"
359 # Support site-specific machine types.
361 cpu_type=`echo $machine | sed -e 's/-.*//'`
362 rest=`echo $machine | sed -e "s/$cpu_type-//"`
363 xm_file=${cpu_type}/xm-$rest.h
364 tm_file=${cpu_type}/$rest.h
365 if test -f $srcdir/config/${cpu_type}/x-$rest; \
366 then xmake_file=${cpu_type}/x-$rest; \
369 if test -f $srcdir/config/${cpu_type}/t-$rest; \
370 then tmake_file=${cpu_type}/t-$rest; \
376 a29k-*-bsd* | a29k-*-sym1*)
377 tm_file="${tm_file} a29k/unix.h"
379 xmake_file=a29k/x-unix
382 a29k-*-udi | a29k-*-coff)
383 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
384 tmake_file=a29k/t-a29kbare
387 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
388 tmake_file=a29k/t-vx29k
389 extra_parts="crtbegin.o crtend.o"
390 thread_file='vxworks'
392 a29k-*-*) # Default a29k environment.
395 alpha*-*-linux-gnuecoff*)
396 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
397 target_cpu_default="MASK_GAS"
402 alpha*-*-linux-gnulibc1*)
403 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
404 target_cpu_default="MASK_GAS"
405 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
406 extra_parts="crtbegin.o crtend.o"
407 fixincludes=fixinc.wrap
410 if test x$enable_threads = xyes; then
415 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
416 target_cpu_default="MASK_GAS"
417 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
418 extra_parts="crtbegin.o crtend.o"
420 fixincludes=Makefile.in
422 if test x$enable_threads = xyes; then
427 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
428 xm_file="xm-netbsd.h ${xm_file}"
429 target_cpu_default="MASK_GAS"
430 tmake_file="alpha/t-crtbe"
431 extra_parts="crtbegin.o crtend.o"
433 fixincludes=fixinc.wrap
438 if test x$stabs = xyes
440 tm_file="${tm_file} dbx.h"
442 if test x$gas != xyes
444 extra_passes="mips-tfile mips-tdump"
449 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
454 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
457 tm_file="${tm_file} alpha/osf.h"
458 # Some versions of OSF4 (specifically X4.0-9 296.7) have
459 # a broken tar, so we use cpio instead.
460 install_headers_dir=install-headers-cpio
465 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
467 target_cpu_default=MASK_SUPPORT_ARCH
472 tm_file="${tm_file} dbx.h alpha/vxworks.h"
475 extra_passes="mips-tfile mips-tdump"
480 tm_file="${tm_file} alpha/win-nt.h"
481 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
483 xmake_file=winnt/x-winnt
484 extra_host_objs=oldnames.o
485 extra_gcc_objs="spawnv.o oldnames.o"
486 fixincludes=fixinc.winnt
487 if test x$gnu_ld != xyes
489 extra_programs=ld.exe
491 if test x$enable_threads = xyes; then
497 xm_file="${xm_file} alpha/xm-vms.h"
498 tmake_file=alpha/t-vms
499 fixincludes=Makefile.in
502 extra_parts="crtinit.o crtfini.o"
504 arm-*-coff* | armel-*-coff*)
506 tmake_file=arm/t-bare
509 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
511 tm_file=arm/riscix1-1.h
514 arm-*-riscix*) # Acorn RISC machine
517 tm_file=arm/rix-gas.h
521 xmake_file=arm/x-riscix
522 tmake_file=arm/t-riscix
525 arm-semi-aout | armel-semi-aout)
527 tmake_file=arm/t-semi
528 fixincludes=Makefile.in # There is nothing to fix
530 arm-semi-aof | armel-semi-aof)
531 tm_file=arm/semiaof.h
532 tmake_file=arm/t-semiaof
533 fixincludes=Makefile.in # There is nothing to fix
537 xm_file="xm-netbsd.h ${xm_file}"
538 tmake_file="t-netbsd arm/t-netbsd"
539 # On NetBSD, the headers are already okay, except for math.h.
540 fixincludes=fixinc.wrap
542 arm-*-linux-gnuaout*) # ARM GNU/Linux
545 tm_file=arm/linux-gas.h
546 tmake_file=arm/t-linux
547 fixincludes=Makefile.in
552 tmake_file=arm/t-bare
554 c1-convex-*) # Convex C1
557 fixincludes=Makefile.in
559 c2-convex-*) # Convex C2
562 fixincludes=Makefile.in
567 fixincludes=Makefile.in
572 fixincludes=Makefile.in
575 target_cpu_default=16
577 fixincludes=Makefile.in
579 clipper-intergraph-clix*)
580 tm_file="${tm_file} svr3.h clipper/clix.h"
581 xm_file=clipper/xm-clix.h
582 xmake_file=clipper/x-clix
583 extra_headers=va-clipper.h
584 extra_parts="crtbegin.o crtend.o"
585 install_headers_dir=install-headers-cpio
592 # This hasn't been upgraded to GCC 2.
593 # fx80-alliant-*) # Alliant FX/80
599 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
600 xm_file=pa/xm-papro.h
605 tm_file="${tm_file} pa/pa-osf.h"
607 fixincludes=Makefile.in
610 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
611 xm_file=pa/xm-papro.h
615 tm_file="${tm_file} pa/pa-osf.h"
617 fixincludes=Makefile.in
622 fixincludes=Makefile.in
626 fixincludes=Makefile.in
629 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
630 xm_file=pa/xm-pahpux.h
631 xmake_file=pa/x-pa-hpux
634 tm_file="${tm_file} pa/gas.h"
636 install_headers_dir=install-headers-cpio
640 hppa1.0-*-hpux8.0[0-2]*)
642 tm_file="${tm_file} pa/pa-hpux.h"
643 xm_file=pa/xm-pahpux.h
644 xmake_file=pa/x-pa-hpux
647 tm_file="${tm_file} pa/pa-gas.h"
649 tm_file="pa/pa-oldas.h ${tm_file}"
651 install_headers_dir=install-headers-cpio
655 hppa1.1-*-hpux8.0[0-2]*)
658 tm_file="${tm_file} pa/pa-hpux.h"
659 xm_file=pa/xm-pahpux.h
660 xmake_file=pa/x-pa-hpux
663 tm_file="${tm_file} pa/pa-gas.h"
665 tm_file="pa/pa-oldas.h ${tm_file}"
667 install_headers_dir=install-headers-cpio
672 tm_file="${tm_file} pa/pa-hpux.h"
673 xm_file=pa/xm-pahpux.h
674 xmake_file=pa/x-pa-hpux
677 tm_file="${tm_file} pa/pa-gas.h"
679 install_headers_dir=install-headers-cpio
683 tm_file="${tm_file} pa/pa-hpux.h"
684 xm_file=pa/xm-pahpux.h
685 xmake_file=pa/x-pa-hpux
688 tm_file="${tm_file} pa/pa-gas.h"
690 install_headers_dir=install-headers-cpio
695 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
696 xm_file=pa/xm-pahpux.h
697 xmake_file=pa/x-pa-hpux
701 tm_file="${tm_file} pa/pa-gas.h"
703 if test x$enable_threads = x; then
704 enable_threads=$have_pthread_h
706 if test x$enable_threads = xyes; then
708 tmake_file="${tmake_file} pa/t-dce-thr"
710 install_headers_dir=install-headers-cpio
714 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
715 xm_file=pa/xm-pahpux.h
716 xmake_file=pa/x-pa-hpux
719 tm_file="${tm_file} pa/pa-gas.h"
721 if test x$enable_threads = x; then
722 enable_threads=$have_pthread_h
724 if test x$enable_threads = xyes; then
726 tmake_file="${tmake_file} pa/t-dce-thr"
728 install_headers_dir=install-headers-cpio
733 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
734 xm_file=pa/xm-pahpux.h
735 xmake_file=pa/x-pa-hpux
738 tm_file="${tm_file} pa/pa-gas.h"
740 install_headers_dir=install-headers-cpio
744 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
745 xm_file=pa/xm-pahpux.h
746 xmake_file=pa/x-pa-hpux
749 tm_file="${tm_file} pa/pa-gas.h"
751 install_headers_dir=install-headers-cpio
756 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
757 xm_file=pa/xm-pahpux.h
758 xmake_file=pa/x-pa-hpux
761 tm_file="${tm_file} pa/pa-gas.h"
763 install_headers_dir=install-headers-cpio
767 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
768 xm_file=pa/xm-pahpux.h
769 xmake_file=pa/x-pa-hpux
772 tm_file="${tm_file} pa/pa-gas.h"
774 install_headers_dir=install-headers-cpio
780 fixincludes=Makefile.in
785 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
789 tm_file=i386/aix386.h
790 extra_parts="crtbegin.o crtend.o"
791 tmake_file=i386/t-crtstuff
793 tm_file=i386/aix386ng.h
796 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
798 xmake_file=i386/x-aix
801 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
803 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
804 xm_defines="USG POSIX SMALL_ARG_MAX"
805 xmake_file=i386/x-ncr3000
806 if test x$stabs = xyes -a x$gas = xyes
808 tm_file=i386/sysv4gdb.h
812 extra_parts="crtbegin.o crtend.o"
813 tmake_file=i386/t-crtpic
819 xm_file=i386/xm-next.h
820 tmake_file=i386/t-next
821 xmake_file=i386/x-next
822 extra_objs=nextstep.o
823 if test x$enable_threads = xyes; then
828 i[34567]86-sequent-bsd*) # 80386 from Sequent
833 tm_file=i386/seq-gas.h
835 tm_file=i386/sequent.h
839 i[34567]86-sequent-ptx1*)
841 xm_defines="USG SVR3"
842 xmake_file=i386/x-sysv3
843 tm_file=i386/seq-sysv3.h
844 tmake_file=i386/t-crtstuff
845 fixincludes=fixinc.ptx
846 extra_parts="crtbegin.o crtend.o"
847 install_headers_dir=install-headers-cpio
850 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
852 xm_defines="USG SVR3"
853 xmake_file=i386/x-sysv3
854 tm_file=i386/seq2-sysv3.h
855 tmake_file=i386/t-crtstuff
856 extra_parts="crtbegin.o crtend.o"
857 fixincludes=fixinc.ptx
858 install_headers_dir=install-headers-cpio
861 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
863 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
864 xm_defines="USG POSIX SMALL_ARG_MAX"
866 tm_file=i386/ptx4-i.h
868 extra_parts="crtbegin.o crtend.o"
869 fixincludes=fixinc.ptx
870 install_headers_dir=install-headers-cpio
872 i386-sun-sunos*) # Sun i386 roadrunner
878 i[34567]86-wrs-vxworks*)
880 tm_file=i386/vxi386.h
881 tmake_file=i386/t-i386bare
886 tm_file=i386/i386-aout.h
887 tmake_file=i386/t-i386bare
890 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
892 tm_file=i386/bsd386.h
893 # tmake_file=t-libc-ok
898 tm_file=i386/386bsd.h
899 # tmake_file=t-libc-ok
900 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
904 i[34567]86-*-freebsdelf*)
906 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
907 # On FreeBSD, the headers are already ok, except for math.h.
908 fixincludes=fixinc.wrap
909 tmake_file=i386/t-freebsd
915 i[34567]86-*-freebsd*)
917 tm_file=i386/freebsd.h
918 # On FreeBSD, the headers are already ok, except for math.h.
919 fixincludes=fixinc.wrap
920 tmake_file=i386/t-freebsd
923 i[34567]86-*-netbsd*)
925 tm_file=i386/netbsd.h
926 xm_file="xm-netbsd.h ${xm_file}"
927 # On NetBSD, the headers are already okay, except for math.h.
928 fixincludes=fixinc.wrap
934 tm_file=i386/i386-coff.h
935 tmake_file=i386/t-i386bare
938 i[34567]86-*-isc*) # 80386 running ISC system
940 xm_file="${xm_file} i386/xm-isc.h"
941 xm_defines="USG SVR3"
944 i[34567]86-*-isc[34]*)
946 xmake_file=i386/x-isc3
949 xmake_file=i386/x-isc
952 if test x$gas = xyes -a x$stabs = xyes
954 tm_file=i386/iscdbx.h
955 tmake_file=i386/t-svr3dbx
956 extra_parts="svr3.ifile svr3z.ifile"
958 tm_file=i386/isccoff.h
959 tmake_file=i386/t-crtstuff
960 extra_parts="crtbegin.o crtend.o"
962 install_headers_dir=install-headers-cpio
965 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
966 changequote([,])dnl # with a.out format using
968 xmake_file=x-linux-aout
969 tmake_file="t-linux-aout i386/t-crtstuff"
970 tm_file=i386/linux-oldld.h
971 fixincludes=Makefile.in #On Linux, the headers are ok already.
976 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
977 changequote([,])dnl # with a.out format
978 xmake_file=x-linux-aout
979 tmake_file="t-linux-aout i386/t-crtstuff"
980 tm_file=i386/linux-aout.h
981 fixincludes=Makefile.in #On Linux, the headers are ok already.
986 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
987 changequote([,])dnl # with ELF format using the
988 # GNU/Linux C library 5
991 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
992 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
993 fixincludes=Makefile.in #On Linux, the headers are ok already.
996 if test x$enable_threads = xyes; then
1001 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1002 changequote([,])dnl # with ELF format using glibc 2
1003 # aka GNU/Linux C library 6
1005 tm_file=i386/linux.h
1006 tmake_file="t-linux i386/t-crtstuff"
1007 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1008 fixincludes=Makefile.in #On Linux, the headers are ok already.
1011 if test x$enable_threads = xyes; then
1020 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1022 xm_file=i386/xm-go32.h
1024 tmake_file=i386/t-go32
1027 i[34567]86-pc-msdosdjgpp*)
1029 xm_file=i386/xm-go32.h
1031 tmake_file=i386/t-go32
1036 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1039 tmake_file=t-libc-ok
1040 fixincludes=Makefile.in
1045 i[34567]86-*-lynxos*)
1047 if test x$gas = xyes
1051 tm_file=i386/lynx-ng.h
1053 xm_file=i386/xm-lynx.h
1054 tmake_file=i386/t-i386bare
1061 # tmake_file=t-libc-ok
1065 i[34567]86-*-osfrose*) # 386 using OSF/rose
1067 if test x$elf = xyes
1069 tm_file=i386/osfelf.h
1072 tm_file=i386/osfrose.h
1075 xm_file="i386/xm-osf.h ${xm_file}"
1076 xmake_file=i386/x-osfrose
1077 tmake_file=i386/t-osf
1078 extra_objs=halfpic.o
1081 i[34567]86-go32-rtems*)
1084 xm_file=i386/xm-go32.h
1085 tm_file=i386/go32-rtems.h
1086 tmake_file="i386/t-go32 t-rtems"
1089 i[34567]86-*-rtemself*)
1092 tm_file=i386/rtemself.h
1093 tmake_file="i386/t-i386bare t-rtems"
1096 i[34567]86-*-rtems*)
1099 tm_file=i386/rtems.h
1100 tmake_file="i386/t-i386bare t-rtems"
1103 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1105 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1106 xm_defines="USG SVR3"
1107 xmake_file=i386/x-sco5
1108 fixincludes=fixinc.sco
1109 install_headers_dir=install-headers-cpio
1111 if test x$gas = xyes
1113 tm_file="i386/sco5gas.h ${tm_file}"
1114 tmake_file=i386/t-sco5gas
1116 tmake_file=i386/t-sco5
1118 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1121 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1123 xm_file="${xm_file} i386/xm-sco.h"
1124 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1125 xmake_file=i386/x-sco4
1126 fixincludes=fixinc.sco
1127 install_headers_dir=install-headers-cpio
1128 if test x$stabs = xyes
1130 tm_file=i386/sco4dbx.h
1131 tmake_file=i386/t-svr3dbx
1132 extra_parts="svr3.ifile svr3z.rfile"
1135 tmake_file=i386/t-crtstuff
1136 extra_parts="crtbegin.o crtend.o"
1141 i[34567]86-*-sco*) # 80386 running SCO system
1143 xm_file=i386/xm-sco.h
1144 xmake_file=i386/x-sco
1145 install_headers_dir=install-headers-cpio
1146 if test x$stabs = xyes
1148 tm_file=i386/scodbx.h
1149 tmake_file=i386/t-svr3dbx
1150 extra_parts="svr3.ifile svr3z.rfile"
1153 extra_parts="crtbegin.o crtend.o"
1154 tmake_file=i386/t-crtstuff
1159 i[34567]86-*-solaris2*)
1161 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1162 xm_defines="USG POSIX SMALL_ARG_MAX"
1163 if test x$stabs = xyes
1165 tm_file=i386/sol2dbg.h
1169 tmake_file=i386/t-sol2
1170 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1176 fixincludes=fixinc.svr4;;
1178 fixincludes=fixinc.wrap;;
1180 if test x$enable_threads = xyes; then
1181 thread_file='solaris'
1185 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1187 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1188 xm_defines="USG POSIX"
1189 tm_file=i386/sysv4.h
1190 if test x$stabs = xyes
1192 tm_file="${tm_file} dbx.h"
1194 tmake_file=i386/t-crtpic
1196 extra_parts="crtbegin.o crtend.o"
1197 fixincludes=Makefile.in # The headers are just fine, thank you.
1200 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1202 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1203 xm_defines="USG POSIX SMALL_ARG_MAX"
1204 tm_file=i386/sysv4.h
1205 if test x$stabs = xyes
1207 tm_file="${tm_file} dbx.h"
1209 tmake_file=i386/t-crtpic
1211 extra_parts="crtbegin.o crtend.o"
1214 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1217 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1218 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1219 fixincludes=Makefile.in #Don't do it on OSF/1
1220 if test x$stabs = xyes
1222 tm_file=i386/osf1elfgdb.h
1224 tm_file=i386/osf1elf.h
1226 tmake_file=i386/t-osf1elf
1227 xmake_file=i386/x-osf1elf
1228 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1231 i[34567]86-*-sysv*) # Intel 80386's running system V
1233 xm_defines="USG SVR3"
1234 xmake_file=i386/x-sysv3
1235 if test x$gas = xyes
1237 if test x$stabs = xyes
1239 tm_file=i386/svr3dbx.h
1240 tmake_file=i386/t-svr3dbx
1241 extra_parts="svr3.ifile svr3z.rfile"
1243 tm_file=i386/svr3gas.h
1244 extra_parts="crtbegin.o crtend.o"
1245 tmake_file=i386/t-crtstuff
1248 tm_file=i386/sysv3.h
1249 extra_parts="crtbegin.o crtend.o"
1250 tmake_file=i386/t-crtstuff
1253 i386-*-vsta) # Intel 80386's running VSTa kernel
1254 xm_file="${xm_file} i386/xm-vsta.h"
1256 tmake_file=i386/t-vsta
1257 xmake_file=i386/x-vsta
1262 xm_file="${xm_file} i386/xm-cygwin32.h"
1263 tmake_file=i386/t-cygwin32
1264 tm_file=i386/win32.h
1265 xmake_file=i386/x-cygwin32
1267 fixincludes=Makefile.in
1268 if test x$enable_threads = xyes; then
1274 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1276 xm_file="${xm_file} i386/xm-cygwin32.h"
1277 tmake_file=i386/t-cygwin32
1278 tm_file=i386/cygwin32.h
1279 xmake_file=i386/x-cygwin32
1281 fixincludes=Makefile.in
1282 if test x$enable_threads = xyes; then
1288 i[34567]86-*-mingw32*)
1290 tm_file=i386/mingw32.h
1291 xm_file="${xm_file} i386/xm-mingw32.h"
1292 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1294 xmake_file=i386/x-cygwin32
1295 fixincludes=Makefile.in
1296 if test x$enable_threads = xyes; then
1303 *minwg32crt* | *mingw32*)
1304 tm_file="${tm_file} i386/crtdll.h"
1309 i[34567]86-*-winnt3*)
1311 tm_file=i386/win-nt.h
1312 out_file=i386/i386.c
1313 xm_file="xm-winnt.h ${xm_file}"
1314 xmake_file=winnt/x-winnt
1315 tmake_file=i386/t-winnt
1316 extra_host_objs="winnt.o oldnames.o"
1317 extra_gcc_objs="spawnv.o oldnames.o"
1318 fixincludes=fixinc.winnt
1319 if test x$gnu_ld != xyes
1321 extra_programs=ld.exe
1323 if test x$enable_threads = xyes; then
1328 i[34567]86-dg-dgux*)
1330 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1331 xm_defines="USG POSIX"
1332 out_file=i386/dgux.c
1334 tmake_file=i386/t-dgux
1335 xmake_file=i386/x-dgux
1336 fixincludes=fixinc.dgux
1337 install_headers_dir=install-headers-cpio
1339 i860-alliant-*) # Alliant FX/2800
1340 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1341 xm_file="${xm_file}"
1342 xmake_file=i860/x-fx2800
1343 tmake_file=i860/t-fx2800
1344 extra_parts="crtbegin.o crtend.o"
1347 tm_file="${tm_file} i860/bsd.h"
1348 if test x$gas = xyes
1350 tm_file="${tm_file} i860/bsd-gas.h"
1355 tm_file="${tm_file} i860/mach.h"
1356 tmake_file=t-libc-ok
1358 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1359 tm_file="${tm_file} svr3.h i860/paragon.h"
1360 xm_defines="USG SVR3"
1364 tm_file="${tm_file} svr3.h i860/sysv3.h"
1365 xm_defines="USG SVR3"
1366 xmake_file=i860/x-sysv3
1367 extra_parts="crtbegin.o crtend.o"
1370 tm_file="${tm_file} svr4.h i860/sysv4.h"
1371 xm_defines="USG SVR3"
1372 xmake_file=i860/x-sysv4
1374 extra_parts="crtbegin.o crtend.o"
1376 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1377 tm_file="${tm_file} i960/vx960.h"
1378 tmake_file=i960/t-vxworks960
1380 thread_file='vxworks'
1382 i960-wrs-vxworks5* | i960-wrs-vxworks)
1383 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1384 tmake_file=i960/t-vxworks960
1386 thread_file='vxworks'
1389 tm_file="${tm_file} i960/vx960.h"
1390 tmake_file=i960/t-vxworks960
1392 thread_file='vxworks'
1395 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1396 tmake_file=i960/t-960bare
1400 tmake_file="i960/t-960bare t-rtems"
1401 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1404 i960-*-*) # Default i960 environment.
1408 extra_parts="crtinit.o crtfini.o"
1410 m68000-convergent-sysv*)
1412 xm_file="m68k/xm-3b1.h ${xm_file}"
1415 extra_headers=math-68881.h
1417 m68000-hp-bsd*) # HP 9000/200 running BSD
1418 tm_file=m68k/hp2bsd.h
1419 xmake_file=m68k/x-hp2bsd
1421 extra_headers=math-68881.h
1423 m68000-hp-hpux*) # HP 9000 series 300
1424 xm_file="xm_alloca.h ${xm_file}"
1425 xm_defines="USG NO_SYS_SIGLIST"
1426 if test x$gas = xyes
1428 xmake_file=m68k/x-hp320g
1429 tm_file=m68k/hp310g.h
1431 xmake_file=m68k/x-hp320
1432 tm_file=m68k/hp310.h
1434 install_headers_dir=install-headers-cpio
1436 extra_headers=math-68881.h
1441 extra_headers=math-68881.h
1444 tm_file=m68k/sun2o4.h
1446 extra_headers=math-68881.h
1449 xm_file="m68k/xm-3b1.h ${xm_file}"
1451 if test x$gas = xyes
1458 extra_headers=math-68881.h
1460 m68k-apple-aux*) # Apple Macintosh running A/UX
1461 xm_defines="USG AUX"
1462 tmake_file=m68k/t-aux
1463 install_headers_dir=install-headers-cpio
1464 extra_headers=math-68881.h
1465 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1467 if test "$gnu_ld" = yes
1469 tm_file="${tm_file} m68k/auxgld.h"
1471 tm_file="${tm_file} m68k/auxld.h"
1473 if test "$gas" = yes
1475 tm_file="${tm_file} m68k/auxgas.h"
1477 tm_file="${tm_file} m68k/auxas.h"
1479 tm_file="${tm_file} m68k/a-ux.h"
1483 tm_file=m68k/apollo68.h
1484 xmake_file=m68k/x-apollo68
1486 extra_headers=math-68881.h
1489 m68k-altos-sysv*) # Altos 3068
1490 if test x$gas = xyes
1492 tm_file=m68k/altos3068.h
1495 echo "The Altos is supported only with the GNU assembler" 1>&2
1498 extra_headers=math-68881.h
1500 m68k-bull-sysv*) # Bull DPX/2
1501 if test x$gas = xyes
1503 if test x$stabs = xyes
1505 tm_file=m68k/dpx2cdbx.h
1507 tm_file=m68k/dpx2g.h
1512 xm_file="xm-alloca.h ${xm_file}"
1514 xmake_file=m68k/x-dpx2
1516 extra_headers=math-68881.h
1518 m68k-atari-sysv4*) # Atari variant of V.4.
1519 tm_file=m68k/atari.h
1520 xm_file="xm-alloca.h ${xm_file}"
1521 xm_defines="USG FULL_PROTOTYPES"
1523 extra_parts="crtbegin.o crtend.o"
1524 extra_headers=math-68881.h
1527 m68k-motorola-sysv*)
1528 tm_file=m68k/mot3300.h
1529 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1530 xm_defines=NO_SYS_SIGLIST
1531 if test x$gas = xyes
1533 xmake_file=m68k/x-mot3300-gas
1534 if test x$gnu_ld = xyes
1536 tmake_file=m68k/t-mot3300-gald
1538 tmake_file=m68k/t-mot3300-gas
1542 xmake_file=m68k/x-mot3300
1543 if test x$gnu_ld = xyes
1545 tmake_file=m68k/t-mot3300-gld
1547 tmake_file=m68k/t-mot3300
1551 gdb_needs_out_file_path=yes
1552 extra_parts="crt0.o mcrt0.o"
1553 extra_headers=math-68881.h
1556 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1557 tm_file=m68k/tower-as.h
1558 xm_defines="USG SVR3"
1559 xmake_file=m68k/x-tower
1560 extra_parts="crtbegin.o crtend.o"
1561 extra_headers=math-68881.h
1564 tm_file=m68k/plexus.h
1565 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1568 extra_headers=math-68881.h
1572 xm_file="xm-alloca.h ${xm_file}"
1574 extra_headers=math-68881.h
1577 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1578 xm_defines="USG unos"
1579 xmake_file=m68k/x-crds
1582 extra_headers=math-68881.h
1584 m68k-cbm-sysv4*) # Commodore variant of V.4.
1586 xm_file="xm-alloca.h ${xm_file}"
1587 xm_defines="USG FULL_PROTOTYPES"
1588 xmake_file=m68k/x-amix
1590 extra_parts="crtbegin.o crtend.o"
1591 extra_headers=math-68881.h
1595 tm_file=m68k/ccur-GAS.h
1596 xmake_file=m68k/x-ccur
1597 extra_headers=math-68881.h
1601 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1602 tm_file=m68k/hp3bsd44.h
1603 xmake_file=m68k/x-hp3bsd44
1605 extra_headers=math-68881.h
1608 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1609 tm_file=m68k/hp3bsd.h
1611 extra_headers=math-68881.h
1615 if test x$with_fp = xno
1617 tm_file=m68k/isi-nfp.h
1623 extra_headers=math-68881.h
1625 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1626 xm_file="xm_alloca.h ${xm_file}"
1627 xm_defines="USG NO_SYS_SIGLIST"
1628 if test x$gas = xyes
1630 xmake_file=m68k/x-hp320g
1631 tm_file=m68k/hp320g.h
1633 xmake_file=m68k/x-hp320
1634 tm_file=m68k/hpux7.h
1636 install_headers_dir=install-headers-cpio
1638 extra_headers=math-68881.h
1641 m68k-hp-hpux*) # HP 9000 series 300
1642 xm_file="xm_alloca.h ${xm_file}"
1643 xm_defines="USG NO_SYS_SIGLIST"
1644 if test x$gas = xyes
1646 xmake_file=m68k/x-hp320g
1647 tm_file=m68k/hp320g.h
1649 xmake_file=m68k/x-hp320
1650 tm_file=m68k/hp320.h
1652 install_headers_dir=install-headers-cpio
1654 extra_headers=math-68881.h
1658 tm_file=m68k/sun3mach.h
1660 extra_headers=math-68881.h
1664 if test x$gas = xyes
1666 tm_file=m68k/news3gas.h
1668 tm_file=m68k/news3.h
1671 extra_headers=math-68881.h
1674 m68k-sony-bsd* | m68k-sony-newsos*)
1675 if test x$gas = xyes
1677 tm_file=m68k/newsgas.h
1682 extra_headers=math-68881.h
1685 m68k-next-nextstep2*)
1686 tm_file=m68k/next21.h
1687 xm_file="m68k/xm-next.h ${xm_file}"
1688 tmake_file=m68k/t-next
1689 xmake_file=m68k/x-next
1690 extra_objs=nextstep.o
1691 extra_headers=math-68881.h
1695 m68k-next-nextstep3*)
1697 xm_file="m68k/xm-next.h ${xm_file}"
1698 tmake_file=m68k/t-next
1699 xmake_file=m68k/x-next
1700 extra_objs=nextstep.o
1701 extra_headers=math-68881.h
1703 if test x$enable_threads = xyes; then
1708 if test x$with_fp = xno
1710 tm_file=m68k/sun3n3.h
1712 tm_file=m68k/sun3o3.h
1716 extra_headers=math-68881.h
1718 m68k-sun-sunos*) # For SunOS 4 (the default).
1719 if test x$with_fp = xno
1721 tm_file=m68k/sun3n.h
1727 extra_headers=math-68881.h
1730 tm_file=m68k/vxm68k.h
1731 tmake_file=m68k/t-vxworks68
1732 extra_headers=math-68881.h
1733 thread_file='vxworks'
1737 tmake_file=m68k/t-m68kbare
1738 tm_file="m68k/m68k-aout.h libgloss.h"
1739 extra_headers=math-68881.h
1743 tmake_file=m68k/t-m68kbare
1744 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1745 extra_headers=math-68881.h
1749 if test x$gas = xyes
1753 tm_file=m68k/lynx-ng.h
1755 xm_file=m68k/xm-lynx.h
1757 tmake_file=m68k/t-lynx
1758 extra_headers=math-68881.h
1762 tm_file=m68k/netbsd.h
1763 xm_file="xm-netbsd.h ${xm_file}"
1764 # On NetBSD, the headers are already okay, except for math.h.
1765 fixincludes=fixinc.wrap
1769 m68k-*-sysv3*) # Motorola m68k's running system V.3
1770 xm_file="xm-alloca.h ${xm_file}"
1772 xmake_file=m68k/x-m68kv
1773 extra_parts="crtbegin.o crtend.o"
1774 extra_headers=math-68881.h
1777 m68k-*-sysv4*) # Motorola m68k's running system V.4
1778 tm_file=m68k/m68kv4.h
1779 xm_file="xm-alloca.h ${xm_file}"
1782 extra_parts="crtbegin.o crtend.o"
1783 extra_headers=math-68881.h
1786 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1789 tm_file=m68k/linux-aout.h
1790 tmake_file="t-linux-aout m68k/t-linux-aout"
1791 fixincludes=Makefile.in # The headers are ok already.
1792 extra_headers=math-68881.h
1796 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1797 # with ELF format using the
1798 # GNU/Linux C library 5
1800 tm_file=m68k/linux.h
1801 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1802 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1803 fixincludes=Makefile.in # The headers are ok already.
1804 extra_headers=math-68881.h
1808 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1809 # with ELF format using glibc 2
1810 # aka the GNU/Linux C library 6.
1812 tm_file=m68k/linux.h
1813 tmake_file="t-linux m68k/t-linux"
1814 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1815 fixincludes=Makefile.in # The headers are ok already.
1816 extra_headers=math-68881.h
1819 if test x$enable_threads = xyes; then
1824 tmake_file=m68k/t-m68kbare
1825 tm_file=m68k/m68k-psos.h
1826 extra_headers=math-68881.h
1830 tmake_file="m68k/t-m68kbare t-rtems"
1831 tm_file=m68k/rtems.h
1832 extra_headers=math-68881.h
1839 tm_file=m88k/dguxbcs.h
1840 tmake_file=m88k/t-dguxbcs
1844 tmake_file=m88k/t-dgux
1847 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1848 xmake_file=m88k/x-dgux
1849 if test x$gas = xyes
1851 tmake_file=m88k/t-dgux-gas
1853 fixincludes=fixinc.dgux
1855 m88k-dolphin-sysv3*)
1856 tm_file=m88k/dolph.h
1857 extra_parts="crtbegin.o crtend.o"
1858 xm_file="m88k/xm-sysv3.h ${xm_file}"
1859 xmake_file=m88k/x-dolph
1860 if test x$gas = xyes
1862 tmake_file=m88k/t-m88k-gas
1865 m88k-tektronix-sysv3)
1866 tm_file=m88k/tekXD88.h
1867 extra_parts="crtbegin.o crtend.o"
1868 xm_file="m88k/xm-sysv3.h ${xm_file}"
1869 xmake_file=m88k/x-tekXD88
1870 if test x$gas = xyes
1872 tmake_file=m88k/t-m88k-gas
1876 tm_file=m88k/m88k-aout.h
1879 tm_file=m88k/m88k-coff.h
1880 tmake_file=m88k/t-bug
1884 extra_parts="crtbegin.o crtend.o"
1885 if test x$gas = xyes
1887 tmake_file=m88k/t-luna-gas
1889 tmake_file=m88k/t-luna
1893 tm_file=m88k/sysv3.h
1894 extra_parts="crtbegin.o crtend.o"
1895 xm_file="m88k/xm-sysv3.h ${xm_file}"
1896 xmake_file=m88k/x-sysv3
1897 if test x$gas = xyes
1899 tmake_file=m88k/t-m88k-gas
1903 tm_file=m88k/sysv4.h
1904 extra_parts="crtbegin.o crtend.o"
1905 xmake_file=m88k/x-sysv4
1906 tmake_file=m88k/t-sysv4
1908 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1909 tm_file=mips/iris6.h
1910 xm_file=mips/xm-iris6.h
1911 fixincludes=fixinc.irix
1912 xmake_file=mips/x-iris6
1913 tmake_file=mips/t-iris6
1914 if test x$enable_threads = xyes; then
1919 tm_file="mips/elf.h libgloss.h"
1920 tmake_file=mips/t-ecoff
1923 extra_parts="crtbegin.o crtend.o"
1924 # thread_file='vxworks'
1926 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1927 tm_file="mips/iris6.h mips/cross64.h"
1929 xm_file="mips/xm-iris5.h"
1930 fixincludes=Makefile.in
1931 xmake_file=mips/x-iris
1932 tmake_file=mips/t-cross64
1933 # See comment in mips/iris[56].h files.
1935 if test x$enable_threads = xyes; then
1940 if test x$gas = xyes
1942 if test x$stabs = xyes
1944 tm_file=mips/iris5gdb.h
1946 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1949 tm_file=mips/sni-svr4.h
1952 xmake_file=mips/x-sni-svr4
1953 tmake_file=mips/t-mips-gas
1954 if test x$gnu_ld != xyes
1959 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1960 if test x$gas = xyes
1962 tm_file="mips/iris5.h mips/iris5gas.h"
1963 if test x$stabs = xyes
1965 tm_file="${tm_file} dbx.h"
1968 tm_file=mips/iris5.h
1971 xm_file="mips/xm-iris5.h"
1972 fixincludes=fixinc.irix
1973 xmake_file=mips/x-iris
1974 # mips-tfile doesn't work yet
1975 tmake_file=mips/t-mips-gas
1976 # See comment in mips/iris5.h file.
1978 if test x$enable_threads = xyes; then
1982 mips-sgi-irix4loser*) # Mostly like a MIPS.
1983 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1984 if test x$stabs = xyes; then
1985 tm_file="${tm_file} dbx.h"
1988 xmake_file=mips/x-iris
1989 if test x$gas = xyes
1991 tmake_file=mips/t-mips-gas
1993 extra_passes="mips-tfile mips-tdump"
1995 if test x$gnu_ld != xyes
1999 if test x$enable_threads = xyes; then
2003 mips-sgi-irix4*) # Mostly like a MIPS.
2004 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2005 if test x$stabs = xyes; then
2006 tm_file="${tm_file} dbx.h"
2009 xmake_file=mips/x-iris
2010 if test x$gas = xyes
2012 tmake_file=mips/t-mips-gas
2014 extra_passes="mips-tfile mips-tdump"
2016 if test x$gnu_ld != xyes
2020 if test x$enable_threads = xyes; then
2024 mips-sgi-*) # Mostly like a MIPS.
2025 tm_file="mips/iris3.h ${tm_file}"
2026 if test x$stabs = xyes; then
2027 tm_file="${tm_file} dbx.h"
2030 xmake_file=mips/x-iris3
2031 if test x$gas = xyes
2033 tmake_file=mips/t-mips-gas
2035 extra_passes="mips-tfile mips-tdump"
2037 if test x$gnu_ld != xyes
2042 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2043 tm_file="mips/osfrose.h ${tm_file}"
2044 xmake_file=mips/x-osfrose
2045 tmake_file=mips/t-osfrose
2046 extra_objs=halfpic.o
2049 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2050 tm_file=mips/dec-osf1.h
2051 if test x$stabs = xyes; then
2052 tm_file="${tm_file} dbx.h"
2054 xmake_file=mips/x-dec-osf1
2055 if test x$gas = xyes
2057 tmake_file=mips/t-mips-gas
2059 tmake_file=mips/t-ultrix
2060 extra_passes="mips-tfile mips-tdump"
2062 if test x$gnu_ld != xyes
2067 mips-dec-bsd*) # Decstation running 4.4 BSD
2068 tm_file=mips/dec-bsd.h
2070 if test x$gas = xyes
2072 tmake_file=mips/t-mips-gas
2074 tmake_file=mips/t-ultrix
2075 extra_passes="mips-tfile mips-tdump"
2077 if test x$gnu_ld != xyes
2082 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2083 tm_file=mips/netbsd.h
2084 xm_file="xm-netbsd.h ${xm_file}"
2085 # On NetBSD, the headers are already okay, except for math.h.
2086 fixincludes=fixinc.wrap
2089 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2090 tm_file="mips/news4.h ${tm_file}"
2091 if test x$stabs = xyes; then
2092 tm_file="${tm_file} dbx.h"
2094 if test x$gas = xyes
2096 tmake_file=mips/t-mips-gas
2098 extra_passes="mips-tfile mips-tdump"
2100 if test x$gnu_ld != xyes
2104 xmake_file=mips/x-sony
2106 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2107 # That is based on svr4.
2108 # t-svr4 is not right because this system doesn't use ELF.
2109 tm_file="mips/news5.h ${tm_file}"
2110 if test x$stabs = xyes; then
2111 tm_file="${tm_file} dbx.h"
2113 xm_file="xm-siglist.h ${xm_file}"
2115 if test x$gas = xyes
2117 tmake_file=mips/t-mips-gas
2119 extra_passes="mips-tfile mips-tdump"
2121 if test x$gnu_ld != xyes
2126 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2127 tm_file="mips/svr4-5.h mips/svr4-t.h"
2128 if test x$stabs = xyes; then
2129 tm_file="${tm_file} dbx.h"
2131 xm_file="xm-siglist.h ${xm_file}"
2133 xmake_file=mips/x-sysv
2134 if test x$gas = xyes
2136 tmake_file=mips/t-mips-gas
2137 extra_parts="crtbegin.o crtend.o"
2139 tmake_file=mips/t-mips
2140 extra_passes="mips-tfile mips-tdump"
2142 if test x$gnu_ld != xyes
2147 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2148 tm_file="mips/ultrix.h ${tm_file}"
2149 if test x$stabs = xyes; then
2150 tm_file="${tm_file} dbx.h"
2152 xmake_file=mips/x-ultrix
2153 if test x$gas = xyes
2155 tmake_file=mips/t-mips-gas
2157 tmake_file=mips/t-ultrix
2158 extra_passes="mips-tfile mips-tdump"
2160 if test x$gnu_ld != xyes
2166 mips-*-riscos[56789]bsd*)
2168 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2169 if test x$stabs = xyes; then
2170 tm_file="${tm_file} dbx.h"
2172 if test x$gas = xyes
2174 tmake_file=mips/t-bsd-gas
2176 tmake_file=mips/t-bsd
2177 extra_passes="mips-tfile mips-tdump"
2179 if test x$gnu_ld != xyes
2185 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2187 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2188 if test x$stabs = xyes; then
2189 tm_file="${tm_file} dbx.h"
2191 if test x$gas = xyes
2193 tmake_file=mips/t-bsd-gas
2195 tmake_file=mips/t-bsd
2196 extra_passes="mips-tfile mips-tdump"
2198 if test x$gnu_ld != xyes
2204 mips-*-riscos[56789]sysv4*)
2206 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2207 if test x$stabs = xyes; then
2208 tm_file="${tm_file} dbx.h"
2210 xm_file="xm-siglist.h ${xm_file}"
2211 xmake_file=mips/x-sysv
2212 if test x$gas = xyes
2214 tmake_file=mips/t-svr4-gas
2216 tmake_file=mips/t-svr4
2217 extra_passes="mips-tfile mips-tdump"
2219 if test x$gnu_ld != xyes
2225 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2227 tm_file="mips/svr4-4.h ${tm_file}"
2228 if test x$stabs = xyes; then
2229 tm_file="${tm_file} dbx.h"
2232 xmake_file=mips/x-sysv
2233 if test x$gas = xyes
2235 tmake_file=mips/t-svr4-gas
2237 tmake_file=mips/t-svr4
2238 extra_passes="mips-tfile mips-tdump"
2240 if test x$gnu_ld != xyes
2246 mips-*-riscos[56789]sysv*)
2248 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2249 if test x$stabs = xyes; then
2250 tm_file="${tm_file} dbx.h"
2253 xmake_file=mips/x-sysv
2254 if test x$gas = xyes
2256 tmake_file=mips/t-svr3-gas
2258 tmake_file=mips/t-svr3
2259 extra_passes="mips-tfile mips-tdump"
2261 if test x$gnu_ld != xyes
2266 mips-*-sysv* | mips-*-riscos*sysv*)
2267 tm_file="mips/svr3-4.h ${tm_file}"
2268 if test x$stabs = xyes; then
2269 tm_file="${tm_file} dbx.h"
2272 xmake_file=mips/x-sysv
2273 if test x$gas = xyes
2275 tmake_file=mips/t-svr3-gas
2277 tmake_file=mips/t-svr3
2278 extra_passes="mips-tfile mips-tdump"
2280 if test x$gnu_ld != xyes
2286 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2288 tm_file=mips/mips-5.h
2289 if test x$stabs = xyes; then
2290 tm_file="${tm_file} dbx.h"
2292 if test x$gas = xyes
2294 tmake_file=mips/t-mips-gas
2296 extra_passes="mips-tfile mips-tdump"
2298 if test x$gnu_ld != xyes
2306 tm_file=mips/ecoffl.h
2307 if test x$stabs = xyes; then
2308 tm_file="${tm_file} dbx.h"
2310 tmake_file=mips/t-ecoff
2313 tm_file="gofast.h mips/ecoff.h"
2314 if test x$stabs = xyes; then
2315 tm_file="${tm_file} dbx.h"
2317 tmake_file=mips/t-ecoff
2320 tm_file="mips/elfl.h libgloss.h"
2321 tmake_file=mips/t-ecoff
2324 tm_file="mips/elf.h libgloss.h"
2325 tmake_file=mips/t-ecoff
2328 tm_file="mips/elfl64.h libgloss.h"
2329 tmake_file=mips/t-ecoff
2331 mips64orionel-*-elf*)
2332 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2333 tmake_file=mips/t-ecoff
2336 tm_file="mips/elf64.h libgloss.h"
2337 tmake_file=mips/t-ecoff
2340 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2341 tmake_file=mips/t-ecoff
2343 mips64orion-*-rtems*)
2344 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2345 tmake_file="mips/t-ecoff t-rtems"
2348 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2349 tmake_file=mips/t-r3900
2352 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2353 tmake_file=mips/t-r3900
2354 # FIXME mips-elf should be fixed to use crtstuff.
2357 mips-*-*) # Default MIPS RISC-OS 4.0.
2358 if test x$stabs = xyes; then
2359 tm_file="${tm_file} dbx.h"
2361 if test x$gas = xyes
2363 tmake_file=mips/t-mips-gas
2365 extra_passes="mips-tfile mips-tdump"
2367 if test x$gnu_ld != xyes
2374 tm_file="mn10200/mn10200.h"
2375 if test x$stabs = xyes
2377 tm_file="${tm_file} dbx.h"
2383 tm_file="mn10300/mn10300.h"
2384 if test x$stabs = xyes
2386 tm_file="${tm_file} dbx.h"
2391 tm_file=ns32k/encore.h
2395 tm_file=ns32k/sequent.h
2399 tm_file=ns32k/tek6100.h
2403 tm_file=ns32k/tek6200.h
2406 # This has not been updated to GCC 2.
2409 # xmake_file=ns32k/x-genix
2410 # tm_file=ns32k/genix.h
2414 tm_file=ns32k/merlin.h
2418 tm_file=ns32k/pc532-mach.h
2422 tm_file=ns32k/pc532-min.h
2423 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2428 tm_file=ns32k/netbsd.h
2429 xm_file="xm-netbsd.h ${xm_file}"
2430 # On NetBSD, the headers are already okay, except for math.h.
2431 fixincludes=fixinc.wrap
2435 tm_file="${tm_file} pdp11/2bsd.h"
2441 xmake_file=pyr/x-pyr
2448 xmake_file=romp/x-mach
2453 tm_file=rs6000/beos.h
2454 xm_file=rs6000/xm-beos.h
2455 tmake_file=rs6000/t-beos
2456 xmake_file=rs6000/x-beos
2458 powerpc-*-sysv* | powerpc-*-elf*)
2459 tm_file=rs6000/sysv4.h
2460 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2461 xm_defines="USG POSIX"
2462 extra_headers=ppc-asm.h
2463 if test x$gas = xyes
2465 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2467 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2469 xmake_file=rs6000/x-sysv4
2472 tm_file=rs6000/eabiaix.h
2473 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2474 fixincludes=Makefile.in
2475 extra_headers=ppc-asm.h
2478 tm_file=rs6000/eabisim.h
2479 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2480 fixincludes=Makefile.in
2481 extra_headers=ppc-asm.h
2484 tm_file=rs6000/eabi.h
2485 if test x$gas = xyes
2487 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2489 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2491 fixincludes=Makefile.in
2492 extra_headers=ppc-asm.h
2495 tm_file=rs6000/rtems.h
2496 if test x$gas = xyes
2498 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2500 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2502 fixincludes=Makefile.in
2503 extra_headers=ppc-asm.h
2505 powerpc-*-linux-gnulibc1)
2506 tm_file=rs6000/linux.h
2507 xm_file=rs6000/xm-sysv4.h
2508 out_file=rs6000/rs6000.c
2509 if test x$gas = xyes
2511 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2513 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2516 fixincludes=Makefile.in
2517 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2518 extra_headers=ppc-asm.h
2519 if test x$enable_threads = xyes; then
2523 powerpc-*-linux-gnu*)
2524 tm_file=rs6000/linux.h
2525 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2526 xm_defines="USG ${xm_defines}"
2527 out_file=rs6000/rs6000.c
2528 if test x$gas = xyes
2530 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2532 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2535 fixincludes=Makefile.in
2536 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2537 extra_headers=ppc-asm.h
2538 if test x$enable_threads = xyes; then
2542 powerpc-wrs-vxworks*)
2544 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2545 xm_defines="USG POSIX"
2546 tm_file=rs6000/vxppc.h
2547 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2548 extra_headers=ppc-asm.h
2549 thread_file='vxworks'
2551 powerpcle-*-sysv* | powerpcle-*-elf*)
2552 tm_file=rs6000/sysv4le.h
2553 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2554 xm_defines="USG POSIX"
2555 if test x$gas = xyes
2557 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2559 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2561 xmake_file=rs6000/x-sysv4
2562 extra_headers=ppc-asm.h
2564 powerpcle-*-eabisim*)
2565 tm_file=rs6000/eabilesim.h
2566 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2567 fixincludes=Makefile.in
2568 extra_headers=ppc-asm.h
2571 tm_file=rs6000/eabile.h
2572 if test x$gas = xyes
2574 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2576 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2578 fixincludes=Makefile.in
2579 extra_headers=ppc-asm.h
2581 powerpcle-*-winnt* )
2582 tm_file=rs6000/win-nt.h
2583 tmake_file=rs6000/t-winnt
2585 fixincludes=Makefile.in
2586 if test x$enable_threads = xyes; then
2589 extra_headers=ppc-asm.h
2591 powerpcle-*-pe | powerpcle-*-cygwin32)
2592 tm_file=rs6000/cygwin32.h
2593 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2594 tmake_file=rs6000/t-winnt
2595 xmake_file=rs6000/x-cygwin32
2597 fixincludes=Makefile.in
2598 if test x$enable_threads = xyes; then
2602 extra_headers=ppc-asm.h
2604 powerpcle-*-solaris2*)
2605 tm_file=rs6000/sol2.h
2606 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2607 xm_defines="USG POSIX"
2608 if test x$gas = xyes
2610 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2612 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2614 xmake_file=rs6000/x-sysv4
2619 fixincludes=fixinc.svr4;;
2621 fixincludes=fixinc.wrap;;
2623 extra_headers=ppc-asm.h
2626 rs6000-ibm-aix3.[01]*)
2628 tm_file=rs6000/aix31.h
2629 xmake_file=rs6000/x-aix31
2633 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2635 tm_file=rs6000/aix3newas.h
2636 if test x$host != x$target
2638 tmake_file=rs6000/t-xnewas
2640 tmake_file=rs6000/t-newas
2645 rs6000-ibm-aix4.[12].* | powerpc-ibm-aix4.[12].*)
2647 tm_file=rs6000/aix41.h
2648 if test x$host != x$target
2650 tmake_file=rs6000/t-xnewas
2652 tmake_file=rs6000/t-newas
2654 xmake_file=rs6000/x-aix41
2658 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2660 tm_file=rs6000/aix43.h
2661 if test x$host != x$target
2663 tmake_file=rs6000/t-xaix43
2665 tmake_file=rs6000/t-aix43
2667 xmake_file=rs6000/x-aix43
2671 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2673 tm_file=rs6000/aix43.h
2674 if test x$host != x$target
2676 tmake_file=rs6000/t-xaix43
2678 tmake_file=rs6000/t-aix43
2680 xmake_file=rs6000/x-aix43
2690 tm_file=rs6000/mach.h
2691 xm_file="${xm_file} rs6000/xm-mach.h"
2692 xmake_file=rs6000/x-mach
2696 tm_file=rs6000/lynx.h
2697 xm_file=rs6000/xm-lynx.h
2698 tmake_file=rs6000/t-rs6000
2699 xmake_file=rs6000/x-lynx
2707 tmake_file="sh/t-sh t-rtems"
2708 tm_file=sh/rtemself.h
2712 tmake_file="sh/t-sh t-rtems"
2721 xm_file="xm-alloca.h ${xm_file}"
2724 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2725 tm_file=sparc/vxsparc.h
2726 tmake_file=sparc/t-vxsparc
2728 thread_file='vxworks'
2731 tmake_file=sparc/t-sparcbare
2732 tm_file="sparc/aout.h libgloss.h"
2735 tm_file=sparc/netbsd.h
2736 xm_file="xm-netbsd.h ${xm_file}"
2737 # On NetBSD, the headers are already okay, except for math.h.
2738 fixincludes=fixinc.wrap
2746 tmake_file=sparc/t-elf
2747 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2751 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2752 xm_file="${xm_file} sparc/xm-linux.h"
2753 tm_file=sparc/linux-aout.h
2755 fixincludes=Makefile.in #On Linux, the headers are ok already.
2758 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2759 xm_file="${xm_file} sparc/xm-linux.h"
2761 tm_file=sparc/linux.h
2762 tmake_file="t-linux t-linux-gnulibc1"
2763 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2764 fixincludes=Makefile.in #On Linux, the headers are ok already.
2767 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2768 xm_file="${xm_file} sparc/xm-linux.h"
2770 tm_file=sparc/linux.h
2771 tmake_file="t-linux"
2772 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2773 fixincludes=Makefile.in #On Linux, the headers are ok already.
2775 if test x$enable_threads = xyes; then
2780 if test x$gas = xyes
2782 tm_file=sparc/lynx.h
2784 tm_file=sparc/lynx-ng.h
2786 xm_file=sparc/xm-lynx.h
2787 tmake_file=sparc/t-sunos41
2791 tmake_file="sparc/t-sparcbare t-rtems"
2792 tm_file=sparc/rtems.h
2795 if test x$gnu_ld = xyes
2797 tm_file=sparc/sol2.h
2799 tm_file=sparc/sol2-sld.h
2801 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2802 xm_defines="USG POSIX"
2803 tmake_file=sparc/t-sol2
2804 xmake_file=sparc/x-sysv4
2805 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2810 fixincludes=fixinc.svr4;;
2812 fixincludes=fixinc.wrap;;
2815 if test x${enable_threads} = x; then
2816 enable_threads=$have_pthread_h
2817 if test x${enable_threads} = x; then
2818 enable_threads=$have_thread_h
2821 if test x${enable_threads} = xyes; then
2822 if test x${have_pthread_h} = xyes; then
2825 thread_file='solaris'
2830 tm_file=sparc/sunos4.h
2831 tmake_file=sparc/t-sunos40
2835 tm_file=sparc/sunos4.h
2836 tmake_file=sparc/t-sunos41
2838 if test x$gas = xyes; then
2839 tm_file="${tm_file} sparc/sun4gas.h"
2843 tm_file=sparc/sun4o3.h
2847 tm_file=sparc/sysv4.h
2848 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2849 xm_defines="USG POSIX"
2851 xmake_file=sparc/x-sysv4
2852 extra_parts="crtbegin.o crtend.o"
2855 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2856 xm_defines="USG POSIX"
2857 tm_file=sparc/vxsim.h
2858 tmake_file=sparc/t-vxsparc
2859 xmake_file=sparc/x-sysv4
2862 tm_file="sparc/splet.h libgloss.h"
2863 tmake_file=sparc/t-splet
2866 tm_file="sparc/litecoff.h libgloss.h"
2867 tmake_file=sparc/t-sparclite
2870 tm_file="sparc/lite.h aoutos.h libgloss.h"
2871 tmake_file=sparc/t-sparclite
2874 tmake_file=sparc/t-sp64
2875 tm_file=sparc/sp64-aout.h
2878 tmake_file=sparc/t-sp64
2879 tm_file=sparc/sp64-elf.h
2880 extra_parts="crtbegin.o crtend.o"
2882 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2883 tmake_file=sparc/t-sp64
2884 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2885 tm_file=sparc/linux64.h
2887 fixincludes=Makefile.in # The headers are ok already.
2890 # This hasn't been upgraded to GCC 2.
2891 # tahoe-harris-*) # Harris tahoe, using COFF.
2892 # tm_file=tahoe/harris.h
2894 # tahoe-*-bsd*) # tahoe running BSD
2896 thumb-*-coff* | thumbel-*-coff*)
2898 out_file=arm/thumb.c
2899 xm_file=arm/xm-thumb.h
2900 md_file=arm/thumb.md
2901 tmake_file=arm/t-thumb
2902 fixincludes=Makefile.in # There is nothing to fix
2904 # This hasn't been upgraded to GCC 2.
2911 tm_file="v850/v850.h"
2912 xm_file="v850/xm-v850.h"
2913 tmake_file=v850/t-v850
2914 if test x$stabs = xyes
2916 tm_file="${tm_file} dbx.h"
2920 vax-*-bsd*) # vaxen running BSD
2924 vax-*-sysv*) # vaxen running system V
2925 tm_file="${tm_file} vax/vaxv.h"
2930 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2931 xm_file="xm-netbsd.h ${xm_file}"
2932 # On NetBSD, the headers are already okay, except for math.h.
2933 fixincludes=fixinc.wrap
2937 vax-*-ultrix*) # vaxen running ultrix
2938 tm_file="${tm_file} vax/ultrix.h"
2942 vax-*-vms*) # vaxen running VMS
2943 xm_file=vax/xm-vms.h
2947 vax-*-*) # vax default entry
2951 xm_file="${xm_file} xm-svr3"
2955 echo "Configuration $machine not supported" 1>&2
2962 ;; # Existing GNU/Linux systems do not use the GNU setup.
2964 # On the GNU system, the setup is just about the same on
2965 # each different CPU. The specific machines that GNU
2966 # supports are matched above and just set $cpu_type.
2967 xm_file="xm-gnu.h ${xm_file}"
2968 tm_file=${cpu_type}/gnu.h
2969 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2970 # GNU always uses ELF.
2972 # GNU tools are the only tools.
2975 # On GNU, the headers are already okay.
2976 fixincludes=Makefile.in
2977 xmake_file=x-linux # These details are the same as Linux.
2978 tmake_file=t-gnu # These are not.
2981 fixincludes=fixinc.svr4
2982 xmake_try_sysv=x-sysv
2983 install_headers_dir=install-headers-cpio
2986 install_headers_dir=install-headers-cpio
2990 # Distinguish i[34567]86
2991 # Also, do not run mips-tfile on MIPS if using gas.
2992 # Process --with-cpu= for PowerPC/rs6000
2993 target_cpu_default2=
2996 target_cpu_default2=1
2999 target_cpu_default2=2
3001 i686-*-* | i786-*-*)
3002 target_cpu_default2=3
3007 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3010 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3013 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3016 target_cpu_default2="MASK_CPU_EV5"
3020 if test x$gas = xyes
3022 if test "$target_cpu_default2" = ""
3024 target_cpu_default2="MASK_GAS"
3026 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3031 case "x$with_cpu" in
3034 target_cpu_default2="TARGET_CPU_generic"
3037 # Distinguish cores, and major variants
3038 # arm7m doesn't exist, but D & I don't affect code
3039 xarm[23678] | xarm250 | xarm[67][01]0 \
3040 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3041 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3042 | xstrongarm | xstrongarm110)
3043 target_cpu_default2="TARGET_CPU_$with_cpu"
3047 echo "--with-cpu must be passed a value" 1>&2
3052 if test x$pass2done = xyes
3054 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3061 mips*-*-ecoff* | mips*-*-elf*)
3062 if test x$gas = xyes
3064 if test x$gnu_ld = xyes
3066 target_cpu_default2=20
3068 target_cpu_default2=16
3073 if test x$gas = xyes
3075 target_cpu_default2=16
3078 powerpc*-*-* | rs6000-*-*)
3079 case "x$with_cpu" in
3083 xcommon | xpower | xpower2 | xpowerpc | xrios \
3084 | xrios1 | xrios2 | xrsc | xrsc1 \
3085 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3086 | x403 | x505 | x801 | x821 | x823 | x860)
3087 target_cpu_default2="\"$with_cpu\""
3091 echo "--with-cpu must be passed a value" 1>&2
3096 if test x$pass2done = xyes
3098 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3105 case ".$with_cpu" in
3107 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3109 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3110 target_cpu_default2="TARGET_CPU_$with_cpu"
3113 if test x$pass2done = xyes
3115 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3123 if test "$target_cpu_default2" != ""
3125 if test "$target_cpu_default" != ""
3127 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3129 target_cpu_default=$target_cpu_default2
3133 # No need for collect2 if we have the GNU linker.
3134 # Actually, there is now; GNU ld doesn't handle the EH info or
3135 # collecting for shared libraries.
3142 # Save data on machine being used to compile GCC in build_xm_file.
3143 # Save data on host machine in vars host_xm_file and host_xmake_file.
3144 if test x$pass1done = x
3146 if test x"$xm_file" = x
3147 then build_xm_file=$cpu_type/xm-$cpu_type.h
3148 else build_xm_file=$xm_file
3150 build_xm_defines=$xm_defines
3151 build_install_headers_dir=$install_headers_dir
3152 build_exeext=$exeext
3155 if test x$pass2done = x
3157 if test x"$xm_file" = x
3158 then host_xm_file=$cpu_type/xm-$cpu_type.h
3159 else host_xm_file=$xm_file
3161 host_xm_defines=$xm_defines
3162 if test x"$xmake_file" = x
3163 then xmake_file=$cpu_type/x-$cpu_type
3165 host_xmake_file="$xmake_file"
3166 host_truncate_target=$truncate_target
3167 host_extra_gcc_objs=$extra_gcc_objs
3168 host_extra_objs=$extra_host_objs
3175 extra_objs="${host_extra_objs} ${extra_objs}"
3177 # Default the target-machine variables that were not explicitly set.
3178 if test x"$tm_file" = x
3179 then tm_file=$cpu_type/$cpu_type.h; fi
3181 if test x$extra_headers = x
3182 then extra_headers=; fi
3184 if test x"$xm_file" = x
3185 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3187 if test x$md_file = x
3188 then md_file=$cpu_type/$cpu_type.md; fi
3190 if test x$out_file = x
3191 then out_file=$cpu_type/$cpu_type.c; fi
3193 if test x"$tmake_file" = x
3194 then tmake_file=$cpu_type/t-$cpu_type
3197 if test x$float_format = x
3198 then float_format=i64
3201 if test x$enable_haifa = x
3204 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3209 # Say what files are being used for the output code and MD file.
3210 echo "Using \`$srcdir/config/$out_file' to output insns."
3211 echo "Using \`$srcdir/config/$md_file' as machine description file."
3214 for f in $tm_file; do
3217 if test $count = ax; then
3218 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3220 echo "Using the following target machine macro files:"
3221 for f in $tm_file; do
3222 echo " $srcdir/config/$f"
3227 for f in $host_xm_file; do
3230 if test $count = ax; then
3231 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3233 echo "Using the following host machine macro files:"
3234 for f in $host_xm_file; do
3235 echo " $srcdir/config/$f"
3239 if test "$host_xm_file" != "$build_xm_file"; then
3241 for f in $build_xm_file; do
3244 if test $count = ax; then
3245 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3247 echo "Using the following build machine macro files:"
3248 for f in $build_xm_file; do
3249 echo " $srcdir/config/$f"
3254 if test x$thread_file = x; then
3255 if test x$target_thread_file != x; then
3256 thread_file=$target_thread_file
3258 thread_file='single'
3262 # Set up the header files.
3263 # $links is the list of header files to create.
3264 # $vars is the list of shell variables with file names to include.
3265 # auto-host.h is the file containing items generated by autoconf and is
3266 # the first file included by config.h.
3268 host_xm_file="auto-host.h ${host_xm_file}"
3270 # If host=build, it is correct to have hconfig include auto-host.h
3271 # as well. If host!=build, we are in error and need to do more
3272 # work to find out the build config parameters.
3273 if test x$host = x$build
3275 build_xm_file="auto-host.h ${build_xm_file}"
3277 # We create a subdir, then run autoconf in the subdir.
3278 # To prevent recursion we set host and build for the new
3279 # invocation of configure to the build for this invocation
3286 /*) realsrcdir=${srcdir};;
3287 *) realsrcdir=../${srcdir};;
3289 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3290 --target=$target --host=$build --build=$build
3292 # We just finished tests for the build machine, so rename
3293 # the file auto-build.h in the gcc directory.
3294 mv auto-host.h ../auto-build.h
3297 build_xm_file="auto-build.h ${build_xm_file}"
3300 vars="host_xm_file tm_file xm_file build_xm_file"
3301 links="config.h tm.h tconfig.h hconfig.h"
3302 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3305 if test -f config.status; then mv -f config.status config.bak; fi
3308 while test -n "$vars"
3310 set $vars; var=$1; shift; vars=$*
3311 set $links; link=$1; shift; links=$*
3312 set $defines; define=$1; shift; defines=$*
3316 # Define TARGET_CPU_DEFAULT if the system wants one.
3317 # This substitutes for lots of *.h files.
3318 if test "$target_cpu_default" != "" -a $link = tm.h
3320 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3323 for file in `eval echo '$'$var`; do
3324 echo "#include \"$file\"" >>$link
3327 for def in `eval echo '$'$define`; do
3328 echo "#ifndef $def" >>$link
3329 echo "#define $def" >>$link
3330 echo "#endif" >>$link
3334 # Truncate the target if necessary
3335 if test x$host_truncate_target != x; then
3336 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3339 # Get the version trigger filename from the toplevel
3340 if test "${with_gcc_version_trigger+set}" = set; then
3341 gcc_version_trigger=$with_gcc_version_trigger
3343 gcc_version_trigger=${srcdir}/version.c
3346 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3349 # Get an absolute path to the GCC top-level source directory
3355 # Conditionalize the makefile for this host machine.
3356 # Make-host contains the concatenation of all host makefile fragments
3357 # [there can be more than one]. This file is built by configure.frag.
3358 host_overrides=Make-host
3359 dep_host_xmake_file=
3360 for f in .. ${host_xmake_file}
3362 if test -f ${srcdir}/config/$f
3364 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3368 # Conditionalize the makefile for this target machine.
3369 # Make-target contains the concatenation of all host makefile fragments
3370 # [there can be more than one]. This file is built by configure.frag.
3371 target_overrides=Make-target
3373 for f in .. ${tmake_file}
3375 if test -f ${srcdir}/config/$f
3377 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3381 # If the host doesn't support symlinks, modify CC in
3382 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3383 # Otherwise, we can use "CC=$(CC)".
3385 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3387 cc_set_by_configure="\$(CC)"
3388 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3391 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3393 symbolic_link="cp -p"
3397 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3398 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3402 out_object_file=`basename $out_file .c`.o
3405 for f in $tm_file; do
3406 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3410 for f in $host_xm_file; do
3411 if test $f != "auto-host.h"; then
3412 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3414 host_xm_file_list="${host_xm_file_list} auto-host.h"
3419 for f in $build_xm_file; do
3420 if test $f != "auto-build.h"; then
3421 if test $f != "auto-host.h"; then
3422 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3424 build_xm_file_list="${build_xm_file_list} auto-host.h"
3427 build_xm_file_list="${build_xm_file_list} auto-build.h"
3431 # Define macro CROSS_COMPILE in compilation
3432 # if this is a cross-compiler.
3433 # Also use all.cross instead of all.internal
3434 # and add cross-make to Makefile.
3435 cross_overrides="/dev/null"
3436 if test x$host != x$target
3438 cross_defines="CROSS=-DCROSS_COMPILE"
3439 cross_overrides="${topdir}/cross-make"
3442 # When building gcc with a cross-compiler, we need to fix a few things.
3443 # This must come after cross-make as we want all.build to override
3445 build_overrides="/dev/null"
3446 if test x$build != x$host
3448 build_overrides="${topdir}/build-make"
3451 # Expand extra_headers to include complete path.
3452 # This substitutes for lots of t-* files.
3454 if test "x$extra_headers" = x
3457 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3458 for file in $extra_headers;
3460 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3464 if test x$use_collect2 = xno; then
3468 # Add a definition of USE_COLLECT2 if system wants one.
3469 # Also tell toplev.c what to do.
3470 # This substitutes for lots of t-* files.
3471 if test x$use_collect2 = x
3476 will_use_collect2="collect2"
3477 maybe_use_collect2="-DUSE_COLLECT2"
3481 # Set MD_DEPS if the real md file is in md.pre-cpp.
3482 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3483 # for line oriented comments, so we must always use a GNU cpp. If
3484 # building gcc with a cross compiler, use the cross compiler just
3485 # built. Otherwise, we can use the cpp just built.
3487 if test "x$md_cppflags" = x
3489 md_file_sub=$srcdir/config/$md_file
3494 # If we have gas in the build tree, make a link to it.
3495 if test -f ../gas/Makefile; then
3496 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3499 # If we have nm in the build tree, make a link to it.
3500 if test -f ../binutils/Makefile; then
3501 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3504 # If we have ld in the build tree, make a link to it.
3505 if test -f ../ld/Makefile; then
3506 # if test x$use_collect2 = x; then
3507 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3509 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3513 # Figure out what assembler alignment features are present.
3514 AC_MSG_CHECKING(assembler alignment features)
3516 gcc_cv_as_alignment_features=
3517 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'`
3518 if test -x as$host_exeext; then
3519 # Build using assembler in the current directory.
3520 gcc_cv_as=./as$host_exeext
3521 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3522 # Single tree build which includes gas.
3523 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3526 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3528 if test x$gcc_cv_gas_version != x; then
3533 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3534 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3536 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3537 # Gas version 2.6 and later support for .balign and .p2align.
3538 # bytes to skip when using .p2align.
3539 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
3540 gcc_cv_as_alignment_features=".balign and .p2align"
3541 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3543 # Gas version 2.8 and later support specifying the maximum
3544 # bytes to skip when using .p2align.
3545 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
3546 gcc_cv_as_alignment_features=".p2align including maximum skip"
3547 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3550 elif test x$host = x$target; then
3552 gcc_cv_as=as$host_exeext
3554 if test x$gcc_cv_as != x; then
3555 # Check if we have .balign and .p2align
3556 echo ".balign 4" > conftest.s
3557 echo ".p2align 2" >> conftest.s
3558 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3559 gcc_cv_as_alignment_features=".balign and .p2align"
3560 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3562 rm -f conftest.s conftest.o
3563 # Check if specifying the maximum bytes to skip when
3564 # using .p2align is supported.
3565 echo ".p2align 4,,7" > conftest.s
3566 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3567 gcc_cv_as_alignment_features=".p2align including maximum skip"
3568 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3570 rm -f conftest.s conftest.o
3572 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3574 # Figure out what language subdirectories are present.
3576 for lang in ${srcdir}/*/config-lang.in ..
3580 # The odd quoting in the next line works around
3581 # an apparent bug in bash 1.12 on linux.
3583 ${srcdir}/[*]/config-lang.in) ;;
3584 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3589 # Make gthr-default.h if we have a thread file.
3591 if test $thread_file != single; then
3592 rm -f gthr-default.h
3593 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3594 gthread_flags=-DHAVE_GTHR_DEFAULT
3596 AC_SUBST(gthread_flags)
3598 # Make empty files to contain the specs and options for each language.
3599 # Then add #include lines to for a compiler that has specs and/or options.
3603 rm -f specs.h options.h
3604 touch specs.h options.h
3605 for subdir in . $subdirs
3607 if test -f $srcdir/$subdir/lang-specs.h; then
3608 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3609 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3611 if test -f $srcdir/$subdir/lang-options.h; then
3612 echo "#include \"$subdir/lang-options.h\"" >>options.h
3613 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3617 # These (without "all_") are set in each config-lang.in.
3618 # `language' must be a single word so is spelled singularly.
3624 all_outputs=Makefile
3625 # List of language makefile fragments.
3630 # Add the language fragments.
3631 # Languages are added via two mechanisms. Some information must be
3632 # recorded in makefile variables, these are defined in config-lang.in.
3633 # We accumulate them and plug them into the main Makefile.
3634 # The other mechanism is a set of hooks for each of the main targets
3635 # like `clean', `install', etc.
3637 language_fragments="Make-lang"
3638 language_hooks="Make-hooks"
3641 for s in .. $subdirs
3653 . ${srcdir}/$s/config-lang.in
3654 if test "x$language" = x
3656 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3659 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3660 all_languages="$all_languages $language"
3661 if test "x$boot_language" = xyes
3663 all_boot_languages="$all_boot_languages $language"
3665 all_compilers="$all_compilers $compilers"
3666 all_stagestuff="$all_stagestuff $stagestuff"
3667 all_diff_excludes="$all_diff_excludes $diff_excludes"
3668 all_headers="$all_headers $headers"
3669 all_outputs="$all_outputs $outputs"
3670 if test x$outputs = x
3672 oldstyle_subdirs="$oldstyle_subdirs $s"
3674 all_lib2funcs="$all_lib2funcs $lib2funcs"
3678 # Since we can't use `::' targets, we link each language in
3679 # with a set of hooks, reached indirectly via lang.${target}.
3683 target_list="all.build all.cross start.encap rest.encap \
3685 install-normal install-common install-info install-man \
3687 mostlyclean clean distclean extraclean maintainer-clean \
3688 stage1 stage2 stage3 stage4"
3689 for t in $target_list
3692 for l in .. $all_languages
3694 if test $l != ".."; then
3698 echo "lang.$t: $x" >> Make-hooks
3701 # If we're not building in srcdir, create .gdbinit.
3703 if test ! -f Makefile.in; then
3704 echo "dir ." > .gdbinit
3705 echo "dir ${srcdir}" >> .gdbinit
3706 if test x$gdb_needs_out_file_path = xyes
3708 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3710 if test "x$subdirs" != x; then
3713 echo "dir ${srcdir}/$s" >> .gdbinit
3716 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3719 # Define variables host_canonical and build_canonical
3720 # because some Cygnus local changes in the Makefile depend on them.
3721 build_canonical=${build}
3722 host_canonical=${host}
3724 if test "${host}" != "${target}" ; then
3725 target_subdir=${target}/
3727 AC_SUBST(build_canonical)
3728 AC_SUBST(host_canonical)
3729 AC_SUBST(target_subdir)
3731 # If this is using newlib, then define inhibit_libc in
3732 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3733 # libgcc.a, but that's OK because newib should have its own version of
3736 if test x$with_newlib = xyes; then
3737 inhibit_libc=-Dinhibit_libc
3739 AC_SUBST(inhibit_libc)
3741 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3744 if test x$enable_haifa = xyes; then
3745 echo "Using the Haifa scheduler."
3747 sched_cflags=-DHAIFA
3749 AC_SUBST(sched_prefix)
3750 AC_SUBST(sched_cflags)
3751 if test x$enable_haifa != x; then
3752 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3753 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3761 # Warn if using init_priority.
3762 AC_MSG_CHECKING(whether to enable init_priority by default)
3763 if test x$enable_init_priority != xyes; then
3764 enable_init_priority=no
3766 AC_MSG_RESULT($enable_init_priority)
3768 # Nothing to do for FLOAT_H, float_format already handled.
3772 # Process the language and host/target makefile fragments.
3773 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3775 # Substitute configuration variables
3777 AC_SUBST(all_languages)
3778 AC_SUBST(all_boot_languages)
3779 AC_SUBST(all_compilers)
3780 AC_SUBST(all_lang_makefiles)
3781 AC_SUBST(all_stagestuff)
3782 AC_SUBST(all_diff_excludes)
3783 AC_SUBST(all_lib2funcs)
3784 AC_SUBST(all_headers)
3786 AC_SUBST(extra_passes)
3787 AC_SUBST(extra_programs)
3788 AC_SUBST(extra_parts)
3789 AC_SUBST(extra_c_objs)
3790 AC_SUBST(extra_cxx_objs)
3791 AC_SUBST(extra_cpp_objs)
3792 AC_SUBST(extra_c_flags)
3793 AC_SUBST(extra_objs)
3794 AC_SUBST(host_extra_gcc_objs)
3795 AC_SUBST(extra_headers_list)
3796 AC_SUBST(dep_host_xmake_file)
3797 AC_SUBST(dep_tmake_file)
3799 AC_SUBST(out_object_file)
3801 AC_SUBST(tm_file_list)
3802 AC_SUBST(build_xm_file_list)
3803 AC_SUBST(host_xm_file_list)
3804 AC_SUBST(lang_specs_files)
3805 AC_SUBST(lang_options_files)
3806 AC_SUBST(thread_file)
3807 AC_SUBST(gcc_version)
3808 AC_SUBST(gcc_version_trigger)
3809 AC_SUBST(local_prefix)
3810 AC_SUBST(gxx_include_dir)
3811 AC_SUBST(fixincludes)
3812 AC_SUBST(build_install_headers_dir)
3813 AC_SUBST(build_exeext)
3814 AC_SUBST(host_exeext)
3815 AC_SUBST(float_format)
3816 AC_SUBST(will_use_collect2)
3817 AC_SUBST(maybe_use_collect2)
3818 AC_SUBST(cc_set_by_configure)
3819 AC_SUBST(stage_prefix_set_by_configure)
3821 AC_SUBST(symbolic_link)
3823 AC_SUBST_FILE(target_overrides)
3824 AC_SUBST_FILE(host_overrides)
3825 AC_SUBST(cross_defines)
3826 AC_SUBST_FILE(cross_overrides)
3827 AC_SUBST_FILE(build_overrides)
3828 AC_SUBST_FILE(language_fragments)
3829 AC_SUBST_FILE(language_hooks)
3831 # Echo that links are built
3832 if test x$host = x$target
3840 if test x$host != x$build
3842 str3=" on a $build system"
3845 if test "x$str2" != x || test "x$str3" != x
3850 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3852 if test "x$str2" != x || test "x$str3" != x
3854 echo " ${str2}${str3}." 1>&2
3857 # Truncate the target if necessary
3858 if test x$host_truncate_target != x; then
3859 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3862 # Configure the subdirectories
3863 # AC_CONFIG_SUBDIRS($subdirs)
3865 # Create the Makefile
3866 # and configure language subdirectories
3867 AC_OUTPUT($all_outputs,
3869 . $srcdir/configure.lang
3870 case x$CONFIG_HEADERS in
3871 xauto-host.h:config.in)
3874 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3875 # bootstrapping and the installation procedure can still use
3876 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3877 # FLAGS_TO_PASS has been modified to solve the problem there.
3878 # This is virtually a duplicate of what happens in configure.lang; we do
3879 # an extra check to make sure this only happens if ln -s can be used.
3880 if test "$symbolic_link" = "ln -s"; then
3881 for d in .. ${subdirs} ; do
3882 if test $d != ..; then
3885 for t in stage1 stage2 stage3 stage4 include
3888 $symbolic_link ../$t $t 2>/dev/null
3899 target_alias='${target_alias}'
3901 subdirs='${subdirs}'
3902 oldstyle_subdirs='${oldstyle_subdirs}'
3903 symbolic_link='${symbolic_link}'
3904 program_transform_set='${program_transform_set}'
3905 program_transform_name='${program_transform_name}'
3906 dep_host_xmake_file='${dep_host_xmake_file}'
3907 host_xmake_file='${host_xmake_file}'
3908 dep_tmake_file='${dep_tmake_file}'
3909 tmake_file='${tmake_file}'
3910 thread_file='${thread_file}'
3911 gcc_version='${gcc_version}'
3912 gcc_version_trigger='${gcc_version_trigger}'
3913 local_prefix='${local_prefix}'
3914 build_install_headers_dir='${build_install_headers_dir}'
3915 build_exeext='${build_exeext}'
3916 host_exeext='${host_exeext}'
3917 out_file='${out_file}'
3918 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3919 SET_MAKE='${SET_MAKE}'
3920 target_list='${target_list}'
3921 target_overrides='${target_overrides}'
3922 host_overrides='${host_overrides}'
3923 cross_defines='${cross_defines}'
3924 cross_overrides='${cross_overrides}'
3925 build_overrides='${build_overrides}'