OSDN Git Service

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