]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/configure
pt.c (tsubst_copy): Hush warning.
[thirdparty/gcc.git] / gcc / configure
CommitLineData
861bb6c1
JL
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4e88d51b 4# Generated automatically using autoconf version 2.12.1
861bb6c1
JL
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-gnu-ld arrange to work with GNU ld."
16ac_help="$ac_help
17 --with-gnu-as arrange to work with GNU as."
18ac_help="$ac_help
19 --with-stabs arrange to use stabs instead of host debug format."
20ac_help="$ac_help
21 --with-elf arrange to use ELF instead of host debug format."
22ac_help="$ac_help
23 --with-local-prefix=DIR specifies directory to put local include."
24ac_help="$ac_help
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
a494747c
MM
27ac_help="$ac_help
28 --enable-checking enable expensive run-time checks."
861bb6c1 29ac_help="$ac_help
0b9d02c6
JL
30 --enable-c-cpplib Use cpplib for C and C++."
31ac_help="$ac_help
32 --enable-c-mbchar Enable multibyte characters for C and C++."
9101297d
DL
33ac_help="$ac_help
34 --enable-haifa Use the experimental scheduler.
35 --disable-haifa Don't use the experimental scheduler for the
36 targets which normally enable it."
4b104d6e 37ac_help="$ac_help
34a4c466 38 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
861bb6c1
JL
39ac_help="$ac_help
40 --enable-threads enable thread usage for target GCC.
41 --enable-threads=LIB use LIB thread package for target GCC."
42
43# Initialize some variables set by options.
44# The variables have the same names as the options, with
45# dashes changed to underlines.
46build=NONE
47cache_file=./config.cache
48exec_prefix=NONE
49host=NONE
50no_create=
51nonopt=NONE
52no_recursion=
53prefix=NONE
54program_prefix=NONE
55program_suffix=NONE
56program_transform_name=s,x,x,
57silent=
58site=
59srcdir=
60target=NONE
61verbose=
62x_includes=NONE
63x_libraries=NONE
64bindir='${exec_prefix}/bin'
65sbindir='${exec_prefix}/sbin'
66libexecdir='${exec_prefix}/libexec'
67datadir='${prefix}/share'
68sysconfdir='${prefix}/etc'
69sharedstatedir='${prefix}/com'
70localstatedir='${prefix}/var'
71libdir='${exec_prefix}/lib'
72includedir='${prefix}/include'
73oldincludedir='/usr/include'
74infodir='${prefix}/info'
75mandir='${prefix}/man'
76
77# Initialize some other variables.
78subdirs=
79MFLAGS= MAKEFLAGS=
4e88d51b 80SHELL=${CONFIG_SHELL-/bin/sh}
861bb6c1
JL
81# Maximum number of lines to put in a shell here document.
82ac_max_here_lines=12
83
84ac_prev=
85for ac_option
86do
87
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
91 ac_prev=
92 continue
93 fi
94
95 case "$ac_option" in
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 *) ac_optarg= ;;
98 esac
99
100 # Accept the important Cygnus configure options, so we can diagnose typos.
101
102 case "$ac_option" in
103
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 ac_prev=bindir ;;
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
108
109 -build | --build | --buil | --bui | --bu)
110 ac_prev=build ;;
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
113
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
120
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 ac_prev=datadir ;;
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 | --da=*)
125 datadir="$ac_optarg" ;;
126
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 fi
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
135
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 fi
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 case "$ac_option" in
144 *=*) ;;
145 *) ac_optarg=yes ;;
146 esac
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
148
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
157
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
160 with_gas=yes ;;
161
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
165 cat << EOF
166Usage: configure [options] [host]
167Options: [defaults in brackets after descriptions]
168Configuration:
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
176 [$ac_default_prefix]
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 [same as prefix]
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
183 [PREFIX/share]
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 [PREFIX/com]
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
198EOF
199 cat << EOF
200Host type:
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
211EOF
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
214 fi
215 exit 0 ;;
216
217 -host | --host | --hos | --ho)
218 ac_prev=host ;;
219 -host=* | --host=* | --hos=* | --ho=*)
220 host="$ac_optarg" ;;
221
222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
228
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 ac_prev=infodir ;;
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
233
234 -libdir | --libdir | --libdi | --libd)
235 ac_prev=libdir ;;
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
238
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
245
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
254
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 ac_prev=mandir ;;
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
259
260 -nfp | --nfp | --nf)
261 # Obsolete; use --without-fp.
262 with_fp=no ;;
263
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 | --no-cr | --no-c)
266 no_create=yes ;;
267
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270 no_recursion=yes ;;
271
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
280
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 ac_prev=prefix ;;
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
285
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
292
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
299
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
316
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
319 silent=yes ;;
320
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 ac_prev=sbindir ;;
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 | --sbi=* | --sb=*)
325 sbindir="$ac_optarg" ;;
326
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
330 | --sha | --sh)
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 | --sha=* | --sh=*)
336 sharedstatedir="$ac_optarg" ;;
337
338 -site | --site | --sit)
339 ac_prev=site ;;
340 -site=* | --site=* | --sit=*)
341 site="$ac_optarg" ;;
342
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 ac_prev=srcdir ;;
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
347
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
354
355 -target | --target | --targe | --targ | --tar | --ta | --t)
356 ac_prev=target ;;
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
359
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 verbose=yes ;;
362
363 -version | --version | --versio | --versi | --vers)
4e88d51b 364 echo "configure generated by autoconf version 2.12.1"
861bb6c1
JL
365 exit 0 ;;
366
367 -with-* | --with-*)
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 fi
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 case "$ac_option" in
375 *=*) ;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "with_${ac_package}='$ac_optarg'" ;;
379
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 fi
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
388
389 --x)
390 # Obsolete; use --with-x.
391 with_x=yes ;;
392
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
399
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
406
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 ;;
409
410 *)
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 fi
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 fi
417 nonopt="$ac_option"
418 ;;
419
420 esac
421done
422
423if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425fi
426
427trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428
429# File descriptor usage:
430# 0 standard input
431# 1 file creation
432# 2 errors and warnings
433# 3 some systems may open it to /dev/tty
434# 4 used on the Kubota Titan
435# 6 checking for... messages and results
436# 5 compiler messages saved in config.log
437if test "$silent" = yes; then
438 exec 6>/dev/null
439else
440 exec 6>&1
441fi
442exec 5>./config.log
443
444echo "\
445This file contains any messages produced by compilers while
446running configure, to aid debugging if configure makes a mistake.
447" 1>&5
448
449# Strip out --no-create and --no-recursion so they do not pile up.
450# Also quote any args containing shell metacharacters.
451ac_configure_args=
452for ac_arg
453do
454 case "$ac_arg" in
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 esac
463done
464
465# NLS nuisances.
466# Only set these to C if already set. These must not be set unconditionally
467# because not all systems understand e.g. LANG=C (notably SCO).
468# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469# Non-C LC_CTYPE values break the ctype check.
470if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474
475# confdefs.h avoids OS command line length limits that DEFS can exceed.
476rm -rf conftest* confdefs.h
477# AIX cpp loses on an empty file, so make sure it contains at least a newline.
478echo > confdefs.h
479
480# A filename unique to this package, relative to the directory that
481# configure is in, which we can look for to find out if srcdir is correct.
482ac_unique_file=tree.c
483
484# Find the source files, if location was not specified.
485if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
488 ac_prog=$0
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 srcdir=$ac_confdir
492 if test ! -r $srcdir/$ac_unique_file; then
493 srcdir=..
494 fi
495else
496 ac_srcdir_defaulted=no
497fi
498if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 else
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 fi
504fi
505srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506
507# Prefer explicitly selected file to automatically selected ones.
508if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 else
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 fi
514fi
515for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
518 . "$ac_site_file"
519 fi
520done
521
522if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
524 . $cache_file
525else
526 echo "creating cache $cache_file"
527 > $cache_file
528fi
529
530ac_ext=c
531# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532ac_cpp='$CPP $CPPFLAGS'
533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535cross_compiling=$ac_cv_prog_cc_cross
536
537if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='
541' ac_t=' '
542 else
543 ac_n=-n ac_c= ac_t=
544 fi
545else
546 ac_n= ac_c='\c' ac_t=
547fi
548
549
550
551
861bb6c1
JL
552remove=rm
553hard_link=ln
554symbolic_link='ln -s'
555copy=cp
556
557# Check for additional parameters
558
559# With GNU ld
560# Check whether --with-gnu-ld or --without-gnu-ld was given.
561if test "${with_gnu_ld+set}" = set; then
562 withval="$with_gnu_ld"
df6faf79 563 gnu_ld_flag="$with_gnu_ld"
861bb6c1 564else
df6faf79 565 gnu_ld_flag=no
861bb6c1
JL
566fi
567
568
569# With GNU as
570# Check whether --with-gnu-as or --without-gnu-as was given.
571if test "${with_gnu_as+set}" = set; then
572 withval="$with_gnu_as"
df6faf79 573 gas_flag="$with_gnu_as"
861bb6c1 574else
df6faf79 575 gas_flag=no
861bb6c1
JL
576fi
577
578
579# With stabs
580# Check whether --with-stabs or --without-stabs was given.
581if test "${with_stabs+set}" = set; then
582 withval="$with_stabs"
535b86ce 583 stabs="$with_stabs"
861bb6c1
JL
584else
585 stabs=no
586fi
587
588
589# With ELF
590# Check whether --with-elf or --without-elf was given.
591if test "${with_elf+set}" = set; then
592 withval="$with_elf"
535b86ce 593 elf="$with_elf"
861bb6c1
JL
594else
595 elf=no
596fi
597
598
599# Specify the local prefix
4e88d51b 600local_prefix=
861bb6c1
JL
601# Check whether --with-local-prefix or --without-local-prefix was given.
602if test "${with_local_prefix+set}" = set; then
603 withval="$with_local_prefix"
4e88d51b
JM
604 case "${withval}" in
605yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
606no) ;;
607*) local_prefix=$with_local_prefix ;;
608esac
861bb6c1
JL
609fi
610
611
612# Default local prefix if it is empty
613if [ x$local_prefix = x ]; then
614 local_prefix=/usr/local
615fi
616
4e88d51b 617gxx_include_dir=
861bb6c1
JL
618# Specify the g++ header file directory
619# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
620if test "${with_gxx_include_dir+set}" = set; then
621 withval="$with_gxx_include_dir"
4e88d51b
JM
622 case "${withval}" in
623yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
624no) ;;
625*) gxx_include_dir=$with_gxx_include_dir ;;
626esac
861bb6c1
JL
627fi
628
629
4e88d51b
JM
630if test x${gxx_include_dir} = x; then
631 if test x${enable_version_specific_runtime_libs} = xyes; then
632 gxx_include_dir='${libsubdir}/include/g++'
633 else
634 gxx_include_dir='${prefix}/include/g++'
635 fi
636fi
637
a494747c
MM
638# Enable expensive internal checks
639# Check whether --enable-checking or --disable-checking was given.
640if test "${enable_checking+set}" = set; then
641 enableval="$enable_checking"
4e88d51b
JM
642 case "${enableval}" in
643yes) cat >> confdefs.h <<\EOF
a494747c
MM
644#define ENABLE_CHECKING 1
645EOF
4e88d51b
JM
646 ;;
647no) ;;
648*) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
649esac
a494747c
MM
650fi
651
652
861bb6c1 653# Enable use of cpplib for C.
e061d1ce 654cpp_main=cccp
861bb6c1
JL
655# Check whether --enable-c-cpplib or --disable-c-cpplib was given.
656if test "${enable_c_cpplib+set}" = set; then
657 enableval="$enable_c_cpplib"
658 if [ x$enable_c_cpplib != xno ]; then
659 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
c8724862
DB
660 extra_c_objs="${extra_c_objs} prefix.o"
661 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
861bb6c1 662 extra_c_flags=-DUSE_CPPLIB=1
e061d1ce 663 cpp_main=cppmain
861bb6c1
JL
664fi
665fi
666
9101297d 667
0b9d02c6
JL
668# Enable Multibyte Characters for C/C++
669# Check whether --enable-c-mbchar or --disable-c-mbchar was given.
670if test "${enable_c_mbchar+set}" = set; then
671 enableval="$enable_c_mbchar"
672 if [ x$enable_c_mbchar != xno ]; then
673 extra_c_flags=-DMULTIBYTE_CHARS=1
674fi
675fi
676
677
9101297d
DL
678# Enable Haifa scheduler.
679# Check whether --enable-haifa or --disable-haifa was given.
680if test "${enable_haifa+set}" = set; then
681 enableval="$enable_haifa"
682 :
683fi
684
4b104d6e
JL
685# Fast fixincludes
686#
687# This is a work in progress...
34a4c466
JL
688# Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
689if test "${with_fast_fixincludes+set}" = set; then
690 withval="$with_fast_fixincludes"
691 fast_fixinc="$with_fast_fixincludes"
692else
4b104d6e
JL
693 fast_fixinc=no
694fi
695
861bb6c1
JL
696
697# Enable threads
698# Pass with no value to take the default
699# Pass with a value to specify a thread package
700# Check whether --enable-threads or --disable-threads was given.
701if test "${enable_threads+set}" = set; then
702 enableval="$enable_threads"
703 if [ x$enable_threads = xno ]; then
704 enable_threads=''
705fi
706else
707 enable_threads=''
708fi
709
710
e445171e 711enable_threads_flag=$enable_threads
861bb6c1 712# Check if a valid thread package
e445171e 713case x${enable_threads_flag} in
861bb6c1
JL
714 x | xno)
715 # No threads
a851212a 716 target_thread_file='single'
861bb6c1
JL
717 ;;
718 xyes)
719 # default
a851212a 720 target_thread_file=''
861bb6c1
JL
721 ;;
722 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
7cc34889 723 xsolaris | xwin32 | xdce | xvxworks)
e445171e 724 target_thread_file=$enable_threads_flag
861bb6c1
JL
725 ;;
726 *)
727 echo "$enable_threads is an unknown thread package" 1>&2
728 exit 1
729 ;;
730esac
731
732# Determine the host, build, and target systems
733ac_aux_dir=
734for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
735 if test -f $ac_dir/install-sh; then
736 ac_aux_dir=$ac_dir
737 ac_install_sh="$ac_aux_dir/install-sh -c"
738 break
739 elif test -f $ac_dir/install.sh; then
740 ac_aux_dir=$ac_dir
741 ac_install_sh="$ac_aux_dir/install.sh -c"
742 break
743 fi
744done
745if test -z "$ac_aux_dir"; then
746 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
747fi
748ac_config_guess=$ac_aux_dir/config.guess
749ac_config_sub=$ac_aux_dir/config.sub
750ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
751
752
753# Do some error checking and defaulting for the host and target type.
754# The inputs are:
755# configure --host=HOST --target=TARGET --build=BUILD NONOPT
756#
757# The rules are:
758# 1. You are not allowed to specify --host, --target, and nonopt at the
759# same time.
760# 2. Host defaults to nonopt.
761# 3. If nonopt is not specified, then host defaults to the current host,
762# as determined by config.guess.
763# 4. Target and build default to nonopt.
764# 5. If nonopt is not specified, then target and build default to host.
765
766# The aliases save the names the user supplied, while $host etc.
767# will get canonicalized.
768case $host---$target---$nonopt in
769NONE---*---* | *---NONE---* | *---*---NONE) ;;
770*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
771esac
772
773
774# Make sure we can run config.sub.
4e88d51b 775if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
861bb6c1
JL
776else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
777fi
778
779echo $ac_n "checking host system type""... $ac_c" 1>&6
4e88d51b 780echo "configure:781: checking host system type" >&5
861bb6c1
JL
781
782host_alias=$host
783case "$host_alias" in
784NONE)
785 case $nonopt in
786 NONE)
4e88d51b 787 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
861bb6c1
JL
788 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
789 fi ;;
790 *) host_alias=$nonopt ;;
791 esac ;;
792esac
793
4e88d51b 794host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
861bb6c1
JL
795host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
796host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
797host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
798echo "$ac_t""$host" 1>&6
799
800echo $ac_n "checking target system type""... $ac_c" 1>&6
4e88d51b 801echo "configure:802: checking target system type" >&5
861bb6c1
JL
802
803target_alias=$target
804case "$target_alias" in
805NONE)
806 case $nonopt in
807 NONE) target_alias=$host_alias ;;
808 *) target_alias=$nonopt ;;
809 esac ;;
810esac
811
4e88d51b 812target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
861bb6c1
JL
813target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
814target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
815target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
816echo "$ac_t""$target" 1>&6
817
818echo $ac_n "checking build system type""... $ac_c" 1>&6
4e88d51b 819echo "configure:820: checking build system type" >&5
861bb6c1
JL
820
821build_alias=$build
822case "$build_alias" in
823NONE)
824 case $nonopt in
825 NONE) build_alias=$host_alias ;;
826 *) build_alias=$nonopt ;;
827 esac ;;
828esac
829
4e88d51b 830build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
861bb6c1
JL
831build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
832build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
833build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
834echo "$ac_t""$build" 1>&6
835
836test "$host_alias" != "$target_alias" &&
837 test "$program_prefix$program_suffix$program_transform_name" = \
838 NONENONEs,x,x, &&
839 program_prefix=${target_alias}-
840
841
e9a25f70
JL
842# Find the native compiler
843# Extract the first word of "gcc", so it can be a program name with args.
844set dummy gcc; ac_word=$2
845echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4e88d51b 846echo "configure:847: checking for $ac_word" >&5
e9a25f70
JL
847if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
849else
850 if test -n "$CC"; then
851 ac_cv_prog_CC="$CC" # Let the user override the test.
852else
853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
854 for ac_dir in $PATH; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_CC="gcc"
858 break
859 fi
860 done
861 IFS="$ac_save_ifs"
862fi
863fi
864CC="$ac_cv_prog_CC"
865if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
867else
868 echo "$ac_t""no" 1>&6
869fi
870
871if test -z "$CC"; then
872 # Extract the first word of "cc", so it can be a program name with args.
873set dummy cc; ac_word=$2
874echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4e88d51b 875echo "configure:876: checking for $ac_word" >&5
e9a25f70
JL
876if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
878else
879 if test -n "$CC"; then
880 ac_cv_prog_CC="$CC" # Let the user override the test.
881else
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883 ac_prog_rejected=no
884 for ac_dir in $PATH; do
885 test -z "$ac_dir" && ac_dir=.
886 if test -f $ac_dir/$ac_word; then
887 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
888 ac_prog_rejected=yes
889 continue
890 fi
891 ac_cv_prog_CC="cc"
892 break
893 fi
894 done
895 IFS="$ac_save_ifs"
896if test $ac_prog_rejected = yes; then
897 # We found a bogon in the path, so make sure we never use it.
898 set dummy $ac_cv_prog_CC
899 shift
900 if test $# -gt 0; then
901 # We chose a different compiler from the bogus one.
902 # However, it has the same basename, so the bogon will be chosen
903 # first if we set CC to just the basename; use the full file name.
904 shift
905 set dummy "$ac_dir/$ac_word" "$@"
906 shift
907 ac_cv_prog_CC="$@"
908 fi
909fi
910fi
911fi
912CC="$ac_cv_prog_CC"
913if test -n "$CC"; then
914 echo "$ac_t""$CC" 1>&6
915else
916 echo "$ac_t""no" 1>&6
917fi
918
919 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
920fi
921
922echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4e88d51b 923echo "configure:924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
e9a25f70
JL
924
925ac_ext=c
926# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
927ac_cpp='$CPP $CPPFLAGS'
928ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
929ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
930cross_compiling=$ac_cv_prog_cc_cross
931
932cat > conftest.$ac_ext <<EOF
4e88d51b 933#line 934 "configure"
e9a25f70
JL
934#include "confdefs.h"
935main(){return(0);}
936EOF
4e88d51b 937if { (eval echo configure:938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
e9a25f70
JL
938 ac_cv_prog_cc_works=yes
939 # If we can't run a trivial program, we are probably using a cross compiler.
940 if (./conftest; exit) 2>/dev/null; then
941 ac_cv_prog_cc_cross=no
942 else
943 ac_cv_prog_cc_cross=yes
944 fi
945else
946 echo "configure: failed program was:" >&5
947 cat conftest.$ac_ext >&5
948 ac_cv_prog_cc_works=no
949fi
950rm -fr conftest*
951
952echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
953if test $ac_cv_prog_cc_works = no; then
954 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
955fi
956echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4e88d51b 957echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
e9a25f70
JL
958echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
959cross_compiling=$ac_cv_prog_cc_cross
960
961echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
4e88d51b 962echo "configure:963: checking whether we are using GNU C" >&5
e9a25f70
JL
963if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
965else
966 cat > conftest.c <<EOF
967#ifdef __GNUC__
968 yes;
969#endif
970EOF
4e88d51b 971if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
e9a25f70
JL
972 ac_cv_prog_gcc=yes
973else
974 ac_cv_prog_gcc=no
975fi
976fi
977
978echo "$ac_t""$ac_cv_prog_gcc" 1>&6
979
980if test $ac_cv_prog_gcc = yes; then
981 GCC=yes
982 ac_test_CFLAGS="${CFLAGS+set}"
983 ac_save_CFLAGS="$CFLAGS"
984 CFLAGS=
985 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
4e88d51b 986echo "configure:987: checking whether ${CC-cc} accepts -g" >&5
e9a25f70
JL
987if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989else
990 echo 'void f(){}' > conftest.c
991if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
992 ac_cv_prog_cc_g=yes
993else
994 ac_cv_prog_cc_g=no
995fi
996rm -f conftest*
997
998fi
999
1000echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1001 if test "$ac_test_CFLAGS" = set; then
1002 CFLAGS="$ac_save_CFLAGS"
1003 elif test $ac_cv_prog_cc_g = yes; then
1004 CFLAGS="-g -O2"
1005 else
1006 CFLAGS="-O2"
1007 fi
1008else
1009 GCC=
1010 test "${CFLAGS+set}" = set || CFLAGS="-g"
1011fi
1012
1013echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4e88d51b 1014echo "configure:1015: checking whether ${MAKE-make} sets \${MAKE}" >&5
e9a25f70
JL
1015set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1016if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018else
1019 cat > conftestmake <<\EOF
1020all:
1021 @echo 'ac_maketemp="${MAKE}"'
1022EOF
1023# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1024eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1025if test -n "$ac_maketemp"; then
1026 eval ac_cv_prog_make_${ac_make}_set=yes
1027else
1028 eval ac_cv_prog_make_${ac_make}_set=no
1029fi
1030rm -f conftestmake
1031fi
1032if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1033 echo "$ac_t""yes" 1>&6
1034 SET_MAKE=
1035else
1036 echo "$ac_t""no" 1>&6
1037 SET_MAKE="MAKE=${MAKE-make}"
1038fi
1039
1040
861bb6c1
JL
1041# Find some useful tools
1042for ac_prog in mawk gawk nawk awk
1043do
1044# Extract the first word of "$ac_prog", so it can be a program name with args.
1045set dummy $ac_prog; ac_word=$2
1046echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4e88d51b 1047echo "configure:1048: checking for $ac_word" >&5
861bb6c1
JL
1048if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1050else
1051 if test -n "$AWK"; then
1052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1053else
1054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1055 for ac_dir in $PATH; do
1056 test -z "$ac_dir" && ac_dir=.
1057 if test -f $ac_dir/$ac_word; then
1058 ac_cv_prog_AWK="$ac_prog"
1059 break
1060 fi
1061 done
1062 IFS="$ac_save_ifs"
1063fi
1064fi
1065AWK="$ac_cv_prog_AWK"
1066if test -n "$AWK"; then
1067 echo "$ac_t""$AWK" 1>&6
1068else
1069 echo "$ac_t""no" 1>&6
1070fi
1071
1072test -n "$AWK" && break
1073done
1074
1075# Extract the first word of "flex", so it can be a program name with args.
1076set dummy flex; ac_word=$2
1077echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4e88d51b 1078echo "configure:1079: checking for $ac_word" >&5
861bb6c1
JL
1079if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1081else
1082 if test -n "$LEX"; then
1083 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1084else
1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1086 for ac_dir in $PATH; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_prog_LEX="flex"
1090 break
1091 fi
1092 done
1093 IFS="$ac_save_ifs"
1094 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1095fi
1096fi
1097LEX="$ac_cv_prog_LEX"
1098if test -n "$LEX"; then
1099 echo "$ac_t""$LEX" 1>&6
1100else
1101 echo "$ac_t""no" 1>&6
1102fi
1103
1104if test -z "$LEXLIB"
1105then
1106 case "$LEX" in
1107 flex*) ac_lib=fl ;;
1108 *) ac_lib=l ;;
1109 esac
1110 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4e88d51b 1111echo "configure:1112: checking for yywrap in -l$ac_lib" >&5
861bb6c1
JL
1112ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115else
1116 ac_save_LIBS="$LIBS"
1117LIBS="-l$ac_lib $LIBS"
1118cat > conftest.$ac_ext <<EOF
4e88d51b 1119#line 1120 "configure"
861bb6c1
JL
1120#include "confdefs.h"
1121/* Override any gcc2 internal prototype to avoid an error. */
1122/* We use char because int might match the return type of a gcc2
1123 builtin and then its argument prototype would still apply. */
1124char yywrap();
1125
1126int main() {
1127yywrap()
1128; return 0; }
1129EOF
4e88d51b 1130if { (eval echo configure:1131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
861bb6c1
JL
1131 rm -rf conftest*
1132 eval "ac_cv_lib_$ac_lib_var=yes"
1133else
1134 echo "configure: failed program was:" >&5
1135 cat conftest.$ac_ext >&5
1136 rm -rf conftest*
1137 eval "ac_cv_lib_$ac_lib_var=no"
1138fi
1139rm -f conftest*
1140LIBS="$ac_save_LIBS"
1141
1142fi
1143if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1144 echo "$ac_t""yes" 1>&6
1145 LEXLIB="-l$ac_lib"
1146else
1147 echo "$ac_t""no" 1>&6
1148fi
1149
1150fi
1151
ac64120e 1152echo $ac_n "checking whether ln works""... $ac_c" 1>&6
4e88d51b 1153echo "configure:1154: checking whether ln works" >&5
ac64120e
JW
1154if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1156else
e566af04
MH
1157 rm -f conftestdata_t
1158echo >conftestdata_f
1159if ln conftestdata_f conftestdata_t 2>/dev/null
ac64120e
JW
1160then
1161 gcc_cv_prog_LN="ln"
1162else
e566af04 1163 if ln -s conftestdata_f conftestdata_t 2>/dev/null
ac64120e
JW
1164 then
1165 gcc_cv_prog_LN="ln -s"
1166 else
1167 gcc_cv_prog_LN=cp
1168 fi
1169fi
e566af04 1170rm -f conftestdata_f conftestdata_t
ac64120e
JW
1171
1172fi
1173LN="$gcc_cv_prog_LN"
1174if test "$gcc_cv_prog_LN" = "ln"; then
1175 echo "$ac_t""yes" 1>&6
1176else
1177 if test "$gcc_cv_prog_LN" = "ln -s"; then
1178 echo "$ac_t""no, using ln -s" 1>&6
1179 else
1180 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1181 fi
1182fi
1183
861bb6c1 1184echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4e88d51b 1185echo "configure:1186: checking whether ln -s works" >&5
ac64120e 1186if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
861bb6c1
JL
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188else
e566af04
MH
1189 rm -f conftestdata_t
1190echo >conftestdata_f
1191if ln -s conftestdata_f conftestdata_t 2>/dev/null
861bb6c1 1192then
ac64120e 1193 gcc_cv_prog_LN_S="ln -s"
861bb6c1 1194else
e566af04 1195 if ln conftestdata_f conftestdata_t 2>/dev/null
ac64120e
JW
1196 then
1197 gcc_cv_prog_LN_S=ln
1198 else
1199 gcc_cv_prog_LN_S=cp
1200 fi
861bb6c1 1201fi
e566af04 1202rm -f conftestdata_f conftestdata_t
ac64120e 1203
861bb6c1 1204fi
ac64120e
JW
1205LN_S="$gcc_cv_prog_LN_S"
1206if test "$gcc_cv_prog_LN_S" = "ln -s"; then
861bb6c1
JL
1207 echo "$ac_t""yes" 1>&6
1208else
ac64120e
JW
1209 if test "$gcc_cv_prog_LN_S" = "ln"; then
1210 echo "$ac_t""no, using ln" 1>&6
1211 else
1212 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1213 fi
861bb6c1
JL
1214fi
1215
dbf78386 1216echo $ac_n "checking for volatile""... $ac_c" 1>&6
4e88d51b 1217echo "configure:1218: checking for volatile" >&5
dbf78386
RH
1218if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1220else
1221 cat > conftest.$ac_ext <<EOF
4e88d51b 1222#line 1223 "configure"
dbf78386
RH
1223#include "confdefs.h"
1224
1225int main() {
1226volatile int foo;
1227; return 0; }
1228EOF
4e88d51b 1229if { (eval echo configure:1230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
dbf78386
RH
1230 rm -rf conftest*
1231 gcc_cv_c_volatile=yes
1232else
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1235 rm -rf conftest*
1236 gcc_cv_c_volatile=no
1237fi
1238rm -f conftest*
1239fi
1240
1241echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1242if test $gcc_cv_c_volatile = yes ; then
1243 cat >> confdefs.h <<\EOF
1244#define HAVE_VOLATILE 1
1245EOF
1246
1247fi
1248
861bb6c1
JL
1249# Extract the first word of "ranlib", so it can be a program name with args.
1250set dummy ranlib; ac_word=$2
1251echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4e88d51b 1252echo "configure:1253: checking for $ac_word" >&5
861bb6c1
JL
1253if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1255else
1256 if test -n "$RANLIB"; then
1257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1258else
1259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1260 for ac_dir in $PATH; do
1261 test -z "$ac_dir" && ac_dir=.
1262 if test -f $ac_dir/$ac_word; then
1263 ac_cv_prog_RANLIB="ranlib"
1264 break
1265 fi
1266 done
1267 IFS="$ac_save_ifs"
1268 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1269fi
1270fi
1271RANLIB="$ac_cv_prog_RANLIB"
1272if test -n "$RANLIB"; then
1273 echo "$ac_t""$RANLIB" 1>&6
1274else
1275 echo "$ac_t""no" 1>&6
1276fi
1277
1278for ac_prog in 'bison -y' byacc
1279do
1280# Extract the first word of "$ac_prog", so it can be a program name with args.
1281set dummy $ac_prog; ac_word=$2
1282echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4e88d51b 1283echo "configure:1284: checking for $ac_word" >&5
861bb6c1
JL
1284if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286else
1287 if test -n "$YACC"; then
1288 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1289else
1290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1291 for ac_dir in $PATH; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_prog_YACC="$ac_prog"
1295 break
1296 fi
1297 done
1298 IFS="$ac_save_ifs"
1299fi
1300fi
1301YACC="$ac_cv_prog_YACC"
1302if test -n "$YACC"; then
1303 echo "$ac_t""$YACC" 1>&6
1304else
1305 echo "$ac_t""no" 1>&6
1306fi
1307
1308test -n "$YACC" && break
1309done
1310test -n "$YACC" || YACC="yacc"
1311
1312# Find a good install program. We prefer a C program (faster),
1313# so one script is as good as another. But avoid the broken or
1314# incompatible versions:
1315# SysV /etc/install, /usr/sbin/install
1316# SunOS /usr/etc/install
1317# IRIX /sbin/install
1318# AIX /bin/install
1319# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1320# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1321# ./install, which can be erroneously created by make from ./install.sh.
1322echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4e88d51b 1323echo "configure:1324: checking for a BSD compatible install" >&5
861bb6c1
JL
1324if test -z "$INSTALL"; then
1325if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327else
1328 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1329 for ac_dir in $PATH; do
1330 # Account for people who put trailing slashes in PATH elements.
1331 case "$ac_dir/" in
1332 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1333 *)
1334 # OSF1 and SCO ODT 3.0 have their own names for install.
76143254 1335 for ac_prog in ginstall scoinst install; do
861bb6c1
JL
1336 if test -f $ac_dir/$ac_prog; then
1337 if test $ac_prog = install &&
1338 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1339 # AIX install. It has an incompatible calling convention.
1340 # OSF/1 installbsd also uses dspmsg, but is usable.
1341 :
1342 else
1343 ac_cv_path_install="$ac_dir/$ac_prog -c"
1344 break 2
1345 fi
1346 fi
1347 done
1348 ;;
1349 esac
1350 done
1351 IFS="$ac_save_IFS"
1352
1353fi
1354 if test "${ac_cv_path_install+set}" = set; then
1355 INSTALL="$ac_cv_path_install"
1356 else
1357 # As a last resort, use the slow shell script. We don't cache a
1358 # path for INSTALL within a source directory, because that will
1359 # break other packages using the cache if that directory is
1360 # removed, or if the path is relative.
1361 INSTALL="$ac_install_sh"
1362 fi
1363fi
1364echo "$ac_t""$INSTALL" 1>&6
1365
1366# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1367# It thinks the first close brace ends the variable substitution.
1368test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1369
1370test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1371
1372
861bb6c1 1373echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4e88d51b 1374echo "configure:1375: checking how to run the C preprocessor" >&5
861bb6c1
JL
1375# On Suns, sometimes $CPP names a directory.
1376if test -n "$CPP" && test -d "$CPP"; then
1377 CPP=
1378fi
1379if test -z "$CPP"; then
1380if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1382else
1383 # This must be in double quotes, not single quotes, because CPP may get
1384 # substituted into the Makefile and "${CC-cc}" will confuse make.
1385 CPP="${CC-cc} -E"
1386 # On the NeXT, cc -E runs the code through the compiler's parser,
1387 # not just through cpp.
1388 cat > conftest.$ac_ext <<EOF
4e88d51b 1389#line 1390 "configure"
861bb6c1
JL
1390#include "confdefs.h"
1391#include <assert.h>
1392Syntax Error
1393EOF
1394ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4e88d51b 1395{ (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861bb6c1
JL
1396ac_err=`grep -v '^ *+' conftest.out`
1397if test -z "$ac_err"; then
1398 :
1399else
1400 echo "$ac_err" >&5
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 rm -rf conftest*
1404 CPP="${CC-cc} -E -traditional-cpp"
1405 cat > conftest.$ac_ext <<EOF
4e88d51b 1406#line 1407 "configure"
861bb6c1
JL
1407#include "confdefs.h"
1408#include <assert.h>
1409Syntax Error
1410EOF
1411ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4e88d51b 1412{ (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861bb6c1
JL
1413ac_err=`grep -v '^ *+' conftest.out`
1414if test -z "$ac_err"; then
1415 :
1416else
1417 echo "$ac_err" >&5
1418 echo "configure: failed program was:" >&5
1419 cat conftest.$ac_ext >&5
1420 rm -rf conftest*
1421 CPP=/lib/cpp
1422fi
1423rm -f conftest*
1424fi
1425rm -f conftest*
1426 ac_cv_prog_CPP="$CPP"
1427fi
1428 CPP="$ac_cv_prog_CPP"
1429else
1430 ac_cv_prog_CPP="$CPP"
1431fi
1432echo "$ac_t""$CPP" 1>&6
1433
956d6950 1434echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4e88d51b 1435echo "configure:1436: checking for ANSI C header files" >&5
956d6950
JL
1436if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1438else
1439 cat > conftest.$ac_ext <<EOF
4e88d51b 1440#line 1441 "configure"
956d6950
JL
1441#include "confdefs.h"
1442#include <stdlib.h>
1443#include <stdarg.h>
1444#include <string.h>
1445#include <float.h>
1446EOF
1447ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4e88d51b 1448{ (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
956d6950
JL
1449ac_err=`grep -v '^ *+' conftest.out`
1450if test -z "$ac_err"; then
1451 rm -rf conftest*
1452 ac_cv_header_stdc=yes
1453else
1454 echo "$ac_err" >&5
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1457 rm -rf conftest*
1458 ac_cv_header_stdc=no
1459fi
1460rm -f conftest*
1461
1462if test $ac_cv_header_stdc = yes; then
1463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1464cat > conftest.$ac_ext <<EOF
4e88d51b 1465#line 1466 "configure"
956d6950
JL
1466#include "confdefs.h"
1467#include <string.h>
1468EOF
1469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1470 egrep "memchr" >/dev/null 2>&1; then
1471 :
1472else
1473 rm -rf conftest*
1474 ac_cv_header_stdc=no
1475fi
1476rm -f conftest*
1477
1478fi
1479
1480if test $ac_cv_header_stdc = yes; then
1481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1482cat > conftest.$ac_ext <<EOF
4e88d51b 1483#line 1484 "configure"
956d6950
JL
1484#include "confdefs.h"
1485#include <stdlib.h>
1486EOF
1487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1488 egrep "free" >/dev/null 2>&1; then
1489 :
1490else
1491 rm -rf conftest*
1492 ac_cv_header_stdc=no
1493fi
1494rm -f conftest*
1495
1496fi
1497
1498if test $ac_cv_header_stdc = yes; then
1499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1500if test "$cross_compiling" = yes; then
1501 :
1502else
1503 cat > conftest.$ac_ext <<EOF
4e88d51b 1504#line 1505 "configure"
956d6950
JL
1505#include "confdefs.h"
1506#include <ctype.h>
1507#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1508#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1510int main () { int i; for (i = 0; i < 256; i++)
1511if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1512exit (0); }
1513
1514EOF
4e88d51b 1515if { (eval echo configure:1516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
956d6950
JL
1516then
1517 :
1518else
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1521 rm -fr conftest*
1522 ac_cv_header_stdc=no
1523fi
1524rm -fr conftest*
1525fi
1526
1527fi
1528fi
1529
1530echo "$ac_t""$ac_cv_header_stdc" 1>&6
1531if test $ac_cv_header_stdc = yes; then
1532 cat >> confdefs.h <<\EOF
1533#define STDC_HEADERS 1
1534EOF
1535
1536fi
1537
1538echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4e88d51b 1539echo "configure:1540: checking whether time.h and sys/time.h may both be included" >&5
956d6950
JL
1540if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1542else
1543 cat > conftest.$ac_ext <<EOF
4e88d51b 1544#line 1545 "configure"
956d6950
JL
1545#include "confdefs.h"
1546#include <sys/types.h>
1547#include <sys/time.h>
1548#include <time.h>
1549int main() {
1550struct tm *tp;
1551; return 0; }
1552EOF
4e88d51b 1553if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
956d6950
JL
1554 rm -rf conftest*
1555 ac_cv_header_time=yes
1556else
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1559 rm -rf conftest*
1560 ac_cv_header_time=no
1561fi
1562rm -f conftest*
1563fi
1564
1565echo "$ac_t""$ac_cv_header_time" 1>&6
1566if test $ac_cv_header_time = yes; then
1567 cat >> confdefs.h <<\EOF
1568#define TIME_WITH_SYS_TIME 1
1569EOF
1570
1571fi
1572
76b4b31e 1573for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h wait.h sys/wait.h
861bb6c1
JL
1574do
1575ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1576echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4e88d51b 1577echo "configure:1578: checking for $ac_hdr" >&5
861bb6c1
JL
1578if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1580else
1581 cat > conftest.$ac_ext <<EOF
4e88d51b 1582#line 1583 "configure"
861bb6c1
JL
1583#include "confdefs.h"
1584#include <$ac_hdr>
1585EOF
956d6950 1586ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4e88d51b 1587{ (eval echo configure:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
956d6950
JL
1588ac_err=`grep -v '^ *+' conftest.out`
1589if test -z "$ac_err"; then
1590 rm -rf conftest*
1591 eval "ac_cv_header_$ac_safe=yes"
1592else
1593 echo "$ac_err" >&5
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1596 rm -rf conftest*
1597 eval "ac_cv_header_$ac_safe=no"
1598fi
1599rm -f conftest*
1600fi
1601if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1602 echo "$ac_t""yes" 1>&6
1603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1604 cat >> confdefs.h <<EOF
1605#define $ac_tr_hdr 1
1606EOF
1607
1608else
1609 echo "$ac_t""no" 1>&6
1610fi
1611done
1612
1613
f24af81b
TT
1614# Check for thread headers.
1615ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1616echo $ac_n "checking for thread.h""... $ac_c" 1>&6
4e88d51b 1617echo "configure:1618: checking for thread.h" >&5
f24af81b
TT
1618if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620else
1621 cat > conftest.$ac_ext <<EOF
4e88d51b 1622#line 1623 "configure"
f24af81b
TT
1623#include "confdefs.h"
1624#include <thread.h>
1625EOF
1626ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4e88d51b 1627{ (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f24af81b
TT
1628ac_err=`grep -v '^ *+' conftest.out`
1629if test -z "$ac_err"; then
1630 rm -rf conftest*
1631 eval "ac_cv_header_$ac_safe=yes"
1632else
1633 echo "$ac_err" >&5
1634 echo "configure: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1636 rm -rf conftest*
1637 eval "ac_cv_header_$ac_safe=no"
1638fi
1639rm -f conftest*
1640fi
1641if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1642 echo "$ac_t""yes" 1>&6
1643 have_thread_h=yes
1644else
1645 echo "$ac_t""no" 1>&6
1646have_thread_h=
1647fi
1648
1649ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1650echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
4e88d51b 1651echo "configure:1652: checking for pthread.h" >&5
f24af81b
TT
1652if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1654else
1655 cat > conftest.$ac_ext <<EOF
4e88d51b 1656#line 1657 "configure"
f24af81b
TT
1657#include "confdefs.h"
1658#include <pthread.h>
1659EOF
1660ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4e88d51b 1661{ (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f24af81b
TT
1662ac_err=`grep -v '^ *+' conftest.out`
1663if test -z "$ac_err"; then
1664 rm -rf conftest*
1665 eval "ac_cv_header_$ac_safe=yes"
1666else
1667 echo "$ac_err" >&5
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1670 rm -rf conftest*
1671 eval "ac_cv_header_$ac_safe=no"
1672fi
1673rm -f conftest*
1674fi
1675if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1676 echo "$ac_t""yes" 1>&6
1677 have_pthread_h=yes
1678else
1679 echo "$ac_t""no" 1>&6
1680have_pthread_h=
1681fi
1682
1683
76844337
RH
1684# See if the system preprocessor understands the ANSI C preprocessor
1685# stringification operator.
1686echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
4e88d51b 1687echo "configure:1688: checking whether cpp understands the stringify operator" >&5
76844337
RH
1688if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690else
1691 cat > conftest.$ac_ext <<EOF
4e88d51b 1692#line 1693 "configure"
76844337
RH
1693#include "confdefs.h"
1694
1695int main() {
1696#define S(x) #x
1697char *test = S(foo);
1698; return 0; }
1699EOF
4e88d51b 1700if { (eval echo configure:1701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
76844337
RH
1701 rm -rf conftest*
1702 gcc_cv_c_have_stringify=yes
1703else
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1706 rm -rf conftest*
1707 gcc_cv_c_have_stringify=no
1708fi
1709rm -f conftest*
1710fi
1711
1712echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1713if test $gcc_cv_c_have_stringify = yes; then
1714 cat >> confdefs.h <<\EOF
1715#define HAVE_CPP_STRINGIFY 1
1716EOF
1717
1718fi
1719
956d6950
JL
1720# Use <inttypes.h> only if it exists,
1721# doesn't clash with <sys/types.h>, and declares intmax_t.
1722echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
4e88d51b 1723echo "configure:1724: checking for inttypes.h" >&5
956d6950
JL
1724if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1726else
1727 cat > conftest.$ac_ext <<EOF
4e88d51b 1728#line 1729 "configure"
956d6950
JL
1729#include "confdefs.h"
1730#include <sys/types.h>
1731#include <inttypes.h>
1732int main() {
1733intmax_t i = -1;
1734; return 0; }
1735EOF
4e88d51b 1736if { (eval echo configure:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
956d6950
JL
1737 rm -rf conftest*
1738 cat >> confdefs.h <<EOF
1739#define HAVE_INTTYPES_H 1
1740EOF
1741
1742 gcc_cv_header_inttypes_h=yes
1743else
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1746 rm -rf conftest*
1747 gcc_cv_header_inttypes_h=no
1748fi
1749rm -f conftest*
1750fi
1751
1752echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1753
76b4b31e 1754for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
8f81384f 1755 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
d3ee8d68 1756 sysconf isascii gettimeofday
956d6950
JL
1757do
1758echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4e88d51b 1759echo "configure:1760: checking for $ac_func" >&5
956d6950
JL
1760if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762else
1763 cat > conftest.$ac_ext <<EOF
4e88d51b 1764#line 1765 "configure"
956d6950
JL
1765#include "confdefs.h"
1766/* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $ac_func(); below. */
1768#include <assert.h>
1769/* Override any gcc2 internal prototype to avoid an error. */
1770/* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1772char $ac_func();
1773
1774int main() {
1775
1776/* The GNU C library defines this for functions which it implements
1777 to always fail with ENOSYS. Some functions are actually named
1778 something starting with __ and the normal name is an alias. */
1779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1780choke me
1781#else
1782$ac_func();
1783#endif
1784
1785; return 0; }
1786EOF
4e88d51b 1787if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
1788 rm -rf conftest*
1789 eval "ac_cv_func_$ac_func=yes"
1790else
1791 echo "configure: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 rm -rf conftest*
1794 eval "ac_cv_func_$ac_func=no"
1795fi
1796rm -f conftest*
1797fi
1798
1799if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1800 echo "$ac_t""yes" 1>&6
1801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1802 cat >> confdefs.h <<EOF
1803#define $ac_tr_func 1
1804EOF
1805
1806else
1807 echo "$ac_t""no" 1>&6
1808fi
1809done
1810
6885fc87 1811
0b9d02c6
JL
1812# Make sure wchar_t is available
1813#AC_CHECK_TYPE(wchar_t, unsigned int)
1814
76b4b31e 1815echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4e88d51b 1816echo "configure:1817: checking for vprintf" >&5
76b4b31e
KG
1817if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1819else
1820 cat > conftest.$ac_ext <<EOF
4e88d51b 1821#line 1822 "configure"
76b4b31e
KG
1822#include "confdefs.h"
1823/* System header to define __stub macros and hopefully few prototypes,
1824 which can conflict with char vprintf(); below. */
1825#include <assert.h>
1826/* Override any gcc2 internal prototype to avoid an error. */
1827/* We use char because int might match the return type of a gcc2
1828 builtin and then its argument prototype would still apply. */
1829char vprintf();
1830
1831int main() {
1832
1833/* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836#if defined (__stub_vprintf) || defined (__stub___vprintf)
1837choke me
1838#else
1839vprintf();
1840#endif
1841
1842; return 0; }
1843EOF
4e88d51b 1844if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
76b4b31e
KG
1845 rm -rf conftest*
1846 eval "ac_cv_func_vprintf=yes"
1847else
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1850 rm -rf conftest*
1851 eval "ac_cv_func_vprintf=no"
1852fi
1853rm -f conftest*
1854fi
1855
1856if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1857 echo "$ac_t""yes" 1>&6
1858 cat >> confdefs.h <<\EOF
1859#define HAVE_VPRINTF 1
1860EOF
1861
1862else
1863 echo "$ac_t""no" 1>&6
1864fi
1865
1866if test "$ac_cv_func_vprintf" != yes; then
1867echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4e88d51b 1868echo "configure:1869: checking for _doprnt" >&5
76b4b31e
KG
1869if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1871else
1872 cat > conftest.$ac_ext <<EOF
4e88d51b 1873#line 1874 "configure"
76b4b31e
KG
1874#include "confdefs.h"
1875/* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char _doprnt(); below. */
1877#include <assert.h>
1878/* Override any gcc2 internal prototype to avoid an error. */
1879/* We use char because int might match the return type of a gcc2
1880 builtin and then its argument prototype would still apply. */
1881char _doprnt();
1882
1883int main() {
1884
1885/* The GNU C library defines this for functions which it implements
1886 to always fail with ENOSYS. Some functions are actually named
1887 something starting with __ and the normal name is an alias. */
1888#if defined (__stub__doprnt) || defined (__stub____doprnt)
1889choke me
1890#else
1891_doprnt();
1892#endif
1893
1894; return 0; }
1895EOF
4e88d51b 1896if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
76b4b31e
KG
1897 rm -rf conftest*
1898 eval "ac_cv_func__doprnt=yes"
1899else
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 rm -rf conftest*
1903 eval "ac_cv_func__doprnt=no"
1904fi
1905rm -f conftest*
1906fi
1907
1908if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1909 echo "$ac_t""yes" 1>&6
1910 cat >> confdefs.h <<\EOF
1911#define HAVE_DOPRNT 1
1912EOF
1913
1914else
1915 echo "$ac_t""no" 1>&6
1916fi
1917
1918fi
1919
1920vfprintf=
1921doprint=
1922if test $ac_cv_func_vprintf != yes ; then
1923 vfprintf=vfprintf.o
1924 if test $ac_cv_func__doprnt != yes ; then
1925 doprint=doprint.o
1926 fi
1927fi
1928
1929
1930
f1b54f9b 1931echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
4e88d51b 1932echo "configure:1933: checking whether the printf functions support %p" >&5
f1b54f9b
KG
1933if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1935else
1936 if test "$cross_compiling" = yes; then
1937 gcc_cv_func_printf_ptr=no
1938else
1939 cat > conftest.$ac_ext <<EOF
4e88d51b 1940#line 1941 "configure"
f1b54f9b
KG
1941#include "confdefs.h"
1942#include <stdio.h>
1943
1944main()
1945{
1946 char buf[64];
1947 char *p = buf, *q = NULL;
1948 sprintf(buf, "%p", p);
1949 sscanf(buf, "%p", &q);
1950 exit (p != q);
1951}
1952EOF
4e88d51b 1953if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
f1b54f9b
KG
1954then
1955 gcc_cv_func_printf_ptr=yes
1956else
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959 rm -fr conftest*
1960 gcc_cv_func_printf_ptr=no
1961fi
1962rm -fr conftest*
1963fi
1964
1965rm -f core core.* *.core
1966fi
1967
1968echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1969if test $gcc_cv_func_printf_ptr = yes ; then
1970 cat >> confdefs.h <<\EOF
092f7be3 1971#define HAVE_PRINTF_PTR 1
f1b54f9b
KG
1972EOF
1973
1974fi
1975
1976
1977for ac_func in malloc realloc calloc free bcopy bzero bcmp \
6cd5dccd 1978 index rindex getenv atol sbrk abort atof strerror getcwd getwd
f1b54f9b
KG
1979do
1980echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
4e88d51b 1981echo "configure:1982: checking whether $ac_func must be declared" >&5
f1b54f9b
KG
1982if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984else
1985 cat > conftest.$ac_ext <<EOF
4e88d51b 1986#line 1987 "configure"
f1b54f9b
KG
1987#include "confdefs.h"
1988
1989#include <stdio.h>
1990#ifdef HAVE_STRING_H
1991#include <string.h>
1992#else
1993#ifdef HAVE_STRINGS_H
1994#include <strings.h>
1995#endif
1996#endif
1997#ifdef HAVE_STDLIB_H
1998#include <stdlib.h>
1999#endif
2000#ifdef HAVE_UNISTD_H
2001#include <unistd.h>
2002#endif
2003#ifndef HAVE_RINDEX
2004#define rindex strrchr
2005#endif
2006#ifndef HAVE_INDEX
2007#define index strchr
2008#endif
d2cabf16
KG
2009
2010int main() {
2011char *(*pfn) = (char *(*)) $ac_func
2012; return 0; }
2013EOF
4e88d51b 2014if { (eval echo configure:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2cabf16
KG
2015 rm -rf conftest*
2016 eval "gcc_cv_decl_needed_$ac_func=no"
2017else
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2020 rm -rf conftest*
2021 eval "gcc_cv_decl_needed_$ac_func=yes"
2022fi
2023rm -f conftest*
2024fi
2025
2026if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2027 echo "$ac_t""yes" 1>&6
2028 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2029 cat >> confdefs.h <<EOF
2030#define $gcc_tr_decl 1
2031EOF
2032
2033else
2034 echo "$ac_t""no" 1>&6
2035fi
2036
2037done
2038
2039
2040for ac_func in getrlimit setrlimit
2041do
2042echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
4e88d51b 2043echo "configure:2044: checking whether $ac_func must be declared" >&5
d2cabf16
KG
2044if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046else
2047 cat > conftest.$ac_ext <<EOF
4e88d51b 2048#line 2049 "configure"
d2cabf16
KG
2049#include "confdefs.h"
2050
2051#include <stdio.h>
2052#ifdef HAVE_STRING_H
2053#include <string.h>
2054#else
2055#ifdef HAVE_STRINGS_H
2056#include <strings.h>
2057#endif
2058#endif
2059#ifdef HAVE_STDLIB_H
2060#include <stdlib.h>
2061#endif
2062#ifdef HAVE_UNISTD_H
2063#include <unistd.h>
2064#endif
2065#ifndef HAVE_RINDEX
2066#define rindex strrchr
2067#endif
2068#ifndef HAVE_INDEX
2069#define index strchr
2070#endif
2071#include <sys/types.h>
2072#ifdef HAVE_SYS_RESOURCE_H
2073#include <sys/resource.h>
2074#endif
2075
f1b54f9b
KG
2076int main() {
2077char *(*pfn) = (char *(*)) $ac_func
2078; return 0; }
2079EOF
4e88d51b 2080if { (eval echo configure:2081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f1b54f9b
KG
2081 rm -rf conftest*
2082 eval "gcc_cv_decl_needed_$ac_func=no"
2083else
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 rm -rf conftest*
2087 eval "gcc_cv_decl_needed_$ac_func=yes"
2088fi
2089rm -f conftest*
2090fi
2091
2092if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2094 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2095 cat >> confdefs.h <<EOF
2096#define $gcc_tr_decl 1
2097EOF
2098
2099else
2100 echo "$ac_t""no" 1>&6
2101fi
2102
2103done
2104
956d6950
JL
2105
2106echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4e88d51b 2107echo "configure:2108: checking for sys_siglist declaration in signal.h or unistd.h" >&5
956d6950
JL
2108if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
a63d08e6 2110else
956d6950 2111 cat > conftest.$ac_ext <<EOF
4e88d51b 2112#line 2113 "configure"
956d6950
JL
2113#include "confdefs.h"
2114#include <sys/types.h>
2115#include <signal.h>
2116/* NetBSD declares sys_siglist in unistd.h. */
2117#ifdef HAVE_UNISTD_H
2118#include <unistd.h>
2119#endif
2120int main() {
2121char *msg = *(sys_siglist + 1);
2122; return 0; }
2123EOF
4e88d51b 2124if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
956d6950
JL
2125 rm -rf conftest*
2126 ac_cv_decl_sys_siglist=yes
2127else
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2130 rm -rf conftest*
2131 ac_cv_decl_sys_siglist=no
2132fi
2133rm -f conftest*
2134fi
2135
2136echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2137if test $ac_cv_decl_sys_siglist = yes; then
2138 cat >> confdefs.h <<\EOF
2139#define SYS_SIGLIST_DECLARED 1
2140EOF
2141
a63d08e6 2142fi
a63d08e6
JL
2143
2144
861bb6c1
JL
2145# File extensions
2146manext='.1'
2147objext='.o'
2148
2149
2150
2151build_xm_file=
f6cb0e63 2152build_xm_defines=
861bb6c1
JL
2153build_install_headers_dir=install-headers-tar
2154build_exeext=
2155host_xm_file=
f6cb0e63 2156host_xm_defines=
861bb6c1
JL
2157host_xmake_file=
2158host_truncate_target=
6e26218f 2159host_exeext=
861bb6c1
JL
2160
2161# Decode the host machine, then the target machine.
2162# For the host machine, we save the xm_file variable as host_xm_file;
2163# then we decode the target machine and forget everything else
2164# that came from the host machine.
2165for machine in $build $host $target; do
2166
2167 out_file=
2168 xmake_file=
2169 tmake_file=
2170 extra_headers=
2171 extra_passes=
2172 extra_parts=
2173 extra_programs=
2174 extra_objs=
2175 extra_host_objs=
2176 extra_gcc_objs=
f6cb0e63 2177 xm_defines=
861bb6c1
JL
2178 float_format=
2179 # Set this to force installation and use of collect2.
2180 use_collect2=
2181 # Set this to override the default target model.
2182 target_cpu_default=
861bb6c1 2183 # Set this to control which fixincludes program to use.
34a4c466 2184 if [ x$fast_fixinc != xyes ] ; then
4b104d6e
JL
2185 fixincludes=fixincludes
2186 else fixincludes=fixinc.sh ; fi
861bb6c1
JL
2187 # Set this to control how the header file directory is installed.
2188 install_headers_dir=install-headers-tar
2189 # Set this to a non-empty list of args to pass to cpp if the target
2190 # wants its .md file passed through cpp.
2191 md_cppflags=
2192 # Set this if directory names should be truncated to 14 characters.
2193 truncate_target=
2194 # Set this if gdb needs a dir command with `dirname $out_file`
2195 gdb_needs_out_file_path=
2196 # Set this if the build machine requires executables to have a
2197 # file name suffix.
2198 exeext=
a851212a
JW
2199 # Set this to control which thread package will be used.
2200 thread_file=
df6faf79
JW
2201 # Reinitialize these from the flag values every loop pass, since some
2202 # configure entries modify them.
2203 gas="$gas_flag"
2204 gnu_ld="$gnu_ld_flag"
e445171e 2205 enable_threads=$enable_threads_flag
861bb6c1
JL
2206
2207 # Set default cpu_type, tm_file and xm_file so it can be updated in
2208 # each machine entry.
2209 cpu_type=`echo $machine | sed 's/-.*$//'`
2210 case $machine in
2211 alpha*-*-*)
2212 cpu_type=alpha
2213 ;;
2214 arm*-*-*)
2215 cpu_type=arm
2216 ;;
2217 c*-convex-*)
2218 cpu_type=convex
2219 ;;
f6cb0e63 2220 i[34567]86-*-*)
861bb6c1
JL
2221 cpu_type=i386
2222 ;;
2223 hppa*-*-*)
2224 cpu_type=pa
2225 ;;
2226 m68000-*-*)
2227 cpu_type=m68k
2228 ;;
2229 mips*-*-*)
2230 cpu_type=mips
2231 ;;
2232 powerpc*-*-*)
2233 cpu_type=rs6000
2234 ;;
2235 pyramid-*-*)
2236 cpu_type=pyr
2237 ;;
2238 sparc*-*-*)
2239 cpu_type=sparc
2240 ;;
2241 esac
2242
2243 tm_file=${cpu_type}/${cpu_type}.h
2244 xm_file=${cpu_type}/xm-${cpu_type}.h
2245
f6cb0e63
JL
2246 # Set the default macros to define for GNU/Linux systems.
2247 case $machine in
2248 *-*-linux-gnu*)
c7391272 2249 xm_defines="HAVE_ATEXIT POSIX BSTRING"
f6cb0e63
JL
2250 ;;
2251 esac
2252
861bb6c1
JL
2253 case $machine in
2254 # Support site-specific machine types.
2255 *local*)
2256 cpu_type=`echo $machine | sed -e 's/-.*//'`
2257 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2258 xm_file=${cpu_type}/xm-$rest.h
2259 tm_file=${cpu_type}/$rest.h
2260 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
2261 then xmake_file=${cpu_type}/x-$rest; \
2262 else true; \
2263 fi
2264 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
2265 then tmake_file=${cpu_type}/t-$rest; \
2266 else true; \
2267 fi
2268 ;;
2269 1750a-*-*)
2270 ;;
2271 a29k-*-bsd* | a29k-*-sym1*)
2272 tm_file="${tm_file} a29k/unix.h"
f6cb0e63 2273 xm_defines=USG
861bb6c1
JL
2274 xmake_file=a29k/x-unix
2275 use_collect2=yes
2276 ;;
2277 a29k-*-udi | a29k-*-coff)
2278 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2279 tmake_file=a29k/t-a29kbare
2280 ;;
7cc34889 2281 a29k-wrs-vxworks*)
861bb6c1
JL
2282 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2283 tmake_file=a29k/t-vx29k
2284 extra_parts="crtbegin.o crtend.o"
7cc34889 2285 thread_file='vxworks'
861bb6c1
JL
2286 ;;
2287 a29k-*-*) # Default a29k environment.
2288 use_collect2=yes
2289 ;;
2290 alpha*-*-linux-gnuecoff*)
8983c716 2291 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
f6cb0e63 2292 target_cpu_default="MASK_GAS"
861bb6c1
JL
2293 gas=no
2294 xmake_file=none
861bb6c1
JL
2295 gas=yes gnu_ld=yes
2296 ;;
2601ebca 2297 alpha*-*-linux-gnulibc1*)
9d654bba 2298 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
f6cb0e63 2299 target_cpu_default="MASK_GAS"
574badbc
RH
2300 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2301 extra_parts="crtbegin.o crtend.o"
9d654bba 2302 fixincludes=fixinc.wrap
2601ebca 2303 xmake_file=none
2601ebca
JL
2304 gas=yes gnu_ld=yes
2305 if [ x$enable_threads = xyes ]; then
2306 thread_file='posix'
2307 fi
2308 ;;
861bb6c1 2309 alpha*-*-linux-gnu*)
9d654bba 2310 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
f6cb0e63 2311 target_cpu_default="MASK_GAS"
574badbc
RH
2312 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2313 extra_parts="crtbegin.o crtend.o"
861bb6c1
JL
2314 xmake_file=none
2315 fixincludes=Makefile.in
861bb6c1
JL
2316 gas=yes gnu_ld=yes
2317 if [ x$enable_threads = xyes ]; then
2318 thread_file='posix'
2319 fi
2320 ;;
9d654bba
RH
2321 alpha*-*-netbsd*)
2322 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
58600d24 2323 xm_file="xm-netbsd.h ${xm_file}"
9d654bba
RH
2324 target_cpu_default="MASK_GAS"
2325 tmake_file="alpha/t-crtbe"
2326 extra_parts="crtbegin.o crtend.o"
2327 xmake_file=none
2328 fixincludes=fixinc.wrap
2329 gas=yes gnu_ld=yes
2330 ;;
2331
e9a25f70 2332 alpha*-dec-osf*)
861bb6c1
JL
2333 if [ x$stabs = xyes ]
2334 then
2335 tm_file="${tm_file} dbx.h"
2336 fi
2337 if [ x$gas != xyes ]
2338 then
2339 extra_passes="mips-tfile mips-tdump"
2340 fi
861bb6c1 2341 use_collect2=yes
861bb6c1 2342 case $machine in
6ecd4e53 2343 *-*-osf1*)
b0435cf4 2344 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
e9a25f70
JL
2345 ;;
2346 *-*-osf[23]*)
b0435cf4 2347 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
e9a25f70
JL
2348 ;;
2349 *-*-osf4*)
b0435cf4 2350 tm_file="${tm_file} alpha/osf.h"
e9a25f70
JL
2351 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2352 # a broken tar, so we use cpio instead.
861bb6c1
JL
2353 install_headers_dir=install-headers-cpio
2354 ;;
2355 esac
e9a25f70
JL
2356 case $machine in
2357 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2358 target_cpu_default=MASK_SUPPORT_ARCH
2359 ;;
2360 esac
861bb6c1 2361 ;;
9ec36da5
JL
2362 alpha*-*-vxworks*)
2363 tm_file="${tm_file} dbx.h alpha/vxworks.h"
2364 if x$gas != xyes
2365 then
2366 extra_passes="mips-tfile mips-tdump"
2367 fi
2368 use_collect2=yes
2369 ;;
b0435cf4 2370 alpha*-*-winnt*)
861bb6c1 2371 tm_file="${tm_file} alpha/win-nt.h"
861bb6c1
JL
2372 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2373 tmake_file=t-libc-ok
2374 xmake_file=winnt/x-winnt
2375 extra_host_objs=oldnames.o
2376 extra_gcc_objs="spawnv.o oldnames.o"
2377 fixincludes=fixinc.winnt
2378 if [ x$gnu_ld != xyes ]
2379 then
2380 extra_programs=ld.exe
2381 fi
2382 if [ x$enable_threads = xyes ]; then
2383 thread_file='win32'
2384 fi
2385 ;;
2386 alpha*-dec-vms*)
2387 tm_file=alpha/vms.h
2388 xm_file="${xm_file} alpha/xm-vms.h"
2389 tmake_file=alpha/t-vms
2390 fixincludes=Makefile.in
2391 ;;
66ed0683
JL
2392 arc-*-elf*)
2393 extra_parts="crtinit.o crtfini.o"
2394 ;;
861bb6c1
JL
2395 arm-*-coff* | armel-*-coff*)
2396 tm_file=arm/coff.h
2397 tmake_file=arm/t-bare
2398 ;;
2399 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
2400 tm_file=arm/riscix1-1.h
2401 use_collect2=yes
2402 ;;
2403 arm-*-riscix*) # Acorn RISC machine
2404 if [ x$gas = xyes ]
2405 then
2406 tm_file=arm/rix-gas.h
2407 else
2408 tm_file=arm/riscix.h
2409 fi
2410 xmake_file=arm/x-riscix
2411 tmake_file=arm/t-riscix
2412 use_collect2=yes
2413 ;;
2414 arm-semi-aout | armel-semi-aout)
2415 tm_file=arm/semi.h
2416 tmake_file=arm/t-semi
2417 fixincludes=Makefile.in # There is nothing to fix
2418 ;;
2419 arm-semi-aof | armel-semi-aof)
2420 tm_file=arm/semiaof.h
2421 tmake_file=arm/t-semiaof
2422 fixincludes=Makefile.in # There is nothing to fix
2423 ;;
58600d24 2424 arm*-*-netbsd*)
861bb6c1 2425 tm_file=arm/netbsd.h
58600d24 2426 xm_file="xm-netbsd.h ${xm_file}"
e9a25f70 2427 tmake_file="t-netbsd arm/t-netbsd"
be1ed94f 2428 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 2429 fixincludes=fixinc.wrap
861bb6c1 2430 ;;
956d6950 2431 arm-*-linux-gnuaout*) # ARM GNU/Linux
861bb6c1 2432 cpu_type=arm
861bb6c1
JL
2433 xmake_file=x-linux
2434 tm_file=arm/linux-gas.h
2435 tmake_file=arm/t-linux
2436 fixincludes=Makefile.in
861bb6c1
JL
2437 gnu_ld=yes
2438 ;;
2439 arm-*-aout)
2440 tm_file=arm/aout.h
e9a25f70 2441 tmake_file=arm/t-bare
861bb6c1
JL
2442 ;;
2443 c1-convex-*) # Convex C1
2444 target_cpu_default=1
2445 use_collect2=yes
2446 fixincludes=Makefile.in
2447 ;;
2448 c2-convex-*) # Convex C2
2449 target_cpu_default=2
2450 use_collect2=yes
2451 fixincludes=Makefile.in
2452 ;;
2453 c32-convex-*)
2454 target_cpu_default=4
2455 use_collect2=yes
2456 fixincludes=Makefile.in
2457 ;;
2458 c34-convex-*)
2459 target_cpu_default=8
2460 use_collect2=yes
2461 fixincludes=Makefile.in
2462 ;;
2463 c38-convex-*)
2464 target_cpu_default=16
2465 use_collect2=yes
2466 fixincludes=Makefile.in
2467 ;;
2468 clipper-intergraph-clix*)
2469 tm_file="${tm_file} svr3.h clipper/clix.h"
2470 xm_file=clipper/xm-clix.h
2471 xmake_file=clipper/x-clix
2472 extra_headers=va-clipper.h
2473 extra_parts="crtbegin.o crtend.o"
2474 install_headers_dir=install-headers-cpio
861bb6c1
JL
2475 ;;
2476 dsp16xx-*)
2477 ;;
2478 elxsi-elxsi-*)
2479 use_collect2=yes
2480 ;;
2481# This hasn't been upgraded to GCC 2.
2482# fx80-alliant-*) # Alliant FX/80
2483# ;;
2484 h8300-*-*)
2485 float_format=i32
2486 ;;
2487 hppa1.1-*-pro*)
2488 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2489 xm_file=pa/xm-papro.h
2490 tmake_file=pa/t-pro
2491 ;;
2492 hppa1.1-*-osf*)
2493 target_cpu_default=1
2494 tm_file="${tm_file} pa/pa-osf.h"
2495 use_collect2=yes
2496 fixincludes=Makefile.in
2497 ;;
2498 hppa1.1-*-rtems*)
2499 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2500 xm_file=pa/xm-papro.h
2501 tmake_file=pa/t-pro
2502 ;;
2503 hppa1.0-*-osf*)
2504 tm_file="${tm_file} pa/pa-osf.h"
2505 use_collect2=yes
2506 fixincludes=Makefile.in
2507 ;;
2508 hppa1.1-*-bsd*)
2509 target_cpu_default=1
2510 use_collect2=yes
2511 fixincludes=Makefile.in
2512 ;;
2513 hppa1.0-*-bsd*)
2514 use_collect2=yes
2515 fixincludes=Makefile.in
2516 ;;
2517 hppa1.0-*-hpux7*)
2518 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2519 xm_file=pa/xm-pahpux.h
2520 xmake_file=pa/x-pa-hpux
2521 if [ x$gas = xyes ]
2522 then
2523 tm_file="${tm_file} pa/gas.h"
2524 fi
861bb6c1
JL
2525 install_headers_dir=install-headers-cpio
2526 use_collect2=yes
2527 ;;
2528 hppa1.0-*-hpux8.0[0-2]*)
2529 tm_file="${tm_file} pa/pa-hpux.h"
2530 xm_file=pa/xm-pahpux.h
2531 xmake_file=pa/x-pa-hpux
2532 if [ x$gas = xyes ]
2533 then
2534 tm_file="${tm_file} pa/pa-gas.h"
2535 else
2536 tm_file="pa/pa-oldas.h ${tm_file}"
2537 fi
861bb6c1
JL
2538 install_headers_dir=install-headers-cpio
2539 use_collect2=yes
2540 ;;
2541 hppa1.1-*-hpux8.0[0-2]*)
2542 target_cpu_default=1
2543 tm_file="${tm_file} pa/pa-hpux.h"
2544 xm_file=pa/xm-pahpux.h
2545 xmake_file=pa/x-pa-hpux
2546 if [ x$gas = xyes ]
2547 then
2548 tm_file="${tm_file} pa/pa-gas.h"
2549 else
2550 tm_file="pa/pa-oldas.h ${tm_file}"
2551 fi
861bb6c1
JL
2552 install_headers_dir=install-headers-cpio
2553 use_collect2=yes
2554 ;;
2555 hppa1.1-*-hpux8*)
2556 target_cpu_default=1
2557 tm_file="${tm_file} pa/pa-hpux.h"
2558 xm_file=pa/xm-pahpux.h
2559 xmake_file=pa/x-pa-hpux
2560 if [ x$gas = xyes ]
2561 then
2562 tm_file="${tm_file} pa/pa-gas.h"
2563 fi
861bb6c1
JL
2564 install_headers_dir=install-headers-cpio
2565 use_collect2=yes
2566 ;;
2567 hppa1.0-*-hpux8*)
2568 tm_file="${tm_file} pa/pa-hpux.h"
2569 xm_file=pa/xm-pahpux.h
2570 xmake_file=pa/x-pa-hpux
2571 if [ x$gas = xyes ]
2572 then
2573 tm_file="${tm_file} pa/pa-gas.h"
2574 fi
861bb6c1
JL
2575 install_headers_dir=install-headers-cpio
2576 use_collect2=yes
2577 ;;
2578 hppa1.1-*-hpux10*)
2579 target_cpu_default=1
2580 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2581 xm_file=pa/xm-pahpux.h
2582 xmake_file=pa/x-pa-hpux
f24af81b 2583 tmake_file=pa/t-pa
861bb6c1
JL
2584 if [ x$gas = xyes ]
2585 then
2586 tm_file="${tm_file} pa/pa-gas.h"
2587 fi
f24af81b
TT
2588 if [ x$enable_threads = x ]; then
2589 enable_threads=$have_pthread_h
2590 fi
2591 if [ x$enable_threads = xyes ]; then
2592 thread_file='dce'
2593 tmake_file="${tmake_file} pa/t-dce-thr"
2594 fi
861bb6c1
JL
2595 install_headers_dir=install-headers-cpio
2596 use_collect2=yes
2597 ;;
2598 hppa1.0-*-hpux10*)
2599 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2600 xm_file=pa/xm-pahpux.h
2601 xmake_file=pa/x-pa-hpux
2602 if [ x$gas = xyes ]
2603 then
2604 tm_file="${tm_file} pa/pa-gas.h"
2605 fi
d005a5a4
JL
2606 if [ x$enable_threads = x ]; then
2607 enable_threads=$have_pthread_h
2608 fi
2609 if [ x$enable_threads = xyes ]; then
2610 thread_file='dce'
2611 tmake_file="${tmake_file} pa/t-dce-thr"
2612 fi
861bb6c1
JL
2613 install_headers_dir=install-headers-cpio
2614 use_collect2=yes
2615 ;;
2616 hppa1.1-*-hpux*)
2617 target_cpu_default=1
2618 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2619 xm_file=pa/xm-pahpux.h
2620 xmake_file=pa/x-pa-hpux
2621 if [ x$gas = xyes ]
2622 then
2623 tm_file="${tm_file} pa/pa-gas.h"
2624 fi
861bb6c1
JL
2625 install_headers_dir=install-headers-cpio
2626 use_collect2=yes
2627 ;;
2628 hppa1.0-*-hpux*)
2629 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2630 xm_file=pa/xm-pahpux.h
2631 xmake_file=pa/x-pa-hpux
2632 if [ x$gas = xyes ]
2633 then
2634 tm_file="${tm_file} pa/pa-gas.h"
2635 fi
861bb6c1
JL
2636 install_headers_dir=install-headers-cpio
2637 use_collect2=yes
2638 ;;
2639 hppa1.1-*-hiux*)
2640 target_cpu_default=1
2641 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2642 xm_file=pa/xm-pahpux.h
2643 xmake_file=pa/x-pa-hpux
2644 if [ x$gas = xyes ]
2645 then
2646 tm_file="${tm_file} pa/pa-gas.h"
2647 fi
861bb6c1
JL
2648 install_headers_dir=install-headers-cpio
2649 use_collect2=yes
2650 ;;
2651 hppa1.0-*-hiux*)
2652 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2653 xm_file=pa/xm-pahpux.h
2654 xmake_file=pa/x-pa-hpux
2655 if [ x$gas = xyes ]
2656 then
2657 tm_file="${tm_file} pa/pa-gas.h"
2658 fi
861bb6c1
JL
2659 install_headers_dir=install-headers-cpio
2660 use_collect2=yes
2661 ;;
2662 hppa*-*-lites*)
2663 target_cpu_default=1
2664 use_collect2=yes
2665 fixincludes=Makefile.in
2666 ;;
2667 i370-*-mvs*)
2668 ;;
f6cb0e63 2669 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
861bb6c1
JL
2670 if [ x$gas = xyes ]
2671 then
2672 tm_file=i386/aix386.h
2673 extra_parts="crtbegin.o crtend.o"
2674 tmake_file=i386/t-crtstuff
2675 else
2676 tm_file=i386/aix386ng.h
2677 use_collect2=yes
2678 fi
f6cb0e63
JL
2679 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
2680 xm_defines=USG
861bb6c1 2681 xmake_file=i386/x-aix
861bb6c1 2682 ;;
f6cb0e63
JL
2683 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2684 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2685 xm_defines="USG POSIX SMALL_ARG_MAX"
861bb6c1
JL
2686 xmake_file=i386/x-ncr3000
2687 if [ x$stabs = xyes -a x$gas = xyes ]
2688 then
2689 tm_file=i386/sysv4gdb.h
2690 else
2691 tm_file=i386/sysv4.h
2692 fi
2693 extra_parts="crtbegin.o crtend.o"
2694 tmake_file=i386/t-crtpic
2695 ;;
f6cb0e63 2696 i[34567]86-next-*)
861bb6c1
JL
2697 tm_file=i386/next.h
2698 xm_file=i386/xm-next.h
2699 tmake_file=i386/t-next
2700 xmake_file=i386/x-next
2701 extra_objs=nextstep.o
2702 if [ x$enable_threads = xyes ]; then
2703 thread_file='mach'
2704 fi
2705 ;;
f6cb0e63 2706 i[34567]86-sequent-bsd*) # 80386 from Sequent
861bb6c1
JL
2707 use_collect2=yes
2708 if [ x$gas = xyes ]
2709 then
2710 tm_file=i386/seq-gas.h
2711 else
2712 tm_file=i386/sequent.h
2713 fi
2714 ;;
f6cb0e63
JL
2715 i[34567]86-sequent-ptx1*)
2716 xm_defines="USG SVR3"
861bb6c1
JL
2717 xmake_file=i386/x-sysv3
2718 tm_file=i386/seq-sysv3.h
2719 tmake_file=i386/t-crtstuff
2720 fixincludes=fixinc.ptx
2721 extra_parts="crtbegin.o crtend.o"
2722 install_headers_dir=install-headers-cpio
861bb6c1 2723 ;;
f6cb0e63
JL
2724 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
2725 xm_defines="USG SVR3"
861bb6c1
JL
2726 xmake_file=i386/x-sysv3
2727 tm_file=i386/seq2-sysv3.h
2728 tmake_file=i386/t-crtstuff
2729 extra_parts="crtbegin.o crtend.o"
2730 fixincludes=fixinc.ptx
2731 install_headers_dir=install-headers-cpio
861bb6c1 2732 ;;
f6cb0e63
JL
2733 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
2734 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2735 xm_defines="USG POSIX SMALL_ARG_MAX"
861bb6c1
JL
2736 xmake_file=x-svr4
2737 tm_file=i386/ptx4-i.h
2738 tmake_file=t-svr4
2739 extra_parts="crtbegin.o crtend.o"
2740 fixincludes=fixinc.ptx
2741 install_headers_dir=install-headers-cpio
861bb6c1
JL
2742 ;;
2743 i386-sun-sunos*) # Sun i386 roadrunner
f6cb0e63 2744 xm_defines=USG
861bb6c1
JL
2745 tm_file=i386/sun.h
2746 use_collect2=yes
2747 ;;
62db76ee 2748 i[34567]86-wrs-vxworks*)
9e89df50
MS
2749 tm_file=i386/vxi386.h
2750 tmake_file=i386/t-i386bare
2751 ;;
f6cb0e63 2752 i[34567]86-*-aout*)
861bb6c1
JL
2753 tm_file=i386/i386-aout.h
2754 tmake_file=i386/t-i386bare
2755 ;;
f6cb0e63 2756 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
861bb6c1 2757 tm_file=i386/bsd386.h
861bb6c1
JL
2758# tmake_file=t-libc-ok
2759 ;;
f6cb0e63 2760 i[34567]86-*-bsd*)
861bb6c1 2761 tm_file=i386/386bsd.h
861bb6c1
JL
2762# tmake_file=t-libc-ok
2763# Next line turned off because both 386BSD and BSD/386 use GNU ld.
2764# use_collect2=yes
2765 ;;
f6cb0e63 2766 i[34567]86-*-freebsdelf*)
861bb6c1 2767 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
be1ed94f 2768 # On FreeBSD, the headers are already ok, except for math.h.
32f65aa0 2769 fixincludes=fixinc.wrap
861bb6c1
JL
2770 tmake_file=i386/t-freebsd
2771 gas=yes
2772 gnu_ld=yes
2773 stabs=yes
2774 ;;
f6cb0e63 2775 i[34567]86-*-freebsd*)
861bb6c1 2776 tm_file=i386/freebsd.h
ca55abae 2777 # On FreeBSD, the headers are already ok, except for math.h.
32f65aa0 2778 fixincludes=fixinc.wrap
861bb6c1
JL
2779 tmake_file=i386/t-freebsd
2780 ;;
f6cb0e63 2781 i[34567]86-*-netbsd*)
861bb6c1 2782 tm_file=i386/netbsd.h
58600d24 2783 xm_file="xm-netbsd.h ${xm_file}"
be1ed94f 2784 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 2785 fixincludes=fixinc.wrap
861bb6c1
JL
2786 tmake_file=t-netbsd
2787 ;;
f6cb0e63 2788 i[34567]86-*-coff*)
861bb6c1
JL
2789 tm_file=i386/i386-coff.h
2790 tmake_file=i386/t-i386bare
2791 ;;
f6cb0e63
JL
2792 i[34567]86-*-isc*) # 80386 running ISC system
2793 xm_file="${xm_file} i386/xm-isc.h"
2794 xm_defines="USG SVR3"
861bb6c1 2795 case $machine in
f6cb0e63 2796 i[34567]86-*-isc[34]*)
861bb6c1
JL
2797 xmake_file=i386/x-isc3
2798 ;;
2799 *)
2800 xmake_file=i386/x-isc
2801 ;;
2802 esac
2803 if [ x$gas = xyes -a x$stabs = xyes ]
2804 then
2805 tm_file=i386/iscdbx.h
2806 tmake_file=i386/t-svr3dbx
2807 extra_parts="svr3.ifile svr3z.ifile"
2808 else
2809 tm_file=i386/isccoff.h
2810 tmake_file=i386/t-crtstuff
2811 extra_parts="crtbegin.o crtend.o"
2812 fi
2813 install_headers_dir=install-headers-cpio
861bb6c1 2814 ;;
f6cb0e63
JL
2815 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2816 # with a.out format using
2817 # pre BFD linkers
861bb6c1
JL
2818 xmake_file=x-linux-aout
2819 tmake_file="t-linux-aout i386/t-crtstuff"
2820 tm_file=i386/linux-oldld.h
2821 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1 2822 gnu_ld=yes
af39d8f5 2823 float_format=i386
861bb6c1 2824 ;;
f6cb0e63
JL
2825 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2826 # with a.out format
861bb6c1
JL
2827 xmake_file=x-linux-aout
2828 tmake_file="t-linux-aout i386/t-crtstuff"
2829 tm_file=i386/linux-aout.h
2830 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1 2831 gnu_ld=yes
af39d8f5 2832 float_format=i386
861bb6c1 2833 ;;
f6cb0e63
JL
2834 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2835 # with ELF format using the
2836 # GNU/Linux C library 5
2837 xmake_file=x-linux
2838 tm_file=i386/linux.h
861bb6c1
JL
2839 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2840 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2841 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1 2842 gnu_ld=yes
af39d8f5 2843 float_format=i386
861bb6c1
JL
2844 if [ x$enable_threads = xyes ]; then
2845 thread_file='single'
2846 fi
2847 ;;
f6cb0e63
JL
2848 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2849 # with ELF format using glibc 2
2850 # aka GNU/Linux C library 6
2851 xmake_file=x-linux
861bb6c1
JL
2852 tm_file=i386/linux.h
2853 tmake_file="t-linux i386/t-crtstuff"
2854 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2855 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1 2856 gnu_ld=yes
af39d8f5 2857 float_format=i386
861bb6c1
JL
2858 if [ x$enable_threads = xyes ]; then
2859 thread_file='posix'
2860 fi
2861 ;;
f6cb0e63
JL
2862 i[34567]86-*-gnu*)
2863 ;;
2864 i[34567]86-go32-msdos | i[34567]86-*-go32*)
2865 xm_file=i386/xm-go32.h
2866 tm_file=i386/go32.h
2867 tmake_file=i386/t-go32
861bb6c1 2868 ;;
f6cb0e63 2869 i[34567]86-pc-msdosdjgpp*)
861bb6c1
JL
2870 xm_file=i386/xm-go32.h
2871 tm_file=i386/go32.h
2872 tmake_file=i386/t-go32
f6cb0e63
JL
2873 gnu_ld=yes
2874 gas=yes
861bb6c1 2875 ;;
f6cb0e63 2876 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
861bb6c1
JL
2877 tm_file=i386/moss.h
2878 tmake_file=t-libc-ok
2879 fixincludes=Makefile.in
2880 gnu_ld=yes
2881 gas=yes
2882 ;;
f6cb0e63 2883 i[34567]86-*-lynxos*)
861bb6c1
JL
2884 if [ x$gas = xyes ]
2885 then
2886 tm_file=i386/lynx.h
2887 else
2888 tm_file=i386/lynx-ng.h
2889 fi
2890 xm_file=i386/xm-lynx.h
2891 tmake_file=i386/t-i386bare
2892 xmake_file=x-lynx
2893 ;;
f6cb0e63 2894 i[34567]86-*-mach*)
861bb6c1
JL
2895 tm_file=i386/mach.h
2896# tmake_file=t-libc-ok
2897 use_collect2=yes
2898 ;;
f6cb0e63 2899 i[34567]86-*-osfrose*) # 386 using OSF/rose
861bb6c1
JL
2900 if [ x$elf = xyes ]
2901 then
2902 tm_file=i386/osfelf.h
2903 use_collect2=
2904 else
2905 tm_file=i386/osfrose.h
2906 use_collect2=yes
2907 fi
f6cb0e63 2908 xm_file="i386/xm-osf.h ${xm_file}"
861bb6c1
JL
2909 xmake_file=i386/x-osfrose
2910 tmake_file=i386/t-osf
2911 extra_objs=halfpic.o
2912 ;;
f6cb0e63 2913 i[34567]86-go32-rtems*)
861bb6c1
JL
2914 cpu_type=i386
2915 xm_file=i386/xm-go32.h
2916 tm_file=i386/go32-rtems.h
2917 tmake_file="i386/t-go32 t-rtems"
2918 ;;
f5963e61
JL
2919 i[34567]86-*-rtemself*)
2920 cpu_type=i386
2921 tm_file=i386/rtemself.h
2922 tmake_file="i386/t-i386bare t-rtems"
2923 ;;
f6cb0e63 2924 i[34567]86-*-rtems*)
861bb6c1
JL
2925 cpu_type=i386
2926 tm_file=i386/rtems.h
2927 tmake_file="i386/t-i386bare t-rtems"
2928 ;;
f6cb0e63
JL
2929 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
2930 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2931 xm_defines="USG SVR3"
861bb6c1
JL
2932 xmake_file=i386/x-sco5
2933 fixincludes=fixinc.sco
f6857708 2934 install_headers_dir=install-headers-cpio
861bb6c1 2935 tm_file=i386/sco5.h
44bb0e93
RL
2936 if [ x$gas = xyes ]
2937 then
2938 tm_file="i386/sco5gas.h ${tm_file}"
2939 tmake_file=i386/t-sco5gas
2940 else
2941 tmake_file=i386/t-sco5
2942 fi
861bb6c1
JL
2943 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2944 ;;
f6cb0e63
JL
2945 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
2946 xm_file="${xm_file} i386/xm-sco.h"
2947 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
861bb6c1
JL
2948 xmake_file=i386/x-sco4
2949 fixincludes=fixinc.sco
861bb6c1
JL
2950 install_headers_dir=install-headers-cpio
2951 if [ x$stabs = xyes ]
2952 then
2953 tm_file=i386/sco4dbx.h
2954 tmake_file=i386/t-svr3dbx
2955 extra_parts="svr3.ifile svr3z.rfile"
2956 else
2957 tm_file=i386/sco4.h
2958 tmake_file=i386/t-crtstuff
2959 extra_parts="crtbegin.o crtend.o"
2960 fi
2961 truncate_target=yes
2962 ;;
f6cb0e63 2963 i[34567]86-*-sco*) # 80386 running SCO system
861bb6c1
JL
2964 xm_file=i386/xm-sco.h
2965 xmake_file=i386/x-sco
861bb6c1
JL
2966 install_headers_dir=install-headers-cpio
2967 if [ x$stabs = xyes ]
2968 then
2969 tm_file=i386/scodbx.h
2970 tmake_file=i386/t-svr3dbx
2971 extra_parts="svr3.ifile svr3z.rfile"
2972 else
2973 tm_file=i386/sco.h
2974 extra_parts="crtbegin.o crtend.o"
2975 tmake_file=i386/t-crtstuff
2976 fi
2977 truncate_target=yes
2978 ;;
f6cb0e63
JL
2979 i[34567]86-*-solaris2*)
2980 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2981 xm_defines="USG POSIX SMALL_ARG_MAX"
861bb6c1
JL
2982 if [ x$stabs = xyes ]
2983 then
2984 tm_file=i386/sol2dbg.h
2985 else
2986 tm_file=i386/sol2.h
2987 fi
2988 tmake_file=i386/t-sol2
f6cb0e63 2989 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
861bb6c1 2990 xmake_file=x-svr4
f6cb0e63
JL
2991 case $machine in
2992 *-*-solaris2.[0-4])
2993 fixincludes=fixinc.svr4;;
2994 *)
32f65aa0 2995 fixincludes=fixinc.wrap;;
f6cb0e63 2996 esac
861bb6c1
JL
2997 if [ x$enable_threads = xyes ]; then
2998 thread_file='solaris'
2999 fi
3000 ;;
f6cb0e63 3001 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
48a51bf4
RL
3002 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3003 xm_defines="USG POSIX"
fe07d4c1
RL
3004 tm_file=i386/sysv4.h
3005 if [ x$stabs = xyes ]
3006 then
3007 tm_file="${tm_file} dbx.h"
3008 fi
3009 tmake_file=i386/t-crtpic
3010 xmake_file=x-svr4
3011 extra_parts="crtbegin.o crtend.o"
3012 fixincludes=Makefile.in # The headers are just fine, thank you.
3013 ;;
f6cb0e63
JL
3014 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3015 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3016 xm_defines="USG POSIX SMALL_ARG_MAX"
861bb6c1
JL
3017 tm_file=i386/sysv4.h
3018 if [ x$stabs = xyes ]
3019 then
3020 tm_file="${tm_file} dbx.h"
3021 fi
3022 tmake_file=i386/t-crtpic
3023 xmake_file=x-svr4
3024 extra_parts="crtbegin.o crtend.o"
3025 ;;
f5963e61
JL
3026 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3027 cpu_type=i386
3028 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3029 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3030 fixincludes=Makefile.in #Don't do it on OSF/1
3031 if [ x$stabs = xyes ]
3032 then
3033 tm_file=i386/osf1elfgdb.h
3034 else
3035 tm_file=i386/osf1elf.h
3036 fi
3037 tmake_file=i386/t-osf1elf
3038 xmake_file=i386/x-osf1elf
3039 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3040 ;;
f6cb0e63
JL
3041 i[34567]86-*-sysv*) # Intel 80386's running system V
3042 xm_defines="USG SVR3"
861bb6c1
JL
3043 xmake_file=i386/x-sysv3
3044 if [ x$gas = xyes ]
3045 then
3046 if [ x$stabs = xyes ]
3047 then
3048 tm_file=i386/svr3dbx.h
3049 tmake_file=i386/t-svr3dbx
3050 extra_parts="svr3.ifile svr3z.rfile"
3051 else
3052 tm_file=i386/svr3gas.h
3053 extra_parts="crtbegin.o crtend.o"
3054 tmake_file=i386/t-crtstuff
3055 fi
3056 else
3057 tm_file=i386/sysv3.h
3058 extra_parts="crtbegin.o crtend.o"
3059 tmake_file=i386/t-crtstuff
3060 fi
3061 ;;
3062 i386-*-vsta) # Intel 80386's running VSTa kernel
f5963e61 3063 xm_file="${xm_file} i386/xm-vsta.h"
861bb6c1
JL
3064 tm_file=i386/vsta.h
3065 tmake_file=i386/t-vsta
3066 xmake_file=i386/x-vsta
3067 ;;
84530511
SC
3068 i[34567]86-*-win32)
3069 xm_file="${xm_file} i386/xm-cygwin32.h"
3070 tmake_file=i386/t-cygwin32
3071 tm_file=i386/win32.h
3072 xmake_file=i386/x-cygwin32
3073 extra_objs=winnt.o
3074 fixincludes=Makefile.in
3075 if [ x$enable_threads = xyes ]; then
3076 thread_file='win32'
3077 fi
3078 exeext=.exe
3079 ;;
f6cb0e63 3080 i[34567]86-*-pe | i[34567]86-*-cygwin32)
861bb6c1
JL
3081 xm_file="${xm_file} i386/xm-cygwin32.h"
3082 tmake_file=i386/t-cygwin32
3083 tm_file=i386/cygwin32.h
3084 xmake_file=i386/x-cygwin32
3085 extra_objs=winnt.o
3086 fixincludes=Makefile.in
3087 if [ x$enable_threads = xyes ]; then
3088 thread_file='win32'
3089 fi
3090 exeext=.exe
3091 ;;
f6cb0e63 3092 i[34567]86-*-mingw32*)
861bb6c1
JL
3093 tm_file=i386/mingw32.h
3094 xm_file="${xm_file} i386/xm-mingw32.h"
1a4bf22f 3095 tmake_file="i386/t-cygwin32 i386/t-mingw32"
861bb6c1
JL
3096 extra_objs=winnt.o
3097 xmake_file=i386/x-cygwin32
3098 fixincludes=Makefile.in
3099 if [ x$enable_threads = xyes ]; then
3100 thread_file='win32'
3101 fi
3102 exeext=.exe
f6cb0e63
JL
3103 case $machine in
3104 *mingw32msv*)
3105 ;;
3106 *minwg32crt* | *mingw32*)
3107 tm_file="${tm_file} i386/crtdll.h"
3108 ;;
3109 esac
861bb6c1 3110 ;;
f6cb0e63 3111 i[34567]86-*-winnt3*)
861bb6c1
JL
3112 tm_file=i386/win-nt.h
3113 out_file=i386/i386.c
f6cb0e63 3114 xm_file="xm-winnt.h ${xm_file}"
861bb6c1
JL
3115 xmake_file=winnt/x-winnt
3116 tmake_file=i386/t-winnt
3117 extra_host_objs="winnt.o oldnames.o"
3118 extra_gcc_objs="spawnv.o oldnames.o"
3119 fixincludes=fixinc.winnt
3120 if [ x$gnu_ld != xyes ]
3121 then
3122 extra_programs=ld.exe
3123 fi
3124 if [ x$enable_threads = xyes ]; then
3125 thread_file='win32'
3126 fi
3127 ;;
f6cb0e63
JL
3128 i[34567]86-dg-dgux*)
3129 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3130 xm_defines="USG POSIX"
861bb6c1
JL
3131 out_file=i386/dgux.c
3132 tm_file=i386/dgux.h
3133 tmake_file=i386/t-dgux
3134 xmake_file=i386/x-dgux
9590eb1b 3135 fixincludes=fixinc.dgux
861bb6c1
JL
3136 install_headers_dir=install-headers-cpio
3137 ;;
3138 i860-alliant-*) # Alliant FX/2800
3139 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
956d6950 3140 xm_file="${xm_file}"
861bb6c1
JL
3141 xmake_file=i860/x-fx2800
3142 tmake_file=i860/t-fx2800
3143 extra_parts="crtbegin.o crtend.o"
3144 ;;
3145 i860-*-bsd*)
3146 tm_file="${tm_file} i860/bsd.h"
3147 if [ x$gas = xyes ]
3148 then
3149 tm_file="${tm_file} i860/bsd-gas.h"
3150 fi
3151 use_collect2=yes
3152 ;;
3153 i860-*-mach*)
3154 tm_file="${tm_file} i860/mach.h"
3155 tmake_file=t-libc-ok
3156 ;;
3157 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3158 tm_file="${tm_file} svr3.h i860/paragon.h"
f6cb0e63 3159 xm_defines="USG SVR3"
861bb6c1 3160 tmake_file=t-osf
861bb6c1
JL
3161 ;;
3162 i860-*-sysv3*)
3163 tm_file="${tm_file} svr3.h i860/sysv3.h"
f6cb0e63 3164 xm_defines="USG SVR3"
861bb6c1
JL
3165 xmake_file=i860/x-sysv3
3166 extra_parts="crtbegin.o crtend.o"
3167 ;;
3168 i860-*-sysv4*)
3169 tm_file="${tm_file} svr4.h i860/sysv4.h"
f6cb0e63 3170 xm_defines="USG SVR3"
861bb6c1
JL
3171 xmake_file=i860/x-sysv4
3172 tmake_file=t-svr4
3173 extra_parts="crtbegin.o crtend.o"
3174 ;;
3175 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3176 tm_file="${tm_file} i960/vx960.h"
3177 tmake_file=i960/t-vxworks960
3178 use_collect2=yes
7cc34889 3179 thread_file='vxworks'
861bb6c1 3180 ;;
a0372c94 3181 i960-wrs-vxworks5* | i960-wrs-vxworks)
861bb6c1
JL
3182 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3183 tmake_file=i960/t-vxworks960
3184 use_collect2=yes
7cc34889 3185 thread_file='vxworks'
861bb6c1
JL
3186 ;;
3187 i960-wrs-vxworks*)
3188 tm_file="${tm_file} i960/vx960.h"
3189 tmake_file=i960/t-vxworks960
3190 use_collect2=yes
7cc34889 3191 thread_file='vxworks'
861bb6c1
JL
3192 ;;
3193 i960-*-coff*)
3194 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3195 tmake_file=i960/t-960bare
3196 use_collect2=yes
3197 ;;
3198 i960-*-rtems)
3199 tmake_file="i960/t-960bare t-rtems"
3200 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3201 use_collect2=yes
3202 ;;
3203 i960-*-*) # Default i960 environment.
3204 use_collect2=yes
3205 ;;
3206 m32r-*-elf*)
3207 extra_parts="crtinit.o crtfini.o"
3208 ;;
3209 m68000-convergent-sysv*)
3210 tm_file=m68k/ctix.h
f6cb0e63
JL
3211 xm_file="m68k/xm-3b1.h ${xm_file}"
3212 xm_defines=USG
861bb6c1
JL
3213 use_collect2=yes
3214 extra_headers=math-68881.h
3215 ;;
3216 m68000-hp-bsd*) # HP 9000/200 running BSD
3217 tm_file=m68k/hp2bsd.h
3218 xmake_file=m68k/x-hp2bsd
3219 use_collect2=yes
3220 extra_headers=math-68881.h
3221 ;;
3222 m68000-hp-hpux*) # HP 9000 series 300
f6cb0e63
JL
3223 xm_file="xm_alloca.h ${xm_file}"
3224 xm_defines="USG NO_SYS_SIGLIST"
861bb6c1
JL
3225 if [ x$gas = xyes ]
3226 then
3227 xmake_file=m68k/x-hp320g
3228 tm_file=m68k/hp310g.h
3229 else
3230 xmake_file=m68k/x-hp320
3231 tm_file=m68k/hp310.h
3232 fi
861bb6c1
JL
3233 install_headers_dir=install-headers-cpio
3234 use_collect2=yes
3235 extra_headers=math-68881.h
3236 ;;
3237 m68000-sun-sunos3*)
3238 tm_file=m68k/sun2.h
3239 use_collect2=yes
3240 extra_headers=math-68881.h
3241 ;;
3242 m68000-sun-sunos4*)
3243 tm_file=m68k/sun2o4.h
3244 use_collect2=yes
3245 extra_headers=math-68881.h
3246 ;;
3247 m68000-att-sysv*)
f6cb0e63
JL
3248 xm_file="m68k/xm-3b1.h ${xm_file}"
3249 xm_defines=USG
861bb6c1
JL
3250 if [ x$gas = xyes ]
3251 then
3252 tm_file=m68k/3b1g.h
3253 else
3254 tm_file=m68k/3b1.h
3255 fi
3256 use_collect2=yes
3257 extra_headers=math-68881.h
3258 ;;
3259 m68k-apple-aux*) # Apple Macintosh running A/UX
f6cb0e63 3260 xm_defines="USG AUX"
861bb6c1 3261 tmake_file=m68k/t-aux
861bb6c1
JL
3262 install_headers_dir=install-headers-cpio
3263 extra_headers=math-68881.h
3264 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3265 tm_file=
3266 if [ "$gnu_ld" = yes ]
3267 then
3268 tm_file="${tm_file} m68k/auxgld.h"
3269 else
3270 tm_file="${tm_file} m68k/auxld.h"
3271 fi
3272 if [ "$gas" = yes ]
3273 then
3274 tm_file="${tm_file} m68k/auxgas.h"
3275 else
3276 tm_file="${tm_file} m68k/auxas.h"
3277 fi
3278 tm_file="${tm_file} m68k/a-ux.h"
0a95276e 3279 float_format=m68k
861bb6c1
JL
3280 ;;
3281 m68k-apollo-*)
3282 tm_file=m68k/apollo68.h
3283 xmake_file=m68k/x-apollo68
3284 use_collect2=yes
3285 extra_headers=math-68881.h
0a95276e 3286 float_format=m68k
861bb6c1
JL
3287 ;;
3288 m68k-altos-sysv*) # Altos 3068
3289 if [ x$gas = xyes ]
3290 then
3291 tm_file=m68k/altos3068.h
f6cb0e63 3292 xm_defines=USG
861bb6c1
JL
3293 else
3294 echo "The Altos is supported only with the GNU assembler" 1>&2
3295 exit 1
3296 fi
3297 extra_headers=math-68881.h
3298 ;;
3299 m68k-bull-sysv*) # Bull DPX/2
3300 if [ x$gas = xyes ]
3301 then
3302 if [ x$stabs = xyes ]
3303 then
3304 tm_file=m68k/dpx2cdbx.h
3305 else
3306 tm_file=m68k/dpx2g.h
3307 fi
3308 else
3309 tm_file=m68k/dpx2.h
3310 fi
f6cb0e63
JL
3311 xm_file="xm-alloca.h ${xm_file}"
3312 xm_defines=USG
861bb6c1
JL
3313 xmake_file=m68k/x-dpx2
3314 use_collect2=yes
3315 extra_headers=math-68881.h
3316 ;;
3317 m68k-atari-sysv4*) # Atari variant of V.4.
3318 tm_file=m68k/atari.h
f6cb0e63
JL
3319 xm_file="xm-alloca.h ${xm_file}"
3320 xm_defines="USG FULL_PROTOTYPES"
861bb6c1
JL
3321 tmake_file=t-svr4
3322 extra_parts="crtbegin.o crtend.o"
3323 extra_headers=math-68881.h
0a95276e 3324 float_format=m68k
861bb6c1
JL
3325 ;;
3326 m68k-motorola-sysv*)
3327 tm_file=m68k/mot3300.h
f6cb0e63
JL
3328 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3329 xm_defines=NO_SYS_SIGLIST
861bb6c1
JL
3330 if [ x$gas = xyes ]
3331 then
3332 xmake_file=m68k/x-mot3300-gas
3333 if [ x$gnu_ld = xyes ]
3334 then
3335 tmake_file=m68k/t-mot3300-gald
3336 else
3337 tmake_file=m68k/t-mot3300-gas
3338 use_collect2=yes
3339 fi
3340 else
3341 xmake_file=m68k/x-mot3300
3342 if [ x$gnu_ld = xyes ]
3343 then
3344 tmake_file=m68k/t-mot3300-gld
3345 else
3346 tmake_file=m68k/t-mot3300
3347 use_collect2=yes
3348 fi
3349 fi
3350 gdb_needs_out_file_path=yes
3351 extra_parts="crt0.o mcrt0.o"
3352 extra_headers=math-68881.h
0a95276e 3353 float_format=m68k
861bb6c1
JL
3354 ;;
3355 m68k-ncr-sysv*) # NCR Tower 32 SVR3
3356 tm_file=m68k/tower-as.h
f6cb0e63 3357 xm_defines="USG SVR3"
861bb6c1
JL
3358 xmake_file=m68k/x-tower
3359 extra_parts="crtbegin.o crtend.o"
3360 extra_headers=math-68881.h
3361 ;;
3362 m68k-plexus-sysv*)
3363 tm_file=m68k/plexus.h
f6cb0e63
JL
3364 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3365 xm_defines=USG
861bb6c1
JL
3366 use_collect2=yes
3367 extra_headers=math-68881.h
3368 ;;
3369 m68k-tti-*)
3370 tm_file=m68k/pbb.h
f6cb0e63
JL
3371 xm_file="xm-alloca.h ${xm_file}"
3372 xm_defines=USG
861bb6c1
JL
3373 extra_headers=math-68881.h
3374 ;;
3375 m68k-crds-unos*)
f6cb0e63
JL
3376 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3377 xm_defines="USG unos"
861bb6c1
JL
3378 xmake_file=m68k/x-crds
3379 tm_file=m68k/crds.h
861bb6c1
JL
3380 use_collect2=yes
3381 extra_headers=math-68881.h
3382 ;;
3383 m68k-cbm-sysv4*) # Commodore variant of V.4.
3384 tm_file=m68k/amix.h
f6cb0e63
JL
3385 xm_file="xm-alloca.h ${xm_file}"
3386 xm_defines="USG FULL_PROTOTYPES"
861bb6c1
JL
3387 xmake_file=m68k/x-amix
3388 tmake_file=t-svr4
3389 extra_parts="crtbegin.o crtend.o"
3390 extra_headers=math-68881.h
0a95276e 3391 float_format=m68k
861bb6c1
JL
3392 ;;
3393 m68k-ccur-rtu)
3394 tm_file=m68k/ccur-GAS.h
3395 xmake_file=m68k/x-ccur
3396 extra_headers=math-68881.h
3397 use_collect2=yes
0a95276e 3398 float_format=m68k
861bb6c1
JL
3399 ;;
3400 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
3401 tm_file=m68k/hp3bsd44.h
3402 xmake_file=m68k/x-hp3bsd44
3403 use_collect2=yes
3404 extra_headers=math-68881.h
0a95276e 3405 float_format=m68k
861bb6c1
JL
3406 ;;
3407 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
3408 tm_file=m68k/hp3bsd.h
3409 use_collect2=yes
3410 extra_headers=math-68881.h
0a95276e 3411 float_format=m68k
861bb6c1
JL
3412 ;;
3413 m68k-isi-bsd*)
3414 if [ x$with_fp = xno ]
3415 then
3416 tm_file=m68k/isi-nfp.h
3417 else
3418 tm_file=m68k/isi.h
0a95276e 3419 float_format=m68k
861bb6c1
JL
3420 fi
3421 use_collect2=yes
3422 extra_headers=math-68881.h
3423 ;;
3424 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
f6cb0e63
JL
3425 xm_file="xm_alloca.h ${xm_file}"
3426 xm_defines="USG NO_SYS_SIGLIST"
861bb6c1
JL
3427 if [ x$gas = xyes ]
3428 then
3429 xmake_file=m68k/x-hp320g
3430 tm_file=m68k/hp320g.h
3431 else
3432 xmake_file=m68k/x-hp320
3433 tm_file=m68k/hpux7.h
3434 fi
861bb6c1
JL
3435 install_headers_dir=install-headers-cpio
3436 use_collect2=yes
3437 extra_headers=math-68881.h
0a95276e 3438 float_format=m68k
861bb6c1
JL
3439 ;;
3440 m68k-hp-hpux*) # HP 9000 series 300
f6cb0e63
JL
3441 xm_file="xm_alloca.h ${xm_file}"
3442 xm_defines="USG NO_SYS_SIGLIST"
861bb6c1
JL
3443 if [ x$gas = xyes ]
3444 then
3445 xmake_file=m68k/x-hp320g
3446 tm_file=m68k/hp320g.h
3447 else
3448 xmake_file=m68k/x-hp320
3449 tm_file=m68k/hp320.h
3450 fi
861bb6c1
JL
3451 install_headers_dir=install-headers-cpio
3452 use_collect2=yes
3453 extra_headers=math-68881.h
0a95276e 3454 float_format=m68k
861bb6c1
JL
3455 ;;
3456 m68k-sun-mach*)
3457 tm_file=m68k/sun3mach.h
3458 use_collect2=yes
3459 extra_headers=math-68881.h
0a95276e 3460 float_format=m68k
861bb6c1
JL
3461 ;;
3462 m68k-sony-newsos3*)
3463 if [ x$gas = xyes ]
3464 then
3465 tm_file=m68k/news3gas.h
3466 else
3467 tm_file=m68k/news3.h
3468 fi
3469 use_collect2=yes
3470 extra_headers=math-68881.h
0a95276e 3471 float_format=m68k
861bb6c1
JL
3472 ;;
3473 m68k-sony-bsd* | m68k-sony-newsos*)
3474 if [ x$gas = xyes ]
3475 then
3476 tm_file=m68k/newsgas.h
3477 else
3478 tm_file=m68k/news.h
3479 fi
3480 use_collect2=yes
3481 extra_headers=math-68881.h
0a95276e 3482 float_format=m68k
861bb6c1
JL
3483 ;;
3484 m68k-next-nextstep2*)
3485 tm_file=m68k/next21.h
f6cb0e63 3486 xm_file="m68k/xm-next.h ${xm_file}"
861bb6c1
JL
3487 tmake_file=m68k/t-next
3488 xmake_file=m68k/x-next
3489 extra_objs=nextstep.o
3490 extra_headers=math-68881.h
3491 use_collect2=yes
0a95276e 3492 float_format=m68k
861bb6c1
JL
3493 ;;
3494 m68k-next-nextstep3*)
3495 tm_file=m68k/next.h
f6cb0e63 3496 xm_file="m68k/xm-next.h ${xm_file}"
861bb6c1
JL
3497 tmake_file=m68k/t-next
3498 xmake_file=m68k/x-next
3499 extra_objs=nextstep.o
3500 extra_headers=math-68881.h
0a95276e 3501 float_format=m68k
861bb6c1
JL
3502 if [ x$enable_threads = xyes ]; then
3503 thread_file='mach'
3504 fi
3505 ;;
3506 m68k-sun-sunos3*)
3507 if [ x$with_fp = xno ]
3508 then
3509 tm_file=m68k/sun3n3.h
3510 else
3511 tm_file=m68k/sun3o3.h
0a95276e 3512 float_format=m68k
861bb6c1
JL
3513 fi
3514 use_collect2=yes
3515 extra_headers=math-68881.h
3516 ;;
3517 m68k-sun-sunos*) # For SunOS 4 (the default).
3518 if [ x$with_fp = xno ]
3519 then
3520 tm_file=m68k/sun3n.h
3521 else
3522 tm_file=m68k/sun3.h
0a95276e 3523 float_format=m68k
861bb6c1 3524 fi
861bb6c1
JL
3525 use_collect2=yes
3526 extra_headers=math-68881.h
3527 ;;
3528 m68k-wrs-vxworks*)
3529 tm_file=m68k/vxm68k.h
3530 tmake_file=m68k/t-vxworks68
3531 extra_headers=math-68881.h
7cc34889 3532 thread_file='vxworks'
0a95276e 3533 float_format=m68k
861bb6c1
JL
3534 ;;
3535 m68k-*-aout*)
3536 tmake_file=m68k/t-m68kbare
3537 tm_file="m68k/m68k-aout.h libgloss.h"
3538 extra_headers=math-68881.h
0a95276e 3539 float_format=m68k
861bb6c1
JL
3540 ;;
3541 m68k-*-coff*)
3542 tmake_file=m68k/t-m68kbare
3543 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
3544 extra_headers=math-68881.h
0a95276e 3545 float_format=m68k
861bb6c1
JL
3546 ;;
3547 m68k-*-lynxos*)
3548 if [ x$gas = xyes ]
3549 then
3550 tm_file=m68k/lynx.h
3551 else
3552 tm_file=m68k/lynx-ng.h
3553 fi
3554 xm_file=m68k/xm-lynx.h
3555 xmake_file=x-lynx
3556 tmake_file=m68k/t-lynx
3557 extra_headers=math-68881.h
0a95276e 3558 float_format=m68k
861bb6c1 3559 ;;
58600d24 3560 m68k*-*-netbsd*)
861bb6c1 3561 tm_file=m68k/netbsd.h
58600d24 3562 xm_file="xm-netbsd.h ${xm_file}"
be1ed94f 3563 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 3564 fixincludes=fixinc.wrap
861bb6c1 3565 tmake_file=t-netbsd
0a95276e 3566 float_format=m68k
861bb6c1
JL
3567 ;;
3568 m68k-*-sysv3*) # Motorola m68k's running system V.3
f6cb0e63
JL
3569 xm_file="xm-alloca.h ${xm_file}"
3570 xm_defines=USG
861bb6c1
JL
3571 xmake_file=m68k/x-m68kv
3572 extra_parts="crtbegin.o crtend.o"
3573 extra_headers=math-68881.h
0a95276e 3574 float_format=m68k
861bb6c1
JL
3575 ;;
3576 m68k-*-sysv4*) # Motorola m68k's running system V.4
3577 tm_file=m68k/m68kv4.h
f6cb0e63
JL
3578 xm_file="xm-alloca.h ${xm_file}"
3579 xm_defines=USG
861bb6c1
JL
3580 tmake_file=t-svr4
3581 extra_parts="crtbegin.o crtend.o"
3582 extra_headers=math-68881.h
0a95276e 3583 float_format=m68k
861bb6c1 3584 ;;
956d6950 3585 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
f6cb0e63 3586 # with a.out format
861bb6c1
JL
3587 xmake_file=x-linux
3588 tm_file=m68k/linux-aout.h
3589 tmake_file="t-linux-aout m68k/t-linux-aout"
956d6950 3590 fixincludes=Makefile.in # The headers are ok already.
861bb6c1 3591 extra_headers=math-68881.h
0a95276e 3592 float_format=m68k
861bb6c1
JL
3593 gnu_ld=yes
3594 ;;
956d6950 3595 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
f6cb0e63
JL
3596 # with ELF format using the
3597 # GNU/Linux C library 5
3598 xmake_file=x-linux
861bb6c1
JL
3599 tm_file=m68k/linux.h
3600 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
3601 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
956d6950 3602 fixincludes=Makefile.in # The headers are ok already.
861bb6c1 3603 extra_headers=math-68881.h
0a95276e 3604 float_format=m68k
861bb6c1
JL
3605 gnu_ld=yes
3606 ;;
956d6950 3607 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
f6cb0e63
JL
3608 # with ELF format using glibc 2
3609 # aka the GNU/Linux C library 6.
3610 xmake_file=x-linux
861bb6c1
JL
3611 tm_file=m68k/linux.h
3612 tmake_file="t-linux m68k/t-linux"
3613 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
956d6950 3614 fixincludes=Makefile.in # The headers are ok already.
861bb6c1 3615 extra_headers=math-68881.h
0a95276e 3616 float_format=m68k
861bb6c1
JL
3617 gnu_ld=yes
3618 if [ x$enable_threads = xyes ]; then
3619 thread_file='posix'
3620 fi
3621 ;;
3622 m68k-*-psos*)
3623 tmake_file=m68k/t-m68kbare
3624 tm_file=m68k/m68k-psos.h
3625 extra_headers=math-68881.h
0a95276e 3626 float_format=m68k
861bb6c1
JL
3627 ;;
3628 m68k-*-rtems*)
3629 tmake_file="m68k/t-m68kbare t-rtems"
3630 tm_file=m68k/rtems.h
3631 extra_headers=math-68881.h
0a95276e 3632 float_format=m68k
861bb6c1
JL
3633 ;;
3634
3635 m88k-dg-dgux*)
3636 case $machine in
3637 m88k-dg-dguxbcs*)
3638 tm_file=m88k/dguxbcs.h
3639 tmake_file=m88k/t-dguxbcs
3640 ;;
3641 *)
3642 tm_file=m88k/dgux.h
3643 tmake_file=m88k/t-dgux
3644 ;;
3645 esac
3646 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
861bb6c1
JL
3647 xmake_file=m88k/x-dgux
3648 if [ x$gas = xyes ]
3649 then
3650 tmake_file=m88k/t-dgux-gas
3651 fi
3652 fixincludes=fixinc.dgux
3653 ;;
3654 m88k-dolphin-sysv3*)
3655 tm_file=m88k/dolph.h
3656 extra_parts="crtbegin.o crtend.o"
f6cb0e63 3657 xm_file="m88k/xm-sysv3.h ${xm_file}"
861bb6c1
JL
3658 xmake_file=m88k/x-dolph
3659 if [ x$gas = xyes ]
3660 then
3661 tmake_file=m88k/t-m88k-gas
3662 fi
3663 ;;
3664 m88k-tektronix-sysv3)
3665 tm_file=m88k/tekXD88.h
3666 extra_parts="crtbegin.o crtend.o"
f6cb0e63 3667 xm_file="m88k/xm-sysv3.h ${xm_file}"
861bb6c1
JL
3668 xmake_file=m88k/x-tekXD88
3669 if [ x$gas = xyes ]
3670 then
3671 tmake_file=m88k/t-m88k-gas
3672 fi
3673 ;;
3674 m88k-*-aout*)
3675 tm_file=m88k/m88k-aout.h
3676 ;;
3677 m88k-*-coff*)
3678 tm_file=m88k/m88k-coff.h
3679 tmake_file=m88k/t-bug
3680 ;;
3681 m88k-*-luna*)
3682 tm_file=m88k/luna.h
3683 extra_parts="crtbegin.o crtend.o"
3684 if [ x$gas = xyes ]
3685 then
3686 tmake_file=m88k/t-luna-gas
3687 else
3688 tmake_file=m88k/t-luna
3689 fi
3690 ;;
3691 m88k-*-sysv3*)
3692 tm_file=m88k/sysv3.h
3693 extra_parts="crtbegin.o crtend.o"
f6cb0e63 3694 xm_file="m88k/xm-sysv3.h ${xm_file}"
861bb6c1
JL
3695 xmake_file=m88k/x-sysv3
3696 if [ x$gas = xyes ]
3697 then
3698 tmake_file=m88k/t-m88k-gas
3699 fi
3700 ;;
3701 m88k-*-sysv4*)
3702 tm_file=m88k/sysv4.h
3703 extra_parts="crtbegin.o crtend.o"
3704 xmake_file=m88k/x-sysv4
3705 tmake_file=m88k/t-sysv4
3706 ;;
3707 mips-sgi-irix6*) # SGI System V.4., IRIX 6
3708 tm_file=mips/iris6.h
3709 xm_file=mips/xm-iris6.h
861bb6c1
JL
3710 fixincludes=fixinc.irix
3711 xmake_file=mips/x-iris6
3712 tmake_file=mips/t-iris6
3713 if [ x$enable_threads = xyes ]; then
3714 thread_file='irix'
3715 fi
3716 ;;
98bd9f0f
DB
3717 mips-wrs-vxworks)
3718 tm_file="mips/elf.h libgloss.h"
3719 tmake_file=mips/t-ecoff
3720 gas=yes
3721 gnu_ld=yes
3722 extra_parts="crtbegin.o crtend.o"
3723# thread_file='vxworks'
3724 ;;
861bb6c1 3725 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
f6cb0e63 3726 tm_file="mips/iris6.h mips/cross64.h"
74c55ab0
JW
3727 xm_defines=USG
3728 xm_file="mips/xm-iris5.h"
861bb6c1
JL
3729 fixincludes=Makefile.in
3730 xmake_file=mips/x-iris
3731 tmake_file=mips/t-cross64
3732 # See comment in mips/iris[56].h files.
3733 use_collect2=yes
3734 if [ x$enable_threads = xyes ]; then
3735 thread_file='irix'
3736 fi
3737 ;;
3738 mips-sni-sysv4)
3739 if [ x$gas = xyes ]
3740 then
3741 if [ x$stabs = xyes ]
3742 then
3743 tm_file=mips/iris5gdb.h
3744 else
f6cb0e63 3745 tm_file="mips/sni-svr4.h mips/sni-gas.h"
861bb6c1
JL
3746 fi
3747 else
3748 tm_file=mips/sni-svr4.h
3749 fi
f6cb0e63 3750 xm_defines=USG
861bb6c1
JL
3751 xmake_file=mips/x-sni-svr4
3752 tmake_file=mips/t-mips-gas
3753 if [ x$gnu_ld != xyes ]
3754 then
3755 use_collect2=yes
3756 fi
861bb6c1
JL
3757 ;;
3758 mips-sgi-irix5*) # SGI System V.4., IRIX 5
3759 if [ x$gas = xyes ]
3760 then
f6cb0e63 3761 tm_file="mips/iris5.h mips/iris5gas.h"
861bb6c1
JL
3762 if [ x$stabs = xyes ]
3763 then
3764 tm_file="${tm_file} dbx.h"
3765 fi
3766 else
3767 tm_file=mips/iris5.h
3768 fi
74c55ab0
JW
3769 xm_defines=USG
3770 xm_file="mips/xm-iris5.h"
861bb6c1
JL
3771 fixincludes=fixinc.irix
3772 xmake_file=mips/x-iris
3773 # mips-tfile doesn't work yet
3774 tmake_file=mips/t-mips-gas
3775 # See comment in mips/iris5.h file.
3776 use_collect2=yes
3777 if [ x$enable_threads = xyes ]; then
3778 thread_file='irix'
3779 fi
3780 ;;
3781 mips-sgi-irix4loser*) # Mostly like a MIPS.
f6cb0e63 3782 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
861bb6c1
JL
3783 if [ x$stabs = xyes ]; then
3784 tm_file="${tm_file} dbx.h"
3785 fi
f6cb0e63 3786 xm_defines=USG
861bb6c1
JL
3787 xmake_file=mips/x-iris
3788 if [ x$gas = xyes ]
3789 then
3790 tmake_file=mips/t-mips-gas
3791 else
3792 extra_passes="mips-tfile mips-tdump"
3793 fi
3794 if [ x$gnu_ld != xyes ]
3795 then
3796 use_collect2=yes
3797 fi
3798 if [ x$enable_threads = xyes ]; then
3799 thread_file='irix'
3800 fi
3801 ;;
3802 mips-sgi-irix4*) # Mostly like a MIPS.
f6cb0e63 3803 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
861bb6c1
JL
3804 if [ x$stabs = xyes ]; then
3805 tm_file="${tm_file} dbx.h"
3806 fi
f6cb0e63 3807 xm_defines=USG
861bb6c1
JL
3808 xmake_file=mips/x-iris
3809 if [ x$gas = xyes ]
3810 then
3811 tmake_file=mips/t-mips-gas
3812 else
3813 extra_passes="mips-tfile mips-tdump"
3814 fi
3815 if [ x$gnu_ld != xyes ]
3816 then
3817 use_collect2=yes
3818 fi
3819 if [ x$enable_threads = xyes ]; then
3820 thread_file='irix'
3821 fi
3822 ;;
3823 mips-sgi-*) # Mostly like a MIPS.
f6cb0e63 3824 tm_file="mips/iris3.h ${tm_file}"
861bb6c1
JL
3825 if [ x$stabs = xyes ]; then
3826 tm_file="${tm_file} dbx.h"
3827 fi
f6cb0e63 3828 xm_defines=USG
861bb6c1
JL
3829 xmake_file=mips/x-iris3
3830 if [ x$gas = xyes ]
3831 then
3832 tmake_file=mips/t-mips-gas
3833 else
3834 extra_passes="mips-tfile mips-tdump"
3835 fi
3836 if [ x$gnu_ld != xyes ]
3837 then
3838 use_collect2=yes
3839 fi
3840 ;;
3841 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
f6cb0e63 3842 tm_file="mips/osfrose.h ${tm_file}"
861bb6c1
JL
3843 xmake_file=mips/x-osfrose
3844 tmake_file=mips/t-osfrose
3845 extra_objs=halfpic.o
3846 use_collect2=yes
3847 ;;
3848 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
3849 tm_file=mips/dec-osf1.h
3850 if [ x$stabs = xyes ]; then
3851 tm_file="${tm_file} dbx.h"
3852 fi
3853 xmake_file=mips/x-dec-osf1
3854 if [ x$gas = xyes ]
3855 then
3856 tmake_file=mips/t-mips-gas
3857 else
3858 tmake_file=mips/t-ultrix
3859 extra_passes="mips-tfile mips-tdump"
3860 fi
3861 if [ x$gnu_ld != xyes ]
3862 then
3863 use_collect2=yes
3864 fi
3865 ;;
3866 mips-dec-bsd*) # Decstation running 4.4 BSD
3867 tm_file=mips/dec-bsd.h
3868 fixincludes=
3869 if [ x$gas = xyes ]
3870 then
3871 tmake_file=mips/t-mips-gas
3872 else
3873 tmake_file=mips/t-ultrix
3874 extra_passes="mips-tfile mips-tdump"
3875 fi
3876 if [ x$gnu_ld != xyes ]
3877 then
3878 use_collect2=yes
3879 fi
3880 ;;
58600d24 3881 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
861bb6c1 3882 tm_file=mips/netbsd.h
58600d24 3883 xm_file="xm-netbsd.h ${xm_file}"
be1ed94f 3884 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 3885 fixincludes=fixinc.wrap
861bb6c1 3886 tmake_file=t-netbsd
861bb6c1
JL
3887 ;;
3888 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
f6cb0e63 3889 tm_file="mips/news4.h ${tm_file}"
861bb6c1
JL
3890 if [ x$stabs = xyes ]; then
3891 tm_file="${tm_file} dbx.h"
3892 fi
3893 if [ x$gas = xyes ]
3894 then
3895 tmake_file=mips/t-mips-gas
3896 else
3897 extra_passes="mips-tfile mips-tdump"
3898 fi
3899 if [ x$gnu_ld != xyes ]
3900 then
3901 use_collect2=yes
3902 fi
3903 xmake_file=mips/x-sony
3904 ;;
3905 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
3906 # That is based on svr4.
3907 # t-svr4 is not right because this system doesn't use ELF.
f6cb0e63 3908 tm_file="mips/news5.h ${tm_file}"
861bb6c1
JL
3909 if [ x$stabs = xyes ]; then
3910 tm_file="${tm_file} dbx.h"
3911 fi
f6cb0e63
JL
3912 xm_file="xm-siglist.h ${xm_file}"
3913 xm_defines=USG
861bb6c1
JL
3914 if [ x$gas = xyes ]
3915 then
3916 tmake_file=mips/t-mips-gas
3917 else
3918 extra_passes="mips-tfile mips-tdump"
3919 fi
3920 if [ x$gnu_ld != xyes ]
3921 then
3922 use_collect2=yes
3923 fi
3924 ;;
3925 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
f6cb0e63 3926 tm_file="mips/svr4-5.h mips/svr4-t.h"
861bb6c1
JL
3927 if [ x$stabs = xyes ]; then
3928 tm_file="${tm_file} dbx.h"
3929 fi
f6cb0e63
JL
3930 xm_file="xm-siglist.h ${xm_file}"
3931 xm_defines=USG
861bb6c1
JL
3932 xmake_file=mips/x-sysv
3933 if [ x$gas = xyes ]
3934 then
3935 tmake_file=mips/t-mips-gas
3936 extra_parts="crtbegin.o crtend.o"
3937 else
3938 tmake_file=mips/t-mips
3939 extra_passes="mips-tfile mips-tdump"
3940 fi
3941 if [ x$gnu_ld != xyes ]
3942 then
3943 use_collect2=yes
3944 fi
861bb6c1
JL
3945 ;;
3946 mips-*-ultrix* | mips-dec-mach3) # Decstation.
f6cb0e63 3947 tm_file="mips/ultrix.h ${tm_file}"
861bb6c1
JL
3948 if [ x$stabs = xyes ]; then
3949 tm_file="${tm_file} dbx.h"
3950 fi
3951 xmake_file=mips/x-ultrix
3952 if [ x$gas = xyes ]
3953 then
3954 tmake_file=mips/t-mips-gas
3955 else
3956 tmake_file=mips/t-ultrix
3957 extra_passes="mips-tfile mips-tdump"
3958 fi
3959 if [ x$gnu_ld != xyes ]
3960 then
3961 use_collect2=yes
3962 fi
3963 ;;
3964 mips-*-riscos[56789]bsd*)
3965 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
3966 if [ x$stabs = xyes ]; then
3967 tm_file="${tm_file} dbx.h"
3968 fi
3969 if [ x$gas = xyes ]
3970 then
3971 tmake_file=mips/t-bsd-gas
3972 else
3973 tmake_file=mips/t-bsd
3974 extra_passes="mips-tfile mips-tdump"
3975 fi
3976 if [ x$gnu_ld != xyes ]
3977 then
3978 use_collect2=yes
3979 fi
861bb6c1
JL
3980 ;;
3981 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
f6cb0e63 3982 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
861bb6c1
JL
3983 if [ x$stabs = xyes ]; then
3984 tm_file="${tm_file} dbx.h"
3985 fi
3986 if [ x$gas = xyes ]
3987 then
3988 tmake_file=mips/t-bsd-gas
3989 else
3990 tmake_file=mips/t-bsd
3991 extra_passes="mips-tfile mips-tdump"
3992 fi
3993 if [ x$gnu_ld != xyes ]
3994 then
3995 use_collect2=yes
3996 fi
861bb6c1
JL
3997 ;;
3998 mips-*-riscos[56789]sysv4*)
3999 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4000 if [ x$stabs = xyes ]; then
4001 tm_file="${tm_file} dbx.h"
4002 fi
f6cb0e63 4003 xm_file="xm-siglist.h ${xm_file}"
861bb6c1
JL
4004 xmake_file=mips/x-sysv
4005 if [ x$gas = xyes ]
4006 then
4007 tmake_file=mips/t-svr4-gas
4008 else
4009 tmake_file=mips/t-svr4
4010 extra_passes="mips-tfile mips-tdump"
4011 fi
4012 if [ x$gnu_ld != xyes ]
4013 then
4014 use_collect2=yes
4015 fi
861bb6c1
JL
4016 ;;
4017 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
f6cb0e63 4018 tm_file="mips/svr4-4.h ${tm_file}"
861bb6c1
JL
4019 if [ x$stabs = xyes ]; then
4020 tm_file="${tm_file} dbx.h"
4021 fi
f6cb0e63 4022 xm_defines=USG
861bb6c1
JL
4023 xmake_file=mips/x-sysv
4024 if [ x$gas = xyes ]
4025 then
4026 tmake_file=mips/t-svr4-gas
4027 else
4028 tmake_file=mips/t-svr4
4029 extra_passes="mips-tfile mips-tdump"
4030 fi
4031 if [ x$gnu_ld != xyes ]
4032 then
4033 use_collect2=yes
4034 fi
861bb6c1
JL
4035 ;;
4036 mips-*-riscos[56789]sysv*)
4037 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4038 if [ x$stabs = xyes ]; then
4039 tm_file="${tm_file} dbx.h"
4040 fi
f6cb0e63 4041 xm_defines=USG
861bb6c1
JL
4042 xmake_file=mips/x-sysv
4043 if [ x$gas = xyes ]
4044 then
4045 tmake_file=mips/t-svr3-gas
4046 else
4047 tmake_file=mips/t-svr3
4048 extra_passes="mips-tfile mips-tdump"
4049 fi
4050 if [ x$gnu_ld != xyes ]
4051 then
4052 use_collect2=yes
4053 fi
861bb6c1
JL
4054 ;;
4055 mips-*-sysv* | mips-*-riscos*sysv*)
f6cb0e63 4056 tm_file="mips/svr3-4.h ${tm_file}"
861bb6c1
JL
4057 if [ x$stabs = xyes ]; then
4058 tm_file="${tm_file} dbx.h"
4059 fi
f6cb0e63 4060 xm_defines=USG
861bb6c1
JL
4061 xmake_file=mips/x-sysv
4062 if [ x$gas = xyes ]
4063 then
4064 tmake_file=mips/t-svr3-gas
4065 else
4066 tmake_file=mips/t-svr3
4067 extra_passes="mips-tfile mips-tdump"
4068 fi
4069 if [ x$gnu_ld != xyes ]
4070 then
4071 use_collect2=yes
4072 fi
861bb6c1
JL
4073 ;;
4074 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4075 tm_file=mips/mips-5.h
4076 if [ x$stabs = xyes ]; then
4077 tm_file="${tm_file} dbx.h"
4078 fi
4079 if [ x$gas = xyes ]
4080 then
4081 tmake_file=mips/t-mips-gas
4082 else
4083 extra_passes="mips-tfile mips-tdump"
4084 fi
4085 if [ x$gnu_ld != xyes ]
4086 then
4087 use_collect2=yes
4088 fi
861bb6c1
JL
4089 ;;
4090 mips-*-gnu*)
4091 ;;
4092 mipsel-*-ecoff*)
4093 tm_file=mips/ecoffl.h
4094 if [ x$stabs = xyes ]; then
4095 tm_file="${tm_file} dbx.h"
4096 fi
4097 tmake_file=mips/t-ecoff
4098 ;;
4099 mips-*-ecoff*)
1be12a4a 4100 tm_file="gofast.h mips/ecoff.h"
861bb6c1
JL
4101 if [ x$stabs = xyes ]; then
4102 tm_file="${tm_file} dbx.h"
4103 fi
4104 tmake_file=mips/t-ecoff
861bb6c1
JL
4105 ;;
4106 mipsel-*-elf*)
4107 tm_file="mips/elfl.h libgloss.h"
4108 tmake_file=mips/t-ecoff
4109 ;;
4110 mips-*-elf*)
4111 tm_file="mips/elf.h libgloss.h"
4112 tmake_file=mips/t-ecoff
4113 ;;
4114 mips64el-*-elf*)
4115 tm_file="mips/elfl64.h libgloss.h"
4116 tmake_file=mips/t-ecoff
4117 ;;
4118 mips64orionel-*-elf*)
f6cb0e63 4119 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
861bb6c1
JL
4120 tmake_file=mips/t-ecoff
4121 ;;
4122 mips64-*-elf*)
4123 tm_file="mips/elf64.h libgloss.h"
4124 tmake_file=mips/t-ecoff
4125 ;;
4126 mips64orion-*-elf*)
f6cb0e63 4127 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
861bb6c1
JL
4128 tmake_file=mips/t-ecoff
4129 ;;
4130 mips64orion-*-rtems*)
6e9856ba 4131 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
861bb6c1
JL
4132 tmake_file="mips/t-ecoff t-rtems"
4133 ;;
e9a25f70
JL
4134 mipstx39el-*-elf*)
4135 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
09e4daf5 4136 tmake_file=mips/t-r3900
e9a25f70
JL
4137 ;;
4138 mipstx39-*-elf*)
4139 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
09e4daf5 4140 tmake_file=mips/t-r3900
e9a25f70 4141 ;;
861bb6c1
JL
4142 mips-*-*) # Default MIPS RISC-OS 4.0.
4143 if [ x$stabs = xyes ]; then
4144 tm_file="${tm_file} dbx.h"
4145 fi
4146 if [ x$gas = xyes ]
4147 then
4148 tmake_file=mips/t-mips-gas
4149 else
4150 extra_passes="mips-tfile mips-tdump"
4151 fi
4152 if [ x$gnu_ld != xyes ]
4153 then
4154 use_collect2=yes
4155 fi
4156 ;;
4157 mn10200-*-*)
4158 cpu_type=mn10200
4159 tm_file="mn10200/mn10200.h"
4160 if [ x$stabs = xyes ]
4161 then
4162 tm_file="${tm_file} dbx.h"
4163 fi
4164 use_collect2=no
4165 ;;
4166 mn10300-*-*)
4167 cpu_type=mn10300
4168 tm_file="mn10300/mn10300.h"
4169 if [ x$stabs = xyes ]
4170 then
4171 tm_file="${tm_file} dbx.h"
4172 fi
4173 use_collect2=no
4174 ;;
4175 ns32k-encore-bsd*)
4176 tm_file=ns32k/encore.h
4177 use_collect2=yes
4178 ;;
4179 ns32k-sequent-bsd*)
4180 tm_file=ns32k/sequent.h
4181 use_collect2=yes
4182 ;;
4183 ns32k-tek6100-bsd*)
4184 tm_file=ns32k/tek6100.h
861bb6c1
JL
4185 use_collect2=yes
4186 ;;
4187 ns32k-tek6200-bsd*)
4188 tm_file=ns32k/tek6200.h
861bb6c1
JL
4189 use_collect2=yes
4190 ;;
4191# This has not been updated to GCC 2.
4192# ns32k-ns-genix*)
f6cb0e63 4193# xm_defines=USG
861bb6c1
JL
4194# xmake_file=ns32k/x-genix
4195# tm_file=ns32k/genix.h
861bb6c1
JL
4196# use_collect2=yes
4197# ;;
4198 ns32k-merlin-*)
4199 tm_file=ns32k/merlin.h
4200 use_collect2=yes
4201 ;;
4202 ns32k-pc532-mach*)
4203 tm_file=ns32k/pc532-mach.h
4204 use_collect2=yes
4205 ;;
4206 ns32k-pc532-minix*)
4207 tm_file=ns32k/pc532-min.h
f6cb0e63
JL
4208 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
4209 xm_defines=USG
861bb6c1
JL
4210 use_collect2=yes
4211 ;;
58600d24 4212 ns32k-*-netbsd*)
861bb6c1 4213 tm_file=ns32k/netbsd.h
58600d24 4214 xm_file="xm-netbsd.h ${xm_file}"
be1ed94f 4215 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 4216 fixincludes=fixinc.wrap
861bb6c1
JL
4217 tmake_file=t-netbsd
4218 ;;
4219 pdp11-*-bsd)
4220 tm_file="${tm_file} pdp11/2bsd.h"
4221 ;;
4222 pdp11-*-*)
4223 ;;
4224 pyramid-*-*)
4225 cpu_type=pyr
4226 xmake_file=pyr/x-pyr
4227 use_collect2=yes
4228 ;;
4229 romp-*-aos*)
4230 use_collect2=yes
4231 ;;
4232 romp-*-mach*)
4233 xmake_file=romp/x-mach
4234 use_collect2=yes
4235 ;;
c55dcc7d
FF
4236 powerpc-*-beos*)
4237 cpu_type=rs6000
4238 tm_file=rs6000/beos.h
4239 xm_file=rs6000/xm-beos.h
4240 tmake_file=rs6000/t-beos
4241 xmake_file=rs6000/x-beos
4242 ;;
861bb6c1
JL
4243 powerpc-*-sysv* | powerpc-*-elf*)
4244 tm_file=rs6000/sysv4.h
f6cb0e63
JL
4245 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4246 xm_defines="USG POSIX"
861bb6c1
JL
4247 extra_headers=ppc-asm.h
4248 if [ x$gas = xyes ]
4249 then
4250 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4251 else
4252 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4253 fi
4254 xmake_file=rs6000/x-sysv4
4255 ;;
4256 powerpc-*-eabiaix*)
4257 tm_file=rs6000/eabiaix.h
4258 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4259 fixincludes=Makefile.in
4260 extra_headers=ppc-asm.h
4261 ;;
4262 powerpc-*-eabisim*)
4263 tm_file=rs6000/eabisim.h
4264 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4265 fixincludes=Makefile.in
4266 extra_headers=ppc-asm.h
4267 ;;
4268 powerpc-*-eabi*)
4269 tm_file=rs6000/eabi.h
4270 if [ x$gas = xyes ]
4271 then
4272 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4273 else
4274 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4275 fi
4276 fixincludes=Makefile.in
4277 extra_headers=ppc-asm.h
4278 ;;
4279 powerpc-*-rtems*)
4280 tm_file=rs6000/rtems.h
4281 if [ x$gas = xyes ]
4282 then
4283 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4284 else
4285 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4286 fi
4287 fixincludes=Makefile.in
4288 extra_headers=ppc-asm.h
4289 ;;
ce514f57
FS
4290 powerpc-*-linux-gnulibc1)
4291 tm_file=rs6000/linux.h
4292 xm_file=rs6000/xm-sysv4.h
4293 out_file=rs6000/rs6000.c
4294 if [ x$gas = xyes ]
4295 then
4296 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4297 else
4298 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4299 fi
4300 xmake_file=x-linux
4301 fixincludes=Makefile.in
4302 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4303 extra_headers=ppc-asm.h
4304 if [ x$enable_threads = xyes ]; then
4305 thread_file='posix'
4306 fi
4307 ;;
861bb6c1
JL
4308 powerpc-*-linux-gnu*)
4309 tm_file=rs6000/linux.h
f6cb0e63
JL
4310 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4311 xm_defines="USG ${xm_defines}"
861bb6c1
JL
4312 out_file=rs6000/rs6000.c
4313 if [ x$gas = xyes ]
4314 then
4315 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4316 else
4317 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4318 fi
4319 xmake_file=x-linux
4320 fixincludes=Makefile.in
4321 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4322 extra_headers=ppc-asm.h
4323 if [ x$enable_threads = xyes ]; then
4324 thread_file='posix'
4325 fi
4326 ;;
7cc34889 4327 powerpc-wrs-vxworks*)
861bb6c1 4328 cpu_type=rs6000
f6cb0e63
JL
4329 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4330 xm_defines="USG POSIX"
861bb6c1
JL
4331 tm_file=rs6000/vxppc.h
4332 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4333 extra_headers=ppc-asm.h
7cc34889 4334 thread_file='vxworks'
861bb6c1
JL
4335 ;;
4336 powerpcle-*-sysv* | powerpcle-*-elf*)
4337 tm_file=rs6000/sysv4le.h
f6cb0e63
JL
4338 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4339 xm_defines="USG POSIX"
861bb6c1
JL
4340 if [ x$gas = xyes ]
4341 then
4342 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4343 else
4344 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4345 fi
4346 xmake_file=rs6000/x-sysv4
4347 extra_headers=ppc-asm.h
4348 ;;
4349 powerpcle-*-eabisim*)
4350 tm_file=rs6000/eabilesim.h
4351 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4352 fixincludes=Makefile.in
4353 extra_headers=ppc-asm.h
4354 ;;
4355 powerpcle-*-eabi*)
4356 tm_file=rs6000/eabile.h
4357 if [ x$gas = xyes ]
4358 then
4359 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4360 else
4361 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4362 fi
4363 fixincludes=Makefile.in
4364 extra_headers=ppc-asm.h
4365 ;;
4366 powerpcle-*-winnt* )
4367 tm_file=rs6000/win-nt.h
4368 tmake_file=rs6000/t-winnt
4369# extra_objs=pe.o
4370 fixincludes=Makefile.in
4371 if [ x$enable_threads = xyes ]; then
4372 thread_file='win32'
4373 fi
4374 extra_headers=ppc-asm.h
4375 ;;
4376 powerpcle-*-pe | powerpcle-*-cygwin32)
4377 tm_file=rs6000/cygwin32.h
f6cb0e63 4378 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
861bb6c1
JL
4379 tmake_file=rs6000/t-winnt
4380 xmake_file=rs6000/x-cygwin32
4381# extra_objs=pe.o
4382 fixincludes=Makefile.in
4383 if [ x$enable_threads = xyes ]; then
4384 thread_file='win32'
4385 fi
4386 exeext=.exe
4387 extra_headers=ppc-asm.h
4388 ;;
4389 powerpcle-*-solaris2*)
4390 tm_file=rs6000/sol2.h
f6cb0e63
JL
4391 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4392 xm_defines="USG POSIX"
861bb6c1
JL
4393 if [ x$gas = xyes ]
4394 then
4395 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4396 else
4397 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4398 fi
4399 xmake_file=rs6000/x-sysv4
f6cb0e63
JL
4400 case $machine in
4401 *-*-solaris2.[0-4])
4402 fixincludes=fixinc.svr4;;
4403 *)
32f65aa0 4404 fixincludes=fixinc.wrap;;
f6cb0e63 4405 esac
861bb6c1
JL
4406 extra_headers=ppc-asm.h
4407 ;;
4408 rs6000-ibm-aix3.[01]*)
4409 tm_file=rs6000/aix31.h
4410 xmake_file=rs6000/x-aix31
4411 use_collect2=yes
4412 ;;
4413 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
4414 tm_file=rs6000/aix3newas.h
4415 if [ x$host != x$target ]
4416 then
4417 tmake_file=rs6000/t-xnewas
4418 else
4419 tmake_file=rs6000/t-newas
4420 fi
4421 use_collect2=yes
4422 ;;
0a95276e 4423 rs6000-ibm-aix4.[12].* | powerpc-ibm-aix4.[12].*)
861bb6c1
JL
4424 tm_file=rs6000/aix41.h
4425 if [ x$host != x$target ]
4426 then
4427 tmake_file=rs6000/t-xnewas
4428 else
4429 tmake_file=rs6000/t-newas
4430 fi
0a95276e
JL
4431 xmake_file=rs6000/x-aix41
4432 use_collect2=yes
4433 ;;
4434 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
4435 tm_file=rs6000/aix43.h
4436 if [ x$host != x$target ]
4437 then
4438 tmake_file=rs6000/t-xaix43
4439 else
4440 tmake_file=rs6000/t-aix43
4441 fi
4442 xmake_file=rs6000/x-aix43
4443 use_collect2=yes
4444 ;;
4445 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
4446 tm_file=rs6000/aix43.h
4447 if [ x$host != x$target ]
4448 then
4449 tmake_file=rs6000/t-xaix43
4450 else
4451 tmake_file=rs6000/t-aix43
4452 fi
4453 xmake_file=rs6000/x-aix43
861bb6c1
JL
4454 use_collect2=yes
4455 ;;
4456 rs6000-ibm-aix*)
4457 use_collect2=yes
4458 ;;
4459 rs6000-bull-bosx)
4460 use_collect2=yes
4461 ;;
4462 rs6000-*-mach*)
4463 tm_file=rs6000/mach.h
f6cb0e63 4464 xm_file="${xm_file} rs6000/xm-mach.h"
861bb6c1
JL
4465 xmake_file=rs6000/x-mach
4466 use_collect2=yes
4467 ;;
4468 rs6000-*-lynxos*)
4469 tm_file=rs6000/lynx.h
4470 xm_file=rs6000/xm-lynx.h
4471 tmake_file=rs6000/t-rs6000
4472 xmake_file=rs6000/x-lynx
4473 use_collect2=yes
4474 ;;
4475 sh-*-elf*)
4476 tm_file=sh/elf.h
4477 float_format=sh
4478 ;;
b098f56d
JS
4479 sh-*-rtemself*)
4480 tmake_file="sh/t-sh t-rtems"
4481 tm_file=sh/rtemself.h
4482 float_format=sh
4483 ;;
5d84b57e
JS
4484 sh-*-rtems*)
4485 tmake_file="sh/t-sh t-rtems"
4486 tm_file=sh/rtems.h
4487 float_format=sh
4488 ;;
861bb6c1
JL
4489 sh-*-*)
4490 float_format=sh
4491 ;;
4492 sparc-tti-*)
4493 tm_file=sparc/pbd.h
f6cb0e63
JL
4494 xm_file="xm-alloca.h ${xm_file}"
4495 xm_defines=USG
861bb6c1
JL
4496 ;;
4497 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
4498 tm_file=sparc/vxsparc.h
4499 tmake_file=sparc/t-vxsparc
4500 use_collect2=yes
7cc34889 4501 thread_file='vxworks'
861bb6c1
JL
4502 ;;
4503 sparc-*-aout*)
4504 tmake_file=sparc/t-sparcbare
4505 tm_file="sparc/aout.h libgloss.h"
4506 ;;
4507 sparc-*-netbsd*)
4508 tm_file=sparc/netbsd.h
58600d24 4509 xm_file="xm-netbsd.h ${xm_file}"
be1ed94f 4510 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 4511 fixincludes=fixinc.wrap
861bb6c1
JL
4512 tmake_file=t-netbsd
4513 ;;
4514 sparc-*-bsd*)
4515 tm_file=sparc/bsd.h
4516 ;;
ac52b80b
DE
4517 sparc-*-elf*)
4518 tm_file=sparc/elf.h
4519 tmake_file=sparc/t-elf
4520 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4521 #float_format=i128
4522 float_format=i64
4523 ;;
956d6950 4524 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
f6cb0e63 4525 xm_file="${xm_file} sparc/xm-linux.h"
861bb6c1
JL
4526 tm_file=sparc/linux-aout.h
4527 xmake_file=x-linux
4528 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
4529 gnu_ld=yes
4530 ;;
956d6950 4531 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
f6cb0e63 4532 xm_file="${xm_file} sparc/xm-linux.h"
26b551af 4533 xmake_file=x-linux
861bb6c1 4534 tm_file=sparc/linux.h
3e88bbdb 4535 tmake_file="t-linux t-linux-gnulibc1"
861bb6c1
JL
4536 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4537 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
4538 gnu_ld=yes
4539 ;;
956d6950 4540 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
f6cb0e63 4541 xm_file="${xm_file} sparc/xm-linux.h"
26b551af 4542 xmake_file=x-linux
861bb6c1 4543 tm_file=sparc/linux.h
3e88bbdb 4544 tmake_file="t-linux"
861bb6c1
JL
4545 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4546 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
4547 gnu_ld=yes
4548 if [ x$enable_threads = xyes ]; then
4549 thread_file='posix'
4550 fi
4551 ;;
4552 sparc-*-lynxos*)
4553 if [ x$gas = xyes ]
4554 then
4555 tm_file=sparc/lynx.h
4556 else
4557 tm_file=sparc/lynx-ng.h
4558 fi
4559 xm_file=sparc/xm-lynx.h
4560 tmake_file=sparc/t-sunos41
4561 xmake_file=x-lynx
4562 ;;
4563 sparc-*-rtems*)
4564 tmake_file="sparc/t-sparcbare t-rtems"
4565 tm_file=sparc/rtems.h
4566 ;;
4567 sparc-*-solaris2*)
0a9bdce3
PE
4568 if [ x$gnu_ld = xyes ]
4569 then
4570 tm_file=sparc/sol2.h
4571 else
4572 tm_file=sparc/sol2-sld.h
4573 fi
0b3d64d2
JL
4574 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4575 xm_defines="USG POSIX"
861bb6c1
JL
4576 tmake_file=sparc/t-sol2
4577 xmake_file=sparc/x-sysv4
4578 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
f6cb0e63
JL
4579 case $machine in
4580 *-*-solaris2.[0-4])
4581 fixincludes=fixinc.svr4;;
4582 *)
32f65aa0 4583 fixincludes=fixinc.wrap;;
f6cb0e63 4584 esac
e9a25f70 4585 float_format=i128
f24af81b
TT
4586 if [ x${enable_threads} = x ]; then
4587 enable_threads=$have_pthread_h
4588 if [ x${enable_threads} = x ]; then
4589 enable_threads=$have_thread_h
4590 fi
4591 fi
4592 if [ x${enable_threads} = xyes ]; then
4593 if [ x${have_pthread_h} = xyes ]; then
4594 thread_file='posix'
4595 else
861bb6c1 4596 thread_file='solaris'
f24af81b 4597 fi
861bb6c1
JL
4598 fi
4599 ;;
4600 sparc-*-sunos4.0*)
4601 tm_file=sparc/sunos4.h
4602 tmake_file=sparc/t-sunos40
4603 use_collect2=yes
4604 ;;
4605 sparc-*-sunos4*)
4606 tm_file=sparc/sunos4.h
4607 tmake_file=sparc/t-sunos41
4608 use_collect2=yes
ca55abae
JM
4609 if [ x$gas = xyes ]; then
4610 tm_file="${tm_file} sparc/sun4gas.h"
4611 fi
861bb6c1
JL
4612 ;;
4613 sparc-*-sunos3*)
4614 tm_file=sparc/sun4o3.h
4615 use_collect2=yes
4616 ;;
4617 sparc-*-sysv4*)
4618 tm_file=sparc/sysv4.h
f6cb0e63
JL
4619 xm_file="xm-siglist.h sparc/xm-sysv4.h"
4620 xm_defines="USG POSIX"
861bb6c1
JL
4621 tmake_file=t-svr4
4622 xmake_file=sparc/x-sysv4
4623 extra_parts="crtbegin.o crtend.o"
4624 ;;
4625 sparc-*-vxsim*)
f5963e61
JL
4626 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4627 xm_defines="USG POSIX"
861bb6c1
JL
4628 tm_file=sparc/vxsim.h
4629 tmake_file=sparc/t-vxsparc
4630 xmake_file=sparc/x-sysv4
4631 ;;
4632 sparclet-*-aout*)
4633 tm_file="sparc/splet.h libgloss.h"
4634 tmake_file=sparc/t-splet
4635 ;;
4636 sparclite-*-coff*)
4637 tm_file="sparc/litecoff.h libgloss.h"
4638 tmake_file=sparc/t-sparclite
4639 ;;
4640 sparclite-*-aout*)
4641 tm_file="sparc/lite.h aoutos.h libgloss.h"
4642 tmake_file=sparc/t-sparclite
4643 ;;
4644 sparc64-*-aout*)
4645 tmake_file=sparc/t-sp64
4646 tm_file=sparc/sp64-aout.h
4647 ;;
4648 sparc64-*-elf*)
4649 tmake_file=sparc/t-sp64
4650 tm_file=sparc/sp64-elf.h
4651 extra_parts="crtbegin.o crtend.o"
4652 ;;
956d6950 4653 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
26b551af
DE
4654 tmake_file=sparc/t-sp64
4655 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
4656 tm_file=sparc/linux64.h
4657 xmake_file=x-linux
956d6950 4658 fixincludes=Makefile.in # The headers are ok already.
26b551af
DE
4659 gnu_ld=yes
4660 ;;
861bb6c1
JL
4661# This hasn't been upgraded to GCC 2.
4662# tahoe-harris-*) # Harris tahoe, using COFF.
4663# tm_file=tahoe/harris.h
4664# ;;
4665# tahoe-*-bsd*) # tahoe running BSD
4666# ;;
e98e406f
NC
4667 thumb-*-coff* | thumbel-*-coff*)
4668 tm_file=arm/tcoff.h
4669 out_file=arm/thumb.c
4670 xm_file=arm/xm-thumb.h
4671 md_file=arm/thumb.md
4672 tmake_file=arm/t-thumb
3ecb16a2 4673 fixincludes=Makefile.in # There is nothing to fix
e98e406f 4674 ;;
861bb6c1
JL
4675# This hasn't been upgraded to GCC 2.
4676# tron-*-*)
4677# cpu_type=gmicro
4678# use_collect2=yes
4679# ;;
f84271d9
JL
4680 v850-*-*)
4681 cpu_type=v850
4682 tm_file="v850/v850.h"
4683 xm_file="v850/xm-v850.h"
62db76ee 4684 tmake_file=v850/t-v850
f84271d9
JL
4685 if [ x$stabs = xyes ]
4686 then
4687 tm_file="${tm_file} dbx.h"
4688 fi
4689 use_collect2=no
4690 ;;
861bb6c1
JL
4691 vax-*-bsd*) # vaxen running BSD
4692 use_collect2=yes
4693 float_format=vax
4694 ;;
4695 vax-*-sysv*) # vaxen running system V
4696 tm_file="${tm_file} vax/vaxv.h"
f6cb0e63 4697 xm_defines=USG
861bb6c1
JL
4698 float_format=vax
4699 ;;
4700 vax-*-netbsd*)
4701 tm_file="${tm_file} netbsd.h vax/netbsd.h"
58600d24 4702 xm_file="xm-netbsd.h ${xm_file}"
be1ed94f 4703 # On NetBSD, the headers are already okay, except for math.h.
32f65aa0 4704 fixincludes=fixinc.wrap
861bb6c1
JL
4705 tmake_file=t-netbsd
4706 float_format=vax
4707 ;;
4708 vax-*-ultrix*) # vaxen running ultrix
4709 tm_file="${tm_file} vax/ultrix.h"
4710 use_collect2=yes
4711 float_format=vax
4712 ;;
4713 vax-*-vms*) # vaxen running VMS
4714 xm_file=vax/xm-vms.h
4715 tm_file=vax/vms.h
4716 float_format=vax
4717 ;;
4718 vax-*-*) # vax default entry
4719 float_format=vax
4720 ;;
4721 we32k-att-sysv*)
4722 xm_file="${xm_file} xm-svr3"
4723 use_collect2=yes
4724 ;;
4725 *)
4726 echo "Configuration $machine not supported" 1>&2
4727 exit 1
4728 ;;
4729 esac
4730
4731 case $machine in
4732 *-*-linux-gnu*)
f6cb0e63 4733 ;; # Existing GNU/Linux systems do not use the GNU setup.
861bb6c1
JL
4734 *-*-gnu*)
4735 # On the GNU system, the setup is just about the same on
4736 # each different CPU. The specific machines that GNU
4737 # supports are matched above and just set $cpu_type.
f6cb0e63 4738 xm_file="xm-gnu.h ${xm_file}"
861bb6c1
JL
4739 tm_file=${cpu_type}/gnu.h
4740 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4741 # GNU always uses ELF.
4742 elf=yes
4743 # GNU tools are the only tools.
4744 gnu_ld=yes
4745 gas=yes
4746 # On GNU, the headers are already okay.
4747 fixincludes=Makefile.in
4748 xmake_file=x-linux # These details are the same as Linux.
4749 tmake_file=t-gnu # These are not.
4750 ;;
4751 *-*-sysv4*)
4752 fixincludes=fixinc.svr4
4753 xmake_try_sysv=x-sysv
861bb6c1
JL
4754 install_headers_dir=install-headers-cpio
4755 ;;
4756 *-*-sysv*)
861bb6c1
JL
4757 install_headers_dir=install-headers-cpio
4758 ;;
4759 esac
4760
f6cb0e63 4761 # Distinguish i[34567]86
861bb6c1
JL
4762 # Also, do not run mips-tfile on MIPS if using gas.
4763 # Process --with-cpu= for PowerPC/rs6000
4764 target_cpu_default2=
4765 case $machine in
4766 i486-*-*)
4767 target_cpu_default2=1
4768 ;;
4769 i586-*-*)
4770 target_cpu_default2=2
4771 ;;
f6cb0e63 4772 i686-*-* | i786-*-*)
861bb6c1
JL
4773 target_cpu_default2=3
4774 ;;
4775 alpha*-*-*)
4776 case $machine in
e9a25f70
JL
4777 alphaev6*)
4778 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4779 ;;
4780 alphapca56*)
fbb5ed67 4781 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
e9a25f70 4782 ;;
861bb6c1 4783 alphaev56*)
e9a25f70 4784 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
861bb6c1
JL
4785 ;;
4786 alphaev5*)
4787 target_cpu_default2="MASK_CPU_EV5"
4788 ;;
4789 esac
4790
4791 if [ x$gas = xyes ]
4792 then
c43143f6 4793 if [ "$target_cpu_default2" = "" ]
861bb6c1
JL
4794 then
4795 target_cpu_default2="MASK_GAS"
4796 else
4797 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
4798 fi
4799 fi
4800 ;;
956d6950
JL
4801 arm*-*-*)
4802 case "x$with_cpu" in
4803 x)
4804 # The most generic
4805 target_cpu_default2="TARGET_CPU_generic"
4806 ;;
4807
4808 # Distinguish cores, and major variants
4809 # arm7m doesn't exist, but D & I don't affect code
4810 xarm23678 | xarm250 | xarm67010 \
4811 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4812 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4813 | xstrongarm | xstrongarm110)
4814 target_cpu_default2="TARGET_CPU_$with_cpu"
4815 ;;
4816
4817 xyes | xno)
4818 echo "--with-cpu must be passed a value" 1>&2
4819 exit 1
4820 ;;
4821
4822 *)
4823 if [ x$pass2done = xyes ]
4824 then
4825 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4826 exit 1
4827 fi
4828 ;;
4829 esac
4830 ;;
4831
861bb6c1
JL
4832 mips*-*-ecoff* | mips*-*-elf*)
4833 if [ x$gas = xyes ]
4834 then
4835 if [ x$gnu_ld = xyes ]
4836 then
4837 target_cpu_default2=20
4838 else
4839 target_cpu_default2=16
4840 fi
4841 fi
4842 ;;
4843 mips*-*-*)
4844 if [ x$gas = xyes ]
4845 then
4846 target_cpu_default2=16
4847 fi
4848 ;;
4849 powerpc*-*-* | rs6000-*-*)
4850 case "x$with_cpu" in
4851 x)
4852 ;;
4853
4854 xcommon | xpower | xpower2 | xpowerpc | xrios \
4855 | xrios1 | xrios2 | xrsc | xrsc1 \
4856 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4857 | x403 | x505 | x801 | x821 | x823 | x860)
f24b370a 4858 target_cpu_default2="\"$with_cpu\""
861bb6c1
JL
4859 ;;
4860
4861 xyes | xno)
4862 echo "--with-cpu must be passed a value" 1>&2
4863 exit 1
4864 ;;
4865
4866 *)
956d6950
JL
4867 if [ x$pass2done = xyes ]
4868 then
4869 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4870 exit 1
4871 fi
861bb6c1
JL
4872 ;;
4873 esac
4874 ;;
4875 sparc*-*-*)
4876 case ".$with_cpu" in
4877 .)
4878 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
4879 ;;
ac52b80b 4880 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
861bb6c1
JL
4881 target_cpu_default2="TARGET_CPU_$with_cpu"
4882 ;;
4883 *)
956d6950
JL
4884 if [ x$pass2done = xyes ]
4885 then
4886 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4887 exit 1
4888 fi
861bb6c1
JL
4889 ;;
4890 esac
4891 ;;
4892 esac
4893
c43143f6 4894 if [ "$target_cpu_default2" != "" ]
861bb6c1 4895 then
c43143f6 4896 if [ "$target_cpu_default" != "" ]
861bb6c1
JL
4897 then
4898 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
4899 else
4900 target_cpu_default=$target_cpu_default2
4901 fi
4902 fi
4903
4904 # No need for collect2 if we have the GNU linker.
d460fb3c
JM
4905 # Actually, there is now; GNU ld doesn't handle the EH info or
4906 # collecting for shared libraries.
ca8c3b37
JM
4907 #case x$gnu_ld in
4908 #xyes)
4909 # use_collect2=
4910 # ;;
4911 #esac
861bb6c1
JL
4912
4913# Save data on machine being used to compile GCC in build_xm_file.
4914# Save data on host machine in vars host_xm_file and host_xmake_file.
4915 if [ x$pass1done = x ]
4916 then
4917 if [ x"$xm_file" = x ]
4918 then build_xm_file=$cpu_type/xm-$cpu_type.h
4919 else build_xm_file=$xm_file
4920 fi
f6cb0e63 4921 build_xm_defines=$xm_defines
861bb6c1
JL
4922 build_install_headers_dir=$install_headers_dir
4923 build_exeext=$exeext
4924 pass1done=yes
4925 else
4926 if [ x$pass2done = x ]
4927 then
4928 if [ x"$xm_file" = x ]
4929 then host_xm_file=$cpu_type/xm-$cpu_type.h
4930 else host_xm_file=$xm_file
4931 fi
f6cb0e63 4932 host_xm_defines=$xm_defines
861bb6c1
JL
4933 if [ x"$xmake_file" = x ]
4934 then xmake_file=$cpu_type/x-$cpu_type
4935 fi
4936 host_xmake_file="$xmake_file"
4937 host_truncate_target=$truncate_target
4938 host_extra_gcc_objs=$extra_gcc_objs
4939 host_extra_objs=$extra_host_objs
6e26218f 4940 host_exeext=$exeext
861bb6c1
JL
4941 pass2done=yes
4942 fi
4943 fi
4944done
4945
4946extra_objs="${host_extra_objs} ${extra_objs}"
4947
4948# Default the target-machine variables that were not explicitly set.
4949if [ x"$tm_file" = x ]
4950then tm_file=$cpu_type/$cpu_type.h; fi
4951
4952if [ x$extra_headers = x ]
4953then extra_headers=; fi
4954
4955if [ x"$xm_file" = x ]
4956then xm_file=$cpu_type/xm-$cpu_type.h; fi
4957
e98e406f
NC
4958if [ x$md_file = x ]
4959then md_file=$cpu_type/$cpu_type.md; fi
861bb6c1
JL
4960
4961if [ x$out_file = x ]
4962then out_file=$cpu_type/$cpu_type.c; fi
4963
4964if [ x"$tmake_file" = x ]
4965then tmake_file=$cpu_type/t-$cpu_type
4966fi
4967
4968if [ x$float_format = x ]
4969then float_format=i64
4970fi
4971
128f7968
RH
4972if [ x$enable_haifa = x ]
4973then
4974 case $target in
e85b2d66 4975 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
128f7968
RH
4976 enable_haifa=yes;;
4977 esac
4978fi
4979
861bb6c1
JL
4980# Say what files are being used for the output code and MD file.
4981echo "Using \`$srcdir/config/$out_file' to output insns."
4982echo "Using \`$srcdir/config/$md_file' as machine description file."
4983
4984count=a
4985for f in $tm_file; do
4986 count=${count}x
4987done
4988if [ $count = ax ]; then
4989 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4990else
4991 echo "Using the following target machine macro files:"
4992 for f in $tm_file; do
4993 echo " $srcdir/config/$f"
4994 done
4995fi
4996
4997count=a
4998for f in $host_xm_file; do
4999 count=${count}x
5000done
5001if [ $count = ax ]; then
5002 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5003else
5004 echo "Using the following host machine macro files:"
5005 for f in $host_xm_file; do
5006 echo " $srcdir/config/$f"
5007 done
5008fi
5009
5010if [ "$host_xm_file" != "$build_xm_file" ]; then
5011 count=a
5012 for f in $build_xm_file; do
5013 count=${count}x
5014 done
5015 if [ $count = ax ]; then
5016 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5017 else
5018 echo "Using the following build machine macro files:"
5019 for f in $build_xm_file; do
5020 echo " $srcdir/config/$f"
5021 done
5022 fi
5023fi
5024
a851212a
JW
5025if [ x$thread_file = x ]; then
5026 if [ x$target_thread_file != x ]; then
5027 thread_file=$target_thread_file
5028 else
5029 thread_file='single'
5030 fi
861bb6c1
JL
5031fi
5032
5033# Set up the header files.
5034# $links is the list of header files to create.
5035# $vars is the list of shell variables with file names to include.
b7cb92ad 5036# auto-host.h is the file containing items generated by autoconf and is
e9a25f70 5037# the first file included by config.h.
f6cb0e63 5038null_defines=
b7cb92ad 5039host_xm_file="auto-host.h ${host_xm_file}"
db81d74a 5040
b7cb92ad 5041# If host=build, it is correct to have hconfig include auto-host.h
db81d74a
RH
5042# as well. If host!=build, we are in error and need to do more
5043# work to find out the build config parameters.
5044if [ x$host = x$build ]
5045then
b7cb92ad
JL
5046 build_xm_file="auto-host.h ${build_xm_file}"
5047else
5048 # We create a subdir, then run autoconf in the subdir.
5049 # To prevent recursion we set host and build for the new
5050 # invocation of configure to the build for this invocation
5051 # of configure.
5052 tempdir=build.$$
5053 rm -rf $tempdir
5054 mkdir $tempdir
5055 cd $tempdir
5056 case ${srcdir} in
5057 /*) realsrcdir=${srcdir};;
5058 *) realsrcdir=../${srcdir};;
5059 esac
fe81dd69 5060 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
b7cb92ad
JL
5061 --target=$target --host=$build --build=$build
5062
5063 # We just finished tests for the build machine, so rename
5064 # the file auto-build.h in the gcc directory.
5065 mv auto-host.h ../auto-build.h
5066 cd ..
5067 rm -rf $tempdir
5068 build_xm_file="auto-build.h ${build_xm_file}"
db81d74a
RH
5069fi
5070
861bb6c1 5071vars="host_xm_file tm_file xm_file build_xm_file"
e9a25f70 5072links="config.h tm.h tconfig.h hconfig.h"
f6cb0e63 5073defines="host_xm_defines null_defines xm_defines build_xm_defines"
861bb6c1
JL
5074
5075rm -f config.bak
5076if [ -f config.status ]; then mv -f config.status config.bak; fi
5077
5078# Make the links.
5079while [ -n "$vars" ]
5080do
861bb6c1
JL
5081 set $vars; var=$1; shift; vars=$*
5082 set $links; link=$1; shift; links=$*
f6cb0e63 5083 set $defines; define=$1; shift; defines=$*
861bb6c1
JL
5084
5085 rm -f $link
5086
5087 # Define TARGET_CPU_DEFAULT if the system wants one.
5088 # This substitutes for lots of *.h files.
c43143f6 5089 if [ "$target_cpu_default" != "" -a $link = tm.h ]
861bb6c1 5090 then
8fbf199e 5091 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
861bb6c1
JL
5092 fi
5093
5094 for file in `eval echo '$'$var`; do
5095 echo "#include \"$file\"" >>$link
5096 done
f6cb0e63
JL
5097
5098 for def in `eval echo '$'$define`; do
5099 echo "#ifndef $def" >>$link
5100 echo "#define $def" >>$link
5101 echo "#endif" >>$link
5102 done
861bb6c1
JL
5103done
5104
5105# Truncate the target if necessary
5106if [ x$host_truncate_target != x ]; then
5107 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5108fi
5109
f1943b77
MH
5110# Get the version trigger filename from the toplevel
5111if [ "${with_gcc_version_trigger+set}" = set ]; then
5112 gcc_version_trigger=$with_gcc_version_trigger
5113else
5114 gcc_version_trigger=${srcdir}/version.c
5115fi
5116gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
861bb6c1 5117
861bb6c1
JL
5118# Get an absolute path to the GCC top-level source directory
5119holddir=`pwd`
5120cd $srcdir
5121topdir=`pwd`
5122cd $holddir
5123
5124# Conditionalize the makefile for this host machine.
5125# Make-host contains the concatenation of all host makefile fragments
5126# [there can be more than one]. This file is built by configure.frag.
5127host_overrides=Make-host
5128dep_host_xmake_file=
5129for f in .. ${host_xmake_file}
5130do
5131 if [ -f ${srcdir}/config/$f ]
5132 then
5133 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5134 fi
5135done
5136
5137# Conditionalize the makefile for this target machine.
5138# Make-target contains the concatenation of all host makefile fragments
5139# [there can be more than one]. This file is built by configure.frag.
5140target_overrides=Make-target
5141dep_tmake_file=
5142for f in .. ${tmake_file}
5143do
5144 if [ -f ${srcdir}/config/$f ]
5145 then
5146 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5147 fi
5148done
5149
5150# If the host doesn't support symlinks, modify CC in
5151# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5152# Otherwise, we can use "CC=$(CC)".
5153rm -f symtest.tem
f6cb0e63 5154if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
861bb6c1
JL
5155then
5156 cc_set_by_configure="\$(CC)"
5157 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5158else
f6cb0e63
JL
5159 rm -f symtest.tem
5160 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5161 then
5162 symbolic_link="cp -p"
5163 else
5164 symbolic_link="cp"
5165 fi
861bb6c1
JL
5166 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5167 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5168fi
5169rm -f symtest.tem
5170
5171out_object_file=`basename $out_file .c`.o
5172
5173tm_file_list=
5174for f in $tm_file; do
5175 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
5176done
5177
5178host_xm_file_list=
5179for f in $host_xm_file; do
b7cb92ad 5180 if test $f != "auto-host.h"; then
db81d74a
RH
5181 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
5182 else
b7cb92ad 5183 host_xm_file_list="${host_xm_file_list} auto-host.h"
db81d74a 5184 fi
861bb6c1
JL
5185done
5186
5187build_xm_file_list=
5188for f in $build_xm_file; do
b7cb92ad
JL
5189 if test $f != "auto-build.h"; then
5190 if test $f != "auto-host.h"; then
5191 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
5192 else
5193 build_xm_file_list="${build_xm_file_list} auto-host.h"
5194 fi
db81d74a 5195 else
b7cb92ad 5196 build_xm_file_list="${build_xm_file_list} auto-build.h"
db81d74a 5197 fi
861bb6c1
JL
5198done
5199
5200# Define macro CROSS_COMPILE in compilation
5201# if this is a cross-compiler.
5202# Also use all.cross instead of all.internal
5203# and add cross-make to Makefile.
5204cross_overrides="/dev/null"
5205if [ x$host != x$target ]
5206then
5207 cross_defines="CROSS=-DCROSS_COMPILE"
5208 cross_overrides="${topdir}/cross-make"
5209fi
5210
5211# When building gcc with a cross-compiler, we need to fix a few things.
5212# This must come after cross-make as we want all.build to override
5213# all.cross.
5214build_overrides="/dev/null"
5215if [ x$build != x$host ]
5216then
5217 build_overrides="${topdir}/build-make"
5218fi
5219
5220# Expand extra_headers to include complete path.
5221# This substitutes for lots of t-* files.
5222extra_headers_list=
5223if [ "x$extra_headers" = x ]
5224then true
5225else
5226 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5227 for file in $extra_headers;
5228 do
5229 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5230 done
5231fi
5232
5233# Add a definition of USE_COLLECT2 if system wants one.
5234# Also tell toplev.c what to do.
5235# This substitutes for lots of t-* files.
5236if [ x$use_collect2 = x ]
5237then
5238 will_use_collect2=
5239 maybe_use_collect2=
5240else
10da1131 5241 will_use_collect2="collect2"
861bb6c1
JL
5242 maybe_use_collect2="-DUSE_COLLECT2"
5243fi
5244
5245# NEED TO CONVERT
5246# Set MD_DEPS if the real md file is in md.pre-cpp.
5247# Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5248# for line oriented comments, so we must always use a GNU cpp. If
5249# building gcc with a cross compiler, use the cross compiler just
5250# built. Otherwise, we can use the cpp just built.
5251md_file_sub=
5252if [ "x$md_cppflags" = x ]
5253then
5254 md_file_sub=$srcdir/config/$md_file
5255else
5256 md_file=md
5257fi
5258
5259# If we have gas in the build tree, make a link to it.
5260if [ -f ../gas/Makefile ]; then
6e26218f 5261 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
861bb6c1
JL
5262fi
5263
4b95eb49
JL
5264# If we have nm in the build tree, make a link to it.
5265if [ -f ../binutils/Makefile ]; then
5266 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
5267fi
5268
861bb6c1 5269# If we have ld in the build tree, make a link to it.
992d1248
DE
5270if [ -f ../ld/Makefile ]; then
5271# if [[ x$use_collect2 = x ]]; then
6e26218f 5272# rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
aa32d841 5273# else
6e26218f 5274 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
aa32d841 5275# fi
992d1248 5276fi
861bb6c1 5277
9e423e6d
JW
5278# Figure out what assembler alignment features are present.
5279echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
58600d24 5280echo "configure:5281: checking assembler alignment features" >&5
9e423e6d
JW
5281gcc_cv_as=
5282gcc_cv_as_alignment_features=
a2c9d57c 5283gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'`
9e423e6d
JW
5284if [ -x as$host_exeext ]; then
5285 # Build using assembler in the current directory.
5286 gcc_cv_as=./as$host_exeext
a2c9d57c 5287elif [ -f $gcc_cv_as_gas_srcdir/configure.in ]; then
9e423e6d 5288 # Single tree build which includes gas.
a2c9d57c 5289 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
9e423e6d
JW
5290 do
5291 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5292 if [ x$gcc_cv_gas_version != x ]; then
5293 break
5294 fi
5295 done
5296 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5297 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
0b9d02c6
JL
5298 if [ x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x ]; then
5299 # Gas version 2.6 and later support for .balign and .p2align.
5300 # bytes to skip when using .p2align.
5301 if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
5302 gcc_cv_as_alignment_features=".balign and .p2align"
5303 cat >> confdefs.h <<\EOF
00ccc16d
JL
5304#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5305EOF
5306
0b9d02c6
JL
5307 fi
5308 # Gas version 2.8 and later support specifying the maximum
5309 # bytes to skip when using .p2align.
5310 if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
5311 gcc_cv_as_alignment_features=".p2align including maximum skip"
5312 cat >> confdefs.h <<\EOF
9e423e6d
JW
5313#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5314EOF
5315
0b9d02c6 5316 fi
9e423e6d
JW
5317 fi
5318elif [ x$host = x$target ]; then
5319 # Native build.
5320 gcc_cv_as=as$host_exeext
5321fi
5322if [ x$gcc_cv_as != x ]; then
00ccc16d
JL
5323 # Check if we have .balign and .p2align
5324 echo ".balign 4" > conftest.s
5325 echo ".p2align 2" >> conftest.s
5326 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5327 gcc_cv_as_alignment_features=".balign and .p2align"
5328 cat >> confdefs.h <<\EOF
5329#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5330EOF
5331
5332 fi
5333 rm -f conftest.s conftest.o
9e423e6d
JW
5334 # Check if specifying the maximum bytes to skip when
5335 # using .p2align is supported.
5336 echo ".p2align 4,,7" > conftest.s
5337 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5338 gcc_cv_as_alignment_features=".p2align including maximum skip"
5339 cat >> confdefs.h <<\EOF
5340#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5341EOF
5342
5343 fi
5344 rm -f conftest.s conftest.o
5345fi
5346echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5347
861bb6c1
JL
5348# Figure out what language subdirectories are present.
5349subdirs=
5350for lang in ${srcdir}/*/config-lang.in ..
5351do
5352 case $lang in
5353 ..) ;;
5354 # The odd quoting in the next line works around
5355 # an apparent bug in bash 1.12 on linux.
5356 ${srcdir}/[*]/config-lang.in) ;;
5357 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5358 esac
5359done
5360
f24af81b
TT
5361# Make gthr-default.h if we have a thread file.
5362gthread_flags=
5363if [ $thread_file != single ]; then
5364 rm -f gthr-default.h
db0d1ed9 5365 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
f24af81b
TT
5366 gthread_flags=-DHAVE_GTHR_DEFAULT
5367fi
5368
5369
861bb6c1
JL
5370# Make empty files to contain the specs and options for each language.
5371# Then add #include lines to for a compiler that has specs and/or options.
5372
5373lang_specs_files=
5374lang_options_files=
5375rm -f specs.h options.h
5376touch specs.h options.h
5377for subdir in . $subdirs
5378do
5379 if [ -f $srcdir/$subdir/lang-specs.h ]; then
5380 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5381 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5382 fi
5383 if [ -f $srcdir/$subdir/lang-options.h ]; then
5384 echo "#include \"$subdir/lang-options.h\"" >>options.h
5385 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
5386 fi
5387done
5388
5389# These (without "all_") are set in each config-lang.in.
5390# `language' must be a single word so is spelled singularly.
5391all_languages=
5392all_boot_languages=
5393all_compilers=
5394all_stagestuff=
5395all_diff_excludes=
5396all_outputs=Makefile
5397# List of language makefile fragments.
5398all_lang_makefiles=
5399all_headers=
5400all_lib2funcs=
5401
5402# Add the language fragments.
5403# Languages are added via two mechanisms. Some information must be
5404# recorded in makefile variables, these are defined in config-lang.in.
5405# We accumulate them and plug them into the main Makefile.
5406# The other mechanism is a set of hooks for each of the main targets
5407# like `clean', `install', etc.
5408
5409language_fragments="Make-lang"
5410language_hooks="Make-hooks"
5411oldstyle_subdirs=
5412
5413for s in .. $subdirs
5414do
5415 if [ $s != ".." ]
5416 then
5417 language=
5418 boot_language=
5419 compilers=
5420 stagestuff=
5421 diff_excludes=
5422 headers=
5423 outputs=
5424 lib2funcs=
5425 . ${srcdir}/$s/config-lang.in
5426 if [ "x$language" = x ]
5427 then
5428 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5429 exit 1
5430 fi
5431 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5432 all_languages="$all_languages $language"
5433 if [ "x$boot_language" = xyes ]
5434 then
5435 all_boot_languages="$all_boot_languages $language"
5436 fi
5437 all_compilers="$all_compilers $compilers"
5438 all_stagestuff="$all_stagestuff $stagestuff"
5439 all_diff_excludes="$all_diff_excludes $diff_excludes"
5440 all_headers="$all_headers $headers"
5441 all_outputs="$all_outputs $outputs"
5442 if [ x$outputs = x ]
5443 then
5444 oldstyle_subdirs="$oldstyle_subdirs $s"
5445 fi
5446 all_lib2funcs="$all_lib2funcs $lib2funcs"
5447 fi
5448done
5449
5450# Since we can't use `::' targets, we link each language in
5451# with a set of hooks, reached indirectly via lang.${target}.
5452
5453rm -f Make-hooks
5454touch Make-hooks
5455target_list="all.build all.cross start.encap rest.encap \
5456 info dvi \
5457 install-normal install-common install-info install-man \
5458 uninstall distdir \
5459 mostlyclean clean distclean extraclean maintainer-clean \
5460 stage1 stage2 stage3 stage4"
5461for t in $target_list
5462do
5463 x=
5464 for l in .. $all_languages
5465 do
5466 if [ $l != ".." ]; then
5467 x="$x $l.$t"
5468 fi
5469 done
5470 echo "lang.$t: $x" >> Make-hooks
5471done
5472
5473# If we're not building in srcdir, create .gdbinit.
5474
5475if [ ! -f Makefile.in ]; then
5476 echo "dir ." > .gdbinit
5477 echo "dir ${srcdir}" >> .gdbinit
5478 if [ x$gdb_needs_out_file_path = xyes ]
5479 then
5480 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5481 fi
5482 if [ "x$subdirs" != x ]; then
5483 for s in $subdirs
5484 do
5485 echo "dir ${srcdir}/$s" >> .gdbinit
5486 done
5487 fi
5488 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5489fi
5490
88111b26
JL
5491# Define variables host_canonical and build_canonical
5492# because some Cygnus local changes in the Makefile depend on them.
5493build_canonical=${build}
5494host_canonical=${host}
5495target_subdir=
5496if [ "${host}" != "${target}" ] ; then
5497 target_subdir=${target}/
5498fi
5499
5500
5501
5502
dec88383
DE
5503# If this is using newlib, then define inhibit_libc in
5504# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5505# libgcc.a, but that's OK because newib should have its own version of
5506# assert.h.
5507inhibit_libc=
5508if [ x$with_newlib = xyes ]; then
5509 inhibit_libc=-Dinhibit_libc
5510fi
5511
5512
8c660648
JL
5513# Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5514sched_prefix=
5515sched_cflags=
992d1248 5516if [ x$enable_haifa = xyes ]; then
8c660648
JL
5517 echo "Using the Haifa scheduler."
5518 sched_prefix=haifa-
5519 sched_cflags=-DHAIFA
5520fi
5521
5522
992d1248 5523if [ x$enable_haifa != x ]; then
8c660648
JL
5524 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5525 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
5526 if [ -f $x ]; then
5527 echo "Removing $x"
5528 rm -f $x
5529 fi
5530 done
5531fi
5532
7e717196
JL
5533# Nothing to do for FLOAT_H, float_format already handled.
5534objdir=`pwd`
5535
5536
861bb6c1
JL
5537# Process the language and host/target makefile fragments.
5538${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5539
5540# Substitute configuration variables
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
9b16d2c4 5587
e9a25f70 5588
6e26218f 5589
c8724862 5590
e061d1ce 5591
f1943b77 5592
0b9d02c6 5593
861bb6c1
JL
5594
5595
5596# Echo that links are built
5597if [ x$host = x$target ]
5598then
5599 str1="native "
5600else
5601 str1="cross-"
5602 str2=" from $host"
5603fi
5604
5605if [ x$host != x$build ]
5606then
5607 str3=" on a $build system"
5608fi
5609
5610if [ "x$str2" != x ] || [ "x$str3" != x ]
5611then
5612 str4=
5613fi
5614
5615echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5616
5617if [ "x$str2" != x ] || [ "x$str3" != x ]
5618then
5619 echo " ${str2}${str3}." 1>&2
5620fi
5621
f6cb0e63
JL
5622# Truncate the target if necessary
5623if [ x$host_truncate_target != x ]; then
5624 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5625fi
5626
861bb6c1
JL
5627# Configure the subdirectories
5628# AC_CONFIG_SUBDIRS($subdirs)
5629
5630# Create the Makefile
5631# and configure language subdirectories
5632trap '' 1 2 15
5633cat > confcache <<\EOF
5634# This file is a shell script that caches the results of configure
5635# tests run on this system so they can be shared between configure
5636# scripts and configure runs. It is not useful on other systems.
5637# If it contains results you don't want to keep, you may remove or edit it.
5638#
5639# By default, configure uses ./config.cache as the cache file,
5640# creating it if it does not exist already. You can give configure
5641# the --cache-file=FILE option to use a different cache file; that is
5642# what configure does when it calls configure scripts in
5643# subdirectories, so they share the cache.
5644# Giving --cache-file=/dev/null disables caching, for debugging configure.
5645# config.status only pays attention to the cache file if you give it the
5646# --recheck option to rerun configure.
5647#
5648EOF
5649# The following way of writing the cache mishandles newlines in values,
5650# but we know of no workaround that is simple, portable, and efficient.
5651# So, don't put newlines in cache variables' values.
5652# Ultrix sh set writes to stderr and can't be redirected directly,
5653# and sets the high bit in the cache file unless we assign to the vars.
5654(set) 2>&1 |
4e88d51b 5655 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
861bb6c1
JL
5656 *ac_space=\ *)
5657 # `set' does not quote correctly, so add quotes (double-quote substitution
5658 # turns \\\\ into \\, and sed turns \\ into \).
5659 sed -n \
5660 -e "s/'/'\\\\''/g" \
5661 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5662 ;;
5663 *)
5664 # `set' quotes correctly as required by POSIX, so do not add quotes.
5665 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5666 ;;
5667 esac >> confcache
5668if cmp -s $cache_file confcache; then
5669 :
5670else
5671 if test -w $cache_file; then
5672 echo "updating cache $cache_file"
5673 cat confcache > $cache_file
5674 else
5675 echo "not updating unwritable cache $cache_file"
5676 fi
5677fi
5678rm -f confcache
5679
5680trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5681
5682test "x$prefix" = xNONE && prefix=$ac_default_prefix
5683# Let make expand exec_prefix.
5684test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5685
5686# Any assignment to VPATH causes Sun make to only execute
5687# the first set of double-colon rules, so remove it if not needed.
5688# If there is a colon in the path, we need to keep it.
5689if test "x$srcdir" = x.; then
5690 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5691fi
5692
5693trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5694
5695DEFS=-DHAVE_CONFIG_H
5696
5697# Without the "./", some shells look in PATH for config.status.
5698: ${CONFIG_STATUS=./config.status}
5699
5700echo creating $CONFIG_STATUS
5701rm -f $CONFIG_STATUS
5702cat > $CONFIG_STATUS <<EOF
5703#! /bin/sh
5704# Generated automatically by configure.
5705# Run this file to recreate the current configuration.
5706# This directory was configured as follows,
5707# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5708#
5709# $0 $ac_configure_args
5710#
5711# Compiler output produced by configure, useful for debugging
5712# configure, is in ./config.log if it exists.
5713
5714ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5715for ac_option
5716do
5717 case "\$ac_option" in
5718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5719 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5720 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5721 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4e88d51b 5722 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
861bb6c1
JL
5723 exit 0 ;;
5724 -help | --help | --hel | --he | --h)
5725 echo "\$ac_cs_usage"; exit 0 ;;
5726 *) echo "\$ac_cs_usage"; exit 1 ;;
5727 esac
5728done
5729
5730ac_given_srcdir=$srcdir
861bb6c1 5731
b7cb92ad 5732trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
861bb6c1
JL
5733EOF
5734cat >> $CONFIG_STATUS <<EOF
5735
5736# Protect against being on the right side of a sed subst in config.status.
5737sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5738 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5739$ac_vpsub
5740$extrasub
4e88d51b 5741s%@SHELL@%$SHELL%g
861bb6c1
JL
5742s%@CFLAGS@%$CFLAGS%g
5743s%@CPPFLAGS@%$CPPFLAGS%g
5744s%@CXXFLAGS@%$CXXFLAGS%g
5745s%@DEFS@%$DEFS%g
5746s%@LDFLAGS@%$LDFLAGS%g
5747s%@LIBS@%$LIBS%g
5748s%@exec_prefix@%$exec_prefix%g
5749s%@prefix@%$prefix%g
5750s%@program_transform_name@%$program_transform_name%g
5751s%@bindir@%$bindir%g
5752s%@sbindir@%$sbindir%g
5753s%@libexecdir@%$libexecdir%g
5754s%@datadir@%$datadir%g
5755s%@sysconfdir@%$sysconfdir%g
5756s%@sharedstatedir@%$sharedstatedir%g
5757s%@localstatedir@%$localstatedir%g
5758s%@libdir@%$libdir%g
5759s%@includedir@%$includedir%g
5760s%@oldincludedir@%$oldincludedir%g
5761s%@infodir@%$infodir%g
5762s%@mandir@%$mandir%g
5763s%@host@%$host%g
5764s%@host_alias@%$host_alias%g
5765s%@host_cpu@%$host_cpu%g
5766s%@host_vendor@%$host_vendor%g
5767s%@host_os@%$host_os%g
5768s%@target@%$target%g
5769s%@target_alias@%$target_alias%g
5770s%@target_cpu@%$target_cpu%g
5771s%@target_vendor@%$target_vendor%g
5772s%@target_os@%$target_os%g
5773s%@build@%$build%g
5774s%@build_alias@%$build_alias%g
5775s%@build_cpu@%$build_cpu%g
5776s%@build_vendor@%$build_vendor%g
5777s%@build_os@%$build_os%g
e9a25f70
JL
5778s%@CC@%$CC%g
5779s%@SET_MAKE@%$SET_MAKE%g
861bb6c1
JL
5780s%@AWK@%$AWK%g
5781s%@LEX@%$LEX%g
5782s%@LEXLIB@%$LEXLIB%g
ac64120e 5783s%@LN@%$LN%g
861bb6c1
JL
5784s%@LN_S@%$LN_S%g
5785s%@RANLIB@%$RANLIB%g
5786s%@YACC@%$YACC%g
5643c767 5787s%@INSTALL@%$INSTALL%g
861bb6c1
JL
5788s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5789s%@INSTALL_DATA@%$INSTALL_DATA%g
861bb6c1 5790s%@CPP@%$CPP%g
76b4b31e
KG
5791s%@vfprintf@%$vfprintf%g
5792s%@doprint@%$doprint%g
861bb6c1 5793s%@manext@%$manext%g
992d1248 5794s%@objext@%$objext%g
f24af81b 5795s%@gthread_flags@%$gthread_flags%g
88111b26
JL
5796s%@build_canonical@%$build_canonical%g
5797s%@host_canonical@%$host_canonical%g
5798s%@target_subdir@%$target_subdir%g
dec88383 5799s%@inhibit_libc@%$inhibit_libc%g
8c660648
JL
5800s%@sched_prefix@%$sched_prefix%g
5801s%@sched_cflags@%$sched_cflags%g
7e717196 5802s%@objdir@%$objdir%g
861bb6c1
JL
5803s%@subdirs@%$subdirs%g
5804s%@all_languages@%$all_languages%g
5805s%@all_boot_languages@%$all_boot_languages%g
5806s%@all_compilers@%$all_compilers%g
5807s%@all_lang_makefiles@%$all_lang_makefiles%g
5808s%@all_stagestuff@%$all_stagestuff%g
5809s%@all_diff_excludes@%$all_diff_excludes%g
5810s%@all_lib2funcs@%$all_lib2funcs%g
5811s%@all_headers@%$all_headers%g
e061d1ce 5812s%@cpp_main@%$cpp_main%g
861bb6c1
JL
5813s%@extra_passes@%$extra_passes%g
5814s%@extra_programs@%$extra_programs%g
5815s%@extra_parts@%$extra_parts%g
5816s%@extra_c_objs@%$extra_c_objs%g
c8724862 5817s%@extra_cxx_objs@%$extra_cxx_objs%g
0b9d02c6 5818s%@extra_cpp_objs@%$extra_cpp_objs%g
861bb6c1
JL
5819s%@extra_c_flags@%$extra_c_flags%g
5820s%@extra_objs@%$extra_objs%g
5821s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5822s%@extra_headers_list@%$extra_headers_list%g
5823s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5824s%@dep_tmake_file@%$dep_tmake_file%g
5825s%@out_file@%$out_file%g
5826s%@out_object_file@%$out_object_file%g
5827s%@md_file@%$md_file%g
5828s%@tm_file_list@%$tm_file_list%g
5829s%@build_xm_file_list@%$build_xm_file_list%g
5830s%@host_xm_file_list@%$host_xm_file_list%g
5831s%@lang_specs_files@%$lang_specs_files%g
5832s%@lang_options_files@%$lang_options_files%g
5833s%@thread_file@%$thread_file%g
f1943b77
MH
5834s%@gcc_version@%$gcc_version%g
5835s%@gcc_version_trigger@%$gcc_version_trigger%g
861bb6c1
JL
5836s%@local_prefix@%$local_prefix%g
5837s%@gxx_include_dir@%$gxx_include_dir%g
5838s%@fixincludes@%$fixincludes%g
5839s%@build_install_headers_dir@%$build_install_headers_dir%g
5840s%@build_exeext@%$build_exeext%g
6e26218f 5841s%@host_exeext@%$host_exeext%g
861bb6c1
JL
5842s%@float_format@%$float_format%g
5843s%@will_use_collect2@%$will_use_collect2%g
5844s%@maybe_use_collect2@%$maybe_use_collect2%g
5845s%@cc_set_by_configure@%$cc_set_by_configure%g
5846s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9b16d2c4 5847s%@install@%$install%g
e9a25f70 5848s%@symbolic_link@%$symbolic_link%g
861bb6c1
JL
5849/@target_overrides@/r $target_overrides
5850s%@target_overrides@%%g
5851/@host_overrides@/r $host_overrides
5852s%@host_overrides@%%g
5853s%@cross_defines@%$cross_defines%g
5854/@cross_overrides@/r $cross_overrides
5855s%@cross_overrides@%%g
5856/@build_overrides@/r $build_overrides
5857s%@build_overrides@%%g
5858/@language_fragments@/r $language_fragments
5859s%@language_fragments@%%g
5860/@language_hooks@/r $language_hooks
5861s%@language_hooks@%%g
5862
5863CEOF
5864EOF
5865
5866cat >> $CONFIG_STATUS <<\EOF
5867
5868# Split the substitutions into bite-sized pieces for seds with
5869# small command number limits, like on Digital OSF/1 and HP-UX.
5870ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5871ac_file=1 # Number of current file.
5872ac_beg=1 # First line for current file.
5873ac_end=$ac_max_sed_cmds # Line after last line for current file.
5874ac_more_lines=:
5875ac_sed_cmds=""
5876while $ac_more_lines; do
5877 if test $ac_beg -gt 1; then
5878 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5879 else
5880 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5881 fi
5882 if test ! -s conftest.s$ac_file; then
5883 ac_more_lines=false
5884 rm -f conftest.s$ac_file
5885 else
5886 if test -z "$ac_sed_cmds"; then
5887 ac_sed_cmds="sed -f conftest.s$ac_file"
5888 else
5889 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5890 fi
5891 ac_file=`expr $ac_file + 1`
5892 ac_beg=$ac_end
5893 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5894 fi
5895done
5896if test -z "$ac_sed_cmds"; then
5897 ac_sed_cmds=cat
5898fi
5899EOF
5900
5901cat >> $CONFIG_STATUS <<EOF
5902
5903CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5904EOF
5905cat >> $CONFIG_STATUS <<\EOF
5906for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5908 case "$ac_file" in
5909 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5910 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5911 *) ac_file_in="${ac_file}.in" ;;
5912 esac
5913
5914 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5915
5916 # Remove last slash and all that follows it. Not all systems have dirname.
5917 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5918 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5919 # The file is in a subdirectory.
5920 test ! -d "$ac_dir" && mkdir "$ac_dir"
5921 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5922 # A "../" for each directory in $ac_dir_suffix.
5923 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5924 else
5925 ac_dir_suffix= ac_dots=
5926 fi
5927
5928 case "$ac_given_srcdir" in
5929 .) srcdir=.
5930 if test -z "$ac_dots"; then top_srcdir=.
5931 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5932 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5933 *) # Relative path.
5934 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5935 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5936 esac
5937
861bb6c1
JL
5938
5939 echo creating "$ac_file"
5940 rm -f "$ac_file"
5941 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5942 case "$ac_file" in
5943 *Makefile*) ac_comsub="1i\\
5944# $configure_input" ;;
5945 *) ac_comsub= ;;
5946 esac
5947
5948 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5949 sed -e "$ac_comsub
5950s%@configure_input@%$configure_input%g
5951s%@srcdir@%$srcdir%g
5952s%@top_srcdir@%$top_srcdir%g
861bb6c1
JL
5953" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5954fi; done
5955rm -f conftest.s*
5956
5957# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5958# NAME is the cpp macro being defined and VALUE is the value it is being given.
5959#
5960# ac_d sets the value in "#define NAME VALUE" lines.
5961ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5962ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5963ac_dC='\3'
5964ac_dD='%g'
5965# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5966ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5967ac_uB='\([ ]\)%\1#\2define\3'
5968ac_uC=' '
5969ac_uD='\4%g'
5970# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5971ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5972ac_eB='$%\1#\2define\3'
5973ac_eC=' '
5974ac_eD='%g'
5975
5976if test "${CONFIG_HEADERS+set}" != set; then
5977EOF
5978cat >> $CONFIG_STATUS <<EOF
b7cb92ad 5979 CONFIG_HEADERS="auto-host.h:config.in"
861bb6c1
JL
5980EOF
5981cat >> $CONFIG_STATUS <<\EOF
5982fi
5983for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5985 case "$ac_file" in
5986 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5987 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5988 *) ac_file_in="${ac_file}.in" ;;
5989 esac
5990
5991 echo creating $ac_file
5992
5993 rm -f conftest.frag conftest.in conftest.out
5994 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5995 cat $ac_file_inputs > conftest.in
5996
5997EOF
5998
5999# Transform confdefs.h into a sed script conftest.vals that substitutes
6000# the proper values into config.h.in to produce config.h. And first:
6001# Protect against being on the right side of a sed subst in config.status.
6002# Protect against being in an unquoted here document in config.status.
6003rm -f conftest.vals
6004cat > conftest.hdr <<\EOF
6005s/[\\&%]/\\&/g
6006s%[\\$`]%\\&%g
6007s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6008s%ac_d%ac_u%gp
6009s%ac_u%ac_e%gp
6010EOF
6011sed -n -f conftest.hdr confdefs.h > conftest.vals
6012rm -f conftest.hdr
6013
6014# This sed command replaces #undef with comments. This is necessary, for
6015# example, in the case of _POSIX_SOURCE, which is predefined and required
6016# on some systems where configure will not decide to define it.
6017cat >> conftest.vals <<\EOF
6018s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6019EOF
6020
6021# Break up conftest.vals because some shells have a limit on
6022# the size of here documents, and old seds have small limits too.
6023
6024rm -f conftest.tail
6025while :
6026do
6027 ac_lines=`grep -c . conftest.vals`
6028 # grep -c gives empty output for an empty file on some AIX systems.
6029 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6030 # Write a limited-size here document to conftest.frag.
6031 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6032 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6033 echo 'CEOF
6034 sed -f conftest.frag conftest.in > conftest.out
6035 rm -f conftest.in
6036 mv conftest.out conftest.in
6037' >> $CONFIG_STATUS
6038 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6039 rm -f conftest.vals
6040 mv conftest.tail conftest.vals
6041done
6042rm -f conftest.vals
6043
6044cat >> $CONFIG_STATUS <<\EOF
6045 rm -f conftest.frag conftest.h
6046 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6047 cat conftest.in >> conftest.h
6048 rm -f conftest.in
6049 if cmp -s $ac_file conftest.h 2>/dev/null; then
6050 echo "$ac_file is unchanged"
6051 rm -f conftest.h
6052 else
6053 # Remove last slash and all that follows it. Not all systems have dirname.
6054 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6055 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6056 # The file is in a subdirectory.
6057 test ! -d "$ac_dir" && mkdir "$ac_dir"
6058 fi
6059 rm -f $ac_file
6060 mv conftest.h $ac_file
6061 fi
6062fi; done
6063
6064EOF
6065cat >> $CONFIG_STATUS <<EOF
6066
6067host='${host}'
6068build='${build}'
6069target='${target}'
6070target_alias='${target_alias}'
6071srcdir='${srcdir}'
6072subdirs='${subdirs}'
6073oldstyle_subdirs='${oldstyle_subdirs}'
6074symbolic_link='${symbolic_link}'
6075program_transform_set='${program_transform_set}'
6076program_transform_name='${program_transform_name}'
6077dep_host_xmake_file='${dep_host_xmake_file}'
6078host_xmake_file='${host_xmake_file}'
6079dep_tmake_file='${dep_tmake_file}'
6080tmake_file='${tmake_file}'
6081thread_file='${thread_file}'
f1943b77
MH
6082gcc_version='${gcc_version}'
6083gcc_version_trigger='${gcc_version_trigger}'
861bb6c1
JL
6084local_prefix='${local_prefix}'
6085build_install_headers_dir='${build_install_headers_dir}'
6086build_exeext='${build_exeext}'
6e26218f 6087host_exeext='${host_exeext}'
7ed46111 6088out_file='${out_file}'
861bb6c1
JL
6089gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6090SET_MAKE='${SET_MAKE}'
861bb6c1
JL
6091target_list='${target_list}'
6092target_overrides='${target_overrides}'
6093host_overrides='${host_overrides}'
6094cross_defines='${cross_defines}'
6095cross_overrides='${cross_overrides}'
6096build_overrides='${build_overrides}'
6097
6098EOF
6099cat >> $CONFIG_STATUS <<\EOF
6100
6101. $srcdir/configure.lang
6102case x$CONFIG_HEADERS in
b7cb92ad 6103xauto-host.h:config.in)
861bb6c1
JL
6104echo > cstamp-h ;;
6105esac
93cf819d
BK
6106# If the host supports symlinks, point stage[1234] at ../stage[1234] so
6107# bootstrapping and the installation procedure can still use
6108# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6109# FLAGS_TO_PASS has been modified to solve the problem there.
6110# This is virtually a duplicate of what happens in configure.lang; we do
6111# an extra check to make sure this only happens if ln -s can be used.
6112if [ "$symbolic_link" = "ln -s" ]; then
6113 for d in .. ${subdirs} ; do
6114 if [ $d != .. ]; then
4e8a434e
BK
6115 STARTDIR=`pwd`
6116 cd $d
6117 for t in stage1 stage2 stage3 stage4 include
6118 do
6119 rm -f $t
6120 $symbolic_link ../$t $t 2>/dev/null
6121 done
6122 cd $STARTDIR
93cf819d
BK
6123 fi
6124 done
6125else true ; fi
861bb6c1
JL
6126
6127exit 0
6128EOF
6129chmod +x $CONFIG_STATUS
6130rm -fr confdefs* $ac_clean_files
6131test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6132