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