OSDN Git Service

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