]> gcc.gnu.org Git - gcc.git/blob - gcc/configure.in
f9393b9d17cbd585aca41f09df555168d382839d
[gcc.git] / gcc / configure.in
1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
3
4 # Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
5
6 #This file is part of GNU CC.
7
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)
11 #any later version.
12
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.
17
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.
22
23 # Initialization and defaults
24 AC_PREREQ(2.13)
25 AC_INIT(tree.c)
26 AC_CONFIG_HEADER(auto-host.h:config.in)
27
28 remove=rm
29 hard_link=ln
30 symbolic_link='ln -s'
31 copy=cp
32
33 # Check for bogus environment variables.
34 # Test if LIBRARY_PATH contains the notation for the current directory
35 # since this would lead to problems installing/building glibc.
36 # LIBRARY_PATH contains the current directory if one of the following
37 # is true:
38 # - one of the terminals (":" and ";") is the first or last sign
39 # - two terminals occur directly after each other
40 # - the path contains an element with a dot in it
41 AC_MSG_CHECKING(LIBRARY_PATH variable)
42 changequote(,)dnl
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
46 ;;
47 *)
48 library_path_setting="ok"
49 ;;
50 esac
51 changequote([,])dnl
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
54 AC_MSG_ERROR([
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building gcc. Please change the environment variable
57 *** and run configure again.])
58 fi
59
60 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
61 # since this would lead to problems installing/building glibc.
62 # GCC_EXEC_PREFIX contains the current directory if one of the following
63 # is true:
64 # - one of the terminals (":" and ";") is the first or last sign
65 # - two terminals occur directly after each other
66 # - the path contains an element with a dot in it
67 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
68 changequote(,)dnl
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
72 ;;
73 *)
74 gcc_exec_prefix_setting="ok"
75 ;;
76 esac
77 changequote([,])dnl
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
80 AC_MSG_ERROR([
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building gcc. Please change the environment variable
83 *** and run configure again.])
84 fi
85
86 # Check for additional parameters
87
88 # With GNU ld
89 AC_ARG_WITH(gnu-ld,
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
92 gnu_ld_flag=no)
93
94 # With pre-defined ld
95 AC_ARG_WITH(ld,
96 [ --with-ld arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
102 gnu_ld_flag=yes
103 fi
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
105 [Define to enable the use of a default linker.])
106 fi
107
108 # With GNU as
109 AC_ARG_WITH(gnu-as,
110 [ --with-gnu-as arrange to work with GNU as.],
111 gas_flag="$with_gnu_as",
112 gas_flag=no)
113
114 AC_ARG_WITH(as,
115 [ --with-as arrange to use the specified as (full pathname).],
116 DEFAULT_ASSEMBLER="$with_as")
117 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
118 if test ! -x "$DEFAULT_ASSEMBLER"; then
119 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
120 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
121 gas_flag=yes
122 fi
123 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
124 [Define to enable the use of a default assembler.])
125 fi
126
127 # With stabs
128 AC_ARG_WITH(stabs,
129 [ --with-stabs arrange to use stabs instead of host debug format.],
130 stabs="$with_stabs",
131 stabs=no)
132
133 # With ELF
134 AC_ARG_WITH(elf,
135 [ --with-elf arrange to use ELF instead of host debug format.],
136 elf="$with_elf",
137 elf=no)
138
139 # Specify the local prefix
140 local_prefix=
141 AC_ARG_WITH(local-prefix,
142 [ --with-local-prefix=DIR specifies directory to put local include.],
143 [case "${withval}" in
144 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
145 no) ;;
146 *) local_prefix=$with_local_prefix ;;
147 esac])
148
149 # Default local prefix if it is empty
150 if test x$local_prefix = x; then
151 local_prefix=/usr/local
152 fi
153
154 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155 # passed in by the toplevel make and thus we'd get different behavior
156 # depending on where we built the sources.
157 gcc_gxx_include_dir=
158 # Specify the g++ header file directory
159 AC_ARG_WITH(gxx-include-dir,
160 [ --with-gxx-include-dir=DIR
161 specifies directory to put g++ header files.],
162 [case "${withval}" in
163 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
164 no) ;;
165 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
166 esac])
167
168 if test x${gcc_gxx_include_dir} = x; then
169 if test x${enable_version_specific_runtime_libs} = xyes; then
170 gcc_gxx_include_dir='${libsubdir}/include/g++'
171 else
172 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
173 changequote(<<, >>)dnl
174 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
175 changequote([, ])dnl
176 fi
177 fi
178
179 # Enable expensive internal checks
180 AC_ARG_ENABLE(checking,
181 [ --enable-checking[=LIST]
182 enable expensive run-time checks. With LIST,
183 enable only specific categories of checks.
184 Categories are: misc,tree,rtl,gc,gcac; default
185 is misc,tree,rtl],
186 [ac_checking=
187 ac_tree_checking=
188 ac_rtl_checking=
189 ac_gc_checking=
190 ac_gc_always_collect=
191 case "${enableval}" in
192 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;;
193 no) ;;
194 *) IFS="${IFS= }"; ac_save_IFS="$IFS" IFS="$IFS,"
195 set fnord $enableval; shift
196 IFS="$ac_save_IFS"
197 for check
198 do
199 case $check in
200 misc) ac_checking=1 ;;
201 tree) ac_tree_checking=1 ;;
202 rtl) ac_rtl_checking=1 ;;
203 gc) ac_gc_checking=1 ;;
204 gcac) ac_gc_always_collect=1 ;;
205 *) AC_MSG_ERROR(unknown check category $check) ;;
206 esac
207 done
208 ;;
209 esac
210 if test x$ac_checking != x ; then
211 AC_DEFINE(ENABLE_CHECKING, 1,
212 [Define if you want more run-time sanity checks. This one gets a grab
213 bag of miscellaneous but relatively cheap checks.])
214 fi
215 if test x$ac_tree_checking != x ; then
216 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
217 [Define if you want all operations on trees (the basic data
218 structure of the front ends) to be checked for dynamic type safety
219 at runtime. This is moderately expensive.])
220 fi
221 if test x$ac_rtl_checking != x ; then
222 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
223 [Define if you want all operations on RTL (the basic data structure
224 of the optimizer and back end) to be checked for dynamic type safety
225 at runtime. This is quite expensive.])
226 fi
227 if test x$ac_gc_checking != x ; then
228 AC_DEFINE(ENABLE_GC_CHECKING, 1,
229 [Define if you want the garbage collector to do object poisoning and
230 other memory allocation checks. This is quite expensive.])
231 fi
232 if test x$ac_gc_always_collect != x ; then
233 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
234 [Define if you want the garbage collector to operate in maximally
235 paranoid mode, validating the entire heap and collecting garbage at
236 every opportunity. This is extremely expensive.])
237 fi
238 ])
239
240 AC_ARG_ENABLE(cpp,
241 [ --disable-cpp don't provide a user-visible C preprocessor.],
242 [], [enable_cpp=yes])
243
244 AC_ARG_WITH(cpp_install_dir,
245 [ --with-cpp-install-dir=DIR
246 install the user visible C preprocessor in DIR
247 (relative to PREFIX) as well as PREFIX/bin.],
248 [if test x$withval = xyes; then
249 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
250 elif test x$withval != xno; then
251 cpp_install_dir=$withval
252 fi])
253
254 dnl Disable this for the moment; the library interface is changing.
255 dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
256 dnl AC_ARG_ENABLE(c-cpplib,
257 dnl [ --enable-c-cpplib link cpplib directly into C and C++ compilers
258 dnl (EXPERIMENTAL) (implies --enable-cpplib).],
259 dnl if test x$enable_c_cpplib != xno; then
260 dnl extra_c_objs="${extra_c_objs} libcpp.a"
261 dnl extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
262 dnl extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
263 dnl fi)
264
265 # Enable Multibyte Characters for C/C++
266 AC_ARG_ENABLE(c-mbchar,
267 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
268 if test x$enable_c_mbchar != xno; then
269 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
270 fi)
271
272 # Enable threads
273 # Pass with no value to take the default
274 # Pass with a value to specify a thread package
275 AC_ARG_ENABLE(threads,
276 [ --enable-threads enable thread usage for target GCC.
277 --enable-threads=LIB use LIB thread package for target GCC.],
278 if test x$enable_threads = xno; then
279 enable_threads=''
280 fi,
281 enable_threads='')
282
283 enable_threads_flag=$enable_threads
284 # Check if a valid thread package
285 case x${enable_threads_flag} in
286 x | xno)
287 # No threads
288 target_thread_file='single'
289 ;;
290 xyes)
291 # default
292 target_thread_file=''
293 ;;
294 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
295 xsolaris | xwin32 | xdce | xvxworks)
296 target_thread_file=$enable_threads_flag
297 ;;
298 *)
299 echo "$enable_threads is an unknown thread package" 1>&2
300 exit 1
301 ;;
302 esac
303
304 AC_ARG_ENABLE(objc-gc,
305 [ --enable-objc-gc enable the use of Boehm's garbage collector with
306 the GNU Objective-C runtime.],
307 if test x$enable_objc_gc = xno; then
308 objc_boehm_gc=''
309 else
310 objc_boehm_gc=1
311 fi,
312 objc_boehm_gc='')
313
314 AC_ARG_WITH(dwarf2,
315 [ --with-dwarf2 force the default debug format to be DWARF2.],
316 dwarf2="$with_dwarf2",
317 dwarf2=no)
318
319 # Determine the host, build, and target systems
320 AC_CANONICAL_SYSTEM
321
322 # Find the native compiler
323 AC_PROG_CC
324 AC_PROG_CC_C_O
325 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
326 NO_MINUS_C_MINUS_O=yes
327 fi
328 AC_SUBST(NO_MINUS_C_MINUS_O)
329
330 gcc_AC_C_LONG_DOUBLE
331
332 AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
333 echo 'void f(){}' > conftest.c
334 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
335 ac_cv_prog_cc_no_long_long=yes
336 else
337 ac_cv_prog_cc_no_long_long=no
338 fi
339 rm -f conftest*
340 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
341
342 # If the native compiler is GCC, we can enable warnings even in stage1.
343 # That's useful for people building cross-compilers, or just running a
344 # quick `make'.
345 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
346 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
347 if test "x$GCC" = "xyes"; then
348 if test $ac_cv_prog_cc_no_long_long = yes; then
349 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
350 fi
351 else
352 stage1_warn_cflags=""
353 fi
354 AC_SUBST(stage1_warn_cflags)
355 AC_SUBST(stage2_warn_cflags)
356
357 AC_PROG_MAKE_SET
358
359 AC_MSG_CHECKING([whether a default assembler was specified])
360 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
361 if test x"$gas_flag" = x"no"; then
362 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
363 else
364 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
365 fi
366 else
367 AC_MSG_RESULT(no)
368 fi
369
370 AC_MSG_CHECKING([whether a default linker was specified])
371 if test x"${DEFAULT_LINKER+set}" = x"set"; then
372 if test x"$gnu_ld_flag" = x"no"; then
373 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
374 else
375 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
376 fi
377 else
378 AC_MSG_RESULT(no)
379 fi
380
381 # Find some useful tools
382 AC_PROG_AWK
383 AC_PROG_LEX
384 gcc_AC_PROG_LN
385 gcc_AC_PROG_LN_S
386 gcc_AC_C_VOLATILE
387 AC_PROG_RANLIB
388 AC_PROG_YACC
389 gcc_AC_PROG_INSTALL
390
391 AC_HEADER_STDC
392 AC_HEADER_TIME
393 gcc_AC_HEADER_STRING
394 AC_HEADER_SYS_WAIT
395 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
396 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
397 sys/resource.h sys/param.h sys/times.h sys/stat.h \
398 direct.h malloc.h)
399
400 # Check for thread headers.
401 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
402 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
403
404 # See if GNAT has been installed
405 AC_CHECK_PROG(gnat, gnatbind, yes, no)
406
407 # Do we have a single-tree copy of texinfo?
408 if test -f $srcdir/../texinfo/Makefile.in; then
409 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
410 gcc_cv_prog_makeinfo_modern=yes
411 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
412 else
413 # See if makeinfo has been installed and is modern enough
414 # that we can use it.
415 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
416 [GNU texinfo.* \([0-9][0-9.]*\)],
417 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
418 fi
419
420 if test $gcc_cv_prog_makeinfo_modern = no; then
421 AC_MSG_WARN([
422 *** Makeinfo is missing or too old.
423 *** Info documentation will not be built or installed.])
424 BUILD_INFO=
425 INSTALL_INFO=
426 else
427 BUILD_INFO=info AC_SUBST(BUILD_INFO)
428 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
429 fi
430
431 # See if the stage1 system preprocessor understands the ANSI C
432 # preprocessor stringification operator.
433 AC_C_STRINGIZE
434
435 # Use <inttypes.h> only if it exists,
436 # doesn't clash with <sys/types.h>, and declares intmax_t.
437 AC_MSG_CHECKING(for inttypes.h)
438 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
439 [AC_TRY_COMPILE(
440 [#include <sys/types.h>
441 #include <inttypes.h>],
442 [intmax_t i = -1;],
443 [gcc_cv_header_inttypes_h=yes],
444 gcc_cv_header_inttypes_h=no)])
445 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
446 if test $gcc_cv_header_inttypes_h = yes; then
447 AC_DEFINE(HAVE_INTTYPES_H, 1,
448 [Define if you have a working <inttypes.h> header file.])
449 fi
450
451 #
452 # Determine if enumerated bitfields are unsigned. ISO C says they can
453 # be either signed or unsigned.
454 #
455 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
456 [AC_TRY_RUN(#include <stdlib.h>
457 enum t { BLAH = 128 } ;
458 struct s_t { enum t member : 8; } s ;
459 int main(void)
460 {
461 s.member = BLAH;
462 if (s.member < 0) exit(1);
463 exit(0);
464
465 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
466 if test $gcc_cv_enum_bf_unsigned = yes; then
467 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
468 [Define if enumerated bitfields are treated as unsigned values.])
469 fi
470
471 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
472 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
473 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
474 fputs_unlocked getrusage valloc)
475
476 AC_CHECK_TYPE(ssize_t, int)
477
478 gcc_AC_FUNC_VFPRINTF_DOPRNT
479 gcc_AC_FUNC_PRINTF_PTR
480
481 case "${host}" in
482 *-*-uwin*)
483 # Under some versions of uwin, vfork is notoriously buggy and the test
484 # can hang configure; on other versions, vfork exists just as a stub.
485 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
486 ac_cv_func_vfork_works=no
487 ;;
488 esac
489 AC_FUNC_VFORK
490 AC_FUNC_MMAP_ANYWHERE
491 AC_FUNC_MMAP_FILE
492
493 # We will need to find libiberty.h and ansidecl.h
494 saved_CFLAGS="$CFLAGS"
495 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
496 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
497 index rindex getenv atol sbrk abort atof getcwd getwd \
498 strsignal putc_unlocked fputs_unlocked strstr environ \
499 malloc realloc calloc free basename getopt, , ,[
500 #include "gansidecl.h"
501 #include "system.h"])
502
503 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
504 #include "gansidecl.h"
505 #include "system.h"
506 #ifdef HAVE_SYS_RESOURCE_H
507 #include <sys/resource.h>
508 #endif
509 ])
510
511 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
512 CFLAGS="$saved_CFLAGS"
513
514 # mkdir takes a single argument on some systems.
515 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
516
517 # File extensions
518 manext='.1'
519 objext='.o'
520 AC_SUBST(manext)
521 AC_SUBST(objext)
522
523 build_xm_file=
524 build_xm_defines=
525 build_install_headers_dir=install-headers-tar
526 build_exeext=
527 host_xm_file=
528 host_xm_defines=
529 host_xmake_file=
530 host_truncate_target=
531 host_exeext=
532
533 # Decode the host machine, then the target machine.
534 # For the host machine, we save the xm_file variable as host_xm_file;
535 # then we decode the target machine and forget everything else
536 # that came from the host machine.
537 for machine in $build $host $target; do
538
539 out_file=
540 xmake_file=
541 tmake_file=
542 extra_headers=
543 extra_passes=
544 extra_parts=
545 extra_programs=
546 extra_objs=
547 extra_host_objs=
548 extra_gcc_objs=
549 xm_defines=
550 float_format=
551 # Set this to force installation and use of collect2.
552 use_collect2=
553 # Set this to override the default target model.
554 target_cpu_default=
555 # Set this to control how the header file directory is installed.
556 install_headers_dir=install-headers-tar
557 # Set this to a non-empty list of args to pass to cpp if the target
558 # wants its .md file passed through cpp.
559 md_cppflags=
560 # Set this if directory names should be truncated to 14 characters.
561 truncate_target=
562 # Set this if gdb needs a dir command with `dirname $out_file`
563 gdb_needs_out_file_path=
564 # Set this if the build machine requires executables to have a
565 # file name suffix.
566 exeext=
567 # Set this to control which thread package will be used.
568 thread_file=
569 # Reinitialize these from the flag values every loop pass, since some
570 # configure entries modify them.
571 gas="$gas_flag"
572 gnu_ld="$gnu_ld_flag"
573 enable_threads=$enable_threads_flag
574
575 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
576 # updated in each machine entry.
577 tm_p_file=
578 cpu_type=`echo $machine | sed 's/-.*$//'`
579 case $machine in
580 alpha*-*-*)
581 cpu_type=alpha
582 ;;
583 strongarm*-*-*)
584 cpu_type=arm
585 ;;
586 arm*-*-*)
587 cpu_type=arm
588 ;;
589 c*-convex-*)
590 cpu_type=convex
591 ;;
592 changequote(,)dnl
593 i[34567]86-*-*)
594 changequote([,])dnl
595 cpu_type=i386
596 ;;
597 hppa*-*-*)
598 cpu_type=pa
599 ;;
600 m68000-*-*)
601 cpu_type=m68k
602 ;;
603 mips*-*-*)
604 cpu_type=mips
605 ;;
606 pj*-*-*)
607 cpu_type=pj
608 ;;
609 powerpc*-*-*)
610 cpu_type=rs6000
611 ;;
612 pyramid-*-*)
613 cpu_type=pyr
614 ;;
615 sparc*-*-*)
616 cpu_type=sparc
617 ;;
618 esac
619
620 tm_file=${cpu_type}/${cpu_type}.h
621 xm_file=${cpu_type}/xm-${cpu_type}.h
622 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
623 then
624 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
625 fi
626 # On a.out targets, we need to use collect2.
627 case $machine in
628 *-*-*aout*)
629 use_collect2=yes
630 ;;
631 esac
632
633 # Common parts for linux-gnu and openbsd systems
634 case $machine in
635 *-*-linux-gnu*)
636 xm_defines="HAVE_ATEXIT POSIX BSTRING"
637 ;;
638 *-*-openbsd*)
639 tm_file=${cpu_type}/openbsd.h
640 tmake_file="t-libc-ok t-openbsd"
641 # avoid surprises, always provide an xm-openbsd file
642 xm_file=${cpu_type}/xm-openbsd.h
643 # don't depend on processor x-fragments as well
644 xmake_file=none
645 if test x$enable_threads = xyes; then
646 thread_file='posix'
647 tmake_file="${tmake_file} t-openbsd-thread"
648 fi
649 ;;
650 esac
651
652 case $machine in
653 # Support site-specific machine types.
654 *local*)
655 cpu_type=`echo $machine | sed -e 's/-.*//'`
656 rest=`echo $machine | sed -e "s/$cpu_type-//"`
657 xm_file=${cpu_type}/xm-$rest.h
658 tm_file=${cpu_type}/$rest.h
659 if test -f $srcdir/config/${cpu_type}/x-$rest; \
660 then xmake_file=${cpu_type}/x-$rest; \
661 else true; \
662 fi
663 if test -f $srcdir/config/${cpu_type}/t-$rest; \
664 then tmake_file=${cpu_type}/t-$rest; \
665 else true; \
666 fi
667 ;;
668 1750a-*-*)
669 ;;
670 a29k-*-bsd* | a29k-*-sym1*)
671 tm_file="${tm_file} a29k/unix.h"
672 xm_defines=USG
673 xmake_file=a29k/x-unix
674 use_collect2=yes
675 ;;
676 a29k-*-udi | a29k-*-coff)
677 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
678 tmake_file=a29k/t-a29kbare
679 ;;
680 a29k-wrs-vxworks*)
681 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
682 tmake_file=a29k/t-vx29k
683 extra_parts="crtbegin.o crtend.o"
684 thread_file='vxworks'
685 ;;
686 a29k-*-*) # Default a29k environment.
687 use_collect2=yes
688 ;;
689 alpha-*-interix)
690 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
691
692 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
693 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
694
695 # GAS + IEEE_CONFORMANT
696 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
697
698 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
699 xmake_file="x-interix alpha/t-pe"
700 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
701 if test x$enable_threads = xyes ; then
702 thread_file='posix'
703 fi
704 if test x$stabs = xyes ; then
705 tm_file="${tm_file} dbxcoff.h"
706 fi
707 #prefix='$$INTERIX_ROOT'/usr/contrib
708 #local_prefix='$$INTERIX_ROOT'/usr/contrib
709 ;;
710 alpha*-*-linux-gnuecoff*)
711 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
712 target_cpu_default="MASK_GAS"
713 tmake_file="alpha/t-alpha alpha/t-ieee"
714 gas=no
715 xmake_file=none
716 gas=yes gnu_ld=yes
717 ;;
718 alpha*-*-linux-gnulibc1*)
719 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
720 target_cpu_default="MASK_GAS"
721 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
722 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
723 xmake_file=none
724 gas=yes gnu_ld=yes
725 if test x$enable_threads = xyes; then
726 thread_file='posix'
727 fi
728 ;;
729 alpha*-*-linux-gnu*)
730 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
731 target_cpu_default="MASK_GAS"
732 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
733 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
734 xmake_file=none
735 gas=yes gnu_ld=yes
736 if test x$enable_threads = xyes; then
737 thread_file='posix'
738 fi
739 ;;
740 alpha*-*-netbsd*)
741 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
742 target_cpu_default="MASK_GAS"
743 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
744 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
745 xmake_file=none
746 gas=yes gnu_ld=yes
747 ;;
748
749 alpha*-*-openbsd*)
750 # default x-alpha is only appropriate for dec-osf.
751 target_cpu_default="MASK_GAS"
752 tmake_file="alpha/t-alpha alpha/t-ieee"
753 ;;
754
755 alpha*-dec-osf*)
756 if test x$stabs = xyes
757 then
758 tm_file="${tm_file} dbx.h"
759 fi
760 if test x$gas != xyes
761 then
762 extra_passes="mips-tfile mips-tdump"
763 fi
764 use_collect2=yes
765 tmake_file="alpha/t-alpha alpha/t-ieee"
766 case $machine in
767 *-*-osf1*)
768 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
769 ;;
770 changequote(,)dnl
771 *-*-osf[23]*)
772 changequote([,])dnl
773 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
774 ;;
775 *-*-osf4*)
776 tm_file="${tm_file} alpha/osf.h"
777 # Some versions of OSF4 (specifically X4.0-9 296.7) have
778 # a broken tar, so we use cpio instead.
779 install_headers_dir=install-headers-cpio
780 ;;
781 *-*-osf5*)
782 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
783 ;;
784 esac
785 case $machine in
786 changequote(,)dnl
787 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
788 changequote([,])dnl
789 target_cpu_default=MASK_SUPPORT_ARCH
790 ;;
791 esac
792 ;;
793 alpha*-*-vxworks*)
794 tm_file="${tm_file} dbx.h alpha/vxworks.h"
795 tmake_file="alpha/t-alpha alpha/t-ieee"
796 if [ x$gas != xyes ]
797 then
798 extra_passes="mips-tfile mips-tdump"
799 fi
800 use_collect2=yes
801 thread_file='vxworks'
802 ;;
803 alpha*-*-winnt*)
804 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
805 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
806 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
807 xmake_file=winnt/x-winnt
808 extra_host_objs=oldnames.o
809 extra_gcc_objs="spawnv.o oldnames.o"
810 if test x$gnu_ld != xyes
811 then
812 extra_programs=ld.exe
813 fi
814 if test x$enable_threads = xyes; then
815 thread_file='win32'
816 fi
817 ;;
818 alpha*-dec-vms*)
819 tm_file=alpha/vms.h
820 xm_file="${xm_file} alpha/xm-vms.h"
821 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
822 ;;
823 arc-*-elf*)
824 extra_parts="crtinit.o crtfini.o"
825 ;;
826 arm-*-coff* | armel-*-coff*)
827 tm_file=arm/coff.h
828 tmake_file=arm/t-arm-coff
829 ;;
830 arm-*-vxworks*)
831 tm_file=arm/vxarm.h
832 tmake_file=arm/t-arm-coff
833 thread_file='vxworks'
834 ;;
835 changequote(,)dnl
836 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
837 changequote([,])dnl
838 tm_file=arm/riscix1-1.h
839 use_collect2=yes
840 ;;
841 arm-*-riscix*) # Acorn RISC machine
842 if test x$gas = xyes
843 then
844 tm_file=arm/rix-gas.h
845 else
846 tm_file=arm/riscix.h
847 fi
848 xmake_file=arm/x-riscix
849 tmake_file=arm/t-riscix
850 use_collect2=yes
851 ;;
852 arm-semi-aout | armel-semi-aout)
853 tm_file=arm/semi.h
854 tmake_file=arm/t-semi
855 ;;
856 arm-semi-aof | armel-semi-aof)
857 tm_file=arm/semiaof.h
858 tmake_file=arm/t-semiaof
859 ;;
860 arm*-*-netbsd*)
861 tm_file=arm/netbsd.h
862 tmake_file="t-netbsd arm/t-netbsd"
863 use_collect2=yes
864 ;;
865 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
866 cpu_type=arm
867 xmake_file=x-linux
868 tm_file=arm/linux-aout.h
869 tmake_file=arm/t-linux
870 gnu_ld=yes
871 ;;
872 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
873 xm_file=arm/xm-linux.h
874 xmake_file=x-linux
875 tm_file="arm/linux-oldld.h arm/linux-elf.h"
876 case $machine in
877 armv2*-*-*)
878 tm_file="arm/linux-elf26.h $tm_file"
879 ;;
880 esac
881 tmake_file="t-linux arm/t-linux"
882 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
883 gnu_ld=yes
884 case x${enable_threads} in
885 x | xyes | xpthreads | xposix)
886 thread_file='posix'
887 ;;
888 esac
889 ;;
890 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
891 xm_file=arm/xm-linux.h
892 xmake_file=x-linux
893 tm_file="arm/linux-elf.h"
894 case $machine in
895 armv2*-*-*)
896 tm_file="arm/linux-elf26.h $tm_file"
897 ;;
898 esac
899 tmake_file="t-linux arm/t-linux"
900 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
901 gnu_ld=yes
902 case x${enable_threads} in
903 x | xyes | xpthreads | xposix)
904 thread_file='posix'
905 ;;
906 esac
907 ;;
908 arm*-*-uclinux*) # ARM ucLinux
909 tm_file=arm/uclinux-elf.h
910 tmake_file=arm/t-arm-elf
911 ;;
912 arm*-*-aout)
913 tm_file=arm/aout.h
914 tmake_file=arm/t-arm-aout
915 ;;
916 arm*-*-ecos-elf)
917 tm_file=arm/ecos-elf.h
918 tmake_file=arm/t-arm-elf
919 ;;
920 arm*-*-elf)
921 tm_file=arm/unknown-elf.h
922 tmake_file=arm/t-arm-elf
923 ;;
924 arm*-*-conix*)
925 tm_file=arm/conix-elf.h
926 tmake_file=arm/t-arm-elf
927 ;;
928 arm*-*-oabi)
929 tm_file=arm/unknown-elf-oabi.h
930 tmake_file=arm/t-arm-elf
931 ;;
932 arm-*-pe*)
933 tm_file=arm/pe.h
934 tmake_file=arm/t-pe
935 extra_objs="pe.o"
936 ;;
937 avr-*-*)
938 ;;
939 c1-convex-*) # Convex C1
940 target_cpu_default=1
941 use_collect2=yes
942 ;;
943 c2-convex-*) # Convex C2
944 target_cpu_default=2
945 use_collect2=yes
946 ;;
947 c32-convex-*)
948 target_cpu_default=4
949 use_collect2=yes
950 ;;
951 c34-convex-*)
952 target_cpu_default=8
953 use_collect2=yes
954 ;;
955 c38-convex-*)
956 target_cpu_default=16
957 use_collect2=yes
958 ;;
959 c4x-*)
960 cpu_type=c4x
961 tmake_file=c4x/t-c4x
962 ;;
963 clipper-intergraph-clix*)
964 tm_file="${tm_file} svr3.h clipper/clix.h"
965 xm_file=clipper/xm-clix.h
966 xmake_file=clipper/x-clix
967 extra_headers=va-clipper.h
968 extra_parts="crtbegin.o crtend.o"
969 install_headers_dir=install-headers-cpio
970 ;;
971 d30v-*)
972 float_format=i64
973 ;;
974 dsp16xx-*)
975 ;;
976 elxsi-elxsi-*)
977 use_collect2=yes
978 ;;
979 fr30-*-elf)
980 tm_file="fr30/fr30.h"
981 tmake_file=fr30/t-fr30
982 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
983 ;;
984 # This hasn't been upgraded to GCC 2.
985 # fx80-alliant-*) # Alliant FX/80
986 # ;;
987 h8300-*-*)
988 float_format=i32
989 ;;
990 hppa*-*-linux*)
991 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
992 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
993 tmake_file="t-linux pa/t-linux"
994 extra_parts="crtbegin.o crtend.o"
995 xmake_file=none
996 gas=yes gnu_ld=yes
997 if test x$enable_threads = xyes; then
998 thread_file='posix'
999 fi
1000 ;;
1001 hppa*-*-openbsd*)
1002 target_cpu_default="MASK_PA_11"
1003 tmake_file=pa/t-openbsd
1004 ;;
1005 hppa1.1-*-pro*)
1006 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1007 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1008 xm_file=pa/xm-papro.h
1009 tmake_file=pa/t-pro
1010 ;;
1011 hppa1.1-*-osf*)
1012 target_cpu_default="MASK_PA_11"
1013 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1014 use_collect2=yes
1015 ;;
1016 hppa1.1-*-rtems*)
1017 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1018 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1019 xm_file=pa/xm-papro.h
1020 tmake_file=pa/t-pro
1021 ;;
1022 hppa1.0-*-osf*)
1023 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1024 use_collect2=yes
1025 ;;
1026 hppa1.1-*-bsd*)
1027 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1028 target_cpu_default="MASK_PA_11"
1029 use_collect2=yes
1030 ;;
1031 hppa1.0-*-bsd*)
1032 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1033 use_collect2=yes
1034 ;;
1035 hppa1.0-*-hpux7*)
1036 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1037 xm_file=pa/xm-pahpux.h
1038 xmake_file=pa/x-pa-hpux
1039 if test x$gas = xyes
1040 then
1041 tm_file="${tm_file} pa/gas.h"
1042 fi
1043 install_headers_dir=install-headers-cpio
1044 use_collect2=yes
1045 ;;
1046 changequote(,)dnl
1047 hppa1.0-*-hpux8.0[0-2]*)
1048 changequote([,])dnl
1049 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1050 xm_file=pa/xm-pahpux.h
1051 xmake_file=pa/x-pa-hpux
1052 if test x$gas = xyes
1053 then
1054 tm_file="${tm_file} pa/pa-gas.h"
1055 else
1056 tm_file="pa/pa-oldas.h ${tm_file}"
1057 fi
1058 install_headers_dir=install-headers-cpio
1059 use_collect2=yes
1060 ;;
1061 changequote(,)dnl
1062 hppa1.1-*-hpux8.0[0-2]*)
1063 changequote([,])dnl
1064 target_cpu_default="MASK_PA_11"
1065 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1066 xm_file=pa/xm-pahpux.h
1067 xmake_file=pa/x-pa-hpux
1068 if test x$gas = xyes
1069 then
1070 tm_file="${tm_file} pa/pa-gas.h"
1071 else
1072 tm_file="pa/pa-oldas.h ${tm_file}"
1073 fi
1074 install_headers_dir=install-headers-cpio
1075 use_collect2=yes
1076 ;;
1077 hppa1.1-*-hpux8*)
1078 target_cpu_default="MASK_PA_11"
1079 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1080 xm_file=pa/xm-pahpux.h
1081 xmake_file=pa/x-pa-hpux
1082 if test x$gas = xyes
1083 then
1084 tm_file="${tm_file} pa/pa-gas.h"
1085 fi
1086 install_headers_dir=install-headers-cpio
1087 use_collect2=yes
1088 ;;
1089 hppa1.0-*-hpux8*)
1090 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1091 xm_file=pa/xm-pahpux.h
1092 xmake_file=pa/x-pa-hpux
1093 if test x$gas = xyes
1094 then
1095 tm_file="${tm_file} pa/pa-gas.h"
1096 fi
1097 install_headers_dir=install-headers-cpio
1098 use_collect2=yes
1099 ;;
1100 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1101 target_cpu_default="MASK_PA_11"
1102 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1103 float_format=i128
1104 xm_file=pa/xm-pahpux.h
1105 xmake_file=pa/x-pa-hpux
1106 tmake_file=pa/t-pa
1107 if test x$gas = xyes
1108 then
1109 tm_file="${tm_file} pa/pa-gas.h"
1110 fi
1111 if test x$enable_threads = x; then
1112 enable_threads=$have_pthread_h
1113 fi
1114 if test x$enable_threads = xyes; then
1115 thread_file='dce'
1116 tmake_file="${tmake_file} pa/t-dce-thr"
1117 fi
1118 install_headers_dir=install-headers-cpio
1119 use_collect2=yes
1120 ;;
1121 hppa1.0-*-hpux10*)
1122 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1123 float_format=i128
1124 xm_file=pa/xm-pahpux.h
1125 xmake_file=pa/x-pa-hpux
1126 tmake_file=pa/t-pa
1127 if test x$gas = xyes
1128 then
1129 tm_file="${tm_file} pa/pa-gas.h"
1130 fi
1131 if test x$enable_threads = x; then
1132 enable_threads=$have_pthread_h
1133 fi
1134 if test x$enable_threads = xyes; then
1135 thread_file='dce'
1136 tmake_file="${tmake_file} pa/t-dce-thr"
1137 fi
1138 install_headers_dir=install-headers-cpio
1139 use_collect2=yes
1140 ;;
1141 hppa*64*-*-hpux11*)
1142 target_cpu_default="MASK_PA_11"
1143 xm_file=pa/xm-pa64hpux.h
1144 xmake_file=pa/x-pa-hpux
1145 tmake_file=pa/t-pa
1146 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
1147 float_format=i128
1148 tmake_file=pa/t-pa64
1149 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1150
1151 if [[ x$gas = xyes ]]
1152 then
1153 tm_file="${tm_file} pa/pa-gas.h"
1154 fi
1155 # if [[ x$enable_threads = x ]]; then
1156 # enable_threads=$have_pthread_h
1157 # fi
1158 # if [[ x$enable_threads = xyes ]]; then
1159 # thread_file='dce'
1160 # tmake_file="${tmake_file} pa/t-dce-thr"
1161 # fi
1162 install_headers_dir=install-headers-cpio
1163 use_collect2=yes
1164 ;;
1165 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1166 target_cpu_default="MASK_PA_11"
1167 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1168 float_format=i128
1169 xm_file=pa/xm-pahpux.h
1170 xmake_file=pa/x-pa-hpux
1171 tmake_file=pa/t-pa
1172 if test x$gas = xyes
1173 then
1174 tm_file="${tm_file} pa/pa-gas.h"
1175 fi
1176 # if test x$enable_threads = x; then
1177 # enable_threads=$have_pthread_h
1178 # fi
1179 # if test x$enable_threads = xyes; then
1180 # thread_file='dce'
1181 # tmake_file="${tmake_file} pa/t-dce-thr"
1182 # fi
1183 install_headers_dir=install-headers-cpio
1184 use_collect2=yes
1185 ;;
1186 hppa1.0-*-hpux11*)
1187 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1188 float_format=i128
1189 xm_file=pa/xm-pahpux.h
1190 xmake_file=pa/x-pa-hpux
1191 if test x$gas = xyes
1192 then
1193 tm_file="${tm_file} pa/pa-gas.h"
1194 fi
1195 # if test x$enable_threads = x; then
1196 # enable_threads=$have_pthread_h
1197 # fi
1198 # if test x$enable_threads = xyes; then
1199 # thread_file='dce'
1200 # tmake_file="${tmake_file} pa/t-dce-thr"
1201 # fi
1202 install_headers_dir=install-headers-cpio
1203 use_collect2=yes
1204 ;;
1205 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1206 target_cpu_default="MASK_PA_11"
1207 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1208 xm_file=pa/xm-pahpux.h
1209 xmake_file=pa/x-pa-hpux
1210 if test x$gas = xyes
1211 then
1212 tm_file="${tm_file} pa/pa-gas.h"
1213 fi
1214 install_headers_dir=install-headers-cpio
1215 use_collect2=yes
1216 ;;
1217 hppa1.0-*-hpux*)
1218 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1219 xm_file=pa/xm-pahpux.h
1220 xmake_file=pa/x-pa-hpux
1221 if test x$gas = xyes
1222 then
1223 tm_file="${tm_file} pa/pa-gas.h"
1224 fi
1225 install_headers_dir=install-headers-cpio
1226 use_collect2=yes
1227 ;;
1228 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1229 target_cpu_default="MASK_PA_11"
1230 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1231 xm_file=pa/xm-pahpux.h
1232 xmake_file=pa/x-pa-hpux
1233 if test x$gas = xyes
1234 then
1235 tm_file="${tm_file} pa/pa-gas.h"
1236 fi
1237 install_headers_dir=install-headers-cpio
1238 use_collect2=yes
1239 ;;
1240 hppa1.0-*-hiux*)
1241 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1242 xm_file=pa/xm-pahpux.h
1243 xmake_file=pa/x-pa-hpux
1244 if test x$gas = xyes
1245 then
1246 tm_file="${tm_file} pa/pa-gas.h"
1247 fi
1248 install_headers_dir=install-headers-cpio
1249 use_collect2=yes
1250 ;;
1251 hppa*-*-lites*)
1252 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1253 target_cpu_default="MASK_PA_11"
1254 use_collect2=yes
1255 ;;
1256 hppa*-*-mpeix*)
1257 tm_file="${tm_file} pa/pa-mpeix.h"
1258 xm_file=pa/xm-pampeix.h
1259 xmake_file=pa/x-pa-mpeix
1260 echo "You must use gas. Assuming it is already installed."
1261 install_headers_dir=install-headers-tar
1262 use_collect2=yes
1263 ;;
1264 i370-*-opened*) # IBM 360/370/390 Architecture
1265 xm_file=i370/xm-oe.h
1266 tm_file=i370/oe.h
1267 xmake_file=i370/x-oe
1268 tmake_file=i370/t-oe
1269 ;;
1270 i370-*-mvs*)
1271 xm_file=i370/xm-mvs.h
1272 tm_file=i370/mvs.h
1273 tmake_file=i370/t-mvs
1274 ;;
1275 i370-*-linux*)
1276 xm_file="xm-linux.h i370/xm-linux.h"
1277 xmake_file=x-linux
1278 tm_file="i370/linux.h ${tm_file}"
1279 tmake_file="t-linux i370/t-linux"
1280 # broken_install=yes
1281 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1282 # extra_parts="crtbegin.o crtend.o"
1283 gnu_ld=yes
1284 gas=yes
1285 elf=yes
1286 if test x$enable_threads = xyes; then
1287 thread_file='posix'
1288 fi
1289 ;;
1290 changequote(,)dnl
1291 i[34567]86-*-elf*)
1292 changequote([,])dnl
1293 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1294 tm_file=i386/i386elf.h
1295 tmake_file=i386/t-i386elf
1296 xmake_file=x-svr4
1297 ;;
1298 changequote(,)dnl
1299 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1300 changequote([,])dnl
1301 if test x$gas = xyes
1302 then
1303 tm_file=i386/aix386.h
1304 extra_parts="crtbegin.o crtend.o"
1305 tmake_file=i386/t-crtstuff
1306 else
1307 tm_file=i386/aix386ng.h
1308 use_collect2=yes
1309 fi
1310 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1311 xm_defines=USG
1312 xmake_file=i386/x-aix
1313 ;;
1314 changequote(,)dnl
1315 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1316 changequote([,])dnl
1317 xm_file="xm-alloca.h ${xm_file}"
1318 xm_defines="USG POSIX SMALL_ARG_MAX"
1319 xmake_file=i386/x-ncr3000
1320 if test x$stabs = xyes -a x$gas = xyes
1321 then
1322 tm_file=i386/sysv4gdb.h
1323 else
1324 tm_file=i386/sysv4.h
1325 fi
1326 extra_parts="crtbegin.o crtend.o"
1327 tmake_file=i386/t-crtpic
1328 ;;
1329 changequote(,)dnl
1330 i[34567]86-next-*)
1331 changequote([,])dnl
1332 tm_file=i386/next.h
1333 xm_file=i386/xm-next.h
1334 tmake_file=i386/t-next
1335 xmake_file=i386/x-next
1336 extra_objs=nextstep.o
1337 extra_parts="crtbegin.o crtend.o"
1338 if test x$enable_threads = xyes; then
1339 thread_file='mach'
1340 fi
1341 ;;
1342 changequote(,)dnl
1343 i[34567]86-sequent-bsd*) # 80386 from Sequent
1344 changequote([,])dnl
1345 use_collect2=yes
1346 if test x$gas = xyes
1347 then
1348 tm_file=i386/seq-gas.h
1349 else
1350 tm_file=i386/sequent.h
1351 fi
1352 ;;
1353 changequote(,)dnl
1354 i[34567]86-sequent-ptx1*)
1355 changequote([,])dnl
1356 xm_defines="USG SVR3"
1357 xmake_file=i386/x-sysv3
1358 tm_file=i386/seq-sysv3.h
1359 tmake_file=i386/t-crtstuff
1360 extra_parts="crtbegin.o crtend.o"
1361 install_headers_dir=install-headers-cpio
1362 ;;
1363 changequote(,)dnl
1364 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1365 changequote([,])dnl
1366 xm_defines="USG SVR3"
1367 xmake_file=i386/x-sysv3
1368 tm_file=i386/seq2-sysv3.h
1369 tmake_file=i386/t-crtstuff
1370 extra_parts="crtbegin.o crtend.o"
1371 install_headers_dir=install-headers-cpio
1372 ;;
1373 changequote(,)dnl
1374 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1375 changequote([,])dnl
1376 xm_file="xm-alloca.h ${xm_file}"
1377 xm_defines="USG POSIX SMALL_ARG_MAX"
1378 xmake_file=x-svr4
1379 tm_file=i386/ptx4-i.h
1380 tmake_file=t-svr4
1381 extra_parts="crtbegin.o crtend.o"
1382 install_headers_dir=install-headers-cpio
1383 ;;
1384 i386-sun-sunos*) # Sun i386 roadrunner
1385 xm_defines=USG
1386 tm_file=i386/sun.h
1387 use_collect2=yes
1388 ;;
1389 changequote(,)dnl
1390 i[34567]86-wrs-vxworks*)
1391 changequote([,])dnl
1392 tm_file=i386/vxi386.h
1393 tmake_file=i386/t-i386bare
1394 thread_file='vxworks'
1395 ;;
1396 changequote(,)dnl
1397 i[34567]86-*-aout*)
1398 changequote([,])dnl
1399 tm_file=i386/i386-aout.h
1400 tmake_file=i386/t-i386bare
1401 ;;
1402 changequote(,)dnl
1403 i[34567]86-*-beospe*)
1404 changequote([,])dnl
1405 xm_file=i386/xm-beos.h
1406 xm_defines="USE_C_ALLOCA"
1407 tmake_file=i386/t-beos
1408 tm_file=i386/beos-pe.h
1409 xmake_file=i386/x-beos
1410 extra_objs=winnt.o
1411 ;;
1412 changequote(,)dnl
1413 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1414 changequote([,])dnl
1415 xm_file=i386/xm-beos.h
1416 tmake_file='i386/t-beos i386/t-crtpic'
1417 tm_file=i386/beos-elf.h
1418 xmake_file=i386/x-beos
1419 extra_objs=winnt.o
1420 extra_parts='crtbegin.o crtend.o'
1421 ;;
1422 changequote(,)dnl
1423 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1424 changequote([,])dnl
1425 tm_file=i386/bsd386.h
1426 # tmake_file=t-libc-ok
1427 ;;
1428 changequote(,)dnl
1429 i[34567]86-*-bsd*)
1430 changequote([,])dnl
1431 tm_file=i386/386bsd.h
1432 # tmake_file=t-libc-ok
1433 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1434 # use_collect2=yes
1435 ;;
1436 changequote(,)dnl
1437 i[34567]86-*-freebsdelf*)
1438 changequote([,])dnl
1439 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1440 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1441 tmake_file=t-freebsd
1442 gas=yes
1443 gnu_ld=yes
1444 stabs=yes
1445 case x${enable_threads} in
1446 xyes | xpthreads | xposix)
1447 thread_file='posix'
1448 tmake_file="${tmake_file} t-freebsd-thread"
1449 ;;
1450 esac
1451 ;;
1452 changequote(,)dnl
1453 i[34567]86-*-freebsd*)
1454 changequote([,])dnl
1455 tm_file="i386/freebsd.h i386/perform.h"
1456 tmake_file=t-freebsd
1457 ;;
1458 changequote(,)dnl
1459 i[34567]86-*-netbsd*)
1460 changequote([,])dnl
1461 tm_file=i386/netbsd.h
1462 tmake_file=t-netbsd
1463 use_collect2=yes
1464 ;;
1465 changequote(,)dnl
1466 i[34567]86-*-openbsd*)
1467 changequote([,])dnl
1468 # we need collect2 until our bug is fixed...
1469 use_collect2=yes
1470 ;;
1471 changequote(,)dnl
1472 i[34567]86-*-coff*)
1473 changequote([,])dnl
1474 tm_file=i386/i386-coff.h
1475 tmake_file=i386/t-i386bare
1476 ;;
1477 changequote(,)dnl
1478 i[34567]86-*-isc*) # 80386 running ISC system
1479 changequote([,])dnl
1480 xm_file="${xm_file} i386/xm-isc.h"
1481 xm_defines="USG SVR3"
1482 case $machine in
1483 changequote(,)dnl
1484 i[34567]86-*-isc[34]*)
1485 changequote([,])dnl
1486 xmake_file=i386/x-isc3
1487 ;;
1488 *)
1489 xmake_file=i386/x-isc
1490 ;;
1491 esac
1492 if test x$gas = xyes -a x$stabs = xyes
1493 then
1494 tm_file=i386/iscdbx.h
1495 tmake_file=i386/t-svr3dbx
1496 extra_parts="svr3.ifile svr3z.ifile"
1497 else
1498 tm_file=i386/isccoff.h
1499 tmake_file=i386/t-crtstuff
1500 extra_parts="crtbegin.o crtend.o"
1501 fi
1502 tmake_file="$tmake_file i386/t-i386bare"
1503 install_headers_dir=install-headers-cpio
1504 ;;
1505 changequote(,)dnl
1506 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1507 changequote([,])dnl # with a.out format using
1508 # pre BFD linkers
1509 xmake_file=x-linux-aout
1510 tmake_file="t-linux-aout i386/t-crtstuff"
1511 tm_file=i386/linux-oldld.h
1512 gnu_ld=yes
1513 float_format=i386
1514 ;;
1515 changequote(,)dnl
1516 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1517 changequote([,])dnl # with a.out format
1518 xmake_file=x-linux-aout
1519 tmake_file="t-linux-aout i386/t-crtstuff"
1520 tm_file=i386/linux-aout.h
1521 gnu_ld=yes
1522 float_format=i386
1523 ;;
1524 changequote(,)dnl
1525 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1526 changequote([,])dnl # with ELF format using the
1527 # GNU/Linux C library 5
1528 xmake_file=x-linux
1529 tm_file=i386/linux.h
1530 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1531 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1532 gnu_ld=yes
1533 float_format=i386
1534 if test x$enable_threads = xyes; then
1535 thread_file='single'
1536 fi
1537 ;;
1538 changequote(,)dnl
1539 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1540 changequote([,])dnl # with ELF format using glibc 2
1541 # aka GNU/Linux C library 6
1542 xmake_file=x-linux
1543 tm_file=i386/linux.h
1544 tmake_file="t-linux i386/t-crtstuff"
1545 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1546 gnu_ld=yes
1547 float_format=i386
1548 if test x$enable_threads = xyes; then
1549 thread_file='posix'
1550 fi
1551 ;;
1552 changequote(,)dnl
1553 i[34567]86-*-gnu*)
1554 float_format=i386
1555 changequote([,])dnl
1556 ;;
1557 changequote(,)dnl
1558 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1559 changequote([,])dnl
1560 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1561 exit 1
1562 ;;
1563 changequote(,)dnl
1564 i[34567]86-pc-msdosdjgpp*)
1565 changequote([,])dnl
1566 xm_file=i386/xm-djgpp.h
1567 tm_file=i386/djgpp.h
1568 tmake_file=i386/t-djgpp
1569 xmake_file=i386/x-djgpp
1570 gnu_ld=yes
1571 gas=yes
1572 exeext=.exe
1573 float_format=none
1574 case $host in *pc-msdosdjgpp*)
1575 target_alias=djgpp
1576 ;;
1577 esac
1578 ;;
1579 changequote(,)dnl
1580 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1581 changequote([,])dnl
1582 tm_file=i386/moss.h
1583 tmake_file=t-libc-ok
1584 gnu_ld=yes
1585 gas=yes
1586 ;;
1587 changequote(,)dnl
1588 i[34567]86-*-lynxos*)
1589 changequote([,])dnl
1590 if test x$gas = xyes
1591 then
1592 tm_file=i386/lynx.h
1593 else
1594 tm_file=i386/lynx-ng.h
1595 fi
1596 xm_file=i386/xm-lynx.h
1597 tmake_file=i386/t-i386bare
1598 xmake_file=x-lynx
1599 ;;
1600 changequote(,)dnl
1601 i[34567]86-*-mach*)
1602 changequote([,])dnl
1603 tm_file=i386/mach.h
1604 # tmake_file=t-libc-ok
1605 use_collect2=yes
1606 ;;
1607 changequote(,)dnl
1608 i[34567]86-*-osfrose*) # 386 using OSF/rose
1609 changequote([,])dnl
1610 if test x$elf = xyes
1611 then
1612 tm_file=i386/osfelf.h
1613 use_collect2=
1614 else
1615 tm_file=i386/osfrose.h
1616 use_collect2=yes
1617 fi
1618 xm_file="i386/xm-osf.h ${xm_file}"
1619 xmake_file=i386/x-osfrose
1620 tmake_file=i386/t-osf
1621 extra_objs=halfpic.o
1622 ;;
1623 changequote(,)dnl
1624 i[34567]86-go32-rtems*)
1625 changequote([,])dnl
1626 cpu_type=i386
1627 xm_file=i386/xm-go32.h
1628 tm_file=i386/go32-rtems.h
1629 tmake_file="i386/t-go32 t-rtems"
1630 ;;
1631 changequote(,)dnl
1632 i[34567]86-*-rtemscoff*)
1633 changequote([,])dnl
1634 cpu_type=i386
1635 tm_file=i386/rtems.h
1636 tmake_file="i386/t-i386bare t-rtems"
1637 ;;
1638 changequote(,)dnl
1639 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1640 changequote([,])dnl
1641 cpu_type=i386
1642 tm_file=i386/rtemself.h
1643 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1644 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1645 ;;
1646 changequote(,)dnl
1647 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1648 changequote([,])dnl
1649 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1650 xm_defines="USG SVR3"
1651 xmake_file=i386/x-sco5
1652 install_headers_dir=install-headers-cpio
1653 tm_file=i386/sco5.h
1654 if test x$gas = xyes
1655 then
1656 tm_file="i386/sco5gas.h ${tm_file}"
1657 tmake_file=i386/t-sco5gas
1658 else
1659 tmake_file=i386/t-sco5
1660 fi
1661 tmake_file="$tmake_file i386/t-i386bare"
1662 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1663 ;;
1664 changequote(,)dnl
1665 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1666 changequote([,])dnl
1667 xm_file="${xm_file} i386/xm-sco.h"
1668 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1669 xmake_file=i386/x-sco4
1670 install_headers_dir=install-headers-cpio
1671 if test x$stabs = xyes
1672 then
1673 tm_file=i386/sco4dbx.h
1674 tmake_file=i386/t-svr3dbx
1675 extra_parts="svr3.ifile svr3z.rfile"
1676 else
1677 tm_file=i386/sco4.h
1678 tmake_file=i386/t-crtstuff
1679 extra_parts="crtbegin.o crtend.o"
1680 fi
1681 tmake_file="$tmake_file i386/t-i386bare"
1682 # The default EAFS filesystem supports long file names.
1683 # Truncating the target makes $host != $target which
1684 # makes gcc think it is doing a cross-compile.
1685 # truncate_target=yes
1686 ;;
1687 changequote(,)dnl
1688 i[34567]86-*-sco*) # 80386 running SCO system
1689 changequote([,])dnl
1690 xm_file=i386/xm-sco.h
1691 xmake_file=i386/x-sco
1692 install_headers_dir=install-headers-cpio
1693 if test x$stabs = xyes
1694 then
1695 tm_file=i386/scodbx.h
1696 tmake_file=i386/t-svr3dbx
1697 extra_parts="svr3.ifile svr3z.rfile"
1698 else
1699 tm_file=i386/sco.h
1700 extra_parts="crtbegin.o crtend.o"
1701 tmake_file=i386/t-crtstuff
1702 fi
1703 tmake_file="$tmake_file i386/t-i386bare"
1704 truncate_target=yes
1705 ;;
1706 changequote(,)dnl
1707 i[34567]86-*-solaris2*)
1708 changequote([,])dnl
1709 xm_file="xm-alloca.h ${xm_file}"
1710 xm_defines="USG POSIX SMALL_ARG_MAX"
1711 tm_file=i386/sol2.h
1712 if test x$gas = xyes; then
1713 # Only needed if gas does not support -s
1714 tm_file="i386/sol2gas.h ${tm_file}"
1715 fi
1716 tmake_file="i386/t-i386bare i386/t-sol2"
1717 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1718 xmake_file=x-svr4
1719 if test x${enable_threads} = x; then
1720 enable_threads=$have_pthread_h
1721 if test x${enable_threads} = x; then
1722 enable_threads=$have_thread_h
1723 fi
1724 fi
1725 if test x${enable_threads} = xyes; then
1726 if test x${have_pthread_h} = xyes; then
1727 thread_file='posix'
1728 else
1729 thread_file='solaris'
1730 fi
1731 fi
1732 ;;
1733 changequote(,)dnl
1734 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1735 changequote([,])dnl
1736 xm_file="xm-alloca.h ${xm_file}"
1737 xm_defines="USG POSIX"
1738 tm_file=i386/sysv5.h
1739 if test x$stabs = xyes
1740 then
1741 tm_file="${tm_file} dbx.h"
1742 fi
1743 tmake_file="i386/t-i386bare i386/t-crtpic"
1744 xmake_file=x-svr4
1745 extra_parts="crtbegin.o crtend.o"
1746 if test x$enable_threads = xyes; then
1747 thread_file='posix'
1748 fi
1749 ;;
1750 changequote(,)dnl
1751 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1752 changequote([,])dnl
1753 xm_file="xm-alloca.h ${xm_file}"
1754 xm_defines="USG POSIX SMALL_ARG_MAX"
1755 tm_file=i386/sysv4.h
1756 if test x$stabs = xyes
1757 then
1758 tm_file="${tm_file} dbx.h"
1759 fi
1760 tmake_file="i386/t-i386bare i386/t-crtpic"
1761 xmake_file=x-svr4
1762 extra_parts="crtbegin.o crtend.o"
1763 ;;
1764 changequote(,)dnl
1765 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1766 changequote([,])dnl
1767 xm_file="xm-alloca.h ${xm_file}"
1768 xm_defines="USG POSIX"
1769 tm_file=i386/udk.h
1770 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1771 xmake_file=x-svr4
1772 extra_parts="crtbegin.o crtend.o"
1773 install_headers_dir=install-headers-cpio
1774 ;;
1775 changequote(,)dnl
1776 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1777 changequote([,])dnl
1778 cpu_type=i386
1779 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1780 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1781 if test x$stabs = xyes
1782 then
1783 tm_file=i386/osf1elfgdb.h
1784 else
1785 tm_file=i386/osf1elf.h
1786 fi
1787 tmake_file=i386/t-osf1elf
1788 xmake_file=i386/x-osf1elf
1789 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1790 ;;
1791 changequote(,)dnl
1792 i[34567]86-*-sysv*) # Intel 80386's running system V
1793 changequote([,])dnl
1794 xm_defines="USG SVR3"
1795 xmake_file=i386/x-sysv3
1796 if test x$gas = xyes
1797 then
1798 if test x$stabs = xyes
1799 then
1800 tm_file=i386/svr3dbx.h
1801 tmake_file=i386/t-svr3dbx
1802 extra_parts="svr3.ifile svr3z.rfile"
1803 else
1804 tm_file=i386/svr3gas.h
1805 extra_parts="crtbegin.o crtend.o"
1806 tmake_file=i386/t-crtstuff
1807 fi
1808 else
1809 tm_file=i386/sysv3.h
1810 extra_parts="crtbegin.o crtend.o"
1811 tmake_file=i386/t-crtstuff
1812 fi
1813 tmake_file="$tmake_file i386/t-crtpic"
1814 ;;
1815 i386-*-vsta) # Intel 80386's running VSTa kernel
1816 xm_file="${xm_file} i386/xm-vsta.h"
1817 tm_file=i386/vsta.h
1818 tmake_file=i386/t-vsta
1819 xmake_file=i386/x-vsta
1820 ;;
1821 changequote(,)dnl
1822 i[34567]86-*-win32)
1823 changequote([,])dnl
1824 xm_file="${xm_file} i386/xm-cygwin.h"
1825 tmake_file=i386/t-cygwin
1826 tm_file=i386/win32.h
1827 xmake_file=i386/x-cygwin
1828 extra_objs=winnt.o
1829 if test x$enable_threads = xyes; then
1830 thread_file='win32'
1831 fi
1832 exeext=.exe
1833 ;;
1834 changequote(,)dnl
1835 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1836 changequote([,])dnl
1837 xm_file="${xm_file} i386/xm-cygwin.h"
1838 tmake_file=i386/t-cygwin
1839 tm_file=i386/cygwin.h
1840 xmake_file=i386/x-cygwin
1841 extra_objs=winnt.o
1842 if test x$enable_threads = xyes; then
1843 thread_file='win32'
1844 fi
1845 exeext=.exe
1846 ;;
1847 changequote(,)dnl
1848 i[34567]86-*-mingw32*)
1849 changequote([,])dnl
1850 tm_file=i386/mingw32.h
1851 xm_file="${xm_file} i386/xm-mingw32.h"
1852 tmake_file="i386/t-cygwin i386/t-mingw32"
1853 extra_objs=winnt.o
1854 xmake_file=i386/x-cygwin
1855 if test x$enable_threads = xyes; then
1856 thread_file='win32'
1857 fi
1858 exeext=.exe
1859 case $machine in
1860 *mingw32msv*)
1861 ;;
1862 *minwg32crt* | *mingw32*)
1863 tm_file="${tm_file} i386/crtdll.h"
1864 ;;
1865 esac
1866 ;;
1867 changequote(,)dnl
1868 i[34567]86-*-uwin*)
1869 changequote([,])dnl
1870 tm_file=i386/uwin.h
1871 xm_file="${xm_file} i386/xm-uwin.h"
1872 xm_defines="USG NO_STAB_H"
1873 tmake_file="i386/t-cygwin i386/t-uwin"
1874 extra_objs=winnt.o
1875 xmake_file=i386/x-cygwin
1876 if test x$enable_threads = xyes; then
1877 thread_file='win32'
1878 fi
1879 exeext=.exe
1880 ;;
1881 changequote(,)dnl
1882 i[34567]86-*-interix*)
1883 changequote([,])dnl
1884 tm_file="i386/i386-interix.h interix.h"
1885 xm_file="i386/xm-i386-interix.h xm-interix.h"
1886 xm_defines="USG"
1887 tmake_file="i386/t-interix"
1888 extra_objs=interix.o
1889 xmake_file=x-interix
1890 if test x$enable_threads = xyes ; then
1891 thread_file='posix'
1892 fi
1893 if test x$stabs = xyes ; then
1894 tm_file="${tm_file} dbxcoff.h"
1895 fi
1896 ;;
1897 changequote(,)dnl
1898 i[34567]86-*-winnt3*)
1899 changequote([,])dnl
1900 tm_file=i386/win-nt.h
1901 out_file=i386/i386.c
1902 xm_file="xm-winnt.h ${xm_file}"
1903 xmake_file=winnt/x-winnt
1904 tmake_file=i386/t-winnt
1905 extra_host_objs="winnt.o oldnames.o"
1906 extra_gcc_objs="spawnv.o oldnames.o"
1907 if test x$gnu_ld != xyes
1908 then
1909 extra_programs=ld.exe
1910 fi
1911 if test x$enable_threads = xyes; then
1912 thread_file='win32'
1913 fi
1914 ;;
1915 changequote(,)dnl
1916 i[34567]86-dg-dgux*)
1917 changequote([,])dnl
1918 xm_file="xm-alloca.h ${xm_file}"
1919 xm_defines="USG POSIX"
1920 out_file=i386/dgux.c
1921 tm_file=i386/dgux.h
1922 tmake_file=i386/t-dgux
1923 xmake_file=i386/x-dgux
1924 install_headers_dir=install-headers-cpio
1925 ;;
1926 i860-alliant-*) # Alliant FX/2800
1927 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1928 xm_file="${xm_file}"
1929 xmake_file=i860/x-fx2800
1930 tmake_file=i860/t-fx2800
1931 extra_parts="crtbegin.o crtend.o"
1932 ;;
1933 i860-*-bsd*)
1934 tm_file="${tm_file} i860/bsd.h"
1935 if test x$gas = xyes
1936 then
1937 tm_file="${tm_file} i860/bsd-gas.h"
1938 fi
1939 use_collect2=yes
1940 ;;
1941 i860-*-mach*)
1942 tm_file="${tm_file} i860/mach.h"
1943 tmake_file=t-libc-ok
1944 ;;
1945 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1946 tm_file="${tm_file} svr3.h i860/paragon.h"
1947 xm_defines="USG SVR3"
1948 tmake_file=t-osf
1949 ;;
1950 i860-*-sysv3*)
1951 tm_file="${tm_file} svr3.h i860/sysv3.h"
1952 xm_defines="USG SVR3"
1953 xmake_file=i860/x-sysv3
1954 extra_parts="crtbegin.o crtend.o"
1955 ;;
1956 i860-*-sysv4*)
1957 tm_file="${tm_file} svr4.h i860/sysv4.h"
1958 xm_defines="USG SVR3"
1959 xmake_file=i860/x-sysv4
1960 tmake_file=t-svr4
1961 extra_parts="crtbegin.o crtend.o"
1962 ;;
1963 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1964 tm_file="${tm_file} i960/vx960.h"
1965 tmake_file=i960/t-vxworks960
1966 use_collect2=yes
1967 thread_file='vxworks'
1968 ;;
1969 i960-wrs-vxworks5* | i960-wrs-vxworks)
1970 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1971 tmake_file=i960/t-vxworks960
1972 use_collect2=yes
1973 thread_file='vxworks'
1974 ;;
1975 i960-wrs-vxworks*)
1976 tm_file="${tm_file} i960/vx960.h"
1977 tmake_file=i960/t-vxworks960
1978 use_collect2=yes
1979 thread_file='vxworks'
1980 ;;
1981 i960-*-coff*)
1982 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1983 tmake_file=i960/t-960bare
1984 use_collect2=yes
1985 ;;
1986 i960-*-rtems)
1987 tmake_file="i960/t-960bare t-rtems"
1988 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1989 use_collect2=yes
1990 ;;
1991 i960-*-*) # Default i960 environment.
1992 use_collect2=yes
1993 ;;
1994 ia64*-*-elf*)
1995 tm_file=ia64/elf.h
1996 tmake_file="ia64/t-ia64"
1997 target_cpu_default="0"
1998 if test x$gas = xyes
1999 then
2000 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2001 fi
2002 if test x$gnu_ld = xyes
2003 then
2004 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2005 fi
2006 ;;
2007 ia64*-*-linux*)
2008 tm_file=ia64/linux.h
2009 tmake_file="t-linux ia64/t-ia64"
2010 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2011 if test x$enable_threads = xyes; then
2012 thread_file='posix'
2013 fi
2014 ;;
2015 m32r-*-elf*)
2016 extra_parts="crtinit.o crtfini.o"
2017 ;;
2018 m68000-convergent-sysv*)
2019 tm_file=m68k/ctix.h
2020 xm_file="m68k/xm-3b1.h ${xm_file}"
2021 xm_defines=USG
2022 use_collect2=yes
2023 extra_headers=math-68881.h
2024 ;;
2025 m68000-hp-bsd*) # HP 9000/200 running BSD
2026 tm_file=m68k/hp2bsd.h
2027 xmake_file=m68k/x-hp2bsd
2028 use_collect2=yes
2029 extra_headers=math-68881.h
2030 ;;
2031 m68000-hp-hpux*) # HP 9000 series 300
2032 xm_file="xm-alloca.h ${xm_file}"
2033 xm_defines="USG"
2034 if test x$gas = xyes
2035 then
2036 xmake_file=m68k/x-hp320g
2037 tm_file=m68k/hp310g.h
2038 else
2039 xmake_file=m68k/x-hp320
2040 tm_file=m68k/hp310.h
2041 fi
2042 install_headers_dir=install-headers-cpio
2043 use_collect2=yes
2044 extra_headers=math-68881.h
2045 ;;
2046 m68000-sun-sunos3*)
2047 tm_file=m68k/sun2.h
2048 use_collect2=yes
2049 extra_headers=math-68881.h
2050 ;;
2051 m68000-sun-sunos4*)
2052 tm_file=m68k/sun2o4.h
2053 use_collect2=yes
2054 extra_headers=math-68881.h
2055 ;;
2056 m68000-att-sysv*)
2057 xm_file="m68k/xm-3b1.h ${xm_file}"
2058 xm_defines=USG
2059 if test x$gas = xyes
2060 then
2061 tm_file=m68k/3b1g.h
2062 else
2063 tm_file=m68k/3b1.h
2064 fi
2065 use_collect2=yes
2066 extra_headers=math-68881.h
2067 ;;
2068 m68k-apple-aux*) # Apple Macintosh running A/UX
2069 xm_defines="USG AUX"
2070 tmake_file=m68k/t-aux
2071 install_headers_dir=install-headers-cpio
2072 extra_headers=math-68881.h
2073 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2074 tm_file=
2075 if test "$gnu_ld" = yes
2076 then
2077 tm_file="${tm_file} m68k/auxgld.h"
2078 else
2079 tm_file="${tm_file} m68k/auxld.h"
2080 fi
2081 if test "$gas" = yes
2082 then
2083 tm_file="${tm_file} m68k/auxgas.h"
2084 else
2085 tm_file="${tm_file} m68k/auxas.h"
2086 fi
2087 tm_file="${tm_file} m68k/a-ux.h"
2088 float_format=m68k
2089 ;;
2090 m68k-apollo-*)
2091 tm_file=m68k/apollo68.h
2092 xmake_file=m68k/x-apollo68
2093 use_collect2=yes
2094 extra_headers=math-68881.h
2095 float_format=m68k
2096 ;;
2097 m68k-altos-sysv*) # Altos 3068
2098 if test x$gas = xyes
2099 then
2100 tm_file=m68k/altos3068.h
2101 xm_defines=USG
2102 else
2103 echo "The Altos is supported only with the GNU assembler" 1>&2
2104 exit 1
2105 fi
2106 extra_headers=math-68881.h
2107 ;;
2108 m68k-bull-sysv*) # Bull DPX/2
2109 if test x$gas = xyes
2110 then
2111 if test x$stabs = xyes
2112 then
2113 tm_file=m68k/dpx2cdbx.h
2114 else
2115 tm_file=m68k/dpx2g.h
2116 fi
2117 else
2118 tm_file=m68k/dpx2.h
2119 fi
2120 xm_file="xm-alloca.h ${xm_file}"
2121 xm_defines=USG
2122 xmake_file=m68k/x-dpx2
2123 use_collect2=yes
2124 extra_headers=math-68881.h
2125 ;;
2126 m68k-atari-sysv4*) # Atari variant of V.4.
2127 tm_file=m68k/atari.h
2128 xm_file="xm-alloca.h ${xm_file}"
2129 xm_defines="USG FULL_PROTOTYPES"
2130 tmake_file=t-svr4
2131 extra_parts="crtbegin.o crtend.o"
2132 extra_headers=math-68881.h
2133 float_format=m68k
2134 ;;
2135 m68k-motorola-sysv*)
2136 tm_file=m68k/mot3300.h
2137 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2138 if test x$gas = xyes
2139 then
2140 xmake_file=m68k/x-mot3300-gas
2141 if test x$gnu_ld = xyes
2142 then
2143 tmake_file=m68k/t-mot3300-gald
2144 else
2145 tmake_file=m68k/t-mot3300-gas
2146 use_collect2=yes
2147 fi
2148 else
2149 xmake_file=m68k/x-mot3300
2150 if test x$gnu_ld = xyes
2151 then
2152 tmake_file=m68k/t-mot3300-gld
2153 else
2154 tmake_file=m68k/t-mot3300
2155 use_collect2=yes
2156 fi
2157 fi
2158 gdb_needs_out_file_path=yes
2159 extra_parts="crt0.o mcrt0.o"
2160 extra_headers=math-68881.h
2161 float_format=m68k
2162 ;;
2163 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2164 tm_file=m68k/tower-as.h
2165 xm_defines="USG SVR3"
2166 xmake_file=m68k/x-tower
2167 extra_parts="crtbegin.o crtend.o"
2168 extra_headers=math-68881.h
2169 ;;
2170 m68k-plexus-sysv*)
2171 tm_file=m68k/plexus.h
2172 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2173 xm_defines=USG
2174 use_collect2=yes
2175 extra_headers=math-68881.h
2176 ;;
2177 m68k-tti-*)
2178 tm_file=m68k/pbb.h
2179 xm_file="xm-alloca.h ${xm_file}"
2180 xm_defines=USG
2181 extra_headers=math-68881.h
2182 ;;
2183 m68k-crds-unos*)
2184 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2185 xm_defines="USG unos"
2186 xmake_file=m68k/x-crds
2187 tm_file=m68k/crds.h
2188 use_collect2=yes
2189 extra_headers=math-68881.h
2190 ;;
2191 m68k-cbm-sysv4*) # Commodore variant of V.4.
2192 tm_file=m68k/amix.h
2193 xm_file="xm-alloca.h ${xm_file}"
2194 xm_defines="USG FULL_PROTOTYPES"
2195 xmake_file=m68k/x-amix
2196 tmake_file=t-svr4
2197 extra_parts="crtbegin.o crtend.o"
2198 extra_headers=math-68881.h
2199 float_format=m68k
2200 ;;
2201 m68k-ccur-rtu)
2202 tm_file=m68k/ccur-GAS.h
2203 xmake_file=m68k/x-ccur
2204 extra_headers=math-68881.h
2205 use_collect2=yes
2206 float_format=m68k
2207 ;;
2208 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2209 tm_file=m68k/hp3bsd44.h
2210 xmake_file=m68k/x-hp3bsd44
2211 use_collect2=yes
2212 extra_headers=math-68881.h
2213 float_format=m68k
2214 ;;
2215 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2216 tm_file=m68k/hp3bsd.h
2217 use_collect2=yes
2218 extra_headers=math-68881.h
2219 float_format=m68k
2220 ;;
2221 m68k-isi-bsd*)
2222 if test x$with_fp = xno
2223 then
2224 tm_file=m68k/isi-nfp.h
2225 else
2226 tm_file=m68k/isi.h
2227 float_format=m68k
2228 fi
2229 use_collect2=yes
2230 extra_headers=math-68881.h
2231 ;;
2232 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2233 xm_file="xm-alloca.h ${xm_file}"
2234 xm_defines="USG"
2235 if test x$gas = xyes
2236 then
2237 xmake_file=m68k/x-hp320g
2238 tm_file=m68k/hp320g.h
2239 else
2240 xmake_file=m68k/x-hp320
2241 tm_file=m68k/hpux7.h
2242 fi
2243 install_headers_dir=install-headers-cpio
2244 use_collect2=yes
2245 extra_headers=math-68881.h
2246 float_format=m68k
2247 ;;
2248 m68k-hp-hpux*) # HP 9000 series 300
2249 xm_file="xm-alloca.h ${xm_file}"
2250 xm_defines="USG"
2251 if test x$gas = xyes
2252 then
2253 xmake_file=m68k/x-hp320g
2254 tm_file=m68k/hp320g.h
2255 else
2256 xmake_file=m68k/x-hp320
2257 tm_file=m68k/hp320.h
2258 fi
2259 install_headers_dir=install-headers-cpio
2260 use_collect2=yes
2261 extra_headers=math-68881.h
2262 float_format=m68k
2263 ;;
2264 m68k-sun-mach*)
2265 tm_file=m68k/sun3mach.h
2266 use_collect2=yes
2267 extra_headers=math-68881.h
2268 float_format=m68k
2269 ;;
2270 m68k-sony-newsos3*)
2271 if test x$gas = xyes
2272 then
2273 tm_file=m68k/news3gas.h
2274 else
2275 tm_file=m68k/news3.h
2276 fi
2277 use_collect2=yes
2278 extra_headers=math-68881.h
2279 float_format=m68k
2280 ;;
2281 m68k-sony-bsd* | m68k-sony-newsos*)
2282 if test x$gas = xyes
2283 then
2284 tm_file=m68k/newsgas.h
2285 else
2286 tm_file=m68k/news.h
2287 fi
2288 use_collect2=yes
2289 extra_headers=math-68881.h
2290 float_format=m68k
2291 ;;
2292 m68k-next-nextstep2*)
2293 tm_file=m68k/next21.h
2294 xm_file="m68k/xm-next.h ${xm_file}"
2295 tmake_file=m68k/t-next
2296 xmake_file=m68k/x-next
2297 extra_objs=nextstep.o
2298 extra_headers=math-68881.h
2299 use_collect2=yes
2300 float_format=m68k
2301 ;;
2302 changequote(,)dnl
2303 m68k-next-nextstep[34]*)
2304 changequote([,])dnl
2305 tm_file=m68k/next.h
2306 xm_file="m68k/xm-next.h ${xm_file}"
2307 tmake_file=m68k/t-next
2308 xmake_file=m68k/x-next
2309 extra_objs=nextstep.o
2310 extra_parts="crtbegin.o crtend.o"
2311 extra_headers=math-68881.h
2312 float_format=m68k
2313 if test x$enable_threads = xyes; then
2314 thread_file='mach'
2315 fi
2316 ;;
2317 m68k-sun-sunos3*)
2318 if test x$with_fp = xno
2319 then
2320 tm_file=m68k/sun3n3.h
2321 else
2322 tm_file=m68k/sun3o3.h
2323 float_format=m68k
2324 fi
2325 use_collect2=yes
2326 extra_headers=math-68881.h
2327 ;;
2328 m68k-sun-sunos*) # For SunOS 4 (the default).
2329 if test x$with_fp = xno
2330 then
2331 tm_file=m68k/sun3n.h
2332 else
2333 tm_file=m68k/sun3.h
2334 float_format=m68k
2335 fi
2336 use_collect2=yes
2337 extra_headers=math-68881.h
2338 ;;
2339 m68k-wrs-vxworks*)
2340 tm_file=m68k/vxm68k.h
2341 tmake_file=m68k/t-vxworks68
2342 extra_headers=math-68881.h
2343 thread_file='vxworks'
2344 float_format=m68k
2345 ;;
2346 m68k-*-aout*)
2347 tmake_file=m68k/t-m68kbare
2348 tm_file="m68k/m68k-aout.h libgloss.h"
2349 extra_headers=math-68881.h
2350 float_format=m68k
2351 ;;
2352 m68k-*-coff*)
2353 tmake_file=m68k/t-m68kbare
2354 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2355 extra_headers=math-68881.h
2356 float_format=m68k
2357 ;;
2358 m68020-*-elf* | m68k-*-elf*)
2359 tm_file="m68k/m68020-elf.h"
2360 xm_file=m68k/xm-m68kv.h
2361 tmake_file=m68k/t-m68kelf
2362 header_files=math-68881.h
2363 ;;
2364 m68k-*-lynxos*)
2365 if test x$gas = xyes
2366 then
2367 tm_file=m68k/lynx.h
2368 else
2369 tm_file=m68k/lynx-ng.h
2370 fi
2371 xm_file=m68k/xm-lynx.h
2372 xmake_file=x-lynx
2373 tmake_file=m68k/t-lynx
2374 extra_headers=math-68881.h
2375 float_format=m68k
2376 ;;
2377 m68k*-*-netbsd*)
2378 tm_file=m68k/netbsd.h
2379 tmake_file=t-netbsd
2380 float_format=m68k
2381 use_collect2=yes
2382 ;;
2383 m68k*-*-openbsd*)
2384 float_format=m68k
2385 # we need collect2 until our bug is fixed...
2386 use_collect2=yes
2387 ;;
2388 m68k-*-sysv3*) # Motorola m68k's running system V.3
2389 xm_file="xm-alloca.h ${xm_file}"
2390 xm_defines=USG
2391 xmake_file=m68k/x-m68kv
2392 extra_parts="crtbegin.o crtend.o"
2393 extra_headers=math-68881.h
2394 float_format=m68k
2395 ;;
2396 m68k-*-sysv4*) # Motorola m68k's running system V.4
2397 tm_file=m68k/m68kv4.h
2398 xm_file="xm-alloca.h ${xm_file}"
2399 xm_defines=USG
2400 tmake_file=t-svr4
2401 extra_parts="crtbegin.o crtend.o"
2402 extra_headers=math-68881.h
2403 float_format=m68k
2404 ;;
2405 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2406 # with a.out format
2407 xmake_file=x-linux
2408 tm_file=m68k/linux-aout.h
2409 tmake_file="t-linux-aout m68k/t-linux-aout"
2410 extra_headers=math-68881.h
2411 float_format=m68k
2412 gnu_ld=yes
2413 ;;
2414 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2415 # with ELF format using the
2416 # GNU/Linux C library 5
2417 xmake_file=x-linux
2418 tm_file=m68k/linux.h
2419 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2420 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2421 extra_headers=math-68881.h
2422 float_format=m68k
2423 gnu_ld=yes
2424 ;;
2425 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2426 # with ELF format using glibc 2
2427 # aka the GNU/Linux C library 6.
2428 xmake_file=x-linux
2429 tm_file=m68k/linux.h
2430 tmake_file="t-linux m68k/t-linux"
2431 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2432 extra_headers=math-68881.h
2433 float_format=m68k
2434 gnu_ld=yes
2435 if test x$enable_threads = xyes; then
2436 thread_file='posix'
2437 fi
2438 ;;
2439 m68k-*-psos*)
2440 tmake_file=m68k/t-m68kbare
2441 tm_file=m68k/m68k-psos.h
2442 extra_headers=math-68881.h
2443 float_format=m68k
2444 ;;
2445 m68k-*-rtemscoff*)
2446 tmake_file="m68k/t-m68kbare t-rtems"
2447 tm_file=m68k/rtems.h
2448 extra_headers=math-68881.h
2449 float_format=m68k
2450 ;;
2451 m68k-*-rtemself*|m68k-*-rtems*)
2452 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2453 tm_file=m68k/rtemself.h
2454 extra_headers=math-68881.h
2455 float_format=m68k
2456 ;;
2457 m88k-dg-dgux*)
2458 case $machine in
2459 m88k-dg-dguxbcs*)
2460 tm_file=m88k/dguxbcs.h
2461 tmake_file=m88k/t-dguxbcs
2462 ;;
2463 *)
2464 tm_file=m88k/dgux.h
2465 tmake_file=m88k/t-dgux
2466 ;;
2467 esac
2468 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2469 xmake_file=m88k/x-dgux
2470 if test x$gas = xyes
2471 then
2472 tmake_file=m88k/t-dgux-gas
2473 fi
2474 ;;
2475 m88k-dolphin-sysv3*)
2476 tm_file=m88k/dolph.h
2477 extra_parts="crtbegin.o crtend.o"
2478 xm_file="m88k/xm-sysv3.h ${xm_file}"
2479 xmake_file=m88k/x-dolph
2480 if test x$gas = xyes
2481 then
2482 tmake_file=m88k/t-m88k-gas
2483 fi
2484 ;;
2485 m88k-tektronix-sysv3)
2486 tm_file=m88k/tekXD88.h
2487 extra_parts="crtbegin.o crtend.o"
2488 xm_file="m88k/xm-sysv3.h ${xm_file}"
2489 xmake_file=m88k/x-tekXD88
2490 if test x$gas = xyes
2491 then
2492 tmake_file=m88k/t-m88k-gas
2493 fi
2494 ;;
2495 m88k-*-aout*)
2496 tm_file=m88k/m88k-aout.h
2497 ;;
2498 m88k-*-coff*)
2499 tm_file=m88k/m88k-coff.h
2500 tmake_file=m88k/t-bug
2501 ;;
2502 m88k-*-luna*)
2503 tm_file=m88k/luna.h
2504 extra_parts="crtbegin.o crtend.o"
2505 if test x$gas = xyes
2506 then
2507 tmake_file=m88k/t-luna-gas
2508 else
2509 tmake_file=m88k/t-luna
2510 fi
2511 ;;
2512 m88k-*-openbsd*)
2513 tmake_file="${tmake_file} m88k/t-luna-gas"
2514 ;;
2515 m88k-*-sysv3*)
2516 tm_file=m88k/sysv3.h
2517 extra_parts="crtbegin.o crtend.o"
2518 xm_file="m88k/xm-sysv3.h ${xm_file}"
2519 xmake_file=m88k/x-sysv3
2520 if test x$gas = xyes
2521 then
2522 tmake_file=m88k/t-m88k-gas
2523 fi
2524 ;;
2525 m88k-*-sysv4*)
2526 tm_file=m88k/sysv4.h
2527 extra_parts="crtbegin.o crtend.o"
2528 xmake_file=m88k/x-sysv4
2529 tmake_file=m88k/t-sysv4
2530 ;;
2531 mcore-*-elf)
2532 tm_file=mcore/mcore-elf.h
2533 tmake_file=mcore/t-mcore
2534 ;;
2535 mcore-*-pe*)
2536 tm_file=mcore/mcore-pe.h
2537 tmake_file=mcore/t-mcore-pe
2538 ;;
2539 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2540 if test "x$gnu_ld" = xyes
2541 then
2542 tm_file="mips/iris6.h mips/iris6gld.h"
2543 else
2544 tm_file=mips/iris6.h
2545 fi
2546 tmake_file=mips/t-iris6
2547 xm_file=mips/xm-iris6.h
2548 xmake_file=mips/x-iris6
2549 # if test x$enable_threads = xyes; then
2550 # thread_file='irix'
2551 # fi
2552 ;;
2553 mips-wrs-vxworks)
2554 tm_file="mips/elf.h mips/vxworks.h"
2555 tmake_file=mips/t-ecoff
2556 gas=yes
2557 gnu_ld=yes
2558 extra_parts="crtbegin.o crtend.o"
2559 thread_file='vxworks'
2560 ;;
2561 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2562 tm_file="mips/iris6.h mips/cross64.h"
2563 xm_defines=USG
2564 xm_file="mips/xm-iris5.h"
2565 xmake_file=mips/x-iris
2566 tmake_file=mips/t-cross64
2567 # See comment in mips/iris[56].h files.
2568 use_collect2=yes
2569 # if test x$enable_threads = xyes; then
2570 # thread_file='irix'
2571 # fi
2572 ;;
2573 mips-sni-sysv4)
2574 if test x$gas = xyes
2575 then
2576 if test x$stabs = xyes
2577 then
2578 tm_file=mips/iris5gdb.h
2579 else
2580 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2581 fi
2582 else
2583 tm_file=mips/sni-svr4.h
2584 fi
2585 xm_defines=USG
2586 xmake_file=mips/x-sni-svr4
2587 tmake_file=mips/t-mips-gas
2588 if test x$gnu_ld != xyes
2589 then
2590 use_collect2=yes
2591 fi
2592 ;;
2593 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2594 if test x$gas = xyes
2595 then
2596 tm_file="mips/iris5.h mips/iris5gas.h"
2597 if test x$stabs = xyes
2598 then
2599 tm_file="${tm_file} dbx.h"
2600 fi
2601 else
2602 tm_file=mips/iris5.h
2603 fi
2604 xm_defines=USG
2605 xm_file="mips/xm-iris5.h"
2606 xmake_file=mips/x-iris
2607 # mips-tfile doesn't work yet
2608 tmake_file=mips/t-mips-gas
2609 # See comment in mips/iris5.h file.
2610 use_collect2=yes
2611 # if test x$enable_threads = xyes; then
2612 # thread_file='irix'
2613 # fi
2614 ;;
2615 mips-sgi-irix4loser*) # Mostly like a MIPS.
2616 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2617 if test x$stabs = xyes; then
2618 tm_file="${tm_file} dbx.h"
2619 fi
2620 xm_defines=USG
2621 xmake_file=mips/x-iris
2622 if test x$gas = xyes
2623 then
2624 tmake_file=mips/t-mips-gas
2625 else
2626 extra_passes="mips-tfile mips-tdump"
2627 fi
2628 if test x$gnu_ld != xyes
2629 then
2630 use_collect2=yes
2631 fi
2632 # if test x$enable_threads = xyes; then
2633 # thread_file='irix'
2634 # fi
2635 ;;
2636 mips-sgi-irix4*) # Mostly like a MIPS.
2637 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2638 if test x$stabs = xyes; then
2639 tm_file="${tm_file} dbx.h"
2640 fi
2641 xm_defines=USG
2642 xmake_file=mips/x-iris
2643 if test x$gas = xyes
2644 then
2645 tmake_file=mips/t-mips-gas
2646 else
2647 extra_passes="mips-tfile mips-tdump"
2648 fi
2649 if test x$gnu_ld != xyes
2650 then
2651 use_collect2=yes
2652 fi
2653 # if test x$enable_threads = xyes; then
2654 # thread_file='irix'
2655 # fi
2656 ;;
2657 mips-sgi-*) # Mostly like a MIPS.
2658 tm_file="mips/iris3.h ${tm_file}"
2659 if test x$stabs = xyes; then
2660 tm_file="${tm_file} dbx.h"
2661 fi
2662 xm_defines=USG
2663 xmake_file=mips/x-iris3
2664 if test x$gas = xyes
2665 then
2666 tmake_file=mips/t-mips-gas
2667 else
2668 extra_passes="mips-tfile mips-tdump"
2669 fi
2670 if test x$gnu_ld != xyes
2671 then
2672 use_collect2=yes
2673 fi
2674 ;;
2675 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2676 tm_file="mips/osfrose.h ${tm_file}"
2677 xmake_file=mips/x-osfrose
2678 tmake_file=mips/t-osfrose
2679 extra_objs=halfpic.o
2680 use_collect2=yes
2681 ;;
2682 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2683 tm_file=mips/dec-osf1.h
2684 if test x$stabs = xyes; then
2685 tm_file="${tm_file} dbx.h"
2686 fi
2687 xmake_file=mips/x-dec-osf1
2688 if test x$gas = xyes
2689 then
2690 tmake_file=mips/t-mips-gas
2691 else
2692 tmake_file=mips/t-ultrix
2693 extra_passes="mips-tfile mips-tdump"
2694 fi
2695 if test x$gnu_ld != xyes
2696 then
2697 use_collect2=yes
2698 fi
2699 ;;
2700 mips-dec-bsd*) # Decstation running 4.4 BSD
2701 tm_file=mips/dec-bsd.h
2702 if test x$gas = xyes
2703 then
2704 tmake_file=mips/t-mips-gas
2705 else
2706 tmake_file=mips/t-ultrix
2707 extra_passes="mips-tfile mips-tdump"
2708 fi
2709 if test x$gnu_ld != xyes
2710 then
2711 use_collect2=yes
2712 fi
2713 ;;
2714 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2715 tm_file=mips/netbsd.h
2716 # On NetBSD, the headers are already okay, except for math.h.
2717 tmake_file=t-netbsd
2718 ;;
2719 mips*-*-linux*) # Linux MIPS, either endian.
2720 xmake_file=x-linux
2721 case $machine in
2722 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2723 *) tm_file="mips/elf.h mips/linux.h" ;;
2724 esac
2725 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2726 gnu_ld=yes
2727 gas=yes
2728 if test x$enable_threads = xyes; then
2729 thread_file='posix'
2730 fi
2731 ;;
2732 mips*el-*-openbsd*) # mips little endian
2733 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2734 ;;
2735 mips*-*-openbsd*) # mips big endian
2736 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2737 tm_file="mips/openbsd-be.h ${tm_file}"
2738 ;;
2739 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2740 tm_file="mips/news4.h ${tm_file}"
2741 if test x$stabs = xyes; then
2742 tm_file="${tm_file} dbx.h"
2743 fi
2744 if test x$gas = xyes
2745 then
2746 tmake_file=mips/t-mips-gas
2747 else
2748 extra_passes="mips-tfile mips-tdump"
2749 fi
2750 if test x$gnu_ld != xyes
2751 then
2752 use_collect2=yes
2753 fi
2754 xmake_file=mips/x-sony
2755 ;;
2756 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2757 # That is based on svr4.
2758 # t-svr4 is not right because this system doesn't use ELF.
2759 tm_file="mips/news5.h ${tm_file}"
2760 if test x$stabs = xyes; then
2761 tm_file="${tm_file} dbx.h"
2762 fi
2763 xm_defines=USG
2764 if test x$gas = xyes
2765 then
2766 tmake_file=mips/t-mips-gas
2767 else
2768 extra_passes="mips-tfile mips-tdump"
2769 fi
2770 if test x$gnu_ld != xyes
2771 then
2772 use_collect2=yes
2773 fi
2774 ;;
2775 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2776 tm_file="mips/svr4-5.h mips/svr4-t.h"
2777 if test x$stabs = xyes; then
2778 tm_file="${tm_file} dbx.h"
2779 fi
2780 xm_defines=USG
2781 xmake_file=mips/x-sysv
2782 if test x$gas = xyes
2783 then
2784 tmake_file=mips/t-mips-gas
2785 extra_parts="crtbegin.o crtend.o"
2786 else
2787 tmake_file=mips/t-mips
2788 extra_passes="mips-tfile mips-tdump"
2789 fi
2790 if test x$gnu_ld != xyes
2791 then
2792 use_collect2=yes
2793 fi
2794 ;;
2795 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2796 tm_file="mips/ultrix.h ${tm_file}"
2797 if test x$stabs = xyes; then
2798 tm_file="${tm_file} dbx.h"
2799 fi
2800 xmake_file=mips/x-ultrix
2801 if test x$gas = xyes
2802 then
2803 tmake_file=mips/t-mips-gas
2804 else
2805 tmake_file=mips/t-ultrix
2806 extra_passes="mips-tfile mips-tdump"
2807 fi
2808 if test x$gnu_ld != xyes
2809 then
2810 use_collect2=yes
2811 fi
2812 ;;
2813 changequote(,)dnl
2814 mips-*-riscos[56789]bsd*)
2815 changequote([,])dnl
2816 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2817 if test x$stabs = xyes; then
2818 tm_file="${tm_file} dbx.h"
2819 fi
2820 if test x$gas = xyes
2821 then
2822 tmake_file=mips/t-bsd-gas
2823 else
2824 tmake_file=mips/t-bsd
2825 extra_passes="mips-tfile mips-tdump"
2826 fi
2827 if test x$gnu_ld != xyes
2828 then
2829 use_collect2=yes
2830 fi
2831 ;;
2832 changequote(,)dnl
2833 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2834 changequote([,])dnl
2835 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2836 if test x$stabs = xyes; then
2837 tm_file="${tm_file} dbx.h"
2838 fi
2839 if test x$gas = xyes
2840 then
2841 tmake_file=mips/t-bsd-gas
2842 else
2843 tmake_file=mips/t-bsd
2844 extra_passes="mips-tfile mips-tdump"
2845 fi
2846 if test x$gnu_ld != xyes
2847 then
2848 use_collect2=yes
2849 fi
2850 ;;
2851 changequote(,)dnl
2852 mips-*-riscos[56789]sysv4*)
2853 changequote([,])dnl
2854 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2855 if test x$stabs = xyes; then
2856 tm_file="${tm_file} dbx.h"
2857 fi
2858 xmake_file=mips/x-sysv
2859 if test x$gas = xyes
2860 then
2861 tmake_file=mips/t-svr4-gas
2862 else
2863 tmake_file=mips/t-svr4
2864 extra_passes="mips-tfile mips-tdump"
2865 fi
2866 if test x$gnu_ld != xyes
2867 then
2868 use_collect2=yes
2869 fi
2870 ;;
2871 changequote(,)dnl
2872 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2873 changequote([,])dnl
2874 tm_file="mips/svr4-4.h ${tm_file}"
2875 if test x$stabs = xyes; then
2876 tm_file="${tm_file} dbx.h"
2877 fi
2878 xm_defines=USG
2879 xmake_file=mips/x-sysv
2880 if test x$gas = xyes
2881 then
2882 tmake_file=mips/t-svr4-gas
2883 else
2884 tmake_file=mips/t-svr4
2885 extra_passes="mips-tfile mips-tdump"
2886 fi
2887 if test x$gnu_ld != xyes
2888 then
2889 use_collect2=yes
2890 fi
2891 ;;
2892 changequote(,)dnl
2893 mips-*-riscos[56789]sysv*)
2894 changequote([,])dnl
2895 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2896 if test x$stabs = xyes; then
2897 tm_file="${tm_file} dbx.h"
2898 fi
2899 xm_defines=USG
2900 xmake_file=mips/x-sysv
2901 if test x$gas = xyes
2902 then
2903 tmake_file=mips/t-svr3-gas
2904 else
2905 tmake_file=mips/t-svr3
2906 extra_passes="mips-tfile mips-tdump"
2907 fi
2908 if test x$gnu_ld != xyes
2909 then
2910 use_collect2=yes
2911 fi
2912 ;;
2913 mips-*-sysv* | mips-*-riscos*sysv*)
2914 tm_file="mips/svr3-4.h ${tm_file}"
2915 if test x$stabs = xyes; then
2916 tm_file="${tm_file} dbx.h"
2917 fi
2918 xm_defines=USG
2919 xmake_file=mips/x-sysv
2920 if test x$gas = xyes
2921 then
2922 tmake_file=mips/t-svr3-gas
2923 else
2924 tmake_file=mips/t-svr3
2925 extra_passes="mips-tfile mips-tdump"
2926 fi
2927 if test x$gnu_ld != xyes
2928 then
2929 use_collect2=yes
2930 fi
2931 ;;
2932 changequote(,)dnl
2933 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2934 changequote([,])dnl
2935 tm_file=mips/mips-5.h
2936 if test x$stabs = xyes; then
2937 tm_file="${tm_file} dbx.h"
2938 fi
2939 if test x$gas = xyes
2940 then
2941 tmake_file=mips/t-mips-gas
2942 else
2943 extra_passes="mips-tfile mips-tdump"
2944 fi
2945 if test x$gnu_ld != xyes
2946 then
2947 use_collect2=yes
2948 fi
2949 ;;
2950 mips-*-gnu*)
2951 ;;
2952 mipsel-*-ecoff*)
2953 tm_file=mips/ecoffl.h
2954 if test x$stabs = xyes; then
2955 tm_file="${tm_file} dbx.h"
2956 fi
2957 tmake_file=mips/t-ecoff
2958 ;;
2959 mips-*-ecoff*)
2960 tm_file="gofast.h mips/ecoff.h"
2961 if test x$stabs = xyes; then
2962 tm_file="${tm_file} dbx.h"
2963 fi
2964 tmake_file=mips/t-ecoff
2965 ;;
2966 mipsel-*-elf*)
2967 tm_file="mips/elfl.h"
2968 tmake_file=mips/t-elf
2969 ;;
2970 mips-*-elf*)
2971 tm_file="mips/elf.h"
2972 tmake_file=mips/t-elf
2973 ;;
2974 mips64el-*-elf*)
2975 tm_file="mips/elfl64.h"
2976 tmake_file=mips/t-elf
2977 ;;
2978 mips64orionel-*-elf*)
2979 tm_file="mips/elforion.h mips/elfl64.h"
2980 tmake_file=mips/t-elf
2981 ;;
2982 mips64-*-elf*)
2983 tm_file="mips/elf64.h"
2984 tmake_file=mips/t-elf
2985 ;;
2986 mips64orion-*-elf*)
2987 tm_file="mips/elforion.h mips/elf64.h"
2988 tmake_file=mips/t-elf
2989 ;;
2990 mips64orion-*-rtems*)
2991 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2992 tmake_file="mips/t-elf t-rtems"
2993 ;;
2994 mipstx39el-*-elf*)
2995 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2996 tmake_file=mips/t-r3900
2997 ;;
2998 mipstx39-*-elf*)
2999 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3000 tmake_file=mips/t-r3900
3001 ;;
3002 mips-*-*) # Default MIPS RISC-OS 4.0.
3003 if test x$stabs = xyes; then
3004 tm_file="${tm_file} dbx.h"
3005 fi
3006 if test x$gas = xyes
3007 then
3008 tmake_file=mips/t-mips-gas
3009 else
3010 extra_passes="mips-tfile mips-tdump"
3011 fi
3012 if test x$gnu_ld != xyes
3013 then
3014 use_collect2=yes
3015 fi
3016 ;;
3017 mn10200-*-*)
3018 float_format=i32
3019 cpu_type=mn10200
3020 tm_file="mn10200/mn10200.h"
3021 if test x$stabs = xyes
3022 then
3023 tm_file="${tm_file} dbx.h"
3024 fi
3025 use_collect2=no
3026 ;;
3027 mn10300-*-*)
3028 cpu_type=mn10300
3029 tm_file="mn10300/mn10300.h"
3030 if test x$stabs = xyes
3031 then
3032 tm_file="${tm_file} dbx.h"
3033 fi
3034 use_collect2=no
3035 ;;
3036 ns32k-encore-bsd*)
3037 tm_file=ns32k/encore.h
3038 use_collect2=yes
3039 ;;
3040 ns32k-sequent-bsd*)
3041 tm_file=ns32k/sequent.h
3042 use_collect2=yes
3043 ;;
3044 ns32k-tek6100-bsd*)
3045 tm_file=ns32k/tek6100.h
3046 use_collect2=yes
3047 ;;
3048 ns32k-tek6200-bsd*)
3049 tm_file=ns32k/tek6200.h
3050 use_collect2=yes
3051 ;;
3052 # This has not been updated to GCC 2.
3053 # ns32k-ns-genix*)
3054 # xm_defines=USG
3055 # xmake_file=ns32k/x-genix
3056 # tm_file=ns32k/genix.h
3057 # use_collect2=yes
3058 # ;;
3059 ns32k-merlin-*)
3060 tm_file=ns32k/merlin.h
3061 use_collect2=yes
3062 ;;
3063 ns32k-pc532-mach*)
3064 tm_file=ns32k/pc532-mach.h
3065 use_collect2=yes
3066 ;;
3067 ns32k-pc532-minix*)
3068 tm_file=ns32k/pc532-min.h
3069 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3070 xm_defines=USG
3071 use_collect2=yes
3072 ;;
3073 ns32k-*-netbsd*)
3074 tm_file=ns32k/netbsd.h
3075 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3076 # On NetBSD, the headers are already okay, except for math.h.
3077 tmake_file=t-netbsd
3078 use_collect2=yes
3079 ;;
3080 pdp11-*-bsd)
3081 tm_file="${tm_file} pdp11/2bsd.h"
3082 ;;
3083 pdp11-*-*)
3084 ;;
3085 avr-*-*)
3086 ;;
3087 ns32k-*-openbsd*)
3088 # Nothing special
3089 ;;
3090 # This has not been updated to GCC 2.
3091 # pyramid-*-*)
3092 # cpu_type=pyr
3093 # xmake_file=pyr/x-pyr
3094 # use_collect2=yes
3095 # ;;
3096
3097 pj*-linux*)
3098 tm_file="svr4.h pj/linux.h ${tm_file}"
3099 ;;
3100 pj-*)
3101 ;;
3102 pjl-*)
3103 tm_file="svr4.h pj/pjl.h ${tm_file}"
3104 ;;
3105
3106 romp-*-aos*)
3107 use_collect2=yes
3108 ;;
3109 romp-*-mach*)
3110 xmake_file=romp/x-mach
3111 use_collect2=yes
3112 ;;
3113 romp-*-openbsd*)
3114 # Nothing special
3115 ;;
3116 powerpc-*-openbsd*)
3117 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3118 ;;
3119 powerpc-*-beos*)
3120 cpu_type=rs6000
3121 tm_file=rs6000/beos.h
3122 xm_file=rs6000/xm-beos.h
3123 tmake_file=rs6000/t-beos
3124 xmake_file=rs6000/x-beos
3125 ;;
3126 powerpc-*-sysv*)
3127 tm_file=rs6000/sysv4.h
3128 xm_file="rs6000/xm-sysv4.h"
3129 xm_defines="USG POSIX"
3130 extra_headers=ppc-asm.h
3131 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3132 xmake_file=rs6000/x-sysv4
3133 ;;
3134 powerpc-*-eabiaix*)
3135 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3136 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3137 extra_headers=ppc-asm.h
3138 ;;
3139 powerpc-*-eabisim*)
3140 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3141 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3142 extra_headers=ppc-asm.h
3143 ;;
3144 powerpc-*-elf*)
3145 tm_file="rs6000/sysv4.h"
3146 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3147 extra_headers=ppc-asm.h
3148 ;;
3149 powerpc-*-eabi*)
3150 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3151 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3152 extra_headers=ppc-asm.h
3153 ;;
3154 powerpc-*-rtems*)
3155 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3156 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3157 extra_headers=ppc-asm.h
3158 ;;
3159 powerpc-*-linux-gnulibc1)
3160 tm_file="rs6000/sysv4.h rs6000/linux.h"
3161 xm_file=rs6000/xm-sysv4.h
3162 out_file=rs6000/rs6000.c
3163 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3164 xmake_file=x-linux
3165 extra_headers=ppc-asm.h
3166 if test x$enable_threads = xyes; then
3167 thread_file='posix'
3168 fi
3169 ;;
3170 powerpc-*-linux-gnu*)
3171 tm_file="rs6000/sysv4.h rs6000/linux.h"
3172 xm_file="rs6000/xm-sysv4.h"
3173 xm_defines="USG ${xm_defines}"
3174 out_file=rs6000/rs6000.c
3175 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3176 xmake_file=x-linux
3177 extra_headers=ppc-asm.h
3178 if test x$enable_threads = xyes; then
3179 thread_file='posix'
3180 fi
3181 ;;
3182 powerpc-wrs-vxworks*)
3183 cpu_type=rs6000
3184 xm_file="rs6000/xm-sysv4.h"
3185 xm_defines="USG POSIX"
3186 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3187 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3188 extra_headers=ppc-asm.h
3189 thread_file='vxworks'
3190 ;;
3191 powerpcle-wrs-vxworks*)
3192 cpu_type=rs6000
3193 xm_file="rs6000/xm-sysv4.h"
3194 xm_defines="USG POSIX"
3195 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3196 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3197 extra_headers=ppc-asm.h
3198 thread_file='vxworks'
3199 ;;
3200 powerpcle-*-sysv*)
3201 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3202 xm_file="rs6000/xm-sysv4.h"
3203 xm_defines="USG POSIX"
3204 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3205 xmake_file=rs6000/x-sysv4
3206 extra_headers=ppc-asm.h
3207 ;;
3208 powerpcle-*-elf*)
3209 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3210 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3211 extra_headers=ppc-asm.h
3212 ;;
3213 powerpcle-*-eabisim*)
3214 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3215 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3216 extra_headers=ppc-asm.h
3217 ;;
3218 powerpcle-*-eabi*)
3219 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3220 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3221 extra_headers=ppc-asm.h
3222 ;;
3223 powerpcle-*-solaris2*)
3224 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3225 xm_file="rs6000/xm-sysv4.h"
3226 xm_defines="USG POSIX"
3227 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3228 xmake_file=rs6000/x-sysv4
3229 extra_headers=ppc-asm.h
3230 ;;
3231 changequote(,)dnl
3232 rs6000-ibm-aix3.[01]*)
3233 changequote([,])dnl
3234 tm_file=rs6000/aix31.h
3235 xmake_file=rs6000/x-aix31
3236 float_format=none
3237 use_collect2=yes
3238 ;;
3239 changequote(,)dnl
3240 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3241 changequote([,])dnl
3242 tm_file=rs6000/aix3newas.h
3243 if test x$host != x$target
3244 then
3245 tmake_file=rs6000/t-xnewas
3246 else
3247 tmake_file=rs6000/t-newas
3248 fi
3249 float_format=none
3250 use_collect2=yes
3251 ;;
3252 changequote(,)dnl
3253 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3254 changequote([,])dnl
3255 tm_file=rs6000/aix41.h
3256 if test x$host != x$target
3257 then
3258 tmake_file=rs6000/t-xnewas
3259 else
3260 tmake_file=rs6000/t-newas
3261 fi
3262 if test "$gnu_ld" = yes
3263 then
3264 xmake_file=rs6000/x-aix41-gld
3265 else
3266 tmake_file="rs6000/t-newas rs6000/t-aix41"
3267 fi
3268 xmake_file=rs6000/x-aix41
3269 float_format=none
3270 use_collect2=yes
3271 ;;
3272 changequote(,)dnl
3273 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3274 changequote([,])dnl
3275 tm_file=rs6000/aix43.h
3276 tmake_file=rs6000/t-aix43
3277 xmake_file=rs6000/x-aix41
3278 float_format=none
3279 use_collect2=yes
3280 ;;
3281 changequote(,)dnl
3282 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3283 changequote([,])dnl
3284 tm_file=rs6000/aix43.h
3285 tmake_file=rs6000/t-aix43
3286 xmake_file=rs6000/x-aix41
3287 float_format=none
3288 use_collect2=yes
3289 ;;
3290 rs6000-ibm-aix*)
3291 float_format=none
3292 use_collect2=yes
3293 ;;
3294 rs6000-bull-bosx)
3295 float_format=none
3296 use_collect2=yes
3297 ;;
3298 rs6000-*-mach*)
3299 tm_file=rs6000/mach.h
3300 xm_file="${xm_file} rs6000/xm-mach.h"
3301 xmake_file=rs6000/x-mach
3302 use_collect2=yes
3303 ;;
3304 rs6000-*-lynxos*)
3305 tm_file=rs6000/lynx.h
3306 xm_file=rs6000/xm-lynx.h
3307 tmake_file=rs6000/t-rs6000
3308 xmake_file=rs6000/x-lynx
3309 use_collect2=yes
3310 ;;
3311 sh-*-elf*)
3312 tm_file=sh/elf.h
3313 float_format=sh
3314 ;;
3315 sh-*-rtemself*)
3316 tmake_file="sh/t-sh t-rtems"
3317 tm_file=sh/rtemself.h
3318 float_format=sh
3319 ;;
3320 sh-*-rtems*)
3321 tmake_file="sh/t-sh t-rtems"
3322 tm_file=sh/rtems.h
3323 float_format=sh
3324 ;;
3325 sh-*-*)
3326 float_format=sh
3327 ;;
3328 sparc-tti-*)
3329 tm_file=sparc/pbd.h
3330 xm_file="xm-alloca.h ${xm_file}"
3331 xm_defines=USG
3332 ;;
3333 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3334 tm_file=sparc/vxsparc.h
3335 tmake_file=sparc/t-vxsparc
3336 use_collect2=yes
3337 thread_file='vxworks'
3338 ;;
3339 sparc-*-aout*)
3340 tmake_file=sparc/t-sparcbare
3341 tm_file="sparc/aout.h libgloss.h"
3342 ;;
3343 sparc-*-netbsd*)
3344 tm_file=sparc/netbsd.h
3345 tmake_file=t-netbsd
3346 use_collect2=yes
3347 ;;
3348 sparc-*-openbsd*)
3349 # we need collect2 until our bug is fixed...
3350 use_collect2=yes
3351 ;;
3352 sparc-*-bsd*)
3353 tm_file=sparc/bsd.h
3354 ;;
3355 sparc-*-elf*)
3356 tm_file=sparc/elf.h
3357 tmake_file=sparc/t-elf
3358 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3359 #float_format=i128
3360 float_format=i64
3361 ;;
3362 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3363 xm_file="${xm_file} sparc/xm-linux.h"
3364 tm_file=sparc/linux-aout.h
3365 xmake_file=x-linux
3366 gnu_ld=yes
3367 ;;
3368 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3369 xm_file="${xm_file} sparc/xm-linux.h"
3370 xmake_file=x-linux
3371 tm_file=sparc/linux.h
3372 tmake_file="t-linux t-linux-gnulibc1"
3373 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3374 gnu_ld=yes
3375 float_format=sparc
3376 ;;
3377 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3378 xm_file="${xm_file} sparc/xm-linux.h"
3379 xmake_file=x-linux
3380 tm_file=sparc/linux.h
3381 tmake_file="t-linux"
3382 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3383 gnu_ld=yes
3384 if test x$enable_threads = xyes; then
3385 thread_file='posix'
3386 fi
3387 float_format=sparc
3388 ;;
3389 sparc-*-lynxos*)
3390 if test x$gas = xyes
3391 then
3392 tm_file=sparc/lynx.h
3393 else
3394 tm_file=sparc/lynx-ng.h
3395 fi
3396 xm_file=sparc/xm-lynx.h
3397 tmake_file=sparc/t-sunos41
3398 xmake_file=x-lynx
3399 ;;
3400 sparc-*-rtemsaout*)
3401 tmake_file="sparc/t-sparcbare t-rtems"
3402 tm_file=sparc/rtems.h
3403 ;;
3404 sparc-*-rtems*|sparc-*-rtemself*)
3405 tm_file="sparc/rtemself.h"
3406 tmake_file="sparc/t-elf t-rtems"
3407 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3408 #float_format=i128
3409 float_format=i64
3410 ;;
3411 sparcv9-*-solaris2*)
3412 if test x$gnu_ld = xyes
3413 then
3414 tm_file=sparc/sol2-64.h
3415 else
3416 tm_file=sparc/sol2-sld-64.h
3417 fi
3418 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3419 xm_defines="USG POSIX"
3420 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3421 xmake_file=sparc/x-sysv4
3422 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3423 float_format=none
3424 if test x${enable_threads} = x ; then
3425 enable_threads=$have_pthread_h
3426 if test x${enable_threads} = x ; then
3427 enable_threads=$have_thread_h
3428 fi
3429 fi
3430 if test x${enable_threads} = xyes ; then
3431 if test x${have_pthread_h} = xyes ; then
3432 thread_file='posix'
3433 else
3434 thread_file='solaris'
3435 fi
3436 fi
3437 ;;
3438 sparc-hal-solaris2*)
3439 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3440 xm_defines="USG POSIX"
3441 tm_file="sparc/sol2.h sparc/hal.h"
3442 tmake_file="sparc/t-halos sparc/t-sol2"
3443 xmake_file=sparc/x-sysv4
3444 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3445 case $machine in
3446 changequote(,)dnl
3447 *-*-solaris2.[0-4])
3448 changequote([,])dnl
3449 float_format=i128
3450 ;;
3451 *)
3452 float_format=none
3453 ;;
3454 esac
3455 thread_file='solaris'
3456 ;;
3457 sparc-*-solaris2*)
3458 if test x$gnu_ld = xyes
3459 then
3460 tm_file=sparc/sol2.h
3461 else
3462 tm_file=sparc/sol2-sld.h
3463 fi
3464 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3465 xm_defines="USG POSIX"
3466 tmake_file=sparc/t-sol2
3467 xmake_file=sparc/x-sysv4
3468 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3469 case $machine in
3470 changequote(,)dnl
3471 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3472 changequote([,])dnl
3473 *-*-solaris2*)
3474 if test x$gnu_ld = xyes
3475 then
3476 tm_file=sparc/sol2-64.h
3477 else
3478 tm_file=sparc/sol2-sld-64.h
3479 fi
3480 tmake_file="$tmake_file sparc/t-sol2-64"
3481 ;;
3482 esac
3483 case $machine in
3484 changequote(,)dnl
3485 *-*-solaris2.[0-4])
3486 changequote([,])dnl
3487 float_format=i128
3488 ;;
3489 *)
3490 float_format=none
3491 ;;
3492 esac
3493 if test x${enable_threads} = x; then
3494 enable_threads=$have_pthread_h
3495 if test x${enable_threads} = x; then
3496 enable_threads=$have_thread_h
3497 fi
3498 fi
3499 if test x${enable_threads} = xyes; then
3500 if test x${have_pthread_h} = xyes; then
3501 thread_file='posix'
3502 else
3503 thread_file='solaris'
3504 fi
3505 fi
3506 ;;
3507 sparc-*-sunos4.0*)
3508 tm_file=sparc/sunos4.h
3509 tmake_file=sparc/t-sunos40
3510 use_collect2=yes
3511 ;;
3512 sparc-*-sunos4*)
3513 tm_file=sparc/sunos4.h
3514 tmake_file=sparc/t-sunos41
3515 use_collect2=yes
3516 if test x$gas = xyes; then
3517 tm_file="${tm_file} sparc/sun4gas.h"
3518 fi
3519 ;;
3520 sparc-*-sunos3*)
3521 tm_file=sparc/sun4o3.h
3522 use_collect2=yes
3523 ;;
3524 sparc-*-sysv4*)
3525 tm_file=sparc/sysv4.h
3526 xm_file="sparc/xm-sysv4.h"
3527 xm_defines="USG POSIX"
3528 tmake_file=t-svr4
3529 xmake_file=sparc/x-sysv4
3530 extra_parts="crtbegin.o crtend.o"
3531 ;;
3532 sparc-*-vxsim*)
3533 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3534 xm_defines="USG POSIX"
3535 tm_file=sparc/vxsim.h
3536 tmake_file=sparc/t-vxsparc
3537 xmake_file=sparc/x-sysv4
3538 ;;
3539 sparclet-*-aout*)
3540 tm_file="sparc/splet.h libgloss.h"
3541 tmake_file=sparc/t-splet
3542 ;;
3543 sparclite-*-coff*)
3544 tm_file="sparc/litecoff.h libgloss.h"
3545 tmake_file=sparc/t-sparclite
3546 ;;
3547 sparclite-*-aout*)
3548 tm_file="sparc/lite.h aoutos.h libgloss.h"
3549 tmake_file=sparc/t-sparclite
3550 ;;
3551 sparclite-*-elf*)
3552 tm_file="sparc/liteelf.h"
3553 tmake_file=sparc/t-sparclite
3554 extra_parts="crtbegin.o crtend.o"
3555 ;;
3556 sparc86x-*-aout*)
3557 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3558 tmake_file=sparc/t-sp86x
3559 ;;
3560 sparc86x-*-elf*)
3561 tm_file="sparc/sp86x-elf.h"
3562 tmake_file=sparc/t-sp86x
3563 extra_parts="crtbegin.o crtend.o"
3564 ;;
3565 sparc64-*-aout*)
3566 tmake_file=sparc/t-sp64
3567 tm_file=sparc/sp64-aout.h
3568 ;;
3569 sparc64-*-elf*)
3570 tmake_file=sparc/t-sp64
3571 tm_file=sparc/sp64-elf.h
3572 extra_parts="crtbegin.o crtend.o"
3573 ;;
3574 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3575 tmake_file="t-linux sparc/t-linux64"
3576 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3577 tm_file=sparc/linux64.h
3578 xmake_file=x-linux
3579 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3580 gnu_ld=yes
3581 if test x$enable_threads = xyes; then
3582 thread_file='posix'
3583 fi
3584 float_format=sparc
3585 ;;
3586 # This hasn't been upgraded to GCC 2.
3587 # tahoe-harris-*) # Harris tahoe, using COFF.
3588 # tm_file=tahoe/harris.h
3589 # ;;
3590 # tahoe-*-bsd*) # tahoe running BSD
3591 # ;;
3592
3593 thumb*-*-*)
3594 AC_MSG_ERROR([
3595 *** The Thumb targets have been depreciated. The equivalent
3596 *** ARM based toolchain can now generated Thumb instructions
3597 *** when the -mthumb switch is given to the compiler.])
3598 ;;
3599 # This hasn't been upgraded to GCC 2.
3600 # tron-*-*)
3601 # cpu_type=gmicro
3602 # use_collect2=yes
3603 # ;;
3604 v850-*-rtems*)
3605 cpu_type=v850
3606 tm_file="v850/rtems.h"
3607 xm_file="v850/xm-v850.h"
3608 tmake_file="v850/t-v850 t-rtems"
3609 if test x$stabs = xyes
3610 then
3611 tm_file="${tm_file} dbx.h"
3612 fi
3613 use_collect2=no
3614 ;;
3615 v850-*-*)
3616 target_cpu_default="TARGET_CPU_generic"
3617 cpu_type=v850
3618 tm_file="v850/v850.h"
3619 xm_file="v850/xm-v850.h"
3620 tmake_file=v850/t-v850
3621 if test x$stabs = xyes
3622 then
3623 tm_file="${tm_file} dbx.h"
3624 fi
3625 use_collect2=no
3626 ;;
3627 vax-*-bsd*) # vaxen running BSD
3628 use_collect2=yes
3629 float_format=vax
3630 ;;
3631 vax-*-sysv*) # vaxen running system V
3632 tm_file="${tm_file} vax/vaxv.h"
3633 xm_defines=USG
3634 float_format=vax
3635 ;;
3636 vax-*-netbsd*)
3637 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3638 tmake_file=t-netbsd
3639 float_format=vax
3640 use_collect2=yes
3641 ;;
3642 vax-*-openbsd*)
3643 tmake_file="${tmake_file} vax/t-openbsd"
3644 ;;
3645 vax-*-ultrix*) # vaxen running ultrix
3646 tm_file="${tm_file} vax/ultrix.h"
3647 use_collect2=yes
3648 float_format=vax
3649 ;;
3650 vax-*-vms*) # vaxen running VMS
3651 xm_file=vax/xm-vms.h
3652 tm_file=vax/vms.h
3653 float_format=vax
3654 ;;
3655 vax-*-*) # vax default entry
3656 float_format=vax
3657 ;;
3658 we32k-att-sysv*)
3659 xm_file="${xm_file} xm-svr3"
3660 use_collect2=yes
3661 ;;
3662 *)
3663 echo "Configuration $machine not supported" 1>&2
3664 exit 1
3665 ;;
3666 esac
3667
3668 case $machine in
3669 *-*-linux-gnu*)
3670 ;; # Existing GNU/Linux systems do not use the GNU setup.
3671 *-*-gnu*)
3672 # On the GNU system, the setup is just about the same on
3673 # each different CPU. The specific machines that GNU
3674 # supports are matched above and just set $cpu_type.
3675 xm_file="xm-gnu.h ${xm_file}"
3676 tm_file=${cpu_type}/gnu.h
3677 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3678 # GNU always uses ELF.
3679 elf=yes
3680 # GNU tools are the only tools.
3681 gnu_ld=yes
3682 gas=yes
3683 xmake_file=x-linux # These details are the same as Linux.
3684 tmake_file=t-gnu # These are not.
3685 ;;
3686 *-*-sysv4*)
3687 xmake_try_sysv=x-sysv
3688 install_headers_dir=install-headers-cpio
3689 ;;
3690 *-*-sysv*)
3691 install_headers_dir=install-headers-cpio
3692 ;;
3693 esac
3694
3695 # Distinguish i[34567]86
3696 # Also, do not run mips-tfile on MIPS if using gas.
3697 # Process --with-cpu= for PowerPC/rs6000
3698 target_cpu_default2=
3699 case $machine in
3700 i486-*-*)
3701 target_cpu_default2=1
3702 ;;
3703 i586-*-*)
3704 case $target_alias in
3705 k6-*)
3706 target_cpu_default2=4
3707 ;;
3708 *)
3709 target_cpu_default2=2
3710 ;;
3711 esac
3712 ;;
3713 i686-*-* | i786-*-*)
3714 target_cpu_default2=3
3715 ;;
3716 alpha*-*-*)
3717 case $machine in
3718 changequote(,)dnl
3719 alphaev6[78]*)
3720 changequote([,])dnl
3721 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3722 ;;
3723 alphaev6*)
3724 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3725 ;;
3726 alphapca56*)
3727 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3728 ;;
3729 alphaev56*)
3730 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3731 ;;
3732 alphaev5*)
3733 target_cpu_default2="MASK_CPU_EV5"
3734 ;;
3735 esac
3736
3737 if test x$gas = xyes
3738 then
3739 if test "$target_cpu_default2" = ""
3740 then
3741 target_cpu_default2="MASK_GAS"
3742 else
3743 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3744 fi
3745 fi
3746 ;;
3747 arm*-*-*)
3748 case "x$with_cpu" in
3749 x)
3750 # The most generic
3751 target_cpu_default2="TARGET_CPU_generic"
3752 ;;
3753
3754 # Distinguish cores, and major variants
3755 # arm7m doesn't exist, but D & I don't affect code
3756 changequote(,)dnl
3757 xarm[23678] | xarm250 | xarm[67][01]0 \
3758 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3759 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3760 | xstrongarm | xstrongarm110 | xstrongarm1100)
3761 changequote([,])dnl
3762 target_cpu_default2="TARGET_CPU_$with_cpu"
3763 ;;
3764
3765 xyes | xno)
3766 echo "--with-cpu must be passed a value" 1>&2
3767 exit 1
3768 ;;
3769
3770 *)
3771 if test x$pass2done = xyes
3772 then
3773 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3774 exit 1
3775 fi
3776 ;;
3777 esac
3778 ;;
3779
3780 mips*-*-ecoff* | mips*-*-elf*)
3781 if test x$gas = xyes
3782 then
3783 if test x$gnu_ld = xyes
3784 then
3785 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3786 else
3787 target_cpu_default2="MASK_GAS"
3788 fi
3789 fi
3790 ;;
3791 mips*-*-*)
3792 if test x$gas = xyes
3793 then
3794 target_cpu_default2="MASK_GAS"
3795 fi
3796 ;;
3797 powerpc*-*-* | rs6000-*-*)
3798 case "x$with_cpu" in
3799 x)
3800 ;;
3801
3802 xcommon | xpower | xpower2 | xpowerpc | xrios \
3803 | xrios1 | xrios2 | xrsc | xrsc1 \
3804 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3805 | xec603e | x740 | x750 | x401 \
3806 | x403 | x505 | x801 | x821 | x823 | x860)
3807 target_cpu_default2="\"$with_cpu\""
3808 ;;
3809
3810 xyes | xno)
3811 echo "--with-cpu must be passed a value" 1>&2
3812 exit 1
3813 ;;
3814
3815 *)
3816 if test x$pass2done = xyes
3817 then
3818 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3819 exit 1
3820 fi
3821 ;;
3822 esac
3823 ;;
3824 sparc*-*-*)
3825 case ".$with_cpu" in
3826 .)
3827 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3828 ;;
3829 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3830 target_cpu_default2="TARGET_CPU_$with_cpu"
3831 ;;
3832 *)
3833 if test x$pass2done = xyes
3834 then
3835 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3836 exit 1
3837 fi
3838 ;;
3839 esac
3840 ;;
3841 esac
3842
3843 if test "$target_cpu_default2" != ""
3844 then
3845 if test "$target_cpu_default" != ""
3846 then
3847 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3848 else
3849 target_cpu_default=$target_cpu_default2
3850 fi
3851 fi
3852
3853 # No need for collect2 if we have the GNU linker.
3854 # Actually, there is now; GNU ld doesn't handle the EH info or
3855 # collecting for shared libraries.
3856 #case x$gnu_ld in
3857 #xyes)
3858 # use_collect2=
3859 # ;;
3860 #esac
3861
3862 # Save data on machine being used to compile GCC in build_xm_file.
3863 # Save data on host machine in vars host_xm_file and host_xmake_file.
3864 if test x$pass1done = x
3865 then
3866 if test x"$xm_file" = x
3867 then build_xm_file=$cpu_type/xm-$cpu_type.h
3868 else build_xm_file=$xm_file
3869 fi
3870 build_xm_defines=$xm_defines
3871 build_install_headers_dir=$install_headers_dir
3872 build_exeext=$exeext
3873 pass1done=yes
3874 else
3875 if test x$pass2done = x
3876 then
3877 if test x"$xm_file" = x
3878 then host_xm_file=$cpu_type/xm-$cpu_type.h
3879 else host_xm_file=$xm_file
3880 fi
3881 host_xm_defines=$xm_defines
3882 if test x"$xmake_file" = x
3883 then xmake_file=$cpu_type/x-$cpu_type
3884 fi
3885 host_xmake_file="$xmake_file"
3886 host_truncate_target=$truncate_target
3887 host_extra_gcc_objs=$extra_gcc_objs
3888 host_extra_objs=$extra_host_objs
3889 host_exeext=$exeext
3890 pass2done=yes
3891 fi
3892 fi
3893 done
3894
3895 extra_objs="${host_extra_objs} ${extra_objs}"
3896
3897 # Default the target-machine variables that were not explicitly set.
3898 if test x"$tm_file" = x
3899 then tm_file=$cpu_type/$cpu_type.h; fi
3900
3901 if test x$extra_headers = x
3902 then extra_headers=; fi
3903
3904 if test x"$xm_file" = x
3905 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3906
3907 if test x$md_file = x
3908 then md_file=$cpu_type/$cpu_type.md; fi
3909
3910 if test x$out_file = x
3911 then out_file=$cpu_type/$cpu_type.c; fi
3912
3913 if test x"$tmake_file" = x
3914 then tmake_file=$cpu_type/t-$cpu_type
3915 fi
3916
3917 if test x"$dwarf2" = xyes
3918 then tm_file="$tm_file tm-dwarf2.h"
3919 fi
3920
3921 if test x$float_format = x
3922 then float_format=i64
3923 fi
3924
3925 if test $float_format = none
3926 then float_h_file=Makefile.in
3927 else float_h_file=float-$float_format.h
3928 fi
3929
3930 # Handle cpp installation.
3931 if test x$enable_cpp != xno
3932 then
3933 tmake_file="$tmake_file t-install-cpp"
3934 fi
3935
3936 # Say what files are being used for the output code and MD file.
3937 echo "Using \`$srcdir/config/$out_file' to output insns."
3938 echo "Using \`$srcdir/config/$md_file' as machine description file."
3939
3940 count=a
3941 for f in $tm_file; do
3942 count=${count}x
3943 done
3944 if test $count = ax; then
3945 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3946 else
3947 echo "Using the following target machine macro files:"
3948 for f in $tm_file; do
3949 echo " $srcdir/config/$f"
3950 done
3951 fi
3952
3953 count=a
3954 for f in $host_xm_file; do
3955 count=${count}x
3956 done
3957 if test $count = ax; then
3958 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3959 else
3960 echo "Using the following host machine macro files:"
3961 for f in $host_xm_file; do
3962 echo " $srcdir/config/$f"
3963 done
3964 fi
3965
3966 if test "$host_xm_file" != "$build_xm_file"; then
3967 count=a
3968 for f in $build_xm_file; do
3969 count=${count}x
3970 done
3971 if test $count = ax; then
3972 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3973 else
3974 echo "Using the following build machine macro files:"
3975 for f in $build_xm_file; do
3976 echo " $srcdir/config/$f"
3977 done
3978 fi
3979 fi
3980
3981 if test x$thread_file = x; then
3982 if test x$target_thread_file != x; then
3983 thread_file=$target_thread_file
3984 else
3985 thread_file='single'
3986 fi
3987 fi
3988
3989 # Set up the header files.
3990 # $links is the list of header files to create.
3991 # $vars is the list of shell variables with file names to include.
3992 # auto-host.h is the file containing items generated by autoconf and is
3993 # the first file included by config.h.
3994 null_defines=
3995 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3996
3997 # If host=build, it is correct to have hconfig include auto-host.h
3998 # as well. If host!=build, we are in error and need to do more
3999 # work to find out the build config parameters.
4000 if test x$host = x$build
4001 then
4002 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4003 else
4004 # We create a subdir, then run autoconf in the subdir.
4005 # To prevent recursion we set host and build for the new
4006 # invocation of configure to the build for this invocation
4007 # of configure.
4008 tempdir=build.$$
4009 rm -rf $tempdir
4010 mkdir $tempdir
4011 cd $tempdir
4012 case ${srcdir} in
4013 /*) realsrcdir=${srcdir};;
4014 *) realsrcdir=../${srcdir};;
4015 esac
4016 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4017 --target=$target --host=$build --build=$build
4018
4019 # We just finished tests for the build machine, so rename
4020 # the file auto-build.h in the gcc directory.
4021 mv auto-host.h ../auto-build.h
4022 cd ..
4023 rm -rf $tempdir
4024 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4025 fi
4026
4027 xm_file="gansidecl.h ${xm_file}"
4028 tm_file="gansidecl.h ${tm_file}"
4029
4030 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4031 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4032 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4033
4034 rm -f config.bak
4035 if test -f config.status; then mv -f config.status config.bak; fi
4036
4037 # Make the links.
4038 while test -n "$vars"
4039 do
4040 set $vars; var=$1; shift; vars=$*
4041 set $links; link=$1; shift; links=$*
4042 set $defines; define=$1; shift; defines=$*
4043
4044 rm -f $link
4045 # Make sure the file is created, even if it is empty.
4046 echo >$link
4047
4048 # Define TARGET_CPU_DEFAULT if the system wants one.
4049 # This substitutes for lots of *.h files.
4050 if test "$target_cpu_default" != "" -a $link = tm.h
4051 then
4052 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4053 fi
4054
4055 for file in `eval echo '$'$var`; do
4056 case $file in
4057 auto-config.h)
4058 ;;
4059 *)
4060 echo '#ifdef IN_GCC' >>$link
4061 ;;
4062 esac
4063 echo "#include \"$file\"" >>$link
4064 case $file in
4065 auto-config.h)
4066 ;;
4067 *)
4068 echo '#endif' >>$link
4069 ;;
4070 esac
4071 done
4072
4073 for def in `eval echo '$'$define`; do
4074 echo "#ifndef $def" >>$link
4075 echo "#define $def" >>$link
4076 echo "#endif" >>$link
4077 done
4078 done
4079
4080 # Truncate the target if necessary
4081 if test x$host_truncate_target != x; then
4082 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4083 fi
4084
4085 # Get the version trigger filename from the toplevel
4086 if test "${with_gcc_version_trigger+set}" = set; then
4087 gcc_version_trigger=$with_gcc_version_trigger
4088 else
4089 gcc_version_trigger=${srcdir}/version.c
4090 fi
4091 changequote(,)dnl
4092 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4093 changequote([,])dnl
4094
4095 # Internationalization
4096 PACKAGE=gcc
4097 VERSION="$gcc_version"
4098 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4099 [Define to the name of the distribution.])
4100 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4101 [Define to the version of the distribution.])
4102 AC_SUBST(PACKAGE)
4103 AC_SUBST(VERSION)
4104
4105 ALL_LINGUAS="en_UK"
4106
4107 # NLS support is still experimental, so disable it by default for now.
4108 AC_ARG_ENABLE(nls,
4109 [ --enable-nls use Native Language Support (disabled by default)],
4110 , enable_nls=no)
4111
4112 AM_GNU_GETTEXT
4113 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4114
4115 # Windows32 Registry support for specifying GCC installation paths.
4116 AC_ARG_ENABLE(win32-registry,
4117 [ --disable-win32-registry
4118 Disable lookup of installation paths in the
4119 Registry on Windows hosts.
4120 --enable-win32-registry Enable registry lookup (default).
4121 --enable-win32-registry=KEY
4122 Use KEY instead of GCC version as the last portion
4123 of the registry key.],,)
4124
4125 AC_MSG_CHECKING(whether windows registry support is requested)
4126 if test x$enable_win32_registry != xno; then
4127 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4128 [Define to 1 if installation paths should be looked up in Windows32
4129 Registry. Ignored on non windows32 hosts.])
4130 AC_MSG_RESULT(yes)
4131 else
4132 AC_MSG_RESULT(no)
4133 fi
4134
4135 # Check if user specified a different registry key.
4136 case x${enable_win32_registry} in
4137 x | xyes)
4138 # default.
4139 gcc_cv_win32_registry_key="$VERSION"
4140 ;;
4141 xno)
4142 # no registry lookup.
4143 gcc_cv_win32_registry_key=''
4144 ;;
4145 *)
4146 # user-specified key.
4147 gcc_cv_win32_registry_key="$enable_win32_registry"
4148 ;;
4149 esac
4150
4151 if test x$enable_win32_registry != xno; then
4152 AC_MSG_CHECKING(registry key on windows hosts)
4153 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4154 [Define to be the last portion of registry key on windows hosts.])
4155 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4156 fi
4157
4158 # Get an absolute path to the GCC top-level source directory
4159 holddir=`pwd`
4160 cd $srcdir
4161 topdir=`pwd`
4162 cd $holddir
4163
4164 # Conditionalize the makefile for this host machine.
4165 # Make-host contains the concatenation of all host makefile fragments
4166 # [there can be more than one]. This file is built by configure.frag.
4167 host_overrides=Make-host
4168 dep_host_xmake_file=
4169 for f in .. ${host_xmake_file}
4170 do
4171 if test -f ${srcdir}/config/$f
4172 then
4173 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4174 fi
4175 done
4176
4177 # Conditionalize the makefile for this target machine.
4178 # Make-target contains the concatenation of all host makefile fragments
4179 # [there can be more than one]. This file is built by configure.frag.
4180 target_overrides=Make-target
4181 dep_tmake_file=
4182 for f in .. ${tmake_file}
4183 do
4184 if test -f ${srcdir}/config/$f
4185 then
4186 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4187 fi
4188 done
4189
4190 # If the host doesn't support symlinks, modify CC in
4191 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4192 # Otherwise, we can use "CC=$(CC)".
4193 rm -f symtest.tem
4194 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4195 then
4196 cc_set_by_configure="\$(CC)"
4197 quoted_cc_set_by_configure="\$(CC)"
4198 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4199 else
4200 rm -f symtest.tem
4201 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4202 then
4203 symbolic_link="cp -p"
4204 else
4205 symbolic_link="cp"
4206 fi
4207 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4208 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4209 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4210 fi
4211 rm -f symtest.tem
4212
4213 out_object_file=`basename $out_file .c`.o
4214
4215 tm_file_list=
4216 for f in $tm_file; do
4217 case $f in
4218 gansidecl.h )
4219 tm_file_list="${tm_file_list} $f" ;;
4220 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4221 esac
4222 done
4223
4224 host_xm_file_list=
4225 for f in $host_xm_file; do
4226 case $f in
4227 auto-host.h | gansidecl.h | hwint.h )
4228 host_xm_file_list="${host_xm_file_list} $f" ;;
4229 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4230 esac
4231 done
4232
4233 build_xm_file_list=
4234 for f in $build_xm_file; do
4235 case $f in
4236 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4237 build_xm_file_list="${build_xm_file_list} $f" ;;
4238 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4239 esac
4240 done
4241
4242 # Define macro CROSS_COMPILE in compilation
4243 # if this is a cross-compiler.
4244 # Also use all.cross instead of all.internal
4245 # and add cross-make to Makefile.
4246 cross_overrides="/dev/null"
4247 if test x$host != x$target
4248 then
4249 cross_defines="CROSS=-DCROSS_COMPILE"
4250 cross_overrides="${topdir}/cross-make"
4251 fi
4252
4253 # If this is a cross-compiler that does not
4254 # have its own set of headers then define
4255 # inhibit_libc
4256
4257 # If this is using newlib, then define inhibit_libc in
4258 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4259 # libgcc.a, but that's OK because newlib should have its own version of
4260 # assert.h.
4261 inhibit_libc=
4262 if [test x$host != x$target] && [test x$with_headers = x]; then
4263 inhibit_libc=-Dinhibit_libc
4264 else
4265 if [test x$with_newlib = xyes]; then
4266 inhibit_libc=-Dinhibit_libc
4267 fi
4268 fi
4269 AC_SUBST(inhibit_libc)
4270
4271 # When building gcc with a cross-compiler, we need to fix a few things.
4272 # This must come after cross-make as we want all.build to override
4273 # all.cross.
4274 build_overrides="/dev/null"
4275 if test x$build != x$host
4276 then
4277 build_overrides="${topdir}/build-make"
4278 fi
4279
4280 # Expand extra_headers to include complete path.
4281 # This substitutes for lots of t-* files.
4282 extra_headers_list=
4283 if test "x$extra_headers" = x
4284 then true
4285 else
4286 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4287 for file in $extra_headers;
4288 do
4289 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4290 done
4291 fi
4292
4293 if test x$use_collect2 = xno; then
4294 use_collect2=
4295 fi
4296
4297 # Add a definition of USE_COLLECT2 if system wants one.
4298 # Also tell toplev.c what to do.
4299 # This substitutes for lots of t-* files.
4300 if test x$use_collect2 = x
4301 then
4302 will_use_collect2=
4303 maybe_use_collect2=
4304 else
4305 will_use_collect2="collect2"
4306 maybe_use_collect2="-DUSE_COLLECT2"
4307 fi
4308
4309 # NEED TO CONVERT
4310 # Set MD_DEPS if the real md file is in md.pre-cpp.
4311 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4312 # for line oriented comments, so we must always use a GNU cpp. If
4313 # building gcc with a cross compiler, use the cross compiler just
4314 # built. Otherwise, we can use the cpp just built.
4315 md_file_sub=
4316 if test "x$md_cppflags" = x
4317 then
4318 md_file_sub=$srcdir/config/$md_file
4319 else
4320 md_file=md
4321 fi
4322
4323 # If we have gas in the build tree, make a link to it.
4324 if test -f ../gas/Makefile; then
4325 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4326 fi
4327
4328 # If we have nm in the build tree, make a link to it.
4329 if test -f ../binutils/Makefile; then
4330 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4331 fi
4332
4333 # If we have ld in the build tree, make a link to it.
4334 if test -f ../ld/Makefile; then
4335 # if test x$use_collect2 = x; then
4336 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4337 # else
4338 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4339 # fi
4340 fi
4341
4342 # Figure out what assembler alignment features are present.
4343 AC_MSG_CHECKING(assembler alignment features)
4344 gcc_cv_as=
4345 gcc_cv_as_alignment_features=
4346 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4347 if test -x "$DEFAULT_ASSEMBLER"; then
4348 gcc_cv_as="$DEFAULT_ASSEMBLER"
4349 elif test -x "$AS"; then
4350 gcc_cv_as="$AS"
4351 elif test -x as$host_exeext; then
4352 # Build using assembler in the current directory.
4353 gcc_cv_as=./as$host_exeext
4354 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4355 # Single tree build which includes gas.
4356 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4357 do
4358 changequote(,)dnl
4359 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4360 changequote([,])dnl
4361 if test x$gcc_cv_gas_version != x; then
4362 break
4363 fi
4364 done
4365 changequote(,)dnl
4366 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4367 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4368 changequote([,])dnl
4369 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4370 # Gas version 2.6 and later support for .balign and .p2align.
4371 # bytes to skip when using .p2align.
4372 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
4373 gcc_cv_as_alignment_features=".balign and .p2align"
4374 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4375 fi
4376 # Gas version 2.8 and later support specifying the maximum
4377 # bytes to skip when using .p2align.
4378 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
4379 gcc_cv_as_alignment_features=".p2align including maximum skip"
4380 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4381 fi
4382 fi
4383 elif test x$host = x$target; then
4384 # Native build.
4385 # Search the same directories that the installed compiler will
4386 # search. Else we may find the wrong assembler and lose. If we
4387 # do not find a suitable assembler binary, then try the user's
4388 # path.
4389 #
4390 # Also note we have to check MD_EXEC_PREFIX before checking the
4391 # user's path. Unfortunately, there is no good way to get at the
4392 # value of MD_EXEC_PREFIX here. So we do a brute force search
4393 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4394 # to be fixed as part of the make/configure rewrite too.
4395
4396 if test "x$exec_prefix" = xNONE; then
4397 if test "x$prefix" = xNONE; then
4398 test_prefix=/usr/local
4399 else
4400 test_prefix=$prefix
4401 fi
4402 else
4403 test_prefix=$exec_prefix
4404 fi
4405
4406 # If the loop below does not find an assembler, then use whatever
4407 # one we can find in the users's path.
4408 # user's path.
4409 as=as$host_exeext
4410
4411 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4412 $test_prefix/lib/gcc-lib/$target \
4413 /usr/lib/gcc/$target/$gcc_version \
4414 /usr/lib/gcc/$target \
4415 $test_prefix/$target/bin/$target/$gcc_version \
4416 $test_prefix/$target/bin \
4417 /usr/libexec \
4418 /usr/ccs/gcc \
4419 /usr/ccs/bin \
4420 /udk/usr/ccs/bin \
4421 /bsd43/usr/lib/cmplrs/cc \
4422 /usr/cross64/usr/bin \
4423 /usr/lib/cmplrs/cc \
4424 /sysv/usr/lib/cmplrs/cc \
4425 /svr4/usr/lib/cmplrs/cc \
4426 /usr/bin"
4427
4428 for dir in $test_dirs; do
4429 if test -f $dir/as$host_exeext; then
4430 gcc_cv_as=$dir/as$host_exeext
4431 break;
4432 fi
4433 done
4434 fi
4435 if test x$gcc_cv_as != x; then
4436 # Check if we have .balign and .p2align
4437 echo ".balign 4" > conftest.s
4438 echo ".p2align 2" >> conftest.s
4439 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4440 gcc_cv_as_alignment_features=".balign and .p2align"
4441 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4442 fi
4443 rm -f conftest.s conftest.o
4444 # Check if specifying the maximum bytes to skip when
4445 # using .p2align is supported.
4446 echo ".p2align 4,,7" > conftest.s
4447 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4448 gcc_cv_as_alignment_features=".p2align including maximum skip"
4449 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4450 fi
4451 rm -f conftest.s conftest.o
4452 fi
4453 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4454
4455 AC_MSG_CHECKING(assembler subsection support)
4456 gcc_cv_as_subsections=
4457 if test x$gcc_cv_as != x; then
4458 # Check if we have .subsection
4459 echo ".subsection 1" > conftest.s
4460 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4461 gcc_cv_as_subsections=".subsection"
4462 if test -x nm$host_exeext; then
4463 gcc_cv_nm=./nm$host_exeext
4464 elif test x$host = x$target; then
4465 # Native build.
4466 gcc_cv_nm=nm$host_exeext
4467 fi
4468 if test x$gcc_cv_nm != x; then
4469 cat > conftest.s <<EOF
4470 conftest_label1: .word 0
4471 .subsection -1
4472 conftest_label2: .word 0
4473 .previous
4474 EOF
4475 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4476 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4477 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4478 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4479 :
4480 else
4481 gcc_cv_as_subsections="working .subsection -1"
4482 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4483 [Define if your assembler supports .subsection and .subsection -1 starts
4484 emitting at the beginning of your section.])
4485 fi
4486 fi
4487 fi
4488 fi
4489 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4490 fi
4491 AC_MSG_RESULT($gcc_cv_as_subsections)
4492
4493 AC_MSG_CHECKING(assembler weak support)
4494 gcc_cv_as_weak=
4495 if test x$gcc_cv_as != x; then
4496 # Check if we have .weak
4497 echo " .weak foobar" > conftest.s
4498 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4499 AC_DEFINE(HAVE_GAS_WEAK, 1,
4500 [Define if your assembler supports .weak.])
4501 gcc_cv_as_weak="yes"
4502 fi
4503 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4504 fi
4505 AC_MSG_RESULT($gcc_cv_as_weak)
4506
4507 AC_MSG_CHECKING(assembler hidden support)
4508 gcc_cv_as_hidden=
4509 if test x$gcc_cv_as != x; then
4510 # Check if we have .hidden
4511 echo " .hidden foobar" > conftest.s
4512 echo "foobar:" >> conftest.s
4513 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4514 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4515 [Define if your assembler supports .hidden.])
4516 gcc_cv_as_hidden="yes"
4517 fi
4518 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4519 fi
4520 AC_MSG_RESULT($gcc_cv_as_hidden)
4521
4522 case "$target" in
4523 sparc*-*-*)
4524 AC_CACHE_CHECK([assembler .register pseudo-op support],
4525 gcc_cv_as_register_pseudo_op, [
4526 gcc_cv_as_register_pseudo_op=unknown
4527 if test x$gcc_cv_as != x; then
4528 # Check if we have .register
4529 echo ".register %g2, #scratch" > conftest.s
4530 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4531 gcc_cv_as_register_pseudo_op=yes
4532 else
4533 gcc_cv_as_register_pseudo_op=no
4534 fi
4535 rm -f conftest.s conftest.o
4536 fi
4537 ])
4538 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4539 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4540 [Define if your assembler supports .register.])
4541 fi
4542
4543 case "$tm_file" in
4544 *64*)
4545 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4546 gcc_cv_as_flags64, [
4547 if test -n "$gcc_cv_as"; then
4548 echo ".xword foo" > conftest.s
4549 gcc_cv_as_flags64=no
4550 for flag in "-xarch=v9" "-64 -Av9"; do
4551 if $gcc_cv_as $flag -o conftest.o conftest.s \
4552 > /dev/null 2>&1; then
4553 gcc_cv_as_flags64=$flag
4554 break
4555 fi
4556 done
4557 rm -f conftest.s conftest.o
4558 else
4559 if test "$gas" = yes; then
4560 gcc_cv_as_flags64="-64 -Av9"
4561 else
4562 gcc_cv_as_flags64="-xarch=v9"
4563 fi
4564 fi
4565 ])
4566 if test "x$gcc_cv_as_flags64" = xno; then
4567 changequote(, )
4568 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4569 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4570 changequote([, ])
4571 else
4572 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4573 [Define if the assembler supports 64bit sparc.])
4574 fi
4575 ;;
4576 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4577 ;;
4578 esac
4579
4580 if test "x$gcc_cv_as_flags64" != xno; then
4581 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4582 gcc_cv_as_offsetable_lo10, [
4583 gcc_cv_as_offsetable_lo10=unknown
4584 if test "x$gcc_cv_as" != x; then
4585 # Check if assembler has offsetable %lo()
4586 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4587 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4588 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4589 > /dev/null 2>&1 &&
4590 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4591 > /dev/null 2>&1; then
4592 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4593 gcc_cv_as_offsetable_lo10=no
4594 else
4595 gcc_cv_as_offsetable_lo10=yes
4596 fi
4597 else
4598 gcc_cv_as_offsetable_lo10=no
4599 fi
4600 rm -f conftest.s conftest.o conftest1.s conftest1.o
4601 fi
4602 ])
4603 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4604 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4605 [Define if your assembler supports offsetable %lo().])
4606 fi
4607 fi
4608 ;;
4609
4610 changequote(,)dnl
4611 i[34567]86-*-*)
4612 changequote([,])dnl
4613 AC_MSG_CHECKING(assembler instructions)
4614 gcc_cv_as_instructions=
4615 if test x$gcc_cv_as != x; then
4616 set "filds fists" "filds mem; fists mem"
4617 while test $# -gt 0
4618 do
4619 echo "$2" > conftest.s
4620 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4621 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4622 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4623 fi
4624 shift 2
4625 done
4626 rm -f conftest.s conftest.o
4627 fi
4628 AC_MSG_RESULT($gcc_cv_as_instructions)
4629 ;;
4630 esac
4631
4632 # Figure out what language subdirectories are present.
4633 # Look if the user specified --enable-languages="..."; if not, use
4634 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4635 # go away some day.
4636 if test x"${enable_languages+set}" != xset; then
4637 if test x"${LANGUAGES+set}" = xset; then
4638 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4639 else
4640 enable_languages=all
4641 fi
4642 else
4643 if test x"${enable_languages}" = x; then
4644 AC_MSG_ERROR([--enable-languages needs at least one argument])
4645 fi
4646 fi
4647 subdirs=
4648 for lang in ${srcdir}/*/config-lang.in ..
4649 do
4650 case $lang in
4651 ..) ;;
4652 # The odd quoting in the next line works around
4653 # an apparent bug in bash 1.12 on linux.
4654 changequote(,)dnl
4655 ${srcdir}/[*]/config-lang.in) ;;
4656 *)
4657 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4658 if test "x$lang_alias" = x
4659 then
4660 echo "$lang doesn't set \$language." 1>&2
4661 exit 1
4662 fi
4663 if test x"${enable_languages}" = xall; then
4664 add_this_lang=yes
4665 else
4666 case "${enable_languages}" in
4667 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4668 add_this_lang=yes
4669 ;;
4670 * )
4671 add_this_lang=no
4672 ;;
4673 esac
4674 fi
4675 if test x"${add_this_lang}" = xyes; then
4676 case $lang in
4677 ${srcdir}/ada/config-lang.in)
4678 if test x$gnat = xyes ; then
4679 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4680 fi
4681 ;;
4682 *)
4683 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4684 ;;
4685 esac
4686 fi
4687 ;;
4688 changequote([,])dnl
4689 esac
4690 done
4691
4692 # Make gthr-default.h if we have a thread file.
4693 gthread_flags=
4694 if test $thread_file != single; then
4695 rm -f gthr-default.h
4696 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4697 gthread_flags=-DHAVE_GTHR_DEFAULT
4698 fi
4699 AC_SUBST(gthread_flags)
4700
4701 # Find out what GC implementation we want, or may, use.
4702 AC_ARG_WITH(gc,
4703 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4704 with the compiler.],
4705 [case "$withval" in
4706 simple | page)
4707 GGC=ggc-$withval
4708 ;;
4709 *)
4710 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4711 ;;
4712 esac],
4713 [if test $ac_cv_func_mmap_anywhere = yes \
4714 || test $ac_cv_func_valloc = yes; then
4715 GGC=ggc-page
4716 else
4717 GGC=ggc-simple
4718 fi])
4719 AC_SUBST(GGC)
4720 echo "Using $GGC for garbage collection."
4721
4722 # Build a new-abi (c++) system
4723 AC_ARG_ENABLE(new-gxx-abi,
4724 [ --enable-new-gxx-abi
4725 select the new abi for g++. You must select an ABI
4726 at configuration time, so that the correct runtime
4727 support is built. You cannot mix ABIs.],
4728 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4729 [Define if you want to always select the new-abi for g++.])
4730 GXX_ABI_FLAG='-fnew-abi'
4731 echo "Building a new-abi g++ compiler."
4732 ])
4733 AC_SUBST(GXX_ABI_FLAG)
4734
4735 # Build a new-libstdc++ system (ie libstdc++-v3)
4736 AC_MSG_CHECKING([for libstdc++ to install])
4737 AC_ARG_ENABLE(libstdcxx-v3,
4738 [ --enable-libstdcxx-v3
4739 enable libstdc++-v3 for building and installation],
4740 [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
4741
4742 if test x$enable_libstdcxx_v3 = xyes; then
4743 AC_MSG_RESULT(v3)
4744 ac_esn=1
4745 else
4746 AC_MSG_RESULT(v2)
4747 ac_esn=0
4748 fi
4749 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4750 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4751
4752 # Make empty files to contain the specs and options for each language.
4753 # Then add #include lines to for a compiler that has specs and/or options.
4754
4755 lang_specs_files=
4756 lang_options_files=
4757 lang_tree_files=
4758 rm -f specs.h options.h gencheck.h
4759 touch specs.h options.h gencheck.h
4760 for subdir in . $subdirs
4761 do
4762 if test -f $srcdir/$subdir/lang-specs.h; then
4763 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4764 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4765 fi
4766 if test -f $srcdir/$subdir/lang-options.h; then
4767 echo "#include \"$subdir/lang-options.h\"" >>options.h
4768 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4769 fi
4770 if test -f $srcdir/$subdir/$subdir-tree.def; then
4771 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4772 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4773 fi
4774 done
4775
4776 # These (without "all_") are set in each config-lang.in.
4777 # `language' must be a single word so is spelled singularly.
4778 all_languages=
4779 all_boot_languages=
4780 all_compilers=
4781 all_stagestuff=
4782 all_diff_excludes=
4783 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4784 # List of language makefile fragments.
4785 all_lang_makefiles=
4786 all_headers=
4787 all_lib2funcs=
4788
4789 # Add the language fragments.
4790 # Languages are added via two mechanisms. Some information must be
4791 # recorded in makefile variables, these are defined in config-lang.in.
4792 # We accumulate them and plug them into the main Makefile.
4793 # The other mechanism is a set of hooks for each of the main targets
4794 # like `clean', `install', etc.
4795
4796 language_fragments="Make-lang"
4797 language_hooks="Make-hooks"
4798 oldstyle_subdirs=
4799
4800 for s in .. $subdirs
4801 do
4802 if test $s != ".."
4803 then
4804 language=
4805 boot_language=
4806 compilers=
4807 stagestuff=
4808 diff_excludes=
4809 headers=
4810 outputs=
4811 lib2funcs=
4812 . ${srcdir}/$s/config-lang.in
4813 if test "x$language" = x
4814 then
4815 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4816 exit 1
4817 fi
4818 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4819 all_languages="$all_languages $language"
4820 if test "x$boot_language" = xyes
4821 then
4822 all_boot_languages="$all_boot_languages $language"
4823 fi
4824 all_compilers="$all_compilers $compilers"
4825 all_stagestuff="$all_stagestuff $stagestuff"
4826 all_diff_excludes="$all_diff_excludes $diff_excludes"
4827 all_headers="$all_headers $headers"
4828 all_outputs="$all_outputs $outputs"
4829 if test x$outputs = x
4830 then
4831 oldstyle_subdirs="$oldstyle_subdirs $s"
4832 fi
4833 all_lib2funcs="$all_lib2funcs $lib2funcs"
4834 fi
4835 done
4836
4837 # Since we can't use `::' targets, we link each language in
4838 # with a set of hooks, reached indirectly via lang.${target}.
4839
4840 rm -f Make-hooks
4841 touch Make-hooks
4842 target_list="all.build all.cross start.encap rest.encap \
4843 info dvi \
4844 install-normal install-common install-info install-man \
4845 uninstall distdir \
4846 mostlyclean clean distclean extraclean maintainer-clean \
4847 stage1 stage2 stage3 stage4"
4848 for t in $target_list
4849 do
4850 x=
4851 for lang in .. $all_languages
4852 do
4853 if test $lang != ".."; then
4854 x="$x $lang.$t"
4855 fi
4856 done
4857 echo "lang.$t: $x" >> Make-hooks
4858 done
4859
4860 # If we're not building in srcdir, create .gdbinit.
4861
4862 if test ! -f Makefile.in; then
4863 echo "dir ." > .gdbinit
4864 echo "dir ${srcdir}" >> .gdbinit
4865 if test x$gdb_needs_out_file_path = xyes
4866 then
4867 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4868 fi
4869 if test "x$subdirs" != x; then
4870 for s in $subdirs
4871 do
4872 echo "dir ${srcdir}/$s" >> .gdbinit
4873 done
4874 fi
4875 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4876 fi
4877
4878 # Define variables host_canonical and build_canonical
4879 # because some Cygnus local changes in the Makefile depend on them.
4880 build_canonical=${build}
4881 host_canonical=${host}
4882 target_subdir=
4883 if test "${host}" != "${target}" ; then
4884 target_subdir=${target}/
4885 fi
4886 AC_SUBST(build_canonical)
4887 AC_SUBST(host_canonical)
4888 AC_SUBST(target_subdir)
4889
4890 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4891 # absolute path for gcc_tooldir based on inserting the number of up-directory
4892 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4893 # $(libsubdir)/@(unlibsubdir) based path.
4894 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4895 # make and thus we'd get different behavior depending on where we built the
4896 # sources.
4897 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4898 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4899 else
4900 changequote(<<, >>)dnl
4901 # An explanation of the sed strings:
4902 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4903 # -e 's|/$||' match a trailing forward slash and eliminates it
4904 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4905 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4906 #
4907 # (*) Note this pattern overwrites the first character of the string
4908 # with a forward slash if one is not already present. This is not a
4909 # problem because the exact names of the sub-directories concerned is
4910 # unimportant, just the number of them matters.
4911 #
4912 # The practical upshot of these patterns is like this:
4913 #
4914 # prefix exec_prefix result
4915 # ------ ----------- ------
4916 # /foo /foo/bar ../
4917 # /foo/ /foo/bar ../
4918 # /foo /foo/bar/ ../
4919 # /foo/ /foo/bar/ ../
4920 # /foo /foo/bar/ugg ../../
4921 #
4922 dollar='$$'
4923 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4924 changequote([, ])dnl
4925 fi
4926 AC_SUBST(gcc_tooldir)
4927 AC_SUBST(dollar)
4928
4929 # Nothing to do for FLOAT_H, float_format already handled.
4930 objdir=`pwd`
4931 AC_SUBST(objdir)
4932
4933 # Process the language and host/target makefile fragments.
4934 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4935
4936 # Substitute configuration variables
4937 AC_SUBST(subdirs)
4938 AC_SUBST(all_boot_languages)
4939 AC_SUBST(all_compilers)
4940 AC_SUBST(all_diff_excludes)
4941 AC_SUBST(all_headers)
4942 AC_SUBST(all_lang_makefiles)
4943 AC_SUBST(all_languages)
4944 AC_SUBST(all_lib2funcs)
4945 AC_SUBST(all_stagestuff)
4946 AC_SUBST(build_exeext)
4947 AC_SUBST(build_install_headers_dir)
4948 AC_SUBST(build_xm_file_list)
4949 AC_SUBST(cc_set_by_configure)
4950 AC_SUBST(quoted_cc_set_by_configure)
4951 AC_SUBST(cpp_install_dir)
4952 AC_SUBST(dep_host_xmake_file)
4953 AC_SUBST(dep_tmake_file)
4954 AC_SUBST(extra_c_flags)
4955 AC_SUBST(extra_c_objs)
4956 AC_SUBST(extra_cpp_objs)
4957 AC_SUBST(extra_cxx_objs)
4958 AC_SUBST(extra_headers_list)
4959 AC_SUBST(extra_objs)
4960 AC_SUBST(extra_parts)
4961 AC_SUBST(extra_passes)
4962 AC_SUBST(extra_programs)
4963 AC_SUBST(float_h_file)
4964 AC_SUBST(gcc_gxx_include_dir)
4965 AC_SUBST(gcc_version)
4966 AC_SUBST(gcc_version_trigger)
4967 AC_SUBST(host_exeext)
4968 AC_SUBST(host_extra_gcc_objs)
4969 AC_SUBST(host_xm_file_list)
4970 AC_SUBST(install)
4971 AC_SUBST(lang_options_files)
4972 AC_SUBST(lang_specs_files)
4973 AC_SUBST(lang_tree_files)
4974 AC_SUBST(local_prefix)
4975 AC_SUBST(maybe_use_collect2)
4976 AC_SUBST(md_file)
4977 AC_SUBST(objc_boehm_gc)
4978 AC_SUBST(out_file)
4979 AC_SUBST(out_object_file)
4980 AC_SUBST(stage_prefix_set_by_configure)
4981 AC_SUBST(symbolic_link)
4982 AC_SUBST(thread_file)
4983 AC_SUBST(tm_file_list)
4984 AC_SUBST(will_use_collect2)
4985
4986
4987 AC_SUBST_FILE(target_overrides)
4988 AC_SUBST_FILE(host_overrides)
4989 AC_SUBST(cross_defines)
4990 AC_SUBST_FILE(cross_overrides)
4991 AC_SUBST_FILE(build_overrides)
4992 AC_SUBST_FILE(language_fragments)
4993 AC_SUBST_FILE(language_hooks)
4994
4995 # Echo that links are built
4996 if test x$host = x$target
4997 then
4998 str1="native "
4999 else
5000 str1="cross-"
5001 str2=" from $host"
5002 fi
5003
5004 if test x$host != x$build
5005 then
5006 str3=" on a $build system"
5007 fi
5008
5009 if test "x$str2" != x || test "x$str3" != x
5010 then
5011 str4=
5012 fi
5013
5014 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5015
5016 if test "x$str2" != x || test "x$str3" != x
5017 then
5018 echo " ${str2}${str3}." 1>&2
5019 fi
5020
5021 # Truncate the target if necessary
5022 if test x$host_truncate_target != x; then
5023 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5024 fi
5025
5026 # Configure the subdirectories
5027 # AC_CONFIG_SUBDIRS($subdirs)
5028
5029 # Create the Makefile
5030 # and configure language subdirectories
5031 AC_OUTPUT($all_outputs,
5032 [
5033 . $srcdir/configure.lang
5034 case x$CONFIG_HEADERS in
5035 xauto-host.h:config.in)
5036 echo > cstamp-h ;;
5037 esac
5038 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5039 # bootstrapping and the installation procedure can still use
5040 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5041 # FLAGS_TO_PASS has been modified to solve the problem there.
5042 # This is virtually a duplicate of what happens in configure.lang; we do
5043 # an extra check to make sure this only happens if ln -s can be used.
5044 if test "$symbolic_link" = "ln -s"; then
5045 for d in .. ${subdirs} ; do
5046 if test $d != ..; then
5047 STARTDIR=`pwd`
5048 cd $d
5049 for t in stage1 stage2 stage3 stage4 include
5050 do
5051 rm -f $t
5052 $symbolic_link ../$t $t 2>/dev/null
5053 done
5054 cd $STARTDIR
5055 fi
5056 done
5057 else true ; fi
5058 # Avoid having to add intl to our include paths.
5059 if test -f intl/libintl.h; then
5060 echo creating libintl.h
5061 echo '#include "intl/libintl.h"' >libintl.h
5062 fi
5063 ],
5064 [
5065 host='${host}'
5066 build='${build}'
5067 target='${target}'
5068 target_alias='${target_alias}'
5069 srcdir='${srcdir}'
5070 subdirs='${subdirs}'
5071 oldstyle_subdirs='${oldstyle_subdirs}'
5072 symbolic_link='${symbolic_link}'
5073 program_transform_set='${program_transform_set}'
5074 program_transform_name='${program_transform_name}'
5075 dep_host_xmake_file='${dep_host_xmake_file}'
5076 host_xmake_file='${host_xmake_file}'
5077 dep_tmake_file='${dep_tmake_file}'
5078 tmake_file='${tmake_file}'
5079 thread_file='${thread_file}'
5080 gcc_version='${gcc_version}'
5081 gcc_version_trigger='${gcc_version_trigger}'
5082 local_prefix='${local_prefix}'
5083 build_install_headers_dir='${build_install_headers_dir}'
5084 build_exeext='${build_exeext}'
5085 host_exeext='${host_exeext}'
5086 out_file='${out_file}'
5087 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5088 SET_MAKE='${SET_MAKE}'
5089 target_list='${target_list}'
5090 target_overrides='${target_overrides}'
5091 host_overrides='${host_overrides}'
5092 cross_defines='${cross_defines}'
5093 cross_overrides='${cross_overrides}'
5094 build_overrides='${build_overrides}'
5095 cpp_install_dir='${cpp_install_dir}'
5096 ])
This page took 0.247894 seconds and 4 git commands to generate.