OSDN Git Service

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