|
|
1.1 root 1: #!/bin/sh
2: # Configuration script for GNU CC
1.1.1.8 root 3: # Copyright (C) 1988, 90, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
1.1 root 4:
5: #This file is part of GNU CC.
6:
7: #GNU CC is free software; you can redistribute it and/or modify
8: #it under the terms of the GNU General Public License as published by
9: #the Free Software Foundation; either version 2, or (at your option)
10: #any later version.
11:
12: #GNU CC is distributed in the hope that it will be useful,
13: #but WITHOUT ANY WARRANTY; without even the implied warranty of
14: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: #GNU General Public License for more details.
16:
17: #You should have received a copy of the GNU General Public License
18: #along with GNU CC; see the file COPYING. If not, write to
1.1.1.8 root 19: #the Free Software Foundation, 59 Temple Place - Suite 330,
20: #Boston, MA 02111-1307, USA.
1.1 root 21:
22: #
23: # Shell script to create proper links to machine-dependent files in
24: # preparation for compiling gcc.
25: #
1.1.1.4 root 26: # Options: --srcdir=DIR specifies directory where sources are.
27: # --host=HOST specifies host configuration.
28: # --target=TARGET specifies target configuration.
29: # --build=TARGET specifies configuration of machine you are
30: # using to compile GCC.
31: # --prefix=DIR specifies directory to install in.
1.1.1.5 root 32: # --local-prefix=DIR specifies directory to put local ./include in.
1.1.1.7 root 33: # --gxx-include-dir=DIR specifies directory to put g++ header files in.
1.1.1.4 root 34: # --exec-prefix=DIR specifies directory to install executables in.
35: # --with-gnu-ld arrange to work with GNU ld.
36: # --with-gnu-as arrange to work with GAS.
37: # --with-stabs arrange to use stabs instead of host debug format.
1.1.1.6 root 38: # --with-elf arrange to use elf instead of host debug format.
1.1.1.8 root 39: # --enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)
40: # --disable-FOO do not include feature FOO
1.1.1.4 root 41: # --nfp assume system has no FPU.
1.1.1.8 root 42: # --program-prefix=PREFIX specifies prefix for executable names.
43: # --program-suffix=SUFFIX specifies suffix for executable names.
44: # --program-transform-name=SED-EXPR specifies `sed' expression to
45: # apply to executable names.
1.1 root 46: #
47: # If configure succeeds, it leaves its status in config.status.
48: # If configure fails after disturbing the status quo,
49: # config.status is removed.
50: #
51:
52: progname=$0
53:
54: # Default --srcdir to the directory where the script is found,
55: # if a directory was specified.
1.1.1.3 root 56: # The second sed call is to convert `.//configure' to `./configure'.
57: srcdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
1.1 root 58: if [ x$srcdir = x$0 ]
59: then
60: srcdir=
61: fi
62:
1.1.1.3 root 63: host=
64:
1.1.1.4 root 65: # Default prefix to /usr/local.
66: prefix=/usr/local
1.1.1.5 root 67:
1.1.1.8 root 68: # On systems where GCC is the native compiler, $prefix should be
69: # /usr. But the user can change it with configure --prefix=/foo/bar
70: native_prefix=/usr
71:
1.1.1.5 root 72: # local_prefix specifies where to find the directory /usr/local/include
73: # We don't use $(prefix) for this
74: # because we always want GCC to search /usr/local/include
75: # even if GCC is installed somewhere other than /usr/local.
76: # Think THREE TIMES before specifying any other value for this!
77: # DO NOT make this use $prefix!
78: local_prefix=/usr/local
1.1.1.4 root 79: # Default is to let the Makefile set exec_prefix from $(prefix)
80: exec_prefix='$(prefix)'
1.1.1.7 root 81: #
82: # The default g++ include directory is $(libdir)/g++-include.
83: gxx_include_dir='$(libdir)/g++-include'
1.1.1.4 root 84:
1.1.1.8 root 85: # Default --program-transform-name to nothing.
86: program_transform_name=
87: program_transform_set=
88:
1.1 root 89: remove=rm
90: hard_link=ln
91: symbolic_link='ln -s'
1.1.1.2 root 92: copy=cp
1.1 root 93:
94: # Record all the arguments, to write them in config.status.
95: arguments=$*
96:
97: #for Test
98: #remove="echo rm"
99: #hard_link="echo ln"
100: #symbolic_link="echo ln -s"
101:
1.1.1.4 root 102: target=
103: host=
104: build=
1.1.1.7 root 105: name1=
106: name2=
1.1.1.4 root 107:
1.1 root 108: for arg in $*;
109: do
1.1.1.4 root 110: case $next_arg in
111: --srcdir)
112: srcdir=$arg
113: next_arg=
114: ;;
115: --host)
116: host=$arg
117: next_arg=
118: ;;
119: --target)
120: target=$arg
121: next_arg=
122: ;;
123: --build)
124: build=$arg
125: next_arg=
126: ;;
127: --prefix)
128: prefix=$arg
1.1.1.8 root 129: native_prefix=$prefix
1.1.1.4 root 130: next_arg=
131: ;;
1.1.1.5 root 132: --local-prefix)
133: local_prefix=$arg
134: next_arg=
135: ;;
1.1.1.7 root 136: --gxx-include-dir)
137: gxx_include_dir=$arg
138: next_arg=
139: ;;
1.1.1.4 root 140: --exec-prefix)
141: exec_prefix=$arg
142: next_arg=
143: ;;
1.1.1.8 root 144: --program-transform-name)
145: # Double any backslashes or dollar signs in the argument.
146: if [ -n "${arg}" ] ; then
147: program_transform_name="${program_transform_name} -e `echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
148: fi
149: program_transform_set=yes
150: next_arg=
151: ;;
152: --program-prefix)
153: if [ -n "${arg}" ]; then
154: program_transform_name="${program_transform_name} -e s,^,`echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`,"
155: fi
156: program_transform_set=yes
157: next_arg=
158: ;;
159: --program-suffix)
160: if [ -n "${arg}" ]; then
161: program_transform_name="${program_transform_name} -e s,\$\$,`echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`,"
162: fi
163: program_transform_set=yes
164: next_arg=
165: ;;
166: --x-*)
167: next_arg=
168: ;;
1.1.1.4 root 169: *)
1.1 root 170: case $arg in
1.1.1.7 root 171: -*)
172: if [ x$name1 != x ]
173: then
174: echo "Positional arguments must be last." 1>&2
175: exit 1
176: fi
177: ;;
178: esac
179:
180: case $arg in
181: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1.1.1.4 root 182: next_arg=--srcdir
183: ;;
1.1.1.7 root 184: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.1 root 185: srcdir=`echo $arg | sed 's/-*s[a-z]*=//'`
186: ;;
1.1.1.7 root 187: -host | --host | --hos | --ho)
1.1.1.4 root 188: next_arg=--host
1.1 root 189: ;;
1.1.1.7 root 190: -host=* | --host=* | --hos=* | --ho=*)
1.1 root 191: host=`echo $arg | sed 's/-*h[a-z]*=//'`
192: ;;
193: -target | --target | --targe | --targ | --tar | --ta | --t)
1.1.1.4 root 194: next_arg=--target
1.1 root 195: ;;
196: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
197: target=`echo $arg | sed 's/-*t[a-z]*=//'`
198: ;;
1.1.1.4 root 199: -build | --build | --buil | --bui | --bu | --b)
200: next_arg=--build
201: ;;
202: -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
203: build=`echo $arg | sed 's/-*b[a-z]*=//'`
204: ;;
205: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
206: next_arg=--prefix
207: ;;
208: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
209: prefix=`echo $arg | sed 's/-*p[a-z]*=//'`
1.1.1.8 root 210: native_prefix=$prefix
1.1.1.4 root 211: ;;
1.1.1.5 root 212: -local-prefix | --local-prefix | --local-prefi | --local-pref | --local-pre \
213: | --local-pr | --local-p | --local- | --local | --loc | --lo | --l)
214: next_arg=--local-prefix
215: ;;
216: -local-prefix=* | --local-prefix=* | --local-prefi=* | --local-pref=* \
217: | --local-pre=* | --local-pr=* | --local-p=* | --local-=* | --local=* \
218: | --loc=* | --lo=* | --l=*)
219: local_prefix=`echo $arg | sed 's/-*l[-a-z]*=//'`
220: ;;
1.1.1.7 root 221: -gxx-include-dir | --gxx-include-dir | --gxx-include \
222: | --gxx-incl | --gxx-inc | --gxx-in | --gxx-i | --gxx- \
223: | --gxx | --gxx | --gx | --g)
224: next_arg=--gxx-include-dir
225: ;;
226: -gxx-include-dir=* | --gxx-include-dir=* | --gxx-include=* \
227: | --gxx-incl=* | --gxx-inc=* | --gxx-in=* | --gxx-i=* \
228: | --gxx-=* | --gxx=* | --gxx=* | --gxx=* | --g=*)
229: gxx_include_dir=`echo $arg | sed 's/-*g[-a-z]*=//'`
230: ;;
1.1.1.4 root 231: -exec-prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre \
232: | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
233: next_arg=--exec-prefix
234: ;;
235: -exec-prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* \
236: | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* \
237: | --exe=* | --ex=* | --e=*)
238: exec_prefix=`echo $arg | sed 's/-*e[-a-z]*=//'`
239: ;;
1.1.1.8 root 240: -program-transform-name | --program-transform-name \
241: | --program-transform-nam | --program-transform-na \
242: | --program-transform-n | --program-transform- | --program-transform \
243: | --program-transfor | --program-transfo | --program-transf \
244: | --program-trans | --program-tran | --program-tra \
245: | --program-tr | --program-t)
246: next_arg=--program-transform-name
247: ;;
248: -program-transform-name=* | --program-transform-name=* \
249: | --program-transform-nam=* | --program-transform-na=* \
250: | --program-transform-n=* | --program-transform-=* \
251: | --program-transform=* | --program-transfor=* | --program-transfo=* \
252: | --program-transf=* | --program-trans=* | --program-tran=* \
253: | --program-tra=* | --program-tr=* | --program-t=*)
254: arg=`echo ${arg} | sed -e 's/^[-a-z_]*=//'`
255: # Double any \ or $ in the argument.
256: if [ -n "${arg}" ] ; then
257: program_transform_name="${program_transform_name} -e `echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
258: fi
259: program_transform_set=yes
260: ;;
261: -program-prefix | --program-prefix | --program-prefi \
262: | --program-pref | --program-pre | --program-pr \
263: | --program-p)
264: next_arg=--program-prefix
265: ;;
266: -program-prefix=* | --program-prefix=* | --program-prefi=* \
267: | --program-pref=* | --program-pre=* | --program-pr=* \
268: | --program-p=*)
269: arg=`echo ${arg} | sed -e 's/^[-a-z_]*=//'`
270: if [ -n "${arg}" ]; then
271: program_transform_name="${program_transform_name} -e s,^,`echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`,"
272: fi
273: program_transform_set=yes
274: ;;
275: -program-suffix | --program-suffix | --program-suffi \
276: | --program-suff | --program-suf | --program-su \
277: | --program-s)
278: next_arg=--program-suffix
279: ;;
280: -program-suffix=* | --program-suffix=* | --program-suffi=* \
281: | --program-suff=* | --program-suf=* | --program-su=* \
282: | --program-s=*)
283: arg=`echo ${arg} | sed -e 's/^[-a-z_]*=//'`
284: if [ -n "${arg}" ]; then
285: program_transform_name="${program_transform_name} -e s,\$\$,`echo ${arg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`,"
286: fi
287: program_transform_set=yes
288: ;;
1.1.1.3 root 289: -with-gnu-ld | --with-gnu-ld | --with-gnu-l)
290: gnu_ld=yes
291: ;;
292: -gas | --gas | --ga | --g | -with-gnu-as | --with-gnu-as | -with-gnu-a)
1.1 root 293: gas=yes
294: ;;
295: -nfp | --nfp | --nf | --n)
296: nfp=yes
297: ;;
1.1.1.4 root 298: -with-stabs | -with-stab | -with-sta | -with-st | -with-s \
299: | --with-stabs | --with-stab | --with-sta | --with-st | --with-s \
300: | -stabs | -stab | -sta | -st \
301: | --stabs | --stab | --sta | --st)
302: stabs=yes
303: ;;
1.1.1.6 root 304: -with-elf | -with-el | -with-se \
305: | --with-elf | --with-el | --with-e \
306: | -elf | -el | -e \
307: |--elf | --el | --e)
308: elf=yes
309: ;;
1.1.1.3 root 310: -with-* | --with-*) ;; #ignored
1.1.1.7 root 311: -without-* | --without-*) ;; #ignored
1.1.1.8 root 312: -disable-* | --disable-*)
313: enableopt=`echo ${arg} | sed 's:^-*disable-:enable_:;s:-:_:g'`
314: eval $enableopt=no
315: ;;
316: -enable-* | --enable-*)
317: case "$arg" in
318: *=*) optarg=`echo $arg | sed 's:^[^=]*=::;s:-:_:g'` ;;
319: *) optarg=yes ;;
320: esac
321: enableopt=`echo ${arg} | sed 's:^-*::;s:=.*$::;s:-:_:g'`
322: eval $enableopt="$optarg"
323: ;;
1.1.1.2 root 324: -x | --x) ;; # ignored
1.1.1.8 root 325: -x-*=* | --x-*=*) ;; # ignored
326: -x-* | --x-*)
327: next_arg=--x-ignored # ignored
328: ;;
1.1.1.7 root 329: --he*) ;; # ignored for now (--help)
330: --vers*) ;; # ignored for now (--version)
1.1.1.8 root 331: -v | -verb* | --verb*) ;; # ignored for now (--verbose)
1.1.1.7 root 332: --program-*) ;; #ignored (--program-prefix, --program-suffix)
333: --c*) ;; #ignored (--cache-file)
334: --q*) ;; #ignored (--quiet)
335: --si*) ;; #ignored (--silent)
1.1.1.3 root 336: -*)
337: echo "Invalid option \`$arg'" 1>&2
338: exit 1
339: ;;
1.1 root 340: *)
1.1.1.7 root 341: # Allow configure HOST TARGET. If just one name is given, it is used
342: # as both unless a host was previously given, in which case it is
343: # just the target.
344: if [ x$name1 != x ]
345: then
346: if [ x$name2 != x ]
347: then
348: echo "More than two configuration names." 1>&2
349: exit 1
350: fi
351: name2=$arg
352: elif [ x$host != x ]
1.1 root 353: then
1.1.1.7 root 354: name1=$host
355: name2=$arg
356: host=
357: else
358: name1=$arg
1.1 root 359: fi
360: ;;
361: esac
1.1.1.4 root 362: esac
1.1 root 363: done
364:
1.1.1.7 root 365: if [ x$name1 != x ]
366: then
367: if [ x$name2 = x ]
368: then
369: name2=$name1
370: fi
371:
372: if [ x$host != x ]
373: then
374: echo "Duplicate specification of host." 1>&2
375: exit 1
376: fi
377:
378: if [ x$target != x ]
379: then
380: echo "Duplicate specification of target." 1>&2
381: exit 1
382: fi
383:
384: host=$name1
385: build=$name1
386: target=$name2
387: fi
388:
1.1 root 389: # Find the source files, if location was not specified.
390: if [ x$srcdir = x ]
391: then
392: srcdirdefaulted=1
393: srcdir=.
394: if [ ! -r tree.c ]
395: then
396: srcdir=..
397: fi
398: fi
399:
400: if [ ! -r ${srcdir}/tree.c ]
401: then
402: if [ x$srcdirdefaulted = x ]
403: then
1.1.1.2 root 404: echo "$progname: Can't find compiler sources in \`${srcdir}'" 1>&2
1.1 root 405: else
1.1.1.2 root 406: echo "$progname: Can't find compiler sources in \`.' or \`..'" 1>&2
1.1 root 407: fi
408: exit 1
409: fi
410:
1.1.1.2 root 411: if [ -r ${srcdir}/config.status ] && [ x$srcdir != x. ]
412: then
413: echo "$progname: \`configure' has been run in \`${srcdir}'" 1>&2
414: exit 1
1.1 root 415: fi
416:
417: # Complain if an arg is missing
1.1.1.7 root 418: if [ x$build = x ]
1.1 root 419: then
1.1.1.7 root 420: # If host was specified, always use it for build also to avoid
421: # confusion. If someone wants a cross compiler where build != host,
422: # then they must specify build explicitly. Since this case is
423: # extremely rare, it does not matter that it is slightly inconvenient.
424: if [ x$host != x ]
425: then
426: build=$host
427:
1.1.1.6 root 428: # This way of testing the result of a command substitution is
429: # defined by Posix.2 (section 3.9.1) as well as traditional shells.
1.1.1.7 root 430: elif build=`${srcdir}/config.guess`
431: then
432: echo "This appears to be a ${build} system." 1>&2
433:
434: elif [ x$target != x ]
435: then
436: echo 'Config.guess failed to determine the host type. Defaulting to target.'
437: build=$target
1.1.1.6 root 438: else
439: echo 'Config.guess failed to determine the host type. You need to specify one.' 1>&2
440: echo "\
1.1.1.4 root 441: Usage: `basename $progname` [--host=HOST] [--build=BUILD]
1.1.1.7 root 442: [--prefix=DIR] [--gxx-include-dir=DIR] [--local-pref=DIR] [--exec-pref=DIR]
1.1.1.6 root 443: [--with-gnu-as] [--with-gnu-ld] [--with-stabs] [--with-elf] [--nfp] TARGET" 1>&2
1.1.1.4 root 444: echo "Where HOST, TARGET and BUILD are three-part configuration names " 1>&2
1.1.1.6 root 445: if [ -r config.status ]
446: then
447: tail +2 config.status 1>&2
448: fi
449: exit 1
1.1 root 450: fi
451: fi
452:
1.1.1.7 root 453: # If $host was not specified, use $build.
1.1 root 454: if [ x$host = x ]
455: then
1.1.1.7 root 456: host=$build
1.1 root 457: fi
1.1.1.7 root 458:
459: # If $target was not specified, use $host.
460: if [ x$target = x ]
1.1.1.4 root 461: then
1.1.1.7 root 462: target=$host
1.1.1.4 root 463: fi
1.1 root 464:
1.1.1.4 root 465: build_xm_file=
1.1.1.3 root 466: host_xm_file=
467: host_xmake_file=
468: host_broken_install=
1.1.1.5 root 469: host_install_headers_dir=install-headers-tar
1.1.1.6 root 470: host_truncate_target=
1.1.1.3 root 471:
1.1.1.4 root 472: # Validate the specs, and canonicalize them.
1.1.1.5 root 473: canon_build=`/bin/sh $srcdir/config.sub $build` || exit 1
474: canon_host=`/bin/sh $srcdir/config.sub $host` || exit 1
475: canon_target=`/bin/sh $srcdir/config.sub $target` || exit 1
1.1.1.4 root 476:
1.1 root 477: # Decode the host machine, then the target machine.
478: # For the host machine, we save the xm_file variable as host_xm_file;
479: # then we decode the target machine and forget everything else
480: # that came from the host machine.
1.1.1.4 root 481: for machine in $canon_build $canon_host $canon_target; do
1.1 root 482:
483: cpu_type=
484: xm_file=
485: tm_file=
1.1.1.3 root 486: out_file=
1.1 root 487: xmake_file=
488: tmake_file=
1.1.1.8 root 489: extra_headers=
1.1.1.6 root 490: extra_passes=
1.1.1.7 root 491: extra_parts=
492: extra_programs=
493: extra_objs=
1.1.1.8 root 494: extra_gcc_objs=
1.1.1.3 root 495: # Set this to force installation and use of collect2.
496: use_collect2=
1.1.1.4 root 497: # Set this to override the default target model.
498: target_cpu_default=
1.1.1.3 root 499: # Set this to force use of install.sh.
500: broken_install=
1.1.1.4 root 501: # Set this to control which fixincludes program to use.
502: fixincludes=fixincludes
1.1.1.5 root 503: # Set this to control how the header file directory is installed.
504: install_headers_dir=install-headers-tar
1.1.1.6 root 505: # Set this to a non-empty list of args to pass to cpp if the target
506: # wants its .md file passed through cpp.
1.1.1.7 root 507: md_cppflags=
1.1.1.6 root 508: # Set this if directory names should be truncated to 14 characters.
509: truncate_target=
1.1.1.8 root 510: # Set this if gdb needs a dir command with `dirname $out_file`
511: gdb_needs_out_file_path=
1.1 root 512:
513: case $machine in
514: # Support site-specific machine types.
515: *local*)
1.1.1.5 root 516: cpu_type=`echo $machine | sed -e 's/-.*//'`
517: rest=`echo $machine | sed -e "s/$cpu_type-//"`
518: xm_file=${cpu_type}/xm-$rest.h
519: tm_file=${cpu_type}/$rest.h
520: if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
521: then xmake_file=${cpu_type}/x-$rest; \
1.1 root 522: else true; \
523: fi
1.1.1.5 root 524: if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
525: then tmake_file=${cpu_type}/t-$rest; \
1.1 root 526: else true; \
527: fi
528: ;;
1.1.1.7 root 529: 1750a-*-*)
1.1 root 530: ;;
1.1.1.8 root 531: a29k-*-bsd* | a29k-*-sym1*)
1.1.1.7 root 532: tm_file=a29k/unix.h
533: xm_file=a29k/xm-unix.h
534: xmake_file=a29k/x-unix
1.1.1.8 root 535: tmake_file=a29k/t-a29k
1.1.1.3 root 536: use_collect2=yes
1.1 root 537: ;;
1.1.1.8 root 538: a29k-*-udi | a29k-*-coff)
539: tmake_file=a29k/t-a29kbare
540: tm_file=a29k/a29k-udi.h
541: ;;
542: a29k-*-vxworks*)
543: tmake_file=a29k/t-vx29k
544: tm_file=a29k/vx29k.h
545: extra_parts="crtbegin.o crtend.o"
546: ;;
1.1.1.7 root 547: a29k-*-*) # Default a29k environment.
548: use_collect2=yes
1.1 root 549: ;;
1.1.1.7 root 550: alpha-dec-osf[23456789]*)
551: tm_file=alpha/osf2.h
552: if [ x$stabs = xyes ]
553: then
554: tm_file=alpha/gdb-osf2.h
555: fi
556: if [ x$gas != xyes ]
557: then
558: extra_passes="mips-tfile mips-tdump"
559: fi
560: broken_install=yes
561: use_collect2=yes
1.1 root 562: ;;
1.1.1.7 root 563: alpha-dec-osf1.2)
564: tm_file=alpha/osf12.h
565: if [ x$stabs = xyes ]
566: then
567: tm_file=alpha/gdb-osf12.h
568: fi
569: if [ x$gas != xyes ]
570: then
571: extra_passes="mips-tfile mips-tdump"
572: fi
573: broken_install=yes
574: use_collect2=yes
1.1.1.6 root 575: ;;
1.1.1.7 root 576: alpha-*-osf*)
577: if [ x$stabs = xyes ]
1.1.1.6 root 578: then
1.1.1.7 root 579: tm_file=alpha/gdb.h
1.1.1.6 root 580: fi
1.1.1.7 root 581: if [ x$gas != xyes ]
582: then
583: extra_passes="mips-tfile mips-tdump"
584: fi
585: broken_install=yes
586: use_collect2=yes
1.1.1.5 root 587: ;;
1.1.1.8 root 588: alpha-*-winnt3*)
589: tm_file=alpha/win-nt.h
590: xm_file=alpha/xm-winnt.h
591: tmake_file=t-libc-ok
592: xmake_file=winnt/x-winnt
593: extra_objs=oldnames.o
594: extra_gcc_objs="spawnv.o oldnames.o"
595: fixincludes=fixinc.winnt
596: if [ x$gnu_ld != xyes ]
597: then
598: extra_programs=ld.exe
599: fi
600: ;;
1.1.1.7 root 601: arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
602: tm_file=arm/riscix1-1.h
1.1.1.3 root 603: use_collect2=yes
1.1.1.7 root 604: ;;
605: arm-*-riscix*) # Acorn RISC machine
1.1.1.2 root 606: if [ x$gas = xyes ]
607: then
1.1.1.7 root 608: tm_file=arm/rix-gas.h
1.1.1.2 root 609: else
1.1.1.7 root 610: tm_file=arm/riscix.h
1.1.1.2 root 611: fi
1.1.1.7 root 612: xmake_file=arm/x-riscix
613: tmake_file=arm/t-riscix
614: use_collect2=yes
1.1.1.2 root 615: ;;
1.1.1.8 root 616: arm-semi-aout | armel-semi-aout)
617: cpu_type=arm
618: tm_file=arm/semi.h
619: tmake_file=arm/t-semi
620: fixincludes=Makefile.in # There is nothing to fix
621: ;;
1.1.1.7 root 622: arm-*-*) # generic version
1.1.1.5 root 623: ;;
1.1.1.7 root 624: c1-convex-*) # Convex C1
625: cpu_type=convex
626: tm_file=convex/convex1.h
627: use_collect2=yes
628: fixincludes=Makefile.in
1.1 root 629: ;;
1.1.1.7 root 630: c2-convex-*) # Convex C2
631: cpu_type=convex
632: tm_file=convex/convex2.h
1.1.1.3 root 633: use_collect2=yes
1.1.1.7 root 634: fixincludes=Makefile.in
1.1.1.3 root 635: ;;
1.1.1.7 root 636: c32-convex-*)
637: cpu_type=convex
638: tm_file=convex/convex32.h # Convex C32xx
639: use_collect2=yes
640: fixincludes=Makefile.in
641: ;;
642: c34-convex-*)
643: cpu_type=convex
644: tm_file=convex/convex34.h # Convex C34xx
645: use_collect2=yes
646: fixincludes=Makefile.in
647: ;;
648: c38-convex-*)
649: cpu_type=convex
650: tm_file=convex/convex38.h # Convex C38xx
651: use_collect2=yes
652: fixincludes=Makefile.in
653: ;;
654: clipper-intergraph-clix*)
1.1.1.4 root 655: broken_install=yes
1.1.1.7 root 656: cpu_type=clipper
657: xm_file=clipper/xm-clix.h
658: tm_file=clipper/clix.h
659: extra_headers=va-clipper.h
660: extra_parts="crtbegin.o crtend.o"
661: xmake_file=clipper/x-clix
1.1.1.5 root 662: install_headers_dir=install-headers-cpio
1.1.1.7 root 663: ;;
664: dsp16xx-*)
665: ;;
666: elxsi-elxsi-*)
667: use_collect2=yes
668: ;;
669: # This hasn't been upgraded to GCC 2.
670: # fx80-alliant-*) # Alliant FX/80
671: # ;;
672: h8300-*-*)
673: cpu_type=h8300
674: ;;
675: hppa1.1-*-osf*)
676: cpu_type=pa
677: tm_file=pa/pa1-osf.h
678: use_collect2=yes
1.1.1.8 root 679: fixincludes=Makefile.in
1.1.1.7 root 680: ;;
681: hppa1.0-*-osf*)
682: cpu_type=pa
683: tm_file=pa/pa-osf.h
684: use_collect2=yes
1.1.1.8 root 685: fixincludes=Makefile.in
1.1.1.7 root 686: ;;
687: hppa1.1-*-bsd*)
688: cpu_type=pa
689: tm_file=pa/pa1.h
690: use_collect2=yes
1.1.1.8 root 691: fixincludes=Makefile.in
1.1.1.7 root 692: ;;
693: hppa1.0-*-bsd*)
694: cpu_type=pa
695: use_collect2=yes
1.1.1.8 root 696: fixincludes=Makefile.in
1.1.1.7 root 697: ;;
698: hppa1.0-*-hpux7*)
699: cpu_type=pa
700: xm_file=pa/xm-pahpux.h
701: xmake_file=pa/x-pa-hpux
1.1.1.8 root 702: tmake_file=pa/t-pa
1.1.1.7 root 703: if [ x$gas = xyes ]
1.1.1.5 root 704: then
1.1.1.7 root 705: tm_file=pa/pa-gux7.h
1.1.1.5 root 706: else
1.1.1.7 root 707: tm_file=pa/pa-hpux7.h
1.1.1.5 root 708: fi
1.1.1.4 root 709: broken_install=yes
1.1.1.5 root 710: install_headers_dir=install-headers-cpio
1.1.1.7 root 711: use_collect2=yes
1.1 root 712: ;;
1.1.1.7 root 713: hppa1.0-*-hpux8.0[0-2]*)
714: cpu_type=pa
715: xm_file=pa/xm-pahpux.h
716: xmake_file=pa/x-pa-hpux
1.1.1.8 root 717: tmake_file=pa/t-pa
1.1.1.7 root 718: if [ x$gas = xyes ]
1.1.1.4 root 719: then
1.1.1.7 root 720: tm_file=pa/pa-ghpux.h
1.1.1.4 root 721: else
1.1.1.7 root 722: tm_file=pa/pa-oldas.h
1.1.1.4 root 723: fi
724: broken_install=yes
1.1.1.7 root 725: install_headers_dir=install-headers-cpio
726: use_collect2=yes
1.1 root 727: ;;
1.1.1.7 root 728: hppa1.1-*-hpux8.0[0-2]*)
729: cpu_type=pa
730: xm_file=pa/xm-pahpux.h
731: xmake_file=pa/x-pa-hpux
1.1.1.8 root 732: tmake_file=pa/t-pa
1.1.1.7 root 733: if [ x$gas = xyes ]
1.1.1.4 root 734: then
1.1.1.7 root 735: tm_file=pa/pa1-ghpux.h
1.1.1.4 root 736: else
1.1.1.7 root 737: tm_file=pa/pa1-oldas.h
1.1.1.4 root 738: fi
1.1.1.3 root 739: broken_install=yes
1.1.1.7 root 740: install_headers_dir=install-headers-cpio
741: use_collect2=yes
742: ;;
1.1.1.8 root 743: hppa1.1-*-hpux9* | \
744: hppa1.1-*-hpux10*)
745: cpu_type=pa
746: xm_file=pa/xm-pahpux.h
747: xmake_file=pa/x-pa-hpux
748: tmake_file=pa/t-pa
749: if [ x$gas = xyes ]
750: then
751: tm_file=pa/pa1-ghpux9.h
752: else
753: tm_file=pa/pa1-hpux9.h
754: fi
755: broken_install=yes
756: install_headers_dir=install-headers-cpio
757: use_collect2=yes
758: ;;
759: hppa1.0-*-hpux9* | \
760: hppa1.0-*-hpux10*)
761: cpu_type=pa
762: xm_file=pa/xm-pahpux.h
763: xmake_file=pa/x-pa-hpux
764: tmake_file=pa/t-pa
765: if [ x$gas = xyes ]
766: then
767: tm_file=pa/pa-ghpux9.h
768: else
769: tm_file=pa/pa-hpux9.h
770: fi
771: broken_install=yes
772: install_headers_dir=install-headers-cpio
773: use_collect2=yes
774: ;;
1.1.1.7 root 775: hppa1.1-*-hpux*)
776: cpu_type=pa
777: xm_file=pa/xm-pahpux.h
778: xmake_file=pa/x-pa-hpux
1.1.1.8 root 779: tmake_file=pa/t-pa
1.1.1.7 root 780: if [ x$gas = xyes ]
781: then
782: tm_file=pa/pa1-ghpux.h
783: else
784: tm_file=pa/pa1-hpux.h
785: fi
786: broken_install=yes
787: install_headers_dir=install-headers-cpio
1.1.1.3 root 788: use_collect2=yes
1.1 root 789: ;;
1.1.1.7 root 790: hppa1.0-*-hpux*)
791: cpu_type=pa
792: xm_file=pa/xm-pahpux.h
793: xmake_file=pa/x-pa-hpux
1.1.1.8 root 794: tmake_file=pa/t-pa
1.1.1.7 root 795: if [ x$gas = xyes ]
796: then
797: tm_file=pa/pa-ghpux.h
798: else
799: tm_file=pa/pa-hpux.h
800: fi
801: broken_install=yes
802: install_headers_dir=install-headers-cpio
803: use_collect2=yes
804: ;;
805: hppa1.1-*-hiux*)
806: cpu_type=pa
1.1.1.8 root 807: xm_file=pa/xm-pahpux.h
808: xmake_file=pa/x-pa-hpux
809: tmake_file=pa/t-pa
1.1.1.7 root 810: if [ x$gas = xyes ]
811: then
812: tm_file=pa/pa1-ghiux.h
813: else
814: tm_file=pa/pa1-hiux.h
815: fi
816: broken_install=yes
817: install_headers_dir=install-headers-cpio
818: use_collect2=yes
819: ;;
820: hppa1.0-*-hiux*)
821: cpu_type=pa
1.1.1.8 root 822: xm_file=pa/xm-pahpux.h
823: xmake_file=pa/x-pa-hpux
824: tmake_file=pa/t-pa
1.1.1.7 root 825: if [ x$gas = xyes ]
826: then
827: tm_file=pa/pa-ghiux.h
828: else
829: tm_file=pa/pa-hiux.h
830: fi
831: broken_install=yes
832: install_headers_dir=install-headers-cpio
833: use_collect2=yes
834: ;;
1.1.1.8 root 835: hppa*-*-lites*)
836: cpu_type=pa
837: tm_file=pa/pa1.h
838: use_collect2=yes
839: fixincludes=Makefile.in
840: ;;
1.1.1.7 root 841: i370-*-mvs*)
842: cpu_type=i370
843: tm_file=i370/mvs.h
844: xm_file=i370/xm-mvs.h
845: out_file=i370/mvs370.c
846: ;;
1.1.1.9 root 847: i[3456]86-ibm-aix*) # IBM PS/2 running AIX
1.1.1.4 root 848: cpu_type=i386
1.1.1.7 root 849: if [ x$gas = xyes ]
1.1.1.6 root 850: then
1.1.1.7 root 851: tm_file=i386/aix386.h
852: extra_parts="crtbegin.o crtend.o"
1.1.1.8 root 853: tmake_file=i386/t-crtstuff
1.1.1.6 root 854: else
1.1.1.7 root 855: tm_file=i386/aix386ng.h
856: use_collect2=yes
1.1.1.6 root 857: fi
1.1.1.7 root 858: xm_file=i386/xm-aix.h
859: xmake_file=i386/x-aix
1.1.1.4 root 860: broken_install=yes
861: ;;
862: i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4
863: cpu_type=i386
1.1.1.5 root 864: xm_file=i386/xm-sysv4.h
865: xmake_file=i386/x-ncr3000
866: tm_file=i386/sysv4.h
1.1.1.8 root 867: extra_parts="crtbegin.o crtend.o"
868: tmake_file=i386/t-crtpic
1.1 root 869: ;;
1.1.1.9 root 870: i[3456]86-next-*)
1.1.1.4 root 871: cpu_type=i386
1.1.1.7 root 872: tm_file=i386/next.h
873: out_file=i386/next.c
874: xm_file=i386/xm-next.h
875: tmake_file=i386/t-next
876: xmake_file=i386/x-next
877: ;;
1.1.1.9 root 878: i[3456]86-sequent-bsd*) # 80386 from Sequent
1.1.1.7 root 879: cpu_type=i386
880: use_collect2=yes
881: if [ x$gas = xyes ]
882: then
883: tm_file=i386/seq-gas.h
884: else
885: tm_file=i386/sequent.h
886: fi
1.1.1.4 root 887: ;;
1.1.1.9 root 888: i[3456]86-sequent-ptx1*)
1.1.1.6 root 889: cpu_type=i386
890: xm_file=i386/xm-sysv3.h
891: xmake_file=i386/x-sysv3
892: tm_file=i386/seq-sysv3.h
1.1.1.8 root 893: tmake_file=i386/t-crtstuff
1.1.1.7 root 894: fixincludes=fixinc.ptx
895: extra_parts="crtbegin.o crtend.o"
896: install_headers_dir=install-headers-cpio
897: broken_install=yes
898: ;;
1.1.1.9 root 899: i[3456]86-sequent-ptx2* | i[3456]86-sequent-sysv*)
1.1.1.7 root 900: cpu_type=i386
901: xm_file=i386/xm-sysv3.h
902: xmake_file=i386/x-sysv3
903: tm_file=i386/seq2-sysv3.h
1.1.1.8 root 904: tmake_file=i386/t-crtstuff
1.1.1.7 root 905: extra_parts="crtbegin.o crtend.o"
906: fixincludes=fixinc.ptx
907: install_headers_dir=install-headers-cpio
908: broken_install=yes
909: ;;
910: i386-sun-sunos*) # Sun i386 roadrunner
911: xm_file=i386/xm-sun.h
912: tm_file=i386/sun.h
913: use_collect2=yes
914: ;;
1.1.1.9 root 915: i[3456]86-*-aout*)
1.1.1.8 root 916: cpu_type=i386
917: tm_file=i386/i386-aout.h
918: tmake_file=i386/t-i386bare
919: ;;
1.1.1.9 root 920: i[3456]86-*-bsdi* | i[3456]86-*-bsd386*)
1.1.1.7 root 921: cpu_type=i386
922: tm_file=i386/bsd386.h
1.1.1.8 root 923: xm_file=i386/xm-bsd386.h
1.1.1.7 root 924: # tmake_file=t-libc-ok
925: ;;
1.1.1.9 root 926: i[3456]86-*-bsd*)
1.1.1.7 root 927: cpu_type=i386
928: tm_file=i386/386bsd.h
1.1.1.8 root 929: xm_file=i386/xm-bsd386.h
1.1.1.7 root 930: # tmake_file=t-libc-ok
931: # Next line turned off because both 386BSD and BSD/386 use GNU ld.
932: # use_collect2=yes
933: ;;
1.1.1.9 root 934: i[3456]86-*-freebsd*)
1.1.1.7 root 935: cpu_type=i386
936: tm_file=i386/freebsd.h
1.1.1.8 root 937: xm_file=i386/xm-freebsd.h
1.1.1.7 root 938: # On FreeBSD, the headers are already ok.
939: fixincludes=Makefile.in
940: xmake_file=i386/x-freebsd
941: ;;
1.1.1.9 root 942: i[3456]86-*-netbsd*)
1.1.1.7 root 943: cpu_type=i386
1.1.1.8 root 944: tm_file=i386/netbsd.h
945: xm_file=i386/xm-netbsd.h
1.1.1.7 root 946: # On NetBSD, the headers are already okay.
947: fixincludes=Makefile.in
1.1.1.8 root 948: tmake_file=t-libc-ok
1.1.1.7 root 949: xmake_file=x-netbsd
950: ;;
1.1.1.9 root 951: i[3456]86-*-coff*)
1.1.1.7 root 952: cpu_type=i386
1.1.1.8 root 953: tm_file=i386/i386-coff.h
954: tmake_file=i386/t-i386bare
955: ;;
1.1.1.9 root 956: i[3456]86-*-isc*) # 80386 running ISC system
1.1.1.7 root 957: cpu_type=i386
958: xm_file=i386/xm-isc.h
959: case $machine in
1.1.1.9 root 960: i[3456]86-*-isc[34]*)
1.1.1.7 root 961: xmake_file=i386/x-isc3
962: ;;
963: *)
964: xmake_file=i386/x-isc
965: ;;
966: esac
967: echo $xmake_file
968: if [ x$gas = xyes -a x$stabs = xyes ]
969: then
970: tm_file=i386/iscdbx.h
971: tmake_file=i386/t-svr3dbx
1.1.1.8 root 972: extra_parts="crtbegin.o crtend.o svr3.ifile svr3z.ifile"
1.1.1.7 root 973: else
974: tm_file=i386/isccoff.h
1.1.1.8 root 975: tmake_file=i386/t-crtstuff
1.1.1.7 root 976: extra_parts="crtbegin.o crtend.o"
977: fi
978: install_headers_dir=install-headers-cpio
979: broken_install=yes
980: ;;
1.1.1.9 root 981: i[3456]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1.1.1.8 root 982: cpu_type=i386 # with a.out format using pre BFD linkers
1.1.1.7 root 983: xm_file=i386/xm-linux.h
1.1.1.8 root 984: xmake_file=x-linux
985: tm_file=i386/linux-oldld.h
1.1.1.9 root 986: fixincludes=Makefile.in # The headers are ok already.
1.1.1.8 root 987: broken_install=yes
988: gnu_ld=yes
989: ;;
1.1.1.9 root 990: i[3456]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1.1.1.8 root 991: cpu_type=i386 # with a.out format
992: xm_file=i386/xm-linux.h
993: xmake_file=x-linux
994: tm_file=i386/linux-aout.h
1.1.1.9 root 995: fixincludes=Makefile.in # The headers are ok already.
1.1.1.7 root 996: broken_install=yes
1.1.1.8 root 997: gnu_ld=yes
1.1.1.7 root 998: ;;
1.1.1.10! root 999: i[3456]86-*-linux*gnulibc1) # Intel 80386's running GNU/Linux
1.1.1.9 root 1000: cpu_type=i386 # with ELF format, using GNU libc v1.
1.1.1.8 root 1001: xm_file=i386/xm-linux.h
1002: xmake_file=x-linux
1.1.1.10! root 1003: tmake_file=t-linux-gnulibc1
1.1.1.8 root 1004: tm_file=i386/linux.h
1.1.1.9 root 1005: fixincludes=Makefile.in # The headers are ok already.
1.1.1.8 root 1006: broken_install=yes
1007: gnu_ld=yes
1.1.1.10! root 1008: extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1.1.1.8 root 1009: ;;
1.1.1.9 root 1010: i[3456]86-*-linux*) # Intel 80386's running GNU/Linux
1011: cpu_type=i386 # with ELF format
1012: xm_file=i386/xm-linux.h
1013: xmake_file=x-linux
1.1.1.10! root 1014: tmake_file=t-linux
1.1.1.9 root 1015: tm_file=i386/linux.h
1016: fixincludes=Makefile.in # The headers are ok already.
1017: broken_install=yes
1018: gnu_ld=yes
1019: # GNU libc version 2 does not supply these;
1020: # we want them from GCC.
1.1.1.10! root 1021: extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
! 1022: ;;
! 1023: i[3456]86-*-gnu*)
! 1024: cpu_type=i386 # GNU supports this CPU; rest done below.
1.1.1.9 root 1025: ;;
1026: i[3456]86-go32-msdos | i[3456]86-*-go32)
1.1.1.8 root 1027: cpu_type=i386
1028: tm_file=i386/go32.h
1029: ;;
1.1.1.9 root 1030: i[3456]86-*-lynxos*)
1.1.1.7 root 1031: cpu_type=i386
1032: if [ x$gas = xyes ]
1033: then
1034: tm_file=i386/lynx.h
1035: else
1036: tm_file=i386/lynx-ng.h
1037: fi
1.1.1.8 root 1038: xm_file=i386/xm-lynx.h
1039: tmake_file=i386/t-i386bare
1.1.1.7 root 1040: xmake_file=x-lynx
1041: ;;
1.1.1.9 root 1042: i[3456]86-*-mach*)
1.1.1.7 root 1043: cpu_type=i386
1044: tm_file=i386/mach.h
1045: # tmake_file=t-libc-ok
1046: use_collect2=yes
1047: ;;
1.1.1.9 root 1048: i[3456]86-*-osfrose*) # 386 using OSF/rose
1.1.1.7 root 1049: cpu_type=i386
1050: if [ x$elf = xyes ]
1051: then
1052: tm_file=i386/osfelf.h
1053: use_collect2=
1054: else
1055: tm_file=i386/osfrose.h
1056: use_collect2=yes
1057: fi
1058: xm_file=i386/xm-osf.h
1059: xmake_file=i386/x-osfrose
1060: extra_objs=halfpic.o
1061: ;;
1.1.1.9 root 1062: i[3456]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1.1.1.7 root 1063: cpu_type=i386
1064: xm_file=i386/xm-sco.h
1065: xmake_file=i386/x-sco4
1066: fixincludes=fixinc.sco
1067: broken_install=yes
1068: install_headers_dir=install-headers-cpio
1069: if [ x$stabs = xyes ]
1070: then
1071: tm_file=i386/sco4dbx.h
1072: tmake_file=i386/t-svr3dbx
1.1.1.8 root 1073: extra_parts="svr3.ifile svr3z.rfile"
1.1.1.7 root 1074: else
1075: tm_file=i386/sco4.h
1.1.1.8 root 1076: tmake_file=i386/t-crtstuff
1.1.1.7 root 1077: extra_parts="crtbegin.o crtend.o"
1078: fi
1079: ;;
1.1.1.9 root 1080: i[3456]86-*-sco*) # 80386 running SCO system
1.1.1.7 root 1081: cpu_type=i386
1082: xm_file=i386/xm-sco.h
1083: xmake_file=i386/x-sco
1084: broken_install=yes
1085: install_headers_dir=install-headers-cpio
1086: if [ x$stabs = xyes ]
1087: then
1088: tm_file=i386/scodbx.h
1089: tmake_file=i386/t-svr3dbx
1.1.1.8 root 1090: extra_parts="svr3.ifile svr3z.rfile"
1.1.1.7 root 1091: else
1092: tm_file=i386/sco.h
1093: extra_parts="crtbegin.o crtend.o"
1.1.1.8 root 1094: tmake_file=i386/t-crtstuff
1.1.1.7 root 1095: fi
1096: truncate_target=yes
1097: ;;
1.1.1.9 root 1098: i[3456]86-*-solaris2* | i[3456]86-*-sunos5*)
1.1.1.7 root 1099: cpu_type=i386
1100: xm_file=i386/xm-sysv4.h
1101: tm_file=i386/sol2.h
1102: tmake_file=i386/t-sol2
1103: extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
1104: xmake_file=x-svr4
1.1.1.6 root 1105: fixincludes=fixinc.svr4
1106: broken_install=yes
1107: ;;
1.1.1.9 root 1108: i[3456]86-*-sysv4*) # Intel 80386's running system V.4
1.1.1.7 root 1109: cpu_type=i386
1110: xm_file=i386/xm-sysv4.h
1111: if [ x$stabs = xyes ]
1112: then
1113: tm_file=i386/sysv4gdb.h
1114: else
1115: tm_file=i386/sysv4.h
1116: fi
1.1.1.8 root 1117: tmake_file=i386/t-crtpic
1.1.1.7 root 1118: xmake_file=x-svr4
1.1.1.8 root 1119: extra_parts="crtbegin.o crtend.o"
1.1.1.7 root 1120: ;;
1.1.1.9 root 1121: i[3456]86-*-sysv*) # Intel 80386's running system V
1.1.1.5 root 1122: cpu_type=i386
1123: xm_file=i386/xm-sysv3.h
1124: xmake_file=i386/x-sysv3
1.1 root 1125: if [ x$gas = xyes ]
1126: then
1.1.1.4 root 1127: if [ x$stabs = xyes ]
1128: then
1.1.1.5 root 1129: tm_file=i386/svr3dbx.h
1130: tmake_file=i386/t-svr3dbx
1.1.1.8 root 1131: extra_parts="svr3.ifile svr3z.rfile"
1.1.1.4 root 1132: else
1.1.1.5 root 1133: tm_file=i386/svr3gas.h
1.1.1.7 root 1134: extra_parts="crtbegin.o crtend.o"
1.1.1.8 root 1135: tmake_file=i386/t-crtstuff
1.1.1.4 root 1136: fi
1.1 root 1137: else
1.1.1.5 root 1138: tm_file=i386/sysv3.h
1.1.1.7 root 1139: extra_parts="crtbegin.o crtend.o"
1.1.1.8 root 1140: tmake_file=i386/t-crtstuff
1.1 root 1141: fi
1142: ;;
1.1.1.8 root 1143: i386-*-vsta) # Intel 80386's running VSTa kernel
1144: xm_file=i386/xm-vsta.h
1145: tm_file=i386/vsta.h
1146: tmake_file=i386/t-vsta
1147: xmake_file=i386/x-vsta
1148: ;;
1.1.1.9 root 1149: i[3456]86-*-winnt3*)
1.1.1.5 root 1150: cpu_type=i386
1.1.1.8 root 1151: tm_file=i386/win-nt.h
1.1.1.7 root 1152: out_file=i386/i386.c
1153: xm_file=i386/xm-winnt.h
1.1.1.8 root 1154: xmake_file=winnt/x-winnt
1155: tmake_file=i386/t-winnt
1156: extra_objs="winnt.o oldnames.o"
1157: extra_gcc_objs="spawnv.o oldnames.o"
1158: fixincludes=fixinc.winnt
1.1.1.7 root 1159: if [ x$gnu_ld != xyes ]
1160: then
1.1.1.8 root 1161: extra_programs=ld.exe
1.1.1.7 root 1162: fi
1.1.1.5 root 1163: ;;
1.1.1.7 root 1164: i860-alliant-*) # Alliant FX/2800
1165: xm_file=i860/xm-fx2800.h
1166: xmake_file=i860/x-fx2800
1167: tm_file=i860/fx2800.h
1168: tmake_file=i860/t-fx2800
1169: extra_parts="crtbegin.o crtend.o"
1.1.1.6 root 1170: ;;
1.1.1.7 root 1171: i860-*-bsd*)
1172: if [ x$gas = xyes ]
1173: then
1174: tm_file=i860/bsd-gas.h
1175: else
1176: tm_file=i860/bsd.h
1177: fi
1178: use_collect2=yes
1.1.1.6 root 1179: ;;
1.1.1.4 root 1180: i860-*-mach*)
1.1.1.5 root 1181: xm_file=i860/xm-i860.h
1182: tm_file=i860/mach.h
1.1.1.4 root 1183: tmake_file=t-libc-ok
1.1 root 1184: ;;
1.1.1.7 root 1185: i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1186: xm_file=i860/xm-paragon.h
1187: tm_file=i860/paragon.h
1188: tmake_file=t-osf
1189: broken_install=yes
1190: ;;
1.1 root 1191: i860-*-sysv3*)
1.1.1.5 root 1192: xm_file=i860/xm-sysv3.h
1193: xmake_file=i860/x-sysv3
1194: tm_file=i860/sysv3.h
1.1.1.7 root 1195: extra_parts="crtbegin.o crtend.o"
1.1 root 1196: ;;
1197: i860-*-sysv4*)
1.1.1.5 root 1198: xm_file=i860/xm-sysv4.h
1199: xmake_file=i860/x-sysv4
1200: tm_file=i860/sysv4.h
1.1 root 1201: tmake_file=t-svr4
1.1.1.8 root 1202: extra_parts="crtbegin.o crtend.o"
1203: ;;
1204: i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1205: tmake_file=i960/t-vxworks960
1206: tm_file=i960/vx960.h
1207: use_collect2=yes
1208: ;;
1209: i960-wrs-vxworks5*)
1210: tmake_file=i960/t-vxworks960
1211: tm_file=i960/vx960-coff.h
1212: use_collect2=yes
1213: ;;
1214: i960-wrs-vxworks*)
1215: tmake_file=i960/t-vxworks960
1216: tm_file=i960/vx960.h
1217: use_collect2=yes
1.1 root 1218: ;;
1.1.1.7 root 1219: i960-*-coff*)
1220: tmake_file=i960/t-960bare
1221: tm_file=i960/i960-coff.h
1222: use_collect2=yes
1.1 root 1223: ;;
1.1.1.7 root 1224: i960-*-*) # Default i960 environment.
1225: use_collect2=yes
1226: ;;
1227: m68000-convergent-sysv*)
1228: cpu_type=m68k
1229: xm_file=m68k/xm-3b1.h
1230: tm_file=m68k/ctix.h
1231: use_collect2=yes
1.1.1.8 root 1232: extra_headers=math-68881.h
1.1.1.7 root 1233: ;;
1234: m68000-hp-bsd*) # HP 9000/200 running BSD
1235: cpu_type=m68k
1236: tm_file=m68k/hp2bsd.h
1237: xmake_file=m68k/x-hp2bsd
1238: use_collect2=yes
1.1.1.8 root 1239: extra_headers=math-68881.h
1.1.1.7 root 1240: ;;
1241: m68000-hp-hpux*) # HP 9000 series 300
1242: cpu_type=m68k
1243: xm_file=m68k/xm-hp320.h
1.1 root 1244: if [ x$gas = xyes ]
1245: then
1.1.1.7 root 1246: xmake_file=m68k/x-hp320g
1247: tm_file=m68k/hp310g.h
1.1 root 1248: else
1.1.1.7 root 1249: xmake_file=m68k/x-hp320
1250: tm_file=m68k/hp310.h
1.1 root 1251: fi
1.1.1.7 root 1252: broken_install=yes
1253: install_headers_dir=install-headers-cpio
1.1.1.3 root 1254: use_collect2=yes
1.1.1.8 root 1255: extra_headers=math-68881.h
1.1 root 1256: ;;
1.1.1.7 root 1257: m68000-sun-sunos3*)
1258: cpu_type=m68k
1259: tm_file=m68k/sun2.h
1.1.1.4 root 1260: use_collect2=yes
1.1.1.8 root 1261: extra_headers=math-68881.h
1.1.1.4 root 1262: ;;
1.1.1.7 root 1263: m68000-sun-sunos4*)
1264: cpu_type=m68k
1265: tm_file=m68k/sun2o4.h
1.1.1.3 root 1266: use_collect2=yes
1.1.1.8 root 1267: extra_headers=math-68881.h
1.1 root 1268: ;;
1.1.1.7 root 1269: m68000-att-sysv*)
1270: cpu_type=m68k
1271: xm_file=m68k/xm-3b1.h
1272: if [ x$gas = xyes ]
1273: then
1274: tm_file=m68k/3b1g.h
1275: else
1276: tm_file=m68k/3b1.h
1277: fi
1.1.1.3 root 1278: use_collect2=yes
1.1.1.8 root 1279: extra_headers=math-68881.h
1.1 root 1280: ;;
1.1.1.7 root 1281: m68k-apollo-*)
1282: xmake_file=m68k/x-apollo68
1283: tm_file=m68k/apollo68.h
1.1.1.5 root 1284: use_collect2=yes
1.1.1.8 root 1285: extra_headers=math-68881.h
1.1 root 1286: ;;
1.1.1.7 root 1287: m68k-altos-sysv*) # Altos 3068
1288: if [ x$gas = xyes ]
1289: then
1290: xm_file=m68k/xm-altos3068.h
1291: tm_file=m68k/altos3068.h
1292: else
1293: echo "The Altos is supported only with the GNU assembler" 1>&2
1294: exit 1
1295: fi
1.1.1.8 root 1296: extra_headers=math-68881.h
1.1.1.7 root 1297: ;;
1.1.1.3 root 1298: m68k-bull-sysv*) # Bull DPX/2
1299: if [ x$gas = xyes ]
1300: then
1.1.1.6 root 1301: if [ x$stabs = xyes ]
1302: then
1303: tm_file=m68k/dpx2cdbx.h
1304: else
1305: tm_file=m68k/dpx2g.h
1306: fi
1.1.1.3 root 1307: else
1.1.1.5 root 1308: tm_file=m68k/dpx2.h
1.1.1.3 root 1309: fi
1.1.1.5 root 1310: xm_file=m68k/xm-m68kv.h
1311: xmake_file=m68k/x-dpx2
1.1.1.3 root 1312: use_collect2=yes
1.1.1.8 root 1313: extra_headers=math-68881.h
1.1 root 1314: ;;
1.1.1.7 root 1315: m68k-atari-sysv4*) # Atari variant of V.4.
1316: tm_file=m68k/atari.h
1317: xm_file=m68k/xm-atari.h
1318: tmake_file=t-svr4
1.1.1.8 root 1319: extra_parts="crtbegin.o crtend.o"
1320: extra_headers=math-68881.h
1.1 root 1321: ;;
1.1.1.7 root 1322: m68k-motorola-sysv*)
1323: xm_file=m68k/xm-mot3300.h
1.1.1.8 root 1324: xmake_file=m68k/x-mot3300
1.1.1.7 root 1325: if [ x$gas = xyes ]
1.1 root 1326: then
1.1.1.7 root 1327: tm_file=m68k/mot3300g.h
1.1 root 1328: else
1.1.1.7 root 1329: tm_file=m68k/mot3300.h
1.1.1.8 root 1330: gdb_needs_out_file_path=yes
1.1 root 1331: fi
1.1.1.3 root 1332: use_collect2=yes
1.1.1.8 root 1333: extra_headers=math-68881.h
1.1 root 1334: ;;
1.1.1.7 root 1335: m68k-ncr-sysv*) # NCR Tower 32 SVR3
1336: tm_file=m68k/tower-as.h
1337: xm_file=m68k/xm-tower.h
1338: xmake_file=m68k/x-tower
1339: extra_parts="crtbegin.o crtend.o"
1.1.1.8 root 1340: extra_headers=math-68881.h
1.1 root 1341: ;;
1.1.1.7 root 1342: m68k-plexus-sysv*)
1343: tm_file=m68k/plexus.h
1344: xm_file=m68k/xm-plexus.h
1.1.1.3 root 1345: use_collect2=yes
1.1.1.8 root 1346: extra_headers=math-68881.h
1.1.1.2 root 1347: ;;
1348: m68k-tti-*)
1.1.1.5 root 1349: tm_file=m68k/pbb.h
1350: xm_file=m68k/xm-m68kv.h
1.1.1.8 root 1351: extra_headers=math-68881.h
1.1.1.2 root 1352: ;;
1.1.1.7 root 1353: m68k-crds-unos*)
1354: xm_file=m68k/xm-crds.h
1355: xmake_file=m68k/x-crds
1356: tm_file=m68k/crds.h
1357: broken_install=yes
1358: use_collect2=yes
1.1.1.8 root 1359: extra_headers=math-68881.h
1.1.1.7 root 1360: ;;
1361: m68k-cbm-sysv4*) # Commodore variant of V.4.
1362: tm_file=m68k/amix.h
1363: xm_file=m68k/xm-amix.h
1364: xmake_file=m68k/x-amix
1365: tmake_file=t-svr4
1.1.1.8 root 1366: extra_parts="crtbegin.o crtend.o"
1367: extra_headers=math-68881.h
1.1.1.7 root 1368: ;;
1369: m68k-ccur-rtu)
1370: tm_file=m68k/ccur-GAS.h
1371: xmake_file=m68k/x-ccur
1.1.1.8 root 1372: extra_headers=math-68881.h
1.1.1.7 root 1373: use_collect2=yes
1374: broken_install=yes
1375: ;;
1376: m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1377: tm_file=m68k/hp3bsd44.h
1378: xmake_file=m68k/x-hp3bsd44
1379: use_collect2=yes
1.1.1.8 root 1380: extra_headers=math-68881.h
1.1.1.7 root 1381: ;;
1382: m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1383: tm_file=m68k/hp3bsd.h
1384: use_collect2=yes
1.1.1.8 root 1385: extra_headers=math-68881.h
1.1.1.7 root 1386: ;;
1387: m68k-isi-bsd*)
1388: if [ x$nfp = xyes ]
1389: then
1390: tm_file=m68k/isi-nfp.h
1391: else
1392: tm_file=m68k/isi.h
1393: fi
1394: use_collect2=yes
1.1.1.8 root 1395: extra_headers=math-68881.h
1.1.1.7 root 1396: ;;
1.1.1.6 root 1397: m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1.1.1.5 root 1398: xm_file=m68k/xm-hp320.h
1.1 root 1399: if [ x$gas = xyes ]
1400: then
1.1.1.5 root 1401: xmake_file=m68k/x-hp320g
1402: tm_file=m68k/hp320g.h
1.1 root 1403: else
1.1.1.5 root 1404: xmake_file=m68k/x-hp320
1.1.1.6 root 1405: tm_file=m68k/hpux7.h
1.1 root 1406: fi
1.1.1.3 root 1407: broken_install=yes
1.1.1.5 root 1408: install_headers_dir=install-headers-cpio
1.1.1.3 root 1409: use_collect2=yes
1.1.1.8 root 1410: extra_headers=math-68881.h
1.1 root 1411: ;;
1.1.1.6 root 1412: m68k-hp-hpux*) # HP 9000 series 300
1413: xm_file=m68k/xm-hp320.h
1414: if [ x$gas = xyes ]
1415: then
1416: xmake_file=m68k/x-hp320g
1417: tm_file=m68k/hp320g.h
1418: else
1419: xmake_file=m68k/x-hp320
1420: tm_file=m68k/hp320.h
1421: fi
1422: broken_install=yes
1423: install_headers_dir=install-headers-cpio
1.1.1.5 root 1424: use_collect2=yes
1.1.1.8 root 1425: extra_headers=math-68881.h
1.1.1.5 root 1426: ;;
1.1.1.7 root 1427: m68k-sun-mach*)
1428: tm_file=m68k/sun3mach.h
1.1.1.3 root 1429: use_collect2=yes
1.1.1.8 root 1430: extra_headers=math-68881.h
1.1 root 1431: ;;
1.1.1.4 root 1432: m68k-sony-newsos3*)
1433: if [ x$gas = xyes ]
1434: then
1.1.1.5 root 1435: tm_file=m68k/news3gas.h
1.1.1.4 root 1436: else
1.1.1.5 root 1437: tm_file=m68k/news3.h
1.1.1.4 root 1438: fi
1439: use_collect2=yes
1.1.1.8 root 1440: extra_headers=math-68881.h
1.1.1.4 root 1441: ;;
1442: m68k-sony-bsd* | m68k-sony-newsos*)
1.1 root 1443: if [ x$gas = xyes ]
1444: then
1.1.1.5 root 1445: tm_file=m68k/newsgas.h
1.1 root 1446: else
1.1.1.5 root 1447: tm_file=m68k/news.h
1.1 root 1448: fi
1.1.1.3 root 1449: use_collect2=yes
1.1.1.8 root 1450: extra_headers=math-68881.h
1.1 root 1451: ;;
1.1.1.7 root 1452: m68k-next-nextstep2*)
1453: tm_file=m68k/next21.h
1454: out_file=m68k/next.c
1455: xm_file=m68k/xm-next.h
1456: tmake_file=m68k/t-next
1457: xmake_file=m68k/x-next
1.1.1.8 root 1458: extra_headers=math-68881.h
1.1.1.3 root 1459: use_collect2=yes
1.1.1.7 root 1460: ;;
1461: m68k-next-nextstep3*)
1462: tm_file=m68k/next.h
1463: out_file=m68k/next.c
1464: xm_file=m68k/xm-next.h
1465: tmake_file=m68k/t-next
1466: xmake_file=m68k/x-next
1.1.1.8 root 1467: extra_headers=math-68881.h
1.1 root 1468: ;;
1.1.1.7 root 1469: m68k-sun-sunos3*)
1470: if [ x$nfp = xyes ]
1.1 root 1471: then
1.1.1.7 root 1472: tm_file=m68k/sun3n3.h
1.1 root 1473: else
1.1.1.7 root 1474: tm_file=m68k/sun3o3.h
1.1 root 1475: fi
1.1.1.3 root 1476: use_collect2=yes
1.1.1.8 root 1477: extra_headers=math-68881.h
1.1 root 1478: ;;
1.1.1.8 root 1479: m68k-sun-sunos*) # For SunOS 4 (the default).
1.1.1.7 root 1480: if [ x$nfp = xyes ]
1481: then
1482: tm_file=m68k/sun3n.h
1483: else
1484: tm_file=m68k/sun3.h
1485: fi
1.1.1.3 root 1486: use_collect2=yes
1.1.1.8 root 1487: extra_headers=math-68881.h
1488: ;;
1489: m68k-wrs-vxworks*)
1490: tm_file=m68k/vxm68k.h
1491: tmake_file=m68k/t-vxworks68
1492: extra_headers=math-68881.h
1493: ;;
1494: m68k-*-aout*)
1495: tmake_file=m68k/t-m68kbare
1496: tm_file=m68k/m68k-aout.h
1497: extra_headers=math-68881.h
1498: ;;
1499: m68k-*-coff*)
1500: tmake_file=m68k/t-m68kbare
1501: tm_file=m68k/m68k-coff.h
1502: extra_headers=math-68881.h
1.1 root 1503: ;;
1.1.1.7 root 1504: m68k-*-lynxos*)
1.1 root 1505: if [ x$gas = xyes ]
1506: then
1.1.1.7 root 1507: tm_file=m68k/lynx.h
1.1 root 1508: else
1.1.1.7 root 1509: tm_file=m68k/lynx-ng.h
1.1 root 1510: fi
1.1.1.8 root 1511: xm_file=m68k/xm-lynx.h
1.1.1.6 root 1512: xmake_file=x-lynx
1.1.1.8 root 1513: tmake_file=m68k/t-lynx
1514: extra_headers=math-68881.h
1.1.1.6 root 1515: ;;
1.1.1.7 root 1516: m68k-*-netbsd*)
1.1 root 1517: cpu_type=m68k
1.1.1.8 root 1518: tm_file=m68k/netbsd.h
1519: xm_file=m68k/xm-netbsd.h
1.1.1.7 root 1520: # On NetBSD, the headers are already okay.
1521: fixincludes=Makefile.in
1.1.1.8 root 1522: tmake_file=t-libc-ok
1.1.1.7 root 1523: xmake_file=x-netbsd
1.1.1.2 root 1524: ;;
1.1.1.7 root 1525: m68k-*-sysv3*) # Motorola m68k's running system V.3
1526: xm_file=m68k/xm-m68kv.h
1527: xmake_file=m68k/x-m68kv
1528: extra_parts="crtbegin.o crtend.o"
1.1.1.8 root 1529: extra_headers=math-68881.h
1.1.1.2 root 1530: ;;
1.1.1.7 root 1531: m68k-*-sysv4*) # Motorola m68k's running system V.4
1532: tm_file=m68k/m68kv4.h
1533: xm_file=m68k/xm-m68kv.h
1534: tmake_file=t-svr4
1.1.1.8 root 1535: extra_parts="crtbegin.o crtend.o"
1536: extra_headers=math-68881.h
1537: ;;
1.1.1.9 root 1538: m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
1.1.1.8 root 1539: xm_file=m68k/xm-linux.h # with a.out format
1540: xmake_file=x-linux
1541: tm_file=m68k/linux-aout.h
1542: tmake_file=m68k/t-linux
1.1.1.9 root 1543: fixincludes=Makefile.in # The headers are ok already.
1.1.1.8 root 1544: extra_headers=math-68881.h
1545: gnu_ld=yes
1546: ;;
1.1.1.10! root 1547: m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
! 1548: xm_file=m68k/xm-linux.h # with ELF format, using GNU libc v1.
! 1549: xmake_file=x-linux
! 1550: tm_file=m68k/linux.h
! 1551: tmake_file=m68k/t-linux-gnulibc1
! 1552: fixincludes=Makefile.in # The headers are ok already.
! 1553: extra_headers=math-68881.h
! 1554: gnu_ld=yes
! 1555: extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
! 1556: ;;
1.1.1.9 root 1557: m68k-*-linux*) # Motorola m68k's running GNU/Linux
1.1.1.8 root 1558: xm_file=m68k/xm-linux.h # with ELF format
1559: xmake_file=x-linux
1560: tm_file=m68k/linux.h
1561: tmake_file=m68k/t-linux
1.1.1.9 root 1562: fixincludes=Makefile.in # The headers are ok already.
1.1.1.8 root 1563: extra_headers=math-68881.h
1564: gnu_ld=yes
1.1.1.10! root 1565: # GNU libc version 2 does not supply these;
! 1566: # we want them from GCC.
! 1567: extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1.1 root 1568: ;;
1569: m88k-dg-dgux*)
1.1.1.7 root 1570: case $machine in
1571: m88k-dg-dguxbcs*)
1572: tm_file=m88k/dguxbcs.h
1573: xmake_file=m88k/x-dguxbcs
1574: ;;
1575: *)
1576: tm_file=m88k/dgux.h
1577: xmake_file=m88k/x-dgux
1578: ;;
1579: esac
1580: extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1.1.1.4 root 1581: broken_install=yes
1.1.1.5 root 1582: if [ x$gas = xyes ]
1583: then
1.1.1.7 root 1584: tmake_file=m88k/t-dgux-gas
1.1.1.5 root 1585: else
1.1.1.7 root 1586: tmake_file=m88k/t-dgux
1.1.1.5 root 1587: fi
1.1.1.6 root 1588: fixincludes=fixinc.dgux
1.1 root 1589: ;;
1.1.1.2 root 1590: m88k-dolphin-sysv3*)
1.1.1.5 root 1591: tm_file=m88k/dolph.h
1.1.1.7 root 1592: extra_parts="crtbegin.o crtend.o"
1.1.1.5 root 1593: xm_file=m88k/xm-sysv3.h
1594: xmake_file=m88k/x-dolph
1595: if [ x$gas = xyes ]
1596: then
1.1.1.7 root 1597: tmake_file=m88k/t-m88k-gas
1.1.1.5 root 1598: fi
1599: ;;
1600: m88k-tektronix-sysv3)
1601: tm_file=m88k/tekXD88.h
1.1.1.7 root 1602: extra_parts="crtbegin.o crtend.o"
1.1.1.5 root 1603: xm_file=m88k/xm-sysv3.h
1604: xmake_file=m88k/x-tekXD88
1605: if [ x$gas = xyes ]
1606: then
1.1.1.7 root 1607: tmake_file=m88k/t-m88k-gas
1608: fi
1609: ;;
1.1.1.8 root 1610: m88k-*-aout*)
1611: cpu_type=m88k
1612: tm_file=m88k/m88k-aout.h
1613: ;;
1614: m88k-*-coff*)
1615: cpu_type=m88k
1616: tm_file=m88k/m88k-coff.h
1617: tmake_file=m88k/t-bug
1.1.1.7 root 1618: ;;
1619: m88k-*-luna*)
1620: tm_file=m88k/luna.h
1621: extra_parts="crtbegin.o crtend.o"
1622: if [ x$gas = xyes ]
1623: then
1624: tmake_file=m88k/t-luna-gas
1625: else
1626: tmake_file=m88k/t-luna
1.1.1.5 root 1627: fi
1.1.1.2 root 1628: ;;
1.1 root 1629: m88k-*-sysv3*)
1.1.1.5 root 1630: tm_file=m88k/sysv3.h
1.1.1.7 root 1631: extra_parts="crtbegin.o crtend.o"
1.1.1.5 root 1632: xm_file=m88k/xm-sysv3.h
1.1.1.6 root 1633: xmake_file=m88k/x-sysv3
1.1.1.5 root 1634: if [ x$gas = xyes ]
1635: then
1.1.1.7 root 1636: tmake_file=m88k/t-m88k-gas
1.1.1.5 root 1637: fi
1.1 root 1638: ;;
1.1.1.7 root 1639: m88k-*-sysv4*)
1640: tm_file=m88k/sysv4.h
1641: extra_parts="crtbegin.o crtend.o"
1642: xmake_file=m88k/x-sysv4
1643: tmake_file=m88k/t-sysv4
1.1.1.6 root 1644: ;;
1.1.1.8 root 1645: mips-sgi-irix6*) # SGI System V.4., IRIX 6
1646: tm_file=mips/iris6.h
1647: xm_file=mips/xm-iris6.h
1648: broken_install=yes
1649: fixincludes=Makefile.in
1650: xmake_file=mips/x-iris6
1651: tmake_file=mips/t-iris6
1652: # See comment in mips/iris[56].h files.
1653: use_collect2=yes
1654: ;;
1655: mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1656: tm_file=mips/cross64.h
1657: xm_file=mips/xm-iris5.h
1658: broken_install=yes
1659: fixincludes=Makefile.in
1660: xmake_file=mips/x-iris
1661: tmake_file=mips/t-cross64
1662: # See comment in mips/iris[56].h files.
1663: use_collect2=yes
1664: ;;
1.1.1.7 root 1665: mips-sgi-irix5*) # SGI System V.4., IRIX 5
1.1.1.6 root 1666: if [ x$gas = xyes ]
1667: then
1.1.1.7 root 1668: if [ x$stabs = xyes ]
1669: then
1670: tm_file=mips/iris5gdb.h
1671: else
1672: tm_file=mips/iris5gas.h
1673: fi
1.1.1.6 root 1674: else
1.1.1.7 root 1675: tm_file=mips/iris5.h
1.1.1.6 root 1676: fi
1677: xm_file=mips/xm-iris5.h
1678: broken_install=yes
1679: fixincludes=Makefile.in
1680: xmake_file=mips/x-iris
1681: # mips-tfile doesn't work yet
1682: tmake_file=mips/t-mips-gas
1.1.1.7 root 1683: # See comment in mips/iris5.h file.
1684: use_collect2=yes
1.1.1.6 root 1685: ;;
1.1.1.5 root 1686: mips-sgi-irix4loser*) # Mostly like a MIPS.
1687: if [ x$stabs = xyes ]; then
1.1.1.6 root 1688: tm_file=mips/iris4gl.h
1.1.1.5 root 1689: else
1.1.1.6 root 1690: tm_file=mips/iris4loser.h
1.1.1.5 root 1691: fi
1692: xm_file=mips/xm-iris4.h
1693: broken_install=yes
1694: xmake_file=mips/x-iris
1695: if [ x$gas = xyes ]
1696: then
1.1.1.6 root 1697: tmake_file=mips/t-mips-gas
1698: else
1699: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1700: fi
1701: if [ x$gnu_ld != xyes ]
1702: then
1.1.1.6 root 1703: use_collect2=yes
1.1.1.5 root 1704: fi
1705: ;;
1.1 root 1706: mips-sgi-irix4*) # Mostly like a MIPS.
1.1.1.4 root 1707: if [ x$stabs = xyes ]; then
1.1.1.6 root 1708: tm_file=mips/iris4-gdb.h
1.1.1.4 root 1709: else
1.1.1.6 root 1710: tm_file=mips/iris4.h
1.1.1.4 root 1711: fi
1.1.1.5 root 1712: xm_file=mips/xm-iris4.h
1.1.1.3 root 1713: broken_install=yes
1.1.1.5 root 1714: xmake_file=mips/x-iris
1715: if [ x$gas = xyes ]
1716: then
1.1.1.6 root 1717: tmake_file=mips/t-mips-gas
1718: else
1719: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1720: fi
1721: if [ x$gnu_ld != xyes ]
1722: then
1.1.1.6 root 1723: use_collect2=yes
1.1.1.5 root 1724: fi
1.1 root 1725: ;;
1.1.1.3 root 1726: mips-sgi-*) # Mostly like a MIPS.
1.1.1.4 root 1727: if [ x$stabs = xyes ]; then
1.1.1.6 root 1728: tm_file=mips/iris3-gdb.h
1.1.1.4 root 1729: else
1.1.1.6 root 1730: tm_file=mips/iris3.h
1.1.1.4 root 1731: fi
1.1.1.5 root 1732: xm_file=mips/xm-iris3.h
1.1.1.3 root 1733: broken_install=yes
1.1.1.6 root 1734: xmake_file=mips/x-iris3
1.1.1.5 root 1735: if [ x$gas = xyes ]
1736: then
1.1.1.6 root 1737: tmake_file=mips/t-mips-gas
1738: else
1739: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1740: fi
1741: if [ x$gnu_ld != xyes ]
1742: then
1.1.1.6 root 1743: use_collect2=yes
1.1.1.5 root 1744: fi
1.1 root 1745: ;;
1.1.1.3 root 1746: mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1.1.1.5 root 1747: tm_file=mips/osfrose.h
1748: xmake_file=mips/x-osfrose
1749: tmake_file=mips/t-osfrose
1.1.1.7 root 1750: extra_objs=halfpic.o
1.1.1.3 root 1751: use_collect2=yes
1752: ;;
1753: mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1.1.1.4 root 1754: if [ x$stabs = xyes ]; then
1.1.1.6 root 1755: tm_file=mips/dec-gosf1.h
1.1.1.4 root 1756: else
1.1.1.6 root 1757: tm_file=mips/dec-osf1.h
1.1.1.5 root 1758: fi
1759: xmake_file=mips/x-dec-osf1
1760: if [ x$gas = xyes ]
1761: then
1.1.1.6 root 1762: tmake_file=mips/t-mips-gas
1.1.1.5 root 1763: else
1.1.1.6 root 1764: tmake_file=mips/t-ultrix
1765: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1766: fi
1767: if [ x$gnu_ld != xyes ]
1768: then
1.1.1.6 root 1769: use_collect2=yes
1.1.1.4 root 1770: fi
1.1 root 1771: ;;
1.1.1.7 root 1772: mips-dec-bsd*) # Decstation running 4.4 BSD
1.1.1.6 root 1773: tm_file=mips/dec-bsd.h
1774: xmake_file=
1775: tmake_file=
1776: fixincludes=
1777: if [ x$gas = xyes ]
1778: then
1779: tmake_file=mips/t-mips-gas
1780: else
1781: tmake_file=mips/t-ultrix
1782: extra_passes="mips-tfile mips-tdump"
1783: fi
1784: if [ x$gnu_ld != xyes ]
1785: then
1786: use_collect2=yes
1787: fi
1788: ;;
1.1.1.8 root 1789: mips-dec-netbsd*) # Decstation running NetBSD
1790: tm_file=mips/netbsd.h
1791: xm_file=mips/xm-netbsd.h
1792: xmake_file=x-netbsd
1793: tmake_file=t-libc-ok
1794: fixincludes=Makefile.in
1795: prefix=$native_prefix
1796: ;;
1.1.1.4 root 1797: mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1798: if [ x$stabs = xyes ]; then
1.1.1.6 root 1799: tm_file=mips/news4-gdb.h
1.1.1.4 root 1800: else
1.1.1.6 root 1801: tm_file=mips/news4.h
1.1.1.4 root 1802: fi
1.1.1.5 root 1803: if [ x$gas = xyes ]
1804: then
1.1.1.6 root 1805: tmake_file=mips/t-mips-gas
1806: else
1807: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1808: fi
1809: if [ x$gnu_ld != xyes ]
1810: then
1.1.1.6 root 1811: use_collect2=yes
1.1.1.5 root 1812: fi
1813: xmake_file=mips/x-sony
1.1 root 1814: ;;
1.1.1.2 root 1815: mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1816: # That is based on svr4.
1817: # t-svr4 is not right because this system doesn't use ELF.
1.1.1.4 root 1818: if [ x$stabs = xyes ]; then
1.1.1.6 root 1819: tm_file=mips/news5-gdb.h
1.1.1.4 root 1820: else
1.1.1.6 root 1821: tm_file=mips/news5.h
1.1.1.5 root 1822: fi
1823: xm_file=mips/xm-news.h
1824: if [ x$gas = xyes ]
1825: then
1.1.1.6 root 1826: tmake_file=mips/t-mips-gas
1827: else
1828: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1829: fi
1830: if [ x$gnu_ld != xyes ]
1831: then
1.1.1.6 root 1832: use_collect2=yes
1.1.1.4 root 1833: fi
1.1.1.2 root 1834: ;;
1.1.1.7 root 1835: mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1836: if [ x$stabs = xyes ]; then
1837: tm_file=mips/svr4-t-gdb.h
1838: else
1839: tm_file=mips/svr4-t.h
1840: fi
1841: xm_file=mips/xm-sysv4.h
1842: xmake_file=mips/x-sysv
1843: if [ x$gas = xyes ]
1844: then
1.1.1.8 root 1845: tmake_file=mips/t-mips-gas
1846: extra_parts="crtbegin.o crtend.o"
1.1.1.7 root 1847: else
1.1.1.8 root 1848: tmake_file=mips/t-mips
1.1.1.7 root 1849: extra_passes="mips-tfile mips-tdump"
1850: fi
1851: if [ x$gnu_ld != xyes ]
1852: then
1853: use_collect2=yes
1854: fi
1855: broken_install=yes
1856: ;;
1.1.1.8 root 1857: mips-*-ultrix* | mips-dec-mach3) # Decstation.
1.1.1.7 root 1858: if [ x$stabs = xyes ]; then
1859: tm_file=mips/ultrix-gdb.h
1860: else
1861: tm_file=mips/ultrix.h
1862: fi
1863: xmake_file=mips/x-ultrix
1864: if [ x$gas = xyes ]
1865: then
1866: tmake_file=mips/t-mips-gas
1867: else
1868: tmake_file=mips/t-ultrix
1869: extra_passes="mips-tfile mips-tdump"
1870: fi
1871: if [ x$gnu_ld != xyes ]
1872: then
1873: use_collect2=yes
1874: fi
1875: ;;
1876: mips-*-riscos[56789]bsd*)
1.1.1.4 root 1877: if [ x$stabs = xyes ]; then # MIPS BSD 4.3, RISC-OS 5.0
1.1.1.6 root 1878: tm_file=mips/bsd-5-gdb.h
1.1.1.4 root 1879: else
1.1.1.6 root 1880: tm_file=mips/bsd-5.h
1.1.1.4 root 1881: fi
1.1.1.5 root 1882: if [ x$gas = xyes ]
1883: then
1.1.1.6 root 1884: tmake_file=mips/t-bsd-gas
1885: else
1886: tmake_file=mips/t-bsd
1887: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1888: fi
1889: if [ x$gnu_ld != xyes ]
1890: then
1.1.1.6 root 1891: use_collect2=yes
1.1.1.5 root 1892: fi
1.1.1.6 root 1893: broken_install=yes
1.1.1.4 root 1894: ;;
1.1.1.7 root 1895: mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
1.1.1.4 root 1896: if [ x$stabs = xyes ]; then # MIPS BSD 4.3, RISC-OS 4.0
1.1.1.6 root 1897: tm_file=mips/bsd-4-gdb.h
1.1.1.4 root 1898: else
1.1.1.6 root 1899: tm_file=mips/bsd-4.h
1.1.1.5 root 1900: fi
1901: if [ x$gas = xyes ]
1902: then
1.1.1.6 root 1903: tmake_file=mips/t-bsd-gas
1904: else
1905: tmake_file=mips/t-bsd
1906: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1907: fi
1908: if [ x$gnu_ld != xyes ]
1909: then
1.1.1.6 root 1910: use_collect2=yes
1.1.1.4 root 1911: fi
1.1.1.6 root 1912: broken_install=yes
1.1 root 1913: ;;
1.1.1.7 root 1914: mips-*-riscos[56789]sysv4*)
1.1.1.4 root 1915: if [ x$stabs = xyes ]; then # MIPS System V.4., RISC-OS 5.0
1.1.1.6 root 1916: tm_file=mips/svr4-5-gdb.h
1.1.1.4 root 1917: else
1.1.1.6 root 1918: tm_file=mips/svr4-5.h
1.1.1.4 root 1919: fi
1.1.1.6 root 1920: xm_file=mips/xm-sysv4.h
1.1.1.5 root 1921: xmake_file=mips/x-sysv
1922: if [ x$gas = xyes ]
1923: then
1.1.1.6 root 1924: tmake_file=mips/t-svr4-gas
1925: else
1926: tmake_file=mips/t-svr4
1927: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1928: fi
1929: if [ x$gnu_ld != xyes ]
1930: then
1.1.1.6 root 1931: use_collect2=yes
1.1.1.5 root 1932: fi
1.1.1.6 root 1933: broken_install=yes
1.1.1.4 root 1934: ;;
1.1.1.7 root 1935: mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
1.1.1.4 root 1936: if [ x$stabs = xyes ]; then # MIPS System V.4. RISC-OS 4.0
1.1.1.6 root 1937: tm_file=mips/svr4-4-gdb.h
1.1.1.4 root 1938: else
1.1.1.6 root 1939: tm_file=mips/svr4-4.h
1.1.1.5 root 1940: fi
1941: xm_file=mips/xm-sysv.h
1942: xmake_file=mips/x-sysv
1943: if [ x$gas = xyes ]
1944: then
1.1.1.6 root 1945: tmake_file=mips/t-svr4-gas
1946: else
1947: tmake_file=mips/t-svr4
1948: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1949: fi
1950: if [ x$gnu_ld != xyes ]
1951: then
1.1.1.6 root 1952: use_collect2=yes
1.1.1.4 root 1953: fi
1.1.1.6 root 1954: broken_install=yes
1.1.1.4 root 1955: ;;
1.1.1.7 root 1956: mips-*-riscos[56789]sysv*)
1.1.1.4 root 1957: if [ x$stabs = xyes ]; then # MIPS System V.3, RISC-OS 5.0
1.1.1.6 root 1958: tm_file=mips/svr3-5-gdb.h
1.1.1.4 root 1959: else
1.1.1.6 root 1960: tm_file=mips/svr3-5.h
1.1.1.4 root 1961: fi
1.1.1.5 root 1962: xm_file=mips/xm-sysv.h
1963: xmake_file=mips/x-sysv
1964: if [ x$gas = xyes ]
1965: then
1.1.1.6 root 1966: tmake_file=mips/t-svr3-gas
1967: else
1968: tmake_file=mips/t-svr3
1969: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1970: fi
1971: if [ x$gnu_ld != xyes ]
1972: then
1.1.1.6 root 1973: use_collect2=yes
1.1.1.5 root 1974: fi
1.1.1.6 root 1975: broken_install=yes
1.1.1.3 root 1976: ;;
1.1.1.7 root 1977: mips-*-sysv* | mips-*-riscos*sysv*)
1.1.1.4 root 1978: if [ x$stabs = xyes ]; then # MIPS System V.3, RISC-OS 4.0
1.1.1.6 root 1979: tm_file=mips/svr3-4-gdb.h
1.1.1.4 root 1980: else
1.1.1.6 root 1981: tm_file=mips/svr3-4.h
1.1.1.5 root 1982: fi
1983: xm_file=mips/xm-sysv.h
1984: xmake_file=mips/x-sysv
1985: if [ x$gas = xyes ]
1986: then
1.1.1.6 root 1987: tmake_file=mips/t-svr3-gas
1988: else
1989: tmake_file=mips/t-svr3
1990: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 1991: fi
1992: if [ x$gnu_ld != xyes ]
1993: then
1.1.1.6 root 1994: use_collect2=yes
1.1.1.4 root 1995: fi
1.1.1.6 root 1996: broken_install=yes
1.1.1.3 root 1997: ;;
1.1.1.7 root 1998: mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
1.1.1.4 root 1999: if [ x$stabs = xyes ]; then
1.1.1.6 root 2000: tm_file=mips/mips-5-gdb.h
1.1.1.4 root 2001: else
1.1.1.6 root 2002: tm_file=mips/mips-5.h
1.1.1.4 root 2003: fi
1.1.1.5 root 2004: if [ x$gas = xyes ]
2005: then
1.1.1.6 root 2006: tmake_file=mips/t-mips-gas
2007: else
2008: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 2009: fi
2010: if [ x$gnu_ld != xyes ]
2011: then
1.1.1.6 root 2012: use_collect2=yes
1.1.1.5 root 2013: fi
1.1.1.6 root 2014: broken_install=yes
1.1.1.4 root 2015: ;;
1.1.1.8 root 2016: mips-*-gnu*)
2017: cpu_type=mips # GNU supports this CPU; rest done below.
2018: ;;
2019: mipsel-*-ecoff*)
2020: cpu_type=mips
2021: if [ x$stabs = xyes ]; then
2022: tm_file=mips/ecoffl-gdb.h
2023: else
2024: tm_file=mips/ecoffl.h
2025: fi
2026: tmake_file=mips/t-ecoff
2027: ;;
2028: mips-*-ecoff*)
2029: if [ x$stabs = xyes ]; then
2030: tm_file=mips/ecoff-gdb.h
2031: else
2032: tm_file=mips/ecoff.h
2033: fi
2034: tmake_file=mips/t-ecoff
2035: broken_install=yes
2036: ;;
2037: mipsel-*-elf*)
2038: cpu_type=mips
2039: tm_file=mips/elfl.h
2040: tmake_file=mips/t-ecoff
2041: ;;
2042: mips-*-elf*)
2043: cpu_type=mips
2044: tm_file=mips/elf.h
2045: tmake_file=mips/t-ecoff
2046: ;;
2047: mips64el-*-elf*)
2048: cpu_type=mips
2049: tm_file=mips/elfl64.h
2050: tmake_file=mips/t-ecoff
2051: ;;
2052: mips64orionel-*-elf*)
2053: cpu_type=mips
2054: tm_file=mips/elflorion.h
2055: tmake_file=mips/t-ecoff
2056: ;;
2057: mips64-*-elf*)
2058: cpu_type=mips
2059: tm_file=mips/elf64.h
2060: tmake_file=mips/t-ecoff
2061: ;;
2062: mips64orion-*-elf*)
2063: cpu_type=mips
2064: tm_file=mips/elforion.h
2065: tmake_file=mips/t-ecoff
2066: ;;
1.1.1.4 root 2067: mips-*-*) # Default MIPS RISC-OS 4.0.
2068: if [ x$stabs = xyes ]; then
1.1.1.6 root 2069: tm_file=mips/mips-4-gdb.h
1.1.1.4 root 2070: else
1.1.1.6 root 2071: tm_file=mips/mips.h
1.1.1.5 root 2072: fi
2073: if [ x$gas = xyes ]
2074: then
1.1.1.6 root 2075: tmake_file=mips/t-mips-gas
2076: else
2077: extra_passes="mips-tfile mips-tdump"
1.1.1.5 root 2078: fi
2079: if [ x$gnu_ld != xyes ]
2080: then
1.1.1.6 root 2081: use_collect2=yes
1.1.1.4 root 2082: fi
1.1.1.3 root 2083: ;;
1.1.1.7 root 2084: ns32k-encore-bsd*)
2085: tm_file=ns32k/encore.h
1.1.1.3 root 2086: use_collect2=yes
1.1 root 2087: ;;
1.1.1.7 root 2088: ns32k-sequent-bsd*)
2089: tm_file=ns32k/sequent.h
1.1.1.3 root 2090: use_collect2=yes
1.1 root 2091: ;;
1.1.1.7 root 2092: ns32k-tek6100-bsd*)
2093: tm_file=ns32k/tek6100.h
2094: broken_install=yes
1.1.1.3 root 2095: use_collect2=yes
1.1 root 2096: ;;
1.1.1.7 root 2097: ns32k-tek6200-bsd*)
2098: tm_file=ns32k/tek6200.h
2099: broken_install=yes
1.1.1.3 root 2100: use_collect2=yes
1.1 root 2101: ;;
1.1.1.7 root 2102: # This has not been updated to GCC 2.
2103: # ns32k-ns-genix*)
2104: # xm_file=ns32k/xm-genix.h
2105: # xmake_file=ns32k/x-genix
2106: # tm_file=ns32k/genix.h
2107: # broken_install=yes
2108: # use_collect2=yes
2109: # ;;
2110: ns32k-merlin-*)
2111: tm_file=ns32k/merlin.h
1.1.1.4 root 2112: use_collect2=yes
2113: ;;
1.1.1.7 root 2114: ns32k-pc532-mach*)
2115: tm_file=ns32k/pc532-mach.h
1.1.1.6 root 2116: use_collect2=yes
2117: ;;
1.1.1.7 root 2118: ns32k-pc532-minix*)
2119: tm_file=ns32k/pc532-min.h
2120: xm_file=ns32k/xm-pc532-min.h
1.1.1.3 root 2121: use_collect2=yes
2122: ;;
1.1.1.7 root 2123: ns32k-pc532-netbsd*)
2124: tm_file=ns32k/netbsd.h
2125: xm_file=ns32k/xm-netbsd.h
2126: tmake_file=t-libc-ok
2127: # On NetBSD, the headers are already okay.
2128: fixincludes=Makefile.in
2129: xmake_file=x-netbsd
1.1.1.5 root 2130: ;;
1.1.1.7 root 2131: pyramid-*-*)
2132: cpu_type=pyr
2133: xmake_file=pyr/x-pyr
1.1.1.6 root 2134: use_collect2=yes
1.1.1.5 root 2135: ;;
1.1.1.7 root 2136: romp-*-aos*)
1.1.1.3 root 2137: use_collect2=yes
2138: ;;
1.1.1.7 root 2139: romp-*-mach*)
2140: xmake_file=romp/x-mach
1.1.1.4 root 2141: use_collect2=yes
2142: ;;
1.1.1.8 root 2143: powerpc-ibm-aix[456789].*)
2144: cpu_type=rs6000
2145: tm_file=rs6000/aix41ppc.h
2146: tmake_file=rs6000/t-newas
2147: use_collect2=yes
2148: ;;
1.1.1.7 root 2149: powerpc-ibm-aix*)
2150: cpu_type=rs6000
2151: tm_file=rs6000/powerpc.h
1.1.1.8 root 2152: tmake_file=rs6000/t-rs6000
1.1.1.5 root 2153: use_collect2=yes
2154: ;;
1.1.1.8 root 2155: powerpc-*-sysv4* | powerpc-*-elf*)
2156: cpu_type=rs6000
2157: xm_file=rs6000/xm-sysv4.h
2158: tm_file=rs6000/sysv4.h
2159: if [ x$gas = xyes ]
2160: then
2161: tmake_file=rs6000/t-ppcgas
2162: else
2163: tmake_file=rs6000/t-ppc
2164: fi
2165: xmake_file=rs6000/x-sysv4
2166: ;;
2167: powerpc-*-eabiaix*)
2168: cpu_type=rs6000
2169: tm_file=rs6000/eabiaix.h
2170: tmake_file=rs6000/t-eabiaix
2171: fixincludes=Makefile.in
2172: ;;
2173: powerpc-*-eabisim*)
2174: cpu_type=rs6000
2175: tm_file=rs6000/eabisim.h
2176: tmake_file=rs6000/t-eabisim
2177: fixincludes=Makefile.in
2178: ;;
2179: powerpc-*-eabi*)
2180: cpu_type=rs6000
2181: tm_file=rs6000/eabi.h
2182: if [ x$gas = xyes ]
2183: then
2184: tmake_file=rs6000/t-eabigas
2185: else
2186: tmake_file=rs6000/t-eabi
2187: fi
2188: fixincludes=Makefile.in
2189: ;;
2190: powerpcle-*-sysv4* | powerpcle-*-elf*)
2191: cpu_type=rs6000
2192: xm_file=rs6000/xm-sysv4.h
2193: tm_file=rs6000/sysv4le.h
2194: if [ x$gas = xyes ]
2195: then
2196: tmake_file=rs6000/t-ppclegas
2197: else
2198: tmake_file=rs6000/t-ppc
2199: fi
2200: xmake_file=rs6000/x-sysv4
2201: ;;
2202: powerpcle-*-eabisim*)
2203: cpu_type=rs6000
2204: tm_file=rs6000/eabilesim.h
2205: tmake_file=rs6000/t-eabisim
2206: fixincludes=Makefile.in
2207: ;;
2208: powerpcle-*-eabi*)
2209: cpu_type=rs6000
2210: tm_file=rs6000/eabile.h
2211: if [ x$gas = xyes ]
2212: then
2213: tmake_file=rs6000/t-eabilegas
2214: else
2215: tmake_file=rs6000/t-eabi
2216: fi
2217: fixincludes=Makefile.in
2218: ;;
1.1.1.7 root 2219: rs6000-ibm-aix3.[01]*)
2220: tm_file=rs6000/aix31.h
1.1.1.8 root 2221: tmake_file=rs6000/t-rs6000
1.1.1.7 root 2222: xmake_file=rs6000/x-aix31
1.1.1.6 root 2223: use_collect2=yes
2224: ;;
1.1.1.8 root 2225: rs6000-ibm-aix3.2.[456789]*)
2226: tm_file=rs6000/aix3newas.h
2227: tmake_file=rs6000/t-newas
2228: use_collect2=yes
2229: ;;
2230: rs6000-ibm-aix[456789].*)
1.1.1.7 root 2231: tm_file=rs6000/aix41.h
1.1.1.8 root 2232: tmake_file=rs6000/t-newas
1.1.1.7 root 2233: xmake_file=rs6000/x-aix31
1.1.1.3 root 2234: use_collect2=yes
1.1.1.7 root 2235: ;;
2236: rs6000-ibm-aix*)
1.1.1.3 root 2237: use_collect2=yes
1.1.1.8 root 2238: tmake_file=rs6000/t-rs6000
1.1 root 2239: ;;
1.1.1.7 root 2240: rs6000-bull-bosx)
1.1.1.8 root 2241: tmake_file=rs6000/t-rs6000
1.1.1.3 root 2242: use_collect2=yes
2243: ;;
1.1.1.7 root 2244: rs6000-*-mach*)
2245: xm_file=rs6000/xm-mach.h
2246: tm_file=rs6000/mach.h
1.1.1.8 root 2247: tmake_file=rs6000/t-rs6000
1.1.1.7 root 2248: xmake_file=rs6000/x-mach
1.1.1.6 root 2249: use_collect2=yes
2250: ;;
1.1.1.8 root 2251: rs6000-*-lynxos*)
2252: xmake_file=rs6000/x-lynx
2253: xm_file=rs6000/xm-lynx.h
2254: tm_file=rs6000/lynx.h
2255: tmake_file=rs6000/t-rs6000
2256: use_collect2=yes
2257: ;;
1.1.1.7 root 2258: sh-*-*)
2259: cpu_type=sh
2260: ;;
2261: sparc-tti-*)
2262: tm_file=sparc/pbd.h
2263: xm_file=sparc/xm-pbd.h
2264: ;;
1.1.1.8 root 2265: sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2266: cpu_type=sparc
2267: tm_file=sparc/vxsparc.h
2268: tmake_file=sparc/t-vxsparc
2269: use_collect2=yes
2270: ;;
2271: sparc-*-aout*)
2272: tmake_file=sparc/t-sparcbare
2273: tm_file=sparc/sparc-aout.h
2274: ;;
2275: sparc-*-netbsd*)
1.1.1.7 root 2276: tm_file=sparc/netbsd.h
1.1.1.8 root 2277: xm_file=sparc/xm-netbsd.h
1.1.1.7 root 2278: # On NetBSD, the headers are already okay.
2279: fixincludes=Makefile.in
1.1.1.8 root 2280: tmake_file=t-libc-ok
1.1.1.7 root 2281: xmake_file=x-netbsd
2282: ;;
2283: sparc-*-bsd*)
2284: tm_file=sparc/bsd.h
2285: ;;
2286: sparc-*-lynxos*)
1.1.1.6 root 2287: if [ x$gas = xyes ]
2288: then
1.1.1.7 root 2289: tm_file=sparc/lynx.h
1.1.1.6 root 2290: else
1.1.1.7 root 2291: tm_file=sparc/lynx-ng.h
1.1.1.6 root 2292: fi
1.1.1.8 root 2293: xm_file=sparc/xm-lynx.h
2294: tmake_file=sparc/t-sunos41
1.1.1.7 root 2295: xmake_file=x-lynx
2296: ;;
2297: sparc-*-solaris2* | sparc-*-sunos5*)
2298: xm_file=sparc/xm-sol2.h
2299: tm_file=sparc/sol2.h
2300: tmake_file=sparc/t-sol2
2301: xmake_file=sparc/x-sysv4
2302: extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2303: fixincludes=fixinc.svr4
1.1.1.6 root 2304: broken_install=yes
1.1.1.7 root 2305: ;;
2306: sparc-*-sunos4.0*)
1.1.1.8 root 2307: tm_file=sparc/sunos4.h
1.1.1.7 root 2308: tmake_file=sparc/t-sunos40
1.1.1.6 root 2309: use_collect2=yes
2310: ;;
1.1.1.7 root 2311: sparc-*-sunos4*)
1.1.1.8 root 2312: tm_file=sparc/sunos4.h
1.1.1.7 root 2313: tmake_file=sparc/t-sunos41
1.1.1.3 root 2314: use_collect2=yes
2315: ;;
1.1.1.7 root 2316: sparc-*-sunos3*)
2317: tm_file=sparc/sun4o3.h
2318: use_collect2=yes
1.1.1.5 root 2319: ;;
1.1.1.7 root 2320: sparc-*-sysv4*)
2321: xm_file=sparc/xm-sysv4.h
2322: tm_file=sparc/sysv4.h
2323: tmake_file=t-svr4
2324: xmake_file=sparc/x-sysv4
1.1.1.8 root 2325: extra_parts="crtbegin.o crtend.o"
2326: ;;
2327: sparclite-*-coff*)
2328: cpu_type=sparc
2329: tm_file=sparc/litecoff.h
2330: tmake_file=sparc/t-sparclite
1.1.1.5 root 2331: ;;
1.1.1.7 root 2332: sparclite-*-*)
2333: cpu_type=sparc
2334: tm_file=sparc/lite.h
1.1.1.8 root 2335: tmake_file=sparc/t-sparclite
1.1.1.6 root 2336: use_collect2=yes
2337: ;;
1.1.1.8 root 2338: sparc64-*-aout*)
1.1.1.7 root 2339: cpu_type=sparc
2340: tmake_file=sparc/t-sp64
2341: tm_file=sparc/sp64-aout.h
2342: ;;
1.1.1.8 root 2343: sparc64-*-elf*)
1.1.1.7 root 2344: cpu_type=sparc
2345: tmake_file=sparc/t-sp64
2346: tm_file=sparc/sp64-elf.h
1.1.1.8 root 2347: extra_parts="crtbegin.o crtend.o"
1.1.1.7 root 2348: ;;
2349: # This hasn't been upgraded to GCC 2.
2350: # tahoe-harris-*) # Harris tahoe, using COFF.
2351: # tm_file=tahoe/harris.h
2352: # ;;
2353: # tahoe-*-bsd*) # tahoe running BSD
2354: # ;;
2355: # This hasn't been upgraded to GCC 2.
2356: # tron-*-*)
2357: # cpu_type=gmicro
2358: # use_collect2=yes
2359: # ;;
2360: vax-*-bsd*) # vaxen running BSD
1.1.1.4 root 2361: use_collect2=yes
2362: ;;
1.1.1.7 root 2363: vax-*-sysv*) # vaxen running system V
2364: xm_file=vax/xm-vaxv.h
2365: tm_file=vax/vaxv.h
2366: ;;
1.1.1.8 root 2367: vax-*-netbsd*)
2368: tm_file=vax/netbsd.h
2369: xm_file=vax/xm-netbsd.h
2370: tmake_file=t-libc-ok
2371: # On NetBSD, the headers are already okay.
2372: fixincludes=Makefile.in
2373: xmake_file=x-netbsd
2374: ;;
1.1.1.7 root 2375: vax-*-ultrix*) # vaxen running ultrix
2376: tm_file=vax/ultrix.h
1.1.1.3 root 2377: use_collect2=yes
1.1.1.2 root 2378: ;;
1.1.1.7 root 2379: vax-*-vms*) # vaxen running VMS
2380: xm_file=vax/xm-vms.h
2381: tm_file=vax/vms.h
2382: ;;
1.1.1.8 root 2383: pdp11-*-bsd)
2384: xm_file=pdp11/xm-pdp11.h
2385: tm_file=pdp11/2bsd.h
2386: tmake_file=pdp11/t-pdp11
2387: ;;
1.1.1.7 root 2388: pdp11-*-*)
2389: xm_file=pdp11/xm-pdp11.h
2390: tm_file=pdp11/pdp11.h
1.1.1.8 root 2391: tmake_file=pdp11/t-pdp11
1.1.1.7 root 2392: ;;
2393: we32k-att-sysv*)
2394: cpu_type=we32k
2395: use_collect2=yes
1.1.1.5 root 2396: ;;
1.1.1.2 root 2397: *)
1.1.1.4 root 2398: echo "Configuration $machine not supported" 1>&2
1.1.1.2 root 2399: exit 1
2400: ;;
1.1 root 2401: esac
2402:
2403: case $machine in
1.1.1.10! root 2404: *-*-linux-gnu*)
! 2405: ;; # Existing Linux/GNU systems do not use the GNU setup.
1.1.1.8 root 2406: *-*-gnu*)
2407: # On the GNU system, the setup is just about the same on
2408: # each different CPU. The specific machines that GNU
2409: # supports are matched above and just set $cpu_type.
2410: xm_file=${cpu_type}/xm-gnu.h
2411: tm_file=${cpu_type}/gnu.h
2412: extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2413: # GNU always uses ELF.
2414: elf=yes
2415: # GNU tools are the only tools.
2416: gnu_ld=yes
2417: gas=yes
2418: # On GNU, the headers are already okay.
2419: fixincludes=Makefile.in
2420: # Don't build libgcc1.c, because there is no non-GNU
2421: # compiler to build it with. The GNU system C library will
2422: # include assembly versions of any needed functions.
2423: tmake_file=t-libc-ok
2424: ;;
1.1 root 2425: *-*-sysv4*)
1.1.1.4 root 2426: fixincludes=fixinc.svr4
1.1 root 2427: xmake_try_sysv=x-sysv
1.1.1.4 root 2428: broken_install=yes
1.1.1.5 root 2429: install_headers_dir=install-headers-cpio
1.1 root 2430: ;;
2431: *-*-sysv*)
1.1.1.3 root 2432: broken_install=yes
1.1.1.5 root 2433: install_headers_dir=install-headers-cpio
1.1.1.3 root 2434: ;;
2435: esac
2436:
1.1.1.7 root 2437: # Distinguish i386 from i486/i586.
2438: # ??? For the moment we treat i586 as an i486.
1.1.1.5 root 2439: # Also, do not run mips-tfile on MIPS if using gas.
1.1.1.4 root 2440: case $machine in
1.1.1.7 root 2441: i[45]86-*-*)
1.1.1.4 root 2442: target_cpu_default=2
2443: ;;
1.1.1.8 root 2444: mips*-*-*)
1.1.1.5 root 2445: if [ x$gas = xyes ]
2446: then
2447: target_cpu_default=16
2448: fi
2449: ;;
1.1.1.7 root 2450: alpha-*-*)
2451: if [ x$gas = xyes ]
2452: then
2453: target_cpu_default=4
2454: fi
2455: ;;
1.1.1.4 root 2456: esac
2457:
1.1.1.3 root 2458: # No need for collect2 if we have the GNU linker.
2459: case x$gnu_ld in
2460: xyes)
2461: use_collect2=
1.1 root 2462: ;;
2463: esac
2464:
2465: # Default certain vars that apply to both host and target in turn.
2466: if [ x$cpu_type = x ]
2467: then cpu_type=`echo $machine | sed 's/-.*$//'`
2468: fi
2469:
1.1.1.4 root 2470: # Save data on machine being used to compile GCC in build_xm_file.
1.1 root 2471: # Save data on host machine in vars host_xm_file and host_xmake_file.
2472: if [ x$pass1done = x ]
2473: then
1.1.1.5 root 2474: if [ x$xm_file = x ]
2475: then build_xm_file=$cpu_type/xm-$cpu_type.h
1.1.1.4 root 2476: else build_xm_file=$xm_file
1.1 root 2477: fi
2478: pass1done=yes
1.1.1.4 root 2479: else
2480: if [ x$pass2done = x ]
2481: then
1.1.1.5 root 2482: if [ x$xm_file = x ]
2483: then host_xm_file=$cpu_type/xm-$cpu_type.h
1.1.1.4 root 2484: else host_xm_file=$xm_file
2485: fi
2486: if [ x$xmake_file = x ]
1.1.1.5 root 2487: then xmake_file=$cpu_type/x-$cpu_type
1.1.1.4 root 2488: fi
2489: host_xmake_file=$xmake_file
2490: host_broken_install=$broken_install
1.1.1.5 root 2491: host_install_headers_dir=$install_headers_dir
1.1.1.6 root 2492: host_truncate_target=$truncate_target
1.1.1.4 root 2493: pass2done=yes
2494: fi
1.1 root 2495: fi
2496: done
2497:
2498: # Default the target-machine variables that were not explicitly set.
2499: if [ x$tm_file = x ]
1.1.1.5 root 2500: then tm_file=$cpu_type/$cpu_type.h; fi
1.1.1.3 root 2501:
1.1.1.8 root 2502: if [ x$extra_headers = x ]
2503: then extra_headers=; fi
1.1 root 2504:
2505: if [ x$xm_file = x ]
1.1.1.5 root 2506: then xm_file=$cpu_type/xm-$cpu_type.h; fi
1.1 root 2507:
1.1.1.5 root 2508: md_file=$cpu_type/$cpu_type.md
1.1 root 2509:
2510: if [ x$out_file = x ]
1.1.1.5 root 2511: then out_file=$cpu_type/$cpu_type.c; fi
1.1 root 2512:
2513: if [ x$tmake_file = x ]
1.1.1.5 root 2514: then tmake_file=$cpu_type/t-$cpu_type
1.1 root 2515: fi
2516:
1.1.1.8 root 2517: # Say what files are being used for the output code and MD file.
2518: echo "Using \`$srcdir/config/$out_file' to output insns."
2519: echo "Using \`$srcdir/config/$md_file' as machine description file."
2520: echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2521: echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2522: if [ $host_xm_file != $build_xm_file ]; then
2523: echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2524: fi
2525:
1.1 root 2526: # Set up the list of links to be made.
2527: # $links is the list of link names, and $files is the list of names to link to.
1.1.1.8 root 2528: files="$host_xm_file $tm_file $xm_file $build_xm_file"
2529: links="config.h tm.h tconfig.h hconfig.h"
1.1.1.6 root 2530:
2531: rm -f config.bak
2532: if [ -f config.status ]; then mv -f config.status config.bak; fi
1.1 root 2533:
2534: # Make the links.
2535: while [ -n "$files" ]
2536: do
2537: # set file to car of files, files to cdr of files
2538: set $files; file=$1; shift; files=$*
2539: set $links; link=$1; shift; links=$*
2540:
1.1.1.8 root 2541: rm -f $link
2542: echo "#include \"$file\"" >$link
1.1 root 2543: done
2544:
1.1.1.6 root 2545: # Truncate the target if necessary
2546: if [ x$host_truncate_target != x ]; then
2547: target=`echo $target | sed -e 's/\(..............\).*/\1/'`
2548: fi
2549:
1.1.1.7 root 2550: # Get the version number from the toplevel
2551: version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
1.1 root 2552:
1.1.1.7 root 2553: # For the current directory and all of the language subdirectories,
2554: # do the rest of the script ...
1.1 root 2555:
1.1.1.7 root 2556: subdirs=
2557: for lang in ${srcdir}/*/config-lang.in ..
2558: do
2559: case $lang in
2560: ..) ;;
1.1.1.8 root 2561: # The odd quoting in the next line works around
1.1.1.9 root 2562: # an apparent bug in bash 1.12 on GNU/Linux.
1.1.1.8 root 2563: ${srcdir}/[*]/config-lang.in) ;;
1.1.1.7 root 2564: *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
2565: esac
2566: done
1.1.1.3 root 2567:
1.1.1.8 root 2568: # Are we using gcc as the native compiler?
2569: case $canon_host in
1.1.1.9 root 2570: *linux*) # All GNU/Linux systems use gcc as the native compiler.
1.1.1.8 root 2571: prefix=$native_prefix
1.1.1.10! root 2572: gxx_include_dir=$prefix/include/g++
1.1.1.8 root 2573: ;;
2574: esac
2575:
2576: # Make empty files to contain the specs and options for each language.
2577: # Then add #include lines to for a compiler that has specs and/or options.
2578:
2579: lang_specs_files=
2580: lang_options_files=
2581: rm -f specs.h options.h
2582: touch specs.h options.h
2583: for subdir in . $subdirs
2584: do
2585: if [ -f $srcdir/$subdir/lang-specs.h ]; then
2586: echo "#include \"$subdir/lang-specs.h\"" >>specs.h
2587: lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
2588: fi
2589: if [ -f $srcdir/$subdir/lang-options.h ]; then
2590: echo "#include \"$subdir/lang-options.h\"" >>options.h
2591: lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
2592: fi
2593: done
2594:
2595: # Define SET_MAKE if this old version of `make' doesn't define $(MAKE).
2596: rm -f Makefile.xx
2597: (echo 'all:'; echo ' @echo maketemp=$(MAKE)') >Makefile.xx
2598: case `${MAKE-make} -f Makefile.xx 2>/dev/null | grep maketemp=` in
2599: 'maketemp=')
2600: SET_MAKE="MAKE = ${MAKE-make}"
2601: ;;
2602: *)
2603: SET_MAKE=
2604: ;;
2605: esac
2606: rm -f Makefile.xx
2607:
1.1.1.7 root 2608: savesrcdir=$srcdir
2609: for subdir in . $subdirs
2610: do
2611: oldsrcdir=$savesrcdir
1.1.1.3 root 2612:
1.1.1.7 root 2613: # Re-adjust the path
2614: case $oldsrcdir in
2615: /*)
2616: srcdir=$oldsrcdir/$subdir
2617: ;;
2618: *)
2619: case $subdir in
2620: .)
2621: ;;
2622: *)
2623: oldsrcdir=../${oldsrcdir}
2624: srcdir=$oldsrcdir/$subdir
2625: ;;
2626: esac
2627: ;;
2628: esac
2629: mainsrcdir=$oldsrcdir
2630: STARTDIR=`pwd`
2631: test -d $subdir || mkdir $subdir
2632: cd $subdir
2633:
2634: # Create Makefile.tem from Makefile.in.
2635: # Make it set VPATH if necessary so that the sources are found.
2636: # Also change its value of srcdir.
2637: # Also create a .gdbinit file which runs the one in srcdir
2638: # and tells GDB to look there for source files.
2639: case $srcdir in
2640: . | ./$subdir | .././$subdir)
2641: rm -f Makefile.tem
2642: cp Makefile.in Makefile.tem
2643: chmod +w Makefile.tem
2644: ;;
2645: *)
2646: rm -f Makefile.tem
2647: echo "VPATH = ${srcdir}" \
2648: | cat - ${srcdir}/Makefile.in \
2649: | sed "s@^srcdir = \.@srcdir = ${srcdir}@" > Makefile.tem
2650: rm -f .gdbinit
2651: echo "dir ." > .gdbinit
2652: echo "dir ${srcdir}" >> .gdbinit
1.1.1.8 root 2653: if [ x$gdb_needs_out_file_path = xyes ]
2654: then
2655: echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
2656: fi
1.1.1.7 root 2657: if [ "x$subdirs" != x ]; then
2658: for s in $subdirs
2659: do
2660: echo "dir ${srcdir}/$s" >> .gdbinit
2661: done
2662: fi
2663: echo "source ${srcdir}/.gdbinit" >> .gdbinit
2664: ;;
2665: esac
2666:
2667: # Conditionalize the makefile for this host machine.
2668: if [ -f ${mainsrcdir}/config/${host_xmake_file} ]
2669: then
2670: rm -f Makefile.xx
2671: sed -e "/####host/ r ${mainsrcdir}/config/${host_xmake_file}" Makefile.tem > Makefile.xx
2672: echo "Merged ${host_xmake_file}."
2673: rm -f Makefile.tem
2674: mv Makefile.xx Makefile.tem
2675: dep_host_xmake_file=${host_xmake_file}
2676: else
2677: # Say in the makefile that there is no host_xmake_file,
2678: # by using a name which (when interpreted relative to $srcdir/config)
2679: # will duplicate another dependency: $srcdir/Makefile.in.
2680: dep_host_xmake_file=../Makefile.in
2681: fi
1.1.1.6 root 2682:
1.1.1.8 root 2683: # Add a definition for MAKE if system wants one.
2684: case "$SET_MAKE" in
2685: ?*)
2686: rm -f Makefile.xx
2687: (echo "$SET_MAKE"; cat Makefile.tem) >Makefile.xx
2688: rm -f Makefile.tem
2689: mv Makefile.xx Makefile.tem
2690: esac
2691:
1.1.1.7 root 2692: # Add a definition for INSTALL if system wants one.
2693: # This substitutes for lots of x-* files.
2694: if [ x$host_broken_install = x ]
2695: then true
2696: else
2697: rm -f Makefile.xx
2698: abssrcdir=`cd ${srcdir}; pwd`
2699: sed "s|^INSTALL = .*|INSTALL = ${abssrcdir}/install.sh -c|" Makefile.tem > Makefile.xx
2700: rm -f Makefile.tem
2701: mv Makefile.xx Makefile.tem
2702: fi
1.1 root 2703:
1.1.1.7 root 2704: # Some of the following don't make sense in the language makefiles,
2705: # but rather than introduce another level of nesting, we leave them
2706: # as is.
2707:
1.1.1.8 root 2708: # Set EXTRA_HEADERS according to extra_headers.
1.1.1.7 root 2709: # This substitutes for lots of t-* files.
1.1.1.8 root 2710: if [ "x$extra_headers" = x ]
1.1.1.7 root 2711: then true
2712: else
1.1.1.8 root 2713: # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
1.1.1.7 root 2714: list=
1.1.1.8 root 2715: for file in $extra_headers;
1.1.1.7 root 2716: do
2717: list="${list} ${srcdir}/ginclude/${file}"
2718: done
2719: rm -f Makefile.xx
2720: sed "s|^EXTRA_HEADERS =|EXTRA_HEADERS = ${list}|" Makefile.tem > Makefile.xx
2721: rm -f Makefile.tem
2722: mv Makefile.xx Makefile.tem
2723: fi
2724:
2725: # Set EXTRA_PASSES according to extra_passes.
2726: # This substitutes for lots of t-* files.
2727: if [ "x$extra_passes" = x ]
2728: then true
2729: else
2730: rm -f Makefile.xx
2731: sed "s/^EXTRA_PASSES =/EXTRA_PASSES = $extra_passes/" Makefile.tem > Makefile.xx
2732: rm -f Makefile.tem
2733: mv Makefile.xx Makefile.tem
2734: fi
2735:
2736: # Set EXTRA_PARTS according to extra_parts.
2737: # This substitutes for lots of t-* files.
2738: if [ "x$extra_parts" = x ]
2739: then true
2740: else
2741: rm -f Makefile.xx
2742: sed "s/^EXTRA_PARTS =/EXTRA_PARTS = $extra_parts/" Makefile.tem > Makefile.xx
2743: rm -f Makefile.tem
2744: mv Makefile.xx Makefile.tem
2745: fi
2746:
2747: # Set EXTRA_PROGRAMS according to extra_programs.
2748: if [ "x$extra_programs" = x ]
2749: then true
2750: else
2751: rm -f Makefile.xx
2752: sed "s/^EXTRA_PROGRAMS =/EXTRA_PROGRAMS = $extra_programs/" Makefile.tem > Makefile.xx
2753: rm -f Makefile.tem
2754: mv Makefile.xx Makefile.tem
2755: fi
2756:
2757: # Set EXTRA_OBJS according to extra_objs.
2758: # This substitutes for lots of t-* files.
2759: if [ "x$extra_objs" = x ]
2760: then true
2761: else
2762: rm -f Makefile.xx
1.1.1.8 root 2763: sed "s|^EXTRA_OBJS =|EXTRA_OBJS = $extra_objs|" Makefile.tem > Makefile.xx
2764: rm -f Makefile.tem
2765: mv Makefile.xx Makefile.tem
2766: fi
2767:
2768: # Set EXTRA_GCC_OBJS according to extra_gcc_objs.
2769: # This substitutes for lots of t-* files.
2770: if [ "x$extra_gcc_objs" = x ]
2771: then true
2772: else
2773: rm -f Makefile.xx
2774: sed "s|^EXTRA_GCC_OBJS =|EXTRA_GCC_OBJS = $extra_gcc_objs|" Makefile.tem > Makefile.xx
1.1.1.7 root 2775: rm -f Makefile.tem
2776: mv Makefile.xx Makefile.tem
2777: fi
2778:
2779: # Add a definition of USE_COLLECT2 if system wants one.
2780: # Also tell toplev.c what to do.
2781: # This substitutes for lots of t-* files.
2782: if [ x$use_collect2 = x ]
2783: then true
2784: else
2785: rm -f Makefile.xx
2786: (echo "USE_COLLECT2 = ld"; echo "MAYBE_USE_COLLECT2 = -DUSE_COLLECT2")\
2787: | cat - Makefile.tem > Makefile.xx
2788: rm -f Makefile.tem
2789: mv Makefile.xx Makefile.tem
2790: fi
2791:
2792: # Add -DTARGET_CPU_DEFAULT for toplev.c if system wants one.
2793: # This substitutes for lots of *.h files.
2794: if [ x$target_cpu_default = x ]
2795: then true
2796: else
2797: rm -f Makefile.xx
2798: # This used cat, but [email protected] said that ran into NFS bugs.
2799: sed -e "/^# Makefile for GNU C compiler./c\\
1.1.1.6 root 2800: MAYBE_TARGET_DEFAULT = -DTARGET_CPU_DEFAULT=$target_cpu_default\\
2801: \# Makefile for GNU C compiler." Makefile.tem > Makefile.xx
1.1.1.7 root 2802: rm -f Makefile.tem
2803: mv Makefile.xx Makefile.tem
2804: fi
2805:
2806: # Set MD_DEPS if the real md file is in md.pre-cpp.
2807: # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
2808: # for line oriented comments, so we must always use a GNU cpp. If
2809: # building gcc with a cross compiler, use the cross compiler just
2810: # built. Otherwise, we can use the cpp just built.
2811: if [ "x$md_cppflags" = x ]
1.1.1.8 root 2812: then
2813: md_file=$srcdir/config/$md_file
1.1.1.7 root 2814: else
2815: rm -f Makefile.xx
2816: (if [ x$host = x$build ] ; then
1.1.1.8 root 2817: echo "MD_DEPS = $(md_file) cpp" ; echo "MD_CPP = ./cpp"
1.1.1.7 root 2818: else
2819: echo "MD_DEPS = md.pre-cpp" ; echo "MD_CPP = \$(HOST_CC) -x c -E"
2820: fi
1.1.1.8 root 2821: md_file=md
1.1.1.7 root 2822: echo "MD_CPPFLAGS = $md_cppflags") | \
2823: cat - Makefile.tem | sed -e "s|^MD_FILE[ ]*=.*|MD_FILE = md|" > Makefile.xx
2824: rm -f Makefile.tem
2825: mv Makefile.xx Makefile.tem
2826: fi
2827:
1.1.1.8 root 2828: # If we have gas in the build tree, make a link to it.
2829: if [ -f ../gas/Makefile ]; then
2830: rm -f as; $symbolic_link ../gas/as.new as 2>/dev/null
2831: fi
2832:
2833: # If we have ld in the build tree, make a link to it.
2834: if [ -f ../ld/Makefile ]; then
2835: if [ x$use_collect2 = x ]; then
2836: rm -f ld; $symbolic_link ../ld/ld.new ld 2>/dev/null
2837: else
2838: rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null
2839: fi
2840: fi
2841:
2842: # If using -program-transform-name, override the installation names.
2843: if [ "x${program_transform_set}" = "xyes" ] ; then
2844: sed -e "s/^program_transform_name[ ]*=.*$/program_transform_name = $program_transform_name/" \
2845: -e "s/^program_transform_cross_name[ ]*=.*$/program_transform_cross_name = $program_transform_name/" \
2846: Makefile.tem > Makefile.xx
2847: rm -f Makefile.tem
2848: mv Makefile.xx Makefile.tem
2849: fi
2850:
1.1.1.7 root 2851: # Conditionalize the makefile for this target machine.
2852: if [ -f ${mainsrcdir}/config/${tmake_file} ]
2853: then
2854: rm -f Makefile.xx
2855: sed -e "/####target/ r ${mainsrcdir}/config/${tmake_file}" Makefile.tem > Makefile.xx
2856: echo "Merged ${tmake_file}."
2857: rm -f Makefile.tem
2858: mv Makefile.xx Makefile.tem
2859: dep_tmake_file=${tmake_file}
2860: else
2861: # Say in the makefile that there is no tmake_file,
2862: # by using a name which (when interpreted relative to $srcdir/config)
2863: # will duplicate another dependency: $srcdir/Makefile.in.
2864: dep_tmake_file=../Makefile.in
2865: fi
2866:
2867: # If this is the top level Makefile, add the language fragments.
2868: # Languages are added via two mechanisms. Some information must be
2869: # recorded in makefile variables, these are defined in config-lang.in.
2870: # We accumulate them and plug them into the main Makefile.
2871: # The other mechanism is a set of hooks for each of the main targets
2872: # like `clean', `install', etc.
2873: if [ $subdir = . ]
2874: then
2875: # These (without "all_") are set in each config-lang.in.
2876: # `language' must be a single word so is spelled singularly.
2877: all_languages=
2878: all_compilers=
2879: all_stagestuff=
2880: all_diff_excludes=
2881: # List of language makefile fragments.
2882: all_lang_makefiles=
2883:
2884: rm -f Makefile.xx Makefile.ll
2885: touch Makefile.ll
2886: for s in .. $subdirs
2887: do
2888: if [ $s != ".." ]
2889: then
2890: language=
2891: compilers=
2892: stagestuff=
2893: diff_excludes=
2894: . ${mainsrcdir}/$s/config-lang.in
2895: if [ "x$language" = x ]
2896: then
2897: echo "${mainsrcdir}/$s/config-lang.in doesn't set \$language." 1>&2
2898: exit 1
2899: fi
2900: all_lang_makefiles="$all_lang_makefiles ${mainsrcdir}/$s/Make-lang.in ${mainsrcdir}/$s/Makefile.in"
2901: all_languages="$all_languages $language"
2902: all_compilers="$all_compilers $compilers"
2903: all_stagestuff="$all_stagestuff $stagestuff"
2904: all_diff_excludes="$all_diff_excludes $diff_excludes"
1.1.1.4 root 2905:
1.1.1.7 root 2906: cat ${mainsrcdir}/$s/Make-lang.in >> Makefile.ll
2907: fi
2908: done
2909: sed -e "/####language fragments/ r Makefile.ll" Makefile.tem > Makefile.xx
2910: rm -f Makefile.tem
2911: mv Makefile.xx Makefile.tem
2912: sed -e "s|^SUBDIRS[ ]*=.*$|SUBDIRS = $subdirs|" \
2913: -e "s|^LANGUAGES[ ]*=[ ]*\(.*\)$|LANGUAGES = \1 $all_languages|" \
2914: -e "s|^COMPILERS[ ]*=[ ]*\(.*\)$|COMPILERS = \1 $all_compilers|" \
2915: -e "s|^LANG_MAKEFILES[ ]*=.*$|LANG_MAKEFILES = $all_lang_makefiles|" \
2916: -e "s|^LANG_STAGESTUFF[ ]*=.*$|LANG_STAGESTUFF = $all_stagestuff|" \
2917: -e "s|^LANG_DIFF_EXCLUDES[ ]*=.*$|LANG_DIFF_EXCLUDES = $all_diff_excludes|" \
2918: Makefile.tem > Makefile.xx
2919: rm -f Makefile.tem
2920: mv Makefile.xx Makefile.tem
2921:
2922: # Since we can't use `::' targets, we link each language in
2923: # with a set of hooks, reached indirectly via lang.${target}.
2924:
2925: target_list="all.build all.cross start.encap rest.encap \
2926: info dvi \
2927: install-normal install-common install-info install-man \
2928: uninstall distdir \
1.1.1.8 root 2929: mostlyclean clean distclean extraclean maintainer-clean \
1.1.1.7 root 2930: stage1 stage2 stage3 stage4"
2931: rm -f Makefile.ll
2932: for t in $target_list
2933: do
2934: x=
2935: for l in .. $all_languages
2936: do
2937: if [ $l != ".." ]; then
2938: x="$x $l.$t"
2939: fi
2940: done
2941: echo "lang.$t: $x" >> Makefile.ll
2942: done
2943: sed -e "/####language hooks/ r Makefile.ll" Makefile.tem > Makefile.xx
2944: rm -f Makefile.tem
2945: mv Makefile.xx Makefile.tem
2946: rm -f Makefile.ll
2947:
2948: # If the host doesn't support symlinks, modify CC in
2949: # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
2950: # Otherwise, we can use "CC=$(CC)".
2951: rm -f symtest.tem
2952: if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
2953: then
2954: sed -e 's,CC=set-by-configure,CC=$(CC),' \
2955: Makefile.tem > Makefile.xx
2956: else
2957: sed -e "s,CC=set-by-configure,CC=\`case '$(CC)' in stage*) echo '$(CC)' | sed -e 's|stage|../stage|g';; *) echo '$(CC)';; esac\`," \
2958: Makefile.tem > Makefile.xx
2959: fi
2960: rm -f Makefile.tem
2961: mv Makefile.xx Makefile.tem
2962: rm -f symtest.tem
2963:
2964: if [ "x$all_languages" != x ]
2965: then
2966: # Missing space after `Merged' is intentional.
2967: echo "Merged$all_languages fragment(s)."
2968: fi
2969:
2970: # Otherwise, this is a language subdirectory. If the host supports
2971: # symlinks, point stage[123] at ../stage[123] so bootstrapping and the
2972: # installation procedure can still use CC="stage1/xgcc -Bstage1/".
2973: # If the host doesn't support symlinks, FLAGS_TO_PASS has been
2974: # modified to solve the problem there.
2975: else
2976: for t in stage1 stage2 stage3 stage4 include
2977: do
2978: rm -f $t
2979: $symbolic_link ../$t $t 2>/dev/null
2980: done
2981: fi
1.1.1.8 root 2982:
2983: out_object_file=`basename $out_file .c`.o
1.1.1.7 root 2984:
2985: # Remove all formfeeds, since some Makes get confused by them.
2986: # Also arrange to give the variables `target', `host_xmake_file',
2987: # `tmake_file', `prefix', `local_prefix', `exec_prefix', `FIXINCLUDES'
1.1.1.8 root 2988: # `out_file', `out_object', `md_file', `lang_specs_files',
2989: # `lang_options_files', and `INSTALL_HEADERS_DIR' values in the
2990: # Makefile from the values they have in this script.
1.1 root 2991: rm -f Makefile.xx
1.1.1.8 root 2992: rm -f aux-output.c aux-output.o md
2993: # Create an empty Makefile.sed first, to work around a Nextstep 3.3 bug.
2994: echo 's|||' > Makefile.sed
2995: rm Makefile.sed
2996: echo 's|||' > Makefile.sed
2997: echo "s|^target=.*$|target=${target}|" >> Makefile.sed
2998: echo "s|^xmake_file=.*$|xmake_file=${dep_host_xmake_file}|" >> Makefile.sed
2999: echo "s|^tmake_file=.*$|tmake_file=${dep_tmake_file}|" >> Makefile.sed
3000: echo "s|^version=.*$|version=${version}|" >> Makefile.sed
3001: echo "s|^version=.*$|version=${version}|" >> Makefile.sed
3002: echo "s|^out_file=.*$|out_file=${srcdir}/config/${out_file}|" >> Makefile.sed
3003: echo "s|^out_object_file=.*$|out_object_file=${out_object_file}|" >> Makefile.sed
3004: echo "s|^md_file=.*$|md_file=${md_file}|" >> Makefile.sed
3005: echo "s|^tm_file=.*$|tm_file=${srcdir}/config/${tm_file}|" >> Makefile.sed
3006: echo "s|^host_xm_file=.*$|host_xm_file=${srcdir}/config/${host_xm_file}|" >> Makefile.sed
3007: echo "s|^build_xm_file=.*$|build_xm_file=${srcdir}/config/${build_xm_file}|" >> Makefile.sed
3008: echo "s|^lang_specs_files=.*$|lang_specs_files=${lang_specs_files}|" >> Makefile.sed
3009: echo "s|^lang_options_files=.*$|lang_options_files=${lang_options_files}|" >> Makefile.sed
3010: echo "s|^prefix[ ]*=.*|prefix = $prefix|" >> Makefile.sed
3011: echo "s|^gxx_include_dir[ ]*=.*|gxx_include_dir = $gxx_include_dir|" >> Makefile.sed
3012: echo "s|^local_prefix[ ]*=.*|local_prefix = $local_prefix|" >> Makefile.sed
3013: echo "s|^exec_prefix[ ]*=.*|exec_prefix = $exec_prefix|" >> Makefile.sed
3014: echo "s|^FIXINCLUDES[ ]*=.*|FIXINCLUDES = $fixincludes|" >> Makefile.sed
3015: echo "s|^INSTALL_HEADERS_DIR[ ]*=.*$|INSTALL_HEADERS_DIR = ${host_install_headers_dir}|" >> Makefile.sed
3016: sed -f Makefile.sed Makefile.tem > Makefile.xx
3017: rm -f Makefile.tem Makefile.sed
1.1 root 3018: mv Makefile.xx Makefile.tem
1.1.1.7 root 3019:
3020: # Install Makefile for real, after making final changes.
3021: # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
3022: # Also use all.cross instead of all.internal, and add cross-make to Makefile.
3023: if [ x$canon_host = x$canon_target ]
1.1.1.4 root 3024: then
1.1.1.7 root 3025: rm -f Makefile
3026: if [ x$canon_host = x$canon_build ]
3027: then
3028: mv Makefile.tem Makefile
3029: else
3030: # When building gcc with a cross-compiler, we need to fix a
3031: # few things.
3032: echo "build= $build" > Makefile
3033: sed -e "s|objc-runtime$||" \
3034: -e "/####build/ r ${mainsrcdir}/build-make" Makefile.tem >> Makefile
3035: rm -f Makefile.tem Makefile.xx
3036: fi
1.1.1.4 root 3037: else
1.1.1.7 root 3038: rm -f Makefile
3039: echo "CROSS=-DCROSS_COMPILE" > Makefile
3040: sed -e "/####cross/ r ${mainsrcdir}/cross-make" Makefile.tem >> Makefile
1.1.1.4 root 3041: rm -f Makefile.tem Makefile.xx
3042: fi
1.1.1.8 root 3043:
1.1.1.7 root 3044: echo "Created \`$subdir/Makefile'."
1.1.1.8 root 3045:
1.1.1.7 root 3046: # If a subdirectory has a configure script, run it.
3047: if [ x$subdir != x. ]
3048: then
3049: if [ -f $srcdir/configure ]
3050: then
3051: ${CONFIG_SHELL-sh} $srcdir/configure $arguments --srcdir=$srcdir
3052: fi
3053: fi
1.1 root 3054:
1.1.1.7 root 3055: cd $STARTDIR
3056: done # end of current-dir SUBDIRS loop
3057:
3058: srcdir=$savesrcdir
1.1 root 3059:
3060: # Describe the chosen configuration in config.status.
3061: # Make that file a shellscript which will reestablish the same configuration.
3062: echo "#!/bin/sh
3063: # GCC was configured as follows:
1.1.1.6 root 3064: ${srcdir}/configure" $arguments > config.new
3065: echo echo host=$canon_host target=$canon_target build=$canon_build >> config.new
3066: chmod a+x config.new
3067: if [ -f config.bak ] && cmp config.bak config.new >/dev/null 2>/dev/null;
3068: then
3069: mv -f config.bak config.status
3070: rm -f config.new
3071: else
3072: mv -f config.new config.status
3073: rm -f config.bak
3074: fi
1.1 root 3075:
1.1.1.7 root 3076: str2=
3077: str3=
3078: str4=.
3079:
1.1.1.4 root 3080: if [ x$canon_host = x$canon_target ]
1.1 root 3081: then
1.1.1.7 root 3082: str1="native "
1.1 root 3083: else
1.1.1.7 root 3084: str1="cross-"
3085: str2=" from $canon_host"
3086: fi
3087:
3088: if [ x$canon_host != x$canon_build ]
3089: then
3090: str3=" on a $canon_build system"
3091: fi
3092:
3093: if [ "x$str2" != x ] || [ "x$str3" != x ]
3094: then
3095: str4=
3096: fi
3097:
3098: echo "Links are now set up to build a ${str1}compiler for ${canon_target}$str4" 1>&2
3099:
3100: if [ "x$str2" != x ] || [ "x$str3" != x ]
3101: then
3102: echo " ${str2}${str3}." 1>&2
1.1 root 3103: fi
3104:
3105: exit 0
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.