OSDN Git Service

* g77.f-torture/compile/200005018.f: New test.
[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.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-gnu-ld           arrange to work with GNU ld."
16 ac_help="$ac_help
17   --with-ld               arrange to use the specified ld (full pathname)."
18 ac_help="$ac_help
19   --with-gnu-as           arrange to work with GNU as."
20 ac_help="$ac_help
21   --with-as               arrange to use the specified as (full pathname)."
22 ac_help="$ac_help
23   --with-stabs            arrange to use stabs instead of host debug format."
24 ac_help="$ac_help
25   --with-elf              arrange to use ELF instead of host debug format."
26 ac_help="$ac_help
27   --with-local-prefix=DIR specifies directory to put local include."
28 ac_help="$ac_help
29   --with-gxx-include-dir=DIR
30                           specifies directory to put g++ header files."
31 ac_help="$ac_help
32   --enable-checking[=LIST]
33                           enable expensive run-time checks.  With LIST,
34                           enable only specific categories of checks.
35                           Categories are: misc,tree,rtl,gc,gcac; default
36                           is misc,tree,rtl"
37 ac_help="$ac_help
38   --disable-cpp           don't provide a user-visible C preprocessor."
39 ac_help="$ac_help
40   --with-cpp-install-dir=DIR
41                           install the user visible C preprocessor in DIR
42                           (relative to PREFIX) as well as PREFIX/bin."
43 ac_help="$ac_help
44   --enable-c-mbchar       Enable multibyte characters for C and C++."
45 ac_help="$ac_help
46   --enable-threads        enable thread usage for target GCC.
47   --enable-threads=LIB    use LIB thread package for target GCC."
48 ac_help="$ac_help
49   --enable-objc-gc        enable the use of Boehm's garbage collector with
50                           the GNU Objective-C runtime."
51 ac_help="$ac_help
52   --with-dwarf2   force the default debug format to be DWARF2."
53 ac_help="$ac_help
54   --enable-nls            use Native Language Support (disabled by default)"
55 ac_help="$ac_help
56   --disable-nls           do not use Native Language Support"
57 ac_help="$ac_help
58   --with-included-gettext use the GNU gettext library included here"
59 ac_help="$ac_help
60   --with-catgets          use catgets functions if available"
61 ac_help="$ac_help
62   --disable-win32-registry
63                           Disable lookup of installation paths in the
64                          Registry on Windows hosts.
65   --enable-win32-registry Enable registry lookup (default).
66   --enable-win32-registry=KEY
67                           Use KEY instead of GCC version as the last portion
68                          of the registry key."
69 ac_help="$ac_help
70   --with-gc={simple,page} Choose the garbage collection mechanism to use
71                            with the compiler."
72 ac_help="$ac_help
73   --enable-new-gxx-abi
74                           select the new abi for g++. You must select an ABI
75                           at configuration time, so that the correct runtime
76                           support is built. You cannot mix ABIs."
77 ac_help="$ac_help
78   --enable-libstdcxx-v3 
79                           enable libstdc++-v3 for building and installation"
80
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
84 build=NONE
85 cache_file=./config.cache
86 exec_prefix=NONE
87 host=NONE
88 no_create=
89 nonopt=NONE
90 no_recursion=
91 prefix=NONE
92 program_prefix=NONE
93 program_suffix=NONE
94 program_transform_name=s,x,x,
95 silent=
96 site=
97 srcdir=
98 target=NONE
99 verbose=
100 x_includes=NONE
101 x_libraries=NONE
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
114
115 # Initialize some other variables.
116 subdirs=
117 MFLAGS= MAKEFLAGS=
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
120 ac_max_here_lines=12
121
122 ac_prev=
123 for ac_option
124 do
125
126   # If the previous option needs an argument, assign it.
127   if test -n "$ac_prev"; then
128     eval "$ac_prev=\$ac_option"
129     ac_prev=
130     continue
131   fi
132
133   case "$ac_option" in
134   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135   *) ac_optarg= ;;
136   esac
137
138   # Accept the important Cygnus configure options, so we can diagnose typos.
139
140   case "$ac_option" in
141
142   -bindir | --bindir | --bindi | --bind | --bin | --bi)
143     ac_prev=bindir ;;
144   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145     bindir="$ac_optarg" ;;
146
147   -build | --build | --buil | --bui | --bu)
148     ac_prev=build ;;
149   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150     build="$ac_optarg" ;;
151
152   -cache-file | --cache-file | --cache-fil | --cache-fi \
153   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154     ac_prev=cache_file ;;
155   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157     cache_file="$ac_optarg" ;;
158
159   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160     ac_prev=datadir ;;
161   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162   | --da=*)
163     datadir="$ac_optarg" ;;
164
165   -disable-* | --disable-*)
166     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167     # Reject names that are not valid shell variable names.
168     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170     fi
171     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172     eval "enable_${ac_feature}=no" ;;
173
174   -enable-* | --enable-*)
175     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176     # Reject names that are not valid shell variable names.
177     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179     fi
180     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181     case "$ac_option" in
182       *=*) ;;
183       *) ac_optarg=yes ;;
184     esac
185     eval "enable_${ac_feature}='$ac_optarg'" ;;
186
187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189   | --exec | --exe | --ex)
190     ac_prev=exec_prefix ;;
191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193   | --exec=* | --exe=* | --ex=*)
194     exec_prefix="$ac_optarg" ;;
195
196   -gas | --gas | --ga | --g)
197     # Obsolete; use --with-gas.
198     with_gas=yes ;;
199
200   -help | --help | --hel | --he)
201     # Omit some internal or obsolete options to make the list less imposing.
202     # This message is too long to be a string in the A/UX 3.1 sh.
203     cat << EOF
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
206 Configuration:
207   --cache-file=FILE       cache test results in FILE
208   --help                  print this message
209   --no-create             do not create output files
210   --quiet, --silent       do not print \`checking...' messages
211   --version               print the version of autoconf that created configure
212 Directory and file names:
213   --prefix=PREFIX         install architecture-independent files in PREFIX
214                           [$ac_default_prefix]
215   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
216                           [same as prefix]
217   --bindir=DIR            user executables in DIR [EPREFIX/bin]
218   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
219   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
220   --datadir=DIR           read-only architecture-independent data in DIR
221                           [PREFIX/share]
222   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
223   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
224                           [PREFIX/com]
225   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
226   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
227   --includedir=DIR        C header files in DIR [PREFIX/include]
228   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
229   --infodir=DIR           info documentation in DIR [PREFIX/info]
230   --mandir=DIR            man documentation in DIR [PREFIX/man]
231   --srcdir=DIR            find the sources in DIR [configure dir or ..]
232   --program-prefix=PREFIX prepend PREFIX to installed program names
233   --program-suffix=SUFFIX append SUFFIX to installed program names
234   --program-transform-name=PROGRAM
235                           run sed PROGRAM on installed program names
236 EOF
237     cat << EOF
238 Host type:
239   --build=BUILD           configure for building on BUILD [BUILD=HOST]
240   --host=HOST             configure for HOST [guessed]
241   --target=TARGET         configure for TARGET [TARGET=HOST]
242 Features and packages:
243   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
244   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
245   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
246   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
247   --x-includes=DIR        X include files are in DIR
248   --x-libraries=DIR       X library files are in DIR
249 EOF
250     if test -n "$ac_help"; then
251       echo "--enable and --with options recognized:$ac_help"
252     fi
253     exit 0 ;;
254
255   -host | --host | --hos | --ho)
256     ac_prev=host ;;
257   -host=* | --host=* | --hos=* | --ho=*)
258     host="$ac_optarg" ;;
259
260   -includedir | --includedir | --includedi | --included | --include \
261   | --includ | --inclu | --incl | --inc)
262     ac_prev=includedir ;;
263   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264   | --includ=* | --inclu=* | --incl=* | --inc=*)
265     includedir="$ac_optarg" ;;
266
267   -infodir | --infodir | --infodi | --infod | --info | --inf)
268     ac_prev=infodir ;;
269   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270     infodir="$ac_optarg" ;;
271
272   -libdir | --libdir | --libdi | --libd)
273     ac_prev=libdir ;;
274   -libdir=* | --libdir=* | --libdi=* | --libd=*)
275     libdir="$ac_optarg" ;;
276
277   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278   | --libexe | --libex | --libe)
279     ac_prev=libexecdir ;;
280   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281   | --libexe=* | --libex=* | --libe=*)
282     libexecdir="$ac_optarg" ;;
283
284   -localstatedir | --localstatedir | --localstatedi | --localstated \
285   | --localstate | --localstat | --localsta | --localst \
286   | --locals | --local | --loca | --loc | --lo)
287     ac_prev=localstatedir ;;
288   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291     localstatedir="$ac_optarg" ;;
292
293   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294     ac_prev=mandir ;;
295   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296     mandir="$ac_optarg" ;;
297
298   -nfp | --nfp | --nf)
299     # Obsolete; use --without-fp.
300     with_fp=no ;;
301
302   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303   | --no-cr | --no-c)
304     no_create=yes ;;
305
306   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308     no_recursion=yes ;;
309
310   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312   | --oldin | --oldi | --old | --ol | --o)
313     ac_prev=oldincludedir ;;
314   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317     oldincludedir="$ac_optarg" ;;
318
319   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320     ac_prev=prefix ;;
321   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322     prefix="$ac_optarg" ;;
323
324   -program-prefix | --program-prefix | --program-prefi | --program-pref \
325   | --program-pre | --program-pr | --program-p)
326     ac_prev=program_prefix ;;
327   -program-prefix=* | --program-prefix=* | --program-prefi=* \
328   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329     program_prefix="$ac_optarg" ;;
330
331   -program-suffix | --program-suffix | --program-suffi | --program-suff \
332   | --program-suf | --program-su | --program-s)
333     ac_prev=program_suffix ;;
334   -program-suffix=* | --program-suffix=* | --program-suffi=* \
335   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336     program_suffix="$ac_optarg" ;;
337
338   -program-transform-name | --program-transform-name \
339   | --program-transform-nam | --program-transform-na \
340   | --program-transform-n | --program-transform- \
341   | --program-transform | --program-transfor \
342   | --program-transfo | --program-transf \
343   | --program-trans | --program-tran \
344   | --progr-tra | --program-tr | --program-t)
345     ac_prev=program_transform_name ;;
346   -program-transform-name=* | --program-transform-name=* \
347   | --program-transform-nam=* | --program-transform-na=* \
348   | --program-transform-n=* | --program-transform-=* \
349   | --program-transform=* | --program-transfor=* \
350   | --program-transfo=* | --program-transf=* \
351   | --program-trans=* | --program-tran=* \
352   | --progr-tra=* | --program-tr=* | --program-t=*)
353     program_transform_name="$ac_optarg" ;;
354
355   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356   | -silent | --silent | --silen | --sile | --sil)
357     silent=yes ;;
358
359   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360     ac_prev=sbindir ;;
361   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362   | --sbi=* | --sb=*)
363     sbindir="$ac_optarg" ;;
364
365   -sharedstatedir | --sharedstatedir | --sharedstatedi \
366   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367   | --sharedst | --shareds | --shared | --share | --shar \
368   | --sha | --sh)
369     ac_prev=sharedstatedir ;;
370   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373   | --sha=* | --sh=*)
374     sharedstatedir="$ac_optarg" ;;
375
376   -site | --site | --sit)
377     ac_prev=site ;;
378   -site=* | --site=* | --sit=*)
379     site="$ac_optarg" ;;
380
381   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382     ac_prev=srcdir ;;
383   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384     srcdir="$ac_optarg" ;;
385
386   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387   | --syscon | --sysco | --sysc | --sys | --sy)
388     ac_prev=sysconfdir ;;
389   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391     sysconfdir="$ac_optarg" ;;
392
393   -target | --target | --targe | --targ | --tar | --ta | --t)
394     ac_prev=target ;;
395   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396     target="$ac_optarg" ;;
397
398   -v | -verbose | --verbose | --verbos | --verbo | --verb)
399     verbose=yes ;;
400
401   -version | --version | --versio | --versi | --vers)
402     echo "configure generated by autoconf version 2.13"
403     exit 0 ;;
404
405   -with-* | --with-*)
406     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407     # Reject names that are not valid shell variable names.
408     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410     fi
411     ac_package=`echo $ac_package| sed 's/-/_/g'`
412     case "$ac_option" in
413       *=*) ;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "with_${ac_package}='$ac_optarg'" ;;
417
418   -without-* | --without-*)
419     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420     # Reject names that are not valid shell variable names.
421     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423     fi
424     ac_package=`echo $ac_package| sed 's/-/_/g'`
425     eval "with_${ac_package}=no" ;;
426
427   --x)
428     # Obsolete; use --with-x.
429     with_x=yes ;;
430
431   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432   | --x-incl | --x-inc | --x-in | --x-i)
433     ac_prev=x_includes ;;
434   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436     x_includes="$ac_optarg" ;;
437
438   -x-libraries | --x-libraries | --x-librarie | --x-librari \
439   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440     ac_prev=x_libraries ;;
441   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443     x_libraries="$ac_optarg" ;;
444
445   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446     ;;
447
448   *)
449     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450       echo "configure: warning: $ac_option: invalid host type" 1>&2
451     fi
452     if test "x$nonopt" != xNONE; then
453       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454     fi
455     nonopt="$ac_option"
456     ;;
457
458   esac
459 done
460
461 if test -n "$ac_prev"; then
462   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 fi
464
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466
467 # File descriptor usage:
468 # 0 standard input
469 # 1 file creation
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
476   exec 6>/dev/null
477 else
478   exec 6>&1
479 fi
480 exec 5>./config.log
481
482 echo "\
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
485 " 1>&5
486
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
489 ac_configure_args=
490 for ac_arg
491 do
492   case "$ac_arg" in
493   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494   | --no-cr | --no-c) ;;
495   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500   esac
501 done
502
503 # NLS nuisances.
504 # Only set these to C if already set.  These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
512
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 echo > confdefs.h
517
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=tree.c
521
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524   ac_srcdir_defaulted=yes
525   # Try the directory containing this script, then its parent.
526   ac_prog=$0
527   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529   srcdir=$ac_confdir
530   if test ! -r $srcdir/$ac_unique_file; then
531     srcdir=..
532   fi
533 else
534   ac_srcdir_defaulted=no
535 fi
536 if test ! -r $srcdir/$ac_unique_file; then
537   if test "$ac_srcdir_defaulted" = yes; then
538     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539   else
540     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541   fi
542 fi
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547   if test "x$prefix" != xNONE; then
548     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549   else
550     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551   fi
552 fi
553 for ac_site_file in $CONFIG_SITE; do
554   if test -r "$ac_site_file"; then
555     echo "loading site script $ac_site_file"
556     . "$ac_site_file"
557   fi
558 done
559
560 if test -r "$cache_file"; then
561   echo "loading cache $cache_file"
562   . $cache_file
563 else
564   echo "creating cache $cache_file"
565   > $cache_file
566 fi
567
568 ac_ext=c
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
574
575 ac_exeext=
576 ac_objext=o
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
580     ac_n= ac_c='
581 ' ac_t='        '
582   else
583     ac_n=-n ac_c= ac_t=
584   fi
585 else
586   ac_n= ac_c='\c' ac_t=
587 fi
588
589
590
591
592 remove=rm
593 hard_link=ln
594 symbolic_link='ln -s'
595 copy=cp
596
597 # Check for bogus environment variables.
598 # Test if LIBRARY_PATH contains the notation for the current directory
599 # since this would lead to problems installing/building glibc.
600 # LIBRARY_PATH contains the current directory if one of the following
601 # is true:
602 # - one of the terminals (":" and ";") is the first or last sign
603 # - two terminals occur directly after each other
604 # - the path contains an element with a dot in it
605 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
606 echo "configure:607: checking LIBRARY_PATH variable" >&5
607 case ${LIBRARY_PATH} in
608   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
609     library_path_setting="contains current directory"
610     ;;
611   *)
612     library_path_setting="ok"
613     ;;
614 esac
615 echo "$ac_t""$library_path_setting" 1>&6
616 if test "$library_path_setting" != "ok"; then
617 { echo "configure: error: 
618 *** LIBRARY_PATH shouldn't contain the current directory when
619 *** building gcc. Please change the environment variable
620 *** and run configure again." 1>&2; exit 1; }
621 fi
622
623 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
624 # since this would lead to problems installing/building glibc.
625 # GCC_EXEC_PREFIX contains the current directory if one of the following
626 # is true:
627 # - one of the terminals (":" and ";") is the first or last sign
628 # - two terminals occur directly after each other
629 # - the path contains an element with a dot in it
630 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
631 echo "configure:632: checking GCC_EXEC_PREFIX variable" >&5
632 case ${GCC_EXEC_PREFIX} in
633   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
634     gcc_exec_prefix_setting="contains current directory"
635     ;;
636   *)
637     gcc_exec_prefix_setting="ok"
638     ;;
639 esac
640 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
641 if test "$gcc_exec_prefix_setting" != "ok"; then
642 { echo "configure: error: 
643 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
644 *** building gcc. Please change the environment variable
645 *** and run configure again." 1>&2; exit 1; }
646 fi
647
648 # Check for additional parameters
649
650 # With GNU ld
651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
652 if test "${with_gnu_ld+set}" = set; then
653   withval="$with_gnu_ld"
654   gnu_ld_flag="$with_gnu_ld"
655 else
656   gnu_ld_flag=no
657 fi
658
659
660 # With pre-defined ld
661 # Check whether --with-ld or --without-ld was given.
662 if test "${with_ld+set}" = set; then
663   withval="$with_ld"
664   DEFAULT_LINKER="$with_ld"
665 fi
666
667 if test x"${DEFAULT_LINKER+set}" = x"set"; then
668   if test ! -x "$DEFAULT_LINKER"; then
669     echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
670   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
671     gnu_ld_flag=yes
672   fi
673   cat >> confdefs.h <<EOF
674 #define DEFAULT_LINKER "$DEFAULT_LINKER"
675 EOF
676
677 fi
678
679 # With GNU as
680 # Check whether --with-gnu-as or --without-gnu-as was given.
681 if test "${with_gnu_as+set}" = set; then
682   withval="$with_gnu_as"
683   gas_flag="$with_gnu_as"
684 else
685   gas_flag=no
686 fi
687
688
689 # Check whether --with-as or --without-as was given.
690 if test "${with_as+set}" = set; then
691   withval="$with_as"
692   DEFAULT_ASSEMBLER="$with_as"
693 fi
694
695 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
696   if test ! -x "$DEFAULT_ASSEMBLER"; then
697     echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
698   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
699     gas_flag=yes
700   fi
701   cat >> confdefs.h <<EOF
702 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
703 EOF
704
705 fi
706
707 # With stabs
708 # Check whether --with-stabs or --without-stabs was given.
709 if test "${with_stabs+set}" = set; then
710   withval="$with_stabs"
711   stabs="$with_stabs"
712 else
713   stabs=no
714 fi
715
716
717 # With ELF
718 # Check whether --with-elf or --without-elf was given.
719 if test "${with_elf+set}" = set; then
720   withval="$with_elf"
721   elf="$with_elf"
722 else
723   elf=no
724 fi
725
726
727 # Specify the local prefix
728 local_prefix=
729 # Check whether --with-local-prefix or --without-local-prefix was given.
730 if test "${with_local_prefix+set}" = set; then
731   withval="$with_local_prefix"
732   case "${withval}" in
733 yes)    { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
734 no)     ;;
735 *)      local_prefix=$with_local_prefix ;;
736 esac
737 fi
738
739
740 # Default local prefix if it is empty
741 if test x$local_prefix = x; then
742         local_prefix=/usr/local
743 fi
744
745 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
746 # passed in by the toplevel make and thus we'd get different behavior
747 # depending on where we built the sources.
748 gcc_gxx_include_dir=
749 # Specify the g++ header file directory
750 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
751 if test "${with_gxx_include_dir+set}" = set; then
752   withval="$with_gxx_include_dir"
753   case "${withval}" in
754 yes)    { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
755 no)     ;;
756 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
757 esac
758 fi
759
760
761 if test x${gcc_gxx_include_dir} = x; then
762   if test x${enable_version_specific_runtime_libs} = xyes; then
763     gcc_gxx_include_dir='${libsubdir}/include/g++'
764   else
765     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
766     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
767   fi
768 fi
769
770 # Enable expensive internal checks
771 # Check whether --enable-checking or --disable-checking was given.
772 if test "${enable_checking+set}" = set; then
773   enableval="$enable_checking"
774   ac_checking=
775 ac_tree_checking=
776 ac_rtl_checking=
777 ac_gc_checking=
778 ac_gc_always_collect=
779 case "${enableval}" in
780 yes)    ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;;
781 no)     ;;
782 *)      IFS="${IFS=     }"; ac_save_IFS="$IFS" IFS="$IFS,"
783         set fnord $enableval; shift
784         IFS="$ac_save_IFS"
785         for check
786         do
787                 case $check in
788                 misc)   ac_checking=1 ;;
789                 tree)   ac_tree_checking=1 ;;
790                 rtl)    ac_rtl_checking=1 ;;
791                 gc)     ac_gc_checking=1 ;;
792                 gcac)   ac_gc_always_collect=1 ;;
793                 *)      { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
794                 esac
795         done
796         ;;
797 esac
798 if test x$ac_checking != x ; then
799   cat >> confdefs.h <<\EOF
800 #define ENABLE_CHECKING 1
801 EOF
802
803 fi
804 if test x$ac_tree_checking != x ; then
805   cat >> confdefs.h <<\EOF
806 #define ENABLE_TREE_CHECKING 1
807 EOF
808
809 fi
810 if test x$ac_rtl_checking != x ; then
811   cat >> confdefs.h <<\EOF
812 #define ENABLE_RTL_CHECKING 1
813 EOF
814
815 fi
816 if test x$ac_gc_checking != x ; then
817   cat >> confdefs.h <<\EOF
818 #define ENABLE_GC_CHECKING 1
819 EOF
820
821 fi
822 if test x$ac_gc_always_collect != x ; then
823   cat >> confdefs.h <<\EOF
824 #define ENABLE_GC_ALWAYS_COLLECT 1
825 EOF
826
827 fi
828
829 fi
830
831
832 # Check whether --enable-cpp or --disable-cpp was given.
833 if test "${enable_cpp+set}" = set; then
834   enableval="$enable_cpp"
835   :
836 else
837   enable_cpp=yes
838 fi
839
840
841 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
842 if test "${with_cpp_install_dir+set}" = set; then
843   withval="$with_cpp_install_dir"
844   if test x$withval = xyes; then
845   { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
846 elif test x$withval != xno; then
847   cpp_install_dir=$withval
848 fi
849 fi
850
851
852
853 # Enable Multibyte Characters for C/C++
854 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
855 if test "${enable_c_mbchar+set}" = set; then
856   enableval="$enable_c_mbchar"
857   if test x$enable_c_mbchar != xno; then
858   extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
859 fi
860 fi
861
862   
863 # Enable threads
864 # Pass with no value to take the default
865 # Pass with a value to specify a thread package
866 # Check whether --enable-threads or --disable-threads was given.
867 if test "${enable_threads+set}" = set; then
868   enableval="$enable_threads"
869   if test x$enable_threads = xno; then
870         enable_threads=''
871 fi
872 else
873   enable_threads=''
874 fi
875
876
877 enable_threads_flag=$enable_threads
878 # Check if a valid thread package
879 case x${enable_threads_flag} in
880         x | xno)
881                 # No threads
882                 target_thread_file='single'
883                 ;;
884         xyes)
885                 # default
886                 target_thread_file=''
887                 ;;
888         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
889         xsolaris | xwin32 | xdce | xvxworks)
890                 target_thread_file=$enable_threads_flag
891                 ;;
892         *)
893                 echo "$enable_threads is an unknown thread package" 1>&2
894                 exit 1
895                 ;;
896 esac
897
898 # Check whether --enable-objc-gc or --disable-objc-gc was given.
899 if test "${enable_objc_gc+set}" = set; then
900   enableval="$enable_objc_gc"
901   if test x$enable_objc_gc = xno; then
902         objc_boehm_gc=''
903 else
904         objc_boehm_gc=1
905 fi
906 else
907   objc_boehm_gc=''
908 fi
909
910
911 # Check whether --with-dwarf2 or --without-dwarf2 was given.
912 if test "${with_dwarf2+set}" = set; then
913   withval="$with_dwarf2"
914   dwarf2="$with_dwarf2"
915 else
916   dwarf2=no
917 fi
918
919
920 # Determine the host, build, and target systems
921 ac_aux_dir=
922 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
923   if test -f $ac_dir/install-sh; then
924     ac_aux_dir=$ac_dir
925     ac_install_sh="$ac_aux_dir/install-sh -c"
926     break
927   elif test -f $ac_dir/install.sh; then
928     ac_aux_dir=$ac_dir
929     ac_install_sh="$ac_aux_dir/install.sh -c"
930     break
931   fi
932 done
933 if test -z "$ac_aux_dir"; then
934   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
935 fi
936 ac_config_guess=$ac_aux_dir/config.guess
937 ac_config_sub=$ac_aux_dir/config.sub
938 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
939
940
941 # Do some error checking and defaulting for the host and target type.
942 # The inputs are:
943 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
944 #
945 # The rules are:
946 # 1. You are not allowed to specify --host, --target, and nonopt at the
947 #    same time.
948 # 2. Host defaults to nonopt.
949 # 3. If nonopt is not specified, then host defaults to the current host,
950 #    as determined by config.guess.
951 # 4. Target and build default to nonopt.
952 # 5. If nonopt is not specified, then target and build default to host.
953
954 # The aliases save the names the user supplied, while $host etc.
955 # will get canonicalized.
956 case $host---$target---$nonopt in
957 NONE---*---* | *---NONE---* | *---*---NONE) ;;
958 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
959 esac
960
961
962 # Make sure we can run config.sub.
963 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
965 fi
966
967 echo $ac_n "checking host system type""... $ac_c" 1>&6
968 echo "configure:969: checking host system type" >&5
969
970 host_alias=$host
971 case "$host_alias" in
972 NONE)
973   case $nonopt in
974   NONE)
975     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
976     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
977     fi ;;
978   *) host_alias=$nonopt ;;
979   esac ;;
980 esac
981
982 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
983 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$host" 1>&6
987
988 echo $ac_n "checking target system type""... $ac_c" 1>&6
989 echo "configure:990: checking target system type" >&5
990
991 target_alias=$target
992 case "$target_alias" in
993 NONE)
994   case $nonopt in
995   NONE) target_alias=$host_alias ;;
996   *) target_alias=$nonopt ;;
997   esac ;;
998 esac
999
1000 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1001 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$target" 1>&6
1005
1006 echo $ac_n "checking build system type""... $ac_c" 1>&6
1007 echo "configure:1008: checking build system type" >&5
1008
1009 build_alias=$build
1010 case "$build_alias" in
1011 NONE)
1012   case $nonopt in
1013   NONE) build_alias=$host_alias ;;
1014   *) build_alias=$nonopt ;;
1015   esac ;;
1016 esac
1017
1018 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1019 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$build" 1>&6
1023
1024 test "$host_alias" != "$target_alias" &&
1025   test "$program_prefix$program_suffix$program_transform_name" = \
1026     NONENONEs,x,x, &&
1027   program_prefix=${target_alias}-
1028
1029
1030 # Find the native compiler
1031 # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036   echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038   if test -n "$CC"; then
1039   ac_cv_prog_CC="$CC" # Let the user override the test.
1040 else
1041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1042   ac_dummy="$PATH"
1043   for ac_dir in $ac_dummy; do
1044     test -z "$ac_dir" && ac_dir=.
1045     if test -f $ac_dir/$ac_word; then
1046       ac_cv_prog_CC="gcc"
1047       break
1048     fi
1049   done
1050   IFS="$ac_save_ifs"
1051 fi
1052 fi
1053 CC="$ac_cv_prog_CC"
1054 if test -n "$CC"; then
1055   echo "$ac_t""$CC" 1>&6
1056 else
1057   echo "$ac_t""no" 1>&6
1058 fi
1059
1060 if test -z "$CC"; then
1061   # Extract the first word of "cc", so it can be a program name with args.
1062 set dummy cc; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066   echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068   if test -n "$CC"; then
1069   ac_cv_prog_CC="$CC" # Let the user override the test.
1070 else
1071   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1072   ac_prog_rejected=no
1073   ac_dummy="$PATH"
1074   for ac_dir in $ac_dummy; do
1075     test -z "$ac_dir" && ac_dir=.
1076     if test -f $ac_dir/$ac_word; then
1077       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1078         ac_prog_rejected=yes
1079         continue
1080       fi
1081       ac_cv_prog_CC="cc"
1082       break
1083     fi
1084   done
1085   IFS="$ac_save_ifs"
1086 if test $ac_prog_rejected = yes; then
1087   # We found a bogon in the path, so make sure we never use it.
1088   set dummy $ac_cv_prog_CC
1089   shift
1090   if test $# -gt 0; then
1091     # We chose a different compiler from the bogus one.
1092     # However, it has the same basename, so the bogon will be chosen
1093     # first if we set CC to just the basename; use the full file name.
1094     shift
1095     set dummy "$ac_dir/$ac_word" "$@"
1096     shift
1097     ac_cv_prog_CC="$@"
1098   fi
1099 fi
1100 fi
1101 fi
1102 CC="$ac_cv_prog_CC"
1103 if test -n "$CC"; then
1104   echo "$ac_t""$CC" 1>&6
1105 else
1106   echo "$ac_t""no" 1>&6
1107 fi
1108
1109   if test -z "$CC"; then
1110     case "`uname -s`" in
1111     *win32* | *WIN32*)
1112       # Extract the first word of "cl", so it can be a program name with args.
1113 set dummy cl; ac_word=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1116: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1117   echo $ac_n "(cached) $ac_c" 1>&6
1118 else
1119   if test -n "$CC"; then
1120   ac_cv_prog_CC="$CC" # Let the user override the test.
1121 else
1122   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1123   ac_dummy="$PATH"
1124   for ac_dir in $ac_dummy; do
1125     test -z "$ac_dir" && ac_dir=.
1126     if test -f $ac_dir/$ac_word; then
1127       ac_cv_prog_CC="cl"
1128       break
1129     fi
1130   done
1131   IFS="$ac_save_ifs"
1132 fi
1133 fi
1134 CC="$ac_cv_prog_CC"
1135 if test -n "$CC"; then
1136   echo "$ac_t""$CC" 1>&6
1137 else
1138   echo "$ac_t""no" 1>&6
1139 fi
1140  ;;
1141     esac
1142   fi
1143   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 fi
1145
1146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1148
1149 ac_ext=c
1150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1151 ac_cpp='$CPP $CPPFLAGS'
1152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1154 cross_compiling=$ac_cv_prog_cc_cross
1155
1156 cat > conftest.$ac_ext << EOF
1157
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1160
1161 main(){return(0);}
1162 EOF
1163 if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1164   ac_cv_prog_cc_works=yes
1165   # If we can't run a trivial program, we are probably using a cross compiler.
1166   if (./conftest; exit) 2>/dev/null; then
1167     ac_cv_prog_cc_cross=no
1168   else
1169     ac_cv_prog_cc_cross=yes
1170   fi
1171 else
1172   echo "configure: failed program was:" >&5
1173   cat conftest.$ac_ext >&5
1174   ac_cv_prog_cc_works=no
1175 fi
1176 rm -fr conftest*
1177 ac_ext=c
1178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling=$ac_cv_prog_cc_cross
1183
1184 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1185 if test $ac_cv_prog_cc_works = no; then
1186   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1187 fi
1188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1190 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1191 cross_compiling=$ac_cv_prog_cc_cross
1192
1193 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether we are using GNU C" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1196   echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198   cat > conftest.c <<EOF
1199 #ifdef __GNUC__
1200   yes;
1201 #endif
1202 EOF
1203 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1204   ac_cv_prog_gcc=yes
1205 else
1206   ac_cv_prog_gcc=no
1207 fi
1208 fi
1209
1210 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1211
1212 if test $ac_cv_prog_gcc = yes; then
1213   GCC=yes
1214 else
1215   GCC=
1216 fi
1217
1218 ac_test_CFLAGS="${CFLAGS+set}"
1219 ac_save_CFLAGS="$CFLAGS"
1220 CFLAGS=
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224   echo $ac_n "(cached) $ac_c" 1>&6
1225 else
1226   echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1228   ac_cv_prog_cc_g=yes
1229 else
1230   ac_cv_prog_cc_g=no
1231 fi
1232 rm -f conftest*
1233
1234 fi
1235
1236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238   CFLAGS="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1240   if test "$GCC" = yes; then
1241     CFLAGS="-g -O2"
1242   else
1243     CFLAGS="-g"
1244   fi
1245 else
1246   if test "$GCC" = yes; then
1247     CFLAGS="-O2"
1248   else
1249     CFLAGS=
1250   fi
1251 fi
1252
1253 if test "x$CC" != xcc; then
1254   echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether $CC and cc understand -c and -o together" >&5
1256 else
1257   echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether cc understands -c and -o together" >&5
1259 fi
1260 set dummy $CC; ac_cc="`echo $2 |
1261                        sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1262 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1263   echo $ac_n "(cached) $ac_c" 1>&6
1264 else
1265   echo 'foo(){}' > conftest.c
1266 # Make sure it works both with $CC and with simple cc.
1267 # We do the test twice because some compilers refuse to overwrite an
1268 # existing .o file with -o, though they will create one.
1269 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1270 if { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1271    test -f conftest.o && { (eval echo configure:1272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1272 then
1273   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1274   if test "x$CC" != xcc; then
1275     # Test first that cc exists at all.
1276     if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1277       ac_try='cc -c conftest.c -o conftest.o 1>&5'
1278       if { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1279          test -f conftest.o && { (eval echo configure:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1280       then
1281         # cc works too.
1282         :
1283       else
1284         # cc exists but doesn't like -o.
1285         eval ac_cv_prog_cc_${ac_cc}_c_o=no
1286       fi
1287     fi
1288   fi
1289 else
1290   eval ac_cv_prog_cc_${ac_cc}_c_o=no
1291 fi
1292 rm -f conftest*
1293
1294 fi
1295 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1296   echo "$ac_t""yes" 1>&6
1297 else
1298   echo "$ac_t""no" 1>&6
1299   cat >> confdefs.h <<\EOF
1300 #define NO_MINUS_C_MINUS_O 1
1301 EOF
1302
1303 fi
1304
1305 if test $ac_cv_prog_cc_cc_c_o = no; then
1306   NO_MINUS_C_MINUS_O=yes
1307 fi
1308
1309
1310 echo $ac_n "checking for long double""... $ac_c" 1>&6
1311 echo "configure:1312: checking for long double" >&5
1312 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1313   echo $ac_n "(cached) $ac_c" 1>&6
1314 else
1315   if test "$GCC" = yes; then
1316   gcc_cv_c_long_double=yes
1317 else
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1321
1322 int main() {
1323 /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
1324 long double foo = 0.0;
1325 /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
1326 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1327 ; return 0; }
1328 EOF
1329 if { (eval echo configure:1330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1330   rm -rf conftest*
1331   gcc_cv_c_long_double=yes
1332 else
1333   echo "configure: failed program was:" >&5
1334   cat conftest.$ac_ext >&5
1335   rm -rf conftest*
1336   gcc_cv_c_long_double=no
1337 fi
1338 rm -f conftest*
1339 fi
1340 fi
1341
1342 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1343 if test $gcc_cv_c_long_double = yes; then
1344   cat >> confdefs.h <<\EOF
1345 #define HAVE_LONG_DOUBLE 1
1346 EOF
1347
1348 fi
1349
1350
1351 # If the native compiler is GCC, we can enable warnings even in stage1.  
1352 # That's useful for people building cross-compilers, or just running a
1353 # quick `make'.
1354 if test "x$GCC" = "xyes"; then 
1355   stage1_warn_cflags='$(WARN_CFLAGS)'
1356 else
1357   stage1_warn_cflags=""
1358 fi
1359
1360
1361 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1362 echo "configure:1363: checking whether ${MAKE-make} sets \${MAKE}" >&5
1363 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1364 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1365   echo $ac_n "(cached) $ac_c" 1>&6
1366 else
1367   cat > conftestmake <<\EOF
1368 all:
1369         @echo 'ac_maketemp="${MAKE}"'
1370 EOF
1371 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1372 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1373 if test -n "$ac_maketemp"; then
1374   eval ac_cv_prog_make_${ac_make}_set=yes
1375 else
1376   eval ac_cv_prog_make_${ac_make}_set=no
1377 fi
1378 rm -f conftestmake
1379 fi
1380 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1381   echo "$ac_t""yes" 1>&6
1382   SET_MAKE=
1383 else
1384   echo "$ac_t""no" 1>&6
1385   SET_MAKE="MAKE=${MAKE-make}"
1386 fi
1387
1388
1389 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1390 echo "configure:1391: checking whether a default assembler was specified" >&5
1391 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1392     if test x"$gas_flag" = x"no"; then
1393         echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1394     else
1395         echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1396     fi
1397 else
1398     echo "$ac_t""no" 1>&6
1399 fi
1400
1401 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether a default linker was specified" >&5
1403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1404     if test x"$gnu_ld_flag" = x"no"; then
1405         echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1406     else
1407         echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1408     fi
1409 else
1410     echo "$ac_t""no" 1>&6
1411 fi
1412
1413 # Find some useful tools
1414 for ac_prog in mawk gawk nawk awk
1415 do
1416 # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1419 echo "configure:1420: checking for $ac_word" >&5
1420 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1421   echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423   if test -n "$AWK"; then
1424   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1425 else
1426   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1427   ac_dummy="$PATH"
1428   for ac_dir in $ac_dummy; do
1429     test -z "$ac_dir" && ac_dir=.
1430     if test -f $ac_dir/$ac_word; then
1431       ac_cv_prog_AWK="$ac_prog"
1432       break
1433     fi
1434   done
1435   IFS="$ac_save_ifs"
1436 fi
1437 fi
1438 AWK="$ac_cv_prog_AWK"
1439 if test -n "$AWK"; then
1440   echo "$ac_t""$AWK" 1>&6
1441 else
1442   echo "$ac_t""no" 1>&6
1443 fi
1444
1445 test -n "$AWK" && break
1446 done
1447
1448 # Extract the first word of "flex", so it can be a program name with args.
1449 set dummy flex; ac_word=$2
1450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1451 echo "configure:1452: checking for $ac_word" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1453   echo $ac_n "(cached) $ac_c" 1>&6
1454 else
1455   if test -n "$LEX"; then
1456   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1457 else
1458   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1459   ac_dummy="$PATH"
1460   for ac_dir in $ac_dummy; do
1461     test -z "$ac_dir" && ac_dir=.
1462     if test -f $ac_dir/$ac_word; then
1463       ac_cv_prog_LEX="flex"
1464       break
1465     fi
1466   done
1467   IFS="$ac_save_ifs"
1468   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1469 fi
1470 fi
1471 LEX="$ac_cv_prog_LEX"
1472 if test -n "$LEX"; then
1473   echo "$ac_t""$LEX" 1>&6
1474 else
1475   echo "$ac_t""no" 1>&6
1476 fi
1477
1478 if test -z "$LEXLIB"
1479 then
1480   case "$LEX" in
1481   flex*) ac_lib=fl ;;
1482   *) ac_lib=l ;;
1483   esac
1484   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1485 echo "configure:1486: checking for yywrap in -l$ac_lib" >&5
1486 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1488   echo $ac_n "(cached) $ac_c" 1>&6
1489 else
1490   ac_save_LIBS="$LIBS"
1491 LIBS="-l$ac_lib  $LIBS"
1492 cat > conftest.$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1495 /* Override any gcc2 internal prototype to avoid an error.  */
1496 /* We use char because int might match the return type of a gcc2
1497     builtin and then its argument prototype would still apply.  */
1498 char yywrap();
1499
1500 int main() {
1501 yywrap()
1502 ; return 0; }
1503 EOF
1504 if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1505   rm -rf conftest*
1506   eval "ac_cv_lib_$ac_lib_var=yes"
1507 else
1508   echo "configure: failed program was:" >&5
1509   cat conftest.$ac_ext >&5
1510   rm -rf conftest*
1511   eval "ac_cv_lib_$ac_lib_var=no"
1512 fi
1513 rm -f conftest*
1514 LIBS="$ac_save_LIBS"
1515
1516 fi
1517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1518   echo "$ac_t""yes" 1>&6
1519   LEXLIB="-l$ac_lib"
1520 else
1521   echo "$ac_t""no" 1>&6
1522 fi
1523
1524 fi
1525
1526 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1527 echo "configure:1528: checking whether ln works" >&5
1528 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1529   echo $ac_n "(cached) $ac_c" 1>&6
1530 else
1531   rm -f conftestdata_t
1532 echo >conftestdata_f
1533 if ln conftestdata_f conftestdata_t 2>/dev/null
1534 then
1535   gcc_cv_prog_LN="ln"
1536 else
1537   if ln -s conftestdata_f conftestdata_t 2>/dev/null
1538   then
1539     gcc_cv_prog_LN="ln -s"
1540   else
1541     gcc_cv_prog_LN=cp
1542   fi
1543 fi
1544 rm -f conftestdata_f conftestdata_t
1545
1546 fi
1547 LN="$gcc_cv_prog_LN"
1548 if test "$gcc_cv_prog_LN" = "ln"; then
1549   echo "$ac_t""yes" 1>&6
1550 else
1551   if test "$gcc_cv_prog_LN" = "ln -s"; then
1552     echo "$ac_t""no, using ln -s" 1>&6
1553   else
1554     echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1555   fi
1556 fi
1557
1558 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether ln -s works" >&5
1560 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1561   echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563   rm -f conftestdata_t
1564 echo >conftestdata_f
1565 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1566 then
1567   gcc_cv_prog_LN_S="ln -s"
1568 else
1569   if ln conftestdata_f conftestdata_t 2>/dev/null
1570   then
1571     gcc_cv_prog_LN_S=ln
1572   else
1573     gcc_cv_prog_LN_S=cp
1574   fi
1575 fi
1576 rm -f conftestdata_f conftestdata_t
1577
1578 fi
1579 LN_S="$gcc_cv_prog_LN_S"
1580 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1581   echo "$ac_t""yes" 1>&6
1582 else
1583   if test "$gcc_cv_prog_LN_S" = "ln"; then
1584     echo "$ac_t""no, using ln" 1>&6
1585   else
1586     echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1587   fi
1588 fi
1589
1590 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1591 echo "configure:1592: checking for volatile" >&5
1592 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+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
1599 int main() {
1600 volatile int foo;
1601 ; return 0; }
1602 EOF
1603 if { (eval echo configure:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1604   rm -rf conftest*
1605   gcc_cv_c_volatile=yes
1606 else
1607   echo "configure: failed program was:" >&5
1608   cat conftest.$ac_ext >&5
1609   rm -rf conftest*
1610   gcc_cv_c_volatile=no
1611 fi
1612 rm -f conftest*
1613 fi
1614
1615 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1616 if test $gcc_cv_c_volatile = yes ; then
1617   cat >> confdefs.h <<\EOF
1618 #define HAVE_VOLATILE 1
1619 EOF
1620
1621 fi
1622
1623 # Extract the first word of "ranlib", so it can be a program name with args.
1624 set dummy ranlib; ac_word=$2
1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1626 echo "configure:1627: checking for $ac_word" >&5
1627 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1628   echo $ac_n "(cached) $ac_c" 1>&6
1629 else
1630   if test -n "$RANLIB"; then
1631   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1632 else
1633   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1634   ac_dummy="$PATH"
1635   for ac_dir in $ac_dummy; do
1636     test -z "$ac_dir" && ac_dir=.
1637     if test -f $ac_dir/$ac_word; then
1638       ac_cv_prog_RANLIB="ranlib"
1639       break
1640     fi
1641   done
1642   IFS="$ac_save_ifs"
1643   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1644 fi
1645 fi
1646 RANLIB="$ac_cv_prog_RANLIB"
1647 if test -n "$RANLIB"; then
1648   echo "$ac_t""$RANLIB" 1>&6
1649 else
1650   echo "$ac_t""no" 1>&6
1651 fi
1652
1653 for ac_prog in 'bison -y' byacc
1654 do
1655 # Extract the first word of "$ac_prog", so it can be a program name with args.
1656 set dummy $ac_prog; ac_word=$2
1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_word" >&5
1659 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1660   echo $ac_n "(cached) $ac_c" 1>&6
1661 else
1662   if test -n "$YACC"; then
1663   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1664 else
1665   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1666   ac_dummy="$PATH"
1667   for ac_dir in $ac_dummy; do
1668     test -z "$ac_dir" && ac_dir=.
1669     if test -f $ac_dir/$ac_word; then
1670       ac_cv_prog_YACC="$ac_prog"
1671       break
1672     fi
1673   done
1674   IFS="$ac_save_ifs"
1675 fi
1676 fi
1677 YACC="$ac_cv_prog_YACC"
1678 if test -n "$YACC"; then
1679   echo "$ac_t""$YACC" 1>&6
1680 else
1681   echo "$ac_t""no" 1>&6
1682 fi
1683
1684 test -n "$YACC" && break
1685 done
1686 test -n "$YACC" || YACC="yacc"
1687
1688 # Find a good install program.  We prefer a C program (faster),
1689 # so one script is as good as another.  But avoid the broken or
1690 # incompatible versions:
1691 # SysV /etc/install, /usr/sbin/install
1692 # SunOS /usr/etc/install
1693 # IRIX /sbin/install
1694 # AIX /bin/install
1695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1697 # ./install, which can be erroneously created by make from ./install.sh.
1698 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1699 echo "configure:1700: checking for a BSD compatible install" >&5
1700 if test -z "$INSTALL"; then
1701 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1702   echo $ac_n "(cached) $ac_c" 1>&6
1703 else
1704     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1705   for ac_dir in $PATH; do
1706     # Account for people who put trailing slashes in PATH elements.
1707     case "$ac_dir/" in
1708     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1709     *)
1710       # OSF1 and SCO ODT 3.0 have their own names for install.
1711       for ac_prog in ginstall scoinst install; do
1712         if test -f $ac_dir/$ac_prog; then
1713           if test $ac_prog = install &&
1714             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1715             # AIX install.  It has an incompatible calling convention.
1716             # OSF/1 installbsd also uses dspmsg, but is usable.
1717             :
1718           else
1719             ac_cv_path_install="$ac_dir/$ac_prog -c"
1720             break 2
1721           fi
1722         fi
1723       done
1724       ;;
1725     esac
1726   done
1727   IFS="$ac_save_IFS"
1728
1729 fi
1730   if test "${ac_cv_path_install+set}" = set; then
1731     INSTALL="$ac_cv_path_install"
1732   else
1733     # As a last resort, use the slow shell script.  We don't cache a
1734     # path for INSTALL within a source directory, because that will
1735     # break other packages using the cache if that directory is
1736     # removed, or if the path is relative.
1737     INSTALL="$ac_install_sh"
1738   fi
1739 fi
1740 echo "$ac_t""$INSTALL" 1>&6
1741
1742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1743 # It thinks the first close brace ends the variable substitution.
1744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1745
1746 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1747
1748
1749 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1750 echo "configure:1751: checking how to run the C preprocessor" >&5
1751 # On Suns, sometimes $CPP names a directory.
1752 if test -n "$CPP" && test -d "$CPP"; then
1753   CPP=
1754 fi
1755 if test -z "$CPP"; then
1756 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1757   echo $ac_n "(cached) $ac_c" 1>&6
1758 else
1759     # This must be in double quotes, not single quotes, because CPP may get
1760   # substituted into the Makefile and "${CC-cc}" will confuse make.
1761   CPP="${CC-cc} -E"
1762   # On the NeXT, cc -E runs the code through the compiler's parser,
1763   # not just through cpp.
1764   cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 #include <assert.h>
1768 Syntax Error
1769 EOF
1770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1771 { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1773 if test -z "$ac_err"; then
1774   :
1775 else
1776   echo "$ac_err" >&5
1777   echo "configure: failed program was:" >&5
1778   cat conftest.$ac_ext >&5
1779   rm -rf conftest*
1780   CPP="${CC-cc} -E -traditional-cpp"
1781   cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 #include <assert.h>
1785 Syntax Error
1786 EOF
1787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1790 if test -z "$ac_err"; then
1791   :
1792 else
1793   echo "$ac_err" >&5
1794   echo "configure: failed program was:" >&5
1795   cat conftest.$ac_ext >&5
1796   rm -rf conftest*
1797   CPP="${CC-cc} -nologo -E"
1798   cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 #include <assert.h>
1802 Syntax Error
1803 EOF
1804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1805 { (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1807 if test -z "$ac_err"; then
1808   :
1809 else
1810   echo "$ac_err" >&5
1811   echo "configure: failed program was:" >&5
1812   cat conftest.$ac_ext >&5
1813   rm -rf conftest*
1814   CPP=/lib/cpp
1815 fi
1816 rm -f conftest*
1817 fi
1818 rm -f conftest*
1819 fi
1820 rm -f conftest*
1821   ac_cv_prog_CPP="$CPP"
1822 fi
1823   CPP="$ac_cv_prog_CPP"
1824 else
1825   ac_cv_prog_CPP="$CPP"
1826 fi
1827 echo "$ac_t""$CPP" 1>&6
1828
1829 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1830 echo "configure:1831: checking for ANSI C header files" >&5
1831 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1832   echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834   cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1837 #include <stdlib.h>
1838 #include <stdarg.h>
1839 #include <string.h>
1840 #include <float.h>
1841 EOF
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1846   rm -rf conftest*
1847   ac_cv_header_stdc=yes
1848 else
1849   echo "$ac_err" >&5
1850   echo "configure: failed program was:" >&5
1851   cat conftest.$ac_ext >&5
1852   rm -rf conftest*
1853   ac_cv_header_stdc=no
1854 fi
1855 rm -f conftest*
1856
1857 if test $ac_cv_header_stdc = yes; then
1858   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862 #include <string.h>
1863 EOF
1864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1865   egrep "memchr" >/dev/null 2>&1; then
1866   :
1867 else
1868   rm -rf conftest*
1869   ac_cv_header_stdc=no
1870 fi
1871 rm -f conftest*
1872
1873 fi
1874
1875 if test $ac_cv_header_stdc = yes; then
1876   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1880 #include <stdlib.h>
1881 EOF
1882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1883   egrep "free" >/dev/null 2>&1; then
1884   :
1885 else
1886   rm -rf conftest*
1887   ac_cv_header_stdc=no
1888 fi
1889 rm -f conftest*
1890
1891 fi
1892
1893 if test $ac_cv_header_stdc = yes; then
1894   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1895 if test "$cross_compiling" = yes; then
1896   :
1897 else
1898   cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 #include <ctype.h>
1902 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1903 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1905 int main () { int i; for (i = 0; i < 256; i++)
1906 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1907 exit (0); }
1908
1909 EOF
1910 if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1911 then
1912   :
1913 else
1914   echo "configure: failed program was:" >&5
1915   cat conftest.$ac_ext >&5
1916   rm -fr conftest*
1917   ac_cv_header_stdc=no
1918 fi
1919 rm -fr conftest*
1920 fi
1921
1922 fi
1923 fi
1924
1925 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1926 if test $ac_cv_header_stdc = yes; then
1927   cat >> confdefs.h <<\EOF
1928 #define STDC_HEADERS 1
1929 EOF
1930
1931 fi
1932
1933 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1934 echo "configure:1935: checking whether time.h and sys/time.h may both be included" >&5
1935 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1936   echo $ac_n "(cached) $ac_c" 1>&6
1937 else
1938   cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 #include <sys/types.h>
1942 #include <sys/time.h>
1943 #include <time.h>
1944 int main() {
1945 struct tm *tp;
1946 ; return 0; }
1947 EOF
1948 if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1949   rm -rf conftest*
1950   ac_cv_header_time=yes
1951 else
1952   echo "configure: failed program was:" >&5
1953   cat conftest.$ac_ext >&5
1954   rm -rf conftest*
1955   ac_cv_header_time=no
1956 fi
1957 rm -f conftest*
1958 fi
1959
1960 echo "$ac_t""$ac_cv_header_time" 1>&6
1961 if test $ac_cv_header_time = yes; then
1962   cat >> confdefs.h <<\EOF
1963 #define TIME_WITH_SYS_TIME 1
1964 EOF
1965
1966 fi
1967
1968 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1969 echo "configure:1970: checking whether string.h and strings.h may both be included" >&5
1970 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1971   echo $ac_n "(cached) $ac_c" 1>&6
1972 else
1973   cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 #include <string.h>
1977 #include <strings.h>
1978 int main() {
1979
1980 ; return 0; }
1981 EOF
1982 if { (eval echo configure:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1983   rm -rf conftest*
1984   gcc_cv_header_string=yes
1985 else
1986   echo "configure: failed program was:" >&5
1987   cat conftest.$ac_ext >&5
1988   rm -rf conftest*
1989   gcc_cv_header_string=no
1990 fi
1991 rm -f conftest*
1992 fi
1993
1994 echo "$ac_t""$gcc_cv_header_string" 1>&6
1995 if test $gcc_cv_header_string = yes; then
1996   cat >> confdefs.h <<\EOF
1997 #define STRING_WITH_STRINGS 1
1998 EOF
1999
2000 fi
2001
2002 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2003 echo "configure:2004: checking for sys/wait.h that is POSIX.1 compatible" >&5
2004 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2005   echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007   cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2010 #include <sys/types.h>
2011 #include <sys/wait.h>
2012 #ifndef WEXITSTATUS
2013 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2014 #endif
2015 #ifndef WIFEXITED
2016 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2017 #endif
2018 int main() {
2019 int s;
2020 wait (&s);
2021 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2022 ; return 0; }
2023 EOF
2024 if { (eval echo configure:2025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2025   rm -rf conftest*
2026   ac_cv_header_sys_wait_h=yes
2027 else
2028   echo "configure: failed program was:" >&5
2029   cat conftest.$ac_ext >&5
2030   rm -rf conftest*
2031   ac_cv_header_sys_wait_h=no
2032 fi
2033 rm -f conftest*
2034 fi
2035
2036 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2037 if test $ac_cv_header_sys_wait_h = yes; then
2038   cat >> confdefs.h <<\EOF
2039 #define HAVE_SYS_WAIT_H 1
2040 EOF
2041
2042 fi
2043
2044 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2045                  fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2046                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
2047                  direct.h malloc.h
2048 do
2049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_hdr" >&5
2052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2053   echo $ac_n "(cached) $ac_c" 1>&6
2054 else
2055   cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 #include <$ac_hdr>
2059 EOF
2060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061 { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063 if test -z "$ac_err"; then
2064   rm -rf conftest*
2065   eval "ac_cv_header_$ac_safe=yes"
2066 else
2067   echo "$ac_err" >&5
2068   echo "configure: failed program was:" >&5
2069   cat conftest.$ac_ext >&5
2070   rm -rf conftest*
2071   eval "ac_cv_header_$ac_safe=no"
2072 fi
2073 rm -f conftest*
2074 fi
2075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2076   echo "$ac_t""yes" 1>&6
2077     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2078   cat >> confdefs.h <<EOF
2079 #define $ac_tr_hdr 1
2080 EOF
2081  
2082 else
2083   echo "$ac_t""no" 1>&6
2084 fi
2085 done
2086
2087
2088 # Check for thread headers.
2089 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2090 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2091 echo "configure:2092: checking for thread.h" >&5
2092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2093   echo $ac_n "(cached) $ac_c" 1>&6
2094 else
2095   cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 #include <thread.h>
2099 EOF
2100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2101 { (eval echo configure:2102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2103 if test -z "$ac_err"; then
2104   rm -rf conftest*
2105   eval "ac_cv_header_$ac_safe=yes"
2106 else
2107   echo "$ac_err" >&5
2108   echo "configure: failed program was:" >&5
2109   cat conftest.$ac_ext >&5
2110   rm -rf conftest*
2111   eval "ac_cv_header_$ac_safe=no"
2112 fi
2113 rm -f conftest*
2114 fi
2115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2116   echo "$ac_t""yes" 1>&6
2117   have_thread_h=yes
2118 else
2119   echo "$ac_t""no" 1>&6
2120 have_thread_h=
2121 fi
2122
2123 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2124 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2125 echo "configure:2126: checking for pthread.h" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2127   echo $ac_n "(cached) $ac_c" 1>&6
2128 else
2129   cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <pthread.h>
2133 EOF
2134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2135 { (eval echo configure:2136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2137 if test -z "$ac_err"; then
2138   rm -rf conftest*
2139   eval "ac_cv_header_$ac_safe=yes"
2140 else
2141   echo "$ac_err" >&5
2142   echo "configure: failed program was:" >&5
2143   cat conftest.$ac_ext >&5
2144   rm -rf conftest*
2145   eval "ac_cv_header_$ac_safe=no"
2146 fi
2147 rm -f conftest*
2148 fi
2149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2150   echo "$ac_t""yes" 1>&6
2151   have_pthread_h=yes
2152 else
2153   echo "$ac_t""no" 1>&6
2154 have_pthread_h=
2155 fi
2156
2157
2158 # See if GNAT has been installed
2159 # Extract the first word of "gnatbind", so it can be a program name with args.
2160 set dummy gnatbind; ac_word=$2
2161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_word" >&5
2163 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2164   echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166   if test -n "$gnat"; then
2167   ac_cv_prog_gnat="$gnat" # Let the user override the test.
2168 else
2169   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2170   ac_dummy="$PATH"
2171   for ac_dir in $ac_dummy; do
2172     test -z "$ac_dir" && ac_dir=.
2173     if test -f $ac_dir/$ac_word; then
2174       ac_cv_prog_gnat="yes"
2175       break
2176     fi
2177   done
2178   IFS="$ac_save_ifs"
2179   test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2180 fi
2181 fi
2182 gnat="$ac_cv_prog_gnat"
2183 if test -n "$gnat"; then
2184   echo "$ac_t""$gnat" 1>&6
2185 else
2186   echo "$ac_t""no" 1>&6
2187 fi
2188
2189
2190 # Do we have a single-tree copy of texinfo?
2191 if test -f $srcdir/../texinfo/Makefile.in; then
2192   MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2193   gcc_cv_prog_makeinfo_modern=yes
2194   echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2195 else
2196   # See if makeinfo has been installed and is modern enough
2197   # that we can use it.
2198   # Extract the first word of "makeinfo", so it can be a program name with args.
2199 set dummy makeinfo; ac_word=$2
2200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2201 echo "configure:2202: checking for $ac_word" >&5
2202 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2203   echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205   if test -n "$MAKEINFO"; then
2206   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2207 else
2208   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2209   ac_dummy="$PATH"
2210   for ac_dir in $ac_dummy; do
2211     test -z "$ac_dir" && ac_dir=.
2212     if test -f $ac_dir/$ac_word; then
2213       ac_cv_prog_MAKEINFO="makeinfo"
2214       break
2215     fi
2216   done
2217   IFS="$ac_save_ifs"
2218 fi
2219 fi
2220 MAKEINFO="$ac_cv_prog_MAKEINFO"
2221 if test -n "$MAKEINFO"; then
2222   echo "$ac_t""$MAKEINFO" 1>&6
2223 else
2224   echo "$ac_t""no" 1>&6
2225 fi
2226
2227 if test -n "$MAKEINFO"; then
2228   # Found it, now check the version.
2229   echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2230 echo "configure:2231: checking for modern makeinfo" >&5
2231 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2232   echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234     ac_prog_version=`$MAKEINFO --version 2>&1 |
2235                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2236   echo "configure:2237: version of makeinfo is $ac_prog_version" >&5
2237   case $ac_prog_version in
2238     '')     gcc_cv_prog_makeinfo_modern=no;;
2239     3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
2240             gcc_cv_prog_makeinfo_modern=yes;;
2241     *)      gcc_cv_prog_makeinfo_modern=no;;
2242   esac
2243
2244 fi
2245
2246 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2247 else
2248   gcc_cv_prog_makeinfo_modern=no
2249 fi
2250
2251 fi
2252
2253 if test $gcc_cv_prog_makeinfo_modern = no; then
2254   echo "configure: warning: 
2255 *** Makeinfo is missing or too old.
2256 *** Info documentation will not be built or installed." 1>&2
2257   BUILD_INFO=
2258   INSTALL_INFO=
2259 else
2260   BUILD_INFO=info               
2261   INSTALL_INFO=install-info     
2262 fi
2263
2264 # See if the stage1 system preprocessor understands the ANSI C
2265 # preprocessor stringification operator.
2266
2267
2268 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2269 echo "configure:2270: checking for preprocessor stringizing operator" >&5
2270 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2271   echo $ac_n "(cached) $ac_c" 1>&6
2272 else
2273   cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276
2277 #define x(y) #y
2278
2279 char *s = x(teststring);
2280
2281 EOF
2282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2283   egrep "#teststring" >/dev/null 2>&1; then
2284   rm -rf conftest*
2285   ac_cv_c_stringize=no
2286 else
2287   rm -rf conftest*
2288   ac_cv_c_stringize=yes
2289 fi
2290 rm -f conftest*
2291
2292 fi
2293
2294 if test "${ac_cv_c_stringize}" = yes
2295 then
2296         cat >> confdefs.h <<\EOF
2297 #define HAVE_STRINGIZE 1
2298 EOF
2299
2300 fi
2301 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2302
2303
2304 # Use <inttypes.h> only if it exists,
2305 # doesn't clash with <sys/types.h>, and declares intmax_t.
2306 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2307 echo "configure:2308: checking for inttypes.h" >&5
2308 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2309   echo $ac_n "(cached) $ac_c" 1>&6
2310 else
2311   cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 #include <sys/types.h>
2315 #include <inttypes.h>
2316 int main() {
2317 intmax_t i = -1;
2318 ; return 0; }
2319 EOF
2320 if { (eval echo configure:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321   rm -rf conftest*
2322   gcc_cv_header_inttypes_h=yes
2323 else
2324   echo "configure: failed program was:" >&5
2325   cat conftest.$ac_ext >&5
2326   rm -rf conftest*
2327   gcc_cv_header_inttypes_h=no
2328 fi
2329 rm -f conftest*
2330 fi
2331
2332 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2333 if test $gcc_cv_header_inttypes_h = yes; then
2334   cat >> confdefs.h <<\EOF
2335 #define HAVE_INTTYPES_H 1
2336 EOF
2337
2338 fi
2339
2340 #
2341 # Determine if enumerated bitfields are unsigned.   ISO C says they can 
2342 # be either signed or unsigned.
2343 #
2344 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2345 echo "configure:2346: checking for unsigned enumerated bitfields" >&5
2346 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2347   echo $ac_n "(cached) $ac_c" 1>&6
2348 else
2349   if test "$cross_compiling" = yes; then
2350   gcc_cv_enum_bf_unsigned=yes
2351 else
2352   cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 #include <stdlib.h>
2356 enum t { BLAH = 128 } ;
2357 struct s_t { enum t member : 8; } s ;
2358 int main(void)
2359 {            
2360         s.member = BLAH;
2361         if (s.member < 0) exit(1);
2362         exit(0);
2363
2364 }
2365 EOF
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2367 then
2368   gcc_cv_enum_bf_unsigned=yes
2369 else
2370   echo "configure: failed program was:" >&5
2371   cat conftest.$ac_ext >&5
2372   rm -fr conftest*
2373   gcc_cv_enum_bf_unsigned=no
2374 fi
2375 rm -fr conftest*
2376 fi
2377
2378 fi
2379
2380 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2381 if test $gcc_cv_enum_bf_unsigned = yes; then
2382   cat >> confdefs.h <<\EOF
2383 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2384 EOF
2385
2386 fi
2387
2388 for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \
2389         index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2390         sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2391         fputs_unlocked getrusage valloc
2392 do
2393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_func" >&5
2395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2396   echo $ac_n "(cached) $ac_c" 1>&6
2397 else
2398   cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 /* System header to define __stub macros and hopefully few prototypes,
2402     which can conflict with char $ac_func(); below.  */
2403 #include <assert.h>
2404 /* Override any gcc2 internal prototype to avoid an error.  */
2405 /* We use char because int might match the return type of a gcc2
2406     builtin and then its argument prototype would still apply.  */
2407 char $ac_func();
2408
2409 int main() {
2410
2411 /* The GNU C library defines this for functions which it implements
2412     to always fail with ENOSYS.  Some functions are actually named
2413     something starting with __ and the normal name is an alias.  */
2414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2415 choke me
2416 #else
2417 $ac_func();
2418 #endif
2419
2420 ; return 0; }
2421 EOF
2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2423   rm -rf conftest*
2424   eval "ac_cv_func_$ac_func=yes"
2425 else
2426   echo "configure: failed program was:" >&5
2427   cat conftest.$ac_ext >&5
2428   rm -rf conftest*
2429   eval "ac_cv_func_$ac_func=no"
2430 fi
2431 rm -f conftest*
2432 fi
2433
2434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2435   echo "$ac_t""yes" 1>&6
2436     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2437   cat >> confdefs.h <<EOF
2438 #define $ac_tr_func 1
2439 EOF
2440  
2441 else
2442   echo "$ac_t""no" 1>&6
2443 fi
2444 done
2445
2446
2447 # Make sure wchar_t is available
2448 #AC_CHECK_TYPE(wchar_t, unsigned int)
2449
2450 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2451 echo "configure:2452: checking for vprintf" >&5
2452 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2453   echo $ac_n "(cached) $ac_c" 1>&6
2454 else
2455   cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 /* System header to define __stub macros and hopefully few prototypes,
2459     which can conflict with char vprintf(); below.  */
2460 #include <assert.h>
2461 /* Override any gcc2 internal prototype to avoid an error.  */
2462 /* We use char because int might match the return type of a gcc2
2463     builtin and then its argument prototype would still apply.  */
2464 char vprintf();
2465
2466 int main() {
2467
2468 /* The GNU C library defines this for functions which it implements
2469     to always fail with ENOSYS.  Some functions are actually named
2470     something starting with __ and the normal name is an alias.  */
2471 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2472 choke me
2473 #else
2474 vprintf();
2475 #endif
2476
2477 ; return 0; }
2478 EOF
2479 if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2480   rm -rf conftest*
2481   eval "ac_cv_func_vprintf=yes"
2482 else
2483   echo "configure: failed program was:" >&5
2484   cat conftest.$ac_ext >&5
2485   rm -rf conftest*
2486   eval "ac_cv_func_vprintf=no"
2487 fi
2488 rm -f conftest*
2489 fi
2490
2491 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2492   echo "$ac_t""yes" 1>&6
2493   cat >> confdefs.h <<\EOF
2494 #define HAVE_VPRINTF 1
2495 EOF
2496
2497 else
2498   echo "$ac_t""no" 1>&6
2499 fi
2500
2501 if test "$ac_cv_func_vprintf" != yes; then
2502 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2503 echo "configure:2504: checking for _doprnt" >&5
2504 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2505   echo $ac_n "(cached) $ac_c" 1>&6
2506 else
2507   cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 /* System header to define __stub macros and hopefully few prototypes,
2511     which can conflict with char _doprnt(); below.  */
2512 #include <assert.h>
2513 /* Override any gcc2 internal prototype to avoid an error.  */
2514 /* We use char because int might match the return type of a gcc2
2515     builtin and then its argument prototype would still apply.  */
2516 char _doprnt();
2517
2518 int main() {
2519
2520 /* The GNU C library defines this for functions which it implements
2521     to always fail with ENOSYS.  Some functions are actually named
2522     something starting with __ and the normal name is an alias.  */
2523 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2524 choke me
2525 #else
2526 _doprnt();
2527 #endif
2528
2529 ; return 0; }
2530 EOF
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2532   rm -rf conftest*
2533   eval "ac_cv_func__doprnt=yes"
2534 else
2535   echo "configure: failed program was:" >&5
2536   cat conftest.$ac_ext >&5
2537   rm -rf conftest*
2538   eval "ac_cv_func__doprnt=no"
2539 fi
2540 rm -f conftest*
2541 fi
2542
2543 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2544   echo "$ac_t""yes" 1>&6
2545   cat >> confdefs.h <<\EOF
2546 #define HAVE_DOPRNT 1
2547 EOF
2548
2549 else
2550   echo "$ac_t""no" 1>&6
2551 fi
2552
2553 fi
2554
2555 vfprintf=
2556 doprint=
2557 if test $ac_cv_func_vprintf != yes ; then
2558   vfprintf=vfprintf.o
2559   if test $ac_cv_func__doprnt != yes ; then
2560     doprint=doprint.o
2561   fi
2562 fi
2563
2564
2565
2566 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2567 echo "configure:2568: checking whether the printf functions support %p" >&5
2568 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2569   echo $ac_n "(cached) $ac_c" 1>&6
2570 else
2571   if test "$cross_compiling" = yes; then
2572   gcc_cv_func_printf_ptr=no
2573 else
2574   cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <stdio.h>
2578
2579 int main()
2580 {
2581   char buf[64];
2582   char *p = buf, *q = NULL;
2583   sprintf(buf, "%p", p);
2584   sscanf(buf, "%p", &q);
2585   return (p != q);
2586 }
2587 EOF
2588 if { (eval echo configure:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2589 then
2590   gcc_cv_func_printf_ptr=yes
2591 else
2592   echo "configure: failed program was:" >&5
2593   cat conftest.$ac_ext >&5
2594   rm -fr conftest*
2595   gcc_cv_func_printf_ptr=no
2596 fi
2597 rm -fr conftest*
2598 fi
2599
2600 rm -f core core.* *.core
2601 fi
2602
2603 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2604 if test $gcc_cv_func_printf_ptr = yes ; then
2605   cat >> confdefs.h <<\EOF
2606 #define HAVE_PRINTF_PTR 1
2607 EOF
2608
2609 fi
2610
2611
2612 case "${host}" in
2613 *-*-uwin*)
2614   # Under some versions of uwin, vfork is notoriously buggy and the test 
2615   # can hang configure; on other versions, vfork exists just as a stub.
2616   # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2617   ac_cv_func_vfork_works=no
2618   ;;
2619 esac
2620 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2621 echo "configure:2622: checking for pid_t" >&5
2622 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2623   echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2625   cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <sys/types.h>
2629 #if STDC_HEADERS
2630 #include <stdlib.h>
2631 #include <stddef.h>
2632 #endif
2633 EOF
2634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2635   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2636   rm -rf conftest*
2637   ac_cv_type_pid_t=yes
2638 else
2639   rm -rf conftest*
2640   ac_cv_type_pid_t=no
2641 fi
2642 rm -f conftest*
2643
2644 fi
2645 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2646 if test $ac_cv_type_pid_t = no; then
2647   cat >> confdefs.h <<\EOF
2648 #define pid_t int
2649 EOF
2650
2651 fi
2652
2653 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2655 echo "configure:2656: checking for vfork.h" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657   echo $ac_n "(cached) $ac_c" 1>&6
2658 else
2659   cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <vfork.h>
2663 EOF
2664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2668   rm -rf conftest*
2669   eval "ac_cv_header_$ac_safe=yes"
2670 else
2671   echo "$ac_err" >&5
2672   echo "configure: failed program was:" >&5
2673   cat conftest.$ac_ext >&5
2674   rm -rf conftest*
2675   eval "ac_cv_header_$ac_safe=no"
2676 fi
2677 rm -f conftest*
2678 fi
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680   echo "$ac_t""yes" 1>&6
2681   cat >> confdefs.h <<\EOF
2682 #define HAVE_VFORK_H 1
2683 EOF
2684
2685 else
2686   echo "$ac_t""no" 1>&6
2687 fi
2688
2689 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2690 echo "configure:2691: checking for working vfork" >&5
2691 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2692   echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694   if test "$cross_compiling" = yes; then
2695   echo $ac_n "checking for vfork""... $ac_c" 1>&6
2696 echo "configure:2697: checking for vfork" >&5
2697 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2698   echo $ac_n "(cached) $ac_c" 1>&6
2699 else
2700   cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* System header to define __stub macros and hopefully few prototypes,
2704     which can conflict with char vfork(); below.  */
2705 #include <assert.h>
2706 /* Override any gcc2 internal prototype to avoid an error.  */
2707 /* We use char because int might match the return type of a gcc2
2708     builtin and then its argument prototype would still apply.  */
2709 char vfork();
2710
2711 int main() {
2712
2713 /* The GNU C library defines this for functions which it implements
2714     to always fail with ENOSYS.  Some functions are actually named
2715     something starting with __ and the normal name is an alias.  */
2716 #if defined (__stub_vfork) || defined (__stub___vfork)
2717 choke me
2718 #else
2719 vfork();
2720 #endif
2721
2722 ; return 0; }
2723 EOF
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2725   rm -rf conftest*
2726   eval "ac_cv_func_vfork=yes"
2727 else
2728   echo "configure: failed program was:" >&5
2729   cat conftest.$ac_ext >&5
2730   rm -rf conftest*
2731   eval "ac_cv_func_vfork=no"
2732 fi
2733 rm -f conftest*
2734 fi
2735
2736 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2737   echo "$ac_t""yes" 1>&6
2738   :
2739 else
2740   echo "$ac_t""no" 1>&6
2741 fi
2742
2743 ac_cv_func_vfork_works=$ac_cv_func_vfork
2744 else
2745   cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* Thanks to Paul Eggert for this test.  */
2749 #include <stdio.h>
2750 #include <sys/types.h>
2751 #include <sys/stat.h>
2752 #ifdef HAVE_UNISTD_H
2753 #include <unistd.h>
2754 #endif
2755 #ifdef HAVE_VFORK_H
2756 #include <vfork.h>
2757 #endif
2758 /* On some sparc systems, changes by the child to local and incoming
2759    argument registers are propagated back to the parent.
2760    The compiler is told about this with #include <vfork.h>,
2761    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2762    Test for this by using a static variable whose address
2763    is put into a register that is clobbered by the vfork.  */
2764 static
2765 #ifdef __cplusplus
2766 sparc_address_test (int arg)
2767 #else
2768 sparc_address_test (arg) int arg;
2769 #endif
2770 {
2771   static pid_t child;
2772   if (!child) {
2773     child = vfork ();
2774     if (child < 0) {
2775       perror ("vfork");
2776       _exit(2);
2777     }
2778     if (!child) {
2779       arg = getpid();
2780       write(-1, "", 0);
2781       _exit (arg);
2782     }
2783   }
2784 }
2785 main() {
2786   pid_t parent = getpid ();
2787   pid_t child;
2788
2789   sparc_address_test ();
2790
2791   child = vfork ();
2792
2793   if (child == 0) {
2794     /* Here is another test for sparc vfork register problems.
2795        This test uses lots of local variables, at least
2796        as many local variables as main has allocated so far
2797        including compiler temporaries.  4 locals are enough for
2798        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2799        A buggy compiler should reuse the register of parent
2800        for one of the local variables, since it will think that
2801        parent can't possibly be used any more in this routine.
2802        Assigning to the local variable will thus munge parent
2803        in the parent process.  */
2804     pid_t
2805       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2806       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2807     /* Convince the compiler that p..p7 are live; otherwise, it might
2808        use the same hardware register for all 8 local variables.  */
2809     if (p != p1 || p != p2 || p != p3 || p != p4
2810         || p != p5 || p != p6 || p != p7)
2811       _exit(1);
2812
2813     /* On some systems (e.g. IRIX 3.3),
2814        vfork doesn't separate parent from child file descriptors.
2815        If the child closes a descriptor before it execs or exits,
2816        this munges the parent's descriptor as well.
2817        Test for this by closing stdout in the child.  */
2818     _exit(close(fileno(stdout)) != 0);
2819   } else {
2820     int status;
2821     struct stat st;
2822
2823     while (wait(&status) != child)
2824       ;
2825     exit(
2826          /* Was there some problem with vforking?  */
2827          child < 0
2828
2829          /* Did the child fail?  (This shouldn't happen.)  */
2830          || status
2831
2832          /* Did the vfork/compiler bug occur?  */
2833          || parent != getpid()
2834
2835          /* Did the file descriptor bug occur?  */
2836          || fstat(fileno(stdout), &st) != 0
2837          );
2838   }
2839 }
2840 EOF
2841 if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2842 then
2843   ac_cv_func_vfork_works=yes
2844 else
2845   echo "configure: failed program was:" >&5
2846   cat conftest.$ac_ext >&5
2847   rm -fr conftest*
2848   ac_cv_func_vfork_works=no
2849 fi
2850 rm -fr conftest*
2851 fi
2852
2853 fi
2854
2855 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2856 if test $ac_cv_func_vfork_works = no; then
2857   cat >> confdefs.h <<\EOF
2858 #define vfork fork
2859 EOF
2860
2861 fi
2862
2863 for ac_hdr in unistd.h
2864 do
2865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_hdr" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2869   echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871   cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 #include <$ac_hdr>
2875 EOF
2876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2877 { (eval echo configure:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2879 if test -z "$ac_err"; then
2880   rm -rf conftest*
2881   eval "ac_cv_header_$ac_safe=yes"
2882 else
2883   echo "$ac_err" >&5
2884   echo "configure: failed program was:" >&5
2885   cat conftest.$ac_ext >&5
2886   rm -rf conftest*
2887   eval "ac_cv_header_$ac_safe=no"
2888 fi
2889 rm -f conftest*
2890 fi
2891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2892   echo "$ac_t""yes" 1>&6
2893     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2894   cat >> confdefs.h <<EOF
2895 #define $ac_tr_hdr 1
2896 EOF
2897  
2898 else
2899   echo "$ac_t""no" 1>&6
2900 fi
2901 done
2902
2903 for ac_func in getpagesize
2904 do
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908   echo $ac_n "(cached) $ac_c" 1>&6
2909 else
2910   cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914     which can conflict with char $ac_func(); below.  */
2915 #include <assert.h>
2916 /* Override any gcc2 internal prototype to avoid an error.  */
2917 /* We use char because int might match the return type of a gcc2
2918     builtin and then its argument prototype would still apply.  */
2919 char $ac_func();
2920
2921 int main() {
2922
2923 /* The GNU C library defines this for functions which it implements
2924     to always fail with ENOSYS.  Some functions are actually named
2925     something starting with __ and the normal name is an alias.  */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2927 choke me
2928 #else
2929 $ac_func();
2930 #endif
2931
2932 ; return 0; }
2933 EOF
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2935   rm -rf conftest*
2936   eval "ac_cv_func_$ac_func=yes"
2937 else
2938   echo "configure: failed program was:" >&5
2939   cat conftest.$ac_ext >&5
2940   rm -rf conftest*
2941   eval "ac_cv_func_$ac_func=no"
2942 fi
2943 rm -f conftest*
2944 fi
2945
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947   echo "$ac_t""yes" 1>&6
2948     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949   cat >> confdefs.h <<EOF
2950 #define $ac_tr_func 1
2951 EOF
2952  
2953 else
2954   echo "$ac_t""no" 1>&6
2955 fi
2956 done
2957
2958 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2959 echo "configure:2960: checking for working mmap from /dev/zero" >&5
2960 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2961   echo $ac_n "(cached) $ac_c" 1>&6
2962 else
2963   if test "$cross_compiling" = yes; then
2964   ac_cv_func_mmap_anywhere=no
2965 else
2966   cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969
2970 /* Test by Richard Henderson and Alexandre Oliva.
2971    Check whether mmap from /dev/zero works. */
2972 #include <sys/types.h>
2973 #include <fcntl.h>
2974 #include <sys/mman.h>
2975
2976 /* This mess was copied from the GNU getpagesize.h.  */
2977 #ifndef HAVE_GETPAGESIZE
2978 # ifdef HAVE_UNISTD_H
2979 #  include <unistd.h>
2980 # endif
2981
2982 /* Assume that all systems that can run configure have sys/param.h.  */
2983 # ifndef HAVE_SYS_PARAM_H
2984 #  define HAVE_SYS_PARAM_H 1
2985 # endif
2986
2987 # ifdef _SC_PAGESIZE
2988 #  define getpagesize() sysconf(_SC_PAGESIZE)
2989 # else /* no _SC_PAGESIZE */
2990 #  ifdef HAVE_SYS_PARAM_H
2991 #   include <sys/param.h>
2992 #   ifdef EXEC_PAGESIZE
2993 #    define getpagesize() EXEC_PAGESIZE
2994 #   else /* no EXEC_PAGESIZE */
2995 #    ifdef NBPG
2996 #     define getpagesize() NBPG * CLSIZE
2997 #     ifndef CLSIZE
2998 #      define CLSIZE 1
2999 #     endif /* no CLSIZE */
3000 #    else /* no NBPG */
3001 #     ifdef NBPC
3002 #      define getpagesize() NBPC
3003 #     else /* no NBPC */
3004 #      ifdef PAGESIZE
3005 #       define getpagesize() PAGESIZE
3006 #      endif /* PAGESIZE */
3007 #     endif /* no NBPC */
3008 #    endif /* no NBPG */
3009 #   endif /* no EXEC_PAGESIZE */
3010 #  else /* no HAVE_SYS_PARAM_H */
3011 #   define getpagesize() 8192   /* punt totally */
3012 #  endif /* no HAVE_SYS_PARAM_H */
3013 # endif /* no _SC_PAGESIZE */
3014
3015 #endif /* no HAVE_GETPAGESIZE */
3016
3017 int main()
3018 {
3019   char *x;
3020   int fd, pg;
3021
3022   fd = open("/dev/zero", O_RDWR);
3023   if (fd < 0)
3024     exit(1);
3025
3026   pg = getpagesize();
3027   x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3028   if (x == (char *) -1)
3029     exit(2);
3030
3031   *(int *)x += 1;
3032
3033   if (munmap(x, pg) < 0)
3034     exit(3);
3035
3036   exit(0);
3037 }
3038 EOF
3039 if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3040 then
3041   ac_cv_func_mmap_anywhere=yes
3042 else
3043   echo "configure: failed program was:" >&5
3044   cat conftest.$ac_ext >&5
3045   rm -fr conftest*
3046   ac_cv_func_mmap_anywhere=no
3047 fi
3048 rm -fr conftest*
3049 fi
3050
3051 fi
3052
3053 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3054 if test $ac_cv_func_mmap_anywhere = yes; then
3055   cat >> confdefs.h <<\EOF
3056 #define HAVE_MMAP_ANYWHERE 1
3057 EOF
3058
3059 fi
3060
3061 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3062 echo "configure:3063: checking for working mmap of a file" >&5
3063 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3064   echo $ac_n "(cached) $ac_c" 1>&6
3065 else
3066   # Create a file one thousand bytes long.
3067 for i in 1 2 3 4 5 6 7 8 9 0
3068 do for j in 1 2 3 4 5 6 7 8 9 0
3069 do echo $i $j xxxxx
3070 done
3071 done > conftestdata$$
3072
3073 if test "$cross_compiling" = yes; then
3074   ac_cv_func_mmap_file=no
3075 else
3076   cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079
3080 /* Test by Zack Weinberg.  Modified from MMAP_ANYWHERE test by
3081    Richard Henderson and Alexandre Oliva.
3082    Check whether read-only mmap of a plain file works. */
3083 #include <sys/types.h>
3084 #include <sys/stat.h>
3085 #include <fcntl.h>
3086 #include <sys/mman.h>
3087
3088 int main()
3089 {
3090   char *x;
3091   int fd;
3092   struct stat st;
3093
3094   fd = open("conftestdata$$", O_RDONLY);
3095   if (fd < 0)
3096     exit(1);
3097
3098   if (fstat (fd, &st))
3099     exit(2);
3100
3101   x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3102   if (x == (char *) -1)
3103     exit(3);
3104
3105   if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3106     exit(4);
3107
3108   if (munmap(x, st.st_size) < 0)
3109     exit(5);
3110
3111   exit(0);
3112 }
3113 EOF
3114 if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3115 then
3116   ac_cv_func_mmap_file=yes
3117 else
3118   echo "configure: failed program was:" >&5
3119   cat conftest.$ac_ext >&5
3120   rm -fr conftest*
3121   ac_cv_func_mmap_file=no
3122 fi
3123 rm -fr conftest*
3124 fi
3125
3126 fi
3127
3128 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3129 if test $ac_cv_func_mmap_file = yes; then
3130   cat >> confdefs.h <<\EOF
3131 #define HAVE_MMAP_FILE 1
3132 EOF
3133
3134 fi
3135
3136
3137 # We will need to find libiberty.h and ansidecl.h
3138 saved_CFLAGS="$CFLAGS"
3139 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3140 for ac_func in bcopy bzero bcmp \
3141         index rindex getenv atol sbrk abort atof getcwd getwd \
3142         strsignal putc_unlocked fputs_unlocked strstr environ \
3143         malloc realloc calloc free
3144 do
3145 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3146 echo "configure:3147: checking whether $ac_func must be declared" >&5
3147 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3148   echo $ac_n "(cached) $ac_c" 1>&6
3149 else
3150   cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153
3154 #include "gansidecl.h"
3155 #include "system.h"
3156 int main() {
3157 #ifndef $ac_func
3158 char *(*pfn) = (char *(*)) $ac_func ;
3159 #endif
3160 ; return 0; }
3161 EOF
3162 if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3163   rm -rf conftest*
3164   eval "gcc_cv_decl_needed_$ac_func=no"
3165 else
3166   echo "configure: failed program was:" >&5
3167   cat conftest.$ac_ext >&5
3168   rm -rf conftest*
3169   eval "gcc_cv_decl_needed_$ac_func=yes"
3170 fi
3171 rm -f conftest*
3172 fi
3173
3174 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3175   echo "$ac_t""yes" 1>&6 ;   ac_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3176   cat >> confdefs.h <<EOF
3177 #define $ac_tr_decl 1
3178 EOF
3179  
3180 else
3181   echo "$ac_t""no" 1>&6 ; :
3182 fi
3183
3184 done
3185 if test x = y ; then
3186   cat >> confdefs.h <<EOF
3187 #define NEED_DECLARATION_BCOPY 1
3188 EOF
3189  cat >> confdefs.h <<EOF
3190 #define NEED_DECLARATION_BZERO 1
3191 EOF
3192  cat >> confdefs.h <<EOF
3193 #define NEED_DECLARATION_BCMP 1
3194 EOF
3195  \
3196         cat >> confdefs.h <<EOF
3197 #define NEED_DECLARATION_INDEX 1
3198 EOF
3199  cat >> confdefs.h <<EOF
3200 #define NEED_DECLARATION_RINDEX 1
3201 EOF
3202  cat >> confdefs.h <<EOF
3203 #define NEED_DECLARATION_GETENV 1
3204 EOF
3205  cat >> confdefs.h <<EOF
3206 #define NEED_DECLARATION_ATOL 1
3207 EOF
3208  cat >> confdefs.h <<EOF
3209 #define NEED_DECLARATION_SBRK 1
3210 EOF
3211  cat >> confdefs.h <<EOF
3212 #define NEED_DECLARATION_ABORT 1
3213 EOF
3214  cat >> confdefs.h <<EOF
3215 #define NEED_DECLARATION_ATOF 1
3216 EOF
3217  cat >> confdefs.h <<EOF
3218 #define NEED_DECLARATION_GETCWD 1
3219 EOF
3220  cat >> confdefs.h <<EOF
3221 #define NEED_DECLARATION_GETWD 1
3222 EOF
3223  \
3224         cat >> confdefs.h <<EOF
3225 #define NEED_DECLARATION_STRSIGNAL 1
3226 EOF
3227  cat >> confdefs.h <<EOF
3228 #define NEED_DECLARATION_PUTC_UNLOCKED 1
3229 EOF
3230  cat >> confdefs.h <<EOF
3231 #define NEED_DECLARATION_FPUTS_UNLOCKED 1
3232 EOF
3233  cat >> confdefs.h <<EOF
3234 #define NEED_DECLARATION_STRSTR 1
3235 EOF
3236  cat >> confdefs.h <<EOF
3237 #define NEED_DECLARATION_ENVIRON 1
3238 EOF
3239  \
3240         cat >> confdefs.h <<EOF
3241 #define NEED_DECLARATION_MALLOC 1
3242 EOF
3243  cat >> confdefs.h <<EOF
3244 #define NEED_DECLARATION_REALLOC 1
3245 EOF
3246  cat >> confdefs.h <<EOF
3247 #define NEED_DECLARATION_CALLOC 1
3248 EOF
3249  cat >> confdefs.h <<EOF
3250 #define NEED_DECLARATION_FREE 1
3251 EOF
3252 fi
3253
3254
3255 for ac_func in getrlimit setrlimit getrusage
3256 do
3257 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3258 echo "configure:3259: checking whether $ac_func must be declared" >&5
3259 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3260   echo $ac_n "(cached) $ac_c" 1>&6
3261 else
3262   cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265
3266 #include "gansidecl.h"
3267 #include "system.h"
3268 #ifdef HAVE_SYS_RESOURCE_H
3269 #include <sys/resource.h>
3270 #endif
3271
3272 int main() {
3273 #ifndef $ac_func
3274 char *(*pfn) = (char *(*)) $ac_func ;
3275 #endif
3276 ; return 0; }
3277 EOF
3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279   rm -rf conftest*
3280   eval "gcc_cv_decl_needed_$ac_func=no"
3281 else
3282   echo "configure: failed program was:" >&5
3283   cat conftest.$ac_ext >&5
3284   rm -rf conftest*
3285   eval "gcc_cv_decl_needed_$ac_func=yes"
3286 fi
3287 rm -f conftest*
3288 fi
3289
3290 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3291   echo "$ac_t""yes" 1>&6 ;   ac_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3292   cat >> confdefs.h <<EOF
3293 #define $ac_tr_decl 1
3294 EOF
3295  
3296 else
3297   echo "$ac_t""no" 1>&6 ; :
3298 fi
3299
3300 done
3301 if test x = y ; then
3302   cat >> confdefs.h <<EOF
3303 #define NEED_DECLARATION_GETRLIMIT 1
3304 EOF
3305  cat >> confdefs.h <<EOF
3306 #define NEED_DECLARATION_SETRLIMIT 1
3307 EOF
3308  cat >> confdefs.h <<EOF
3309 #define NEED_DECLARATION_GETRUSAGE 1
3310 EOF
3311 fi
3312
3313
3314 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3315 CFLAGS="$saved_CFLAGS"
3316
3317 # mkdir takes a single argument on some systems. 
3318 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3319 echo "configure:3320: checking if mkdir takes one argument" >&5
3320 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3321   echo $ac_n "(cached) $ac_c" 1>&6
3322 else
3323   cat > conftest.$ac_ext <<EOF
3324 #line 3325 "configure"
3325 #include "confdefs.h"
3326
3327 #include <sys/types.h>
3328 #ifdef HAVE_SYS_STAT_H
3329 # include <sys/stat.h>
3330 #endif
3331 #ifdef HAVE_UNISTD_H
3332 # include <unistd.h>
3333 #endif
3334 #ifdef HAVE_DIRECT_H
3335 # include <direct.h>
3336 #endif
3337 int main() {
3338 mkdir ("foo", 0);
3339 ; return 0; }
3340 EOF
3341 if { (eval echo configure:3342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3342   rm -rf conftest*
3343   gcc_cv_mkdir_takes_one_arg=no
3344 else
3345   echo "configure: failed program was:" >&5
3346   cat conftest.$ac_ext >&5
3347   rm -rf conftest*
3348   gcc_cv_mkdir_takes_one_arg=yes
3349 fi
3350 rm -f conftest*
3351 fi
3352
3353 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3354 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3355   cat >> confdefs.h <<\EOF
3356 #define MKDIR_TAKES_ONE_ARG 1
3357 EOF
3358
3359 fi
3360
3361
3362 # File extensions
3363 manext='.1'
3364 objext='.o'
3365
3366
3367
3368 build_xm_file=
3369 build_xm_defines=
3370 build_install_headers_dir=install-headers-tar
3371 build_exeext=
3372 host_xm_file=
3373 host_xm_defines=
3374 host_xmake_file=
3375 host_truncate_target=
3376 host_exeext=
3377
3378 # Decode the host machine, then the target machine.
3379 # For the host machine, we save the xm_file variable as host_xm_file;
3380 # then we decode the target machine and forget everything else
3381 # that came from the host machine.
3382 for machine in $build $host $target; do
3383
3384         out_file=
3385         xmake_file=
3386         tmake_file=
3387         extra_headers=
3388         extra_passes=
3389         extra_parts=
3390         extra_programs=
3391         extra_objs=
3392         extra_host_objs=
3393         extra_gcc_objs=
3394         xm_defines=
3395         float_format=
3396         # Set this to force installation and use of collect2.
3397         use_collect2=
3398         # Set this to override the default target model.
3399         target_cpu_default=
3400         # Set this to control how the header file directory is installed.
3401         install_headers_dir=install-headers-tar
3402         # Set this to a non-empty list of args to pass to cpp if the target
3403         # wants its .md file passed through cpp.
3404         md_cppflags=
3405         # Set this if directory names should be truncated to 14 characters.
3406         truncate_target=
3407         # Set this if gdb needs a dir command with `dirname $out_file`
3408         gdb_needs_out_file_path=
3409         # Set this if the build machine requires executables to have a
3410         # file name suffix.
3411         exeext=
3412         # Set this to control which thread package will be used.
3413         thread_file=
3414         # Reinitialize these from the flag values every loop pass, since some
3415         # configure entries modify them.
3416         gas="$gas_flag"
3417         gnu_ld="$gnu_ld_flag"
3418         enable_threads=$enable_threads_flag
3419
3420         # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3421         # updated in each machine entry.
3422         tm_p_file=
3423         cpu_type=`echo $machine | sed 's/-.*$//'`
3424         case $machine in
3425         alpha*-*-*)
3426                 cpu_type=alpha
3427                 ;;
3428         arm*-*-*)
3429                 cpu_type=arm
3430                 ;;
3431         c*-convex-*)
3432                 cpu_type=convex
3433                 ;;
3434         i[34567]86-*-*)
3435                 cpu_type=i386
3436                 ;;
3437         hppa*-*-*)
3438                 cpu_type=pa
3439                 ;;
3440         m68000-*-*)
3441                 cpu_type=m68k
3442                 ;;
3443         mips*-*-*)
3444                 cpu_type=mips
3445                 ;;
3446         pj*-*-*)
3447                 cpu_type=pj
3448                 ;;
3449         powerpc*-*-*)
3450                 cpu_type=rs6000
3451                 ;;
3452         pyramid-*-*)
3453                 cpu_type=pyr
3454                 ;;
3455         sparc*-*-*)
3456                 cpu_type=sparc
3457                 ;;
3458         esac
3459
3460         tm_file=${cpu_type}/${cpu_type}.h
3461         xm_file=${cpu_type}/xm-${cpu_type}.h
3462         if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3463         then
3464                 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3465         fi
3466         # On a.out targets, we need to use collect2.
3467         case $machine in
3468         *-*-*aout*)
3469                 use_collect2=yes
3470                 ;;
3471         esac    
3472
3473         # Common parts for linux-gnu and openbsd systems
3474         case $machine in
3475         *-*-linux-gnu*)
3476                 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3477                 ;;
3478         *-*-openbsd*)
3479                 tm_file=${cpu_type}/openbsd.h
3480                 tmake_file="t-libc-ok t-openbsd"
3481                 # avoid surprises, always provide an xm-openbsd file 
3482                 xm_file=${cpu_type}/xm-openbsd.h
3483                 # don't depend on processor x-fragments as well
3484                 xmake_file=none
3485                 if test x$enable_threads = xyes; then
3486                         thread_file='posix'
3487                         tmake_file="${tmake_file} t-openbsd-thread"
3488                 fi
3489                 ;;
3490         esac
3491
3492         case $machine in
3493         # Support site-specific machine types.
3494         *local*)
3495                 cpu_type=`echo $machine | sed -e 's/-.*//'`
3496                 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3497                 xm_file=${cpu_type}/xm-$rest.h
3498                 tm_file=${cpu_type}/$rest.h
3499                 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3500                 then xmake_file=${cpu_type}/x-$rest; \
3501                 else true; \
3502                 fi
3503                 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3504                 then tmake_file=${cpu_type}/t-$rest; \
3505                 else true; \
3506                 fi
3507                 ;;
3508         1750a-*-*)
3509                 ;;
3510         a29k-*-bsd* | a29k-*-sym1*)
3511                 tm_file="${tm_file} a29k/unix.h"
3512                 xm_defines=USG
3513                 xmake_file=a29k/x-unix
3514                 use_collect2=yes
3515                 ;;
3516         a29k-*-udi | a29k-*-coff)
3517                 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3518                 tmake_file=a29k/t-a29kbare
3519                 ;;
3520         a29k-wrs-vxworks*)
3521                 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3522                 tmake_file=a29k/t-vx29k
3523                 extra_parts="crtbegin.o crtend.o"
3524                 thread_file='vxworks'
3525                 ;;
3526         a29k-*-*)                       # Default a29k environment.
3527                 use_collect2=yes
3528                 ;;
3529         alpha-*-interix)
3530                 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3531
3532                 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3533                 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3534
3535                 # GAS + IEEE_CONFORMANT
3536                 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3537
3538                 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3539                 xmake_file="x-interix alpha/t-pe"
3540                 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3541                 if test x$enable_threads = xyes ; then
3542                         thread_file='posix'
3543                 fi
3544                 if test x$stabs = xyes ; then
3545                         tm_file="${tm_file} dbxcoff.h"
3546                 fi
3547                 #prefix='$$INTERIX_ROOT'/usr/contrib
3548                 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3549                 ;;
3550         alpha*-*-linux-gnuecoff*)
3551                 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3552                 target_cpu_default="MASK_GAS"
3553                 tmake_file="alpha/t-alpha alpha/t-ieee"
3554                 gas=no
3555                 xmake_file=none
3556                 gas=yes gnu_ld=yes
3557                 ;;
3558         alpha*-*-linux-gnulibc1*)
3559                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3560                 target_cpu_default="MASK_GAS"
3561                 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3562                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3563                 xmake_file=none
3564                 gas=yes gnu_ld=yes
3565                 if test x$enable_threads = xyes; then
3566                         thread_file='posix'
3567                 fi
3568                 ;;
3569         alpha*-*-linux-gnu*)
3570                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3571                 target_cpu_default="MASK_GAS"
3572                 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3573                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3574                 xmake_file=none
3575                 gas=yes gnu_ld=yes
3576                 if test x$enable_threads = xyes; then
3577                         thread_file='posix'
3578                 fi
3579                 ;;
3580         alpha*-*-netbsd*)
3581                 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3582                 target_cpu_default="MASK_GAS"
3583                 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3584                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3585                 xmake_file=none
3586                 gas=yes gnu_ld=yes
3587                 ;;
3588
3589         alpha*-*-openbsd*)
3590                 # default x-alpha is only appropriate for dec-osf.
3591                 target_cpu_default="MASK_GAS"
3592                 tmake_file="alpha/t-alpha alpha/t-ieee"
3593                 ;;
3594                 
3595         alpha*-dec-osf*)
3596                 if test x$stabs = xyes
3597                 then
3598                         tm_file="${tm_file} dbx.h"
3599                 fi
3600                 if test x$gas != xyes
3601                 then
3602                         extra_passes="mips-tfile mips-tdump"
3603                 fi
3604                 use_collect2=yes
3605                 tmake_file="alpha/t-alpha alpha/t-ieee"
3606                 case $machine in
3607                   *-*-osf1*)
3608                     tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3609                     ;;
3610                   *-*-osf[23]*)
3611                     tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3612                     ;;
3613                   *-*-osf4*)
3614                     tm_file="${tm_file} alpha/osf.h"
3615                     # Some versions of OSF4 (specifically X4.0-9 296.7) have
3616                     # a broken tar, so we use cpio instead.
3617                     install_headers_dir=install-headers-cpio
3618                     ;;
3619                   *-*-osf5*)
3620                     tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
3621                     ;;
3622                 esac
3623                 case $machine in
3624                   *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
3625                     target_cpu_default=MASK_SUPPORT_ARCH
3626                     ;;
3627                 esac
3628                 ;;
3629         alpha*-*-vxworks*)
3630                 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3631                 tmake_file="alpha/t-alpha alpha/t-ieee"
3632                 if  x$gas != xyes 
3633                 then
3634                         extra_passes="mips-tfile mips-tdump"
3635                 fi
3636                 use_collect2=yes
3637                 thread_file='vxworks'
3638                 ;;
3639         alpha*-*-winnt*)
3640                 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3641                 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3642                 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
3643                 xmake_file=winnt/x-winnt
3644                 extra_host_objs=oldnames.o
3645                 extra_gcc_objs="spawnv.o oldnames.o"
3646                 if test x$gnu_ld != xyes
3647                 then
3648                         extra_programs=ld.exe
3649                 fi
3650                 if test x$enable_threads = xyes; then
3651                         thread_file='win32'
3652                 fi
3653                 ;;
3654         alpha*-dec-vms*)
3655                 tm_file=alpha/vms.h
3656                 xm_file="${xm_file} alpha/xm-vms.h"
3657                 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3658                 ;;
3659         arc-*-elf*)
3660                 extra_parts="crtinit.o crtfini.o"
3661                 ;;
3662         arm-*-coff* | armel-*-coff*)
3663                 tm_file=arm/coff.h
3664                 tmake_file=arm/t-arm-coff
3665                 ;;
3666         arm-*-vxworks*)
3667                 tm_file=arm/vxarm.h
3668                 tmake_file=arm/t-arm-coff
3669                 thread_file='vxworks'
3670                 ;;
3671         arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
3672                 tm_file=arm/riscix1-1.h
3673                 use_collect2=yes
3674                 ;;
3675         arm-*-riscix*)                  # Acorn RISC machine
3676                 if test x$gas = xyes
3677                 then
3678                     tm_file=arm/rix-gas.h
3679                 else
3680                     tm_file=arm/riscix.h
3681                 fi
3682                 xmake_file=arm/x-riscix
3683                 tmake_file=arm/t-riscix
3684                 use_collect2=yes
3685                 ;;
3686         arm-semi-aout | armel-semi-aout)
3687                 tm_file=arm/semi.h
3688                 tmake_file=arm/t-semi
3689                 ;;
3690         arm-semi-aof | armel-semi-aof)
3691                 tm_file=arm/semiaof.h
3692                 tmake_file=arm/t-semiaof
3693                 ;;
3694         arm*-*-netbsd*)
3695                 tm_file=arm/netbsd.h
3696                 tmake_file="t-netbsd arm/t-netbsd"
3697                 use_collect2=yes
3698                 ;;
3699         arm*-*-linux-gnuaout*)          # ARM GNU/Linux with a.out
3700                 cpu_type=arm
3701                 xmake_file=x-linux
3702                 tm_file=arm/linux-aout.h
3703                 tmake_file=arm/t-linux
3704                 gnu_ld=yes
3705                 ;;
3706         arm*-*-linux-gnuoldld*)         # ARM GNU/Linux with old ELF linker
3707                 xm_file=arm/xm-linux.h
3708                 xmake_file=x-linux
3709                 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3710                 case $machine in
3711                 armv2*-*-*)
3712                         tm_file="arm/linux-elf26.h $tm_file"
3713                         ;;
3714                 esac
3715                 tmake_file="t-linux arm/t-linux"
3716                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3717                 gnu_ld=yes
3718                 case x${enable_threads} in
3719                 x | xyes | xpthreads | xposix)
3720                         thread_file='posix'
3721                         ;;
3722                 esac
3723                 ;;
3724         arm*-*-linux-gnu*)              # ARM GNU/Linux with ELF
3725                 xm_file=arm/xm-linux.h
3726                 xmake_file=x-linux
3727                 tm_file="arm/linux-elf.h"
3728                 case $machine in
3729                 armv2*-*-*)
3730                         tm_file="arm/linux-elf26.h $tm_file"
3731                         ;;
3732                 esac
3733                 tmake_file="t-linux arm/t-linux"
3734                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3735                 gnu_ld=yes
3736                 case x${enable_threads} in
3737                 x | xyes | xpthreads | xposix)
3738                         thread_file='posix'
3739                         ;;
3740                 esac
3741                 ;;
3742         arm*-*-uclinux*)                # ARM ucLinux
3743                 tm_file=arm/uclinux-elf.h
3744                 tmake_file=arm/t-arm-elf
3745                 ;;
3746         arm*-*-aout)
3747                 tm_file=arm/aout.h
3748                 tmake_file=arm/t-arm-aout
3749                 ;;
3750         arm*-*-ecos-elf)
3751                 tm_file=arm/ecos-elf.h
3752                 tmake_file=arm/t-arm-elf
3753                 ;; 
3754         arm*-*-elf)
3755                 tm_file=arm/unknown-elf.h
3756                 tmake_file=arm/t-arm-elf
3757                 ;;
3758         arm*-*-conix*)
3759                 tm_file=arm/conix-elf.h
3760                 tmake_file=arm/t-arm-elf
3761                 ;;
3762         arm*-*-oabi)
3763                 tm_file=arm/unknown-elf-oabi.h
3764                 tmake_file=arm/t-arm-elf
3765                 ;;
3766         arm-*-pe*)
3767                 tm_file=arm/pe.h
3768                 tmake_file=arm/t-pe
3769                 extra_objs="pe.o"
3770                 ;;
3771         avr-*-*)
3772                 ;;
3773         c1-convex-*)                    # Convex C1
3774                 target_cpu_default=1
3775                 use_collect2=yes
3776                 ;;
3777         c2-convex-*)                    # Convex C2
3778                 target_cpu_default=2
3779                 use_collect2=yes
3780                 ;;
3781         c32-convex-*)
3782                 target_cpu_default=4
3783                 use_collect2=yes
3784                 ;;
3785         c34-convex-*)
3786                 target_cpu_default=8
3787                 use_collect2=yes
3788                 ;;
3789         c38-convex-*)
3790                 target_cpu_default=16           
3791                 use_collect2=yes
3792                 ;;
3793         c4x-*)
3794                 cpu_type=c4x
3795                 tmake_file=c4x/t-c4x
3796                 ;;
3797         clipper-intergraph-clix*)
3798                 tm_file="${tm_file} svr3.h clipper/clix.h"
3799                 xm_file=clipper/xm-clix.h
3800                 xmake_file=clipper/x-clix
3801                 extra_headers=va-clipper.h
3802                 extra_parts="crtbegin.o crtend.o"
3803                 install_headers_dir=install-headers-cpio
3804                 ;;
3805         d30v-*)
3806                 float_format=i64
3807                 ;;
3808         dsp16xx-*)
3809                 ;;
3810         elxsi-elxsi-*)
3811                 use_collect2=yes
3812                 ;;
3813         fr30-*-elf)
3814                 tm_file="fr30/fr30.h"
3815                 tmake_file=fr30/t-fr30
3816                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3817                 ;;
3818 # This hasn't been upgraded to GCC 2.
3819 #       fx80-alliant-*)                 # Alliant FX/80
3820 #               ;;
3821         h8300-*-*)
3822                 float_format=i32
3823                 ;;
3824         hppa*-*-linux*)
3825                 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3826                 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3827                 tmake_file="t-linux pa/t-linux"
3828                 extra_parts="crtbegin.o crtend.o"
3829                 xmake_file=none
3830                 gas=yes gnu_ld=yes
3831                 if test x$enable_threads = xyes; then
3832                         thread_file='posix'
3833                 fi
3834                 ;;
3835         hppa*-*-openbsd*)
3836                 target_cpu_default="MASK_PA_11"
3837                 tmake_file=pa/t-openbsd
3838                 ;;
3839         hppa1.1-*-pro*)
3840                 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3841                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3842                 xm_file=pa/xm-papro.h
3843                 tmake_file=pa/t-pro
3844                 ;;
3845         hppa1.1-*-osf*)
3846                 target_cpu_default="MASK_PA_11"
3847                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3848                 use_collect2=yes
3849                 ;;
3850         hppa1.1-*-rtems*)
3851                 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3852                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3853                 xm_file=pa/xm-papro.h
3854                 tmake_file=pa/t-pro
3855                 ;;
3856         hppa1.0-*-osf*)
3857                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3858                 use_collect2=yes
3859                 ;;
3860         hppa1.1-*-bsd*)
3861                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3862                 target_cpu_default="MASK_PA_11"
3863                 use_collect2=yes
3864                 ;;
3865         hppa1.0-*-bsd*)
3866                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
3867                 use_collect2=yes
3868                 ;;
3869         hppa1.0-*-hpux7*)
3870                 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3871                 xm_file=pa/xm-pahpux.h
3872                 xmake_file=pa/x-pa-hpux
3873                 if test x$gas = xyes
3874                 then
3875                         tm_file="${tm_file} pa/gas.h"
3876                 fi
3877                 install_headers_dir=install-headers-cpio
3878                 use_collect2=yes
3879                 ;;
3880         hppa1.0-*-hpux8.0[0-2]*)
3881                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3882                 xm_file=pa/xm-pahpux.h
3883                 xmake_file=pa/x-pa-hpux
3884                 if test x$gas = xyes
3885                 then
3886                         tm_file="${tm_file} pa/pa-gas.h"
3887                 else
3888                         tm_file="pa/pa-oldas.h ${tm_file}"
3889                 fi
3890                 install_headers_dir=install-headers-cpio
3891                 use_collect2=yes
3892                 ;;
3893         hppa1.1-*-hpux8.0[0-2]*)
3894                 target_cpu_default="MASK_PA_11"
3895                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3896                 xm_file=pa/xm-pahpux.h
3897                 xmake_file=pa/x-pa-hpux
3898                 if test x$gas = xyes
3899                 then
3900                         tm_file="${tm_file} pa/pa-gas.h"
3901                 else
3902                         tm_file="pa/pa-oldas.h ${tm_file}"
3903                 fi
3904                 install_headers_dir=install-headers-cpio
3905                 use_collect2=yes
3906                 ;;
3907         hppa1.1-*-hpux8*)
3908                 target_cpu_default="MASK_PA_11"
3909                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3910                 xm_file=pa/xm-pahpux.h
3911                 xmake_file=pa/x-pa-hpux
3912                 if test x$gas = xyes
3913                 then
3914                         tm_file="${tm_file} pa/pa-gas.h"
3915                 fi
3916                 install_headers_dir=install-headers-cpio
3917                 use_collect2=yes
3918                 ;;
3919         hppa1.0-*-hpux8*)
3920                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3921                 xm_file=pa/xm-pahpux.h
3922                 xmake_file=pa/x-pa-hpux
3923                 if test x$gas = xyes
3924                 then
3925                         tm_file="${tm_file} pa/pa-gas.h"
3926                 fi
3927                 install_headers_dir=install-headers-cpio
3928                 use_collect2=yes
3929                 ;;
3930         hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3931                 target_cpu_default="MASK_PA_11"
3932                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3933                 float_format=i128
3934                 xm_file=pa/xm-pahpux.h
3935                 xmake_file=pa/x-pa-hpux
3936                 tmake_file=pa/t-pa
3937                 if test x$gas = xyes
3938                 then
3939                         tm_file="${tm_file} pa/pa-gas.h"
3940                 fi
3941                 if test x$enable_threads = x; then
3942                     enable_threads=$have_pthread_h
3943                 fi
3944                 if test x$enable_threads = xyes; then
3945                         thread_file='dce'
3946                         tmake_file="${tmake_file} pa/t-dce-thr"
3947                 fi
3948                 install_headers_dir=install-headers-cpio
3949                 use_collect2=yes
3950                 ;;
3951         hppa1.0-*-hpux10*)
3952                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3953                 float_format=i128
3954                 xm_file=pa/xm-pahpux.h
3955                 xmake_file=pa/x-pa-hpux
3956                 tmake_file=pa/t-pa
3957                 if test x$gas = xyes
3958                 then
3959                         tm_file="${tm_file} pa/pa-gas.h"
3960                 fi
3961                 if test x$enable_threads = x; then
3962                     enable_threads=$have_pthread_h
3963                 fi
3964                 if test x$enable_threads = xyes; then
3965                         thread_file='dce'
3966                         tmake_file="${tmake_file} pa/t-dce-thr"
3967                 fi
3968                 install_headers_dir=install-headers-cpio
3969                 use_collect2=yes
3970                 ;;
3971         hppa*64*-*-hpux11*)
3972                 target_cpu_default="MASK_PA_11"
3973                 xm_file=pa/xm-pa64hpux.h
3974                 xmake_file=pa/x-pa-hpux
3975                 tmake_file=pa/t-pa
3976                 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
3977                 float_format=i128
3978                 tmake_file=pa/t-pa64
3979                 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
3980
3981                 if [ x$gas = xyes ]
3982                 then
3983                         tm_file="${tm_file} pa/pa-gas.h"
3984                 fi
3985 #               if [[ x$enable_threads = x ]]; then
3986 #                   enable_threads=$have_pthread_h
3987 #               fi
3988 #               if [[ x$enable_threads = xyes ]]; then
3989 #                       thread_file='dce'
3990 #                       tmake_file="${tmake_file} pa/t-dce-thr"
3991 #               fi
3992                 install_headers_dir=install-headers-cpio
3993                 use_collect2=yes
3994                 ;;
3995         hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3996                 target_cpu_default="MASK_PA_11"
3997                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3998                 float_format=i128
3999                 xm_file=pa/xm-pahpux.h
4000                 xmake_file=pa/x-pa-hpux
4001                 tmake_file=pa/t-pa
4002                 if test x$gas = xyes
4003                 then
4004                         tm_file="${tm_file} pa/pa-gas.h"
4005                 fi
4006 #               if test x$enable_threads = x; then
4007 #                   enable_threads=$have_pthread_h
4008 #               fi
4009 #               if test x$enable_threads = xyes; then
4010 #                       thread_file='dce'
4011 #                       tmake_file="${tmake_file} pa/t-dce-thr"
4012 #               fi
4013                 install_headers_dir=install-headers-cpio
4014                 use_collect2=yes
4015                 ;;
4016         hppa1.0-*-hpux11*)
4017                 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4018                 float_format=i128
4019                 xm_file=pa/xm-pahpux.h
4020                 xmake_file=pa/x-pa-hpux
4021                 if test x$gas = xyes
4022                 then
4023                         tm_file="${tm_file} pa/pa-gas.h"
4024                 fi
4025 #               if test x$enable_threads = x; then
4026 #                   enable_threads=$have_pthread_h
4027 #               fi
4028 #               if test x$enable_threads = xyes; then
4029 #                       thread_file='dce'
4030 #                       tmake_file="${tmake_file} pa/t-dce-thr"
4031 #               fi
4032                 install_headers_dir=install-headers-cpio
4033                 use_collect2=yes
4034                 ;;
4035         hppa1.1-*-hpux* | hppa2*-*-hpux*)
4036                 target_cpu_default="MASK_PA_11"
4037                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4038                 xm_file=pa/xm-pahpux.h
4039                 xmake_file=pa/x-pa-hpux
4040                 if test x$gas = xyes
4041                 then
4042                         tm_file="${tm_file} pa/pa-gas.h"
4043                 fi
4044                 install_headers_dir=install-headers-cpio
4045                 use_collect2=yes
4046                 ;;
4047         hppa1.0-*-hpux*)
4048                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4049                 xm_file=pa/xm-pahpux.h
4050                 xmake_file=pa/x-pa-hpux
4051                 if test x$gas = xyes
4052                 then
4053                         tm_file="${tm_file} pa/pa-gas.h"
4054                 fi
4055                 install_headers_dir=install-headers-cpio
4056                 use_collect2=yes
4057                 ;;
4058         hppa1.1-*-hiux* | hppa2*-*-hiux*)
4059                 target_cpu_default="MASK_PA_11"
4060                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4061                 xm_file=pa/xm-pahpux.h
4062                 xmake_file=pa/x-pa-hpux
4063                 if test x$gas = xyes
4064                 then
4065                         tm_file="${tm_file} pa/pa-gas.h"
4066                 fi
4067                 install_headers_dir=install-headers-cpio
4068                 use_collect2=yes
4069                 ;;
4070         hppa1.0-*-hiux*)
4071                 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4072                 xm_file=pa/xm-pahpux.h
4073                 xmake_file=pa/x-pa-hpux
4074                 if test x$gas = xyes
4075                 then
4076                         tm_file="${tm_file} pa/pa-gas.h"
4077                 fi
4078                 install_headers_dir=install-headers-cpio
4079                 use_collect2=yes
4080                 ;;
4081         hppa*-*-lites*)
4082                 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4083                 target_cpu_default="MASK_PA_11"
4084                 use_collect2=yes
4085                 ;;
4086         hppa*-*-mpeix*)
4087                 tm_file="${tm_file} pa/pa-mpeix.h"
4088                 xm_file=pa/xm-pampeix.h 
4089                 xmake_file=pa/x-pa-mpeix 
4090                 echo "You must use gas. Assuming it is already installed." 
4091                 install_headers_dir=install-headers-tar
4092                 use_collect2=yes 
4093                 ;; 
4094         i370-*-opened*)                  # IBM 360/370/390 Architecture
4095                 xm_file=i370/xm-oe.h
4096                 tm_file=i370/oe.h
4097                 xmake_file=i370/x-oe
4098                 tmake_file=i370/t-oe
4099                 ;;
4100         i370-*-mvs*)
4101                 xm_file=i370/xm-mvs.h
4102                 tm_file=i370/mvs.h
4103                 tmake_file=i370/t-mvs
4104                 ;;
4105         i370-*-linux*)
4106                 xm_file="xm-linux.h i370/xm-linux.h"
4107                 xmake_file=x-linux
4108                 tm_file="i370/linux.h ${tm_file}"
4109                 tmake_file="t-linux i370/t-linux"
4110                 # broken_install=yes
4111                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4112                 # extra_parts="crtbegin.o crtend.o"
4113                 gnu_ld=yes
4114                 gas=yes
4115                 elf=yes
4116                 if test x$enable_threads = xyes; then
4117                         thread_file='posix'
4118                 fi
4119                 ;;
4120         i[34567]86-*-elf*)
4121                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4122                 tm_file=i386/i386elf.h
4123                 tmake_file=i386/t-i386elf
4124                 xmake_file=x-svr4
4125                 ;;
4126         i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
4127                 if test x$gas = xyes
4128                 then
4129                         tm_file=i386/aix386.h
4130                         extra_parts="crtbegin.o crtend.o"
4131                         tmake_file=i386/t-crtstuff
4132                 else
4133                         tm_file=i386/aix386ng.h
4134                         use_collect2=yes
4135                 fi
4136                 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
4137                 xm_defines=USG
4138                 xmake_file=i386/x-aix
4139                 ;;
4140         i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
4141                 xm_file="xm-alloca.h ${xm_file}"
4142                 xm_defines="USG POSIX SMALL_ARG_MAX"
4143                 xmake_file=i386/x-ncr3000
4144                 if test x$stabs = xyes -a x$gas = xyes
4145                 then
4146                         tm_file=i386/sysv4gdb.h
4147                 else
4148                         tm_file=i386/sysv4.h
4149                 fi
4150                 extra_parts="crtbegin.o crtend.o"
4151                 tmake_file=i386/t-crtpic
4152                 ;;
4153         i[34567]86-next-*)
4154                 tm_file=i386/next.h
4155                 xm_file=i386/xm-next.h
4156                 tmake_file=i386/t-next
4157                 xmake_file=i386/x-next
4158                 extra_objs=nextstep.o
4159                 extra_parts="crtbegin.o crtend.o"
4160                 if test x$enable_threads = xyes; then
4161                         thread_file='mach'
4162                 fi
4163                 ;;
4164         i[34567]86-sequent-bsd*)                # 80386 from Sequent
4165                 use_collect2=yes
4166                 if test x$gas = xyes
4167                 then
4168                         tm_file=i386/seq-gas.h
4169                 else
4170                         tm_file=i386/sequent.h
4171                 fi
4172                 ;;
4173         i[34567]86-sequent-ptx1*)
4174                 xm_defines="USG SVR3"
4175                 xmake_file=i386/x-sysv3
4176                 tm_file=i386/seq-sysv3.h
4177                 tmake_file=i386/t-crtstuff
4178                 extra_parts="crtbegin.o crtend.o"
4179                 install_headers_dir=install-headers-cpio
4180                 ;;
4181         i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4182                 xm_defines="USG SVR3"
4183                 xmake_file=i386/x-sysv3
4184                 tm_file=i386/seq2-sysv3.h
4185                 tmake_file=i386/t-crtstuff
4186                 extra_parts="crtbegin.o crtend.o"
4187                 install_headers_dir=install-headers-cpio
4188                 ;;
4189         i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4190                 xm_file="xm-alloca.h ${xm_file}"
4191                 xm_defines="USG POSIX SMALL_ARG_MAX"
4192                 xmake_file=x-svr4
4193                 tm_file=i386/ptx4-i.h
4194                 tmake_file=t-svr4
4195                 extra_parts="crtbegin.o crtend.o"
4196                 install_headers_dir=install-headers-cpio
4197                 ;;
4198         i386-sun-sunos*)                # Sun i386 roadrunner
4199                 xm_defines=USG
4200                 tm_file=i386/sun.h
4201                 use_collect2=yes
4202                 ;;
4203         i[34567]86-wrs-vxworks*)
4204                 tm_file=i386/vxi386.h
4205                 tmake_file=i386/t-i386bare
4206                 thread_file='vxworks'
4207                 ;;
4208         i[34567]86-*-aout*)
4209                 tm_file=i386/i386-aout.h
4210                 tmake_file=i386/t-i386bare
4211                 ;;
4212         i[34567]86-*-beospe*)
4213                 xm_file=i386/xm-beos.h
4214                 xm_defines="USE_C_ALLOCA"
4215                 tmake_file=i386/t-beos
4216                 tm_file=i386/beos-pe.h
4217                 xmake_file=i386/x-beos
4218                 extra_objs=winnt.o
4219                 ;;
4220         i[34567]86-*-beoself* | i[34567]86-*-beos*)
4221                 xm_file=i386/xm-beos.h
4222                 tmake_file='i386/t-beos i386/t-crtpic'
4223                 tm_file=i386/beos-elf.h
4224                 xmake_file=i386/x-beos
4225                 extra_objs=winnt.o
4226                 extra_parts='crtbegin.o crtend.o'
4227                 ;;
4228         i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4229                 tm_file=i386/bsd386.h
4230 #               tmake_file=t-libc-ok
4231                 ;;
4232         i[34567]86-*-bsd*)
4233                 tm_file=i386/386bsd.h
4234 #               tmake_file=t-libc-ok
4235 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4236 #               use_collect2=yes
4237                 ;;
4238         i[34567]86-*-freebsdelf*)
4239                 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4240                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4241                 tmake_file=t-freebsd
4242                 gas=yes
4243                 gnu_ld=yes
4244                 stabs=yes
4245                 case x${enable_threads} in
4246                 xyes | xpthreads | xposix)
4247                         thread_file='posix'
4248                         tmake_file="${tmake_file} t-freebsd-thread"
4249                         ;;
4250                 esac
4251                 ;;
4252         i[34567]86-*-freebsd*)
4253                 tm_file="i386/freebsd.h i386/perform.h"
4254                 tmake_file=t-freebsd
4255                 ;;
4256         i[34567]86-*-netbsd*)
4257                 tm_file=i386/netbsd.h
4258                 tmake_file=t-netbsd
4259                 use_collect2=yes
4260                 ;;
4261         i[34567]86-*-openbsd*)
4262                 # we need collect2 until our bug is fixed...
4263                 use_collect2=yes
4264                 ;;
4265         i[34567]86-*-coff*)
4266                 tm_file=i386/i386-coff.h
4267                 tmake_file=i386/t-i386bare
4268                 ;;
4269         i[34567]86-*-isc*)              # 80386 running ISC system
4270                 xm_file="${xm_file} i386/xm-isc.h"
4271                 xm_defines="USG SVR3"
4272                 case $machine in
4273                   i[34567]86-*-isc[34]*)
4274                     xmake_file=i386/x-isc3
4275                     ;;
4276                   *)
4277                     xmake_file=i386/x-isc
4278                     ;;
4279                 esac
4280                 if test x$gas = xyes -a x$stabs = xyes
4281                 then
4282                         tm_file=i386/iscdbx.h
4283                         tmake_file=i386/t-svr3dbx
4284                         extra_parts="svr3.ifile svr3z.ifile"
4285                 else
4286                         tm_file=i386/isccoff.h
4287                         tmake_file=i386/t-crtstuff
4288                         extra_parts="crtbegin.o crtend.o"
4289                 fi
4290                 tmake_file="$tmake_file i386/t-i386bare"
4291                 install_headers_dir=install-headers-cpio
4292                 ;;
4293         i[34567]86-*-linux-gnuoldld*)   # Intel 80386's running GNU/Linux
4294                                         # pre BFD linkers
4295                 xmake_file=x-linux-aout
4296                 tmake_file="t-linux-aout i386/t-crtstuff"
4297                 tm_file=i386/linux-oldld.h
4298                 gnu_ld=yes
4299                 float_format=i386
4300                 ;;
4301         i[34567]86-*-linux-gnuaout*)    # Intel 80386's running GNU/Linux
4302                 xmake_file=x-linux-aout
4303                 tmake_file="t-linux-aout i386/t-crtstuff"
4304                 tm_file=i386/linux-aout.h
4305                 gnu_ld=yes
4306                 float_format=i386
4307                 ;;
4308         i[34567]86-*-linux-gnulibc1)    # Intel 80386's running GNU/Linux
4309                                         # GNU/Linux C library 5
4310                 xmake_file=x-linux      
4311                 tm_file=i386/linux.h    
4312                 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4313                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4314                 gnu_ld=yes
4315                 float_format=i386
4316                 if test x$enable_threads = xyes; then
4317                         thread_file='single'
4318                 fi
4319                 ;;
4320         i[34567]86-*-linux-gnu*)        # Intel 80386's running GNU/Linux
4321                                         # aka GNU/Linux C library 6
4322                 xmake_file=x-linux
4323                 tm_file=i386/linux.h
4324                 tmake_file="t-linux i386/t-crtstuff"
4325                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4326                 gnu_ld=yes
4327                 float_format=i386
4328                 if test x$enable_threads = xyes; then
4329                         thread_file='posix'
4330                 fi
4331                 ;;
4332         i[34567]86-*-gnu*)
4333                 float_format=i386
4334                 ;;
4335         i[34567]86-go32-msdos | i[34567]86-*-go32*)
4336                 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4337                 exit 1
4338                 ;;
4339         i[34567]86-pc-msdosdjgpp*)
4340                 xm_file=i386/xm-djgpp.h
4341                 tm_file=i386/djgpp.h
4342                 tmake_file=i386/t-djgpp
4343                 xmake_file=i386/x-djgpp
4344                 gnu_ld=yes
4345                 gas=yes
4346                 exeext=.exe
4347                 case $host in *pc-msdosdjgpp*)
4348                         target_alias=djgpp
4349                         ;;
4350                 esac
4351                 ;;
4352         i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4353                 tm_file=i386/moss.h
4354                 tmake_file=t-libc-ok
4355                 gnu_ld=yes
4356                 gas=yes
4357                 ;;
4358         i[34567]86-*-lynxos*)
4359                 if test x$gas = xyes
4360                 then
4361                         tm_file=i386/lynx.h
4362                 else
4363                         tm_file=i386/lynx-ng.h
4364                 fi
4365                 xm_file=i386/xm-lynx.h
4366                 tmake_file=i386/t-i386bare
4367                 xmake_file=x-lynx
4368                 ;;
4369         i[34567]86-*-mach*)
4370                 tm_file=i386/mach.h
4371 #               tmake_file=t-libc-ok
4372                 use_collect2=yes
4373                 ;;
4374         i[34567]86-*-osfrose*)          # 386 using OSF/rose
4375                 if test x$elf = xyes
4376                 then
4377                         tm_file=i386/osfelf.h
4378                         use_collect2=
4379                 else
4380                         tm_file=i386/osfrose.h
4381                         use_collect2=yes
4382                 fi
4383                 xm_file="i386/xm-osf.h ${xm_file}"
4384                 xmake_file=i386/x-osfrose
4385                 tmake_file=i386/t-osf
4386                 extra_objs=halfpic.o
4387                 ;;
4388         i[34567]86-go32-rtems*)
4389                 cpu_type=i386
4390                 xm_file=i386/xm-go32.h
4391                 tm_file=i386/go32-rtems.h
4392                 tmake_file="i386/t-go32 t-rtems"
4393                 ;;
4394         i[34567]86-*-rtemscoff*)
4395                 cpu_type=i386
4396                 tm_file=i386/rtems.h
4397                 tmake_file="i386/t-i386bare t-rtems"
4398                 ;;
4399         i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4400                 cpu_type=i386
4401                 tm_file=i386/rtemself.h
4402                 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4403                 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4404                 ;;
4405         i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4406                 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4407                 xm_defines="USG SVR3"
4408                 xmake_file=i386/x-sco5
4409                 install_headers_dir=install-headers-cpio
4410                 tm_file=i386/sco5.h
4411                 if test x$gas = xyes
4412                 then
4413                         tm_file="i386/sco5gas.h ${tm_file}"
4414                         tmake_file=i386/t-sco5gas
4415                 else
4416                         tmake_file=i386/t-sco5
4417                 fi
4418                 tmake_file="$tmake_file i386/t-i386bare"
4419                 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4420                 ;;
4421         i[34567]86-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
4422                 xm_file="${xm_file} i386/xm-sco.h"
4423                 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4424                 xmake_file=i386/x-sco4
4425                 install_headers_dir=install-headers-cpio
4426                 if test x$stabs = xyes
4427                 then
4428                         tm_file=i386/sco4dbx.h
4429                         tmake_file=i386/t-svr3dbx
4430                         extra_parts="svr3.ifile svr3z.rfile"
4431                 else
4432                         tm_file=i386/sco4.h
4433                         tmake_file=i386/t-crtstuff
4434                         extra_parts="crtbegin.o crtend.o"
4435                 fi
4436                 tmake_file="$tmake_file i386/t-i386bare"
4437                 # The default EAFS filesystem supports long file names.
4438                 # Truncating the target makes $host != $target which
4439                 # makes gcc think it is doing a cross-compile.
4440                 # truncate_target=yes
4441                 ;;
4442         i[34567]86-*-sco*)              # 80386 running SCO system
4443                 xm_file=i386/xm-sco.h
4444                 xmake_file=i386/x-sco
4445                 install_headers_dir=install-headers-cpio
4446                 if test x$stabs = xyes
4447                 then
4448                         tm_file=i386/scodbx.h
4449                         tmake_file=i386/t-svr3dbx
4450                         extra_parts="svr3.ifile svr3z.rfile"
4451                 else
4452                         tm_file=i386/sco.h
4453                         extra_parts="crtbegin.o crtend.o"
4454                         tmake_file=i386/t-crtstuff
4455                 fi
4456                 tmake_file="$tmake_file i386/t-i386bare"
4457                 truncate_target=yes
4458                 ;;
4459         i[34567]86-*-solaris2*)
4460                 xm_file="xm-alloca.h ${xm_file}"
4461                 xm_defines="USG POSIX SMALL_ARG_MAX"
4462                 tm_file=i386/sol2.h
4463                 if test x$gas = xyes; then
4464                         # Only needed if gas does not support -s
4465                         tm_file="i386/sol2gas.h ${tm_file}"
4466                 fi
4467                 tmake_file="i386/t-i386bare i386/t-sol2"
4468                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4469                 xmake_file=x-svr4
4470                 if test x${enable_threads} = x; then
4471                     enable_threads=$have_pthread_h
4472                     if test x${enable_threads} = x; then
4473                         enable_threads=$have_thread_h
4474                     fi
4475                 fi
4476                 if test x${enable_threads} = xyes; then
4477                     if test x${have_pthread_h} = xyes; then
4478                         thread_file='posix'
4479                     else
4480                         thread_file='solaris'
4481                     fi
4482                 fi
4483                 ;;
4484        i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
4485                xm_file="xm-alloca.h ${xm_file}"
4486                xm_defines="USG POSIX"
4487                tm_file=i386/sysv5.h
4488                if test x$stabs = xyes
4489                then
4490                        tm_file="${tm_file} dbx.h"
4491                fi
4492                tmake_file="i386/t-i386bare i386/t-crtpic"
4493                xmake_file=x-svr4
4494                extra_parts="crtbegin.o crtend.o"
4495                if test x$enable_threads = xyes; then
4496                        thread_file='posix'
4497                fi
4498                ;;
4499         i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
4500                 xm_file="xm-alloca.h ${xm_file}"
4501                 xm_defines="USG POSIX SMALL_ARG_MAX"
4502                 tm_file=i386/sysv4.h
4503                 if test x$stabs = xyes
4504                 then
4505                         tm_file="${tm_file} dbx.h"
4506                 fi
4507                 tmake_file="i386/t-i386bare i386/t-crtpic"
4508                 xmake_file=x-svr4
4509                 extra_parts="crtbegin.o crtend.o"
4510                 ;;
4511         i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
4512                 xm_file="xm-alloca.h ${xm_file}"
4513                 xm_defines="USG POSIX"
4514                 tm_file=i386/udk.h
4515                 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
4516                 xmake_file=x-svr4
4517                 extra_parts="crtbegin.o crtend.o"
4518                 install_headers_dir=install-headers-cpio
4519                 ;;
4520         i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
4521                 cpu_type=i386
4522                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4523                 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4524                 if test x$stabs = xyes
4525                 then
4526                         tm_file=i386/osf1elfgdb.h
4527                 else
4528                         tm_file=i386/osf1elf.h
4529                 fi
4530                 tmake_file=i386/t-osf1elf
4531                 xmake_file=i386/x-osf1elf
4532                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4533                 ;;
4534         i[34567]86-*-sysv*)             # Intel 80386's running system V
4535                 xm_defines="USG SVR3"
4536                 xmake_file=i386/x-sysv3
4537                 if test x$gas = xyes
4538                 then
4539                         if test x$stabs = xyes
4540                         then
4541                                 tm_file=i386/svr3dbx.h
4542                                 tmake_file=i386/t-svr3dbx
4543                                 extra_parts="svr3.ifile svr3z.rfile"
4544                         else
4545                                 tm_file=i386/svr3gas.h
4546                                 extra_parts="crtbegin.o crtend.o"
4547                                 tmake_file=i386/t-crtstuff
4548                         fi
4549                 else
4550                         tm_file=i386/sysv3.h
4551                         extra_parts="crtbegin.o crtend.o"
4552                         tmake_file=i386/t-crtstuff
4553                 fi
4554                 tmake_file="$tmake_file i386/t-crtpic"
4555                 ;;
4556         i386-*-vsta)                    # Intel 80386's running VSTa kernel
4557                 xm_file="${xm_file} i386/xm-vsta.h"
4558                 tm_file=i386/vsta.h
4559                 tmake_file=i386/t-vsta
4560                 xmake_file=i386/x-vsta
4561                 ;;
4562         i[34567]86-*-win32)
4563                 xm_file="${xm_file} i386/xm-cygwin.h"
4564                 tmake_file=i386/t-cygwin
4565                 tm_file=i386/win32.h
4566                 xmake_file=i386/x-cygwin
4567                 extra_objs=winnt.o
4568                 if test x$enable_threads = xyes; then
4569                         thread_file='win32'
4570                 fi
4571                 exeext=.exe
4572                 ;;
4573         i[34567]86-*-pe | i[34567]86-*-cygwin*)
4574                 xm_file="${xm_file} i386/xm-cygwin.h"
4575                 tmake_file=i386/t-cygwin
4576                 tm_file=i386/cygwin.h
4577                 xmake_file=i386/x-cygwin
4578                 extra_objs=winnt.o
4579                 if test x$enable_threads = xyes; then
4580                         thread_file='win32'
4581                 fi
4582                 exeext=.exe
4583                 ;;
4584         i[34567]86-*-mingw32*)
4585                 tm_file=i386/mingw32.h
4586                 xm_file="${xm_file} i386/xm-mingw32.h"
4587                 tmake_file="i386/t-cygwin i386/t-mingw32"
4588                 extra_objs=winnt.o
4589                 xmake_file=i386/x-cygwin
4590                 if test x$enable_threads = xyes; then
4591                         thread_file='win32'
4592                 fi
4593                 exeext=.exe
4594                 case $machine in
4595                         *mingw32msv*)
4596                                 ;;
4597                         *minwg32crt* | *mingw32*)
4598                                 tm_file="${tm_file} i386/crtdll.h"
4599                                 ;;
4600                 esac
4601                 ;;
4602         i[34567]86-*-uwin*)
4603                 tm_file=i386/uwin.h
4604                 xm_file="${xm_file} i386/xm-uwin.h"
4605                 xm_defines="USG NO_STAB_H"
4606                 tmake_file="i386/t-cygwin i386/t-uwin"
4607                 extra_objs=winnt.o
4608                 xmake_file=i386/x-cygwin
4609                 if test x$enable_threads = xyes; then
4610                         thread_file='win32'
4611                 fi
4612                 exeext=.exe
4613                 ;;
4614         i[34567]86-*-interix*)
4615                 tm_file="i386/i386-interix.h interix.h"
4616                 xm_file="i386/xm-i386-interix.h xm-interix.h"
4617                 xm_defines="USG"
4618                 tmake_file="i386/t-interix"
4619                 extra_objs=interix.o
4620                 xmake_file=x-interix
4621                 if test x$enable_threads = xyes ; then
4622                         thread_file='posix'
4623                 fi
4624                 if test x$stabs = xyes ; then
4625                         tm_file="${tm_file} dbxcoff.h"
4626                 fi
4627                 ;;
4628         i[34567]86-*-winnt3*)
4629                 tm_file=i386/win-nt.h
4630                 out_file=i386/i386.c
4631                 xm_file="xm-winnt.h ${xm_file}"
4632                 xmake_file=winnt/x-winnt
4633                 tmake_file=i386/t-winnt
4634                 extra_host_objs="winnt.o oldnames.o"
4635                 extra_gcc_objs="spawnv.o oldnames.o"
4636                 if test x$gnu_ld != xyes
4637                 then
4638                         extra_programs=ld.exe
4639                 fi
4640                 if test x$enable_threads = xyes; then
4641                         thread_file='win32'
4642                 fi
4643                 ;;
4644         i[34567]86-dg-dgux*)
4645                 xm_file="xm-alloca.h ${xm_file}"
4646                 xm_defines="USG POSIX"
4647                 out_file=i386/dgux.c
4648                 tm_file=i386/dgux.h
4649                 tmake_file=i386/t-dgux
4650                 xmake_file=i386/x-dgux
4651                 install_headers_dir=install-headers-cpio
4652               ;;
4653         i860-alliant-*)         # Alliant FX/2800
4654                 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4655                 xm_file="${xm_file}"
4656                 xmake_file=i860/x-fx2800
4657                 tmake_file=i860/t-fx2800
4658                 extra_parts="crtbegin.o crtend.o"
4659                 ;;
4660         i860-*-bsd*)
4661                 tm_file="${tm_file} i860/bsd.h"
4662                 if test x$gas = xyes
4663                 then
4664                         tm_file="${tm_file} i860/bsd-gas.h"
4665                 fi
4666                 use_collect2=yes
4667                 ;;
4668         i860-*-mach*)
4669                 tm_file="${tm_file} i860/mach.h"
4670                 tmake_file=t-libc-ok
4671                 ;;
4672         i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
4673                 tm_file="${tm_file} svr3.h i860/paragon.h"
4674                 xm_defines="USG SVR3"
4675                 tmake_file=t-osf
4676                 ;;
4677         i860-*-sysv3*)
4678                 tm_file="${tm_file} svr3.h i860/sysv3.h"
4679                 xm_defines="USG SVR3"
4680                 xmake_file=i860/x-sysv3
4681                 extra_parts="crtbegin.o crtend.o"
4682                 ;;
4683         i860-*-sysv4*)
4684                 tm_file="${tm_file} svr4.h i860/sysv4.h"
4685                 xm_defines="USG SVR3"
4686                 xmake_file=i860/x-sysv4
4687                 tmake_file=t-svr4
4688                 extra_parts="crtbegin.o crtend.o"
4689                 ;;
4690         i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4691                 tm_file="${tm_file} i960/vx960.h"
4692                 tmake_file=i960/t-vxworks960
4693                 use_collect2=yes
4694                 thread_file='vxworks'
4695                 ;;
4696         i960-wrs-vxworks5* | i960-wrs-vxworks)
4697                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4698                 tmake_file=i960/t-vxworks960
4699                 use_collect2=yes
4700                 thread_file='vxworks'
4701                 ;;
4702         i960-wrs-vxworks*)
4703                 tm_file="${tm_file} i960/vx960.h"
4704                 tmake_file=i960/t-vxworks960
4705                 use_collect2=yes
4706                 thread_file='vxworks'
4707                 ;;
4708         i960-*-coff*)
4709                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4710                 tmake_file=i960/t-960bare
4711                 use_collect2=yes
4712                 ;;
4713         i960-*-rtems)
4714                 tmake_file="i960/t-960bare t-rtems"
4715                 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4716                 use_collect2=yes
4717                 ;;
4718         i960-*-*)                       # Default i960 environment.
4719                 use_collect2=yes
4720                 ;;
4721         ia64*-*-elf*)
4722                 tm_file=ia64/elf.h
4723                 tmake_file="ia64/t-ia64"
4724                 target_cpu_default="0"
4725                 if test x$gas = xyes
4726                 then
4727                         target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
4728                 fi
4729                 if test x$gnu_ld = xyes
4730                 then
4731                         target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
4732                 fi
4733                 ;;
4734         ia64*-*-linux*)
4735                 tm_file=ia64/linux.h
4736                 tmake_file="t-linux ia64/t-ia64"
4737                 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
4738                 if test x$enable_threads = xyes; then
4739                         thread_file='posix'
4740                 fi
4741                 ;;
4742         m32r-*-elf*)
4743                 extra_parts="crtinit.o crtfini.o"
4744                 ;;
4745         m68000-convergent-sysv*)
4746                 tm_file=m68k/ctix.h
4747                 xm_file="m68k/xm-3b1.h ${xm_file}"
4748                 xm_defines=USG
4749                 use_collect2=yes
4750                 extra_headers=math-68881.h
4751                 ;;
4752         m68000-hp-bsd*)                 # HP 9000/200 running BSD
4753                 tm_file=m68k/hp2bsd.h
4754                 xmake_file=m68k/x-hp2bsd
4755                 use_collect2=yes
4756                 extra_headers=math-68881.h
4757                 ;;
4758         m68000-hp-hpux*)                # HP 9000 series 300
4759                 xm_file="xm-alloca.h ${xm_file}"
4760                 xm_defines="USG"
4761                 if test x$gas = xyes
4762                 then
4763                         xmake_file=m68k/x-hp320g
4764                         tm_file=m68k/hp310g.h
4765                 else
4766                         xmake_file=m68k/x-hp320
4767                         tm_file=m68k/hp310.h
4768                 fi
4769                 install_headers_dir=install-headers-cpio
4770                 use_collect2=yes
4771                 extra_headers=math-68881.h
4772                 ;;
4773         m68000-sun-sunos3*)
4774                 tm_file=m68k/sun2.h
4775                 use_collect2=yes
4776                 extra_headers=math-68881.h
4777                 ;;
4778         m68000-sun-sunos4*)
4779                 tm_file=m68k/sun2o4.h
4780                 use_collect2=yes
4781                 extra_headers=math-68881.h
4782                 ;;
4783         m68000-att-sysv*)
4784                 xm_file="m68k/xm-3b1.h ${xm_file}"
4785                 xm_defines=USG
4786                 if test x$gas = xyes
4787                 then
4788                         tm_file=m68k/3b1g.h
4789                 else
4790                         tm_file=m68k/3b1.h
4791                 fi
4792                 use_collect2=yes
4793                 extra_headers=math-68881.h
4794                 ;;
4795         m68k-apple-aux*)                # Apple Macintosh running A/UX
4796                 xm_defines="USG AUX"
4797                 tmake_file=m68k/t-aux
4798                 install_headers_dir=install-headers-cpio
4799                 extra_headers=math-68881.h
4800                 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4801                 tm_file=
4802                 if test "$gnu_ld" = yes
4803                 then
4804                         tm_file="${tm_file} m68k/auxgld.h"
4805                 else
4806                         tm_file="${tm_file} m68k/auxld.h"
4807                 fi
4808                 if test "$gas" = yes
4809                 then
4810                         tm_file="${tm_file} m68k/auxgas.h"
4811                 else
4812                         tm_file="${tm_file} m68k/auxas.h"
4813                 fi
4814                 tm_file="${tm_file} m68k/a-ux.h"
4815                 float_format=m68k
4816                 ;;
4817         m68k-apollo-*)
4818                 tm_file=m68k/apollo68.h
4819                 xmake_file=m68k/x-apollo68
4820                 use_collect2=yes
4821                 extra_headers=math-68881.h
4822                 float_format=m68k
4823                 ;;
4824         m68k-altos-sysv*)                  # Altos 3068
4825                 if test x$gas = xyes
4826                 then
4827                         tm_file=m68k/altos3068.h
4828                         xm_defines=USG
4829                 else
4830                         echo "The Altos is supported only with the GNU assembler" 1>&2
4831                         exit 1
4832                 fi
4833                 extra_headers=math-68881.h
4834                 ;;
4835         m68k-bull-sysv*)                # Bull DPX/2
4836                 if test x$gas = xyes
4837                 then
4838                         if test x$stabs = xyes
4839                         then
4840                                 tm_file=m68k/dpx2cdbx.h
4841                         else
4842                                 tm_file=m68k/dpx2g.h
4843                         fi
4844                 else
4845                         tm_file=m68k/dpx2.h
4846                 fi
4847                 xm_file="xm-alloca.h ${xm_file}"
4848                 xm_defines=USG
4849                 xmake_file=m68k/x-dpx2
4850                 use_collect2=yes
4851                 extra_headers=math-68881.h
4852                 ;;
4853         m68k-atari-sysv4*)              # Atari variant of V.4.
4854                 tm_file=m68k/atari.h
4855                 xm_file="xm-alloca.h ${xm_file}"
4856                 xm_defines="USG FULL_PROTOTYPES"
4857                 tmake_file=t-svr4
4858                 extra_parts="crtbegin.o crtend.o"
4859                 extra_headers=math-68881.h
4860                 float_format=m68k
4861                 ;;
4862         m68k-motorola-sysv*)
4863                 tm_file=m68k/mot3300.h
4864                 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4865                 if test x$gas = xyes
4866                 then
4867                         xmake_file=m68k/x-mot3300-gas
4868                         if test x$gnu_ld = xyes
4869                         then
4870                                 tmake_file=m68k/t-mot3300-gald
4871                         else
4872                                 tmake_file=m68k/t-mot3300-gas
4873                                 use_collect2=yes
4874                         fi
4875                 else
4876                         xmake_file=m68k/x-mot3300
4877                         if test x$gnu_ld = xyes
4878                         then
4879                                 tmake_file=m68k/t-mot3300-gld
4880                         else
4881                                 tmake_file=m68k/t-mot3300
4882                                 use_collect2=yes
4883                         fi
4884                 fi
4885                 gdb_needs_out_file_path=yes
4886                 extra_parts="crt0.o mcrt0.o"
4887                 extra_headers=math-68881.h
4888                 float_format=m68k
4889                 ;;
4890         m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
4891                 tm_file=m68k/tower-as.h
4892                 xm_defines="USG SVR3"
4893                 xmake_file=m68k/x-tower
4894                 extra_parts="crtbegin.o crtend.o"
4895                 extra_headers=math-68881.h
4896                 ;;
4897         m68k-plexus-sysv*)
4898                 tm_file=m68k/plexus.h
4899                 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4900                 xm_defines=USG
4901                 use_collect2=yes
4902                 extra_headers=math-68881.h
4903                 ;;
4904         m68k-tti-*)
4905                 tm_file=m68k/pbb.h
4906                 xm_file="xm-alloca.h ${xm_file}"
4907                 xm_defines=USG
4908                 extra_headers=math-68881.h
4909                 ;;
4910         m68k-crds-unos*)
4911                 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4912                 xm_defines="USG unos"
4913                 xmake_file=m68k/x-crds
4914                 tm_file=m68k/crds.h
4915                 use_collect2=yes
4916                 extra_headers=math-68881.h
4917                 ;;
4918         m68k-cbm-sysv4*)                # Commodore variant of V.4.
4919                 tm_file=m68k/amix.h
4920                 xm_file="xm-alloca.h ${xm_file}"
4921                 xm_defines="USG FULL_PROTOTYPES"
4922                 xmake_file=m68k/x-amix
4923                 tmake_file=t-svr4
4924                 extra_parts="crtbegin.o crtend.o"
4925                 extra_headers=math-68881.h
4926                 float_format=m68k
4927                 ;;
4928         m68k-ccur-rtu)
4929                 tm_file=m68k/ccur-GAS.h
4930                 xmake_file=m68k/x-ccur
4931                 extra_headers=math-68881.h
4932                 use_collect2=yes
4933                 float_format=m68k
4934                 ;;
4935         m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
4936                 tm_file=m68k/hp3bsd44.h
4937                 xmake_file=m68k/x-hp3bsd44
4938                 use_collect2=yes
4939                 extra_headers=math-68881.h
4940                 float_format=m68k
4941                 ;;
4942         m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
4943                 tm_file=m68k/hp3bsd.h
4944                 use_collect2=yes
4945                 extra_headers=math-68881.h
4946                 float_format=m68k
4947                 ;;
4948         m68k-isi-bsd*)
4949                 if test x$with_fp = xno
4950                 then
4951                         tm_file=m68k/isi-nfp.h
4952                 else
4953                         tm_file=m68k/isi.h
4954                         float_format=m68k
4955                 fi
4956                 use_collect2=yes
4957                 extra_headers=math-68881.h
4958                 ;;
4959         m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4960                 xm_file="xm-alloca.h ${xm_file}"
4961                 xm_defines="USG"
4962                 if test x$gas = xyes
4963                 then
4964                         xmake_file=m68k/x-hp320g
4965                         tm_file=m68k/hp320g.h
4966                 else
4967                         xmake_file=m68k/x-hp320
4968                         tm_file=m68k/hpux7.h
4969                 fi
4970                 install_headers_dir=install-headers-cpio
4971                 use_collect2=yes
4972                 extra_headers=math-68881.h
4973                 float_format=m68k
4974                 ;;
4975         m68k-hp-hpux*)  # HP 9000 series 300
4976                 xm_file="xm-alloca.h ${xm_file}"
4977                 xm_defines="USG"
4978                 if test x$gas = xyes
4979                 then
4980                         xmake_file=m68k/x-hp320g
4981                         tm_file=m68k/hp320g.h
4982                 else
4983                         xmake_file=m68k/x-hp320
4984                         tm_file=m68k/hp320.h
4985                 fi
4986                 install_headers_dir=install-headers-cpio
4987                 use_collect2=yes
4988                 extra_headers=math-68881.h
4989                 float_format=m68k
4990                 ;;
4991         m68k-sun-mach*)
4992                 tm_file=m68k/sun3mach.h
4993                 use_collect2=yes
4994                 extra_headers=math-68881.h
4995                 float_format=m68k
4996                 ;;
4997         m68k-sony-newsos3*)
4998                 if test x$gas = xyes
4999                 then
5000                         tm_file=m68k/news3gas.h
5001                 else
5002                         tm_file=m68k/news3.h
5003                 fi
5004                 use_collect2=yes
5005                 extra_headers=math-68881.h
5006                 float_format=m68k
5007                 ;;
5008         m68k-sony-bsd* | m68k-sony-newsos*)
5009                 if test x$gas = xyes
5010                 then
5011                         tm_file=m68k/newsgas.h
5012                 else
5013                         tm_file=m68k/news.h
5014                 fi
5015                 use_collect2=yes
5016                 extra_headers=math-68881.h
5017                 float_format=m68k
5018                 ;;
5019         m68k-next-nextstep2*)
5020                 tm_file=m68k/next21.h
5021                 xm_file="m68k/xm-next.h ${xm_file}"
5022                 tmake_file=m68k/t-next
5023                 xmake_file=m68k/x-next
5024                 extra_objs=nextstep.o
5025                 extra_headers=math-68881.h
5026                 use_collect2=yes
5027                 float_format=m68k
5028                 ;;
5029         m68k-next-nextstep[34]*)
5030                 tm_file=m68k/next.h
5031                 xm_file="m68k/xm-next.h ${xm_file}"
5032                 tmake_file=m68k/t-next
5033                 xmake_file=m68k/x-next
5034                 extra_objs=nextstep.o
5035                 extra_parts="crtbegin.o crtend.o"
5036                 extra_headers=math-68881.h
5037                 float_format=m68k
5038                 if test x$enable_threads = xyes; then
5039                         thread_file='mach'
5040                 fi
5041                 ;;
5042         m68k-sun-sunos3*)
5043                 if test x$with_fp = xno
5044                 then
5045                         tm_file=m68k/sun3n3.h
5046                 else
5047                         tm_file=m68k/sun3o3.h
5048                         float_format=m68k
5049                 fi
5050                 use_collect2=yes
5051                 extra_headers=math-68881.h
5052                 ;;
5053         m68k-sun-sunos*)                        # For SunOS 4 (the default).
5054                 if test x$with_fp = xno
5055                 then
5056                         tm_file=m68k/sun3n.h
5057                 else
5058                         tm_file=m68k/sun3.h
5059                         float_format=m68k
5060                 fi
5061                 use_collect2=yes
5062                 extra_headers=math-68881.h
5063                 ;;
5064         m68k-wrs-vxworks*)
5065                 tm_file=m68k/vxm68k.h
5066                 tmake_file=m68k/t-vxworks68
5067                 extra_headers=math-68881.h
5068                 thread_file='vxworks'
5069                 float_format=m68k
5070                 ;;
5071         m68k-*-aout*)
5072                 tmake_file=m68k/t-m68kbare
5073                 tm_file="m68k/m68k-aout.h libgloss.h"
5074                 extra_headers=math-68881.h
5075                 float_format=m68k
5076                 ;;
5077         m68k-*-coff*)
5078                 tmake_file=m68k/t-m68kbare
5079                 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
5080                 extra_headers=math-68881.h
5081                 float_format=m68k
5082                 ;;
5083         m68020-*-elf* | m68k-*-elf*)
5084                 tm_file="m68k/m68020-elf.h"
5085                 xm_file=m68k/xm-m68kv.h
5086                 tmake_file=m68k/t-m68kelf
5087                 header_files=math-68881.h
5088                 ;;
5089         m68k-*-lynxos*)
5090                 if test x$gas = xyes
5091                 then
5092                         tm_file=m68k/lynx.h
5093                 else
5094                         tm_file=m68k/lynx-ng.h
5095                 fi
5096                 xm_file=m68k/xm-lynx.h
5097                 xmake_file=x-lynx
5098                 tmake_file=m68k/t-lynx
5099                 extra_headers=math-68881.h
5100                 float_format=m68k
5101                 ;;
5102         m68k*-*-netbsd*)
5103                 tm_file=m68k/netbsd.h
5104                 tmake_file=t-netbsd
5105                 float_format=m68k
5106                 use_collect2=yes
5107                 ;;
5108         m68k*-*-openbsd*)
5109                 float_format=m68k
5110                 # we need collect2 until our bug is fixed...
5111                 use_collect2=yes
5112                 ;;
5113         m68k-*-sysv3*)                  # Motorola m68k's running system V.3
5114                 xm_file="xm-alloca.h ${xm_file}"
5115                 xm_defines=USG
5116                 xmake_file=m68k/x-m68kv
5117                 extra_parts="crtbegin.o crtend.o"
5118                 extra_headers=math-68881.h
5119                 float_format=m68k
5120                 ;;
5121         m68k-*-sysv4*)                  # Motorola m68k's running system V.4
5122                 tm_file=m68k/m68kv4.h
5123                 xm_file="xm-alloca.h ${xm_file}"
5124                 xm_defines=USG
5125                 tmake_file=t-svr4
5126                 extra_parts="crtbegin.o crtend.o"
5127                 extra_headers=math-68881.h
5128                 float_format=m68k
5129                 ;;
5130         m68k-*-linux-gnuaout*)          # Motorola m68k's running GNU/Linux
5131                                         # with a.out format
5132                 xmake_file=x-linux
5133                 tm_file=m68k/linux-aout.h
5134                 tmake_file="t-linux-aout m68k/t-linux-aout"
5135                 extra_headers=math-68881.h
5136                 float_format=m68k
5137                 gnu_ld=yes
5138                 ;;
5139         m68k-*-linux-gnulibc1)          # Motorola m68k's running GNU/Linux
5140                                         # with ELF format using the
5141                                         # GNU/Linux C library 5
5142                 xmake_file=x-linux
5143                 tm_file=m68k/linux.h
5144                 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
5145                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5146                 extra_headers=math-68881.h
5147                 float_format=m68k
5148                 gnu_ld=yes
5149                 ;;
5150         m68k-*-linux-gnu*)              # Motorola m68k's running GNU/Linux
5151                                         # with ELF format using glibc 2
5152                                         # aka the GNU/Linux C library 6.
5153                 xmake_file=x-linux
5154                 tm_file=m68k/linux.h
5155                 tmake_file="t-linux m68k/t-linux"
5156                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5157                 extra_headers=math-68881.h
5158                 float_format=m68k
5159                 gnu_ld=yes
5160                 if test x$enable_threads = xyes; then
5161                         thread_file='posix'
5162                 fi
5163                 ;;
5164         m68k-*-psos*)
5165                 tmake_file=m68k/t-m68kbare
5166                 tm_file=m68k/m68k-psos.h
5167                 extra_headers=math-68881.h
5168                 float_format=m68k
5169                 ;;
5170         m68k-*-rtemscoff*)
5171                 tmake_file="m68k/t-m68kbare t-rtems"
5172                 tm_file=m68k/rtems.h
5173                 extra_headers=math-68881.h
5174                 float_format=m68k
5175                 ;;
5176         m68k-*-rtemself*|m68k-*-rtems*)
5177                 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5178                 tm_file=m68k/rtemself.h
5179                 extra_headers=math-68881.h
5180                 float_format=m68k
5181                 ;;
5182         m88k-dg-dgux*)
5183                 case $machine in
5184                   m88k-dg-dguxbcs*)
5185                     tm_file=m88k/dguxbcs.h
5186                     tmake_file=m88k/t-dguxbcs
5187                     ;;
5188                   *)
5189                     tm_file=m88k/dgux.h
5190                     tmake_file=m88k/t-dgux
5191                     ;;
5192                 esac
5193                 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5194                 xmake_file=m88k/x-dgux
5195                 if test x$gas = xyes
5196                 then
5197                         tmake_file=m88k/t-dgux-gas
5198                 fi
5199                 ;;
5200         m88k-dolphin-sysv3*)
5201                 tm_file=m88k/dolph.h
5202                 extra_parts="crtbegin.o crtend.o"
5203                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5204                 xmake_file=m88k/x-dolph
5205                 if test x$gas = xyes
5206                 then
5207                         tmake_file=m88k/t-m88k-gas
5208                 fi
5209                 ;;
5210         m88k-tektronix-sysv3)
5211                 tm_file=m88k/tekXD88.h
5212                 extra_parts="crtbegin.o crtend.o"
5213                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5214                 xmake_file=m88k/x-tekXD88
5215                 if test x$gas = xyes
5216                 then
5217                         tmake_file=m88k/t-m88k-gas
5218                 fi
5219                 ;;
5220         m88k-*-aout*)
5221                 tm_file=m88k/m88k-aout.h
5222                 ;;
5223         m88k-*-coff*)
5224                 tm_file=m88k/m88k-coff.h
5225                 tmake_file=m88k/t-bug
5226                 ;;
5227         m88k-*-luna*)
5228                 tm_file=m88k/luna.h
5229                 extra_parts="crtbegin.o crtend.o"
5230                 if test x$gas = xyes
5231                 then
5232                         tmake_file=m88k/t-luna-gas
5233                 else
5234                         tmake_file=m88k/t-luna
5235                 fi
5236                 ;;
5237         m88k-*-openbsd*)
5238                 tmake_file="${tmake_file} m88k/t-luna-gas"
5239                 ;;
5240         m88k-*-sysv3*)
5241                 tm_file=m88k/sysv3.h
5242                 extra_parts="crtbegin.o crtend.o"
5243                 xm_file="m88k/xm-sysv3.h ${xm_file}"
5244                 xmake_file=m88k/x-sysv3
5245                 if test x$gas = xyes
5246                 then
5247                         tmake_file=m88k/t-m88k-gas
5248                 fi
5249                 ;;
5250         m88k-*-sysv4*)
5251                 tm_file=m88k/sysv4.h
5252                 extra_parts="crtbegin.o crtend.o"
5253                 xmake_file=m88k/x-sysv4
5254                 tmake_file=m88k/t-sysv4
5255                 ;;
5256         mcore-*-elf)
5257                 tm_file=mcore/mcore-elf.h
5258                 tmake_file=mcore/t-mcore
5259                 ;;
5260         mcore-*-pe*)
5261                 tm_file=mcore/mcore-pe.h
5262                 tmake_file=mcore/t-mcore-pe
5263                 ;;
5264         mips-sgi-irix6*)                # SGI System V.4., IRIX 6
5265                 if test "x$gnu_ld" = xyes
5266                 then
5267                         tm_file="mips/iris6.h mips/iris6gld.h"
5268                 else
5269                         tm_file=mips/iris6.h
5270                 fi
5271                 tmake_file=mips/t-iris6
5272                 xm_file=mips/xm-iris6.h
5273                 xmake_file=mips/x-iris6
5274 #               if test x$enable_threads = xyes; then
5275 #                       thread_file='irix'
5276 #               fi
5277                 ;;
5278         mips-wrs-vxworks)
5279                 tm_file="mips/elf.h mips/vxworks.h"
5280                 tmake_file=mips/t-ecoff
5281                 gas=yes
5282                 gnu_ld=yes
5283                 extra_parts="crtbegin.o crtend.o"
5284                 thread_file='vxworks'
5285                 ;;
5286         mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
5287                 tm_file="mips/iris6.h mips/cross64.h"
5288                 xm_defines=USG
5289                 xm_file="mips/xm-iris5.h"
5290                 xmake_file=mips/x-iris
5291                 tmake_file=mips/t-cross64
5292                 # See comment in mips/iris[56].h files.
5293                 use_collect2=yes
5294 #               if test x$enable_threads = xyes; then
5295 #                       thread_file='irix'
5296 #               fi
5297                 ;;
5298         mips-sni-sysv4)
5299                 if test x$gas = xyes
5300                 then
5301                         if test x$stabs = xyes
5302                         then
5303                                 tm_file=mips/iris5gdb.h
5304                         else
5305                                 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5306                         fi
5307                 else
5308                         tm_file=mips/sni-svr4.h
5309                 fi
5310                 xm_defines=USG
5311                 xmake_file=mips/x-sni-svr4
5312                 tmake_file=mips/t-mips-gas
5313                 if test x$gnu_ld != xyes
5314                 then
5315                         use_collect2=yes
5316                 fi
5317                 ;;
5318         mips-sgi-irix5*)                # SGI System V.4., IRIX 5
5319                 if test x$gas = xyes
5320                 then
5321                         tm_file="mips/iris5.h mips/iris5gas.h"
5322                         if test x$stabs = xyes
5323                         then
5324                                 tm_file="${tm_file} dbx.h"
5325                         fi
5326                 else
5327                         tm_file=mips/iris5.h
5328                 fi
5329                 xm_defines=USG
5330                 xm_file="mips/xm-iris5.h"
5331                 xmake_file=mips/x-iris
5332                 # mips-tfile doesn't work yet
5333                 tmake_file=mips/t-mips-gas
5334                 # See comment in mips/iris5.h file.
5335                 use_collect2=yes
5336 #               if test x$enable_threads = xyes; then
5337 #                       thread_file='irix'
5338 #               fi
5339                 ;;
5340         mips-sgi-irix4loser*)           # Mostly like a MIPS.
5341                 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5342                 if test x$stabs = xyes; then
5343                         tm_file="${tm_file} dbx.h"
5344                 fi
5345                 xm_defines=USG
5346                 xmake_file=mips/x-iris
5347                 if test x$gas = xyes
5348                 then
5349                         tmake_file=mips/t-mips-gas
5350                 else
5351                         extra_passes="mips-tfile mips-tdump"
5352                 fi
5353                 if test x$gnu_ld != xyes
5354                 then
5355                         use_collect2=yes
5356                 fi
5357 #               if test x$enable_threads = xyes; then
5358 #                       thread_file='irix'
5359 #               fi
5360                 ;;
5361         mips-sgi-irix4*)                # Mostly like a MIPS.
5362                 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5363                 if test x$stabs = xyes; then
5364                         tm_file="${tm_file} dbx.h"
5365                 fi
5366                 xm_defines=USG
5367                 xmake_file=mips/x-iris
5368                 if test x$gas = xyes
5369                 then
5370                         tmake_file=mips/t-mips-gas
5371                 else
5372                         extra_passes="mips-tfile mips-tdump"
5373                 fi
5374                 if test x$gnu_ld != xyes
5375                 then
5376                         use_collect2=yes
5377                 fi
5378 #               if test x$enable_threads = xyes; then
5379 #                       thread_file='irix'
5380 #               fi
5381                 ;;
5382         mips-sgi-*)                     # Mostly like a MIPS.
5383                 tm_file="mips/iris3.h ${tm_file}"
5384                 if test x$stabs = xyes; then
5385                         tm_file="${tm_file} dbx.h"
5386                 fi
5387                 xm_defines=USG
5388                 xmake_file=mips/x-iris3
5389                 if test x$gas = xyes
5390                 then
5391                         tmake_file=mips/t-mips-gas
5392                 else
5393                         extra_passes="mips-tfile mips-tdump"
5394                 fi
5395                 if test x$gnu_ld != xyes
5396                 then
5397                         use_collect2=yes
5398                 fi
5399                 ;;
5400         mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
5401                 tm_file="mips/osfrose.h ${tm_file}"
5402                 xmake_file=mips/x-osfrose
5403                 tmake_file=mips/t-osfrose
5404                 extra_objs=halfpic.o
5405                 use_collect2=yes
5406                 ;;
5407         mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
5408                 tm_file=mips/dec-osf1.h
5409                 if test x$stabs = xyes; then
5410                         tm_file="${tm_file} dbx.h"
5411                 fi
5412                 xmake_file=mips/x-dec-osf1
5413                 if test x$gas = xyes
5414                 then
5415                         tmake_file=mips/t-mips-gas
5416                 else
5417                         tmake_file=mips/t-ultrix
5418                         extra_passes="mips-tfile mips-tdump"
5419                 fi
5420                 if test x$gnu_ld != xyes
5421                 then
5422                         use_collect2=yes
5423                 fi
5424                 ;;
5425         mips-dec-bsd*)                  # Decstation running 4.4 BSD
5426               tm_file=mips/dec-bsd.h
5427               if test x$gas = xyes
5428               then
5429                         tmake_file=mips/t-mips-gas
5430               else
5431                         tmake_file=mips/t-ultrix
5432                         extra_passes="mips-tfile mips-tdump"
5433               fi
5434               if test x$gnu_ld != xyes
5435               then
5436                         use_collect2=yes
5437               fi
5438               ;;
5439         mipsel-*-netbsd* | mips-dec-netbsd*)    # Decstation running NetBSD
5440                 tm_file=mips/netbsd.h
5441                 # On NetBSD, the headers are already okay, except for math.h.
5442                 tmake_file=t-netbsd
5443                 ;;
5444        mips*-*-linux*)                         # Linux MIPS, either endian.
5445                 xmake_file=x-linux
5446                case $machine in
5447                        mipsel-*)  tm_file="mips/elfl.h mips/linux.h" ;;
5448                        *)         tm_file="mips/elf.h mips/linux.h" ;;
5449                esac
5450                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5451                 gnu_ld=yes
5452                 gas=yes
5453                 if test x$enable_threads = xyes; then
5454                         thread_file='posix'
5455                 fi
5456                 ;;
5457         mips*el-*-openbsd*)     # mips little endian
5458                 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5459                 ;;
5460         mips*-*-openbsd*)               # mips big endian
5461                 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5462                 tm_file="mips/openbsd-be.h ${tm_file}"
5463                 ;;
5464         mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
5465                 tm_file="mips/news4.h ${tm_file}"
5466                 if test x$stabs = xyes; then
5467                         tm_file="${tm_file} dbx.h"
5468                 fi
5469                 if test x$gas = xyes
5470                 then
5471                         tmake_file=mips/t-mips-gas
5472                 else
5473                         extra_passes="mips-tfile mips-tdump"
5474                 fi
5475                 if test x$gnu_ld != xyes
5476                 then
5477                         use_collect2=yes
5478                 fi
5479                 xmake_file=mips/x-sony
5480                 ;;
5481         mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
5482                                         # That is based on svr4.
5483                 # t-svr4 is not right because this system doesn't use ELF.
5484                 tm_file="mips/news5.h ${tm_file}"
5485                 if test x$stabs = xyes; then
5486                         tm_file="${tm_file} dbx.h"
5487                 fi
5488                 xm_defines=USG
5489                 if test x$gas = xyes
5490                 then
5491                         tmake_file=mips/t-mips-gas
5492                 else
5493                         extra_passes="mips-tfile mips-tdump"
5494                 fi
5495                 if test x$gnu_ld != xyes
5496                 then
5497                         use_collect2=yes
5498                 fi
5499                 ;;
5500         mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
5501                 tm_file="mips/svr4-5.h mips/svr4-t.h"
5502                 if test x$stabs = xyes; then
5503                         tm_file="${tm_file} dbx.h"
5504                 fi
5505                 xm_defines=USG
5506                 xmake_file=mips/x-sysv
5507                 if test x$gas = xyes
5508                 then
5509                         tmake_file=mips/t-mips-gas
5510                         extra_parts="crtbegin.o crtend.o"
5511                 else
5512                         tmake_file=mips/t-mips
5513                         extra_passes="mips-tfile mips-tdump"
5514                 fi
5515                 if test x$gnu_ld != xyes
5516                 then
5517                         use_collect2=yes
5518                 fi
5519                 ;;
5520         mips-*-ultrix* | mips-dec-mach3)        # Decstation.
5521                 tm_file="mips/ultrix.h ${tm_file}"
5522                 if test x$stabs = xyes; then
5523                         tm_file="${tm_file} dbx.h"
5524                 fi
5525                 xmake_file=mips/x-ultrix
5526                 if test x$gas = xyes
5527                 then
5528                         tmake_file=mips/t-mips-gas
5529                 else
5530                         tmake_file=mips/t-ultrix
5531                         extra_passes="mips-tfile mips-tdump"
5532                 fi
5533                 if test x$gnu_ld != xyes
5534                 then
5535                         use_collect2=yes
5536                 fi
5537                 ;;
5538         mips-*-riscos[56789]bsd*)
5539                 tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
5540                 if test x$stabs = xyes; then
5541                         tm_file="${tm_file} dbx.h"
5542                 fi
5543                 if test x$gas = xyes
5544                 then
5545                         tmake_file=mips/t-bsd-gas
5546                 else
5547                         tmake_file=mips/t-bsd
5548                         extra_passes="mips-tfile mips-tdump"
5549                 fi
5550                 if test x$gnu_ld != xyes
5551                 then
5552                         use_collect2=yes
5553                 fi
5554                 ;;
5555         mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5556                 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5557                 if test x$stabs = xyes; then
5558                         tm_file="${tm_file} dbx.h"
5559                 fi
5560                 if test x$gas = xyes
5561                 then
5562                         tmake_file=mips/t-bsd-gas
5563                 else
5564                         tmake_file=mips/t-bsd
5565                         extra_passes="mips-tfile mips-tdump"
5566                 fi
5567                 if test x$gnu_ld != xyes
5568                 then
5569                         use_collect2=yes
5570                 fi
5571                 ;;
5572         mips-*-riscos[56789]sysv4*)
5573                 tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
5574                 if test x$stabs = xyes; then
5575                         tm_file="${tm_file} dbx.h"
5576                 fi
5577                 xmake_file=mips/x-sysv
5578                 if test x$gas = xyes
5579                 then
5580                         tmake_file=mips/t-svr4-gas
5581                 else
5582                         tmake_file=mips/t-svr4
5583                         extra_passes="mips-tfile mips-tdump"
5584                 fi
5585                 if test x$gnu_ld != xyes
5586                 then
5587                         use_collect2=yes
5588                 fi
5589                 ;;
5590         mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5591                 tm_file="mips/svr4-4.h ${tm_file}"
5592                 if test x$stabs = xyes; then
5593                         tm_file="${tm_file} dbx.h"
5594                 fi
5595                 xm_defines=USG
5596                 xmake_file=mips/x-sysv
5597                 if test x$gas = xyes
5598                 then
5599                         tmake_file=mips/t-svr4-gas
5600                 else
5601                         tmake_file=mips/t-svr4
5602                         extra_passes="mips-tfile mips-tdump"
5603                 fi
5604                 if test x$gnu_ld != xyes
5605                 then
5606                         use_collect2=yes
5607                 fi
5608                 ;;
5609         mips-*-riscos[56789]sysv*)
5610                 tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
5611                 if test x$stabs = xyes; then
5612                         tm_file="${tm_file} dbx.h"
5613                 fi
5614                 xm_defines=USG
5615                 xmake_file=mips/x-sysv
5616                 if test x$gas = xyes
5617                 then
5618                         tmake_file=mips/t-svr3-gas
5619                 else
5620                         tmake_file=mips/t-svr3
5621                         extra_passes="mips-tfile mips-tdump"
5622                 fi
5623                 if test x$gnu_ld != xyes
5624                 then
5625                         use_collect2=yes
5626                 fi
5627                 ;;
5628         mips-*-sysv* | mips-*-riscos*sysv*)
5629                 tm_file="mips/svr3-4.h ${tm_file}"
5630                 if test x$stabs = xyes; then
5631                         tm_file="${tm_file} dbx.h"
5632                 fi
5633                 xm_defines=USG
5634                 xmake_file=mips/x-sysv
5635                 if test x$gas = xyes
5636                 then
5637                         tmake_file=mips/t-svr3-gas
5638                 else
5639                         tmake_file=mips/t-svr3
5640                         extra_passes="mips-tfile mips-tdump"
5641                 fi
5642                 if test x$gnu_ld != xyes
5643                 then
5644                         use_collect2=yes
5645                 fi
5646                 ;;
5647         mips-*-riscos[56789]*)          # Default MIPS RISC-OS 5.0.
5648                 tm_file=mips/mips-5.h
5649                 if test x$stabs = xyes; then
5650                         tm_file="${tm_file} dbx.h"
5651                 fi
5652                 if test x$gas = xyes
5653                 then
5654                         tmake_file=mips/t-mips-gas
5655                 else
5656                         extra_passes="mips-tfile mips-tdump"
5657                 fi
5658                 if test x$gnu_ld != xyes
5659                 then
5660                         use_collect2=yes
5661                 fi
5662                 ;;
5663         mips-*-gnu*)
5664                 ;;
5665         mipsel-*-ecoff*)
5666                 tm_file=mips/ecoffl.h
5667                 if test x$stabs = xyes; then
5668                         tm_file="${tm_file} dbx.h"
5669                 fi
5670                 tmake_file=mips/t-ecoff
5671                 ;;
5672         mips-*-ecoff*)
5673                 tm_file="gofast.h mips/ecoff.h"
5674                 if test x$stabs = xyes; then
5675                         tm_file="${tm_file} dbx.h"
5676                 fi
5677                 tmake_file=mips/t-ecoff
5678                 ;;
5679         mipsel-*-elf*)
5680                 tm_file="mips/elfl.h"
5681                 tmake_file=mips/t-elf
5682                 ;;
5683         mips-*-elf*)
5684                 tm_file="mips/elf.h"
5685                 tmake_file=mips/t-elf
5686                 ;;
5687         mips64el-*-elf*)
5688                 tm_file="mips/elfl64.h"
5689                 tmake_file=mips/t-elf
5690                 ;;
5691         mips64orionel-*-elf*)
5692                 tm_file="mips/elforion.h mips/elfl64.h"
5693                 tmake_file=mips/t-elf
5694                 ;;
5695         mips64-*-elf*)
5696                 tm_file="mips/elf64.h"
5697                 tmake_file=mips/t-elf
5698                 ;;
5699         mips64orion-*-elf*)
5700                 tm_file="mips/elforion.h mips/elf64.h"
5701                 tmake_file=mips/t-elf
5702                 ;;
5703         mips64orion-*-rtems*)
5704                 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5705                 tmake_file="mips/t-elf t-rtems"
5706                 ;;
5707         mipstx39el-*-elf*)
5708                 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5709                 tmake_file=mips/t-r3900
5710                 ;;
5711         mipstx39-*-elf*)
5712                 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5713                 tmake_file=mips/t-r3900
5714                 ;;
5715         mips-*-*)                               # Default MIPS RISC-OS 4.0.
5716                 if test x$stabs = xyes; then
5717                         tm_file="${tm_file} dbx.h"
5718                 fi
5719                 if test x$gas = xyes
5720                 then
5721                         tmake_file=mips/t-mips-gas
5722                 else
5723                         extra_passes="mips-tfile mips-tdump"
5724                 fi
5725                 if test x$gnu_ld != xyes
5726                 then
5727                         use_collect2=yes
5728                 fi
5729                 ;;
5730         mn10200-*-*)
5731                 float_format=i32
5732                 cpu_type=mn10200
5733                 tm_file="mn10200/mn10200.h"
5734                 if test x$stabs = xyes
5735                 then
5736                         tm_file="${tm_file} dbx.h"
5737                 fi
5738                 use_collect2=no
5739                 ;;
5740         mn10300-*-*)
5741                 cpu_type=mn10300
5742                 tm_file="mn10300/mn10300.h"
5743                 if test x$stabs = xyes
5744                 then
5745                         tm_file="${tm_file} dbx.h"
5746                 fi
5747                 use_collect2=no
5748                 ;;
5749         ns32k-encore-bsd*)
5750                 tm_file=ns32k/encore.h
5751                 use_collect2=yes
5752                 ;;
5753         ns32k-sequent-bsd*)
5754                 tm_file=ns32k/sequent.h
5755                 use_collect2=yes
5756                 ;;
5757         ns32k-tek6100-bsd*)
5758                 tm_file=ns32k/tek6100.h
5759                 use_collect2=yes
5760                 ;;
5761         ns32k-tek6200-bsd*)
5762                 tm_file=ns32k/tek6200.h
5763                 use_collect2=yes
5764                 ;;
5765 # This has not been updated to GCC 2.
5766 #       ns32k-ns-genix*)
5767 #               xm_defines=USG
5768 #               xmake_file=ns32k/x-genix
5769 #               tm_file=ns32k/genix.h
5770 #               use_collect2=yes
5771 #               ;;
5772         ns32k-merlin-*)
5773                 tm_file=ns32k/merlin.h
5774                 use_collect2=yes
5775                 ;;
5776         ns32k-pc532-mach*)
5777                 tm_file=ns32k/pc532-mach.h
5778                 use_collect2=yes
5779                 ;;
5780         ns32k-pc532-minix*)
5781                 tm_file=ns32k/pc532-min.h
5782                 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5783                 xm_defines=USG
5784                 use_collect2=yes
5785                 ;;
5786         ns32k-*-netbsd*)
5787                 tm_file=ns32k/netbsd.h
5788                 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5789                 # On NetBSD, the headers are already okay, except for math.h.
5790                 tmake_file=t-netbsd
5791                 use_collect2=yes
5792                 ;;
5793         pdp11-*-bsd)
5794                 tm_file="${tm_file} pdp11/2bsd.h"
5795                 ;;
5796         pdp11-*-*)
5797                 ;;
5798         avr-*-*)
5799                 ;;
5800         ns32k-*-openbsd*)
5801                 # Nothing special
5802                 ;;
5803 # This has not been updated to GCC 2.
5804 #       pyramid-*-*)
5805 #               cpu_type=pyr
5806 #               xmake_file=pyr/x-pyr
5807 #               use_collect2=yes
5808 #               ;;
5809
5810         pj*-linux*)
5811                 tm_file="svr4.h pj/linux.h ${tm_file}"
5812                 ;;
5813         pj-*)
5814                 ;;
5815         pjl-*)
5816                 tm_file="svr4.h pj/pjl.h ${tm_file}"
5817                 ;;
5818
5819         romp-*-aos*)
5820                 use_collect2=yes
5821                 ;;
5822         romp-*-mach*)
5823                 xmake_file=romp/x-mach
5824                 use_collect2=yes
5825                 ;;
5826         romp-*-openbsd*)
5827                 # Nothing special
5828                 ;;
5829         powerpc-*-openbsd*)
5830                 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5831                 ;;
5832         powerpc-*-beos*)
5833                 cpu_type=rs6000
5834                 tm_file=rs6000/beos.h
5835                 xm_file=rs6000/xm-beos.h
5836                 tmake_file=rs6000/t-beos
5837                 xmake_file=rs6000/x-beos
5838                 ;;
5839         powerpc-*-sysv*)
5840                 tm_file=rs6000/sysv4.h
5841                 xm_file="rs6000/xm-sysv4.h"
5842                 xm_defines="USG POSIX"
5843                 extra_headers=ppc-asm.h
5844                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5845                 xmake_file=rs6000/x-sysv4
5846                 ;;
5847         powerpc-*-eabiaix*)
5848                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5849                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5850                 extra_headers=ppc-asm.h
5851                 ;;
5852         powerpc-*-eabisim*)
5853                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5854                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5855                 extra_headers=ppc-asm.h
5856                 ;;
5857         powerpc-*-elf*)
5858                 tm_file="rs6000/sysv4.h"
5859                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5860                 extra_headers=ppc-asm.h
5861                 ;;
5862         powerpc-*-eabi*)
5863                 tm_file="rs6000/sysv4.h rs6000/eabi.h"
5864                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5865                 extra_headers=ppc-asm.h
5866                 ;;
5867         powerpc-*-rtems*)
5868                 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5869                 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5870                 extra_headers=ppc-asm.h
5871                 ;;
5872         powerpc-*-linux-gnulibc1)
5873                 tm_file="rs6000/sysv4.h rs6000/linux.h"
5874                 xm_file=rs6000/xm-sysv4.h
5875                 out_file=rs6000/rs6000.c
5876                 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5877                 xmake_file=x-linux
5878                 extra_headers=ppc-asm.h
5879                 if test x$enable_threads = xyes; then
5880                         thread_file='posix'
5881                 fi
5882                 ;;
5883         powerpc-*-linux-gnu*)
5884                 tm_file="rs6000/sysv4.h rs6000/linux.h"
5885                 xm_file="rs6000/xm-sysv4.h"
5886                 xm_defines="USG ${xm_defines}"
5887                 out_file=rs6000/rs6000.c
5888                 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5889                 xmake_file=x-linux
5890                 extra_headers=ppc-asm.h
5891                 if test x$enable_threads = xyes; then
5892                         thread_file='posix'
5893                 fi
5894                 ;;
5895         powerpc-wrs-vxworks*)
5896                 cpu_type=rs6000
5897                 xm_file="rs6000/xm-sysv4.h"
5898                 xm_defines="USG POSIX"
5899                 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
5900                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5901                 extra_headers=ppc-asm.h
5902                 thread_file='vxworks'
5903                 ;;
5904         powerpcle-wrs-vxworks*)
5905                 cpu_type=rs6000
5906                 xm_file="rs6000/xm-sysv4.h"
5907                 xm_defines="USG POSIX"
5908                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5909                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5910                 extra_headers=ppc-asm.h
5911                 thread_file='vxworks'
5912                 ;;
5913         powerpcle-*-sysv*)
5914                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
5915                 xm_file="rs6000/xm-sysv4.h"
5916                 xm_defines="USG POSIX"
5917                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5918                 xmake_file=rs6000/x-sysv4
5919                 extra_headers=ppc-asm.h
5920                 ;;
5921         powerpcle-*-elf*)
5922                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
5923                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5924                 extra_headers=ppc-asm.h
5925                 ;;
5926         powerpcle-*-eabisim*)
5927                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5928                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5929                 extra_headers=ppc-asm.h
5930                 ;;
5931         powerpcle-*-eabi*)
5932                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5933                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5934                 extra_headers=ppc-asm.h
5935                 ;;
5936         powerpcle-*-solaris2*)
5937                 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5938                 xm_file="rs6000/xm-sysv4.h"
5939                 xm_defines="USG POSIX"
5940                 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5941                 xmake_file=rs6000/x-sysv4
5942                 extra_headers=ppc-asm.h
5943                 ;;
5944         rs6000-ibm-aix3.[01]*)
5945                 tm_file=rs6000/aix31.h
5946                 xmake_file=rs6000/x-aix31
5947                 float_format=none
5948                 use_collect2=yes
5949                 ;;
5950         rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5951                 tm_file=rs6000/aix3newas.h
5952                 if test x$host != x$target
5953                 then
5954                         tmake_file=rs6000/t-xnewas
5955                 else
5956                         tmake_file=rs6000/t-newas
5957                 fi
5958                 float_format=none
5959                 use_collect2=yes
5960                 ;;
5961         rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5962                 tm_file=rs6000/aix41.h
5963                 if test x$host != x$target
5964                 then
5965                         tmake_file=rs6000/t-xnewas
5966                 else
5967                         tmake_file=rs6000/t-newas
5968                 fi
5969                 if test "$gnu_ld" = yes
5970                 then
5971                         xmake_file=rs6000/x-aix41-gld
5972                 else
5973                         tmake_file="rs6000/t-newas rs6000/t-aix41"
5974                 fi
5975                 xmake_file=rs6000/x-aix41
5976                 float_format=none
5977                 use_collect2=yes
5978                 ;;
5979         rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5980                 tm_file=rs6000/aix43.h
5981                 tmake_file=rs6000/t-aix43
5982                 xmake_file=rs6000/x-aix41
5983                 float_format=none
5984                 use_collect2=yes
5985                 ;;
5986         rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5987                 tm_file=rs6000/aix43.h
5988                 tmake_file=rs6000/t-aix43
5989                 xmake_file=rs6000/x-aix41
5990                 float_format=none
5991                 use_collect2=yes
5992                 ;;
5993         rs6000-ibm-aix*)
5994                 float_format=none
5995                 use_collect2=yes
5996                 ;;
5997         rs6000-bull-bosx)
5998                 float_format=none
5999                 use_collect2=yes
6000                 ;;
6001         rs6000-*-mach*)
6002                 tm_file=rs6000/mach.h
6003                 xm_file="${xm_file} rs6000/xm-mach.h"
6004                 xmake_file=rs6000/x-mach
6005                 use_collect2=yes
6006                 ;;
6007         rs6000-*-lynxos*)
6008                 tm_file=rs6000/lynx.h
6009                 xm_file=rs6000/xm-lynx.h
6010                 tmake_file=rs6000/t-rs6000
6011                 xmake_file=rs6000/x-lynx
6012                 use_collect2=yes
6013                 ;;
6014         sh-*-elf*)
6015                 tm_file=sh/elf.h
6016                 float_format=sh
6017                 ;;
6018         sh-*-rtemself*)
6019                 tmake_file="sh/t-sh t-rtems"
6020                 tm_file=sh/rtemself.h
6021                 float_format=sh
6022                 ;;
6023         sh-*-rtems*)
6024                 tmake_file="sh/t-sh t-rtems"
6025                 tm_file=sh/rtems.h
6026                 float_format=sh
6027                 ;;
6028         sh-*-*)
6029                 float_format=sh
6030                 ;;
6031         sparc-tti-*)
6032                 tm_file=sparc/pbd.h
6033                 xm_file="xm-alloca.h ${xm_file}"
6034                 xm_defines=USG
6035                 ;;
6036         sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
6037                 tm_file=sparc/vxsparc.h
6038                 tmake_file=sparc/t-vxsparc
6039                 use_collect2=yes
6040                 thread_file='vxworks'
6041                 ;;
6042         sparc-*-aout*)
6043                 tmake_file=sparc/t-sparcbare
6044                 tm_file="sparc/aout.h libgloss.h"
6045                 ;;
6046         sparc-*-netbsd*)
6047                 tm_file=sparc/netbsd.h
6048                 tmake_file=t-netbsd
6049                 use_collect2=yes
6050                 ;;
6051         sparc-*-openbsd*)
6052                 # we need collect2 until our bug is fixed...
6053                 use_collect2=yes
6054                 ;;
6055         sparc-*-bsd*)
6056                 tm_file=sparc/bsd.h
6057                 ;;
6058         sparc-*-elf*)
6059                 tm_file=sparc/elf.h
6060                 tmake_file=sparc/t-elf
6061                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6062                 #float_format=i128
6063                 float_format=i64
6064                 ;;
6065         sparc-*-linux-gnuaout*)         # Sparc's running GNU/Linux, a.out
6066                 xm_file="${xm_file} sparc/xm-linux.h"
6067                 tm_file=sparc/linux-aout.h
6068                 xmake_file=x-linux
6069                 gnu_ld=yes
6070                 ;;
6071         sparc-*-linux-gnulibc1*)        # Sparc's running GNU/Linux, libc5
6072                 xm_file="${xm_file} sparc/xm-linux.h"
6073                 xmake_file=x-linux
6074                 tm_file=sparc/linux.h
6075                 tmake_file="t-linux t-linux-gnulibc1"
6076                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6077                 gnu_ld=yes
6078                 float_format=sparc
6079                 ;;
6080         sparc-*-linux-gnu*)             # Sparc's running GNU/Linux, libc6
6081                 xm_file="${xm_file} sparc/xm-linux.h"
6082                 xmake_file=x-linux
6083                 tm_file=sparc/linux.h
6084                 tmake_file="t-linux"
6085                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6086                 gnu_ld=yes
6087                 if test x$enable_threads = xyes; then
6088                         thread_file='posix'
6089                 fi
6090                 float_format=sparc
6091                 ;;
6092         sparc-*-lynxos*)
6093                 if test x$gas = xyes
6094                 then
6095                         tm_file=sparc/lynx.h
6096                 else
6097                         tm_file=sparc/lynx-ng.h
6098                 fi
6099                 xm_file=sparc/xm-lynx.h
6100                 tmake_file=sparc/t-sunos41
6101                 xmake_file=x-lynx
6102                 ;;
6103         sparc-*-rtemsaout*)
6104                 tmake_file="sparc/t-sparcbare t-rtems"
6105                 tm_file=sparc/rtems.h
6106                 ;;
6107         sparc-*-rtems*|sparc-*-rtemself*)
6108                 tm_file="sparc/rtemself.h"
6109                 tmake_file="sparc/t-elf t-rtems"
6110                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6111                 #float_format=i128
6112                 float_format=i64
6113                 ;;
6114         sparcv9-*-solaris2*)
6115                 if test x$gnu_ld = xyes
6116                 then
6117                         tm_file=sparc/sol2-64.h
6118                 else
6119                         tm_file=sparc/sol2-sld-64.h
6120                 fi
6121                 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6122                 xm_defines="USG POSIX"
6123                 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
6124                 xmake_file=sparc/x-sysv4
6125                 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6126                 float_format=none
6127                 if test x${enable_threads} = x ; then
6128                     enable_threads=$have_pthread_h
6129                     if test x${enable_threads} = x ; then
6130                         enable_threads=$have_thread_h
6131                     fi
6132                 fi
6133                 if test x${enable_threads} = xyes ; then
6134                     if test x${have_pthread_h} = xyes ; then
6135                         thread_file='posix'
6136                     else
6137                         thread_file='solaris'
6138                     fi
6139                 fi
6140                 ;;
6141         sparc-hal-solaris2*)
6142                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6143                 xm_defines="USG POSIX"
6144                 tm_file="sparc/sol2.h sparc/hal.h"
6145                 tmake_file="sparc/t-halos sparc/t-sol2"
6146                 xmake_file=sparc/x-sysv4
6147                 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6148                 case $machine in
6149                 *-*-solaris2.[0-4])
6150                         float_format=i128
6151                 ;;
6152                 *)
6153                         float_format=none
6154                         ;;
6155                 esac
6156                 thread_file='solaris'
6157                 ;;
6158         sparc-*-solaris2*)
6159                 if test x$gnu_ld = xyes
6160                 then
6161                         tm_file=sparc/sol2.h
6162                 else
6163                         tm_file=sparc/sol2-sld.h
6164                 fi
6165                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6166                 xm_defines="USG POSIX"
6167                 tmake_file=sparc/t-sol2
6168                 xmake_file=sparc/x-sysv4
6169                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6170                 case $machine in
6171                 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6172                 *-*-solaris2*)
6173                         if test x$gnu_ld = xyes
6174                         then
6175                                 tm_file=sparc/sol2-64.h
6176                         else
6177                                 tm_file=sparc/sol2-sld-64.h
6178                         fi
6179                         tmake_file="$tmake_file sparc/t-sol2-64"
6180                         ;;
6181                 esac
6182                 case $machine in
6183                 *-*-solaris2.[0-4])
6184                         float_format=i128
6185                         ;;
6186                 *)
6187                         float_format=none
6188                         ;;
6189                 esac
6190                 if test x${enable_threads} = x; then
6191                     enable_threads=$have_pthread_h
6192                     if test x${enable_threads} = x; then
6193                         enable_threads=$have_thread_h
6194                     fi
6195                 fi
6196                 if test x${enable_threads} = xyes; then
6197                     if test x${have_pthread_h} = xyes; then
6198                         thread_file='posix'
6199                     else
6200                         thread_file='solaris'
6201                     fi
6202                 fi
6203                 ;;
6204         sparc-*-sunos4.0*)
6205                 tm_file=sparc/sunos4.h
6206                 tmake_file=sparc/t-sunos40
6207                 use_collect2=yes
6208                 ;;
6209         sparc-*-sunos4*)
6210                 tm_file=sparc/sunos4.h
6211                 tmake_file=sparc/t-sunos41
6212                 use_collect2=yes
6213                 if test x$gas = xyes; then
6214                         tm_file="${tm_file} sparc/sun4gas.h"
6215                 fi
6216                 ;;
6217         sparc-*-sunos3*)
6218                 tm_file=sparc/sun4o3.h
6219                 use_collect2=yes
6220                 ;;
6221         sparc-*-sysv4*)
6222                 tm_file=sparc/sysv4.h
6223                 xm_file="sparc/xm-sysv4.h"
6224                 xm_defines="USG POSIX"
6225                 tmake_file=t-svr4
6226                 xmake_file=sparc/x-sysv4
6227                 extra_parts="crtbegin.o crtend.o"
6228                 ;;
6229         sparc-*-vxsim*)
6230                 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6231                 xm_defines="USG POSIX"
6232                 tm_file=sparc/vxsim.h
6233                 tmake_file=sparc/t-vxsparc
6234                 xmake_file=sparc/x-sysv4
6235                 ;;
6236         sparclet-*-aout*)
6237                 tm_file="sparc/splet.h libgloss.h"
6238                 tmake_file=sparc/t-splet
6239                 ;;
6240         sparclite-*-coff*)
6241                 tm_file="sparc/litecoff.h libgloss.h"
6242                 tmake_file=sparc/t-sparclite
6243                 ;;
6244         sparclite-*-aout*)
6245                 tm_file="sparc/lite.h aoutos.h libgloss.h"
6246                 tmake_file=sparc/t-sparclite
6247                 ;;
6248         sparclite-*-elf*)
6249                 tm_file="sparc/liteelf.h"
6250                 tmake_file=sparc/t-sparclite
6251                 extra_parts="crtbegin.o crtend.o"
6252                 ;;
6253         sparc86x-*-aout*)
6254                 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6255                 tmake_file=sparc/t-sp86x
6256                 ;;
6257         sparc86x-*-elf*)        
6258                 tm_file="sparc/sp86x-elf.h"
6259                 tmake_file=sparc/t-sp86x
6260                 extra_parts="crtbegin.o crtend.o"
6261                 ;;
6262         sparc64-*-aout*)
6263                 tmake_file=sparc/t-sp64
6264                 tm_file=sparc/sp64-aout.h
6265                 ;;
6266         sparc64-*-elf*)
6267                 tmake_file=sparc/t-sp64
6268                 tm_file=sparc/sp64-elf.h
6269                 extra_parts="crtbegin.o crtend.o"
6270                 ;;
6271         sparc64-*-linux*)               # 64-bit Sparc's running GNU/Linux
6272                 tmake_file="t-linux sparc/t-linux64"
6273                 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6274                 tm_file=sparc/linux64.h
6275                 xmake_file=x-linux
6276                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6277                 gnu_ld=yes
6278                 if test x$enable_threads = xyes; then
6279                         thread_file='posix'
6280                 fi
6281                 float_format=sparc
6282                 ;;
6283 # This hasn't been upgraded to GCC 2.
6284 #       tahoe-harris-*)                 # Harris tahoe, using COFF.
6285 #               tm_file=tahoe/harris.h
6286 #               ;;
6287 #       tahoe-*-bsd*)                   # tahoe running BSD
6288 #               ;;
6289
6290         thumb*-*-*)
6291                 { echo "configure: error: 
6292 *** The Thumb targets have been depreciated.  The equivalent
6293 *** ARM based toolchain can now generated Thumb instructions
6294 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6295                 ;;
6296 # This hasn't been upgraded to GCC 2.
6297 #       tron-*-*)
6298 #               cpu_type=gmicro
6299 #               use_collect2=yes
6300 #               ;;
6301         v850-*-rtems*)
6302                 cpu_type=v850
6303                 tm_file="v850/rtems.h"
6304                 xm_file="v850/xm-v850.h"
6305                 tmake_file="v850/t-v850 t-rtems"
6306                 if test x$stabs = xyes
6307                 then
6308                         tm_file="${tm_file} dbx.h"
6309                 fi
6310                 use_collect2=no
6311                 ;;
6312         v850-*-*)
6313                 target_cpu_default="TARGET_CPU_generic"
6314                 cpu_type=v850
6315                 tm_file="v850/v850.h"
6316                 xm_file="v850/xm-v850.h"
6317                 tmake_file=v850/t-v850
6318                 if test x$stabs = xyes
6319                 then
6320                         tm_file="${tm_file} dbx.h"
6321                 fi
6322                 use_collect2=no
6323                 ;;
6324         vax-*-bsd*)                     # vaxen running BSD
6325                 use_collect2=yes
6326                 float_format=vax
6327                 ;;
6328         vax-*-sysv*)                    # vaxen running system V
6329                 tm_file="${tm_file} vax/vaxv.h"
6330                 xm_defines=USG
6331                 float_format=vax
6332                 ;;
6333         vax-*-netbsd*)
6334                 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6335                 tmake_file=t-netbsd
6336                 float_format=vax
6337                 use_collect2=yes
6338                 ;;
6339         vax-*-openbsd*)
6340                 tmake_file="${tmake_file} vax/t-openbsd"
6341                 ;;
6342         vax-*-ultrix*)                  # vaxen running ultrix
6343                 tm_file="${tm_file} vax/ultrix.h"
6344                 use_collect2=yes
6345                 float_format=vax
6346                 ;;
6347         vax-*-vms*)                     # vaxen running VMS
6348                 xm_file=vax/xm-vms.h
6349                 tm_file=vax/vms.h
6350                 float_format=vax
6351                 ;;
6352         vax-*-*)                        # vax default entry
6353                 float_format=vax
6354                 ;;
6355         we32k-att-sysv*)
6356                 xm_file="${xm_file} xm-svr3"
6357                 use_collect2=yes
6358                 ;;
6359         *)
6360                 echo "Configuration $machine not supported" 1>&2
6361                 exit 1
6362                 ;;
6363         esac
6364
6365         case $machine in
6366         *-*-linux-gnu*)
6367                 ;; # Existing GNU/Linux systems do not use the GNU setup.
6368         *-*-gnu*)
6369                 # On the GNU system, the setup is just about the same on
6370                 # each different CPU.  The specific machines that GNU
6371                 # supports are matched above and just set $cpu_type.
6372                 xm_file="xm-gnu.h ${xm_file}"
6373                 tm_file=${cpu_type}/gnu.h
6374                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6375                 # GNU always uses ELF.
6376                 elf=yes
6377                 # GNU tools are the only tools.
6378                 gnu_ld=yes
6379                 gas=yes
6380                 xmake_file=x-linux      # These details are the same as Linux.
6381                 tmake_file=t-gnu        # These are not.
6382                 ;;
6383         *-*-sysv4*)
6384                 xmake_try_sysv=x-sysv
6385                 install_headers_dir=install-headers-cpio
6386                 ;;
6387         *-*-sysv*)
6388                 install_headers_dir=install-headers-cpio
6389                 ;;
6390         esac
6391
6392         # Distinguish i[34567]86
6393         # Also, do not run mips-tfile on MIPS if using gas.
6394         # Process --with-cpu= for PowerPC/rs6000
6395         target_cpu_default2=
6396         case $machine in
6397         i486-*-*)
6398                 target_cpu_default2=1
6399                 ;;
6400         i586-*-*)
6401                 case $target_alias in
6402                         k6-*)
6403                                 target_cpu_default2=4
6404                                 ;;
6405                         *)
6406                                 target_cpu_default2=2
6407                                 ;;
6408                 esac
6409                 ;;
6410         i686-*-* | i786-*-*)
6411                 target_cpu_default2=3
6412                 ;;
6413         alpha*-*-*)
6414                 case $machine in
6415                         alphaev6[78]*)
6416                                 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6417                                 ;;
6418                         alphaev6*)
6419                                 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6420                                 ;;
6421                         alphapca56*)
6422                                 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6423                                 ;;
6424                         alphaev56*)
6425                                 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6426                                 ;;
6427                         alphaev5*)
6428                                 target_cpu_default2="MASK_CPU_EV5"
6429                                 ;;
6430                 esac
6431                                 
6432                 if test x$gas = xyes
6433                 then
6434                         if test "$target_cpu_default2" = ""
6435                         then
6436                                 target_cpu_default2="MASK_GAS"
6437                         else
6438                                 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6439                         fi
6440                 fi
6441                 ;;
6442         arm*-*-*)
6443                 case "x$with_cpu" in
6444                         x)
6445                                 # The most generic
6446                                 target_cpu_default2="TARGET_CPU_generic"
6447                                 ;;
6448
6449                         # Distinguish cores, and major variants
6450                         # arm7m doesn't exist, but D & I don't affect code
6451                         xarm[23678] | xarm250 | xarm[67][01]0 \
6452                         | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6453                         | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6454                         | xstrongarm | xstrongarm110 | xstrongarm1100)
6455                                 target_cpu_default2="TARGET_CPU_$with_cpu"
6456                                 ;;
6457
6458                         xyes | xno)
6459                                 echo "--with-cpu must be passed a value" 1>&2
6460                                 exit 1
6461                                 ;;
6462
6463                         *)
6464                                 if test x$pass2done = xyes
6465                                 then
6466                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6467                                         exit 1
6468                                 fi
6469                                 ;;
6470                 esac
6471                 ;;
6472
6473         mips*-*-ecoff* | mips*-*-elf*)
6474                 if test x$gas = xyes
6475                 then
6476                         if test x$gnu_ld = xyes
6477                         then
6478                                 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
6479                         else
6480                                 target_cpu_default2="MASK_GAS"
6481                         fi
6482                 fi
6483                 ;;
6484         mips*-*-*)
6485                 if test x$gas = xyes
6486                 then
6487                         target_cpu_default2="MASK_GAS"
6488                 fi
6489                 ;;
6490         powerpc*-*-* | rs6000-*-*)
6491                 case "x$with_cpu" in
6492                         x)
6493                                 ;;
6494
6495                         xcommon | xpower | xpower2 | xpowerpc | xrios \
6496                           | xrios1 | xrios2 | xrsc | xrsc1 \
6497                           | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6498                           | xec603e | x740 | x750 | x401 \
6499                           | x403 | x505 | x801 | x821 | x823 | x860)
6500                                 target_cpu_default2="\"$with_cpu\""
6501                                 ;;
6502
6503                         xyes | xno)
6504                                 echo "--with-cpu must be passed a value" 1>&2
6505                                 exit 1
6506                                 ;;
6507
6508                         *)
6509                                 if test x$pass2done = xyes
6510                                 then
6511                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6512                                         exit 1
6513                                 fi
6514                                 ;;
6515                 esac
6516                 ;;
6517         sparc*-*-*)
6518                 case ".$with_cpu" in
6519                         .)
6520                                 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6521                                 ;;
6522                         .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6523                                 target_cpu_default2="TARGET_CPU_$with_cpu"
6524                                 ;;
6525                         *)
6526                                 if test x$pass2done = xyes
6527                                 then
6528                                         echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6529                                         exit 1
6530                                 fi
6531                                 ;;
6532                 esac
6533                 ;;
6534         esac
6535
6536         if test "$target_cpu_default2" != ""
6537         then
6538                 if test "$target_cpu_default" != ""
6539                 then
6540                         target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6541                 else
6542                         target_cpu_default=$target_cpu_default2
6543                 fi
6544         fi
6545
6546         # No need for collect2 if we have the GNU linker.
6547         # Actually, there is now; GNU ld doesn't handle the EH info or
6548         # collecting for shared libraries.
6549         #case x$gnu_ld in
6550         #xyes)
6551         #       use_collect2=
6552         #       ;;
6553         #esac
6554
6555 # Save data on machine being used to compile GCC in build_xm_file.
6556 # Save data on host machine in vars host_xm_file and host_xmake_file.
6557         if test x$pass1done = x
6558         then
6559                 if test x"$xm_file" = x
6560                 then build_xm_file=$cpu_type/xm-$cpu_type.h
6561                 else build_xm_file=$xm_file
6562                 fi
6563                 build_xm_defines=$xm_defines
6564                 build_install_headers_dir=$install_headers_dir
6565                 build_exeext=$exeext
6566                 pass1done=yes
6567         else
6568                 if test x$pass2done = x
6569                 then
6570                         if test x"$xm_file" = x
6571                         then host_xm_file=$cpu_type/xm-$cpu_type.h
6572                         else host_xm_file=$xm_file
6573                         fi
6574                         host_xm_defines=$xm_defines
6575                         if test x"$xmake_file" = x
6576                         then xmake_file=$cpu_type/x-$cpu_type
6577                         fi
6578                         host_xmake_file="$xmake_file"
6579                         host_truncate_target=$truncate_target
6580                         host_extra_gcc_objs=$extra_gcc_objs
6581                         host_extra_objs=$extra_host_objs
6582                         host_exeext=$exeext
6583                         pass2done=yes
6584                 fi
6585         fi
6586 done
6587
6588 extra_objs="${host_extra_objs} ${extra_objs}"
6589
6590 # Default the target-machine variables that were not explicitly set.
6591 if test x"$tm_file" = x
6592 then tm_file=$cpu_type/$cpu_type.h; fi
6593
6594 if test x$extra_headers = x
6595 then extra_headers=; fi
6596
6597 if test x"$xm_file" = x
6598 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6599
6600 if test x$md_file = x
6601 then md_file=$cpu_type/$cpu_type.md; fi
6602
6603 if test x$out_file = x
6604 then out_file=$cpu_type/$cpu_type.c; fi
6605
6606 if test x"$tmake_file" = x
6607 then tmake_file=$cpu_type/t-$cpu_type
6608 fi
6609
6610 if test x"$dwarf2" = xyes
6611 then tm_file="$tm_file tm-dwarf2.h"
6612 fi
6613
6614 if test x$float_format = x
6615 then float_format=i64
6616 fi
6617
6618 if test $float_format = none
6619 then float_h_file=Makefile.in
6620 else float_h_file=float-$float_format.h
6621 fi
6622
6623 # Handle cpp installation.
6624 if test x$enable_cpp != xno
6625 then
6626   tmake_file="$tmake_file t-install-cpp"
6627 fi
6628
6629 # Say what files are being used for the output code and MD file.
6630 echo "Using \`$srcdir/config/$out_file' to output insns."
6631 echo "Using \`$srcdir/config/$md_file' as machine description file."
6632
6633 count=a
6634 for f in $tm_file; do
6635         count=${count}x
6636 done
6637 if test $count = ax; then
6638         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6639 else
6640         echo "Using the following target machine macro files:"
6641         for f in $tm_file; do
6642                 echo "  $srcdir/config/$f"
6643         done
6644 fi
6645
6646 count=a
6647 for f in $host_xm_file; do
6648         count=${count}x
6649 done
6650 if test $count = ax; then
6651         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6652 else
6653         echo "Using the following host machine macro files:"
6654         for f in $host_xm_file; do
6655                 echo "  $srcdir/config/$f"
6656         done
6657 fi
6658
6659 if test "$host_xm_file" != "$build_xm_file"; then
6660         count=a
6661         for f in $build_xm_file; do
6662                 count=${count}x
6663         done
6664         if test $count = ax; then
6665                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6666         else
6667                 echo "Using the following build machine macro files:"
6668                 for f in $build_xm_file; do
6669                         echo "  $srcdir/config/$f"
6670                 done
6671         fi
6672 fi
6673
6674 if test x$thread_file = x; then
6675         if test x$target_thread_file != x; then
6676                 thread_file=$target_thread_file
6677         else
6678                 thread_file='single'
6679         fi
6680 fi
6681
6682 # Set up the header files.
6683 # $links is the list of header files to create.
6684 # $vars is the list of shell variables with file names to include.
6685 # auto-host.h is the file containing items generated by autoconf and is
6686 # the first file included by config.h.
6687 null_defines=
6688 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6689
6690 # If host=build, it is correct to have hconfig include auto-host.h
6691 # as well.  If host!=build, we are in error and need to do more 
6692 # work to find out the build config parameters.
6693 if test x$host = x$build
6694 then
6695         build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6696 else
6697         # We create a subdir, then run autoconf in the subdir.
6698         # To prevent recursion we set host and build for the new
6699         # invocation of configure to the build for this invocation
6700         # of configure. 
6701         tempdir=build.$$
6702         rm -rf $tempdir
6703         mkdir $tempdir
6704         cd $tempdir
6705         case ${srcdir} in
6706         /*) realsrcdir=${srcdir};;
6707         *) realsrcdir=../${srcdir};;
6708         esac
6709         CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6710                 --target=$target --host=$build --build=$build
6711
6712         # We just finished tests for the build machine, so rename
6713         # the file auto-build.h in the gcc directory.
6714         mv auto-host.h ../auto-build.h
6715         cd ..
6716         rm -rf $tempdir
6717         build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6718 fi
6719
6720 xm_file="gansidecl.h ${xm_file}"
6721 tm_file="gansidecl.h ${tm_file}"
6722
6723 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6724 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6725 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6726
6727 rm -f config.bak
6728 if test -f config.status; then mv -f config.status config.bak; fi
6729
6730 # Make the links.
6731 while test -n "$vars"
6732 do
6733         set $vars; var=$1; shift; vars=$*
6734         set $links; link=$1; shift; links=$*
6735         set $defines; define=$1; shift; defines=$*
6736
6737         rm -f $link
6738         # Make sure the file is created, even if it is empty.
6739         echo >$link
6740
6741         # Define TARGET_CPU_DEFAULT if the system wants one.
6742         # This substitutes for lots of *.h files.
6743         if test "$target_cpu_default" != "" -a $link = tm.h
6744         then
6745                 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6746         fi
6747
6748         for file in `eval echo '$'$var`; do
6749                 case $file in
6750                 auto-config.h)
6751                         ;;
6752                 *)
6753                         echo '#ifdef IN_GCC' >>$link
6754                         ;;
6755                 esac
6756                 echo "#include \"$file\"" >>$link
6757                 case $file in
6758                 auto-config.h)
6759                         ;;
6760                 *)
6761                         echo '#endif' >>$link
6762                         ;;
6763                 esac
6764         done
6765
6766         for def in `eval echo '$'$define`; do
6767                 echo "#ifndef $def" >>$link
6768                 echo "#define $def" >>$link
6769                 echo "#endif" >>$link
6770         done
6771 done
6772
6773 # Truncate the target if necessary
6774 if test x$host_truncate_target != x; then
6775         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6776 fi
6777
6778 # Get the version trigger filename from the toplevel
6779 if test "${with_gcc_version_trigger+set}" = set; then
6780         gcc_version_trigger=$with_gcc_version_trigger
6781 else
6782         gcc_version_trigger=${srcdir}/version.c
6783 fi
6784 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6785
6786 # Internationalization
6787 PACKAGE=gcc
6788 VERSION="$gcc_version"
6789 cat >> confdefs.h <<EOF
6790 #define PACKAGE "$PACKAGE"
6791 EOF
6792
6793 cat >> confdefs.h <<EOF
6794 #define VERSION "$VERSION"
6795 EOF
6796
6797
6798
6799
6800 ALL_LINGUAS="en_UK"
6801
6802 # NLS support is still experimental, so disable it by default for now.
6803 # Check whether --enable-nls or --disable-nls was given.
6804 if test "${enable_nls+set}" = set; then
6805   enableval="$enable_nls"
6806   :
6807 else
6808   enable_nls=no
6809 fi
6810
6811
6812
6813         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6814 echo "configure:6815: checking for strerror in -lcposix" >&5
6815 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6817   echo $ac_n "(cached) $ac_c" 1>&6
6818 else
6819   ac_save_LIBS="$LIBS"
6820 LIBS="-lcposix  $LIBS"
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error.  */
6825 /* We use char because int might match the return type of a gcc2
6826     builtin and then its argument prototype would still apply.  */
6827 char strerror();
6828
6829 int main() {
6830 strerror()
6831 ; return 0; }
6832 EOF
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6834   rm -rf conftest*
6835   eval "ac_cv_lib_$ac_lib_var=yes"
6836 else
6837   echo "configure: failed program was:" >&5
6838   cat conftest.$ac_ext >&5
6839   rm -rf conftest*
6840   eval "ac_cv_lib_$ac_lib_var=no"
6841 fi
6842 rm -f conftest*
6843 LIBS="$ac_save_LIBS"
6844
6845 fi
6846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6847   echo "$ac_t""yes" 1>&6
6848   LIBS="$LIBS -lcposix"
6849 else
6850   echo "$ac_t""no" 1>&6
6851 fi
6852
6853   
6854
6855 echo $ac_n "checking for working const""... $ac_c" 1>&6
6856 echo "configure:6857: checking for working const" >&5
6857 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6858   echo $ac_n "(cached) $ac_c" 1>&6
6859 else
6860   cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863
6864 int main() {
6865
6866 /* Ultrix mips cc rejects this.  */
6867 typedef int charset[2]; const charset x;
6868 /* SunOS 4.1.1 cc rejects this.  */
6869 char const *const *ccp;
6870 char **p;
6871 /* NEC SVR4.0.2 mips cc rejects this.  */
6872 struct point {int x, y;};
6873 static struct point const zero = {0,0};
6874 /* AIX XL C 1.02.0.0 rejects this.
6875    It does not let you subtract one const X* pointer from another in an arm
6876    of an if-expression whose if-part is not a constant expression */
6877 const char *g = "string";
6878 ccp = &g + (g ? g-g : 0);
6879 /* HPUX 7.0 cc rejects these. */
6880 ++ccp;
6881 p = (char**) ccp;
6882 ccp = (char const *const *) p;
6883 { /* SCO 3.2v4 cc rejects this.  */
6884   char *t;
6885   char const *s = 0 ? (char *) 0 : (char const *) 0;
6886
6887   *t++ = 0;
6888 }
6889 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6890   int x[] = {25, 17};
6891   const int *foo = &x[0];
6892   ++foo;
6893 }
6894 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6895   typedef const int *iptr;
6896   iptr p = 0;
6897   ++p;
6898 }
6899 { /* AIX XL C 1.02.0.0 rejects this saying
6900      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6901   struct s { int j; const int *ap[3]; };
6902   struct s *b; b->j = 5;
6903 }
6904 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6905   const int foo = 10;
6906 }
6907
6908 ; return 0; }
6909 EOF
6910 if { (eval echo configure:6911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6911   rm -rf conftest*
6912   ac_cv_c_const=yes
6913 else
6914   echo "configure: failed program was:" >&5
6915   cat conftest.$ac_ext >&5
6916   rm -rf conftest*
6917   ac_cv_c_const=no
6918 fi
6919 rm -f conftest*
6920 fi
6921
6922 echo "$ac_t""$ac_cv_c_const" 1>&6
6923 if test $ac_cv_c_const = no; then
6924   cat >> confdefs.h <<\EOF
6925 #define const 
6926 EOF
6927
6928 fi
6929
6930 echo $ac_n "checking for inline""... $ac_c" 1>&6
6931 echo "configure:6932: checking for inline" >&5
6932 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6933   echo $ac_n "(cached) $ac_c" 1>&6
6934 else
6935   ac_cv_c_inline=no
6936 for ac_kw in inline __inline__ __inline; do
6937   cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6940
6941 int main() {
6942 } $ac_kw foo() {
6943 ; return 0; }
6944 EOF
6945 if { (eval echo configure:6946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6946   rm -rf conftest*
6947   ac_cv_c_inline=$ac_kw; break
6948 else
6949   echo "configure: failed program was:" >&5
6950   cat conftest.$ac_ext >&5
6951 fi
6952 rm -f conftest*
6953 done
6954
6955 fi
6956
6957 echo "$ac_t""$ac_cv_c_inline" 1>&6
6958 case "$ac_cv_c_inline" in
6959   inline | yes) ;;
6960   no) cat >> confdefs.h <<\EOF
6961 #define inline 
6962 EOF
6963  ;;
6964   *)  cat >> confdefs.h <<EOF
6965 #define inline $ac_cv_c_inline
6966 EOF
6967  ;;
6968 esac
6969
6970 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6971 echo "configure:6972: checking for off_t" >&5
6972 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6973   echo $ac_n "(cached) $ac_c" 1>&6
6974 else
6975   cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 #include <sys/types.h>
6979 #if STDC_HEADERS
6980 #include <stdlib.h>
6981 #include <stddef.h>
6982 #endif
6983 EOF
6984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6985   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6986   rm -rf conftest*
6987   ac_cv_type_off_t=yes
6988 else
6989   rm -rf conftest*
6990   ac_cv_type_off_t=no
6991 fi
6992 rm -f conftest*
6993
6994 fi
6995 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6996 if test $ac_cv_type_off_t = no; then
6997   cat >> confdefs.h <<\EOF
6998 #define off_t long
6999 EOF
7000
7001 fi
7002
7003 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7004 echo "configure:7005: checking for size_t" >&5
7005 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7006   echo $ac_n "(cached) $ac_c" 1>&6
7007 else
7008   cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 #include <sys/types.h>
7012 #if STDC_HEADERS
7013 #include <stdlib.h>
7014 #include <stddef.h>
7015 #endif
7016 EOF
7017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7019   rm -rf conftest*
7020   ac_cv_type_size_t=yes
7021 else
7022   rm -rf conftest*
7023   ac_cv_type_size_t=no
7024 fi
7025 rm -f conftest*
7026
7027 fi
7028 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7029 if test $ac_cv_type_size_t = no; then
7030   cat >> confdefs.h <<\EOF
7031 #define size_t unsigned
7032 EOF
7033
7034 fi
7035
7036 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7037 # for constant arguments.  Useless!
7038 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7039 echo "configure:7040: checking for working alloca.h" >&5
7040 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7041   echo $ac_n "(cached) $ac_c" 1>&6
7042 else
7043   cat > conftest.$ac_ext <<EOF
7044 #line 7045 "configure"
7045 #include "confdefs.h"
7046 #include <alloca.h>
7047 int main() {
7048 char *p = alloca(2 * sizeof(int));
7049 ; return 0; }
7050 EOF
7051 if { (eval echo configure:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052   rm -rf conftest*
7053   ac_cv_header_alloca_h=yes
7054 else
7055   echo "configure: failed program was:" >&5
7056   cat conftest.$ac_ext >&5
7057   rm -rf conftest*
7058   ac_cv_header_alloca_h=no
7059 fi
7060 rm -f conftest*
7061 fi
7062
7063 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7064 if test $ac_cv_header_alloca_h = yes; then
7065   cat >> confdefs.h <<\EOF
7066 #define HAVE_ALLOCA_H 1
7067 EOF
7068
7069 fi
7070
7071 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7072 echo "configure:7073: checking for alloca" >&5
7073 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7074   echo $ac_n "(cached) $ac_c" 1>&6
7075 else
7076   cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079
7080 #ifdef __GNUC__
7081 # define alloca __builtin_alloca
7082 #else
7083 # ifdef _MSC_VER
7084 #  include <malloc.h>
7085 #  define alloca _alloca
7086 # else
7087 #  if HAVE_ALLOCA_H
7088 #   include <alloca.h>
7089 #  else
7090 #   ifdef _AIX
7091  #pragma alloca
7092 #   else
7093 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7094 char *alloca ();
7095 #    endif
7096 #   endif
7097 #  endif
7098 # endif
7099 #endif
7100
7101 int main() {
7102 char *p = (char *) alloca(1);
7103 ; return 0; }
7104 EOF
7105 if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7106   rm -rf conftest*
7107   ac_cv_func_alloca_works=yes
7108 else
7109   echo "configure: failed program was:" >&5
7110   cat conftest.$ac_ext >&5
7111   rm -rf conftest*
7112   ac_cv_func_alloca_works=no
7113 fi
7114 rm -f conftest*
7115 fi
7116
7117 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7118 if test $ac_cv_func_alloca_works = yes; then
7119   cat >> confdefs.h <<\EOF
7120 #define HAVE_ALLOCA 1
7121 EOF
7122
7123 fi
7124
7125 if test $ac_cv_func_alloca_works = no; then
7126   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7127   # that cause trouble.  Some versions do not even contain alloca or
7128   # contain a buggy version.  If you still want to use their alloca,
7129   # use ar to extract alloca.o from them instead of compiling alloca.c.
7130   ALLOCA=alloca.${ac_objext}
7131   cat >> confdefs.h <<\EOF
7132 #define C_ALLOCA 1
7133 EOF
7134
7135
7136 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7137 echo "configure:7138: checking whether alloca needs Cray hooks" >&5
7138 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7139   echo $ac_n "(cached) $ac_c" 1>&6
7140 else
7141   cat > conftest.$ac_ext <<EOF
7142 #line 7143 "configure"
7143 #include "confdefs.h"
7144 #if defined(CRAY) && ! defined(CRAY2)
7145 webecray
7146 #else
7147 wenotbecray
7148 #endif
7149
7150 EOF
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152   egrep "webecray" >/dev/null 2>&1; then
7153   rm -rf conftest*
7154   ac_cv_os_cray=yes
7155 else
7156   rm -rf conftest*
7157   ac_cv_os_cray=no
7158 fi
7159 rm -f conftest*
7160
7161 fi
7162
7163 echo "$ac_t""$ac_cv_os_cray" 1>&6
7164 if test $ac_cv_os_cray = yes; then
7165 for ac_func in _getb67 GETB67 getb67; do
7166   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7167 echo "configure:7168: checking for $ac_func" >&5
7168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7169   echo $ac_n "(cached) $ac_c" 1>&6
7170 else
7171   cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7174 /* System header to define __stub macros and hopefully few prototypes,
7175     which can conflict with char $ac_func(); below.  */
7176 #include <assert.h>
7177 /* Override any gcc2 internal prototype to avoid an error.  */
7178 /* We use char because int might match the return type of a gcc2
7179     builtin and then its argument prototype would still apply.  */
7180 char $ac_func();
7181
7182 int main() {
7183
7184 /* The GNU C library defines this for functions which it implements
7185     to always fail with ENOSYS.  Some functions are actually named
7186     something starting with __ and the normal name is an alias.  */
7187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7188 choke me
7189 #else
7190 $ac_func();
7191 #endif
7192
7193 ; return 0; }
7194 EOF
7195 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196   rm -rf conftest*
7197   eval "ac_cv_func_$ac_func=yes"
7198 else
7199   echo "configure: failed program was:" >&5
7200   cat conftest.$ac_ext >&5
7201   rm -rf conftest*
7202   eval "ac_cv_func_$ac_func=no"
7203 fi
7204 rm -f conftest*
7205 fi
7206
7207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7208   echo "$ac_t""yes" 1>&6
7209   cat >> confdefs.h <<EOF
7210 #define CRAY_STACKSEG_END $ac_func
7211 EOF
7212
7213   break
7214 else
7215   echo "$ac_t""no" 1>&6
7216 fi
7217
7218 done
7219 fi
7220
7221 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7222 echo "configure:7223: checking stack direction for C alloca" >&5
7223 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7224   echo $ac_n "(cached) $ac_c" 1>&6
7225 else
7226   if test "$cross_compiling" = yes; then
7227   ac_cv_c_stack_direction=0
7228 else
7229   cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7232 find_stack_direction ()
7233 {
7234   static char *addr = 0;
7235   auto char dummy;
7236   if (addr == 0)
7237     {
7238       addr = &dummy;
7239       return find_stack_direction ();
7240     }
7241   else
7242     return (&dummy > addr) ? 1 : -1;
7243 }
7244 main ()
7245 {
7246   exit (find_stack_direction() < 0);
7247 }
7248 EOF
7249 if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7250 then
7251   ac_cv_c_stack_direction=1
7252 else
7253   echo "configure: failed program was:" >&5
7254   cat conftest.$ac_ext >&5
7255   rm -fr conftest*
7256   ac_cv_c_stack_direction=-1
7257 fi
7258 rm -fr conftest*
7259 fi
7260
7261 fi
7262
7263 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7264 cat >> confdefs.h <<EOF
7265 #define STACK_DIRECTION $ac_cv_c_stack_direction
7266 EOF
7267
7268 fi
7269
7270                            
7271    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7272 unistd.h sys/param.h
7273 do
7274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7276 echo "configure:7277: checking for $ac_hdr" >&5
7277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7278   echo $ac_n "(cached) $ac_c" 1>&6
7279 else
7280   cat > conftest.$ac_ext <<EOF
7281 #line 7282 "configure"
7282 #include "confdefs.h"
7283 #include <$ac_hdr>
7284 EOF
7285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7286 { (eval echo configure:7287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7288 if test -z "$ac_err"; then
7289   rm -rf conftest*
7290   eval "ac_cv_header_$ac_safe=yes"
7291 else
7292   echo "$ac_err" >&5
7293   echo "configure: failed program was:" >&5
7294   cat conftest.$ac_ext >&5
7295   rm -rf conftest*
7296   eval "ac_cv_header_$ac_safe=no"
7297 fi
7298 rm -f conftest*
7299 fi
7300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7301   echo "$ac_t""yes" 1>&6
7302     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7303   cat >> confdefs.h <<EOF
7304 #define $ac_tr_hdr 1
7305 EOF
7306  
7307 else
7308   echo "$ac_t""no" 1>&6
7309 fi
7310 done
7311
7312    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7313 strdup __argz_count __argz_stringify __argz_next
7314 do
7315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7316 echo "configure:7317: checking for $ac_func" >&5
7317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7318   echo $ac_n "(cached) $ac_c" 1>&6
7319 else
7320   cat > conftest.$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 /* System header to define __stub macros and hopefully few prototypes,
7324     which can conflict with char $ac_func(); below.  */
7325 #include <assert.h>
7326 /* Override any gcc2 internal prototype to avoid an error.  */
7327 /* We use char because int might match the return type of a gcc2
7328     builtin and then its argument prototype would still apply.  */
7329 char $ac_func();
7330
7331 int main() {
7332
7333 /* The GNU C library defines this for functions which it implements
7334     to always fail with ENOSYS.  Some functions are actually named
7335     something starting with __ and the normal name is an alias.  */
7336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7337 choke me
7338 #else
7339 $ac_func();
7340 #endif
7341
7342 ; return 0; }
7343 EOF
7344 if { (eval echo configure:7345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7345   rm -rf conftest*
7346   eval "ac_cv_func_$ac_func=yes"
7347 else
7348   echo "configure: failed program was:" >&5
7349   cat conftest.$ac_ext >&5
7350   rm -rf conftest*
7351   eval "ac_cv_func_$ac_func=no"
7352 fi
7353 rm -f conftest*
7354 fi
7355
7356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7357   echo "$ac_t""yes" 1>&6
7358     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7359   cat >> confdefs.h <<EOF
7360 #define $ac_tr_func 1
7361 EOF
7362  
7363 else
7364   echo "$ac_t""no" 1>&6
7365 fi
7366 done
7367
7368
7369    if test "${ac_cv_func_stpcpy+set}" != "set"; then
7370      for ac_func in stpcpy
7371 do
7372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7373 echo "configure:7374: checking for $ac_func" >&5
7374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7375   echo $ac_n "(cached) $ac_c" 1>&6
7376 else
7377   cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7380 /* System header to define __stub macros and hopefully few prototypes,
7381     which can conflict with char $ac_func(); below.  */
7382 #include <assert.h>
7383 /* Override any gcc2 internal prototype to avoid an error.  */
7384 /* We use char because int might match the return type of a gcc2
7385     builtin and then its argument prototype would still apply.  */
7386 char $ac_func();
7387
7388 int main() {
7389
7390 /* The GNU C library defines this for functions which it implements
7391     to always fail with ENOSYS.  Some functions are actually named
7392     something starting with __ and the normal name is an alias.  */
7393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7394 choke me
7395 #else
7396 $ac_func();
7397 #endif
7398
7399 ; return 0; }
7400 EOF
7401 if { (eval echo configure:7402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7402   rm -rf conftest*
7403   eval "ac_cv_func_$ac_func=yes"
7404 else
7405   echo "configure: failed program was:" >&5
7406   cat conftest.$ac_ext >&5
7407   rm -rf conftest*
7408   eval "ac_cv_func_$ac_func=no"
7409 fi
7410 rm -f conftest*
7411 fi
7412
7413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7414   echo "$ac_t""yes" 1>&6
7415     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7416   cat >> confdefs.h <<EOF
7417 #define $ac_tr_func 1
7418 EOF
7419  
7420 else
7421   echo "$ac_t""no" 1>&6
7422 fi
7423 done
7424
7425    fi
7426    if test "${ac_cv_func_stpcpy}" = "yes"; then
7427      cat >> confdefs.h <<\EOF
7428 #define HAVE_STPCPY 1
7429 EOF
7430
7431    fi
7432
7433    if test $ac_cv_header_locale_h = yes; then
7434     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7435 echo "configure:7436: checking for LC_MESSAGES" >&5
7436 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7437   echo $ac_n "(cached) $ac_c" 1>&6
7438 else
7439   cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7442 #include <locale.h>
7443 int main() {
7444 return LC_MESSAGES
7445 ; return 0; }
7446 EOF
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7448   rm -rf conftest*
7449   am_cv_val_LC_MESSAGES=yes
7450 else
7451   echo "configure: failed program was:" >&5
7452   cat conftest.$ac_ext >&5
7453   rm -rf conftest*
7454   am_cv_val_LC_MESSAGES=no
7455 fi
7456 rm -f conftest*
7457 fi
7458
7459 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7460     if test $am_cv_val_LC_MESSAGES = yes; then
7461       cat >> confdefs.h <<\EOF
7462 #define HAVE_LC_MESSAGES 1
7463 EOF
7464
7465     fi
7466   fi
7467    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7468 echo "configure:7469: checking whether NLS is requested" >&5
7469         # Check whether --enable-nls or --disable-nls was given.
7470 if test "${enable_nls+set}" = set; then
7471   enableval="$enable_nls"
7472   USE_NLS=$enableval
7473 else
7474   USE_NLS=yes
7475 fi
7476
7477     echo "$ac_t""$USE_NLS" 1>&6
7478     
7479
7480     USE_INCLUDED_LIBINTL=no
7481
7482         if test "$USE_NLS" = "yes"; then
7483       cat >> confdefs.h <<\EOF
7484 #define ENABLE_NLS 1
7485 EOF
7486
7487       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7488 echo "configure:7489: checking whether included gettext is requested" >&5
7489       # Check whether --with-included-gettext or --without-included-gettext was given.
7490 if test "${with_included_gettext+set}" = set; then
7491   withval="$with_included_gettext"
7492   nls_cv_force_use_gnu_gettext=$withval
7493 else
7494   nls_cv_force_use_gnu_gettext=no
7495 fi
7496
7497       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7498
7499       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7500       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7501                                         nls_cv_header_intl=
7502         nls_cv_header_libgt=
7503         CATOBJEXT=NONE
7504
7505         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7506 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7507 echo "configure:7508: checking for libintl.h" >&5
7508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7509   echo $ac_n "(cached) $ac_c" 1>&6
7510 else
7511   cat > conftest.$ac_ext <<EOF
7512 #line 7513 "configure"
7513 #include "confdefs.h"
7514 #include <libintl.h>
7515 EOF
7516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7517 { (eval echo configure:7518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7519 if test -z "$ac_err"; then
7520   rm -rf conftest*
7521   eval "ac_cv_header_$ac_safe=yes"
7522 else
7523   echo "$ac_err" >&5
7524   echo "configure: failed program was:" >&5
7525   cat conftest.$ac_ext >&5
7526   rm -rf conftest*
7527   eval "ac_cv_header_$ac_safe=no"
7528 fi
7529 rm -f conftest*
7530 fi
7531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7532   echo "$ac_t""yes" 1>&6
7533   echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7534 echo "configure:7535: checking for gettext in libc" >&5
7535 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7536   echo $ac_n "(cached) $ac_c" 1>&6
7537 else
7538   cat > conftest.$ac_ext <<EOF
7539 #line 7540 "configure"
7540 #include "confdefs.h"
7541 #include <libintl.h>
7542 int main() {
7543 return (int) gettext ("")
7544 ; return 0; }
7545 EOF
7546 if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547   rm -rf conftest*
7548   gt_cv_func_gettext_libc=yes
7549 else
7550   echo "configure: failed program was:" >&5
7551   cat conftest.$ac_ext >&5
7552   rm -rf conftest*
7553   gt_cv_func_gettext_libc=no
7554 fi
7555 rm -f conftest*
7556 fi
7557
7558 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7559
7560            if test "$gt_cv_func_gettext_libc" != "yes"; then
7561              echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7562 echo "configure:7563: checking for bindtextdomain in -lintl" >&5
7563 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7565   echo $ac_n "(cached) $ac_c" 1>&6
7566 else
7567   ac_save_LIBS="$LIBS"
7568 LIBS="-lintl  $LIBS"
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* Override any gcc2 internal prototype to avoid an error.  */
7573 /* We use char because int might match the return type of a gcc2
7574     builtin and then its argument prototype would still apply.  */
7575 char bindtextdomain();
7576
7577 int main() {
7578 bindtextdomain()
7579 ; return 0; }
7580 EOF
7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7582   rm -rf conftest*
7583   eval "ac_cv_lib_$ac_lib_var=yes"
7584 else
7585   echo "configure: failed program was:" >&5
7586   cat conftest.$ac_ext >&5
7587   rm -rf conftest*
7588   eval "ac_cv_lib_$ac_lib_var=no"
7589 fi
7590 rm -f conftest*
7591 LIBS="$ac_save_LIBS"
7592
7593 fi
7594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7595   echo "$ac_t""yes" 1>&6
7596   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7597 echo "configure:7598: checking for gettext in libintl" >&5
7598 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7599   echo $ac_n "(cached) $ac_c" 1>&6
7600 else
7601   echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7602 echo "configure:7603: checking for gettext in -lintl" >&5
7603 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7605   echo $ac_n "(cached) $ac_c" 1>&6
7606 else
7607   ac_save_LIBS="$LIBS"
7608 LIBS="-lintl  $LIBS"
7609 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7612 /* Override any gcc2 internal prototype to avoid an error.  */
7613 /* We use char because int might match the return type of a gcc2
7614     builtin and then its argument prototype would still apply.  */
7615 char gettext();
7616
7617 int main() {
7618 gettext()
7619 ; return 0; }
7620 EOF
7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7622   rm -rf conftest*
7623   eval "ac_cv_lib_$ac_lib_var=yes"
7624 else
7625   echo "configure: failed program was:" >&5
7626   cat conftest.$ac_ext >&5
7627   rm -rf conftest*
7628   eval "ac_cv_lib_$ac_lib_var=no"
7629 fi
7630 rm -f conftest*
7631 LIBS="$ac_save_LIBS"
7632
7633 fi
7634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7635   echo "$ac_t""yes" 1>&6
7636   gt_cv_func_gettext_libintl=yes
7637 else
7638   echo "$ac_t""no" 1>&6
7639 gt_cv_func_gettext_libintl=no
7640 fi
7641
7642 fi
7643
7644 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7645 else
7646   echo "$ac_t""no" 1>&6
7647 fi
7648
7649            fi
7650
7651            if test "$gt_cv_func_gettext_libc" = "yes" \
7652               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7653               cat >> confdefs.h <<\EOF
7654 #define HAVE_GETTEXT 1
7655 EOF
7656
7657               # Extract the first word of "msgfmt", so it can be a program name with args.
7658 set dummy msgfmt; ac_word=$2
7659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7660 echo "configure:7661: checking for $ac_word" >&5
7661 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7662   echo $ac_n "(cached) $ac_c" 1>&6
7663 else
7664   case "$MSGFMT" in
7665   /*)
7666   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7667   ;;
7668   *)
7669   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7670   for ac_dir in $PATH; do
7671     test -z "$ac_dir" && ac_dir=.
7672     if test -f $ac_dir/$ac_word; then
7673       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7674         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7675         break
7676       fi
7677     fi
7678   done
7679   IFS="$ac_save_ifs"
7680   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7681   ;;
7682 esac
7683 fi
7684 MSGFMT="$ac_cv_path_MSGFMT"
7685 if test -n "$MSGFMT"; then
7686   echo "$ac_t""$MSGFMT" 1>&6
7687 else
7688   echo "$ac_t""no" 1>&6
7689 fi
7690               if test "$MSGFMT" != "no"; then
7691                 for ac_func in dcgettext
7692 do
7693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7694 echo "configure:7695: checking for $ac_func" >&5
7695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7696   echo $ac_n "(cached) $ac_c" 1>&6
7697 else
7698   cat > conftest.$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7701 /* System header to define __stub macros and hopefully few prototypes,
7702     which can conflict with char $ac_func(); below.  */
7703 #include <assert.h>
7704 /* Override any gcc2 internal prototype to avoid an error.  */
7705 /* We use char because int might match the return type of a gcc2
7706     builtin and then its argument prototype would still apply.  */
7707 char $ac_func();
7708
7709 int main() {
7710
7711 /* The GNU C library defines this for functions which it implements
7712     to always fail with ENOSYS.  Some functions are actually named
7713     something starting with __ and the normal name is an alias.  */
7714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7715 choke me
7716 #else
7717 $ac_func();
7718 #endif
7719
7720 ; return 0; }
7721 EOF
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7723   rm -rf conftest*
7724   eval "ac_cv_func_$ac_func=yes"
7725 else
7726   echo "configure: failed program was:" >&5
7727   cat conftest.$ac_ext >&5
7728   rm -rf conftest*
7729   eval "ac_cv_func_$ac_func=no"
7730 fi
7731 rm -f conftest*
7732 fi
7733
7734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7735   echo "$ac_t""yes" 1>&6
7736     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7737   cat >> confdefs.h <<EOF
7738 #define $ac_tr_func 1
7739 EOF
7740  
7741 else
7742   echo "$ac_t""no" 1>&6
7743 fi
7744 done
7745
7746                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7747 set dummy gmsgfmt; ac_word=$2
7748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7749 echo "configure:7750: checking for $ac_word" >&5
7750 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7751   echo $ac_n "(cached) $ac_c" 1>&6
7752 else
7753   case "$GMSGFMT" in
7754   /*)
7755   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7756   ;;
7757   ?:/*)                  
7758   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7759   ;;
7760   *)
7761   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7762   ac_dummy="$PATH"
7763   for ac_dir in $ac_dummy; do 
7764     test -z "$ac_dir" && ac_dir=.
7765     if test -f $ac_dir/$ac_word; then
7766       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7767       break
7768     fi
7769   done
7770   IFS="$ac_save_ifs"
7771   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7772   ;;
7773 esac
7774 fi
7775 GMSGFMT="$ac_cv_path_GMSGFMT"
7776 if test -n "$GMSGFMT"; then
7777   echo "$ac_t""$GMSGFMT" 1>&6
7778 else
7779   echo "$ac_t""no" 1>&6
7780 fi
7781
7782                 # Extract the first word of "xgettext", so it can be a program name with args.
7783 set dummy xgettext; ac_word=$2
7784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7785 echo "configure:7786: checking for $ac_word" >&5
7786 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7787   echo $ac_n "(cached) $ac_c" 1>&6
7788 else
7789   case "$XGETTEXT" in
7790   /*)
7791   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7792   ;;
7793   *)
7794   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7795   for ac_dir in $PATH; do
7796     test -z "$ac_dir" && ac_dir=.
7797     if test -f $ac_dir/$ac_word; then
7798       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7799         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7800         break
7801       fi
7802     fi
7803   done
7804   IFS="$ac_save_ifs"
7805   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7806   ;;
7807 esac
7808 fi
7809 XGETTEXT="$ac_cv_path_XGETTEXT"
7810 if test -n "$XGETTEXT"; then
7811   echo "$ac_t""$XGETTEXT" 1>&6
7812 else
7813   echo "$ac_t""no" 1>&6
7814 fi
7815
7816                 cat > conftest.$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819
7820 int main() {
7821 extern int _nl_msg_cat_cntr;
7822                                return _nl_msg_cat_cntr
7823 ; return 0; }
7824 EOF
7825 if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7826   rm -rf conftest*
7827   CATOBJEXT=.gmo
7828                    DATADIRNAME=share
7829 else
7830   echo "configure: failed program was:" >&5
7831   cat conftest.$ac_ext >&5
7832   rm -rf conftest*
7833   CATOBJEXT=.mo
7834                    DATADIRNAME=lib
7835 fi
7836 rm -f conftest*
7837                 INSTOBJEXT=.mo
7838               fi
7839             fi
7840         
7841 else
7842   echo "$ac_t""no" 1>&6
7843 fi
7844
7845
7846         if test "$CATOBJEXT" = "NONE"; then
7847           echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7848 echo "configure:7849: checking whether catgets can be used" >&5
7849           # Check whether --with-catgets or --without-catgets was given.
7850 if test "${with_catgets+set}" = set; then
7851   withval="$with_catgets"
7852   nls_cv_use_catgets=$withval
7853 else
7854   nls_cv_use_catgets=no
7855 fi
7856
7857           echo "$ac_t""$nls_cv_use_catgets" 1>&6
7858
7859           if test "$nls_cv_use_catgets" = "yes"; then
7860                     echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7861 echo "configure:7862: checking for main in -li" >&5
7862 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7864   echo $ac_n "(cached) $ac_c" 1>&6
7865 else
7866   ac_save_LIBS="$LIBS"
7867 LIBS="-li  $LIBS"
7868 cat > conftest.$ac_ext <<EOF
7869 #line 7870 "configure"
7870 #include "confdefs.h"
7871
7872 int main() {
7873 main()
7874 ; return 0; }
7875 EOF
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7877   rm -rf conftest*
7878   eval "ac_cv_lib_$ac_lib_var=yes"
7879 else
7880   echo "configure: failed program was:" >&5
7881   cat conftest.$ac_ext >&5
7882   rm -rf conftest*
7883   eval "ac_cv_lib_$ac_lib_var=no"
7884 fi
7885 rm -f conftest*
7886 LIBS="$ac_save_LIBS"
7887
7888 fi
7889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7890   echo "$ac_t""yes" 1>&6
7891     ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7892     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7893   cat >> confdefs.h <<EOF
7894 #define $ac_tr_lib 1
7895 EOF
7896
7897   LIBS="-li $LIBS"
7898
7899 else
7900   echo "$ac_t""no" 1>&6
7901 fi
7902
7903             echo $ac_n "checking for catgets""... $ac_c" 1>&6
7904 echo "configure:7905: checking for catgets" >&5
7905 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7906   echo $ac_n "(cached) $ac_c" 1>&6
7907 else
7908   cat > conftest.$ac_ext <<EOF
7909 #line 7910 "configure"
7910 #include "confdefs.h"
7911 /* System header to define __stub macros and hopefully few prototypes,
7912     which can conflict with char catgets(); below.  */
7913 #include <assert.h>
7914 /* Override any gcc2 internal prototype to avoid an error.  */
7915 /* We use char because int might match the return type of a gcc2
7916     builtin and then its argument prototype would still apply.  */
7917 char catgets();
7918
7919 int main() {
7920
7921 /* The GNU C library defines this for functions which it implements
7922     to always fail with ENOSYS.  Some functions are actually named
7923     something starting with __ and the normal name is an alias.  */
7924 #if defined (__stub_catgets) || defined (__stub___catgets)
7925 choke me
7926 #else
7927 catgets();
7928 #endif
7929
7930 ; return 0; }
7931 EOF
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7933   rm -rf conftest*
7934   eval "ac_cv_func_catgets=yes"
7935 else
7936   echo "configure: failed program was:" >&5
7937   cat conftest.$ac_ext >&5
7938   rm -rf conftest*
7939   eval "ac_cv_func_catgets=no"
7940 fi
7941 rm -f conftest*
7942 fi
7943
7944 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7945   echo "$ac_t""yes" 1>&6
7946   cat >> confdefs.h <<\EOF
7947 #define HAVE_CATGETS 1
7948 EOF
7949
7950                INTLOBJS="\$(CATOBJS)"
7951                # Extract the first word of "gencat", so it can be a program name with args.
7952 set dummy gencat; ac_word=$2
7953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7954 echo "configure:7955: checking for $ac_word" >&5
7955 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7956   echo $ac_n "(cached) $ac_c" 1>&6
7957 else
7958   case "$GENCAT" in
7959   /*)
7960   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7961   ;;
7962   ?:/*)                  
7963   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7964   ;;
7965   *)
7966   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7967   ac_dummy="$PATH"
7968   for ac_dir in $ac_dummy; do 
7969     test -z "$ac_dir" && ac_dir=.
7970     if test -f $ac_dir/$ac_word; then
7971       ac_cv_path_GENCAT="$ac_dir/$ac_word"
7972       break
7973     fi
7974   done
7975   IFS="$ac_save_ifs"
7976   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7977   ;;
7978 esac
7979 fi
7980 GENCAT="$ac_cv_path_GENCAT"
7981 if test -n "$GENCAT"; then
7982   echo "$ac_t""$GENCAT" 1>&6
7983 else
7984   echo "$ac_t""no" 1>&6
7985 fi
7986                if test "$GENCAT" != "no"; then
7987                  # Extract the first word of "gmsgfmt", so it can be a program name with args.
7988 set dummy gmsgfmt; ac_word=$2
7989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7990 echo "configure:7991: checking for $ac_word" >&5
7991 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7992   echo $ac_n "(cached) $ac_c" 1>&6
7993 else
7994   case "$GMSGFMT" in
7995   /*)
7996   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7997   ;;
7998   ?:/*)                  
7999   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8000   ;;
8001   *)
8002   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8003   ac_dummy="$PATH"
8004   for ac_dir in $ac_dummy; do 
8005     test -z "$ac_dir" && ac_dir=.
8006     if test -f $ac_dir/$ac_word; then
8007       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8008       break
8009     fi
8010   done
8011   IFS="$ac_save_ifs"
8012   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8013   ;;
8014 esac
8015 fi
8016 GMSGFMT="$ac_cv_path_GMSGFMT"
8017 if test -n "$GMSGFMT"; then
8018   echo "$ac_t""$GMSGFMT" 1>&6
8019 else
8020   echo "$ac_t""no" 1>&6
8021 fi
8022
8023                  if test "$GMSGFMT" = "no"; then
8024                    # Extract the first word of "msgfmt", so it can be a program name with args.
8025 set dummy msgfmt; ac_word=$2
8026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_word" >&5
8028 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8029   echo $ac_n "(cached) $ac_c" 1>&6
8030 else
8031   case "$GMSGFMT" in
8032   /*)
8033   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8034   ;;
8035   *)
8036   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8037   for ac_dir in $PATH; do
8038     test -z "$ac_dir" && ac_dir=.
8039     if test -f $ac_dir/$ac_word; then
8040       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8041         ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8042         break
8043       fi
8044     fi
8045   done
8046   IFS="$ac_save_ifs"
8047   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8048   ;;
8049 esac
8050 fi
8051 GMSGFMT="$ac_cv_path_GMSGFMT"
8052 if test -n "$GMSGFMT"; then
8053   echo "$ac_t""$GMSGFMT" 1>&6
8054 else
8055   echo "$ac_t""no" 1>&6
8056 fi
8057
8058                  fi
8059                  # Extract the first word of "xgettext", so it can be a program name with args.
8060 set dummy xgettext; ac_word=$2
8061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8062 echo "configure:8063: checking for $ac_word" >&5
8063 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8064   echo $ac_n "(cached) $ac_c" 1>&6
8065 else
8066   case "$XGETTEXT" in
8067   /*)
8068   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8069   ;;
8070   *)
8071   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8072   for ac_dir in $PATH; do
8073     test -z "$ac_dir" && ac_dir=.
8074     if test -f $ac_dir/$ac_word; then
8075       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8076         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8077         break
8078       fi
8079     fi
8080   done
8081   IFS="$ac_save_ifs"
8082   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8083   ;;
8084 esac
8085 fi
8086 XGETTEXT="$ac_cv_path_XGETTEXT"
8087 if test -n "$XGETTEXT"; then
8088   echo "$ac_t""$XGETTEXT" 1>&6
8089 else
8090   echo "$ac_t""no" 1>&6
8091 fi
8092
8093                  USE_INCLUDED_LIBINTL=yes
8094                  CATOBJEXT=.cat
8095                  INSTOBJEXT=.cat
8096                  DATADIRNAME=lib
8097                  INTLDEPS='$(top_builddir)/intl/libintl.a'
8098                  INTLLIBS=$INTLDEPS
8099                  LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8100                  nls_cv_header_intl=intl/libintl.h
8101                  nls_cv_header_libgt=intl/libgettext.h
8102                fi
8103 else
8104   echo "$ac_t""no" 1>&6
8105 fi
8106
8107           fi
8108         fi
8109
8110         if test "$CATOBJEXT" = "NONE"; then
8111                           nls_cv_use_gnu_gettext=yes
8112         fi
8113       fi
8114
8115       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8116                 INTLOBJS="\$(GETTOBJS)"
8117         # Extract the first word of "msgfmt", so it can be a program name with args.
8118 set dummy msgfmt; ac_word=$2
8119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8120 echo "configure:8121: checking for $ac_word" >&5
8121 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8122   echo $ac_n "(cached) $ac_c" 1>&6
8123 else
8124   case "$MSGFMT" in
8125   /*)
8126   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8127   ;;
8128   *)
8129   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8130   for ac_dir in $PATH; do
8131     test -z "$ac_dir" && ac_dir=.
8132     if test -f $ac_dir/$ac_word; then
8133       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8134         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8135         break
8136       fi
8137     fi
8138   done
8139   IFS="$ac_save_ifs"
8140   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8141   ;;
8142 esac
8143 fi
8144 MSGFMT="$ac_cv_path_MSGFMT"
8145 if test -n "$MSGFMT"; then
8146   echo "$ac_t""$MSGFMT" 1>&6
8147 else
8148   echo "$ac_t""no" 1>&6
8149 fi
8150
8151         # Extract the first word of "gmsgfmt", so it can be a program name with args.
8152 set dummy gmsgfmt; ac_word=$2
8153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8154 echo "configure:8155: checking for $ac_word" >&5
8155 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8156   echo $ac_n "(cached) $ac_c" 1>&6
8157 else
8158   case "$GMSGFMT" in
8159   /*)
8160   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8161   ;;
8162   ?:/*)                  
8163   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8164   ;;
8165   *)
8166   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8167   ac_dummy="$PATH"
8168   for ac_dir in $ac_dummy; do 
8169     test -z "$ac_dir" && ac_dir=.
8170     if test -f $ac_dir/$ac_word; then
8171       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8172       break
8173     fi
8174   done
8175   IFS="$ac_save_ifs"
8176   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8177   ;;
8178 esac
8179 fi
8180 GMSGFMT="$ac_cv_path_GMSGFMT"
8181 if test -n "$GMSGFMT"; then
8182   echo "$ac_t""$GMSGFMT" 1>&6
8183 else
8184   echo "$ac_t""no" 1>&6
8185 fi
8186
8187         # Extract the first word of "xgettext", so it can be a program name with args.
8188 set dummy xgettext; ac_word=$2
8189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8190 echo "configure:8191: checking for $ac_word" >&5
8191 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8192   echo $ac_n "(cached) $ac_c" 1>&6
8193 else
8194   case "$XGETTEXT" in
8195   /*)
8196   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8197   ;;
8198   *)
8199   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8200   for ac_dir in $PATH; do
8201     test -z "$ac_dir" && ac_dir=.
8202     if test -f $ac_dir/$ac_word; then
8203       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8204         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8205         break
8206       fi
8207     fi
8208   done
8209   IFS="$ac_save_ifs"
8210   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8211   ;;
8212 esac
8213 fi
8214 XGETTEXT="$ac_cv_path_XGETTEXT"
8215 if test -n "$XGETTEXT"; then
8216   echo "$ac_t""$XGETTEXT" 1>&6
8217 else
8218   echo "$ac_t""no" 1>&6
8219 fi
8220
8221         
8222         USE_INCLUDED_LIBINTL=yes
8223         CATOBJEXT=.gmo
8224         INSTOBJEXT=.mo
8225         DATADIRNAME=share
8226         INTLDEPS='$(top_builddir)/intl/libintl.a'
8227         INTLLIBS=$INTLDEPS
8228         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8229         nls_cv_header_intl=intl/libintl.h
8230         nls_cv_header_libgt=intl/libgettext.h
8231       fi
8232
8233             if test "$XGETTEXT" != ":"; then
8234                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8235           : ;
8236         else
8237           echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8238           XGETTEXT=":"
8239         fi
8240       fi
8241
8242       # We need to process the po/ directory.
8243       POSUB=po
8244     else
8245       DATADIRNAME=share
8246       nls_cv_header_intl=intl/libintl.h
8247       nls_cv_header_libgt=intl/libgettext.h
8248     fi
8249     
8250     
8251
8252
8253     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8254     # because some of the sources are only built for this goal.
8255     if test "$PACKAGE" = gettext; then
8256       USE_NLS=yes
8257       USE_INCLUDED_LIBINTL=yes
8258     fi
8259
8260                 for lang in $ALL_LINGUAS; do
8261       GMOFILES="$GMOFILES $lang.gmo"
8262       POFILES="$POFILES $lang.po"
8263     done
8264
8265         
8266     
8267     
8268     
8269     
8270     
8271     
8272     
8273     
8274     
8275     
8276   
8277
8278    if test "x$CATOBJEXT" != "x"; then
8279      if test "x$ALL_LINGUAS" = "x"; then
8280        LINGUAS=
8281      else
8282        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8283 echo "configure:8284: checking for catalogs to be installed" >&5
8284        NEW_LINGUAS=
8285        for lang in ${LINGUAS=$ALL_LINGUAS}; do
8286          case "$ALL_LINGUAS" in
8287           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8288          esac
8289        done
8290        LINGUAS=$NEW_LINGUAS
8291        echo "$ac_t""$LINGUAS" 1>&6
8292      fi
8293
8294           if test -n "$LINGUAS"; then
8295        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8296      fi
8297    fi
8298
8299             if test $ac_cv_header_locale_h = yes; then
8300      INCLUDE_LOCALE_H="#include <locale.h>"
8301    else
8302      INCLUDE_LOCALE_H="\
8303 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
8304    fi
8305    
8306
8307             test -d intl || mkdir intl
8308    if test "$CATOBJEXT" = ".cat"; then
8309      ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8310 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8311 echo "configure:8312: checking for linux/version.h" >&5
8312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8313   echo $ac_n "(cached) $ac_c" 1>&6
8314 else
8315   cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8318 #include <linux/version.h>
8319 EOF
8320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8321 { (eval echo configure:8322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8323 if test -z "$ac_err"; then
8324   rm -rf conftest*
8325   eval "ac_cv_header_$ac_safe=yes"
8326 else
8327   echo "$ac_err" >&5
8328   echo "configure: failed program was:" >&5
8329   cat conftest.$ac_ext >&5
8330   rm -rf conftest*
8331   eval "ac_cv_header_$ac_safe=no"
8332 fi
8333 rm -f conftest*
8334 fi
8335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8336   echo "$ac_t""yes" 1>&6
8337   msgformat=linux
8338 else
8339   echo "$ac_t""no" 1>&6
8340 msgformat=xopen
8341 fi
8342
8343
8344                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8345    fi
8346       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8347      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8348
8349             if test "$PACKAGE" = "gettext"; then
8350      GT_NO="#NO#"
8351      GT_YES=
8352    else
8353      GT_NO=
8354      GT_YES="#YES#"
8355    fi
8356    
8357    
8358
8359             MKINSTALLDIRS=
8360    if test -n "$ac_aux_dir"; then
8361      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8362    fi
8363    if test -z "$MKINSTALLDIRS"; then
8364      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8365    fi
8366    
8367
8368       l=
8369    
8370
8371          test -d po || mkdir po
8372    if test "x$srcdir" != "x."; then
8373      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8374        posrcprefix="$srcdir/"
8375      else
8376        posrcprefix="../$srcdir/"
8377      fi
8378    else
8379      posrcprefix="../"
8380    fi
8381    rm -f po/POTFILES
8382    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8383         < $srcdir/po/POTFILES.in > po/POTFILES
8384   
8385 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8386
8387 # Windows32 Registry support for specifying GCC installation paths.
8388 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8389 if test "${enable_win32_registry+set}" = set; then
8390   enableval="$enable_win32_registry"
8391   :
8392 fi
8393
8394
8395 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8396 echo "configure:8397: checking whether windows registry support is requested" >&5
8397 if test x$enable_win32_registry != xno; then
8398   cat >> confdefs.h <<\EOF
8399 #define ENABLE_WIN32_REGISTRY 1
8400 EOF
8401
8402   echo "$ac_t""yes" 1>&6
8403 else
8404   echo "$ac_t""no" 1>&6
8405 fi
8406
8407 # Check if user specified a different registry key.
8408 case x${enable_win32_registry} in
8409 x | xyes)
8410   # default.
8411   gcc_cv_win32_registry_key="$VERSION"
8412   ;;
8413 xno)
8414   # no registry lookup.
8415   gcc_cv_win32_registry_key=''
8416   ;;
8417 *)
8418   # user-specified key.
8419   gcc_cv_win32_registry_key="$enable_win32_registry"
8420   ;;
8421 esac
8422
8423 if test x$enable_win32_registry != xno; then
8424   echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8425 echo "configure:8426: checking registry key on windows hosts" >&5
8426   cat >> confdefs.h <<EOF
8427 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8428 EOF
8429
8430   echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8431 fi
8432
8433 # Get an absolute path to the GCC top-level source directory
8434 holddir=`pwd`
8435 cd $srcdir
8436 topdir=`pwd`
8437 cd $holddir
8438
8439 # Conditionalize the makefile for this host machine.
8440 # Make-host contains the concatenation of all host makefile fragments
8441 # [there can be more than one].  This file is built by configure.frag.
8442 host_overrides=Make-host
8443 dep_host_xmake_file=
8444 for f in .. ${host_xmake_file}
8445 do
8446         if test -f ${srcdir}/config/$f
8447         then
8448                 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8449         fi
8450 done
8451
8452 # Conditionalize the makefile for this target machine.
8453 # Make-target contains the concatenation of all host makefile fragments
8454 # [there can be more than one].  This file is built by configure.frag.
8455 target_overrides=Make-target
8456 dep_tmake_file=
8457 for f in .. ${tmake_file}
8458 do
8459         if test -f ${srcdir}/config/$f
8460         then
8461                 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8462         fi
8463 done
8464
8465 # If the host doesn't support symlinks, modify CC in
8466 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8467 # Otherwise, we can use "CC=$(CC)".
8468 rm -f symtest.tem
8469 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8470 then
8471         cc_set_by_configure="\$(CC)"
8472         quoted_cc_set_by_configure="\$(CC)"
8473         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8474 else
8475         rm -f symtest.tem
8476         if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8477         then
8478                 symbolic_link="cp -p"
8479         else
8480                 symbolic_link="cp"
8481         fi
8482         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8483         quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8484         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8485 fi
8486 rm -f symtest.tem
8487
8488 out_object_file=`basename $out_file .c`.o
8489
8490 tm_file_list=
8491 for f in $tm_file; do
8492   case $f in
8493     gansidecl.h )
8494        tm_file_list="${tm_file_list} $f" ;;
8495     *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8496   esac
8497 done
8498
8499 host_xm_file_list=
8500 for f in $host_xm_file; do
8501   case $f in
8502     auto-host.h | gansidecl.h | hwint.h )
8503        host_xm_file_list="${host_xm_file_list} $f" ;;
8504     *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8505   esac
8506 done
8507
8508 build_xm_file_list=
8509 for f in $build_xm_file; do
8510   case $f in
8511     auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8512        build_xm_file_list="${build_xm_file_list} $f" ;;
8513     *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8514   esac
8515 done
8516
8517 # Define macro CROSS_COMPILE in compilation
8518 # if this is a cross-compiler.
8519 # Also use all.cross instead of all.internal
8520 # and add cross-make to Makefile.
8521 cross_overrides="/dev/null"
8522 if test x$host != x$target
8523 then
8524         cross_defines="CROSS=-DCROSS_COMPILE"
8525         cross_overrides="${topdir}/cross-make"
8526 fi
8527
8528 # When building gcc with a cross-compiler, we need to fix a few things.
8529 # This must come after cross-make as we want all.build to override
8530 # all.cross.
8531 build_overrides="/dev/null"
8532 if test x$build != x$host
8533 then
8534         build_overrides="${topdir}/build-make"
8535 fi
8536
8537 # Expand extra_headers to include complete path.
8538 # This substitutes for lots of t-* files.
8539 extra_headers_list=
8540 if test "x$extra_headers" = x
8541 then true
8542 else
8543         # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8544         for file in $extra_headers;
8545         do
8546                 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8547         done
8548 fi
8549
8550 if test x$use_collect2 = xno; then
8551         use_collect2=
8552 fi
8553
8554 # Add a definition of USE_COLLECT2 if system wants one.
8555 # Also tell toplev.c what to do.
8556 # This substitutes for lots of t-* files.
8557 if test x$use_collect2 = x
8558 then
8559         will_use_collect2=
8560         maybe_use_collect2=
8561 else
8562         will_use_collect2="collect2"
8563         maybe_use_collect2="-DUSE_COLLECT2"
8564 fi
8565
8566 # NEED TO CONVERT
8567 # Set MD_DEPS if the real md file is in md.pre-cpp.
8568 # Set MD_CPP to the cpp to pass the md file through.  Md files use ';'
8569 # for line oriented comments, so we must always use a GNU cpp.  If
8570 # building gcc with a cross compiler, use the cross compiler just
8571 # built.  Otherwise, we can use the cpp just built.
8572 md_file_sub=
8573 if test "x$md_cppflags" = x
8574 then
8575         md_file_sub=$srcdir/config/$md_file
8576 else
8577         md_file=md
8578 fi
8579
8580 # If we have gas in the build tree, make a link to it.
8581 if test -f ../gas/Makefile; then
8582         rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8583 fi
8584
8585 # If we have nm in the build tree, make a link to it.
8586 if test -f ../binutils/Makefile; then
8587         rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8588 fi
8589
8590 # If we have ld in the build tree, make a link to it.
8591 if test -f ../ld/Makefile; then
8592 #       if test x$use_collect2 = x; then
8593 #               rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8594 #       else
8595                 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8596 #       fi
8597 fi
8598
8599 # Figure out what assembler alignment features are present.
8600 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8601 echo "configure:8602: checking assembler alignment features" >&5
8602 gcc_cv_as=
8603 gcc_cv_as_alignment_features=
8604 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8605 if test -x "$DEFAULT_ASSEMBLER"; then
8606         gcc_cv_as="$DEFAULT_ASSEMBLER"
8607 elif test -x "$AS"; then
8608         gcc_cv_as="$AS"
8609 elif test -x as$host_exeext; then
8610         # Build using assembler in the current directory.
8611         gcc_cv_as=./as$host_exeext
8612 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8613         # Single tree build which includes gas.
8614         for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8615         do
8616                 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8617                 if test x$gcc_cv_gas_version != x; then
8618                         break
8619                 fi
8620         done
8621         gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8622         gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8623         if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8624                 # Gas version 2.6 and later support for .balign and .p2align.
8625                 # bytes to skip when using .p2align.
8626                 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
8627                         gcc_cv_as_alignment_features=".balign and .p2align"
8628                         cat >> confdefs.h <<\EOF
8629 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8630 EOF
8631
8632                 fi
8633                 # Gas version 2.8 and later support specifying the maximum
8634                 # bytes to skip when using .p2align.
8635                 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
8636                         gcc_cv_as_alignment_features=".p2align including maximum skip"
8637                         cat >> confdefs.h <<\EOF
8638 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8639 EOF
8640
8641                 fi
8642         fi
8643 elif test x$host = x$target; then
8644         # Native build.
8645         # Search the same directories that the installed compiler will
8646         # search.  Else we may find the wrong assembler and lose.  If we
8647         # do not find a suitable assembler binary, then try the user's
8648         # path.
8649         #
8650         # Also note we have to check MD_EXEC_PREFIX before checking the
8651         # user's path.  Unfortunately, there is no good way to get at the
8652         # value of MD_EXEC_PREFIX here.  So we do a brute force search
8653         # through all the known MD_EXEC_PREFIX values.  Ugh.  This needs
8654         # to be fixed as part of the make/configure rewrite too.
8655
8656         if test "x$exec_prefix" = xNONE; then
8657                 if test "x$prefix" = xNONE; then
8658                         test_prefix=/usr/local
8659                 else
8660                         test_prefix=$prefix
8661                 fi
8662         else
8663                 test_prefix=$exec_prefix
8664         fi
8665
8666         # If the loop below does not find an assembler, then use whatever
8667         # one we can find in the users's path.
8668         # user's path.
8669         as=as$host_exeext
8670
8671         test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8672                    $test_prefix/lib/gcc-lib/$target \
8673                    /usr/lib/gcc/$target/$gcc_version \
8674                    /usr/lib/gcc/$target \
8675                    $test_prefix/$target/bin/$target/$gcc_version \
8676                    $test_prefix/$target/bin \
8677                    /usr/libexec \
8678                    /usr/ccs/gcc \
8679                    /usr/ccs/bin \
8680                    /udk/usr/ccs/bin \
8681                    /bsd43/usr/lib/cmplrs/cc \
8682                    /usr/cross64/usr/bin \
8683                    /usr/lib/cmplrs/cc \
8684                    /sysv/usr/lib/cmplrs/cc \
8685                    /svr4/usr/lib/cmplrs/cc \
8686                    /usr/bin"
8687
8688         for dir in $test_dirs; do
8689                 if test -f $dir/as$host_exeext; then
8690                         gcc_cv_as=$dir/as$host_exeext
8691                         break;
8692                 fi
8693         done
8694 fi
8695 if test x$gcc_cv_as != x; then
8696         # Check if we have .balign and .p2align
8697         echo ".balign  4" > conftest.s
8698         echo ".p2align  2" >> conftest.s
8699         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8700                 gcc_cv_as_alignment_features=".balign and .p2align"
8701                 cat >> confdefs.h <<\EOF
8702 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8703 EOF
8704
8705         fi
8706         rm -f conftest.s conftest.o
8707         # Check if specifying the maximum bytes to skip when
8708         # using .p2align is supported.
8709         echo ".p2align 4,,7" > conftest.s
8710         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8711                 gcc_cv_as_alignment_features=".p2align including maximum skip"
8712                 cat >> confdefs.h <<\EOF
8713 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8714 EOF
8715
8716         fi
8717         rm -f conftest.s conftest.o
8718 fi
8719 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8720
8721 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8722 echo "configure:8723: checking assembler subsection support" >&5
8723 gcc_cv_as_subsections=
8724 if test x$gcc_cv_as != x; then
8725         # Check if we have .subsection
8726         echo ".subsection 1" > conftest.s
8727         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8728                 gcc_cv_as_subsections=".subsection"
8729                 if test -x nm$host_exeext; then
8730                         gcc_cv_nm=./nm$host_exeext
8731                 elif test x$host = x$target; then
8732                         # Native build.
8733                         gcc_cv_nm=nm$host_exeext
8734                 fi
8735                 if test x$gcc_cv_nm != x; then
8736                         cat > conftest.s <<EOF
8737 conftest_label1: .word 0
8738 .subsection -1
8739 conftest_label2: .word 0
8740 .previous
8741 EOF
8742                         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8743                                 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8744                                 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8745                                 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8746                                         :
8747                                 else
8748                                         gcc_cv_as_subsections="working .subsection -1"
8749                                         cat >> confdefs.h <<\EOF
8750 #define HAVE_GAS_SUBSECTION_ORDERING 1
8751 EOF
8752
8753                                 fi
8754                         fi
8755                 fi
8756         fi
8757         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8758 fi
8759 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8760
8761 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8762 echo "configure:8763: checking assembler weak support" >&5
8763 gcc_cv_as_weak=
8764 if test x$gcc_cv_as != x; then
8765         # Check if we have .weak
8766         echo "  .weak foobar" > conftest.s
8767         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8768                 cat >> confdefs.h <<\EOF
8769 #define HAVE_GAS_WEAK 1
8770 EOF
8771
8772                 gcc_cv_as_weak="yes"
8773         fi
8774         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8775 fi
8776 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8777
8778 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8779 echo "configure:8780: checking assembler hidden support" >&5
8780 gcc_cv_as_hidden=
8781 if test x$gcc_cv_as != x; then
8782         # Check if we have .hidden
8783         echo "  .hidden foobar" > conftest.s
8784         echo "foobar:" >> conftest.s
8785         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8786                 cat >> confdefs.h <<\EOF
8787 #define HAVE_GAS_HIDDEN 1
8788 EOF
8789
8790                 gcc_cv_as_hidden="yes"
8791         fi
8792         rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8793 fi
8794 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8795
8796 case "$target" in 
8797   sparc*-*-*)
8798     echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8799 echo "configure:8800: checking assembler .register pseudo-op support" >&5
8800 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8801   echo $ac_n "(cached) $ac_c" 1>&6
8802 else
8803   
8804         gcc_cv_as_register_pseudo_op=unknown
8805         if test x$gcc_cv_as != x; then
8806             # Check if we have .register
8807             echo ".register %g2, #scratch" > conftest.s
8808             if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8809                 gcc_cv_as_register_pseudo_op=yes
8810             else
8811                 gcc_cv_as_register_pseudo_op=no
8812             fi
8813             rm -f conftest.s conftest.o
8814         fi
8815     
8816 fi
8817
8818 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8819     if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8820         cat >> confdefs.h <<\EOF
8821 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8822 EOF
8823
8824     fi
8825
8826     case "$tm_file" in
8827     *64*)
8828         echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8829 echo "configure:8830: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8830 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8831   echo $ac_n "(cached) $ac_c" 1>&6
8832 else
8833   
8834                 if test -n "$gcc_cv_as"; then
8835                     echo ".xword foo" > conftest.s
8836                     gcc_cv_as_flags64=no
8837                     for flag in "-xarch=v9" "-64 -Av9"; do
8838                         if $gcc_cv_as $flag -o conftest.o conftest.s \
8839                             > /dev/null 2>&1; then
8840                             gcc_cv_as_flags64=$flag
8841                             break
8842                         fi
8843                     done
8844                     rm -f conftest.s conftest.o
8845                 else
8846                     if test "$gas" = yes; then
8847                         gcc_cv_as_flags64="-64 -Av9"
8848                     else
8849                         gcc_cv_as_flags64="-xarch=v9"
8850                     fi
8851                 fi
8852         
8853 fi
8854
8855 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8856         if test "x$gcc_cv_as_flags64" = xno; then
8857
8858             tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8859             dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8860
8861         else
8862             cat >> confdefs.h <<EOF
8863 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8864 EOF
8865
8866         fi
8867         ;;
8868     *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
8869         ;;
8870     esac
8871
8872     if test "x$gcc_cv_as_flags64" != xno; then
8873         echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8874 echo "configure:8875: checking for assembler offsetable %lo() support" >&5
8875 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8876   echo $ac_n "(cached) $ac_c" 1>&6
8877 else
8878   
8879             gcc_cv_as_offsetable_lo10=unknown
8880             if test "x$gcc_cv_as" != x; then
8881                 # Check if assembler has offsetable %lo()
8882                 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8883                 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8884                 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8885                         > /dev/null 2>&1 &&
8886                    $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8887                         > /dev/null 2>&1; then
8888                     if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8889                         gcc_cv_as_offsetable_lo10=no
8890                     else
8891                         gcc_cv_as_offsetable_lo10=yes
8892                     fi
8893                 else
8894                     gcc_cv_as_offsetable_lo10=no
8895                 fi
8896                 rm -f conftest.s conftest.o conftest1.s conftest1.o
8897             fi
8898         
8899 fi
8900
8901 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8902         if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
8903             cat >> confdefs.h <<\EOF
8904 #define HAVE_AS_OFFSETABLE_LO10 1
8905 EOF
8906
8907         fi
8908     fi
8909     ;;
8910
8911   i[34567]86-*-*)
8912     echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8913 echo "configure:8914: checking assembler instructions" >&5
8914     gcc_cv_as_instructions=
8915     if test x$gcc_cv_as != x; then
8916         set "filds fists" "filds mem; fists mem"
8917         while test $# -gt 0
8918         do
8919                 echo "$2" > conftest.s
8920                 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8921                         gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8922                         cat >> confdefs.h <<EOF
8923 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8924 EOF
8925
8926                 fi
8927                 shift 2
8928         done
8929         rm -f conftest.s conftest.o
8930     fi
8931     echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8932     ;;
8933 esac
8934
8935 # Figure out what language subdirectories are present.
8936 # Look if the user specified --enable-languages="..."; if not, use
8937 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8938 # go away some day.
8939 if test x"${enable_languages+set}" != xset; then
8940         if test x"${LANGUAGES+set}" = xset; then
8941                 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8942         else
8943                 enable_languages=all
8944         fi
8945 fi
8946 subdirs=
8947 for lang in ${srcdir}/*/config-lang.in ..
8948 do
8949         case $lang in
8950         ..) ;;
8951         # The odd quoting in the next line works around
8952         # an apparent bug in bash 1.12 on linux.
8953         ${srcdir}/[*]/config-lang.in) ;;
8954         *)
8955           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
8956           if test "x$lang_alias" = x
8957           then
8958                 echo "$lang doesn't set \$language." 1>&2
8959                 exit 1
8960           fi
8961           if test x"${enable_languages}" = xall; then
8962                 add_this_lang=yes
8963           else
8964                 case "${enable_languages}" in
8965                     ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8966                         add_this_lang=yes
8967                         ;;
8968                     * )
8969                         add_this_lang=no
8970                         ;;
8971                 esac
8972           fi
8973           if test x"${add_this_lang}" = xyes; then
8974                 case $lang in
8975                     ${srcdir}/ada/config-lang.in)
8976                         if test x$gnat = xyes ; then
8977                                 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8978                         fi
8979                         ;;
8980                     *)
8981                         subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8982                         ;;
8983                 esac
8984           fi
8985           ;;
8986         esac
8987 done
8988
8989 # Make gthr-default.h if we have a thread file.
8990 gthread_flags=
8991 if test $thread_file != single; then
8992     rm -f gthr-default.h
8993     echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8994     gthread_flags=-DHAVE_GTHR_DEFAULT
8995 fi
8996
8997
8998 # Find out what GC implementation we want, or may, use.
8999 # Check whether --with-gc or --without-gc was given.
9000 if test "${with_gc+set}" = set; then
9001   withval="$with_gc"
9002   case "$withval" in
9003   simple | page)
9004     GGC=ggc-$withval
9005     ;;
9006   *)
9007     { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9008     ;;
9009 esac
9010 else
9011   if test $ac_cv_func_mmap_anywhere = yes \
9012     || test $ac_cv_func_valloc = yes; then
9013   GGC=ggc-page
9014 else
9015   GGC=ggc-simple
9016 fi
9017 fi
9018
9019
9020 echo "Using $GGC for garbage collection."
9021
9022 # Build a new-abi (c++) system
9023 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9024 if test "${enable_new_gxx_abi+set}" = set; then
9025   enableval="$enable_new_gxx_abi"
9026   cat >> confdefs.h <<\EOF
9027 #define ENABLE_NEW_GXX_ABI 1
9028 EOF
9029
9030 GXX_ABI_FLAG='-fnew-abi'
9031 echo "Building a new-abi g++ compiler."
9032
9033 fi
9034
9035
9036
9037 # Build a new-libstdc++ system (ie libstdc++-v3)
9038 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9039 echo "configure:9040: checking for libstdc++ to install" >&5
9040 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9041 if test "${enable_libstdcxx_v3+set}" = set; then
9042   enableval="$enable_libstdcxx_v3"
9043   enable_libstdcxx_v3=yes
9044 else
9045   enable_libstdcxx_v3=no
9046 fi
9047
9048
9049 if test x$enable_libstdcxx_v3 = xyes; then
9050   echo "$ac_t""v3" 1>&6
9051   ac_esn=1
9052 else
9053   echo "$ac_t""v2" 1>&6
9054   ac_esn=0
9055 fi
9056 cat >> confdefs.h <<EOF
9057 #define ENABLE_STD_NAMESPACE $ac_esn
9058 EOF
9059
9060
9061 # Make empty files to contain the specs and options for each language.
9062 # Then add #include lines to for a compiler that has specs and/or options.
9063
9064 lang_specs_files=
9065 lang_options_files=
9066 lang_tree_files=
9067 rm -f specs.h options.h gencheck.h
9068 touch specs.h options.h gencheck.h
9069 for subdir in . $subdirs
9070 do
9071         if test -f $srcdir/$subdir/lang-specs.h; then
9072                 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9073                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9074         fi
9075         if test -f $srcdir/$subdir/lang-options.h; then
9076                 echo "#include \"$subdir/lang-options.h\"" >>options.h
9077                 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
9078         fi
9079         if test -f $srcdir/$subdir/$subdir-tree.def; then
9080                 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9081                 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9082         fi
9083 done
9084
9085 # These (without "all_") are set in each config-lang.in.
9086 # `language' must be a single word so is spelled singularly.
9087 all_languages=
9088 all_boot_languages=
9089 all_compilers=
9090 all_stagestuff=
9091 all_diff_excludes=
9092 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9093 # List of language makefile fragments.
9094 all_lang_makefiles=
9095 all_headers=
9096 all_lib2funcs=
9097
9098 # Add the language fragments.
9099 # Languages are added via two mechanisms.  Some information must be
9100 # recorded in makefile variables, these are defined in config-lang.in.
9101 # We accumulate them and plug them into the main Makefile.
9102 # The other mechanism is a set of hooks for each of the main targets
9103 # like `clean', `install', etc.
9104
9105 language_fragments="Make-lang"
9106 language_hooks="Make-hooks"
9107 oldstyle_subdirs=
9108
9109 for s in .. $subdirs
9110 do
9111         if test $s != ".."
9112         then
9113                 language=
9114                 boot_language=
9115                 compilers=
9116                 stagestuff=
9117                 diff_excludes=
9118                 headers=
9119                 outputs=
9120                 lib2funcs=
9121                 . ${srcdir}/$s/config-lang.in
9122                 if test "x$language" = x
9123                 then
9124                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9125                         exit 1
9126                 fi
9127                 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9128                 all_languages="$all_languages $language"
9129                 if test "x$boot_language" = xyes
9130                 then
9131                         all_boot_languages="$all_boot_languages $language"
9132                 fi
9133                 all_compilers="$all_compilers $compilers"
9134                 all_stagestuff="$all_stagestuff $stagestuff"
9135                 all_diff_excludes="$all_diff_excludes $diff_excludes"
9136                 all_headers="$all_headers $headers"
9137                 all_outputs="$all_outputs $outputs"
9138                 if test x$outputs = x
9139                 then
9140                         oldstyle_subdirs="$oldstyle_subdirs $s"
9141                 fi
9142                 all_lib2funcs="$all_lib2funcs $lib2funcs"
9143         fi
9144 done
9145
9146 # Since we can't use `::' targets, we link each language in
9147 # with a set of hooks, reached indirectly via lang.${target}.
9148
9149 rm -f Make-hooks
9150 touch Make-hooks
9151 target_list="all.build all.cross start.encap rest.encap \
9152         info dvi \
9153         install-normal install-common install-info install-man \
9154         uninstall distdir \
9155         mostlyclean clean distclean extraclean maintainer-clean \
9156         stage1 stage2 stage3 stage4"
9157 for t in $target_list
9158 do
9159         x=
9160         for lang in .. $all_languages
9161         do
9162                 if test $lang != ".."; then
9163                         x="$x $lang.$t"
9164                 fi
9165         done
9166         echo "lang.$t: $x" >> Make-hooks
9167 done
9168
9169 # If we're not building in srcdir, create .gdbinit.
9170
9171 if test ! -f Makefile.in; then
9172         echo "dir ." > .gdbinit
9173         echo "dir ${srcdir}" >> .gdbinit
9174         if test x$gdb_needs_out_file_path = xyes
9175         then
9176                 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9177         fi
9178         if test "x$subdirs" != x; then
9179                 for s in $subdirs
9180                 do
9181                         echo "dir ${srcdir}/$s" >> .gdbinit
9182                 done
9183         fi
9184         echo "source ${srcdir}/.gdbinit" >> .gdbinit
9185 fi
9186
9187 # Define variables host_canonical and build_canonical
9188 # because some Cygnus local changes in the Makefile depend on them.
9189 build_canonical=${build}
9190 host_canonical=${host}
9191 target_subdir=
9192 if test "${host}" != "${target}" ; then
9193     target_subdir=${target}/
9194 fi
9195
9196
9197
9198         
9199 # If this is using newlib, then define inhibit_libc in
9200 # LIBGCC2_CFLAGS.  This will cause __eprintf to be left out of
9201 # libgcc.a, but that's OK because newib should have its own version of
9202 # assert.h.
9203 inhibit_libc=
9204 if test x$with_newlib = xyes; then
9205         inhibit_libc=-Dinhibit_libc
9206 fi
9207
9208
9209 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9210 # absolute path for gcc_tooldir based on inserting the number of up-directory
9211 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9212 # $(libsubdir)/@(unlibsubdir) based path.
9213 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9214 # make and thus we'd get different behavior depending on where we built the
9215 # sources.
9216 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9217     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9218 else
9219 # An explanation of the sed strings:
9220 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
9221 #  -e 's|/$||'            match a trailing forward slash and eliminates it
9222 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
9223 #  -e 's|/[^/]*|../|g'    replaces each occurance of /<directory> with ../
9224 #
9225 # (*) Note this pattern overwrites the first character of the string
9226 # with a forward slash if one is not already present.  This is not a
9227 # problem because the exact names of the sub-directories concerned is
9228 # unimportant, just the number of them matters.
9229 #
9230 # The practical upshot of these patterns is like this:
9231 #
9232 #  prefix     exec_prefix        result
9233 #  ------     -----------        ------
9234 #   /foo        /foo/bar          ../
9235 #   /foo/       /foo/bar          ../
9236 #   /foo        /foo/bar/         ../
9237 #   /foo/       /foo/bar/         ../
9238 #   /foo        /foo/bar/ugg      ../../
9239 #
9240     dollar='$$'
9241     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9242 fi
9243
9244
9245
9246 # Nothing to do for FLOAT_H, float_format already handled.
9247 objdir=`pwd`
9248
9249
9250 # Process the language and host/target makefile fragments.
9251 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9252
9253 # Substitute configuration variables
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 # Echo that links are built
9313 if test x$host = x$target
9314 then
9315         str1="native "
9316 else
9317         str1="cross-"
9318         str2=" from $host"
9319 fi
9320
9321 if test x$host != x$build
9322 then
9323         str3=" on a $build system"
9324 fi
9325
9326 if test "x$str2" != x || test "x$str3" != x
9327 then
9328         str4=
9329 fi
9330
9331 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9332
9333 if test "x$str2" != x || test "x$str3" != x
9334 then
9335         echo " ${str2}${str3}." 1>&2
9336 fi
9337
9338 # Truncate the target if necessary
9339 if test x$host_truncate_target != x; then
9340         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9341 fi
9342
9343 # Configure the subdirectories
9344 # AC_CONFIG_SUBDIRS($subdirs)
9345
9346 # Create the Makefile
9347 # and configure language subdirectories
9348 trap '' 1 2 15
9349 cat > confcache <<\EOF
9350 # This file is a shell script that caches the results of configure
9351 # tests run on this system so they can be shared between configure
9352 # scripts and configure runs.  It is not useful on other systems.
9353 # If it contains results you don't want to keep, you may remove or edit it.
9354 #
9355 # By default, configure uses ./config.cache as the cache file,
9356 # creating it if it does not exist already.  You can give configure
9357 # the --cache-file=FILE option to use a different cache file; that is
9358 # what configure does when it calls configure scripts in
9359 # subdirectories, so they share the cache.
9360 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9361 # config.status only pays attention to the cache file if you give it the
9362 # --recheck option to rerun configure.
9363 #
9364 EOF
9365 # The following way of writing the cache mishandles newlines in values,
9366 # but we know of no workaround that is simple, portable, and efficient.
9367 # So, don't put newlines in cache variables' values.
9368 # Ultrix sh set writes to stderr and can't be redirected directly,
9369 # and sets the high bit in the cache file unless we assign to the vars.
9370 (set) 2>&1 |
9371   case `(ac_space=' '; set | grep ac_space) 2>&1` in
9372   *ac_space=\ *)
9373     # `set' does not quote correctly, so add quotes (double-quote substitution
9374     # turns \\\\ into \\, and sed turns \\ into \).
9375     sed -n \
9376       -e "s/'/'\\\\''/g" \
9377       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9378     ;;
9379   *)
9380     # `set' quotes correctly as required by POSIX, so do not add quotes.
9381     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9382     ;;
9383   esac >> confcache
9384 if cmp -s $cache_file confcache; then
9385   :
9386 else
9387   if test -w $cache_file; then
9388     echo "updating cache $cache_file"
9389     cat confcache > $cache_file
9390   else
9391     echo "not updating unwritable cache $cache_file"
9392   fi
9393 fi
9394 rm -f confcache
9395
9396 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9397
9398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9399 # Let make expand exec_prefix.
9400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9401
9402 # Any assignment to VPATH causes Sun make to only execute
9403 # the first set of double-colon rules, so remove it if not needed.
9404 # If there is a colon in the path, we need to keep it.
9405 if test "x$srcdir" = x.; then
9406   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
9407 fi
9408
9409 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9410
9411 DEFS=-DHAVE_CONFIG_H
9412
9413 # Without the "./", some shells look in PATH for config.status.
9414 : ${CONFIG_STATUS=./config.status}
9415
9416 echo creating $CONFIG_STATUS
9417 rm -f $CONFIG_STATUS
9418 cat > $CONFIG_STATUS <<EOF
9419 #! /bin/sh
9420 # Generated automatically by configure.
9421 # Run this file to recreate the current configuration.
9422 # This directory was configured as follows,
9423 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9424 #
9425 # $0 $ac_configure_args
9426 #
9427 # Compiler output produced by configure, useful for debugging
9428 # configure, is in ./config.log if it exists.
9429
9430 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9431 for ac_option
9432 do
9433   case "\$ac_option" in
9434   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9435     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9436     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9437   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9438     echo "$CONFIG_STATUS generated by autoconf version 2.13"
9439     exit 0 ;;
9440   -help | --help | --hel | --he | --h)
9441     echo "\$ac_cs_usage"; exit 0 ;;
9442   *) echo "\$ac_cs_usage"; exit 1 ;;
9443   esac
9444 done
9445
9446 ac_given_srcdir=$srcdir
9447
9448 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9449 EOF
9450 cat >> $CONFIG_STATUS <<EOF
9451
9452 # Protect against being on the right side of a sed subst in config.status.
9453 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9454  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9455 $ac_vpsub
9456 $extrasub
9457 s%@SHELL@%$SHELL%g
9458 s%@CFLAGS@%$CFLAGS%g
9459 s%@CPPFLAGS@%$CPPFLAGS%g
9460 s%@CXXFLAGS@%$CXXFLAGS%g
9461 s%@FFLAGS@%$FFLAGS%g
9462 s%@DEFS@%$DEFS%g
9463 s%@LDFLAGS@%$LDFLAGS%g
9464 s%@LIBS@%$LIBS%g
9465 s%@exec_prefix@%$exec_prefix%g
9466 s%@prefix@%$prefix%g
9467 s%@program_transform_name@%$program_transform_name%g
9468 s%@bindir@%$bindir%g
9469 s%@sbindir@%$sbindir%g
9470 s%@libexecdir@%$libexecdir%g
9471 s%@datadir@%$datadir%g
9472 s%@sysconfdir@%$sysconfdir%g
9473 s%@sharedstatedir@%$sharedstatedir%g
9474 s%@localstatedir@%$localstatedir%g
9475 s%@libdir@%$libdir%g
9476 s%@includedir@%$includedir%g
9477 s%@oldincludedir@%$oldincludedir%g
9478 s%@infodir@%$infodir%g
9479 s%@mandir@%$mandir%g
9480 s%@host@%$host%g
9481 s%@host_alias@%$host_alias%g
9482 s%@host_cpu@%$host_cpu%g
9483 s%@host_vendor@%$host_vendor%g
9484 s%@host_os@%$host_os%g
9485 s%@target@%$target%g
9486 s%@target_alias@%$target_alias%g
9487 s%@target_cpu@%$target_cpu%g
9488 s%@target_vendor@%$target_vendor%g
9489 s%@target_os@%$target_os%g
9490 s%@build@%$build%g
9491 s%@build_alias@%$build_alias%g
9492 s%@build_cpu@%$build_cpu%g
9493 s%@build_vendor@%$build_vendor%g
9494 s%@build_os@%$build_os%g
9495 s%@CC@%$CC%g
9496 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9497 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9498 s%@SET_MAKE@%$SET_MAKE%g
9499 s%@AWK@%$AWK%g
9500 s%@LEX@%$LEX%g
9501 s%@LEXLIB@%$LEXLIB%g
9502 s%@LN@%$LN%g
9503 s%@LN_S@%$LN_S%g
9504 s%@RANLIB@%$RANLIB%g
9505 s%@YACC@%$YACC%g
9506 s%@INSTALL@%$INSTALL%g
9507 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9508 s%@INSTALL_DATA@%$INSTALL_DATA%g
9509 s%@CPP@%$CPP%g
9510 s%@gnat@%$gnat%g
9511 s%@MAKEINFO@%$MAKEINFO%g
9512 s%@BUILD_INFO@%$BUILD_INFO%g
9513 s%@INSTALL_INFO@%$INSTALL_INFO%g
9514 s%@vfprintf@%$vfprintf%g
9515 s%@doprint@%$doprint%g
9516 s%@manext@%$manext%g
9517 s%@objext@%$objext%g
9518 s%@PACKAGE@%$PACKAGE%g
9519 s%@VERSION@%$VERSION%g
9520 s%@ALLOCA@%$ALLOCA%g
9521 s%@USE_NLS@%$USE_NLS%g
9522 s%@MSGFMT@%$MSGFMT%g
9523 s%@GMSGFMT@%$GMSGFMT%g
9524 s%@XGETTEXT@%$XGETTEXT%g
9525 s%@GENCAT@%$GENCAT%g
9526 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9527 s%@CATALOGS@%$CATALOGS%g
9528 s%@CATOBJEXT@%$CATOBJEXT%g
9529 s%@DATADIRNAME@%$DATADIRNAME%g
9530 s%@GMOFILES@%$GMOFILES%g
9531 s%@INSTOBJEXT@%$INSTOBJEXT%g
9532 s%@INTLDEPS@%$INTLDEPS%g
9533 s%@INTLLIBS@%$INTLLIBS%g
9534 s%@INTLOBJS@%$INTLOBJS%g
9535 s%@POFILES@%$POFILES%g
9536 s%@POSUB@%$POSUB%g
9537 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9538 s%@GT_NO@%$GT_NO%g
9539 s%@GT_YES@%$GT_YES%g
9540 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9541 s%@l@%$l%g
9542 s%@gthread_flags@%$gthread_flags%g
9543 s%@GGC@%$GGC%g
9544 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9545 s%@build_canonical@%$build_canonical%g
9546 s%@host_canonical@%$host_canonical%g
9547 s%@target_subdir@%$target_subdir%g
9548 s%@inhibit_libc@%$inhibit_libc%g
9549 s%@gcc_tooldir@%$gcc_tooldir%g
9550 s%@dollar@%$dollar%g
9551 s%@objdir@%$objdir%g
9552 s%@subdirs@%$subdirs%g
9553 s%@all_boot_languages@%$all_boot_languages%g
9554 s%@all_compilers@%$all_compilers%g
9555 s%@all_diff_excludes@%$all_diff_excludes%g
9556 s%@all_headers@%$all_headers%g
9557 s%@all_lang_makefiles@%$all_lang_makefiles%g
9558 s%@all_languages@%$all_languages%g
9559 s%@all_lib2funcs@%$all_lib2funcs%g
9560 s%@all_stagestuff@%$all_stagestuff%g
9561 s%@build_exeext@%$build_exeext%g
9562 s%@build_install_headers_dir@%$build_install_headers_dir%g
9563 s%@build_xm_file_list@%$build_xm_file_list%g
9564 s%@cc_set_by_configure@%$cc_set_by_configure%g
9565 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9566 s%@cpp_install_dir@%$cpp_install_dir%g
9567 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9568 s%@dep_tmake_file@%$dep_tmake_file%g
9569 s%@extra_c_flags@%$extra_c_flags%g
9570 s%@extra_c_objs@%$extra_c_objs%g
9571 s%@extra_cpp_objs@%$extra_cpp_objs%g
9572 s%@extra_cxx_objs@%$extra_cxx_objs%g
9573 s%@extra_headers_list@%$extra_headers_list%g
9574 s%@extra_objs@%$extra_objs%g
9575 s%@extra_parts@%$extra_parts%g
9576 s%@extra_passes@%$extra_passes%g
9577 s%@extra_programs@%$extra_programs%g
9578 s%@float_h_file@%$float_h_file%g
9579 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9580 s%@gcc_version@%$gcc_version%g
9581 s%@gcc_version_trigger@%$gcc_version_trigger%g
9582 s%@host_exeext@%$host_exeext%g
9583 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9584 s%@host_xm_file_list@%$host_xm_file_list%g
9585 s%@install@%$install%g
9586 s%@lang_options_files@%$lang_options_files%g
9587 s%@lang_specs_files@%$lang_specs_files%g
9588 s%@lang_tree_files@%$lang_tree_files%g
9589 s%@local_prefix@%$local_prefix%g
9590 s%@maybe_use_collect2@%$maybe_use_collect2%g
9591 s%@md_file@%$md_file%g
9592 s%@objc_boehm_gc@%$objc_boehm_gc%g
9593 s%@out_file@%$out_file%g
9594 s%@out_object_file@%$out_object_file%g
9595 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9596 s%@symbolic_link@%$symbolic_link%g
9597 s%@thread_file@%$thread_file%g
9598 s%@tm_file_list@%$tm_file_list%g
9599 s%@will_use_collect2@%$will_use_collect2%g
9600 /@target_overrides@/r $target_overrides
9601 s%@target_overrides@%%g
9602 /@host_overrides@/r $host_overrides
9603 s%@host_overrides@%%g
9604 s%@cross_defines@%$cross_defines%g
9605 /@cross_overrides@/r $cross_overrides
9606 s%@cross_overrides@%%g
9607 /@build_overrides@/r $build_overrides
9608 s%@build_overrides@%%g
9609 /@language_fragments@/r $language_fragments
9610 s%@language_fragments@%%g
9611 /@language_hooks@/r $language_hooks
9612 s%@language_hooks@%%g
9613
9614 CEOF
9615 EOF
9616
9617 cat >> $CONFIG_STATUS <<\EOF
9618
9619 # Split the substitutions into bite-sized pieces for seds with
9620 # small command number limits, like on Digital OSF/1 and HP-UX.
9621 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9622 ac_file=1 # Number of current file.
9623 ac_beg=1 # First line for current file.
9624 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9625 ac_more_lines=:
9626 ac_sed_cmds=""
9627 while $ac_more_lines; do
9628   if test $ac_beg -gt 1; then
9629     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9630   else
9631     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9632   fi
9633   if test ! -s conftest.s$ac_file; then
9634     ac_more_lines=false
9635     rm -f conftest.s$ac_file
9636   else
9637     if test -z "$ac_sed_cmds"; then
9638       ac_sed_cmds="sed -f conftest.s$ac_file"
9639     else
9640       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9641     fi
9642     ac_file=`expr $ac_file + 1`
9643     ac_beg=$ac_end
9644     ac_end=`expr $ac_end + $ac_max_sed_cmds`
9645   fi
9646 done
9647 if test -z "$ac_sed_cmds"; then
9648   ac_sed_cmds=cat
9649 fi
9650 EOF
9651
9652 cat >> $CONFIG_STATUS <<EOF
9653
9654 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9655 EOF
9656 cat >> $CONFIG_STATUS <<\EOF
9657 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9658   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9659   case "$ac_file" in
9660   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9661        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9662   *) ac_file_in="${ac_file}.in" ;;
9663   esac
9664
9665   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9666
9667   # Remove last slash and all that follows it.  Not all systems have dirname.
9668   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9669   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9670     # The file is in a subdirectory.
9671     test ! -d "$ac_dir" && mkdir "$ac_dir"
9672     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9673     # A "../" for each directory in $ac_dir_suffix.
9674     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9675   else
9676     ac_dir_suffix= ac_dots=
9677   fi
9678
9679   case "$ac_given_srcdir" in
9680   .)  srcdir=.
9681       if test -z "$ac_dots"; then top_srcdir=.
9682       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9683   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9684   *) # Relative path.
9685     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9686     top_srcdir="$ac_dots$ac_given_srcdir" ;;
9687   esac
9688
9689
9690   echo creating "$ac_file"
9691   rm -f "$ac_file"
9692   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9693   case "$ac_file" in
9694   *Makefile*) ac_comsub="1i\\
9695 # $configure_input" ;;
9696   *) ac_comsub= ;;
9697   esac
9698
9699   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9700   sed -e "$ac_comsub
9701 s%@configure_input@%$configure_input%g
9702 s%@srcdir@%$srcdir%g
9703 s%@top_srcdir@%$top_srcdir%g
9704 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9705 fi; done
9706 rm -f conftest.s*
9707
9708 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9709 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9710 #
9711 # ac_d sets the value in "#define NAME VALUE" lines.
9712 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9713 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
9714 ac_dC='\3'
9715 ac_dD='%g'
9716 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9717 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9718 ac_uB='\([      ]\)%\1#\2define\3'
9719 ac_uC=' '
9720 ac_uD='\4%g'
9721 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9722 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9723 ac_eB='$%\1#\2define\3'
9724 ac_eC=' '
9725 ac_eD='%g'
9726
9727 if test "${CONFIG_HEADERS+set}" != set; then
9728 EOF
9729 cat >> $CONFIG_STATUS <<EOF
9730   CONFIG_HEADERS="auto-host.h:config.in"
9731 EOF
9732 cat >> $CONFIG_STATUS <<\EOF
9733 fi
9734 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9735   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9736   case "$ac_file" in
9737   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9738        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9739   *) ac_file_in="${ac_file}.in" ;;
9740   esac
9741
9742   echo creating $ac_file
9743
9744   rm -f conftest.frag conftest.in conftest.out
9745   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9746   cat $ac_file_inputs > conftest.in
9747
9748 EOF
9749
9750 # Transform confdefs.h into a sed script conftest.vals that substitutes
9751 # the proper values into config.h.in to produce config.h.  And first:
9752 # Protect against being on the right side of a sed subst in config.status.
9753 # Protect against being in an unquoted here document in config.status.
9754 rm -f conftest.vals
9755 cat > conftest.hdr <<\EOF
9756 s/[\\&%]/\\&/g
9757 s%[\\$`]%\\&%g
9758 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9759 s%ac_d%ac_u%gp
9760 s%ac_u%ac_e%gp
9761 EOF
9762 sed -n -f conftest.hdr confdefs.h > conftest.vals
9763 rm -f conftest.hdr
9764
9765 # This sed command replaces #undef with comments.  This is necessary, for
9766 # example, in the case of _POSIX_SOURCE, which is predefined and required
9767 # on some systems where configure will not decide to define it.
9768 cat >> conftest.vals <<\EOF
9769 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9770 EOF
9771
9772 # Break up conftest.vals because some shells have a limit on
9773 # the size of here documents, and old seds have small limits too.
9774
9775 rm -f conftest.tail
9776 while :
9777 do
9778   ac_lines=`grep -c . conftest.vals`
9779   # grep -c gives empty output for an empty file on some AIX systems.
9780   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9781   # Write a limited-size here document to conftest.frag.
9782   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9783   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9784   echo 'CEOF
9785   sed -f conftest.frag conftest.in > conftest.out
9786   rm -f conftest.in
9787   mv conftest.out conftest.in
9788 ' >> $CONFIG_STATUS
9789   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9790   rm -f conftest.vals
9791   mv conftest.tail conftest.vals
9792 done
9793 rm -f conftest.vals
9794
9795 cat >> $CONFIG_STATUS <<\EOF
9796   rm -f conftest.frag conftest.h
9797   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
9798   cat conftest.in >> conftest.h
9799   rm -f conftest.in
9800   if cmp -s $ac_file conftest.h 2>/dev/null; then
9801     echo "$ac_file is unchanged"
9802     rm -f conftest.h
9803   else
9804     # Remove last slash and all that follows it.  Not all systems have dirname.
9805       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9806       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9807       # The file is in a subdirectory.
9808       test ! -d "$ac_dir" && mkdir "$ac_dir"
9809     fi
9810     rm -f $ac_file
9811     mv conftest.h $ac_file
9812   fi
9813 fi; done
9814
9815 EOF
9816
9817 cat >> $CONFIG_STATUS <<EOF
9818 ac_sources="$nls_cv_header_libgt"
9819 ac_dests="$nls_cv_header_intl"
9820 EOF
9821
9822 cat >> $CONFIG_STATUS <<\EOF
9823 srcdir=$ac_given_srcdir
9824 while test -n "$ac_sources"; do
9825   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9826   set $ac_sources; ac_source=$1; shift; ac_sources=$*
9827
9828   echo "linking $srcdir/$ac_source to $ac_dest"
9829
9830   if test ! -r $srcdir/$ac_source; then
9831     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9832   fi
9833   rm -f $ac_dest
9834
9835   # Make relative symlinks.
9836   # Remove last slash and all that follows it.  Not all systems have dirname.
9837   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9838   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9839     # The dest file is in a subdirectory.
9840     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9841     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9842     # A "../" for each directory in $ac_dest_dir_suffix.
9843     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9844   else
9845     ac_dest_dir_suffix= ac_dots=
9846   fi
9847
9848   case "$srcdir" in
9849   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9850   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9851   esac
9852
9853   # Make a symlink if possible; otherwise try a hard link.
9854   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9855     ln $srcdir/$ac_source $ac_dest; then :
9856   else
9857     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9858   fi
9859 done
9860 EOF
9861 cat >> $CONFIG_STATUS <<EOF
9862
9863
9864 host='${host}'
9865 build='${build}'
9866 target='${target}'
9867 target_alias='${target_alias}'
9868 srcdir='${srcdir}'
9869 subdirs='${subdirs}'
9870 oldstyle_subdirs='${oldstyle_subdirs}'
9871 symbolic_link='${symbolic_link}'
9872 program_transform_set='${program_transform_set}'
9873 program_transform_name='${program_transform_name}'
9874 dep_host_xmake_file='${dep_host_xmake_file}'
9875 host_xmake_file='${host_xmake_file}'
9876 dep_tmake_file='${dep_tmake_file}'
9877 tmake_file='${tmake_file}'
9878 thread_file='${thread_file}'
9879 gcc_version='${gcc_version}'
9880 gcc_version_trigger='${gcc_version_trigger}'
9881 local_prefix='${local_prefix}'
9882 build_install_headers_dir='${build_install_headers_dir}'
9883 build_exeext='${build_exeext}'
9884 host_exeext='${host_exeext}'
9885 out_file='${out_file}'
9886 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9887 SET_MAKE='${SET_MAKE}'
9888 target_list='${target_list}'
9889 target_overrides='${target_overrides}'
9890 host_overrides='${host_overrides}'
9891 cross_defines='${cross_defines}'
9892 cross_overrides='${cross_overrides}'
9893 build_overrides='${build_overrides}'
9894 cpp_install_dir='${cpp_install_dir}'
9895
9896 EOF
9897 cat >> $CONFIG_STATUS <<\EOF
9898 case "$CONFIG_FILES" in *po/Makefile.in*)
9899         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9900       esac
9901
9902 . $srcdir/configure.lang
9903 case x$CONFIG_HEADERS in
9904 xauto-host.h:config.in)
9905 echo > cstamp-h ;;
9906 esac
9907 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9908 # bootstrapping and the installation procedure can still use
9909 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
9910 # FLAGS_TO_PASS has been modified to solve the problem there.
9911 # This is virtually a duplicate of what happens in configure.lang; we do
9912 # an extra check to make sure this only happens if ln -s can be used.
9913 if test "$symbolic_link" = "ln -s"; then
9914  for d in .. ${subdirs} ; do
9915    if test $d != ..; then
9916         STARTDIR=`pwd`
9917         cd $d
9918         for t in stage1 stage2 stage3 stage4 include
9919         do
9920                 rm -f $t
9921                 $symbolic_link ../$t $t 2>/dev/null
9922         done
9923         cd $STARTDIR
9924    fi
9925  done
9926 else true ; fi
9927 # Avoid having to add intl to our include paths.
9928 if test -f intl/libintl.h; then
9929   echo creating libintl.h
9930   echo '#include "intl/libintl.h"' >libintl.h
9931 fi
9932
9933 exit 0
9934 EOF
9935 chmod +x $CONFIG_STATUS
9936 rm -fr confdefs* $ac_clean_files
9937 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9938