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