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