]>
Commit | Line | Data |
---|---|---|
46f18e7b RK |
1 | # configure.in for GNU CC |
2 | # Process this file with autoconf to generate a configuration script. | |
3 | ||
db0d1ed9 | 4 | # Copyright (C) 1997, 1998 Free Software Foundation, Inc. |
46f18e7b RK |
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_INIT(tree.c) | |
b7cb92ad | 25 | AC_CONFIG_HEADER(auto-host.h:config.in) |
cdcc6a01 | 26 | |
46f18e7b RK |
27 | remove=rm |
28 | hard_link=ln | |
29 | symbolic_link='ln -s' | |
30 | copy=cp | |
31 | ||
75a39864 JL |
32 | # Check for bogus environment variables. |
33 | # Test if LIBRARY_PATH contains the notation for the current directory | |
34 | # since this would lead to problems installing/building glibc. | |
35 | # LIBRARY_PATH contains the current directory if one of the following | |
36 | # is true: | |
37 | # - one of the terminals (":" and ";") is the first or last sign | |
38 | # - two terminals occur directly after each other | |
39 | # - the path contains an element with a dot in it | |
40 | AC_MSG_CHECKING(LIBRARY_PATH variable) | |
41 | changequote(,)dnl | |
42 | case ${LIBRARY_PATH} in | |
43 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
44 | library_path_setting="contains current directory" | |
45 | ;; | |
46 | *) | |
47 | library_path_setting="ok" | |
48 | ;; | |
49 | esac | |
50 | changequote([,])dnl | |
51 | AC_MSG_RESULT($library_path_setting) | |
52 | if test "$library_path_setting" != "ok"; then | |
53 | AC_MSG_ERROR([ | |
54 | *** LIBRARY_PATH shouldn't contain the current directory when | |
55 | *** building egcs. Please change the environment variable | |
56 | *** and run configure again.]) | |
57 | fi | |
58 | ||
59 | # Test if GCC_EXEC_PREFIX contains the notation for the current directory | |
60 | # since this would lead to problems installing/building glibc. | |
61 | # GCC_EXEC_PREFIX contains the current directory if one of the following | |
62 | # is true: | |
63 | # - one of the terminals (":" and ";") is the first or last sign | |
64 | # - two terminals occur directly after each other | |
65 | # - the path contains an element with a dot in it | |
66 | AC_MSG_CHECKING(GCC_EXEC_PREFIX variable) | |
67 | changequote(,)dnl | |
68 | case ${GCC_EXEC_PREFIX} in | |
69 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
70 | gcc_exec_prefix_setting="contains current directory" | |
71 | ;; | |
72 | *) | |
73 | gcc_exec_prefix_setting="ok" | |
74 | ;; | |
75 | esac | |
76 | changequote([,])dnl | |
77 | AC_MSG_RESULT($gcc_exec_prefix_setting) | |
78 | if test "$gcc_exec_prefix_setting" != "ok"; then | |
79 | AC_MSG_ERROR([ | |
80 | *** GCC_EXEC_PREFIX shouldn't contain the current directory when | |
81 | *** building egcs. Please change the environment variable | |
82 | *** and run configure again.]) | |
83 | fi | |
84 | ||
46f18e7b RK |
85 | # Check for additional parameters |
86 | ||
87 | # With GNU ld | |
88 | AC_ARG_WITH(gnu-ld, | |
89 | [ --with-gnu-ld arrange to work with GNU ld.], | |
df6faf79 JW |
90 | gnu_ld_flag="$with_gnu_ld", |
91 | gnu_ld_flag=no) | |
46f18e7b | 92 | |
ab339d62 AO |
93 | # With pre-defined ld |
94 | AC_ARG_WITH(ld, | |
95 | [ --with-ld arrange to use the specified ld (full pathname).], | |
96 | LD="$with_ld") | |
97 | if test x"${LD+set}" = x"set"; then | |
98 | if test ! -x "$LD"; then | |
99 | AC_MSG_WARN([cannot execute: $LD: check --with-ld or env. var. LD]) | |
100 | elif test "GNU" = `$LD -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then | |
101 | gnu_ld_flag=yes | |
102 | fi | |
103 | AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$LD") | |
104 | fi | |
105 | ||
46f18e7b RK |
106 | # With GNU as |
107 | AC_ARG_WITH(gnu-as, | |
4d8392b7 | 108 | [ --with-gnu-as arrange to work with GNU as.], |
df6faf79 JW |
109 | gas_flag="$with_gnu_as", |
110 | gas_flag=no) | |
46f18e7b | 111 | |
ab339d62 AO |
112 | AC_ARG_WITH(as, |
113 | [ --with-as arrange to use the specified as (full pathname).], | |
114 | AS="$with_as") | |
115 | if test x"${AS+set}" = x"set"; then | |
116 | if test ! -x "$AS"; then | |
117 | AC_MSG_WARN([cannot execute: $AS: check --with-as or env. var. AS]) | |
118 | elif test "GNU" = `$AS -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then | |
119 | gas_flag=yes | |
120 | fi | |
121 | AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$AS") | |
122 | fi | |
123 | ||
46f18e7b RK |
124 | # With stabs |
125 | AC_ARG_WITH(stabs, | |
126 | [ --with-stabs arrange to use stabs instead of host debug format.], | |
535b86ce | 127 | stabs="$with_stabs", |
46f18e7b RK |
128 | stabs=no) |
129 | ||
130 | # With ELF | |
131 | AC_ARG_WITH(elf, | |
132 | [ --with-elf arrange to use ELF instead of host debug format.], | |
535b86ce | 133 | elf="$with_elf", |
46f18e7b RK |
134 | elf=no) |
135 | ||
4d8392b7 | 136 | # Specify the local prefix |
4e88d51b | 137 | local_prefix= |
4d8392b7 RK |
138 | AC_ARG_WITH(local-prefix, |
139 | [ --with-local-prefix=DIR specifies directory to put local include.], | |
4e88d51b JM |
140 | [case "${withval}" in |
141 | yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;; | |
142 | no) ;; | |
143 | *) local_prefix=$with_local_prefix ;; | |
144 | esac]) | |
4d8392b7 RK |
145 | |
146 | # Default local prefix if it is empty | |
75bffa71 | 147 | if test x$local_prefix = x; then |
4d8392b7 RK |
148 | local_prefix=/usr/local |
149 | fi | |
150 | ||
4e88d51b | 151 | gxx_include_dir= |
9514f0d1 RK |
152 | # Specify the g++ header file directory |
153 | AC_ARG_WITH(gxx-include-dir, | |
154 | [ --with-gxx-include-dir=DIR | |
155 | specifies directory to put g++ header files.], | |
4e88d51b JM |
156 | [case "${withval}" in |
157 | yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;; | |
158 | no) ;; | |
159 | *) gxx_include_dir=$with_gxx_include_dir ;; | |
160 | esac]) | |
161 | ||
162 | if test x${gxx_include_dir} = x; then | |
163 | if test x${enable_version_specific_runtime_libs} = xyes; then | |
164 | gxx_include_dir='${libsubdir}/include/g++' | |
165 | else | |
a270b446 L |
166 | topsrcdir=${srcdir}/.. . ${srcdir}/../config.if |
167 | gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface} | |
4e88d51b JM |
168 | fi |
169 | fi | |
46f18e7b | 170 | |
a494747c MM |
171 | # Enable expensive internal checks |
172 | AC_ARG_ENABLE(checking, | |
173 | [ --enable-checking enable expensive run-time checks.], | |
4e88d51b JM |
174 | [case "${enableval}" in |
175 | yes) AC_DEFINE(ENABLE_CHECKING) ;; | |
176 | no) ;; | |
177 | *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;; | |
178 | esac]) | |
a494747c | 179 | |
f81a440f | 180 | # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler. |
e061d1ce | 181 | cpp_main=cccp |
f81a440f ZW |
182 | AC_ARG_ENABLE(cpplib, |
183 | [ --enable-cpplib use cpplib for the C preprocessor.], | |
184 | if test x$enable_cpplib != xno; then | |
185 | cpp_main=cppmain | |
186 | fi) | |
187 | ||
188 | # Link cpplib into the compiler proper, for C/C++/ObjC. | |
b4294351 | 189 | AC_ARG_ENABLE(c-cpplib, |
f81a440f ZW |
190 | [ --enable-c-cpplib link cpplib directly into C and C++ compilers |
191 | (implies --enable-cpplib).], | |
75bffa71 | 192 | if test x$enable_c_cpplib != xno; then |
b4294351 | 193 | extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o" |
c8724862 DB |
194 | extra_c_objs="${extra_c_objs} prefix.o" |
195 | extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o" | |
b4294351 | 196 | extra_c_flags=-DUSE_CPPLIB=1 |
e061d1ce | 197 | cpp_main=cppmain |
b4294351 | 198 | fi) |
f81a440f | 199 | |
56f48ce9 DB |
200 | # Enable Multibyte Characters for C/C++ |
201 | AC_ARG_ENABLE(c-mbchar, | |
f81a440f | 202 | [ --enable-c-mbchar enable multibyte characters for C and C++.], |
75bffa71 | 203 | if test x$enable_c_mbchar != xno; then |
56f48ce9 DB |
204 | extra_c_flags=-DMULTIBYTE_CHARS=1 |
205 | fi) | |
206 | ||
9101297d DL |
207 | # Enable Haifa scheduler. |
208 | AC_ARG_ENABLE(haifa, | |
f81a440f ZW |
209 | [ --enable-haifa use the experimental scheduler. |
210 | --disable-haifa don't use the experimental scheduler for the | |
9101297d | 211 | targets which normally enable it.]) |
4b104d6e JL |
212 | # Fast fixincludes |
213 | # | |
214 | # This is a work in progress... | |
34a4c466 | 215 | AC_ARG_WITH(fast-fixincludes, |
f81a440f | 216 | [ --with-fast-fixincludes use a faster fixinclude program (experimental)], |
4b104d6e JL |
217 | fast_fixinc="$with_fast_fixincludes", |
218 | fast_fixinc=no) | |
b4294351 | 219 | |
2ce3c6c6 JM |
220 | # Enable init_priority. |
221 | AC_ARG_ENABLE(init-priority, | |
f81a440f | 222 | [ --enable-init-priority use attributes to assign initialization order |
2ce3c6c6 | 223 | for static objects. |
f81a440f | 224 | --disable-init-priority conform to ISO C++ rules for ordering static objects |
2ce3c6c6 | 225 | (i.e. initialized in order of declaration). ], |
75bffa71 | 226 | if test x$enable_init_priority != xno; then |
2ce3c6c6 JM |
227 | extra_c_flags=-DUSE_INIT_PRIORITY |
228 | fi) | |
229 | ||
0bbb1697 RK |
230 | # Enable threads |
231 | # Pass with no value to take the default | |
232 | # Pass with a value to specify a thread package | |
233 | AC_ARG_ENABLE(threads, | |
234 | [ --enable-threads enable thread usage for target GCC. | |
235 | --enable-threads=LIB use LIB thread package for target GCC.], | |
75bffa71 | 236 | if test x$enable_threads = xno; then |
0bbb1697 RK |
237 | enable_threads='' |
238 | fi, | |
239 | enable_threads='') | |
240 | ||
e445171e | 241 | enable_threads_flag=$enable_threads |
0bbb1697 | 242 | # Check if a valid thread package |
e445171e | 243 | case x${enable_threads_flag} in |
0bbb1697 RK |
244 | x | xno) |
245 | # No threads | |
a851212a | 246 | target_thread_file='single' |
0bbb1697 RK |
247 | ;; |
248 | xyes) | |
249 | # default | |
a851212a | 250 | target_thread_file='' |
0bbb1697 RK |
251 | ;; |
252 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
7cc34889 | 253 | xsolaris | xwin32 | xdce | xvxworks) |
e445171e | 254 | target_thread_file=$enable_threads_flag |
0bbb1697 RK |
255 | ;; |
256 | *) | |
257 | echo "$enable_threads is an unknown thread package" 1>&2 | |
258 | exit 1 | |
259 | ;; | |
260 | esac | |
261 | ||
d8bb17c8 OP |
262 | AC_ARG_ENABLE(objc-gc, |
263 | [ --enable-objc-gc enable the use of Boehm's garbage collector with | |
264 | the GNU Objective-C runtime.], | |
265 | if [[[ x$enable_objc_gc = xno ]]]; then | |
266 | objc_boehm_gc='' | |
267 | else | |
268 | objc_boehm_gc=1 | |
269 | fi, | |
270 | objc_boehm_gc='') | |
271 | ||
46f18e7b RK |
272 | # Determine the host, build, and target systems |
273 | AC_CANONICAL_SYSTEM | |
274 | ||
e9a25f70 JL |
275 | # Find the native compiler |
276 | AC_PROG_CC | |
61842080 MM |
277 | |
278 | # If the native compiler is GCC, we can enable warnings even in stage1. | |
279 | # That's useful for people building cross-compilers, or just running a | |
280 | # quick `make'. | |
281 | if test "x$GCC" = "xyes"; then | |
282 | stage1_warn_cflags='$(WARN_CFLAGS)' | |
283 | else | |
284 | stage1_warn_cflags="" | |
285 | fi | |
286 | AC_SUBST(stage1_warn_cflags) | |
287 | ||
e9a25f70 JL |
288 | AC_PROG_MAKE_SET |
289 | ||
ab339d62 AO |
290 | AC_MSG_CHECKING([whether a default assembler was specified]) |
291 | if test x"${AS+set}" = x"set"; then | |
292 | if test x"$with_gas" = x"no"; then | |
293 | AC_MSG_RESULT([yes ($AS)]) | |
294 | else | |
295 | AC_MSG_RESULT([yes ($AS - GNU as)]) | |
296 | fi | |
297 | else | |
298 | AC_MSG_RESULT(no) | |
299 | fi | |
300 | ||
301 | AC_MSG_CHECKING([whether a default linker was specified]) | |
302 | if test x"${LD+set}" = x"set"; then | |
303 | if test x"$with_gnu_ld" = x"no"; then | |
304 | AC_MSG_RESULT([yes ($LD)]) | |
305 | else | |
306 | AC_MSG_RESULT([yes ($LD - GNU ld)]) | |
307 | fi | |
308 | else | |
309 | AC_MSG_RESULT(no) | |
310 | fi | |
311 | ||
46f18e7b RK |
312 | # Find some useful tools |
313 | AC_PROG_AWK | |
314 | AC_PROG_LEX | |
ac64120e JW |
315 | GCC_PROG_LN |
316 | GCC_PROG_LN_S | |
e9b4fabf | 317 | GCC_C_VOLATILE |
46f18e7b RK |
318 | AC_PROG_RANLIB |
319 | AC_PROG_YACC | |
76143254 | 320 | EGCS_PROG_INSTALL |
46f18e7b | 321 | |
956d6950 JL |
322 | AC_HEADER_STDC |
323 | AC_HEADER_TIME | |
ccc7d11a | 324 | GCC_HEADER_STRING |
76b4b31e | 325 | AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h wait.h sys/wait.h) |
7636d567 | 326 | |
f24af81b TT |
327 | # Check for thread headers. |
328 | AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=]) | |
329 | AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=]) | |
330 | ||
bcf12124 JL |
331 | # See if GNAT has been installed |
332 | AC_CHECK_PROG(gnat, gnatbind, yes, no) | |
333 | ||
76844337 RH |
334 | # See if the system preprocessor understands the ANSI C preprocessor |
335 | # stringification operator. | |
336 | AC_MSG_CHECKING(whether cpp understands the stringify operator) | |
337 | AC_CACHE_VAL(gcc_cv_c_have_stringify, | |
338 | [AC_TRY_COMPILE(, | |
339 | [#define S(x) #x | |
340 | char *test = S(foo);], | |
341 | gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)]) | |
342 | AC_MSG_RESULT($gcc_cv_c_have_stringify) | |
343 | if test $gcc_cv_c_have_stringify = yes; then | |
344 | AC_DEFINE(HAVE_CPP_STRINGIFY) | |
345 | fi | |
346 | ||
7636d567 JW |
347 | # Use <inttypes.h> only if it exists, |
348 | # doesn't clash with <sys/types.h>, and declares intmax_t. | |
349 | AC_MSG_CHECKING(for inttypes.h) | |
350 | AC_CACHE_VAL(gcc_cv_header_inttypes_h, | |
351 | [AC_TRY_COMPILE( | |
352 | [#include <sys/types.h> | |
353 | #include <inttypes.h>], | |
354 | [intmax_t i = -1;], | |
355 | [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H) | |
356 | gcc_cv_header_inttypes_h=yes], | |
357 | gcc_cv_header_inttypes_h=no)]) | |
358 | AC_MSG_RESULT($gcc_cv_header_inttypes_h) | |
cdcc6a01 | 359 | |
76b4b31e | 360 | AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \ |
8f81384f | 361 | index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \ |
007e8d2a | 362 | sysconf isascii gettimeofday strsignal) |
a81fb89e | 363 | |
56f48ce9 DB |
364 | # Make sure wchar_t is available |
365 | #AC_CHECK_TYPE(wchar_t, unsigned int) | |
366 | ||
76b4b31e | 367 | GCC_FUNC_VFPRINTF_DOPRNT |
f1b54f9b KG |
368 | GCC_FUNC_PRINTF_PTR |
369 | ||
a81fb89e | 370 | GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \ |
007e8d2a KG |
371 | index rindex getenv atol sbrk abort atof strerror getcwd getwd \ |
372 | strsignal) | |
cdcc6a01 | 373 | |
d2cabf16 KG |
374 | GCC_NEED_DECLARATIONS(getrlimit setrlimit, [ |
375 | #include <sys/types.h> | |
376 | #ifdef HAVE_SYS_RESOURCE_H | |
377 | #include <sys/resource.h> | |
378 | #endif | |
379 | ]) | |
380 | ||
e3512ac2 JL |
381 | AC_DECL_SYS_SIGLIST |
382 | ||
46f18e7b RK |
383 | # File extensions |
384 | manext='.1' | |
385 | objext='.o' | |
46f18e7b RK |
386 | AC_SUBST(manext) |
387 | AC_SUBST(objext) | |
46f18e7b RK |
388 | |
389 | build_xm_file= | |
61536478 | 390 | build_xm_defines= |
46f18e7b RK |
391 | build_install_headers_dir=install-headers-tar |
392 | build_exeext= | |
393 | host_xm_file= | |
61536478 | 394 | host_xm_defines= |
46f18e7b RK |
395 | host_xmake_file= |
396 | host_truncate_target= | |
6e26218f | 397 | host_exeext= |
46f18e7b RK |
398 | |
399 | # Decode the host machine, then the target machine. | |
400 | # For the host machine, we save the xm_file variable as host_xm_file; | |
401 | # then we decode the target machine and forget everything else | |
402 | # that came from the host machine. | |
403 | for machine in $build $host $target; do | |
404 | ||
405 | out_file= | |
406 | xmake_file= | |
407 | tmake_file= | |
408 | extra_headers= | |
409 | extra_passes= | |
410 | extra_parts= | |
411 | extra_programs= | |
412 | extra_objs= | |
413 | extra_host_objs= | |
414 | extra_gcc_objs= | |
61536478 | 415 | xm_defines= |
46f18e7b RK |
416 | float_format= |
417 | # Set this to force installation and use of collect2. | |
418 | use_collect2= | |
419 | # Set this to override the default target model. | |
420 | target_cpu_default= | |
46f18e7b | 421 | # Set this to control which fixincludes program to use. |
75bffa71 | 422 | if test x$fast_fixinc != xyes; then |
4b104d6e JL |
423 | fixincludes=fixincludes |
424 | else fixincludes=fixinc.sh ; fi | |
46f18e7b RK |
425 | # Set this to control how the header file directory is installed. |
426 | install_headers_dir=install-headers-tar | |
427 | # Set this to a non-empty list of args to pass to cpp if the target | |
428 | # wants its .md file passed through cpp. | |
429 | md_cppflags= | |
430 | # Set this if directory names should be truncated to 14 characters. | |
431 | truncate_target= | |
432 | # Set this if gdb needs a dir command with `dirname $out_file` | |
433 | gdb_needs_out_file_path= | |
46f18e7b RK |
434 | # Set this if the build machine requires executables to have a |
435 | # file name suffix. | |
436 | exeext= | |
a851212a JW |
437 | # Set this to control which thread package will be used. |
438 | thread_file= | |
df6faf79 JW |
439 | # Reinitialize these from the flag values every loop pass, since some |
440 | # configure entries modify them. | |
441 | gas="$gas_flag" | |
442 | gnu_ld="$gnu_ld_flag" | |
e445171e | 443 | enable_threads=$enable_threads_flag |
46f18e7b RK |
444 | |
445 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
446 | # each machine entry. | |
447 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
448 | case $machine in | |
08fc0184 RK |
449 | alpha*-*-*) |
450 | cpu_type=alpha | |
451 | ;; | |
46f18e7b RK |
452 | arm*-*-*) |
453 | cpu_type=arm | |
454 | ;; | |
455 | c*-convex-*) | |
456 | cpu_type=convex | |
457 | ;; | |
75bffa71 ILT |
458 | changequote(,)dnl |
459 | i[34567]86-*-*) | |
460 | changequote([,])dnl | |
46f18e7b RK |
461 | cpu_type=i386 |
462 | ;; | |
463 | hppa*-*-*) | |
464 | cpu_type=pa | |
465 | ;; | |
466 | m68000-*-*) | |
467 | cpu_type=m68k | |
468 | ;; | |
469 | mips*-*-*) | |
470 | cpu_type=mips | |
471 | ;; | |
472 | powerpc*-*-*) | |
473 | cpu_type=rs6000 | |
474 | ;; | |
475 | pyramid-*-*) | |
476 | cpu_type=pyr | |
477 | ;; | |
478 | sparc*-*-*) | |
479 | cpu_type=sparc | |
480 | ;; | |
481 | esac | |
482 | ||
483 | tm_file=${cpu_type}/${cpu_type}.h | |
484 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
485 | ||
61536478 JL |
486 | # Set the default macros to define for GNU/Linux systems. |
487 | case $machine in | |
488 | *-*-linux-gnu*) | |
c7391272 | 489 | xm_defines="HAVE_ATEXIT POSIX BSTRING" |
61536478 JL |
490 | ;; |
491 | esac | |
492 | ||
46f18e7b RK |
493 | case $machine in |
494 | # Support site-specific machine types. | |
495 | *local*) | |
496 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
497 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
498 | xm_file=${cpu_type}/xm-$rest.h | |
499 | tm_file=${cpu_type}/$rest.h | |
75bffa71 | 500 | if test -f $srcdir/config/${cpu_type}/x-$rest; \ |
46f18e7b RK |
501 | then xmake_file=${cpu_type}/x-$rest; \ |
502 | else true; \ | |
503 | fi | |
75bffa71 | 504 | if test -f $srcdir/config/${cpu_type}/t-$rest; \ |
46f18e7b RK |
505 | then tmake_file=${cpu_type}/t-$rest; \ |
506 | else true; \ | |
507 | fi | |
508 | ;; | |
509 | 1750a-*-*) | |
510 | ;; | |
511 | a29k-*-bsd* | a29k-*-sym1*) | |
512 | tm_file="${tm_file} a29k/unix.h" | |
61536478 | 513 | xm_defines=USG |
46f18e7b RK |
514 | xmake_file=a29k/x-unix |
515 | use_collect2=yes | |
516 | ;; | |
517 | a29k-*-udi | a29k-*-coff) | |
518 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
519 | tmake_file=a29k/t-a29kbare | |
520 | ;; | |
7cc34889 | 521 | a29k-wrs-vxworks*) |
46f18e7b RK |
522 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" |
523 | tmake_file=a29k/t-vx29k | |
524 | extra_parts="crtbegin.o crtend.o" | |
7cc34889 | 525 | thread_file='vxworks' |
46f18e7b RK |
526 | ;; |
527 | a29k-*-*) # Default a29k environment. | |
528 | use_collect2=yes | |
529 | ;; | |
08fc0184 | 530 | alpha*-*-linux-gnuecoff*) |
8983c716 | 531 | tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h" |
61536478 | 532 | target_cpu_default="MASK_GAS" |
e71c3bb0 | 533 | gas=no |
46f18e7b | 534 | xmake_file=none |
46f18e7b RK |
535 | gas=yes gnu_ld=yes |
536 | ;; | |
704a6306 | 537 | alpha*-*-linux-gnulibc1*) |
9d654bba | 538 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
61536478 | 539 | target_cpu_default="MASK_GAS" |
574badbc RH |
540 | tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe" |
541 | extra_parts="crtbegin.o crtend.o" | |
9d654bba | 542 | fixincludes=fixinc.wrap |
704a6306 | 543 | xmake_file=none |
704a6306 | 544 | gas=yes gnu_ld=yes |
75bffa71 | 545 | if test x$enable_threads = xyes; then |
704a6306 RH |
546 | thread_file='posix' |
547 | fi | |
548 | ;; | |
08fc0184 | 549 | alpha*-*-linux-gnu*) |
9d654bba | 550 | tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h" |
61536478 | 551 | target_cpu_default="MASK_GAS" |
574badbc RH |
552 | tmake_file="t-linux alpha/t-linux alpha/t-crtbe" |
553 | extra_parts="crtbegin.o crtend.o" | |
46f18e7b RK |
554 | xmake_file=none |
555 | fixincludes=Makefile.in | |
46f18e7b | 556 | gas=yes gnu_ld=yes |
75bffa71 | 557 | if test x$enable_threads = xyes; then |
c811d261 RK |
558 | thread_file='posix' |
559 | fi | |
46f18e7b | 560 | ;; |
9d654bba RH |
561 | alpha*-*-netbsd*) |
562 | tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h" | |
563 | target_cpu_default="MASK_GAS" | |
564 | tmake_file="alpha/t-crtbe" | |
565 | extra_parts="crtbegin.o crtend.o" | |
566 | xmake_file=none | |
567 | fixincludes=fixinc.wrap | |
568 | gas=yes gnu_ld=yes | |
569 | ;; | |
570 | ||
e9a25f70 | 571 | alpha*-dec-osf*) |
75bffa71 | 572 | if test x$stabs = xyes |
dec3e070 JW |
573 | then |
574 | tm_file="${tm_file} dbx.h" | |
575 | fi | |
75bffa71 | 576 | if test x$gas != xyes |
dec3e070 JW |
577 | then |
578 | extra_passes="mips-tfile mips-tdump" | |
579 | fi | |
dec3e070 | 580 | use_collect2=yes |
dec3e070 | 581 | case $machine in |
6ecd4e53 | 582 | *-*-osf1*) |
b0435cf4 | 583 | tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h" |
e9a25f70 | 584 | ;; |
75bffa71 ILT |
585 | changequote(,)dnl |
586 | *-*-osf[23]*) | |
587 | changequote([,])dnl | |
b0435cf4 | 588 | tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h" |
e9a25f70 JL |
589 | ;; |
590 | *-*-osf4*) | |
b0435cf4 | 591 | tm_file="${tm_file} alpha/osf.h" |
e9a25f70 JL |
592 | # Some versions of OSF4 (specifically X4.0-9 296.7) have |
593 | # a broken tar, so we use cpio instead. | |
dec3e070 JW |
594 | install_headers_dir=install-headers-cpio |
595 | ;; | |
596 | esac | |
e9a25f70 | 597 | case $machine in |
75bffa71 ILT |
598 | changequote(,)dnl |
599 | *-*-osf4.0[b-z] | *-*-osf4.[1-9]*) | |
600 | changequote([,])dnl | |
e9a25f70 JL |
601 | target_cpu_default=MASK_SUPPORT_ARCH |
602 | ;; | |
603 | esac | |
46f18e7b | 604 | ;; |
9ec36da5 JL |
605 | alpha*-*-vxworks*) |
606 | tm_file="${tm_file} dbx.h alpha/vxworks.h" | |
607 | if [ x$gas != xyes ] | |
608 | then | |
609 | extra_passes="mips-tfile mips-tdump" | |
610 | fi | |
611 | use_collect2=yes | |
612 | ;; | |
b0435cf4 | 613 | alpha*-*-winnt*) |
46f18e7b | 614 | tm_file="${tm_file} alpha/win-nt.h" |
46f18e7b RK |
615 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" |
616 | tmake_file=t-libc-ok | |
617 | xmake_file=winnt/x-winnt | |
618 | extra_host_objs=oldnames.o | |
619 | extra_gcc_objs="spawnv.o oldnames.o" | |
620 | fixincludes=fixinc.winnt | |
75bffa71 | 621 | if test x$gnu_ld != xyes |
46f18e7b RK |
622 | then |
623 | extra_programs=ld.exe | |
624 | fi | |
75bffa71 | 625 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
626 | thread_file='win32' |
627 | fi | |
46f18e7b | 628 | ;; |
08fc0184 | 629 | alpha*-dec-vms*) |
46f18e7b RK |
630 | tm_file=alpha/vms.h |
631 | xm_file="${xm_file} alpha/xm-vms.h" | |
632 | tmake_file=alpha/t-vms | |
633 | fixincludes=Makefile.in | |
634 | ;; | |
66ed0683 JL |
635 | arc-*-elf*) |
636 | extra_parts="crtinit.o crtfini.o" | |
637 | ;; | |
46f18e7b RK |
638 | arm-*-coff* | armel-*-coff*) |
639 | tm_file=arm/coff.h | |
640 | tmake_file=arm/t-bare | |
641 | ;; | |
75bffa71 ILT |
642 | changequote(,)dnl |
643 | arm-*-riscix1.[01]*) # Acorn RISC machine (early versions) | |
644 | changequote([,])dnl | |
46f18e7b RK |
645 | tm_file=arm/riscix1-1.h |
646 | use_collect2=yes | |
647 | ;; | |
648 | arm-*-riscix*) # Acorn RISC machine | |
75bffa71 | 649 | if test x$gas = xyes |
46f18e7b RK |
650 | then |
651 | tm_file=arm/rix-gas.h | |
652 | else | |
653 | tm_file=arm/riscix.h | |
654 | fi | |
655 | xmake_file=arm/x-riscix | |
656 | tmake_file=arm/t-riscix | |
657 | use_collect2=yes | |
658 | ;; | |
659 | arm-semi-aout | armel-semi-aout) | |
660 | tm_file=arm/semi.h | |
661 | tmake_file=arm/t-semi | |
662 | fixincludes=Makefile.in # There is nothing to fix | |
663 | ;; | |
664 | arm-semi-aof | armel-semi-aof) | |
665 | tm_file=arm/semiaof.h | |
666 | tmake_file=arm/t-semiaof | |
667 | fixincludes=Makefile.in # There is nothing to fix | |
668 | ;; | |
58600d24 | 669 | arm*-*-netbsd*) |
d23f4158 | 670 | tm_file=arm/netbsd.h |
641d4216 | 671 | xm_file="arm/xm-netbsd.h ${xm_file}" |
e9a25f70 | 672 | tmake_file="t-netbsd arm/t-netbsd" |
be1ed94f | 673 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 674 | fixincludes=fixinc.wrap |
d23f4158 | 675 | ;; |
956d6950 | 676 | arm-*-linux-gnuaout*) # ARM GNU/Linux |
618d2e70 | 677 | cpu_type=arm |
618d2e70 RK |
678 | xmake_file=x-linux |
679 | tm_file=arm/linux-gas.h | |
680 | tmake_file=arm/t-linux | |
681 | fixincludes=Makefile.in | |
618d2e70 RK |
682 | gnu_ld=yes |
683 | ;; | |
f5967c59 RE |
684 | arm-*-aout) |
685 | tm_file=arm/aout.h | |
e9a25f70 | 686 | tmake_file=arm/t-bare |
46f18e7b RK |
687 | ;; |
688 | c1-convex-*) # Convex C1 | |
689 | target_cpu_default=1 | |
690 | use_collect2=yes | |
691 | fixincludes=Makefile.in | |
692 | ;; | |
693 | c2-convex-*) # Convex C2 | |
694 | target_cpu_default=2 | |
695 | use_collect2=yes | |
696 | fixincludes=Makefile.in | |
697 | ;; | |
698 | c32-convex-*) | |
699 | target_cpu_default=4 | |
700 | use_collect2=yes | |
701 | fixincludes=Makefile.in | |
702 | ;; | |
703 | c34-convex-*) | |
704 | target_cpu_default=8 | |
705 | use_collect2=yes | |
706 | fixincludes=Makefile.in | |
707 | ;; | |
708 | c38-convex-*) | |
709 | target_cpu_default=16 | |
710 | use_collect2=yes | |
711 | fixincludes=Makefile.in | |
712 | ;; | |
62616695 MH |
713 | c4x-*) |
714 | cpu_type=c4x | |
715 | tmake_file=c4x/t-c4x | |
716 | ;; | |
46f18e7b RK |
717 | clipper-intergraph-clix*) |
718 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
719 | xm_file=clipper/xm-clix.h | |
720 | xmake_file=clipper/x-clix | |
721 | extra_headers=va-clipper.h | |
722 | extra_parts="crtbegin.o crtend.o" | |
723 | install_headers_dir=install-headers-cpio | |
46f18e7b RK |
724 | ;; |
725 | dsp16xx-*) | |
726 | ;; | |
727 | elxsi-elxsi-*) | |
728 | use_collect2=yes | |
729 | ;; | |
730 | # This hasn't been upgraded to GCC 2. | |
731 | # fx80-alliant-*) # Alliant FX/80 | |
732 | # ;; | |
733 | h8300-*-*) | |
734 | float_format=i32 | |
735 | ;; | |
736 | hppa1.1-*-pro*) | |
737 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" | |
738 | xm_file=pa/xm-papro.h | |
739 | tmake_file=pa/t-pro | |
740 | ;; | |
741 | hppa1.1-*-osf*) | |
742 | target_cpu_default=1 | |
743 | tm_file="${tm_file} pa/pa-osf.h" | |
744 | use_collect2=yes | |
745 | fixincludes=Makefile.in | |
746 | ;; | |
dec3e070 JW |
747 | hppa1.1-*-rtems*) |
748 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
749 | xm_file=pa/xm-papro.h | |
750 | tmake_file=pa/t-pro | |
751 | ;; | |
46f18e7b RK |
752 | hppa1.0-*-osf*) |
753 | tm_file="${tm_file} pa/pa-osf.h" | |
754 | use_collect2=yes | |
755 | fixincludes=Makefile.in | |
756 | ;; | |
757 | hppa1.1-*-bsd*) | |
758 | target_cpu_default=1 | |
759 | use_collect2=yes | |
760 | fixincludes=Makefile.in | |
761 | ;; | |
762 | hppa1.0-*-bsd*) | |
763 | use_collect2=yes | |
764 | fixincludes=Makefile.in | |
765 | ;; | |
766 | hppa1.0-*-hpux7*) | |
767 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" | |
768 | xm_file=pa/xm-pahpux.h | |
769 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 770 | if test x$gas = xyes |
46f18e7b RK |
771 | then |
772 | tm_file="${tm_file} pa/gas.h" | |
773 | fi | |
46f18e7b RK |
774 | install_headers_dir=install-headers-cpio |
775 | use_collect2=yes | |
776 | ;; | |
75bffa71 ILT |
777 | changequote(,)dnl |
778 | hppa1.0-*-hpux8.0[0-2]*) | |
779 | changequote([,])dnl | |
46f18e7b RK |
780 | tm_file="${tm_file} pa/pa-hpux.h" |
781 | xm_file=pa/xm-pahpux.h | |
782 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 783 | if test x$gas = xyes |
46f18e7b RK |
784 | then |
785 | tm_file="${tm_file} pa/pa-gas.h" | |
786 | else | |
787 | tm_file="pa/pa-oldas.h ${tm_file}" | |
788 | fi | |
46f18e7b RK |
789 | install_headers_dir=install-headers-cpio |
790 | use_collect2=yes | |
791 | ;; | |
75bffa71 ILT |
792 | changequote(,)dnl |
793 | hppa1.1-*-hpux8.0[0-2]*) | |
794 | changequote([,])dnl | |
46f18e7b RK |
795 | target_cpu_default=1 |
796 | tm_file="${tm_file} pa/pa-hpux.h" | |
797 | xm_file=pa/xm-pahpux.h | |
798 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 799 | if test x$gas = xyes |
46f18e7b RK |
800 | then |
801 | tm_file="${tm_file} pa/pa-gas.h" | |
802 | else | |
803 | tm_file="pa/pa-oldas.h ${tm_file}" | |
804 | fi | |
46f18e7b RK |
805 | install_headers_dir=install-headers-cpio |
806 | use_collect2=yes | |
807 | ;; | |
808 | hppa1.1-*-hpux8*) | |
809 | target_cpu_default=1 | |
810 | tm_file="${tm_file} pa/pa-hpux.h" | |
811 | xm_file=pa/xm-pahpux.h | |
812 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 813 | if test x$gas = xyes |
46f18e7b RK |
814 | then |
815 | tm_file="${tm_file} pa/pa-gas.h" | |
816 | fi | |
46f18e7b RK |
817 | install_headers_dir=install-headers-cpio |
818 | use_collect2=yes | |
819 | ;; | |
820 | hppa1.0-*-hpux8*) | |
821 | tm_file="${tm_file} pa/pa-hpux.h" | |
822 | xm_file=pa/xm-pahpux.h | |
823 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 824 | if test x$gas = xyes |
46f18e7b RK |
825 | then |
826 | tm_file="${tm_file} pa/pa-gas.h" | |
827 | fi | |
46f18e7b RK |
828 | install_headers_dir=install-headers-cpio |
829 | use_collect2=yes | |
830 | ;; | |
831 | hppa1.1-*-hpux10*) | |
832 | target_cpu_default=1 | |
833 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
834 | xm_file=pa/xm-pahpux.h | |
835 | xmake_file=pa/x-pa-hpux | |
f24af81b | 836 | tmake_file=pa/t-pa |
75bffa71 | 837 | if test x$gas = xyes |
46f18e7b RK |
838 | then |
839 | tm_file="${tm_file} pa/pa-gas.h" | |
840 | fi | |
75bffa71 | 841 | if test x$enable_threads = x; then |
f24af81b TT |
842 | enable_threads=$have_pthread_h |
843 | fi | |
75bffa71 | 844 | if test x$enable_threads = xyes; then |
f24af81b TT |
845 | thread_file='dce' |
846 | tmake_file="${tmake_file} pa/t-dce-thr" | |
847 | fi | |
46f18e7b RK |
848 | install_headers_dir=install-headers-cpio |
849 | use_collect2=yes | |
850 | ;; | |
851 | hppa1.0-*-hpux10*) | |
852 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
853 | xm_file=pa/xm-pahpux.h | |
854 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 855 | if test x$gas = xyes |
46f18e7b RK |
856 | then |
857 | tm_file="${tm_file} pa/pa-gas.h" | |
858 | fi | |
75bffa71 | 859 | if test x$enable_threads = x; then |
d005a5a4 JL |
860 | enable_threads=$have_pthread_h |
861 | fi | |
75bffa71 | 862 | if test x$enable_threads = xyes; then |
d005a5a4 JL |
863 | thread_file='dce' |
864 | tmake_file="${tmake_file} pa/t-dce-thr" | |
865 | fi | |
46f18e7b RK |
866 | install_headers_dir=install-headers-cpio |
867 | use_collect2=yes | |
868 | ;; | |
869 | hppa1.1-*-hpux*) | |
870 | target_cpu_default=1 | |
871 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
872 | xm_file=pa/xm-pahpux.h | |
873 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 874 | if test x$gas = xyes |
46f18e7b RK |
875 | then |
876 | tm_file="${tm_file} pa/pa-gas.h" | |
877 | fi | |
46f18e7b RK |
878 | install_headers_dir=install-headers-cpio |
879 | use_collect2=yes | |
880 | ;; | |
881 | hppa1.0-*-hpux*) | |
882 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
883 | xm_file=pa/xm-pahpux.h | |
884 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 885 | if test x$gas = xyes |
46f18e7b RK |
886 | then |
887 | tm_file="${tm_file} pa/pa-gas.h" | |
888 | fi | |
46f18e7b RK |
889 | install_headers_dir=install-headers-cpio |
890 | use_collect2=yes | |
891 | ;; | |
892 | hppa1.1-*-hiux*) | |
893 | target_cpu_default=1 | |
894 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
895 | xm_file=pa/xm-pahpux.h | |
896 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 897 | if test x$gas = xyes |
46f18e7b RK |
898 | then |
899 | tm_file="${tm_file} pa/pa-gas.h" | |
900 | fi | |
46f18e7b RK |
901 | install_headers_dir=install-headers-cpio |
902 | use_collect2=yes | |
903 | ;; | |
904 | hppa1.0-*-hiux*) | |
905 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
906 | xm_file=pa/xm-pahpux.h | |
907 | xmake_file=pa/x-pa-hpux | |
75bffa71 | 908 | if test x$gas = xyes |
46f18e7b RK |
909 | then |
910 | tm_file="${tm_file} pa/pa-gas.h" | |
911 | fi | |
46f18e7b RK |
912 | install_headers_dir=install-headers-cpio |
913 | use_collect2=yes | |
914 | ;; | |
915 | hppa*-*-lites*) | |
916 | target_cpu_default=1 | |
917 | use_collect2=yes | |
918 | fixincludes=Makefile.in | |
919 | ;; | |
920 | i370-*-mvs*) | |
921 | ;; | |
75bffa71 ILT |
922 | changequote(,)dnl |
923 | i[34567]86-ibm-aix*) # IBM PS/2 running AIX | |
924 | changequote([,])dnl | |
925 | if test x$gas = xyes | |
46f18e7b RK |
926 | then |
927 | tm_file=i386/aix386.h | |
928 | extra_parts="crtbegin.o crtend.o" | |
929 | tmake_file=i386/t-crtstuff | |
930 | else | |
931 | tm_file=i386/aix386ng.h | |
932 | use_collect2=yes | |
933 | fi | |
61536478 JL |
934 | xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}" |
935 | xm_defines=USG | |
46f18e7b | 936 | xmake_file=i386/x-aix |
46f18e7b | 937 | ;; |
75bffa71 ILT |
938 | changequote(,)dnl |
939 | i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4 | |
940 | changequote([,])dnl | |
61536478 JL |
941 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
942 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
46f18e7b | 943 | xmake_file=i386/x-ncr3000 |
75bffa71 | 944 | if test x$stabs = xyes -a x$gas = xyes |
46f18e7b RK |
945 | then |
946 | tm_file=i386/sysv4gdb.h | |
947 | else | |
948 | tm_file=i386/sysv4.h | |
949 | fi | |
950 | extra_parts="crtbegin.o crtend.o" | |
951 | tmake_file=i386/t-crtpic | |
952 | ;; | |
75bffa71 ILT |
953 | changequote(,)dnl |
954 | i[34567]86-next-*) | |
955 | changequote([,])dnl | |
46f18e7b RK |
956 | tm_file=i386/next.h |
957 | xm_file=i386/xm-next.h | |
958 | tmake_file=i386/t-next | |
959 | xmake_file=i386/x-next | |
960 | extra_objs=nextstep.o | |
750930c1 | 961 | extra_parts="crtbegin.o crtend.o" |
75bffa71 | 962 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
963 | thread_file='mach' |
964 | fi | |
46f18e7b | 965 | ;; |
75bffa71 ILT |
966 | changequote(,)dnl |
967 | i[34567]86-sequent-bsd*) # 80386 from Sequent | |
968 | changequote([,])dnl | |
46f18e7b | 969 | use_collect2=yes |
75bffa71 | 970 | if test x$gas = xyes |
46f18e7b RK |
971 | then |
972 | tm_file=i386/seq-gas.h | |
973 | else | |
974 | tm_file=i386/sequent.h | |
975 | fi | |
976 | ;; | |
75bffa71 ILT |
977 | changequote(,)dnl |
978 | i[34567]86-sequent-ptx1*) | |
979 | changequote([,])dnl | |
61536478 | 980 | xm_defines="USG SVR3" |
46f18e7b RK |
981 | xmake_file=i386/x-sysv3 |
982 | tm_file=i386/seq-sysv3.h | |
983 | tmake_file=i386/t-crtstuff | |
984 | fixincludes=fixinc.ptx | |
985 | extra_parts="crtbegin.o crtend.o" | |
986 | install_headers_dir=install-headers-cpio | |
46f18e7b | 987 | ;; |
75bffa71 ILT |
988 | changequote(,)dnl |
989 | i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*) | |
990 | changequote([,])dnl | |
61536478 | 991 | xm_defines="USG SVR3" |
46f18e7b RK |
992 | xmake_file=i386/x-sysv3 |
993 | tm_file=i386/seq2-sysv3.h | |
994 | tmake_file=i386/t-crtstuff | |
995 | extra_parts="crtbegin.o crtend.o" | |
996 | fixincludes=fixinc.ptx | |
997 | install_headers_dir=install-headers-cpio | |
46f18e7b | 998 | ;; |
75bffa71 ILT |
999 | changequote(,)dnl |
1000 | i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*) | |
1001 | changequote([,])dnl | |
61536478 JL |
1002 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
1003 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
46f18e7b RK |
1004 | xmake_file=x-svr4 |
1005 | tm_file=i386/ptx4-i.h | |
1006 | tmake_file=t-svr4 | |
1007 | extra_parts="crtbegin.o crtend.o" | |
1008 | fixincludes=fixinc.ptx | |
1009 | install_headers_dir=install-headers-cpio | |
46f18e7b RK |
1010 | ;; |
1011 | i386-sun-sunos*) # Sun i386 roadrunner | |
61536478 | 1012 | xm_defines=USG |
46f18e7b RK |
1013 | tm_file=i386/sun.h |
1014 | use_collect2=yes | |
1015 | ;; | |
75bffa71 ILT |
1016 | changequote(,)dnl |
1017 | i[34567]86-wrs-vxworks*) | |
1018 | changequote([,])dnl | |
9e89df50 MS |
1019 | tm_file=i386/vxi386.h |
1020 | tmake_file=i386/t-i386bare | |
1021 | ;; | |
75bffa71 ILT |
1022 | changequote(,)dnl |
1023 | i[34567]86-*-aout*) | |
1024 | changequote([,])dnl | |
46f18e7b RK |
1025 | tm_file=i386/i386-aout.h |
1026 | tmake_file=i386/t-i386bare | |
1027 | ;; | |
75bffa71 ILT |
1028 | changequote(,)dnl |
1029 | i[34567]86-*-bsdi* | i[34567]86-*-bsd386*) | |
1030 | changequote([,])dnl | |
46f18e7b | 1031 | tm_file=i386/bsd386.h |
46f18e7b RK |
1032 | # tmake_file=t-libc-ok |
1033 | ;; | |
75bffa71 ILT |
1034 | changequote(,)dnl |
1035 | i[34567]86-*-bsd*) | |
1036 | changequote([,])dnl | |
46f18e7b | 1037 | tm_file=i386/386bsd.h |
46f18e7b RK |
1038 | # tmake_file=t-libc-ok |
1039 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
1040 | # use_collect2=yes | |
1041 | ;; | |
75bffa71 ILT |
1042 | changequote(,)dnl |
1043 | i[34567]86-*-freebsdelf*) | |
1044 | changequote([,])dnl | |
46f18e7b | 1045 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" |
be1ed94f | 1046 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 1047 | fixincludes=fixinc.wrap |
46f18e7b RK |
1048 | tmake_file=i386/t-freebsd |
1049 | gas=yes | |
1050 | gnu_ld=yes | |
1051 | stabs=yes | |
1052 | ;; | |
75bffa71 ILT |
1053 | changequote(,)dnl |
1054 | i[34567]86-*-freebsd*) | |
1055 | changequote([,])dnl | |
46f18e7b | 1056 | tm_file=i386/freebsd.h |
be1ed94f | 1057 | # On FreeBSD, the headers are already ok, except for math.h. |
32f65aa0 | 1058 | fixincludes=fixinc.wrap |
46f18e7b RK |
1059 | tmake_file=i386/t-freebsd |
1060 | ;; | |
31f0adf8 JL |
1061 | # We are hoping OpenBSD is still close enough to NetBSD that we can |
1062 | # share the configurations. | |
75bffa71 | 1063 | changequote(,)dnl |
31f0adf8 | 1064 | i[34567]86-*-netbsd* | i[34567]86-*-openbsd*) |
75bffa71 | 1065 | changequote([,])dnl |
46f18e7b | 1066 | tm_file=i386/netbsd.h |
be1ed94f | 1067 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 1068 | fixincludes=fixinc.wrap |
e47f44f4 | 1069 | tmake_file=t-netbsd |
46f18e7b | 1070 | ;; |
75bffa71 ILT |
1071 | changequote(,)dnl |
1072 | i[34567]86-*-coff*) | |
1073 | changequote([,])dnl | |
46f18e7b RK |
1074 | tm_file=i386/i386-coff.h |
1075 | tmake_file=i386/t-i386bare | |
1076 | ;; | |
75bffa71 ILT |
1077 | changequote(,)dnl |
1078 | i[34567]86-*-isc*) # 80386 running ISC system | |
1079 | changequote([,])dnl | |
61536478 JL |
1080 | xm_file="${xm_file} i386/xm-isc.h" |
1081 | xm_defines="USG SVR3" | |
46f18e7b | 1082 | case $machine in |
75bffa71 ILT |
1083 | changequote(,)dnl |
1084 | i[34567]86-*-isc[34]*) | |
1085 | changequote([,])dnl | |
46f18e7b RK |
1086 | xmake_file=i386/x-isc3 |
1087 | ;; | |
1088 | *) | |
1089 | xmake_file=i386/x-isc | |
1090 | ;; | |
1091 | esac | |
75bffa71 | 1092 | if test x$gas = xyes -a x$stabs = xyes |
46f18e7b RK |
1093 | then |
1094 | tm_file=i386/iscdbx.h | |
1095 | tmake_file=i386/t-svr3dbx | |
1096 | extra_parts="svr3.ifile svr3z.ifile" | |
1097 | else | |
1098 | tm_file=i386/isccoff.h | |
1099 | tmake_file=i386/t-crtstuff | |
1100 | extra_parts="crtbegin.o crtend.o" | |
1101 | fi | |
1102 | install_headers_dir=install-headers-cpio | |
46f18e7b | 1103 | ;; |
75bffa71 ILT |
1104 | changequote(,)dnl |
1105 | i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux | |
1106 | changequote([,])dnl # with a.out format using | |
61536478 | 1107 | # pre BFD linkers |
46f18e7b RK |
1108 | xmake_file=x-linux-aout |
1109 | tmake_file="t-linux-aout i386/t-crtstuff" | |
1110 | tm_file=i386/linux-oldld.h | |
1111 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
46f18e7b | 1112 | gnu_ld=yes |
f906a0f0 | 1113 | float_format=i386 |
46f18e7b | 1114 | ;; |
75bffa71 ILT |
1115 | changequote(,)dnl |
1116 | i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux | |
1117 | changequote([,])dnl # with a.out format | |
46f18e7b RK |
1118 | xmake_file=x-linux-aout |
1119 | tmake_file="t-linux-aout i386/t-crtstuff" | |
1120 | tm_file=i386/linux-aout.h | |
1121 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
46f18e7b | 1122 | gnu_ld=yes |
f906a0f0 | 1123 | float_format=i386 |
46f18e7b | 1124 | ;; |
75bffa71 ILT |
1125 | changequote(,)dnl |
1126 | i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux | |
1127 | changequote([,])dnl # with ELF format using the | |
61536478 JL |
1128 | # GNU/Linux C library 5 |
1129 | xmake_file=x-linux | |
1130 | tm_file=i386/linux.h | |
78b9f8df RK |
1131 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" |
1132 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1133 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
78b9f8df | 1134 | gnu_ld=yes |
f906a0f0 | 1135 | float_format=i386 |
75bffa71 | 1136 | if test x$enable_threads = xyes; then |
78b9f8df RK |
1137 | thread_file='single' |
1138 | fi | |
1139 | ;; | |
75bffa71 ILT |
1140 | changequote(,)dnl |
1141 | i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux | |
1142 | changequote([,])dnl # with ELF format using glibc 2 | |
61536478 JL |
1143 | # aka GNU/Linux C library 6 |
1144 | xmake_file=x-linux | |
46f18e7b RK |
1145 | tm_file=i386/linux.h |
1146 | tmake_file="t-linux i386/t-crtstuff" | |
1147 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1148 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
46f18e7b | 1149 | gnu_ld=yes |
f906a0f0 | 1150 | float_format=i386 |
75bffa71 | 1151 | if test x$enable_threads = xyes; then |
78b9f8df RK |
1152 | thread_file='posix' |
1153 | fi | |
46f18e7b | 1154 | ;; |
75bffa71 ILT |
1155 | changequote(,)dnl |
1156 | i[34567]86-*-gnu*) | |
1157 | changequote([,])dnl | |
61536478 | 1158 | ;; |
75bffa71 ILT |
1159 | changequote(,)dnl |
1160 | i[34567]86-go32-msdos | i[34567]86-*-go32*) | |
1161 | changequote([,])dnl | |
61536478 JL |
1162 | xm_file=i386/xm-go32.h |
1163 | tm_file=i386/go32.h | |
1164 | tmake_file=i386/t-go32 | |
46f18e7b | 1165 | ;; |
75bffa71 ILT |
1166 | changequote(,)dnl |
1167 | i[34567]86-pc-msdosdjgpp*) | |
1168 | changequote([,])dnl | |
46f18e7b RK |
1169 | xm_file=i386/xm-go32.h |
1170 | tm_file=i386/go32.h | |
1171 | tmake_file=i386/t-go32 | |
61536478 JL |
1172 | gnu_ld=yes |
1173 | gas=yes | |
46f18e7b | 1174 | ;; |
75bffa71 ILT |
1175 | changequote(,)dnl |
1176 | i[34567]86-moss-msdos* | i[34567]86-*-moss*) | |
1177 | changequote([,])dnl | |
46f18e7b RK |
1178 | tm_file=i386/moss.h |
1179 | tmake_file=t-libc-ok | |
1180 | fixincludes=Makefile.in | |
1181 | gnu_ld=yes | |
1182 | gas=yes | |
1183 | ;; | |
75bffa71 ILT |
1184 | changequote(,)dnl |
1185 | i[34567]86-*-lynxos*) | |
1186 | changequote([,])dnl | |
1187 | if test x$gas = xyes | |
46f18e7b RK |
1188 | then |
1189 | tm_file=i386/lynx.h | |
1190 | else | |
1191 | tm_file=i386/lynx-ng.h | |
1192 | fi | |
1193 | xm_file=i386/xm-lynx.h | |
1194 | tmake_file=i386/t-i386bare | |
1195 | xmake_file=x-lynx | |
1196 | ;; | |
75bffa71 ILT |
1197 | changequote(,)dnl |
1198 | i[34567]86-*-mach*) | |
1199 | changequote([,])dnl | |
46f18e7b RK |
1200 | tm_file=i386/mach.h |
1201 | # tmake_file=t-libc-ok | |
1202 | use_collect2=yes | |
1203 | ;; | |
75bffa71 ILT |
1204 | changequote(,)dnl |
1205 | i[34567]86-*-osfrose*) # 386 using OSF/rose | |
1206 | changequote([,])dnl | |
1207 | if test x$elf = xyes | |
46f18e7b RK |
1208 | then |
1209 | tm_file=i386/osfelf.h | |
1210 | use_collect2= | |
1211 | else | |
1212 | tm_file=i386/osfrose.h | |
1213 | use_collect2=yes | |
1214 | fi | |
61536478 | 1215 | xm_file="i386/xm-osf.h ${xm_file}" |
46f18e7b RK |
1216 | xmake_file=i386/x-osfrose |
1217 | tmake_file=i386/t-osf | |
1218 | extra_objs=halfpic.o | |
1219 | ;; | |
75bffa71 ILT |
1220 | changequote(,)dnl |
1221 | i[34567]86-go32-rtems*) | |
1222 | changequote([,])dnl | |
46f18e7b RK |
1223 | cpu_type=i386 |
1224 | xm_file=i386/xm-go32.h | |
1225 | tm_file=i386/go32-rtems.h | |
1226 | tmake_file="i386/t-go32 t-rtems" | |
1227 | ;; | |
75bffa71 ILT |
1228 | changequote(,)dnl |
1229 | i[34567]86-*-rtemself*) | |
1230 | changequote([,])dnl | |
f5963e61 JL |
1231 | cpu_type=i386 |
1232 | tm_file=i386/rtemself.h | |
1233 | tmake_file="i386/t-i386bare t-rtems" | |
1234 | ;; | |
75bffa71 ILT |
1235 | changequote(,)dnl |
1236 | i[34567]86-*-rtems*) | |
1237 | changequote([,])dnl | |
46f18e7b RK |
1238 | cpu_type=i386 |
1239 | tm_file=i386/rtems.h | |
1240 | tmake_file="i386/t-i386bare t-rtems" | |
1241 | ;; | |
75bffa71 ILT |
1242 | changequote(,)dnl |
1243 | i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
1244 | changequote([,])dnl | |
61536478 JL |
1245 | xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h" |
1246 | xm_defines="USG SVR3" | |
46f18e7b RK |
1247 | xmake_file=i386/x-sco5 |
1248 | fixincludes=fixinc.sco | |
f6857708 | 1249 | install_headers_dir=install-headers-cpio |
46f18e7b | 1250 | tm_file=i386/sco5.h |
75bffa71 | 1251 | if test x$gas = xyes |
f7c9c2bb RL |
1252 | then |
1253 | tm_file="i386/sco5gas.h ${tm_file}" | |
1254 | tmake_file=i386/t-sco5gas | |
1255 | else | |
1256 | tmake_file=i386/t-sco5 | |
1257 | fi | |
46f18e7b RK |
1258 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
1259 | ;; | |
75bffa71 ILT |
1260 | changequote(,)dnl |
1261 | i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system | |
1262 | changequote([,])dnl | |
61536478 JL |
1263 | xm_file="${xm_file} i386/xm-sco.h" |
1264 | xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST" | |
46f18e7b RK |
1265 | xmake_file=i386/x-sco4 |
1266 | fixincludes=fixinc.sco | |
46f18e7b | 1267 | install_headers_dir=install-headers-cpio |
75bffa71 | 1268 | if test x$stabs = xyes |
46f18e7b RK |
1269 | then |
1270 | tm_file=i386/sco4dbx.h | |
1271 | tmake_file=i386/t-svr3dbx | |
1272 | extra_parts="svr3.ifile svr3z.rfile" | |
1273 | else | |
1274 | tm_file=i386/sco4.h | |
1275 | tmake_file=i386/t-crtstuff | |
1276 | extra_parts="crtbegin.o crtend.o" | |
1277 | fi | |
1278 | truncate_target=yes | |
1279 | ;; | |
75bffa71 ILT |
1280 | changequote(,)dnl |
1281 | i[34567]86-*-sco*) # 80386 running SCO system | |
1282 | changequote([,])dnl | |
46f18e7b RK |
1283 | xm_file=i386/xm-sco.h |
1284 | xmake_file=i386/x-sco | |
46f18e7b | 1285 | install_headers_dir=install-headers-cpio |
75bffa71 | 1286 | if test x$stabs = xyes |
46f18e7b RK |
1287 | then |
1288 | tm_file=i386/scodbx.h | |
1289 | tmake_file=i386/t-svr3dbx | |
1290 | extra_parts="svr3.ifile svr3z.rfile" | |
1291 | else | |
1292 | tm_file=i386/sco.h | |
1293 | extra_parts="crtbegin.o crtend.o" | |
1294 | tmake_file=i386/t-crtstuff | |
1295 | fi | |
1296 | truncate_target=yes | |
1297 | ;; | |
75bffa71 ILT |
1298 | changequote(,)dnl |
1299 | i[34567]86-*-solaris2*) | |
1300 | changequote([,])dnl | |
61536478 JL |
1301 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
1302 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
75bffa71 | 1303 | if test x$stabs = xyes |
46f18e7b | 1304 | then |
dec3e070 | 1305 | tm_file=i386/sol2dbg.h |
46f18e7b RK |
1306 | else |
1307 | tm_file=i386/sol2.h | |
1308 | fi | |
1309 | tmake_file=i386/t-sol2 | |
61536478 | 1310 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" |
46f18e7b | 1311 | xmake_file=x-svr4 |
61536478 | 1312 | case $machine in |
75bffa71 ILT |
1313 | changequote(,)dnl |
1314 | *-*-solaris2.[0-4]) | |
1315 | changequote([,])dnl | |
61536478 JL |
1316 | fixincludes=fixinc.svr4;; |
1317 | *) | |
32f65aa0 | 1318 | fixincludes=fixinc.wrap;; |
61536478 | 1319 | esac |
75bffa71 | 1320 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1321 | thread_file='solaris' |
1322 | fi | |
46f18e7b | 1323 | ;; |
75bffa71 ILT |
1324 | changequote(,)dnl |
1325 | i[34567]86-*-sysv5*) # Intel x86 on System V Release 5 | |
1326 | changequote([,])dnl | |
a4cbe801 RL |
1327 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
1328 | xm_defines="USG POSIX" | |
fe07d4c1 | 1329 | tm_file=i386/sysv4.h |
75bffa71 | 1330 | if test x$stabs = xyes |
fe07d4c1 RL |
1331 | then |
1332 | tm_file="${tm_file} dbx.h" | |
1333 | fi | |
1334 | tmake_file=i386/t-crtpic | |
1335 | xmake_file=x-svr4 | |
1336 | extra_parts="crtbegin.o crtend.o" | |
823642df | 1337 | fixincludes=fixinc.svr4 |
fe07d4c1 | 1338 | ;; |
75bffa71 ILT |
1339 | changequote(,)dnl |
1340 | i[34567]86-*-sysv4*) # Intel 80386's running system V.4 | |
1341 | changequote([,])dnl | |
61536478 JL |
1342 | xm_file="xm-siglist.h xm-alloca.h ${xm_file}" |
1343 | xm_defines="USG POSIX SMALL_ARG_MAX" | |
46f18e7b | 1344 | tm_file=i386/sysv4.h |
75bffa71 | 1345 | if test x$stabs = xyes |
46f18e7b RK |
1346 | then |
1347 | tm_file="${tm_file} dbx.h" | |
1348 | fi | |
1349 | tmake_file=i386/t-crtpic | |
1350 | xmake_file=x-svr4 | |
1351 | extra_parts="crtbegin.o crtend.o" | |
1352 | ;; | |
5aaf0123 RL |
1353 | changequote(,)dnl |
1354 | i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit | |
1355 | changequote([,])dnl | |
1356 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" | |
1357 | xm_defines="USG POSIX" | |
1358 | tm_file=i386/udk.h | |
1359 | tmake_file="i386/t-crtpic i386/t-udk" | |
1360 | xmake_file=x-svr4 | |
1361 | extra_parts="crtbegin.o crtend.o" | |
1362 | fixincludes="fixinc.svr4" | |
1363 | ;; | |
75bffa71 ILT |
1364 | changequote(,)dnl |
1365 | i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+ | |
1366 | changequote([,])dnl | |
f5963e61 JL |
1367 | cpu_type=i386 |
1368 | xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h" | |
1369 | xm_defines="USE_C_ALLOCA SMALL_ARG_MAX" | |
1370 | fixincludes=Makefile.in #Don't do it on OSF/1 | |
75bffa71 | 1371 | if test x$stabs = xyes |
f5963e61 JL |
1372 | then |
1373 | tm_file=i386/osf1elfgdb.h | |
1374 | else | |
1375 | tm_file=i386/osf1elf.h | |
1376 | fi | |
1377 | tmake_file=i386/t-osf1elf | |
1378 | xmake_file=i386/x-osf1elf | |
1379 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
1380 | ;; | |
75bffa71 ILT |
1381 | changequote(,)dnl |
1382 | i[34567]86-*-sysv*) # Intel 80386's running system V | |
1383 | changequote([,])dnl | |
61536478 | 1384 | xm_defines="USG SVR3" |
46f18e7b | 1385 | xmake_file=i386/x-sysv3 |
75bffa71 | 1386 | if test x$gas = xyes |
46f18e7b | 1387 | then |
75bffa71 | 1388 | if test x$stabs = xyes |
46f18e7b RK |
1389 | then |
1390 | tm_file=i386/svr3dbx.h | |
1391 | tmake_file=i386/t-svr3dbx | |
1392 | extra_parts="svr3.ifile svr3z.rfile" | |
1393 | else | |
1394 | tm_file=i386/svr3gas.h | |
1395 | extra_parts="crtbegin.o crtend.o" | |
1396 | tmake_file=i386/t-crtstuff | |
1397 | fi | |
1398 | else | |
1399 | tm_file=i386/sysv3.h | |
1400 | extra_parts="crtbegin.o crtend.o" | |
1401 | tmake_file=i386/t-crtstuff | |
1402 | fi | |
1403 | ;; | |
1404 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
f5963e61 | 1405 | xm_file="${xm_file} i386/xm-vsta.h" |
46f18e7b RK |
1406 | tm_file=i386/vsta.h |
1407 | tmake_file=i386/t-vsta | |
1408 | xmake_file=i386/x-vsta | |
1409 | ;; | |
75bffa71 ILT |
1410 | changequote(,)dnl |
1411 | i[34567]86-*-win32) | |
1412 | changequote([,])dnl | |
84530511 SC |
1413 | xm_file="${xm_file} i386/xm-cygwin32.h" |
1414 | tmake_file=i386/t-cygwin32 | |
1415 | tm_file=i386/win32.h | |
1416 | xmake_file=i386/x-cygwin32 | |
1417 | extra_objs=winnt.o | |
1418 | fixincludes=Makefile.in | |
75bffa71 | 1419 | if test x$enable_threads = xyes; then |
84530511 SC |
1420 | thread_file='win32' |
1421 | fi | |
1422 | exeext=.exe | |
1423 | ;; | |
75bffa71 ILT |
1424 | changequote(,)dnl |
1425 | i[34567]86-*-pe | i[34567]86-*-cygwin32) | |
1426 | changequote([,])dnl | |
46f18e7b RK |
1427 | xm_file="${xm_file} i386/xm-cygwin32.h" |
1428 | tmake_file=i386/t-cygwin32 | |
1429 | tm_file=i386/cygwin32.h | |
1430 | xmake_file=i386/x-cygwin32 | |
1431 | extra_objs=winnt.o | |
1432 | fixincludes=Makefile.in | |
75bffa71 | 1433 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1434 | thread_file='win32' |
1435 | fi | |
46f18e7b RK |
1436 | exeext=.exe |
1437 | ;; | |
75bffa71 ILT |
1438 | changequote(,)dnl |
1439 | i[34567]86-*-mingw32*) | |
1440 | changequote([,])dnl | |
5dfe8508 RK |
1441 | tm_file=i386/mingw32.h |
1442 | xm_file="${xm_file} i386/xm-mingw32.h" | |
1a4bf22f | 1443 | tmake_file="i386/t-cygwin32 i386/t-mingw32" |
5dfe8508 RK |
1444 | extra_objs=winnt.o |
1445 | xmake_file=i386/x-cygwin32 | |
1446 | fixincludes=Makefile.in | |
75bffa71 | 1447 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1448 | thread_file='win32' |
1449 | fi | |
5dfe8508 | 1450 | exeext=.exe |
61536478 JL |
1451 | case $machine in |
1452 | *mingw32msv*) | |
1453 | ;; | |
1454 | *minwg32crt* | *mingw32*) | |
1455 | tm_file="${tm_file} i386/crtdll.h" | |
1456 | ;; | |
1457 | esac | |
5dfe8508 | 1458 | ;; |
75bffa71 ILT |
1459 | changequote(,)dnl |
1460 | i[34567]86-*-winnt3*) | |
1461 | changequote([,])dnl | |
46f18e7b RK |
1462 | tm_file=i386/win-nt.h |
1463 | out_file=i386/i386.c | |
61536478 | 1464 | xm_file="xm-winnt.h ${xm_file}" |
46f18e7b RK |
1465 | xmake_file=winnt/x-winnt |
1466 | tmake_file=i386/t-winnt | |
1467 | extra_host_objs="winnt.o oldnames.o" | |
1468 | extra_gcc_objs="spawnv.o oldnames.o" | |
1469 | fixincludes=fixinc.winnt | |
75bffa71 | 1470 | if test x$gnu_ld != xyes |
46f18e7b RK |
1471 | then |
1472 | extra_programs=ld.exe | |
1473 | fi | |
75bffa71 | 1474 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1475 | thread_file='win32' |
1476 | fi | |
46f18e7b | 1477 | ;; |
75bffa71 ILT |
1478 | changequote(,)dnl |
1479 | i[34567]86-dg-dgux*) | |
1480 | changequote([,])dnl | |
61536478 JL |
1481 | xm_file="xm-alloca.h xm-siglist.h ${xm_file}" |
1482 | xm_defines="USG POSIX" | |
46f18e7b RK |
1483 | out_file=i386/dgux.c |
1484 | tm_file=i386/dgux.h | |
1485 | tmake_file=i386/t-dgux | |
1486 | xmake_file=i386/x-dgux | |
9590eb1b | 1487 | fixincludes=fixinc.dgux |
46f18e7b RK |
1488 | install_headers_dir=install-headers-cpio |
1489 | ;; | |
1490 | i860-alliant-*) # Alliant FX/2800 | |
1491 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
956d6950 | 1492 | xm_file="${xm_file}" |
46f18e7b RK |
1493 | xmake_file=i860/x-fx2800 |
1494 | tmake_file=i860/t-fx2800 | |
1495 | extra_parts="crtbegin.o crtend.o" | |
1496 | ;; | |
1497 | i860-*-bsd*) | |
1498 | tm_file="${tm_file} i860/bsd.h" | |
75bffa71 | 1499 | if test x$gas = xyes |
46f18e7b RK |
1500 | then |
1501 | tm_file="${tm_file} i860/bsd-gas.h" | |
1502 | fi | |
1503 | use_collect2=yes | |
1504 | ;; | |
1505 | i860-*-mach*) | |
1506 | tm_file="${tm_file} i860/mach.h" | |
1507 | tmake_file=t-libc-ok | |
1508 | ;; | |
1509 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
1510 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
61536478 | 1511 | xm_defines="USG SVR3" |
46f18e7b | 1512 | tmake_file=t-osf |
46f18e7b RK |
1513 | ;; |
1514 | i860-*-sysv3*) | |
1515 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
61536478 | 1516 | xm_defines="USG SVR3" |
46f18e7b RK |
1517 | xmake_file=i860/x-sysv3 |
1518 | extra_parts="crtbegin.o crtend.o" | |
1519 | ;; | |
1520 | i860-*-sysv4*) | |
1521 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
61536478 | 1522 | xm_defines="USG SVR3" |
46f18e7b RK |
1523 | xmake_file=i860/x-sysv4 |
1524 | tmake_file=t-svr4 | |
1525 | extra_parts="crtbegin.o crtend.o" | |
1526 | ;; | |
1527 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
1528 | tm_file="${tm_file} i960/vx960.h" | |
1529 | tmake_file=i960/t-vxworks960 | |
1530 | use_collect2=yes | |
7cc34889 | 1531 | thread_file='vxworks' |
46f18e7b | 1532 | ;; |
a0372c94 | 1533 | i960-wrs-vxworks5* | i960-wrs-vxworks) |
46f18e7b RK |
1534 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" |
1535 | tmake_file=i960/t-vxworks960 | |
1536 | use_collect2=yes | |
7cc34889 | 1537 | thread_file='vxworks' |
46f18e7b RK |
1538 | ;; |
1539 | i960-wrs-vxworks*) | |
1540 | tm_file="${tm_file} i960/vx960.h" | |
1541 | tmake_file=i960/t-vxworks960 | |
1542 | use_collect2=yes | |
7cc34889 | 1543 | thread_file='vxworks' |
46f18e7b RK |
1544 | ;; |
1545 | i960-*-coff*) | |
1546 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
1547 | tmake_file=i960/t-960bare | |
1548 | use_collect2=yes | |
1549 | ;; | |
1550 | i960-*-rtems) | |
1551 | tmake_file="i960/t-960bare t-rtems" | |
1552 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
1553 | use_collect2=yes | |
1554 | ;; | |
1555 | i960-*-*) # Default i960 environment. | |
1556 | use_collect2=yes | |
1557 | ;; | |
dec3e070 JW |
1558 | m32r-*-elf*) |
1559 | extra_parts="crtinit.o crtfini.o" | |
1560 | ;; | |
46f18e7b RK |
1561 | m68000-convergent-sysv*) |
1562 | tm_file=m68k/ctix.h | |
61536478 JL |
1563 | xm_file="m68k/xm-3b1.h ${xm_file}" |
1564 | xm_defines=USG | |
46f18e7b RK |
1565 | use_collect2=yes |
1566 | extra_headers=math-68881.h | |
1567 | ;; | |
1568 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
1569 | tm_file=m68k/hp2bsd.h | |
1570 | xmake_file=m68k/x-hp2bsd | |
1571 | use_collect2=yes | |
1572 | extra_headers=math-68881.h | |
1573 | ;; | |
1574 | m68000-hp-hpux*) # HP 9000 series 300 | |
61536478 JL |
1575 | xm_file="xm_alloca.h ${xm_file}" |
1576 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 1577 | if test x$gas = xyes |
46f18e7b RK |
1578 | then |
1579 | xmake_file=m68k/x-hp320g | |
1580 | tm_file=m68k/hp310g.h | |
1581 | else | |
1582 | xmake_file=m68k/x-hp320 | |
1583 | tm_file=m68k/hp310.h | |
1584 | fi | |
46f18e7b RK |
1585 | install_headers_dir=install-headers-cpio |
1586 | use_collect2=yes | |
1587 | extra_headers=math-68881.h | |
1588 | ;; | |
1589 | m68000-sun-sunos3*) | |
1590 | tm_file=m68k/sun2.h | |
1591 | use_collect2=yes | |
1592 | extra_headers=math-68881.h | |
1593 | ;; | |
1594 | m68000-sun-sunos4*) | |
1595 | tm_file=m68k/sun2o4.h | |
1596 | use_collect2=yes | |
1597 | extra_headers=math-68881.h | |
1598 | ;; | |
1599 | m68000-att-sysv*) | |
61536478 JL |
1600 | xm_file="m68k/xm-3b1.h ${xm_file}" |
1601 | xm_defines=USG | |
75bffa71 | 1602 | if test x$gas = xyes |
46f18e7b RK |
1603 | then |
1604 | tm_file=m68k/3b1g.h | |
1605 | else | |
1606 | tm_file=m68k/3b1.h | |
1607 | fi | |
1608 | use_collect2=yes | |
1609 | extra_headers=math-68881.h | |
1610 | ;; | |
1611 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
61536478 | 1612 | xm_defines="USG AUX" |
46f18e7b | 1613 | tmake_file=m68k/t-aux |
46f18e7b RK |
1614 | install_headers_dir=install-headers-cpio |
1615 | extra_headers=math-68881.h | |
1616 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
1617 | tm_file= | |
75bffa71 | 1618 | if test "$gnu_ld" = yes |
46f18e7b RK |
1619 | then |
1620 | tm_file="${tm_file} m68k/auxgld.h" | |
1621 | else | |
1622 | tm_file="${tm_file} m68k/auxld.h" | |
1623 | fi | |
75bffa71 | 1624 | if test "$gas" = yes |
46f18e7b RK |
1625 | then |
1626 | tm_file="${tm_file} m68k/auxgas.h" | |
1627 | else | |
1628 | tm_file="${tm_file} m68k/auxas.h" | |
1629 | fi | |
1630 | tm_file="${tm_file} m68k/a-ux.h" | |
c8db55b0 | 1631 | float_format=m68k |
46f18e7b RK |
1632 | ;; |
1633 | m68k-apollo-*) | |
1634 | tm_file=m68k/apollo68.h | |
1635 | xmake_file=m68k/x-apollo68 | |
1636 | use_collect2=yes | |
1637 | extra_headers=math-68881.h | |
c8db55b0 | 1638 | float_format=m68k |
46f18e7b RK |
1639 | ;; |
1640 | m68k-altos-sysv*) # Altos 3068 | |
75bffa71 | 1641 | if test x$gas = xyes |
46f18e7b RK |
1642 | then |
1643 | tm_file=m68k/altos3068.h | |
61536478 | 1644 | xm_defines=USG |
46f18e7b RK |
1645 | else |
1646 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
1647 | exit 1 | |
1648 | fi | |
1649 | extra_headers=math-68881.h | |
1650 | ;; | |
1651 | m68k-bull-sysv*) # Bull DPX/2 | |
75bffa71 | 1652 | if test x$gas = xyes |
46f18e7b | 1653 | then |
75bffa71 | 1654 | if test x$stabs = xyes |
46f18e7b RK |
1655 | then |
1656 | tm_file=m68k/dpx2cdbx.h | |
1657 | else | |
1658 | tm_file=m68k/dpx2g.h | |
1659 | fi | |
1660 | else | |
1661 | tm_file=m68k/dpx2.h | |
1662 | fi | |
61536478 JL |
1663 | xm_file="xm-alloca.h ${xm_file}" |
1664 | xm_defines=USG | |
46f18e7b RK |
1665 | xmake_file=m68k/x-dpx2 |
1666 | use_collect2=yes | |
1667 | extra_headers=math-68881.h | |
1668 | ;; | |
1669 | m68k-atari-sysv4*) # Atari variant of V.4. | |
1670 | tm_file=m68k/atari.h | |
61536478 JL |
1671 | xm_file="xm-alloca.h ${xm_file}" |
1672 | xm_defines="USG FULL_PROTOTYPES" | |
46f18e7b RK |
1673 | tmake_file=t-svr4 |
1674 | extra_parts="crtbegin.o crtend.o" | |
1675 | extra_headers=math-68881.h | |
c8db55b0 | 1676 | float_format=m68k |
46f18e7b RK |
1677 | ;; |
1678 | m68k-motorola-sysv*) | |
1679 | tm_file=m68k/mot3300.h | |
61536478 JL |
1680 | xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}" |
1681 | xm_defines=NO_SYS_SIGLIST | |
75bffa71 | 1682 | if test x$gas = xyes |
46f18e7b RK |
1683 | then |
1684 | xmake_file=m68k/x-mot3300-gas | |
75bffa71 | 1685 | if test x$gnu_ld = xyes |
46f18e7b RK |
1686 | then |
1687 | tmake_file=m68k/t-mot3300-gald | |
1688 | else | |
1689 | tmake_file=m68k/t-mot3300-gas | |
1690 | use_collect2=yes | |
1691 | fi | |
1692 | else | |
1693 | xmake_file=m68k/x-mot3300 | |
75bffa71 | 1694 | if test x$gnu_ld = xyes |
46f18e7b RK |
1695 | then |
1696 | tmake_file=m68k/t-mot3300-gld | |
1697 | else | |
1698 | tmake_file=m68k/t-mot3300 | |
1699 | use_collect2=yes | |
1700 | fi | |
1701 | fi | |
1702 | gdb_needs_out_file_path=yes | |
1703 | extra_parts="crt0.o mcrt0.o" | |
1704 | extra_headers=math-68881.h | |
c8db55b0 | 1705 | float_format=m68k |
46f18e7b RK |
1706 | ;; |
1707 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
1708 | tm_file=m68k/tower-as.h | |
61536478 | 1709 | xm_defines="USG SVR3" |
46f18e7b RK |
1710 | xmake_file=m68k/x-tower |
1711 | extra_parts="crtbegin.o crtend.o" | |
1712 | extra_headers=math-68881.h | |
1713 | ;; | |
1714 | m68k-plexus-sysv*) | |
1715 | tm_file=m68k/plexus.h | |
61536478 JL |
1716 | xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}" |
1717 | xm_defines=USG | |
46f18e7b RK |
1718 | use_collect2=yes |
1719 | extra_headers=math-68881.h | |
1720 | ;; | |
1721 | m68k-tti-*) | |
1722 | tm_file=m68k/pbb.h | |
61536478 JL |
1723 | xm_file="xm-alloca.h ${xm_file}" |
1724 | xm_defines=USG | |
46f18e7b RK |
1725 | extra_headers=math-68881.h |
1726 | ;; | |
1727 | m68k-crds-unos*) | |
61536478 JL |
1728 | xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}" |
1729 | xm_defines="USG unos" | |
46f18e7b RK |
1730 | xmake_file=m68k/x-crds |
1731 | tm_file=m68k/crds.h | |
46f18e7b RK |
1732 | use_collect2=yes |
1733 | extra_headers=math-68881.h | |
1734 | ;; | |
1735 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
1736 | tm_file=m68k/amix.h | |
61536478 JL |
1737 | xm_file="xm-alloca.h ${xm_file}" |
1738 | xm_defines="USG FULL_PROTOTYPES" | |
46f18e7b RK |
1739 | xmake_file=m68k/x-amix |
1740 | tmake_file=t-svr4 | |
1741 | extra_parts="crtbegin.o crtend.o" | |
1742 | extra_headers=math-68881.h | |
c8db55b0 | 1743 | float_format=m68k |
46f18e7b RK |
1744 | ;; |
1745 | m68k-ccur-rtu) | |
1746 | tm_file=m68k/ccur-GAS.h | |
1747 | xmake_file=m68k/x-ccur | |
1748 | extra_headers=math-68881.h | |
1749 | use_collect2=yes | |
c8db55b0 | 1750 | float_format=m68k |
46f18e7b RK |
1751 | ;; |
1752 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
1753 | tm_file=m68k/hp3bsd44.h | |
1754 | xmake_file=m68k/x-hp3bsd44 | |
1755 | use_collect2=yes | |
1756 | extra_headers=math-68881.h | |
c8db55b0 | 1757 | float_format=m68k |
46f18e7b RK |
1758 | ;; |
1759 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
1760 | tm_file=m68k/hp3bsd.h | |
1761 | use_collect2=yes | |
1762 | extra_headers=math-68881.h | |
c8db55b0 | 1763 | float_format=m68k |
46f18e7b RK |
1764 | ;; |
1765 | m68k-isi-bsd*) | |
75bffa71 | 1766 | if test x$with_fp = xno |
46f18e7b RK |
1767 | then |
1768 | tm_file=m68k/isi-nfp.h | |
1769 | else | |
1770 | tm_file=m68k/isi.h | |
c8db55b0 | 1771 | float_format=m68k |
46f18e7b RK |
1772 | fi |
1773 | use_collect2=yes | |
1774 | extra_headers=math-68881.h | |
1775 | ;; | |
1776 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
61536478 JL |
1777 | xm_file="xm_alloca.h ${xm_file}" |
1778 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 1779 | if test x$gas = xyes |
46f18e7b RK |
1780 | then |
1781 | xmake_file=m68k/x-hp320g | |
1782 | tm_file=m68k/hp320g.h | |
1783 | else | |
1784 | xmake_file=m68k/x-hp320 | |
1785 | tm_file=m68k/hpux7.h | |
1786 | fi | |
46f18e7b RK |
1787 | install_headers_dir=install-headers-cpio |
1788 | use_collect2=yes | |
1789 | extra_headers=math-68881.h | |
c8db55b0 | 1790 | float_format=m68k |
46f18e7b RK |
1791 | ;; |
1792 | m68k-hp-hpux*) # HP 9000 series 300 | |
61536478 JL |
1793 | xm_file="xm_alloca.h ${xm_file}" |
1794 | xm_defines="USG NO_SYS_SIGLIST" | |
75bffa71 | 1795 | if test x$gas = xyes |
46f18e7b RK |
1796 | then |
1797 | xmake_file=m68k/x-hp320g | |
1798 | tm_file=m68k/hp320g.h | |
1799 | else | |
1800 | xmake_file=m68k/x-hp320 | |
1801 | tm_file=m68k/hp320.h | |
1802 | fi | |
46f18e7b RK |
1803 | install_headers_dir=install-headers-cpio |
1804 | use_collect2=yes | |
1805 | extra_headers=math-68881.h | |
c8db55b0 | 1806 | float_format=m68k |
46f18e7b RK |
1807 | ;; |
1808 | m68k-sun-mach*) | |
1809 | tm_file=m68k/sun3mach.h | |
1810 | use_collect2=yes | |
1811 | extra_headers=math-68881.h | |
c8db55b0 | 1812 | float_format=m68k |
46f18e7b RK |
1813 | ;; |
1814 | m68k-sony-newsos3*) | |
75bffa71 | 1815 | if test x$gas = xyes |
46f18e7b RK |
1816 | then |
1817 | tm_file=m68k/news3gas.h | |
1818 | else | |
1819 | tm_file=m68k/news3.h | |
1820 | fi | |
1821 | use_collect2=yes | |
1822 | extra_headers=math-68881.h | |
c8db55b0 | 1823 | float_format=m68k |
46f18e7b RK |
1824 | ;; |
1825 | m68k-sony-bsd* | m68k-sony-newsos*) | |
75bffa71 | 1826 | if test x$gas = xyes |
46f18e7b RK |
1827 | then |
1828 | tm_file=m68k/newsgas.h | |
1829 | else | |
1830 | tm_file=m68k/news.h | |
1831 | fi | |
1832 | use_collect2=yes | |
1833 | extra_headers=math-68881.h | |
c8db55b0 | 1834 | float_format=m68k |
46f18e7b RK |
1835 | ;; |
1836 | m68k-next-nextstep2*) | |
1837 | tm_file=m68k/next21.h | |
61536478 | 1838 | xm_file="m68k/xm-next.h ${xm_file}" |
46f18e7b RK |
1839 | tmake_file=m68k/t-next |
1840 | xmake_file=m68k/x-next | |
1841 | extra_objs=nextstep.o | |
1842 | extra_headers=math-68881.h | |
1843 | use_collect2=yes | |
c8db55b0 | 1844 | float_format=m68k |
46f18e7b RK |
1845 | ;; |
1846 | m68k-next-nextstep3*) | |
1847 | tm_file=m68k/next.h | |
61536478 | 1848 | xm_file="m68k/xm-next.h ${xm_file}" |
46f18e7b RK |
1849 | tmake_file=m68k/t-next |
1850 | xmake_file=m68k/x-next | |
1851 | extra_objs=nextstep.o | |
750930c1 | 1852 | extra_parts="crtbegin.o crtend.o" |
46f18e7b | 1853 | extra_headers=math-68881.h |
c8db55b0 | 1854 | float_format=m68k |
75bffa71 | 1855 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
1856 | thread_file='mach' |
1857 | fi | |
46f18e7b RK |
1858 | ;; |
1859 | m68k-sun-sunos3*) | |
75bffa71 | 1860 | if test x$with_fp = xno |
46f18e7b RK |
1861 | then |
1862 | tm_file=m68k/sun3n3.h | |
1863 | else | |
1864 | tm_file=m68k/sun3o3.h | |
c8db55b0 | 1865 | float_format=m68k |
46f18e7b RK |
1866 | fi |
1867 | use_collect2=yes | |
1868 | extra_headers=math-68881.h | |
1869 | ;; | |
1870 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
75bffa71 | 1871 | if test x$with_fp = xno |
46f18e7b RK |
1872 | then |
1873 | tm_file=m68k/sun3n.h | |
1874 | else | |
1875 | tm_file=m68k/sun3.h | |
c8db55b0 | 1876 | float_format=m68k |
46f18e7b | 1877 | fi |
46f18e7b RK |
1878 | use_collect2=yes |
1879 | extra_headers=math-68881.h | |
1880 | ;; | |
1881 | m68k-wrs-vxworks*) | |
1882 | tm_file=m68k/vxm68k.h | |
1883 | tmake_file=m68k/t-vxworks68 | |
1884 | extra_headers=math-68881.h | |
7cc34889 | 1885 | thread_file='vxworks' |
c8db55b0 | 1886 | float_format=m68k |
46f18e7b RK |
1887 | ;; |
1888 | m68k-*-aout*) | |
1889 | tmake_file=m68k/t-m68kbare | |
1890 | tm_file="m68k/m68k-aout.h libgloss.h" | |
1891 | extra_headers=math-68881.h | |
c8db55b0 | 1892 | float_format=m68k |
46f18e7b RK |
1893 | ;; |
1894 | m68k-*-coff*) | |
1895 | tmake_file=m68k/t-m68kbare | |
1896 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
1897 | extra_headers=math-68881.h | |
c8db55b0 | 1898 | float_format=m68k |
46f18e7b RK |
1899 | ;; |
1900 | m68k-*-lynxos*) | |
75bffa71 | 1901 | if test x$gas = xyes |
46f18e7b RK |
1902 | then |
1903 | tm_file=m68k/lynx.h | |
1904 | else | |
1905 | tm_file=m68k/lynx-ng.h | |
1906 | fi | |
1907 | xm_file=m68k/xm-lynx.h | |
1908 | xmake_file=x-lynx | |
1909 | tmake_file=m68k/t-lynx | |
1910 | extra_headers=math-68881.h | |
c8db55b0 | 1911 | float_format=m68k |
46f18e7b | 1912 | ;; |
58600d24 | 1913 | m68k*-*-netbsd*) |
46f18e7b | 1914 | tm_file=m68k/netbsd.h |
be1ed94f | 1915 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 1916 | fixincludes=fixinc.wrap |
e47f44f4 | 1917 | tmake_file=t-netbsd |
c8db55b0 | 1918 | float_format=m68k |
46f18e7b RK |
1919 | ;; |
1920 | m68k-*-sysv3*) # Motorola m68k's running system V.3 | |
61536478 JL |
1921 | xm_file="xm-alloca.h ${xm_file}" |
1922 | xm_defines=USG | |
46f18e7b RK |
1923 | xmake_file=m68k/x-m68kv |
1924 | extra_parts="crtbegin.o crtend.o" | |
1925 | extra_headers=math-68881.h | |
c8db55b0 | 1926 | float_format=m68k |
46f18e7b RK |
1927 | ;; |
1928 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
1929 | tm_file=m68k/m68kv4.h | |
61536478 JL |
1930 | xm_file="xm-alloca.h ${xm_file}" |
1931 | xm_defines=USG | |
46f18e7b RK |
1932 | tmake_file=t-svr4 |
1933 | extra_parts="crtbegin.o crtend.o" | |
1934 | extra_headers=math-68881.h | |
c8db55b0 | 1935 | float_format=m68k |
46f18e7b | 1936 | ;; |
956d6950 | 1937 | m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux |
61536478 | 1938 | # with a.out format |
46f18e7b RK |
1939 | xmake_file=x-linux |
1940 | tm_file=m68k/linux-aout.h | |
1941 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
956d6950 | 1942 | fixincludes=Makefile.in # The headers are ok already. |
46f18e7b | 1943 | extra_headers=math-68881.h |
c8db55b0 | 1944 | float_format=m68k |
46f18e7b | 1945 | gnu_ld=yes |
46f18e7b | 1946 | ;; |
956d6950 | 1947 | m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux |
61536478 JL |
1948 | # with ELF format using the |
1949 | # GNU/Linux C library 5 | |
1950 | xmake_file=x-linux | |
95fd3981 RK |
1951 | tm_file=m68k/linux.h |
1952 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
1953 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 1954 | fixincludes=Makefile.in # The headers are ok already. |
95fd3981 | 1955 | extra_headers=math-68881.h |
c8db55b0 | 1956 | float_format=m68k |
95fd3981 RK |
1957 | gnu_ld=yes |
1958 | ;; | |
956d6950 | 1959 | m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux |
61536478 JL |
1960 | # with ELF format using glibc 2 |
1961 | # aka the GNU/Linux C library 6. | |
1962 | xmake_file=x-linux | |
46f18e7b RK |
1963 | tm_file=m68k/linux.h |
1964 | tmake_file="t-linux m68k/t-linux" | |
1965 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
956d6950 | 1966 | fixincludes=Makefile.in # The headers are ok already. |
46f18e7b | 1967 | extra_headers=math-68881.h |
c8db55b0 | 1968 | float_format=m68k |
46f18e7b | 1969 | gnu_ld=yes |
75bffa71 | 1970 | if test x$enable_threads = xyes; then |
95fd3981 RK |
1971 | thread_file='posix' |
1972 | fi | |
46f18e7b RK |
1973 | ;; |
1974 | m68k-*-psos*) | |
1975 | tmake_file=m68k/t-m68kbare | |
1976 | tm_file=m68k/m68k-psos.h | |
1977 | extra_headers=math-68881.h | |
c8db55b0 | 1978 | float_format=m68k |
46f18e7b RK |
1979 | ;; |
1980 | m68k-*-rtems*) | |
1981 | tmake_file="m68k/t-m68kbare t-rtems" | |
1982 | tm_file=m68k/rtems.h | |
1983 | extra_headers=math-68881.h | |
c8db55b0 | 1984 | float_format=m68k |
46f18e7b RK |
1985 | ;; |
1986 | ||
1987 | m88k-dg-dgux*) | |
1988 | case $machine in | |
1989 | m88k-dg-dguxbcs*) | |
1990 | tm_file=m88k/dguxbcs.h | |
1991 | tmake_file=m88k/t-dguxbcs | |
1992 | ;; | |
1993 | *) | |
1994 | tm_file=m88k/dgux.h | |
1995 | tmake_file=m88k/t-dgux | |
1996 | ;; | |
1997 | esac | |
1998 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
46f18e7b | 1999 | xmake_file=m88k/x-dgux |
75bffa71 | 2000 | if test x$gas = xyes |
46f18e7b RK |
2001 | then |
2002 | tmake_file=m88k/t-dgux-gas | |
2003 | fi | |
2004 | fixincludes=fixinc.dgux | |
2005 | ;; | |
2006 | m88k-dolphin-sysv3*) | |
2007 | tm_file=m88k/dolph.h | |
2008 | extra_parts="crtbegin.o crtend.o" | |
61536478 | 2009 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
46f18e7b | 2010 | xmake_file=m88k/x-dolph |
75bffa71 | 2011 | if test x$gas = xyes |
46f18e7b RK |
2012 | then |
2013 | tmake_file=m88k/t-m88k-gas | |
2014 | fi | |
2015 | ;; | |
2016 | m88k-tektronix-sysv3) | |
2017 | tm_file=m88k/tekXD88.h | |
2018 | extra_parts="crtbegin.o crtend.o" | |
61536478 | 2019 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
46f18e7b | 2020 | xmake_file=m88k/x-tekXD88 |
75bffa71 | 2021 | if test x$gas = xyes |
46f18e7b RK |
2022 | then |
2023 | tmake_file=m88k/t-m88k-gas | |
2024 | fi | |
2025 | ;; | |
2026 | m88k-*-aout*) | |
2027 | tm_file=m88k/m88k-aout.h | |
2028 | ;; | |
2029 | m88k-*-coff*) | |
2030 | tm_file=m88k/m88k-coff.h | |
2031 | tmake_file=m88k/t-bug | |
2032 | ;; | |
2033 | m88k-*-luna*) | |
2034 | tm_file=m88k/luna.h | |
2035 | extra_parts="crtbegin.o crtend.o" | |
75bffa71 | 2036 | if test x$gas = xyes |
46f18e7b RK |
2037 | then |
2038 | tmake_file=m88k/t-luna-gas | |
2039 | else | |
2040 | tmake_file=m88k/t-luna | |
2041 | fi | |
2042 | ;; | |
2043 | m88k-*-sysv3*) | |
2044 | tm_file=m88k/sysv3.h | |
2045 | extra_parts="crtbegin.o crtend.o" | |
61536478 | 2046 | xm_file="m88k/xm-sysv3.h ${xm_file}" |
46f18e7b | 2047 | xmake_file=m88k/x-sysv3 |
75bffa71 | 2048 | if test x$gas = xyes |
46f18e7b RK |
2049 | then |
2050 | tmake_file=m88k/t-m88k-gas | |
2051 | fi | |
2052 | ;; | |
2053 | m88k-*-sysv4*) | |
2054 | tm_file=m88k/sysv4.h | |
2055 | extra_parts="crtbegin.o crtend.o" | |
2056 | xmake_file=m88k/x-sysv4 | |
2057 | tmake_file=m88k/t-sysv4 | |
2058 | ;; | |
2059 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
2060 | tm_file=mips/iris6.h | |
2061 | xm_file=mips/xm-iris6.h | |
46f18e7b RK |
2062 | fixincludes=fixinc.irix |
2063 | xmake_file=mips/x-iris6 | |
2064 | tmake_file=mips/t-iris6 | |
04069e5c | 2065 | # if test x$enable_threads = xyes; then |
6e148807 | 2066 | # thread_file='irix' |
04069e5c | 2067 | # fi |
46f18e7b | 2068 | ;; |
98bd9f0f DB |
2069 | mips-wrs-vxworks) |
2070 | tm_file="mips/elf.h libgloss.h" | |
2071 | tmake_file=mips/t-ecoff | |
2072 | gas=yes | |
2073 | gnu_ld=yes | |
2074 | extra_parts="crtbegin.o crtend.o" | |
2075 | # thread_file='vxworks' | |
2076 | ;; | |
46f18e7b | 2077 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 |
61536478 | 2078 | tm_file="mips/iris6.h mips/cross64.h" |
74c55ab0 JW |
2079 | xm_defines=USG |
2080 | xm_file="mips/xm-iris5.h" | |
46f18e7b RK |
2081 | fixincludes=Makefile.in |
2082 | xmake_file=mips/x-iris | |
2083 | tmake_file=mips/t-cross64 | |
2084 | # See comment in mips/iris[56].h files. | |
2085 | use_collect2=yes | |
04069e5c | 2086 | # if test x$enable_threads = xyes; then |
6e148807 | 2087 | # thread_file='irix' |
04069e5c | 2088 | # fi |
46f18e7b RK |
2089 | ;; |
2090 | mips-sni-sysv4) | |
75bffa71 | 2091 | if test x$gas = xyes |
46f18e7b | 2092 | then |
75bffa71 | 2093 | if test x$stabs = xyes |
46f18e7b RK |
2094 | then |
2095 | tm_file=mips/iris5gdb.h | |
2096 | else | |
61536478 | 2097 | tm_file="mips/sni-svr4.h mips/sni-gas.h" |
46f18e7b RK |
2098 | fi |
2099 | else | |
2100 | tm_file=mips/sni-svr4.h | |
2101 | fi | |
61536478 | 2102 | xm_defines=USG |
46f18e7b RK |
2103 | xmake_file=mips/x-sni-svr4 |
2104 | tmake_file=mips/t-mips-gas | |
75bffa71 | 2105 | if test x$gnu_ld != xyes |
46f18e7b RK |
2106 | then |
2107 | use_collect2=yes | |
2108 | fi | |
46f18e7b RK |
2109 | ;; |
2110 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
75bffa71 | 2111 | if test x$gas = xyes |
46f18e7b | 2112 | then |
61536478 | 2113 | tm_file="mips/iris5.h mips/iris5gas.h" |
75bffa71 | 2114 | if test x$stabs = xyes |
46f18e7b RK |
2115 | then |
2116 | tm_file="${tm_file} dbx.h" | |
2117 | fi | |
2118 | else | |
2119 | tm_file=mips/iris5.h | |
2120 | fi | |
74c55ab0 JW |
2121 | xm_defines=USG |
2122 | xm_file="mips/xm-iris5.h" | |
46f18e7b RK |
2123 | fixincludes=fixinc.irix |
2124 | xmake_file=mips/x-iris | |
2125 | # mips-tfile doesn't work yet | |
2126 | tmake_file=mips/t-mips-gas | |
2127 | # See comment in mips/iris5.h file. | |
2128 | use_collect2=yes | |
04069e5c | 2129 | # if test x$enable_threads = xyes; then |
6e148807 | 2130 | # thread_file='irix' |
04069e5c | 2131 | # fi |
46f18e7b RK |
2132 | ;; |
2133 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
61536478 | 2134 | tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 2135 | if test x$stabs = xyes; then |
46f18e7b RK |
2136 | tm_file="${tm_file} dbx.h" |
2137 | fi | |
61536478 | 2138 | xm_defines=USG |
46f18e7b | 2139 | xmake_file=mips/x-iris |
75bffa71 | 2140 | if test x$gas = xyes |
46f18e7b RK |
2141 | then |
2142 | tmake_file=mips/t-mips-gas | |
2143 | else | |
2144 | extra_passes="mips-tfile mips-tdump" | |
2145 | fi | |
75bffa71 | 2146 | if test x$gnu_ld != xyes |
46f18e7b RK |
2147 | then |
2148 | use_collect2=yes | |
2149 | fi | |
04069e5c | 2150 | # if test x$enable_threads = xyes; then |
6e148807 | 2151 | # thread_file='irix' |
04069e5c | 2152 | # fi |
46f18e7b RK |
2153 | ;; |
2154 | mips-sgi-irix4*) # Mostly like a MIPS. | |
61536478 | 2155 | tm_file="mips/iris3.h ${tm_file} mips/iris4.h" |
75bffa71 | 2156 | if test x$stabs = xyes; then |
46f18e7b RK |
2157 | tm_file="${tm_file} dbx.h" |
2158 | fi | |
61536478 | 2159 | xm_defines=USG |
46f18e7b | 2160 | xmake_file=mips/x-iris |
75bffa71 | 2161 | if test x$gas = xyes |
46f18e7b RK |
2162 | then |
2163 | tmake_file=mips/t-mips-gas | |
2164 | else | |
2165 | extra_passes="mips-tfile mips-tdump" | |
2166 | fi | |
75bffa71 | 2167 | if test x$gnu_ld != xyes |
46f18e7b RK |
2168 | then |
2169 | use_collect2=yes | |
2170 | fi | |
04069e5c | 2171 | # if test x$enable_threads = xyes; then |
6e148807 | 2172 | # thread_file='irix' |
04069e5c | 2173 | # fi |
46f18e7b RK |
2174 | ;; |
2175 | mips-sgi-*) # Mostly like a MIPS. | |
61536478 | 2176 | tm_file="mips/iris3.h ${tm_file}" |
75bffa71 | 2177 | if test x$stabs = xyes; then |
46f18e7b RK |
2178 | tm_file="${tm_file} dbx.h" |
2179 | fi | |
61536478 | 2180 | xm_defines=USG |
46f18e7b | 2181 | xmake_file=mips/x-iris3 |
75bffa71 | 2182 | if test x$gas = xyes |
46f18e7b RK |
2183 | then |
2184 | tmake_file=mips/t-mips-gas | |
2185 | else | |
2186 | extra_passes="mips-tfile mips-tdump" | |
2187 | fi | |
75bffa71 | 2188 | if test x$gnu_ld != xyes |
46f18e7b RK |
2189 | then |
2190 | use_collect2=yes | |
2191 | fi | |
2192 | ;; | |
2193 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
61536478 | 2194 | tm_file="mips/osfrose.h ${tm_file}" |
46f18e7b RK |
2195 | xmake_file=mips/x-osfrose |
2196 | tmake_file=mips/t-osfrose | |
2197 | extra_objs=halfpic.o | |
2198 | use_collect2=yes | |
2199 | ;; | |
2200 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
2201 | tm_file=mips/dec-osf1.h | |
75bffa71 | 2202 | if test x$stabs = xyes; then |
46f18e7b RK |
2203 | tm_file="${tm_file} dbx.h" |
2204 | fi | |
2205 | xmake_file=mips/x-dec-osf1 | |
75bffa71 | 2206 | if test x$gas = xyes |
46f18e7b RK |
2207 | then |
2208 | tmake_file=mips/t-mips-gas | |
2209 | else | |
2210 | tmake_file=mips/t-ultrix | |
2211 | extra_passes="mips-tfile mips-tdump" | |
2212 | fi | |
75bffa71 | 2213 | if test x$gnu_ld != xyes |
46f18e7b RK |
2214 | then |
2215 | use_collect2=yes | |
2216 | fi | |
2217 | ;; | |
2218 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
2219 | tm_file=mips/dec-bsd.h | |
2220 | fixincludes= | |
75bffa71 | 2221 | if test x$gas = xyes |
46f18e7b RK |
2222 | then |
2223 | tmake_file=mips/t-mips-gas | |
2224 | else | |
2225 | tmake_file=mips/t-ultrix | |
2226 | extra_passes="mips-tfile mips-tdump" | |
2227 | fi | |
75bffa71 | 2228 | if test x$gnu_ld != xyes |
46f18e7b RK |
2229 | then |
2230 | use_collect2=yes | |
2231 | fi | |
2232 | ;; | |
58600d24 | 2233 | mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD |
46f18e7b | 2234 | tm_file=mips/netbsd.h |
be1ed94f | 2235 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 2236 | fixincludes=fixinc.wrap |
e47f44f4 | 2237 | tmake_file=t-netbsd |
46f18e7b RK |
2238 | ;; |
2239 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. | |
61536478 | 2240 | tm_file="mips/news4.h ${tm_file}" |
75bffa71 | 2241 | if test x$stabs = xyes; then |
46f18e7b RK |
2242 | tm_file="${tm_file} dbx.h" |
2243 | fi | |
75bffa71 | 2244 | if test x$gas = xyes |
46f18e7b RK |
2245 | then |
2246 | tmake_file=mips/t-mips-gas | |
2247 | else | |
2248 | extra_passes="mips-tfile mips-tdump" | |
2249 | fi | |
75bffa71 | 2250 | if test x$gnu_ld != xyes |
46f18e7b RK |
2251 | then |
2252 | use_collect2=yes | |
2253 | fi | |
2254 | xmake_file=mips/x-sony | |
2255 | ;; | |
2256 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
2257 | # That is based on svr4. | |
2258 | # t-svr4 is not right because this system doesn't use ELF. | |
61536478 | 2259 | tm_file="mips/news5.h ${tm_file}" |
75bffa71 | 2260 | if test x$stabs = xyes; then |
46f18e7b RK |
2261 | tm_file="${tm_file} dbx.h" |
2262 | fi | |
61536478 JL |
2263 | xm_file="xm-siglist.h ${xm_file}" |
2264 | xm_defines=USG | |
75bffa71 | 2265 | if test x$gas = xyes |
46f18e7b RK |
2266 | then |
2267 | tmake_file=mips/t-mips-gas | |
2268 | else | |
2269 | extra_passes="mips-tfile mips-tdump" | |
2270 | fi | |
75bffa71 | 2271 | if test x$gnu_ld != xyes |
46f18e7b RK |
2272 | then |
2273 | use_collect2=yes | |
2274 | fi | |
2275 | ;; | |
2276 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
61536478 | 2277 | tm_file="mips/svr4-5.h mips/svr4-t.h" |
75bffa71 | 2278 | if test x$stabs = xyes; then |
46f18e7b RK |
2279 | tm_file="${tm_file} dbx.h" |
2280 | fi | |
61536478 JL |
2281 | xm_file="xm-siglist.h ${xm_file}" |
2282 | xm_defines=USG | |
46f18e7b | 2283 | xmake_file=mips/x-sysv |
75bffa71 | 2284 | if test x$gas = xyes |
46f18e7b RK |
2285 | then |
2286 | tmake_file=mips/t-mips-gas | |
2287 | extra_parts="crtbegin.o crtend.o" | |
2288 | else | |
2289 | tmake_file=mips/t-mips | |
2290 | extra_passes="mips-tfile mips-tdump" | |
2291 | fi | |
75bffa71 | 2292 | if test x$gnu_ld != xyes |
46f18e7b RK |
2293 | then |
2294 | use_collect2=yes | |
2295 | fi | |
46f18e7b RK |
2296 | ;; |
2297 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
61536478 | 2298 | tm_file="mips/ultrix.h ${tm_file}" |
75bffa71 | 2299 | if test x$stabs = xyes; then |
46f18e7b RK |
2300 | tm_file="${tm_file} dbx.h" |
2301 | fi | |
2302 | xmake_file=mips/x-ultrix | |
75bffa71 | 2303 | if test x$gas = xyes |
46f18e7b RK |
2304 | then |
2305 | tmake_file=mips/t-mips-gas | |
2306 | else | |
2307 | tmake_file=mips/t-ultrix | |
2308 | extra_passes="mips-tfile mips-tdump" | |
2309 | fi | |
75bffa71 | 2310 | if test x$gnu_ld != xyes |
46f18e7b RK |
2311 | then |
2312 | use_collect2=yes | |
2313 | fi | |
2314 | ;; | |
75bffa71 ILT |
2315 | changequote(,)dnl |
2316 | mips-*-riscos[56789]bsd*) | |
2317 | changequote([,])dnl | |
46f18e7b | 2318 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 |
75bffa71 | 2319 | if test x$stabs = xyes; then |
46f18e7b RK |
2320 | tm_file="${tm_file} dbx.h" |
2321 | fi | |
75bffa71 | 2322 | if test x$gas = xyes |
46f18e7b RK |
2323 | then |
2324 | tmake_file=mips/t-bsd-gas | |
2325 | else | |
2326 | tmake_file=mips/t-bsd | |
2327 | extra_passes="mips-tfile mips-tdump" | |
2328 | fi | |
75bffa71 | 2329 | if test x$gnu_ld != xyes |
46f18e7b RK |
2330 | then |
2331 | use_collect2=yes | |
2332 | fi | |
46f18e7b | 2333 | ;; |
75bffa71 ILT |
2334 | changequote(,)dnl |
2335 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*) | |
2336 | changequote([,])dnl | |
61536478 | 2337 | tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0 |
75bffa71 | 2338 | if test x$stabs = xyes; then |
46f18e7b RK |
2339 | tm_file="${tm_file} dbx.h" |
2340 | fi | |
75bffa71 | 2341 | if test x$gas = xyes |
46f18e7b RK |
2342 | then |
2343 | tmake_file=mips/t-bsd-gas | |
2344 | else | |
2345 | tmake_file=mips/t-bsd | |
2346 | extra_passes="mips-tfile mips-tdump" | |
2347 | fi | |
75bffa71 | 2348 | if test x$gnu_ld != xyes |
46f18e7b RK |
2349 | then |
2350 | use_collect2=yes | |
2351 | fi | |
46f18e7b | 2352 | ;; |
75bffa71 ILT |
2353 | changequote(,)dnl |
2354 | mips-*-riscos[56789]sysv4*) | |
2355 | changequote([,])dnl | |
46f18e7b | 2356 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 |
75bffa71 | 2357 | if test x$stabs = xyes; then |
46f18e7b RK |
2358 | tm_file="${tm_file} dbx.h" |
2359 | fi | |
61536478 | 2360 | xm_file="xm-siglist.h ${xm_file}" |
46f18e7b | 2361 | xmake_file=mips/x-sysv |
75bffa71 | 2362 | if test x$gas = xyes |
46f18e7b RK |
2363 | then |
2364 | tmake_file=mips/t-svr4-gas | |
2365 | else | |
2366 | tmake_file=mips/t-svr4 | |
2367 | extra_passes="mips-tfile mips-tdump" | |
2368 | fi | |
75bffa71 | 2369 | if test x$gnu_ld != xyes |
46f18e7b RK |
2370 | then |
2371 | use_collect2=yes | |
2372 | fi | |
46f18e7b | 2373 | ;; |
75bffa71 ILT |
2374 | changequote(,)dnl |
2375 | mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*) | |
2376 | changequote([,])dnl | |
61536478 | 2377 | tm_file="mips/svr4-4.h ${tm_file}" |
75bffa71 | 2378 | if test x$stabs = xyes; then |
46f18e7b RK |
2379 | tm_file="${tm_file} dbx.h" |
2380 | fi | |
61536478 | 2381 | xm_defines=USG |
46f18e7b | 2382 | xmake_file=mips/x-sysv |
75bffa71 | 2383 | if test x$gas = xyes |
46f18e7b RK |
2384 | then |
2385 | tmake_file=mips/t-svr4-gas | |
2386 | else | |
2387 | tmake_file=mips/t-svr4 | |
2388 | extra_passes="mips-tfile mips-tdump" | |
2389 | fi | |
75bffa71 | 2390 | if test x$gnu_ld != xyes |
46f18e7b RK |
2391 | then |
2392 | use_collect2=yes | |
2393 | fi | |
46f18e7b | 2394 | ;; |
75bffa71 ILT |
2395 | changequote(,)dnl |
2396 | mips-*-riscos[56789]sysv*) | |
2397 | changequote([,])dnl | |
46f18e7b | 2398 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 |
75bffa71 | 2399 | if test x$stabs = xyes; then |
46f18e7b RK |
2400 | tm_file="${tm_file} dbx.h" |
2401 | fi | |
61536478 | 2402 | xm_defines=USG |
46f18e7b | 2403 | xmake_file=mips/x-sysv |
75bffa71 | 2404 | if test x$gas = xyes |
46f18e7b RK |
2405 | then |
2406 | tmake_file=mips/t-svr3-gas | |
2407 | else | |
2408 | tmake_file=mips/t-svr3 | |
2409 | extra_passes="mips-tfile mips-tdump" | |
2410 | fi | |
75bffa71 | 2411 | if test x$gnu_ld != xyes |
46f18e7b RK |
2412 | then |
2413 | use_collect2=yes | |
2414 | fi | |
46f18e7b RK |
2415 | ;; |
2416 | mips-*-sysv* | mips-*-riscos*sysv*) | |
61536478 | 2417 | tm_file="mips/svr3-4.h ${tm_file}" |
75bffa71 | 2418 | if test x$stabs = xyes; then |
46f18e7b RK |
2419 | tm_file="${tm_file} dbx.h" |
2420 | fi | |
61536478 | 2421 | xm_defines=USG |
46f18e7b | 2422 | xmake_file=mips/x-sysv |
75bffa71 | 2423 | if test x$gas = xyes |
46f18e7b RK |
2424 | then |
2425 | tmake_file=mips/t-svr3-gas | |
2426 | else | |
2427 | tmake_file=mips/t-svr3 | |
2428 | extra_passes="mips-tfile mips-tdump" | |
2429 | fi | |
75bffa71 | 2430 | if test x$gnu_ld != xyes |
46f18e7b RK |
2431 | then |
2432 | use_collect2=yes | |
2433 | fi | |
46f18e7b | 2434 | ;; |
75bffa71 ILT |
2435 | changequote(,)dnl |
2436 | mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0. | |
2437 | changequote([,])dnl | |
46f18e7b | 2438 | tm_file=mips/mips-5.h |
75bffa71 | 2439 | if test x$stabs = xyes; then |
46f18e7b RK |
2440 | tm_file="${tm_file} dbx.h" |
2441 | fi | |
75bffa71 | 2442 | if test x$gas = xyes |
46f18e7b RK |
2443 | then |
2444 | tmake_file=mips/t-mips-gas | |
2445 | else | |
2446 | extra_passes="mips-tfile mips-tdump" | |
2447 | fi | |
75bffa71 | 2448 | if test x$gnu_ld != xyes |
46f18e7b RK |
2449 | then |
2450 | use_collect2=yes | |
2451 | fi | |
46f18e7b RK |
2452 | ;; |
2453 | mips-*-gnu*) | |
2454 | ;; | |
2455 | mipsel-*-ecoff*) | |
2456 | tm_file=mips/ecoffl.h | |
75bffa71 | 2457 | if test x$stabs = xyes; then |
46f18e7b RK |
2458 | tm_file="${tm_file} dbx.h" |
2459 | fi | |
2460 | tmake_file=mips/t-ecoff | |
2461 | ;; | |
2462 | mips-*-ecoff*) | |
1be12a4a | 2463 | tm_file="gofast.h mips/ecoff.h" |
75bffa71 | 2464 | if test x$stabs = xyes; then |
46f18e7b RK |
2465 | tm_file="${tm_file} dbx.h" |
2466 | fi | |
2467 | tmake_file=mips/t-ecoff | |
46f18e7b RK |
2468 | ;; |
2469 | mipsel-*-elf*) | |
2470 | tm_file="mips/elfl.h libgloss.h" | |
2471 | tmake_file=mips/t-ecoff | |
2472 | ;; | |
2473 | mips-*-elf*) | |
2474 | tm_file="mips/elf.h libgloss.h" | |
2475 | tmake_file=mips/t-ecoff | |
2476 | ;; | |
2477 | mips64el-*-elf*) | |
2478 | tm_file="mips/elfl64.h libgloss.h" | |
2479 | tmake_file=mips/t-ecoff | |
2480 | ;; | |
2481 | mips64orionel-*-elf*) | |
61536478 | 2482 | tm_file="mips/elforion.h mips/elfl64.h libgloss.h" |
46f18e7b RK |
2483 | tmake_file=mips/t-ecoff |
2484 | ;; | |
2485 | mips64-*-elf*) | |
2486 | tm_file="mips/elf64.h libgloss.h" | |
2487 | tmake_file=mips/t-ecoff | |
2488 | ;; | |
2489 | mips64orion-*-elf*) | |
61536478 | 2490 | tm_file="mips/elforion.h mips/elf64.h libgloss.h" |
46f18e7b RK |
2491 | tmake_file=mips/t-ecoff |
2492 | ;; | |
2493 | mips64orion-*-rtems*) | |
6e9856ba | 2494 | tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h" |
46f18e7b RK |
2495 | tmake_file="mips/t-ecoff t-rtems" |
2496 | ;; | |
e9a25f70 JL |
2497 | mipstx39el-*-elf*) |
2498 | tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h" | |
09e4daf5 | 2499 | tmake_file=mips/t-r3900 |
e9a25f70 JL |
2500 | ;; |
2501 | mipstx39-*-elf*) | |
2502 | tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h" | |
09e4daf5 | 2503 | tmake_file=mips/t-r3900 |
2ce3c6c6 JM |
2504 | # FIXME mips-elf should be fixed to use crtstuff. |
2505 | use_collect2=yes | |
e9a25f70 | 2506 | ;; |
46f18e7b | 2507 | mips-*-*) # Default MIPS RISC-OS 4.0. |
75bffa71 | 2508 | if test x$stabs = xyes; then |
46f18e7b RK |
2509 | tm_file="${tm_file} dbx.h" |
2510 | fi | |
75bffa71 | 2511 | if test x$gas = xyes |
46f18e7b RK |
2512 | then |
2513 | tmake_file=mips/t-mips-gas | |
2514 | else | |
2515 | extra_passes="mips-tfile mips-tdump" | |
2516 | fi | |
75bffa71 | 2517 | if test x$gnu_ld != xyes |
46f18e7b RK |
2518 | then |
2519 | use_collect2=yes | |
2520 | fi | |
2521 | ;; | |
cef64ec4 RK |
2522 | mn10200-*-*) |
2523 | cpu_type=mn10200 | |
2524 | tm_file="mn10200/mn10200.h" | |
75bffa71 | 2525 | if test x$stabs = xyes |
cef64ec4 RK |
2526 | then |
2527 | tm_file="${tm_file} dbx.h" | |
2528 | fi | |
2529 | use_collect2=no | |
2530 | ;; | |
46f18e7b RK |
2531 | mn10300-*-*) |
2532 | cpu_type=mn10300 | |
2533 | tm_file="mn10300/mn10300.h" | |
75bffa71 | 2534 | if test x$stabs = xyes |
46f18e7b RK |
2535 | then |
2536 | tm_file="${tm_file} dbx.h" | |
2537 | fi | |
2538 | use_collect2=no | |
2539 | ;; | |
2540 | ns32k-encore-bsd*) | |
2541 | tm_file=ns32k/encore.h | |
2542 | use_collect2=yes | |
2543 | ;; | |
2544 | ns32k-sequent-bsd*) | |
2545 | tm_file=ns32k/sequent.h | |
2546 | use_collect2=yes | |
2547 | ;; | |
2548 | ns32k-tek6100-bsd*) | |
2549 | tm_file=ns32k/tek6100.h | |
46f18e7b RK |
2550 | use_collect2=yes |
2551 | ;; | |
2552 | ns32k-tek6200-bsd*) | |
2553 | tm_file=ns32k/tek6200.h | |
46f18e7b RK |
2554 | use_collect2=yes |
2555 | ;; | |
2556 | # This has not been updated to GCC 2. | |
2557 | # ns32k-ns-genix*) | |
61536478 | 2558 | # xm_defines=USG |
46f18e7b RK |
2559 | # xmake_file=ns32k/x-genix |
2560 | # tm_file=ns32k/genix.h | |
46f18e7b RK |
2561 | # use_collect2=yes |
2562 | # ;; | |
2563 | ns32k-merlin-*) | |
2564 | tm_file=ns32k/merlin.h | |
2565 | use_collect2=yes | |
2566 | ;; | |
2567 | ns32k-pc532-mach*) | |
2568 | tm_file=ns32k/pc532-mach.h | |
2569 | use_collect2=yes | |
2570 | ;; | |
2571 | ns32k-pc532-minix*) | |
2572 | tm_file=ns32k/pc532-min.h | |
61536478 JL |
2573 | xm_file="ns32k/xm-pc532-min.h ${xm-file}" |
2574 | xm_defines=USG | |
46f18e7b RK |
2575 | use_collect2=yes |
2576 | ;; | |
58600d24 | 2577 | ns32k-*-netbsd*) |
46f18e7b | 2578 | tm_file=ns32k/netbsd.h |
641d4216 | 2579 | xm_file="ns32k/xm-netbsd.h ${xm_file}" |
be1ed94f | 2580 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 2581 | fixincludes=fixinc.wrap |
e47f44f4 | 2582 | tmake_file=t-netbsd |
46f18e7b RK |
2583 | ;; |
2584 | pdp11-*-bsd) | |
2585 | tm_file="${tm_file} pdp11/2bsd.h" | |
2586 | ;; | |
2587 | pdp11-*-*) | |
2588 | ;; | |
2589 | pyramid-*-*) | |
2590 | cpu_type=pyr | |
2591 | xmake_file=pyr/x-pyr | |
2592 | use_collect2=yes | |
2593 | ;; | |
2594 | romp-*-aos*) | |
2595 | use_collect2=yes | |
2596 | ;; | |
2597 | romp-*-mach*) | |
2598 | xmake_file=romp/x-mach | |
2599 | use_collect2=yes | |
2600 | ;; | |
c55dcc7d FF |
2601 | powerpc-*-beos*) |
2602 | cpu_type=rs6000 | |
2603 | tm_file=rs6000/beos.h | |
2604 | xm_file=rs6000/xm-beos.h | |
2605 | tmake_file=rs6000/t-beos | |
2606 | xmake_file=rs6000/x-beos | |
2607 | ;; | |
46f18e7b RK |
2608 | powerpc-*-sysv* | powerpc-*-elf*) |
2609 | tm_file=rs6000/sysv4.h | |
61536478 JL |
2610 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2611 | xm_defines="USG POSIX" | |
46f18e7b | 2612 | extra_headers=ppc-asm.h |
75bffa71 | 2613 | if test x$gas = xyes |
46f18e7b RK |
2614 | then |
2615 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2616 | else | |
2617 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2618 | fi | |
2619 | xmake_file=rs6000/x-sysv4 | |
2620 | ;; | |
2621 | powerpc-*-eabiaix*) | |
2622 | tm_file=rs6000/eabiaix.h | |
2623 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2624 | fixincludes=Makefile.in | |
2625 | extra_headers=ppc-asm.h | |
2626 | ;; | |
2627 | powerpc-*-eabisim*) | |
2628 | tm_file=rs6000/eabisim.h | |
2629 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2630 | fixincludes=Makefile.in | |
2631 | extra_headers=ppc-asm.h | |
2632 | ;; | |
2633 | powerpc-*-eabi*) | |
2634 | tm_file=rs6000/eabi.h | |
75bffa71 | 2635 | if test x$gas = xyes |
46f18e7b RK |
2636 | then |
2637 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2638 | else | |
2639 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2640 | fi | |
2641 | fixincludes=Makefile.in | |
2642 | extra_headers=ppc-asm.h | |
2643 | ;; | |
dec3e070 JW |
2644 | powerpc-*-rtems*) |
2645 | tm_file=rs6000/rtems.h | |
75bffa71 | 2646 | if test x$gas = xyes |
46f18e7b | 2647 | then |
dec3e070 | 2648 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" |
46f18e7b | 2649 | else |
dec3e070 | 2650 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" |
46f18e7b | 2651 | fi |
46f18e7b | 2652 | fixincludes=Makefile.in |
46f18e7b RK |
2653 | extra_headers=ppc-asm.h |
2654 | ;; | |
ce514f57 FS |
2655 | powerpc-*-linux-gnulibc1) |
2656 | tm_file=rs6000/linux.h | |
2657 | xm_file=rs6000/xm-sysv4.h | |
2658 | out_file=rs6000/rs6000.c | |
75bffa71 | 2659 | if test x$gas = xyes |
ce514f57 FS |
2660 | then |
2661 | tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
2662 | else | |
2663 | tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm" | |
2664 | fi | |
2665 | xmake_file=x-linux | |
2666 | fixincludes=Makefile.in | |
2667 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
2668 | extra_headers=ppc-asm.h | |
75bffa71 | 2669 | if test x$enable_threads = xyes; then |
ce514f57 FS |
2670 | thread_file='posix' |
2671 | fi | |
2672 | ;; | |
844dadc7 | 2673 | powerpc-*-linux-gnu*) |
dec3e070 | 2674 | tm_file=rs6000/linux.h |
61536478 JL |
2675 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2676 | xm_defines="USG ${xm_defines}" | |
dec3e070 | 2677 | out_file=rs6000/rs6000.c |
75bffa71 | 2678 | if test x$gas = xyes |
46f18e7b | 2679 | then |
dec3e070 | 2680 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" |
46f18e7b | 2681 | else |
dec3e070 | 2682 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" |
46f18e7b | 2683 | fi |
d7308c0c | 2684 | xmake_file=x-linux |
dec3e070 | 2685 | fixincludes=Makefile.in |
d7308c0c | 2686 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b | 2687 | extra_headers=ppc-asm.h |
75bffa71 | 2688 | if test x$enable_threads = xyes; then |
d7308c0c RK |
2689 | thread_file='posix' |
2690 | fi | |
46f18e7b | 2691 | ;; |
7cc34889 | 2692 | powerpc-wrs-vxworks*) |
46f18e7b | 2693 | cpu_type=rs6000 |
61536478 JL |
2694 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2695 | xm_defines="USG POSIX" | |
46f18e7b RK |
2696 | tm_file=rs6000/vxppc.h |
2697 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2698 | extra_headers=ppc-asm.h | |
7cc34889 | 2699 | thread_file='vxworks' |
46f18e7b RK |
2700 | ;; |
2701 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
2702 | tm_file=rs6000/sysv4le.h | |
61536478 JL |
2703 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2704 | xm_defines="USG POSIX" | |
75bffa71 | 2705 | if test x$gas = xyes |
46f18e7b RK |
2706 | then |
2707 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2708 | else | |
2709 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2710 | fi | |
2711 | xmake_file=rs6000/x-sysv4 | |
2712 | extra_headers=ppc-asm.h | |
2713 | ;; | |
2714 | powerpcle-*-eabisim*) | |
2715 | tm_file=rs6000/eabilesim.h | |
2716 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2717 | fixincludes=Makefile.in | |
2718 | extra_headers=ppc-asm.h | |
2719 | ;; | |
2720 | powerpcle-*-eabi*) | |
2721 | tm_file=rs6000/eabile.h | |
75bffa71 | 2722 | if test x$gas = xyes |
46f18e7b RK |
2723 | then |
2724 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2725 | else | |
2726 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2727 | fi | |
2728 | fixincludes=Makefile.in | |
2729 | extra_headers=ppc-asm.h | |
2730 | ;; | |
2731 | powerpcle-*-winnt* ) | |
2732 | tm_file=rs6000/win-nt.h | |
2733 | tmake_file=rs6000/t-winnt | |
2734 | # extra_objs=pe.o | |
2735 | fixincludes=Makefile.in | |
75bffa71 | 2736 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
2737 | thread_file='win32' |
2738 | fi | |
46f18e7b RK |
2739 | extra_headers=ppc-asm.h |
2740 | ;; | |
2741 | powerpcle-*-pe | powerpcle-*-cygwin32) | |
2742 | tm_file=rs6000/cygwin32.h | |
61536478 | 2743 | xm_file="rs6000/xm-cygwin32.h ${xm_file}" |
46f18e7b RK |
2744 | tmake_file=rs6000/t-winnt |
2745 | xmake_file=rs6000/x-cygwin32 | |
2746 | # extra_objs=pe.o | |
2747 | fixincludes=Makefile.in | |
75bffa71 | 2748 | if test x$enable_threads = xyes; then |
0bbb1697 RK |
2749 | thread_file='win32' |
2750 | fi | |
46f18e7b RK |
2751 | exeext=.exe |
2752 | extra_headers=ppc-asm.h | |
2753 | ;; | |
2754 | powerpcle-*-solaris2*) | |
2755 | tm_file=rs6000/sol2.h | |
61536478 JL |
2756 | xm_file="xm-siglist.h rs6000/xm-sysv4.h" |
2757 | xm_defines="USG POSIX" | |
75bffa71 | 2758 | if test x$gas = xyes |
46f18e7b RK |
2759 | then |
2760 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2761 | else | |
2762 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2763 | fi | |
2764 | xmake_file=rs6000/x-sysv4 | |
61536478 | 2765 | case $machine in |
75bffa71 ILT |
2766 | changequote(,)dnl |
2767 | *-*-solaris2.[0-4]) | |
2768 | changequote([,])dnl | |
61536478 JL |
2769 | fixincludes=fixinc.svr4;; |
2770 | *) | |
32f65aa0 | 2771 | fixincludes=fixinc.wrap;; |
61536478 | 2772 | esac |
46f18e7b RK |
2773 | extra_headers=ppc-asm.h |
2774 | ;; | |
75bffa71 ILT |
2775 | changequote(,)dnl |
2776 | rs6000-ibm-aix3.[01]*) | |
2777 | changequote([,])dnl | |
46f18e7b RK |
2778 | tm_file=rs6000/aix31.h |
2779 | xmake_file=rs6000/x-aix31 | |
2780 | use_collect2=yes | |
2781 | ;; | |
75bffa71 ILT |
2782 | changequote(,)dnl |
2783 | rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*) | |
2784 | changequote([,])dnl | |
46f18e7b | 2785 | tm_file=rs6000/aix3newas.h |
75bffa71 | 2786 | if test x$host != x$target |
46f18e7b RK |
2787 | then |
2788 | tmake_file=rs6000/t-xnewas | |
2789 | else | |
2790 | tmake_file=rs6000/t-newas | |
2791 | fi | |
2792 | use_collect2=yes | |
2793 | ;; | |
75bffa71 | 2794 | changequote(,)dnl |
05cea40f | 2795 | rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*) |
75bffa71 | 2796 | changequote([,])dnl |
46f18e7b | 2797 | tm_file=rs6000/aix41.h |
75bffa71 | 2798 | if test x$host != x$target |
46f18e7b RK |
2799 | then |
2800 | tmake_file=rs6000/t-xnewas | |
2801 | else | |
2802 | tmake_file=rs6000/t-newas | |
2803 | fi | |
a260abc9 DE |
2804 | xmake_file=rs6000/x-aix41 |
2805 | use_collect2=yes | |
2806 | ;; | |
75bffa71 ILT |
2807 | changequote(,)dnl |
2808 | rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*) | |
2809 | changequote([,])dnl | |
a260abc9 | 2810 | tm_file=rs6000/aix43.h |
75bffa71 | 2811 | if test x$host != x$target |
a260abc9 DE |
2812 | then |
2813 | tmake_file=rs6000/t-xaix43 | |
2814 | else | |
2815 | tmake_file=rs6000/t-aix43 | |
2816 | fi | |
2817 | xmake_file=rs6000/x-aix43 | |
2818 | use_collect2=yes | |
2819 | ;; | |
75bffa71 ILT |
2820 | changequote(,)dnl |
2821 | rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*) | |
2822 | changequote([,])dnl | |
a260abc9 | 2823 | tm_file=rs6000/aix43.h |
75bffa71 | 2824 | if test x$host != x$target |
a260abc9 DE |
2825 | then |
2826 | tmake_file=rs6000/t-xaix43 | |
2827 | else | |
2828 | tmake_file=rs6000/t-aix43 | |
2829 | fi | |
2830 | xmake_file=rs6000/x-aix43 | |
46f18e7b RK |
2831 | use_collect2=yes |
2832 | ;; | |
2833 | rs6000-ibm-aix*) | |
2834 | use_collect2=yes | |
2835 | ;; | |
2836 | rs6000-bull-bosx) | |
2837 | use_collect2=yes | |
2838 | ;; | |
2839 | rs6000-*-mach*) | |
2840 | tm_file=rs6000/mach.h | |
61536478 | 2841 | xm_file="${xm_file} rs6000/xm-mach.h" |
46f18e7b RK |
2842 | xmake_file=rs6000/x-mach |
2843 | use_collect2=yes | |
2844 | ;; | |
2845 | rs6000-*-lynxos*) | |
2846 | tm_file=rs6000/lynx.h | |
2847 | xm_file=rs6000/xm-lynx.h | |
2848 | tmake_file=rs6000/t-rs6000 | |
2849 | xmake_file=rs6000/x-lynx | |
2850 | use_collect2=yes | |
2851 | ;; | |
2852 | sh-*-elf*) | |
2853 | tm_file=sh/elf.h | |
2854 | float_format=sh | |
2855 | ;; | |
b098f56d JS |
2856 | sh-*-rtemself*) |
2857 | tmake_file="sh/t-sh t-rtems" | |
2858 | tm_file=sh/rtemself.h | |
2859 | float_format=sh | |
2860 | ;; | |
5d84b57e JS |
2861 | sh-*-rtems*) |
2862 | tmake_file="sh/t-sh t-rtems" | |
2863 | tm_file=sh/rtems.h | |
2864 | float_format=sh | |
2865 | ;; | |
46f18e7b RK |
2866 | sh-*-*) |
2867 | float_format=sh | |
2868 | ;; | |
2869 | sparc-tti-*) | |
2870 | tm_file=sparc/pbd.h | |
61536478 JL |
2871 | xm_file="xm-alloca.h ${xm_file}" |
2872 | xm_defines=USG | |
46f18e7b RK |
2873 | ;; |
2874 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
2875 | tm_file=sparc/vxsparc.h | |
2876 | tmake_file=sparc/t-vxsparc | |
2877 | use_collect2=yes | |
7cc34889 | 2878 | thread_file='vxworks' |
46f18e7b RK |
2879 | ;; |
2880 | sparc-*-aout*) | |
2881 | tmake_file=sparc/t-sparcbare | |
2882 | tm_file="sparc/aout.h libgloss.h" | |
2883 | ;; | |
2884 | sparc-*-netbsd*) | |
2885 | tm_file=sparc/netbsd.h | |
be1ed94f | 2886 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 2887 | fixincludes=fixinc.wrap |
e47f44f4 | 2888 | tmake_file=t-netbsd |
46f18e7b RK |
2889 | ;; |
2890 | sparc-*-bsd*) | |
2891 | tm_file=sparc/bsd.h | |
2892 | ;; | |
ac52b80b DE |
2893 | sparc-*-elf*) |
2894 | tm_file=sparc/elf.h | |
2895 | tmake_file=sparc/t-elf | |
2896 | extra_parts="crti.o crtn.o crtbegin.o crtend.o" | |
2897 | #float_format=i128 | |
2898 | float_format=i64 | |
2899 | ;; | |
956d6950 | 2900 | sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out |
61536478 | 2901 | xm_file="${xm_file} sparc/xm-linux.h" |
46f18e7b RK |
2902 | tm_file=sparc/linux-aout.h |
2903 | xmake_file=x-linux | |
2904 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
46f18e7b | 2905 | gnu_ld=yes |
46f18e7b | 2906 | ;; |
956d6950 | 2907 | sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5 |
61536478 | 2908 | xm_file="${xm_file} sparc/xm-linux.h" |
2334126e | 2909 | xmake_file=x-linux |
46f18e7b | 2910 | tm_file=sparc/linux.h |
9d1ebd25 | 2911 | tmake_file="t-linux t-linux-gnulibc1" |
9ad03bc1 RK |
2912 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2913 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
9ad03bc1 RK |
2914 | gnu_ld=yes |
2915 | ;; | |
956d6950 | 2916 | sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6 |
61536478 | 2917 | xm_file="${xm_file} sparc/xm-linux.h" |
2334126e | 2918 | xmake_file=x-linux |
9ad03bc1 | 2919 | tm_file=sparc/linux.h |
9d1ebd25 | 2920 | tmake_file="t-linux" |
9ad03bc1 | 2921 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b | 2922 | fixincludes=Makefile.in #On Linux, the headers are ok already. |
46f18e7b | 2923 | gnu_ld=yes |
75bffa71 | 2924 | if test x$enable_threads = xyes; then |
9ad03bc1 RK |
2925 | thread_file='posix' |
2926 | fi | |
46f18e7b RK |
2927 | ;; |
2928 | sparc-*-lynxos*) | |
75bffa71 | 2929 | if test x$gas = xyes |
46f18e7b RK |
2930 | then |
2931 | tm_file=sparc/lynx.h | |
2932 | else | |
2933 | tm_file=sparc/lynx-ng.h | |
2934 | fi | |
2935 | xm_file=sparc/xm-lynx.h | |
2936 | tmake_file=sparc/t-sunos41 | |
2937 | xmake_file=x-lynx | |
2938 | ;; | |
2939 | sparc-*-rtems*) | |
2940 | tmake_file="sparc/t-sparcbare t-rtems" | |
2941 | tm_file=sparc/rtems.h | |
2942 | ;; | |
d559a4db DM |
2943 | sparcv9-*-solaris2*) |
2944 | tm_file=sparc/sol2-sld-64.h | |
2945 | xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h" | |
2946 | xm_defines="USG POSIX" | |
345a6161 | 2947 | tmake_file="sparc/t-sol2 sparc/t-sol2-64" |
d559a4db DM |
2948 | xmake_file=sparc/x-sysv4 |
2949 | extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o" | |
2950 | fixincludes=fixinc.wrap | |
2951 | float_format=i128 | |
d7496fbb | 2952 | if test x${enable_threads} = x ; then |
d559a4db | 2953 | enable_threads=$have_pthread_h |
d7496fbb | 2954 | if test x${enable_threads} = x ; then |
d559a4db DM |
2955 | enable_threads=$have_thread_h |
2956 | fi | |
2957 | fi | |
d7496fbb DM |
2958 | if test x${enable_threads} = xyes ; then |
2959 | if test x${have_pthread_h} = xyes ; then | |
d559a4db DM |
2960 | thread_file='posix' |
2961 | else | |
2962 | thread_file='solaris' | |
2963 | fi | |
2964 | fi | |
2965 | ;; | |
46f18e7b | 2966 | sparc-*-solaris2*) |
75bffa71 | 2967 | if test x$gnu_ld = xyes |
0a9bdce3 PE |
2968 | then |
2969 | tm_file=sparc/sol2.h | |
2970 | else | |
2971 | tm_file=sparc/sol2-sld.h | |
2972 | fi | |
22ec3928 RE |
2973 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
2974 | xm_defines="USG POSIX" | |
46f18e7b RK |
2975 | tmake_file=sparc/t-sol2 |
2976 | xmake_file=sparc/x-sysv4 | |
2977 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
61536478 | 2978 | case $machine in |
75bffa71 ILT |
2979 | changequote(,)dnl |
2980 | *-*-solaris2.[0-4]) | |
2981 | changequote([,])dnl | |
61536478 JL |
2982 | fixincludes=fixinc.svr4;; |
2983 | *) | |
32f65aa0 | 2984 | fixincludes=fixinc.wrap;; |
61536478 | 2985 | esac |
e9a25f70 | 2986 | float_format=i128 |
75bffa71 | 2987 | if test x${enable_threads} = x; then |
f24af81b | 2988 | enable_threads=$have_pthread_h |
75bffa71 | 2989 | if test x${enable_threads} = x; then |
f24af81b TT |
2990 | enable_threads=$have_thread_h |
2991 | fi | |
2992 | fi | |
75bffa71 ILT |
2993 | if test x${enable_threads} = xyes; then |
2994 | if test x${have_pthread_h} = xyes; then | |
f24af81b TT |
2995 | thread_file='posix' |
2996 | else | |
0bbb1697 | 2997 | thread_file='solaris' |
f24af81b | 2998 | fi |
0bbb1697 | 2999 | fi |
46f18e7b RK |
3000 | ;; |
3001 | sparc-*-sunos4.0*) | |
3002 | tm_file=sparc/sunos4.h | |
3003 | tmake_file=sparc/t-sunos40 | |
3004 | use_collect2=yes | |
3005 | ;; | |
3006 | sparc-*-sunos4*) | |
3007 | tm_file=sparc/sunos4.h | |
3008 | tmake_file=sparc/t-sunos41 | |
3009 | use_collect2=yes | |
75bffa71 | 3010 | if test x$gas = xyes; then |
ca55abae JM |
3011 | tm_file="${tm_file} sparc/sun4gas.h" |
3012 | fi | |
46f18e7b RK |
3013 | ;; |
3014 | sparc-*-sunos3*) | |
3015 | tm_file=sparc/sun4o3.h | |
3016 | use_collect2=yes | |
3017 | ;; | |
3018 | sparc-*-sysv4*) | |
3019 | tm_file=sparc/sysv4.h | |
61536478 JL |
3020 | xm_file="xm-siglist.h sparc/xm-sysv4.h" |
3021 | xm_defines="USG POSIX" | |
46f18e7b RK |
3022 | tmake_file=t-svr4 |
3023 | xmake_file=sparc/x-sysv4 | |
3024 | extra_parts="crtbegin.o crtend.o" | |
3025 | ;; | |
3026 | sparc-*-vxsim*) | |
f5963e61 JL |
3027 | xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h" |
3028 | xm_defines="USG POSIX" | |
46f18e7b RK |
3029 | tm_file=sparc/vxsim.h |
3030 | tmake_file=sparc/t-vxsparc | |
3031 | xmake_file=sparc/x-sysv4 | |
3032 | ;; | |
3033 | sparclet-*-aout*) | |
3034 | tm_file="sparc/splet.h libgloss.h" | |
3035 | tmake_file=sparc/t-splet | |
3036 | ;; | |
3037 | sparclite-*-coff*) | |
3038 | tm_file="sparc/litecoff.h libgloss.h" | |
3039 | tmake_file=sparc/t-sparclite | |
3040 | ;; | |
3041 | sparclite-*-aout*) | |
3042 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
3043 | tmake_file=sparc/t-sparclite | |
3044 | ;; | |
3045 | sparc64-*-aout*) | |
3046 | tmake_file=sparc/t-sp64 | |
3047 | tm_file=sparc/sp64-aout.h | |
3048 | ;; | |
3049 | sparc64-*-elf*) | |
3050 | tmake_file=sparc/t-sp64 | |
3051 | tm_file=sparc/sp64-elf.h | |
3052 | extra_parts="crtbegin.o crtend.o" | |
3053 | ;; | |
956d6950 | 3054 | sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux |
345a6161 | 3055 | tmake_file="t-linux sparc/t-linux64" |
2334126e DE |
3056 | xm_file="sparc/xm-sp64.h sparc/xm-linux.h" |
3057 | tm_file=sparc/linux64.h | |
3058 | xmake_file=x-linux | |
956d6950 | 3059 | fixincludes=Makefile.in # The headers are ok already. |
345a6161 | 3060 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2334126e DE |
3061 | gnu_ld=yes |
3062 | ;; | |
46f18e7b RK |
3063 | # This hasn't been upgraded to GCC 2. |
3064 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
3065 | # tm_file=tahoe/harris.h | |
3066 | # ;; | |
3067 | # tahoe-*-bsd*) # tahoe running BSD | |
3068 | # ;; | |
e98e406f NC |
3069 | thumb-*-coff* | thumbel-*-coff*) |
3070 | tm_file=arm/tcoff.h | |
3071 | out_file=arm/thumb.c | |
3072 | xm_file=arm/xm-thumb.h | |
3073 | md_file=arm/thumb.md | |
3074 | tmake_file=arm/t-thumb | |
a717c1f9 | 3075 | fixincludes=Makefile.in # There is nothing to fix |
e98e406f | 3076 | ;; |
46f18e7b RK |
3077 | # This hasn't been upgraded to GCC 2. |
3078 | # tron-*-*) | |
3079 | # cpu_type=gmicro | |
3080 | # use_collect2=yes | |
3081 | # ;; | |
f84271d9 JL |
3082 | v850-*-*) |
3083 | cpu_type=v850 | |
3084 | tm_file="v850/v850.h" | |
3085 | xm_file="v850/xm-v850.h" | |
62db76ee | 3086 | tmake_file=v850/t-v850 |
75bffa71 | 3087 | if test x$stabs = xyes |
f84271d9 JL |
3088 | then |
3089 | tm_file="${tm_file} dbx.h" | |
3090 | fi | |
3091 | use_collect2=no | |
3092 | ;; | |
46f18e7b RK |
3093 | vax-*-bsd*) # vaxen running BSD |
3094 | use_collect2=yes | |
3095 | float_format=vax | |
3096 | ;; | |
3097 | vax-*-sysv*) # vaxen running system V | |
3098 | tm_file="${tm_file} vax/vaxv.h" | |
61536478 | 3099 | xm_defines=USG |
46f18e7b RK |
3100 | float_format=vax |
3101 | ;; | |
3102 | vax-*-netbsd*) | |
3103 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
be1ed94f | 3104 | # On NetBSD, the headers are already okay, except for math.h. |
32f65aa0 | 3105 | fixincludes=fixinc.wrap |
e47f44f4 | 3106 | tmake_file=t-netbsd |
46f18e7b RK |
3107 | float_format=vax |
3108 | ;; | |
3109 | vax-*-ultrix*) # vaxen running ultrix | |
3110 | tm_file="${tm_file} vax/ultrix.h" | |
3111 | use_collect2=yes | |
3112 | float_format=vax | |
3113 | ;; | |
3114 | vax-*-vms*) # vaxen running VMS | |
3115 | xm_file=vax/xm-vms.h | |
3116 | tm_file=vax/vms.h | |
3117 | float_format=vax | |
3118 | ;; | |
3119 | vax-*-*) # vax default entry | |
3120 | float_format=vax | |
3121 | ;; | |
3122 | we32k-att-sysv*) | |
3123 | xm_file="${xm_file} xm-svr3" | |
3124 | use_collect2=yes | |
3125 | ;; | |
3126 | *) | |
3127 | echo "Configuration $machine not supported" 1>&2 | |
3128 | exit 1 | |
3129 | ;; | |
3130 | esac | |
3131 | ||
3132 | case $machine in | |
3133 | *-*-linux-gnu*) | |
61536478 | 3134 | ;; # Existing GNU/Linux systems do not use the GNU setup. |
46f18e7b RK |
3135 | *-*-gnu*) |
3136 | # On the GNU system, the setup is just about the same on | |
3137 | # each different CPU. The specific machines that GNU | |
3138 | # supports are matched above and just set $cpu_type. | |
61536478 | 3139 | xm_file="xm-gnu.h ${xm_file}" |
46f18e7b | 3140 | tm_file=${cpu_type}/gnu.h |
6b403743 | 3141 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
46f18e7b RK |
3142 | # GNU always uses ELF. |
3143 | elf=yes | |
3144 | # GNU tools are the only tools. | |
3145 | gnu_ld=yes | |
3146 | gas=yes | |
3147 | # On GNU, the headers are already okay. | |
3148 | fixincludes=Makefile.in | |
3149 | xmake_file=x-linux # These details are the same as Linux. | |
3150 | tmake_file=t-gnu # These are not. | |
3151 | ;; | |
3152 | *-*-sysv4*) | |
3153 | fixincludes=fixinc.svr4 | |
3154 | xmake_try_sysv=x-sysv | |
46f18e7b RK |
3155 | install_headers_dir=install-headers-cpio |
3156 | ;; | |
3157 | *-*-sysv*) | |
46f18e7b RK |
3158 | install_headers_dir=install-headers-cpio |
3159 | ;; | |
3160 | esac | |
3161 | ||
61536478 | 3162 | # Distinguish i[34567]86 |
46f18e7b RK |
3163 | # Also, do not run mips-tfile on MIPS if using gas. |
3164 | # Process --with-cpu= for PowerPC/rs6000 | |
3165 | target_cpu_default2= | |
3166 | case $machine in | |
3167 | i486-*-*) | |
3168 | target_cpu_default2=1 | |
3169 | ;; | |
3170 | i586-*-*) | |
3171 | target_cpu_default2=2 | |
3172 | ;; | |
61536478 | 3173 | i686-*-* | i786-*-*) |
46f18e7b RK |
3174 | target_cpu_default2=3 |
3175 | ;; | |
08fc0184 RK |
3176 | alpha*-*-*) |
3177 | case $machine in | |
e9a25f70 JL |
3178 | alphaev6*) |
3179 | target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX" | |
3180 | ;; | |
3181 | alphapca56*) | |
fbb5ed67 | 3182 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX" |
e9a25f70 | 3183 | ;; |
08fc0184 | 3184 | alphaev56*) |
e9a25f70 | 3185 | target_cpu_default2="MASK_CPU_EV5|MASK_BWX" |
08fc0184 RK |
3186 | ;; |
3187 | alphaev5*) | |
3188 | target_cpu_default2="MASK_CPU_EV5" | |
3189 | ;; | |
3190 | esac | |
3191 | ||
75bffa71 | 3192 | if test x$gas = xyes |
46f18e7b | 3193 | then |
75bffa71 | 3194 | if test "$target_cpu_default2" = "" |
08fc0184 | 3195 | then |
e71c3bb0 | 3196 | target_cpu_default2="MASK_GAS" |
08fc0184 | 3197 | else |
e71c3bb0 | 3198 | target_cpu_default2="${target_cpu_default2}|MASK_GAS" |
08fc0184 | 3199 | fi |
46f18e7b RK |
3200 | fi |
3201 | ;; | |
956d6950 JL |
3202 | arm*-*-*) |
3203 | case "x$with_cpu" in | |
3204 | x) | |
3205 | # The most generic | |
3206 | target_cpu_default2="TARGET_CPU_generic" | |
3207 | ;; | |
3208 | ||
3209 | # Distinguish cores, and major variants | |
3210 | # arm7m doesn't exist, but D & I don't affect code | |
3211 | xarm[23678] | xarm250 | xarm[67][01]0 \ | |
3212 | | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \ | |
3213 | | xarm7100 | xarm7500 | xarm7500fe | xarm810 \ | |
3214 | | xstrongarm | xstrongarm110) | |
3215 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
3216 | ;; | |
3217 | ||
3218 | xyes | xno) | |
3219 | echo "--with-cpu must be passed a value" 1>&2 | |
3220 | exit 1 | |
3221 | ;; | |
3222 | ||
3223 | *) | |
75bffa71 | 3224 | if test x$pass2done = xyes |
956d6950 JL |
3225 | then |
3226 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3227 | exit 1 | |
3228 | fi | |
3229 | ;; | |
3230 | esac | |
3231 | ;; | |
3232 | ||
46f18e7b | 3233 | mips*-*-ecoff* | mips*-*-elf*) |
75bffa71 | 3234 | if test x$gas = xyes |
46f18e7b | 3235 | then |
75bffa71 | 3236 | if test x$gnu_ld = xyes |
46f18e7b RK |
3237 | then |
3238 | target_cpu_default2=20 | |
3239 | else | |
3240 | target_cpu_default2=16 | |
3241 | fi | |
3242 | fi | |
3243 | ;; | |
3244 | mips*-*-*) | |
75bffa71 | 3245 | if test x$gas = xyes |
46f18e7b RK |
3246 | then |
3247 | target_cpu_default2=16 | |
3248 | fi | |
3249 | ;; | |
3250 | powerpc*-*-* | rs6000-*-*) | |
3251 | case "x$with_cpu" in | |
3252 | x) | |
3253 | ;; | |
3254 | ||
3255 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
52cddadb MM |
3256 | | xrios1 | xrios2 | xrsc | xrsc1 \ |
3257 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
3258 | | x403 | x505 | x801 | x821 | x823 | x860) | |
f24b370a | 3259 | target_cpu_default2="\"$with_cpu\"" |
46f18e7b RK |
3260 | ;; |
3261 | ||
3262 | xyes | xno) | |
3263 | echo "--with-cpu must be passed a value" 1>&2 | |
3264 | exit 1 | |
3265 | ;; | |
3266 | ||
3267 | *) | |
75bffa71 | 3268 | if test x$pass2done = xyes |
956d6950 JL |
3269 | then |
3270 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3271 | exit 1 | |
3272 | fi | |
46f18e7b RK |
3273 | ;; |
3274 | esac | |
3275 | ;; | |
3276 | sparc*-*-*) | |
3277 | case ".$with_cpu" in | |
3278 | .) | |
3279 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
3280 | ;; | |
ac52b80b | 3281 | .supersparc | .ultrasparc | .v7 | .v8 | .v9) |
46f18e7b RK |
3282 | target_cpu_default2="TARGET_CPU_$with_cpu" |
3283 | ;; | |
3284 | *) | |
75bffa71 | 3285 | if test x$pass2done = xyes |
956d6950 JL |
3286 | then |
3287 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
3288 | exit 1 | |
3289 | fi | |
46f18e7b RK |
3290 | ;; |
3291 | esac | |
3292 | ;; | |
3293 | esac | |
3294 | ||
75bffa71 | 3295 | if test "$target_cpu_default2" != "" |
46f18e7b | 3296 | then |
75bffa71 | 3297 | if test "$target_cpu_default" != "" |
46f18e7b RK |
3298 | then |
3299 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
3300 | else | |
3301 | target_cpu_default=$target_cpu_default2 | |
3302 | fi | |
3303 | fi | |
3304 | ||
3305 | # No need for collect2 if we have the GNU linker. | |
d460fb3c JM |
3306 | # Actually, there is now; GNU ld doesn't handle the EH info or |
3307 | # collecting for shared libraries. | |
ca8c3b37 JM |
3308 | #case x$gnu_ld in |
3309 | #xyes) | |
3310 | # use_collect2= | |
3311 | # ;; | |
3312 | #esac | |
46f18e7b RK |
3313 | |
3314 | # Save data on machine being used to compile GCC in build_xm_file. | |
3315 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
75bffa71 | 3316 | if test x$pass1done = x |
46f18e7b | 3317 | then |
75bffa71 | 3318 | if test x"$xm_file" = x |
46f18e7b RK |
3319 | then build_xm_file=$cpu_type/xm-$cpu_type.h |
3320 | else build_xm_file=$xm_file | |
3321 | fi | |
61536478 | 3322 | build_xm_defines=$xm_defines |
46f18e7b RK |
3323 | build_install_headers_dir=$install_headers_dir |
3324 | build_exeext=$exeext | |
3325 | pass1done=yes | |
3326 | else | |
75bffa71 | 3327 | if test x$pass2done = x |
46f18e7b | 3328 | then |
75bffa71 | 3329 | if test x"$xm_file" = x |
46f18e7b RK |
3330 | then host_xm_file=$cpu_type/xm-$cpu_type.h |
3331 | else host_xm_file=$xm_file | |
3332 | fi | |
61536478 | 3333 | host_xm_defines=$xm_defines |
75bffa71 | 3334 | if test x"$xmake_file" = x |
46f18e7b RK |
3335 | then xmake_file=$cpu_type/x-$cpu_type |
3336 | fi | |
3337 | host_xmake_file="$xmake_file" | |
3338 | host_truncate_target=$truncate_target | |
3339 | host_extra_gcc_objs=$extra_gcc_objs | |
3340 | host_extra_objs=$extra_host_objs | |
6e26218f | 3341 | host_exeext=$exeext |
46f18e7b RK |
3342 | pass2done=yes |
3343 | fi | |
3344 | fi | |
3345 | done | |
3346 | ||
3347 | extra_objs="${host_extra_objs} ${extra_objs}" | |
3348 | ||
3349 | # Default the target-machine variables that were not explicitly set. | |
75bffa71 | 3350 | if test x"$tm_file" = x |
46f18e7b RK |
3351 | then tm_file=$cpu_type/$cpu_type.h; fi |
3352 | ||
75bffa71 | 3353 | if test x$extra_headers = x |
46f18e7b RK |
3354 | then extra_headers=; fi |
3355 | ||
75bffa71 | 3356 | if test x"$xm_file" = x |
46f18e7b RK |
3357 | then xm_file=$cpu_type/xm-$cpu_type.h; fi |
3358 | ||
75bffa71 | 3359 | if test x$md_file = x |
e98e406f | 3360 | then md_file=$cpu_type/$cpu_type.md; fi |
46f18e7b | 3361 | |
75bffa71 | 3362 | if test x$out_file = x |
46f18e7b RK |
3363 | then out_file=$cpu_type/$cpu_type.c; fi |
3364 | ||
75bffa71 | 3365 | if test x"$tmake_file" = x |
46f18e7b RK |
3366 | then tmake_file=$cpu_type/t-$cpu_type |
3367 | fi | |
3368 | ||
75bffa71 | 3369 | if test x$float_format = x |
46f18e7b RK |
3370 | then float_format=i64 |
3371 | fi | |
3372 | ||
75bffa71 | 3373 | if test x$enable_haifa = x |
128f7968 RH |
3374 | then |
3375 | case $target in | |
e85b2d66 | 3376 | alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*) |
128f7968 RH |
3377 | enable_haifa=yes;; |
3378 | esac | |
3379 | fi | |
3380 | ||
46f18e7b RK |
3381 | # Say what files are being used for the output code and MD file. |
3382 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
3383 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
3384 | ||
3385 | count=a | |
3386 | for f in $tm_file; do | |
3387 | count=${count}x | |
3388 | done | |
75bffa71 | 3389 | if test $count = ax; then |
46f18e7b RK |
3390 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." |
3391 | else | |
3392 | echo "Using the following target machine macro files:" | |
3393 | for f in $tm_file; do | |
3394 | echo " $srcdir/config/$f" | |
3395 | done | |
3396 | fi | |
3397 | ||
3398 | count=a | |
3399 | for f in $host_xm_file; do | |
3400 | count=${count}x | |
3401 | done | |
75bffa71 | 3402 | if test $count = ax; then |
46f18e7b RK |
3403 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." |
3404 | else | |
3405 | echo "Using the following host machine macro files:" | |
3406 | for f in $host_xm_file; do | |
3407 | echo " $srcdir/config/$f" | |
3408 | done | |
3409 | fi | |
3410 | ||
75bffa71 | 3411 | if test "$host_xm_file" != "$build_xm_file"; then |
46f18e7b RK |
3412 | count=a |
3413 | for f in $build_xm_file; do | |
3414 | count=${count}x | |
3415 | done | |
75bffa71 | 3416 | if test $count = ax; then |
46f18e7b RK |
3417 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." |
3418 | else | |
3419 | echo "Using the following build machine macro files:" | |
3420 | for f in $build_xm_file; do | |
3421 | echo " $srcdir/config/$f" | |
3422 | done | |
3423 | fi | |
3424 | fi | |
3425 | ||
75bffa71 ILT |
3426 | if test x$thread_file = x; then |
3427 | if test x$target_thread_file != x; then | |
a851212a JW |
3428 | thread_file=$target_thread_file |
3429 | else | |
3430 | thread_file='single' | |
3431 | fi | |
46f18e7b | 3432 | fi |
46f18e7b RK |
3433 | |
3434 | # Set up the header files. | |
3435 | # $links is the list of header files to create. | |
3436 | # $vars is the list of shell variables with file names to include. | |
b7cb92ad | 3437 | # auto-host.h is the file containing items generated by autoconf and is |
e9a25f70 | 3438 | # the first file included by config.h. |
61536478 | 3439 | null_defines= |
b7cb92ad | 3440 | host_xm_file="auto-host.h ${host_xm_file}" |
db81d74a | 3441 | |
b7cb92ad | 3442 | # If host=build, it is correct to have hconfig include auto-host.h |
db81d74a RH |
3443 | # as well. If host!=build, we are in error and need to do more |
3444 | # work to find out the build config parameters. | |
75bffa71 | 3445 | if test x$host = x$build |
db81d74a | 3446 | then |
b7cb92ad JL |
3447 | build_xm_file="auto-host.h ${build_xm_file}" |
3448 | else | |
3449 | # We create a subdir, then run autoconf in the subdir. | |
3450 | # To prevent recursion we set host and build for the new | |
3451 | # invocation of configure to the build for this invocation | |
3452 | # of configure. | |
3453 | tempdir=build.$$ | |
3454 | rm -rf $tempdir | |
3455 | mkdir $tempdir | |
3456 | cd $tempdir | |
3457 | case ${srcdir} in | |
3458 | /*) realsrcdir=${srcdir};; | |
3459 | *) realsrcdir=../${srcdir};; | |
3460 | esac | |
fe81dd69 | 3461 | CC=${CC_FOR_BUILD} ${realsrcdir}/configure \ |
b7cb92ad JL |
3462 | --target=$target --host=$build --build=$build |
3463 | ||
3464 | # We just finished tests for the build machine, so rename | |
3465 | # the file auto-build.h in the gcc directory. | |
3466 | mv auto-host.h ../auto-build.h | |
3467 | cd .. | |
3468 | rm -rf $tempdir | |
3469 | build_xm_file="auto-build.h ${build_xm_file}" | |
db81d74a RH |
3470 | fi |
3471 | ||
46f18e7b | 3472 | vars="host_xm_file tm_file xm_file build_xm_file" |
e9a25f70 | 3473 | links="config.h tm.h tconfig.h hconfig.h" |
61536478 | 3474 | defines="host_xm_defines null_defines xm_defines build_xm_defines" |
46f18e7b RK |
3475 | |
3476 | rm -f config.bak | |
75bffa71 | 3477 | if test -f config.status; then mv -f config.status config.bak; fi |
46f18e7b RK |
3478 | |
3479 | # Make the links. | |
75bffa71 | 3480 | while test -n "$vars" |
46f18e7b | 3481 | do |
46f18e7b RK |
3482 | set $vars; var=$1; shift; vars=$* |
3483 | set $links; link=$1; shift; links=$* | |
61536478 | 3484 | set $defines; define=$1; shift; defines=$* |
46f18e7b RK |
3485 | |
3486 | rm -f $link | |
3487 | ||
3488 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
3489 | # This substitutes for lots of *.h files. | |
75bffa71 | 3490 | if test "$target_cpu_default" != "" -a $link = tm.h |
46f18e7b | 3491 | then |
8fbf199e | 3492 | echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link |
46f18e7b RK |
3493 | fi |
3494 | ||
3495 | for file in `eval echo '$'$var`; do | |
3496 | echo "#include \"$file\"" >>$link | |
3497 | done | |
61536478 JL |
3498 | |
3499 | for def in `eval echo '$'$define`; do | |
3500 | echo "#ifndef $def" >>$link | |
3501 | echo "#define $def" >>$link | |
3502 | echo "#endif" >>$link | |
3503 | done | |
46f18e7b RK |
3504 | done |
3505 | ||
3506 | # Truncate the target if necessary | |
75bffa71 | 3507 | if test x$host_truncate_target != x; then |
46f18e7b RK |
3508 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
3509 | fi | |
3510 | ||
f1943b77 | 3511 | # Get the version trigger filename from the toplevel |
75bffa71 | 3512 | if test "${with_gcc_version_trigger+set}" = set; then |
f1943b77 MH |
3513 | gcc_version_trigger=$with_gcc_version_trigger |
3514 | else | |
3515 | gcc_version_trigger=${srcdir}/version.c | |
3516 | fi | |
75bffa71 ILT |
3517 | changequote(,)dnl |
3518 | gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}` | |
3519 | changequote([,])dnl | |
46f18e7b | 3520 | |
7fa10b25 RK |
3521 | # Get an absolute path to the GCC top-level source directory |
3522 | holddir=`pwd` | |
3523 | cd $srcdir | |
3524 | topdir=`pwd` | |
3525 | cd $holddir | |
3526 | ||
af5e4ada | 3527 | # Conditionalize the makefile for this host machine. |
94f42018 DE |
3528 | # Make-host contains the concatenation of all host makefile fragments |
3529 | # [there can be more than one]. This file is built by configure.frag. | |
3530 | host_overrides=Make-host | |
af5e4ada | 3531 | dep_host_xmake_file= |
94f42018 DE |
3532 | for f in .. ${host_xmake_file} |
3533 | do | |
75bffa71 | 3534 | if test -f ${srcdir}/config/$f |
94f42018 DE |
3535 | then |
3536 | dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f" | |
3537 | fi | |
3538 | done | |
46f18e7b | 3539 | |
af5e4ada | 3540 | # Conditionalize the makefile for this target machine. |
94f42018 DE |
3541 | # Make-target contains the concatenation of all host makefile fragments |
3542 | # [there can be more than one]. This file is built by configure.frag. | |
3543 | target_overrides=Make-target | |
af5e4ada | 3544 | dep_tmake_file= |
94f42018 DE |
3545 | for f in .. ${tmake_file} |
3546 | do | |
75bffa71 | 3547 | if test -f ${srcdir}/config/$f |
94f42018 DE |
3548 | then |
3549 | dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f" | |
3550 | fi | |
3551 | done | |
5891b37d | 3552 | |
af5e4ada DE |
3553 | # If the host doesn't support symlinks, modify CC in |
3554 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
3555 | # Otherwise, we can use "CC=$(CC)". | |
3556 | rm -f symtest.tem | |
61536478 | 3557 | if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null |
af5e4ada DE |
3558 | then |
3559 | cc_set_by_configure="\$(CC)" | |
3560 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" | |
3561 | else | |
61536478 JL |
3562 | rm -f symtest.tem |
3563 | if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null | |
3564 | then | |
3565 | symbolic_link="cp -p" | |
3566 | else | |
3567 | symbolic_link="cp" | |
3568 | fi | |
af5e4ada DE |
3569 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" |
3570 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" | |
3571 | fi | |
3572 | rm -f symtest.tem | |
5891b37d | 3573 | |
af5e4ada | 3574 | out_object_file=`basename $out_file .c`.o |
5891b37d | 3575 | |
af5e4ada DE |
3576 | tm_file_list= |
3577 | for f in $tm_file; do | |
3578 | tm_file_list="${tm_file_list} \$(srcdir)/config/$f" | |
3579 | done | |
46f18e7b | 3580 | |
af5e4ada DE |
3581 | host_xm_file_list= |
3582 | for f in $host_xm_file; do | |
b7cb92ad | 3583 | if test $f != "auto-host.h"; then |
db81d74a RH |
3584 | host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" |
3585 | else | |
b7cb92ad | 3586 | host_xm_file_list="${host_xm_file_list} auto-host.h" |
db81d74a | 3587 | fi |
af5e4ada DE |
3588 | done |
3589 | ||
3590 | build_xm_file_list= | |
3591 | for f in $build_xm_file; do | |
b7cb92ad JL |
3592 | if test $f != "auto-build.h"; then |
3593 | if test $f != "auto-host.h"; then | |
3594 | build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" | |
3595 | else | |
3596 | build_xm_file_list="${build_xm_file_list} auto-host.h" | |
3597 | fi | |
db81d74a | 3598 | else |
b7cb92ad | 3599 | build_xm_file_list="${build_xm_file_list} auto-build.h" |
db81d74a | 3600 | fi |
af5e4ada | 3601 | done |
46f18e7b | 3602 | |
af5e4ada DE |
3603 | # Define macro CROSS_COMPILE in compilation |
3604 | # if this is a cross-compiler. | |
3605 | # Also use all.cross instead of all.internal | |
3606 | # and add cross-make to Makefile. | |
571a8de5 | 3607 | cross_overrides="/dev/null" |
75bffa71 | 3608 | if test x$host != x$target |
af5e4ada DE |
3609 | then |
3610 | cross_defines="CROSS=-DCROSS_COMPILE" | |
3611 | cross_overrides="${topdir}/cross-make" | |
3612 | fi | |
46f18e7b | 3613 | |
af5e4ada DE |
3614 | # When building gcc with a cross-compiler, we need to fix a few things. |
3615 | # This must come after cross-make as we want all.build to override | |
3616 | # all.cross. | |
571a8de5 | 3617 | build_overrides="/dev/null" |
75bffa71 | 3618 | if test x$build != x$host |
af5e4ada DE |
3619 | then |
3620 | build_overrides="${topdir}/build-make" | |
3621 | fi | |
46f18e7b | 3622 | |
ae3a15bb DE |
3623 | # Expand extra_headers to include complete path. |
3624 | # This substitutes for lots of t-* files. | |
3625 | extra_headers_list= | |
75bffa71 | 3626 | if test "x$extra_headers" = x |
ae3a15bb DE |
3627 | then true |
3628 | else | |
3629 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
3630 | for file in $extra_headers; | |
3631 | do | |
3632 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
3633 | done | |
3634 | fi | |
3635 | ||
75bffa71 | 3636 | if test x$use_collect2 = xno; then |
2ce3c6c6 JM |
3637 | use_collect2= |
3638 | fi | |
3639 | ||
af5e4ada DE |
3640 | # Add a definition of USE_COLLECT2 if system wants one. |
3641 | # Also tell toplev.c what to do. | |
3642 | # This substitutes for lots of t-* files. | |
75bffa71 | 3643 | if test x$use_collect2 = x |
af5e4ada DE |
3644 | then |
3645 | will_use_collect2= | |
3646 | maybe_use_collect2= | |
3647 | else | |
10da1131 | 3648 | will_use_collect2="collect2" |
af5e4ada DE |
3649 | maybe_use_collect2="-DUSE_COLLECT2" |
3650 | fi | |
3651 | ||
3652 | # NEED TO CONVERT | |
3653 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
3654 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
3655 | # for line oriented comments, so we must always use a GNU cpp. If | |
3656 | # building gcc with a cross compiler, use the cross compiler just | |
3657 | # built. Otherwise, we can use the cpp just built. | |
3658 | md_file_sub= | |
75bffa71 | 3659 | if test "x$md_cppflags" = x |
af5e4ada DE |
3660 | then |
3661 | md_file_sub=$srcdir/config/$md_file | |
3662 | else | |
3663 | md_file=md | |
3664 | fi | |
3665 | ||
3666 | # If we have gas in the build tree, make a link to it. | |
75bffa71 | 3667 | if test -f ../gas/Makefile; then |
6e26218f | 3668 | rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null |
af5e4ada DE |
3669 | fi |
3670 | ||
4b95eb49 | 3671 | # If we have nm in the build tree, make a link to it. |
75bffa71 | 3672 | if test -f ../binutils/Makefile; then |
4b95eb49 JL |
3673 | rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null |
3674 | fi | |
3675 | ||
af5e4ada | 3676 | # If we have ld in the build tree, make a link to it. |
75bffa71 ILT |
3677 | if test -f ../ld/Makefile; then |
3678 | # if test x$use_collect2 = x; then | |
6e26218f | 3679 | # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null |
aa32d841 | 3680 | # else |
6e26218f | 3681 | rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null |
aa32d841 | 3682 | # fi |
af5e4ada DE |
3683 | fi |
3684 | ||
9e423e6d JW |
3685 | # Figure out what assembler alignment features are present. |
3686 | AC_MSG_CHECKING(assembler alignment features) | |
3687 | gcc_cv_as= | |
3688 | gcc_cv_as_alignment_features= | |
a2f319ea | 3689 | gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas |
ab339d62 AO |
3690 | if test -x "$AS"; then |
3691 | gcc_cv_as=$AS | |
3692 | elif test -x as$host_exeext; then | |
9e423e6d JW |
3693 | # Build using assembler in the current directory. |
3694 | gcc_cv_as=./as$host_exeext | |
75bffa71 | 3695 | elif test -f $gcc_cv_as_gas_srcdir/configure.in; then |
9e423e6d | 3696 | # Single tree build which includes gas. |
a2c9d57c | 3697 | for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in |
9e423e6d | 3698 | do |
75bffa71 ILT |
3699 | changequote(,)dnl |
3700 | gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f` | |
3701 | changequote([,])dnl | |
3702 | if test x$gcc_cv_gas_version != x; then | |
9e423e6d JW |
3703 | break |
3704 | fi | |
3705 | done | |
75bffa71 ILT |
3706 | changequote(,)dnl |
3707 | gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"` | |
3708 | gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"` | |
3709 | changequote([,])dnl | |
3710 | if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then | |
0b9d02c6 JL |
3711 | # Gas version 2.6 and later support for .balign and .p2align. |
3712 | # bytes to skip when using .p2align. | |
75bffa71 | 3713 | if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then |
0b9d02c6 JL |
3714 | gcc_cv_as_alignment_features=".balign and .p2align" |
3715 | AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN) | |
3716 | fi | |
3717 | # Gas version 2.8 and later support specifying the maximum | |
3718 | # bytes to skip when using .p2align. | |
75bffa71 | 3719 | if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then |
0b9d02c6 JL |
3720 | gcc_cv_as_alignment_features=".p2align including maximum skip" |
3721 | AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN) | |
3722 | fi | |
9e423e6d | 3723 | fi |
75bffa71 | 3724 | elif test x$host = x$target; then |
9e423e6d JW |
3725 | # Native build. |
3726 | gcc_cv_as=as$host_exeext | |
3727 | fi | |
75bffa71 | 3728 | if test x$gcc_cv_as != x; then |
00ccc16d JL |
3729 | # Check if we have .balign and .p2align |
3730 | echo ".balign 4" > conftest.s | |
3731 | echo ".p2align 2" >> conftest.s | |
3732 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
3733 | gcc_cv_as_alignment_features=".balign and .p2align" | |
3734 | AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN) | |
3735 | fi | |
3736 | rm -f conftest.s conftest.o | |
9e423e6d JW |
3737 | # Check if specifying the maximum bytes to skip when |
3738 | # using .p2align is supported. | |
3739 | echo ".p2align 4,,7" > conftest.s | |
3740 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
3741 | gcc_cv_as_alignment_features=".p2align including maximum skip" | |
3742 | AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN) | |
3743 | fi | |
3744 | rm -f conftest.s conftest.o | |
3745 | fi | |
3746 | AC_MSG_RESULT($gcc_cv_as_alignment_features) | |
3747 | ||
d1accaa3 JJ |
3748 | AC_MSG_CHECKING(assembler subsection support) |
3749 | gcc_cv_as_subsections= | |
3750 | if test x$gcc_cv_as != x; then | |
3751 | # Check if we have .subsection | |
3752 | echo ".subsection 1" > conftest.s | |
3753 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
3754 | gcc_cv_as_subsections=".subsection" | |
3755 | if test -x nm$host_exeext; then | |
3756 | gcc_cv_nm=./nm$host_exeext | |
3757 | elif test x$host = x$target; then | |
3758 | # Native build. | |
3759 | gcc_cv_nm=nm$host_exeext | |
3760 | fi | |
3761 | if test x$gcc_cv_nm != x; then | |
3762 | cat > conftest.s <<EOF | |
3763 | conftest_label1: .word 0 | |
3764 | .subsection -1 | |
3765 | conftest_label2: .word 0 | |
3766 | .previous | |
3767 | EOF | |
3768 | if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then | |
3769 | $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 | |
3770 | $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2 | |
1b015bec AO |
3771 | if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then |
3772 | : | |
3773 | else | |
d1accaa3 JJ |
3774 | gcc_cv_as_subsections="working .subsection -1" |
3775 | AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING) | |
3776 | fi | |
3777 | fi | |
3778 | fi | |
3779 | fi | |
3780 | rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 | |
3781 | fi | |
3782 | AC_MSG_RESULT($gcc_cv_as_subsections) | |
3783 | ||
571a8de5 DE |
3784 | # Figure out what language subdirectories are present. |
3785 | subdirs= | |
3786 | for lang in ${srcdir}/*/config-lang.in .. | |
3787 | do | |
3788 | case $lang in | |
3789 | ..) ;; | |
3790 | # The odd quoting in the next line works around | |
3791 | # an apparent bug in bash 1.12 on linux. | |
75bffa71 | 3792 | changequote(,)dnl |
bcf12124 JL |
3793 | ${srcdir}/ada/config-lang.in) |
3794 | if test x$gnat = xyes ; then | |
3795 | subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" | |
3796 | fi | |
3797 | ;; | |
75bffa71 ILT |
3798 | ${srcdir}/[*]/config-lang.in) ;; |
3799 | *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;; | |
3800 | changequote([,])dnl | |
571a8de5 DE |
3801 | esac |
3802 | done | |
3803 | ||
f24af81b TT |
3804 | # Make gthr-default.h if we have a thread file. |
3805 | gthread_flags= | |
75bffa71 | 3806 | if test $thread_file != single; then |
f24af81b | 3807 | rm -f gthr-default.h |
db0d1ed9 | 3808 | echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h |
f24af81b TT |
3809 | gthread_flags=-DHAVE_GTHR_DEFAULT |
3810 | fi | |
3811 | AC_SUBST(gthread_flags) | |
3812 | ||
571a8de5 DE |
3813 | # Make empty files to contain the specs and options for each language. |
3814 | # Then add #include lines to for a compiler that has specs and/or options. | |
3815 | ||
3816 | lang_specs_files= | |
3817 | lang_options_files= | |
3103b7db ML |
3818 | lang_tree_files= |
3819 | rm -f specs.h options.h gencheck.h | |
3820 | touch specs.h options.h gencheck.h | |
571a8de5 DE |
3821 | for subdir in . $subdirs |
3822 | do | |
75bffa71 | 3823 | if test -f $srcdir/$subdir/lang-specs.h; then |
571a8de5 DE |
3824 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h |
3825 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
3826 | fi | |
75bffa71 | 3827 | if test -f $srcdir/$subdir/lang-options.h; then |
571a8de5 DE |
3828 | echo "#include \"$subdir/lang-options.h\"" >>options.h |
3829 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
3830 | fi | |
3103b7db ML |
3831 | if test -f $srcdir/$subdir/$subdir-tree.def; then |
3832 | echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h | |
3833 | lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def" | |
3834 | fi | |
571a8de5 DE |
3835 | done |
3836 | ||
3837 | # These (without "all_") are set in each config-lang.in. | |
3838 | # `language' must be a single word so is spelled singularly. | |
3839 | all_languages= | |
3840 | all_boot_languages= | |
3841 | all_compilers= | |
3842 | all_stagestuff= | |
3843 | all_diff_excludes= | |
0280cf84 | 3844 | all_outputs=Makefile |
571a8de5 DE |
3845 | # List of language makefile fragments. |
3846 | all_lang_makefiles= | |
3847 | all_headers= | |
3848 | all_lib2funcs= | |
3849 | ||
3850 | # Add the language fragments. | |
3851 | # Languages are added via two mechanisms. Some information must be | |
3852 | # recorded in makefile variables, these are defined in config-lang.in. | |
3853 | # We accumulate them and plug them into the main Makefile. | |
3854 | # The other mechanism is a set of hooks for each of the main targets | |
3855 | # like `clean', `install', etc. | |
3856 | ||
3857 | language_fragments="Make-lang" | |
3858 | language_hooks="Make-hooks" | |
0280cf84 | 3859 | oldstyle_subdirs= |
571a8de5 DE |
3860 | |
3861 | for s in .. $subdirs | |
3862 | do | |
75bffa71 | 3863 | if test $s != ".." |
571a8de5 DE |
3864 | then |
3865 | language= | |
3866 | boot_language= | |
3867 | compilers= | |
3868 | stagestuff= | |
3869 | diff_excludes= | |
3870 | headers= | |
0280cf84 | 3871 | outputs= |
571a8de5 DE |
3872 | lib2funcs= |
3873 | . ${srcdir}/$s/config-lang.in | |
75bffa71 | 3874 | if test "x$language" = x |
571a8de5 DE |
3875 | then |
3876 | echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
3877 | exit 1 | |
3878 | fi | |
3879 | all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in" | |
3880 | all_languages="$all_languages $language" | |
75bffa71 | 3881 | if test "x$boot_language" = xyes |
571a8de5 DE |
3882 | then |
3883 | all_boot_languages="$all_boot_languages $language" | |
3884 | fi | |
3885 | all_compilers="$all_compilers $compilers" | |
3886 | all_stagestuff="$all_stagestuff $stagestuff" | |
3887 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
3888 | all_headers="$all_headers $headers" | |
0280cf84 | 3889 | all_outputs="$all_outputs $outputs" |
75bffa71 | 3890 | if test x$outputs = x |
0280cf84 PB |
3891 | then |
3892 | oldstyle_subdirs="$oldstyle_subdirs $s" | |
3893 | fi | |
571a8de5 DE |
3894 | all_lib2funcs="$all_lib2funcs $lib2funcs" |
3895 | fi | |
3896 | done | |
3897 | ||
3898 | # Since we can't use `::' targets, we link each language in | |
3899 | # with a set of hooks, reached indirectly via lang.${target}. | |
3900 | ||
3901 | rm -f Make-hooks | |
3902 | touch Make-hooks | |
3903 | target_list="all.build all.cross start.encap rest.encap \ | |
3904 | info dvi \ | |
3905 | install-normal install-common install-info install-man \ | |
3906 | uninstall distdir \ | |
3907 | mostlyclean clean distclean extraclean maintainer-clean \ | |
3908 | stage1 stage2 stage3 stage4" | |
3909 | for t in $target_list | |
3910 | do | |
3911 | x= | |
3912 | for l in .. $all_languages | |
3913 | do | |
75bffa71 | 3914 | if test $l != ".."; then |
571a8de5 DE |
3915 | x="$x $l.$t" |
3916 | fi | |
3917 | done | |
3918 | echo "lang.$t: $x" >> Make-hooks | |
3919 | done | |
3920 | ||
296e46bd DE |
3921 | # If we're not building in srcdir, create .gdbinit. |
3922 | ||
75bffa71 | 3923 | if test ! -f Makefile.in; then |
296e46bd DE |
3924 | echo "dir ." > .gdbinit |
3925 | echo "dir ${srcdir}" >> .gdbinit | |
75bffa71 | 3926 | if test x$gdb_needs_out_file_path = xyes |
296e46bd DE |
3927 | then |
3928 | echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit | |
3929 | fi | |
75bffa71 | 3930 | if test "x$subdirs" != x; then |
296e46bd DE |
3931 | for s in $subdirs |
3932 | do | |
3933 | echo "dir ${srcdir}/$s" >> .gdbinit | |
3934 | done | |
3935 | fi | |
3936 | echo "source ${srcdir}/.gdbinit" >> .gdbinit | |
3937 | fi | |
3938 | ||
88111b26 JL |
3939 | # Define variables host_canonical and build_canonical |
3940 | # because some Cygnus local changes in the Makefile depend on them. | |
3941 | build_canonical=${build} | |
3942 | host_canonical=${host} | |
3943 | target_subdir= | |
75bffa71 | 3944 | if test "${host}" != "${target}" ; then |
88111b26 JL |
3945 | target_subdir=${target}/ |
3946 | fi | |
3947 | AC_SUBST(build_canonical) | |
3948 | AC_SUBST(host_canonical) | |
3949 | AC_SUBST(target_subdir) | |
3950 | ||
dec88383 DE |
3951 | # If this is using newlib, then define inhibit_libc in |
3952 | # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of | |
3953 | # libgcc.a, but that's OK because newib should have its own version of | |
3954 | # assert.h. | |
3955 | inhibit_libc= | |
75bffa71 | 3956 | if test x$with_newlib = xyes; then |
dec88383 DE |
3957 | inhibit_libc=-Dinhibit_libc |
3958 | fi | |
3959 | AC_SUBST(inhibit_libc) | |
3960 | ||
8c660648 JL |
3961 | # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler. |
3962 | sched_prefix= | |
3963 | sched_cflags= | |
75bffa71 | 3964 | if test x$enable_haifa = xyes; then |
8c660648 JL |
3965 | echo "Using the Haifa scheduler." |
3966 | sched_prefix=haifa- | |
3967 | sched_cflags=-DHAIFA | |
3968 | fi | |
3969 | AC_SUBST(sched_prefix) | |
3970 | AC_SUBST(sched_cflags) | |
75bffa71 | 3971 | if test x$enable_haifa != x; then |
8c660648 JL |
3972 | # Explicitly remove files that need to be recompiled for the Haifa scheduler. |
3973 | for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do | |
75bffa71 | 3974 | if test -f $x; then |
8c660648 JL |
3975 | echo "Removing $x" |
3976 | rm -f $x | |
3977 | fi | |
3978 | done | |
3979 | fi | |
3980 | ||
2ce3c6c6 JM |
3981 | # Warn if using init_priority. |
3982 | AC_MSG_CHECKING(whether to enable init_priority by default) | |
75bffa71 | 3983 | if test x$enable_init_priority != xyes; then |
2ce3c6c6 JM |
3984 | enable_init_priority=no |
3985 | fi | |
3986 | AC_MSG_RESULT($enable_init_priority) | |
3987 | ||
7e717196 JL |
3988 | # Nothing to do for FLOAT_H, float_format already handled. |
3989 | objdir=`pwd` | |
3990 | AC_SUBST(objdir) | |
3991 | ||
94f42018 DE |
3992 | # Process the language and host/target makefile fragments. |
3993 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" | |
47866ac0 | 3994 | |
46f18e7b RK |
3995 | # Substitute configuration variables |
3996 | AC_SUBST(subdirs) | |
3997 | AC_SUBST(all_languages) | |
3998 | AC_SUBST(all_boot_languages) | |
3999 | AC_SUBST(all_compilers) | |
4000 | AC_SUBST(all_lang_makefiles) | |
4001 | AC_SUBST(all_stagestuff) | |
4002 | AC_SUBST(all_diff_excludes) | |
4003 | AC_SUBST(all_lib2funcs) | |
4004 | AC_SUBST(all_headers) | |
e061d1ce | 4005 | AC_SUBST(cpp_main) |
46f18e7b RK |
4006 | AC_SUBST(extra_passes) |
4007 | AC_SUBST(extra_programs) | |
4008 | AC_SUBST(extra_parts) | |
b4294351 | 4009 | AC_SUBST(extra_c_objs) |
c8724862 | 4010 | AC_SUBST(extra_cxx_objs) |
56f48ce9 | 4011 | AC_SUBST(extra_cpp_objs) |
b4294351 | 4012 | AC_SUBST(extra_c_flags) |
46f18e7b RK |
4013 | AC_SUBST(extra_objs) |
4014 | AC_SUBST(host_extra_gcc_objs) | |
4015 | AC_SUBST(extra_headers_list) | |
4016 | AC_SUBST(dep_host_xmake_file) | |
4017 | AC_SUBST(dep_tmake_file) | |
4018 | AC_SUBST(out_file) | |
4019 | AC_SUBST(out_object_file) | |
4020 | AC_SUBST(md_file) | |
4021 | AC_SUBST(tm_file_list) | |
4022 | AC_SUBST(build_xm_file_list) | |
4023 | AC_SUBST(host_xm_file_list) | |
4024 | AC_SUBST(lang_specs_files) | |
4025 | AC_SUBST(lang_options_files) | |
3103b7db | 4026 | AC_SUBST(lang_tree_files) |
0bbb1697 | 4027 | AC_SUBST(thread_file) |
d8bb17c8 | 4028 | AC_SUBST(objc_boehm_gc) |
f1943b77 MH |
4029 | AC_SUBST(gcc_version) |
4030 | AC_SUBST(gcc_version_trigger) | |
46f18e7b | 4031 | AC_SUBST(local_prefix) |
9514f0d1 | 4032 | AC_SUBST(gxx_include_dir) |
46f18e7b RK |
4033 | AC_SUBST(fixincludes) |
4034 | AC_SUBST(build_install_headers_dir) | |
a204adc6 | 4035 | AC_SUBST(build_exeext) |
6e26218f | 4036 | AC_SUBST(host_exeext) |
46f18e7b RK |
4037 | AC_SUBST(float_format) |
4038 | AC_SUBST(will_use_collect2) | |
4039 | AC_SUBST(maybe_use_collect2) | |
4040 | AC_SUBST(cc_set_by_configure) | |
4041 | AC_SUBST(stage_prefix_set_by_configure) | |
9b16d2c4 | 4042 | AC_SUBST(install) |
e9a25f70 | 4043 | AC_SUBST(symbolic_link) |
46f18e7b RK |
4044 | |
4045 | AC_SUBST_FILE(target_overrides) | |
4046 | AC_SUBST_FILE(host_overrides) | |
4047 | AC_SUBST(cross_defines) | |
4048 | AC_SUBST_FILE(cross_overrides) | |
4049 | AC_SUBST_FILE(build_overrides) | |
4050 | AC_SUBST_FILE(language_fragments) | |
4051 | AC_SUBST_FILE(language_hooks) | |
4052 | ||
4053 | # Echo that links are built | |
75bffa71 | 4054 | if test x$host = x$target |
46f18e7b RK |
4055 | then |
4056 | str1="native " | |
4057 | else | |
4058 | str1="cross-" | |
4059 | str2=" from $host" | |
4060 | fi | |
4061 | ||
75bffa71 | 4062 | if test x$host != x$build |
46f18e7b RK |
4063 | then |
4064 | str3=" on a $build system" | |
4065 | fi | |
4066 | ||
75bffa71 | 4067 | if test "x$str2" != x || test "x$str3" != x |
46f18e7b RK |
4068 | then |
4069 | str4= | |
4070 | fi | |
4071 | ||
4072 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
4073 | ||
75bffa71 | 4074 | if test "x$str2" != x || test "x$str3" != x |
46f18e7b RK |
4075 | then |
4076 | echo " ${str2}${str3}." 1>&2 | |
4077 | fi | |
4078 | ||
61536478 | 4079 | # Truncate the target if necessary |
75bffa71 | 4080 | if test x$host_truncate_target != x; then |
61536478 JL |
4081 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` |
4082 | fi | |
4083 | ||
46f18e7b RK |
4084 | # Configure the subdirectories |
4085 | # AC_CONFIG_SUBDIRS($subdirs) | |
4086 | ||
4087 | # Create the Makefile | |
5891b37d | 4088 | # and configure language subdirectories |
0280cf84 | 4089 | AC_OUTPUT($all_outputs, |
cdcc6a01 DE |
4090 | [ |
4091 | . $srcdir/configure.lang | |
4092 | case x$CONFIG_HEADERS in | |
b7cb92ad | 4093 | xauto-host.h:config.in) |
818b66cc | 4094 | echo > cstamp-h ;; |
cdcc6a01 | 4095 | esac |
93cf819d BK |
4096 | # If the host supports symlinks, point stage[1234] at ../stage[1234] so |
4097 | # bootstrapping and the installation procedure can still use | |
4098 | # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, | |
4099 | # FLAGS_TO_PASS has been modified to solve the problem there. | |
4100 | # This is virtually a duplicate of what happens in configure.lang; we do | |
4101 | # an extra check to make sure this only happens if ln -s can be used. | |
75bffa71 | 4102 | if test "$symbolic_link" = "ln -s"; then |
93cf819d | 4103 | for d in .. ${subdirs} ; do |
75bffa71 | 4104 | if test $d != ..; then |
4e8a434e BK |
4105 | STARTDIR=`pwd` |
4106 | cd $d | |
4107 | for t in stage1 stage2 stage3 stage4 include | |
4108 | do | |
4109 | rm -f $t | |
4110 | $symbolic_link ../$t $t 2>/dev/null | |
4111 | done | |
4112 | cd $STARTDIR | |
93cf819d BK |
4113 | fi |
4114 | done | |
4115 | else true ; fi | |
cdcc6a01 DE |
4116 | ], |
4117 | [ | |
5891b37d RK |
4118 | host='${host}' |
4119 | build='${build}' | |
4120 | target='${target}' | |
52060267 | 4121 | target_alias='${target_alias}' |
5891b37d RK |
4122 | srcdir='${srcdir}' |
4123 | subdirs='${subdirs}' | |
296e46bd | 4124 | oldstyle_subdirs='${oldstyle_subdirs}' |
5891b37d RK |
4125 | symbolic_link='${symbolic_link}' |
4126 | program_transform_set='${program_transform_set}' | |
4127 | program_transform_name='${program_transform_name}' | |
5891b37d RK |
4128 | dep_host_xmake_file='${dep_host_xmake_file}' |
4129 | host_xmake_file='${host_xmake_file}' | |
4130 | dep_tmake_file='${dep_tmake_file}' | |
4131 | tmake_file='${tmake_file}' | |
0bbb1697 | 4132 | thread_file='${thread_file}' |
f1943b77 MH |
4133 | gcc_version='${gcc_version}' |
4134 | gcc_version_trigger='${gcc_version_trigger}' | |
5891b37d | 4135 | local_prefix='${local_prefix}' |
5891b37d | 4136 | build_install_headers_dir='${build_install_headers_dir}' |
a204adc6 | 4137 | build_exeext='${build_exeext}' |
6e26218f | 4138 | host_exeext='${host_exeext}' |
7ed46111 | 4139 | out_file='${out_file}' |
5891b37d RK |
4140 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
4141 | SET_MAKE='${SET_MAKE}' | |
5891b37d | 4142 | target_list='${target_list}' |
5891b37d RK |
4143 | target_overrides='${target_overrides}' |
4144 | host_overrides='${host_overrides}' | |
4145 | cross_defines='${cross_defines}' | |
4146 | cross_overrides='${cross_overrides}' | |
4147 | build_overrides='${build_overrides}' | |
cdcc6a01 | 4148 | ]) |