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