OSDN Git Service

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