OSDN Git Service

f53baab4d4078f7365ce957386ceab4e03d656ac
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.2 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-gnu-ld           arrange to work with GNU ld."
16 ac_help="$ac_help
17   --with-ld               arrange to use the specified ld (full pathname)."
18 ac_help="$ac_help
19   --with-gnu-as           arrange to work with GNU as."
20 ac_help="$ac_help
21   --with-as               arrange to use the specified as (full pathname)."
22 ac_help="$ac_help
23   --with-stabs            arrange to use stabs instead of host debug format."
24 ac_help="$ac_help
25   --with-elf              arrange to use ELF instead of host debug format."
26 ac_help="$ac_help
27   --with-local-prefix=DIR specifies directory to put local include."
28 ac_help="$ac_help
29   --with-gxx-include-dir=DIR
30                           specifies directory to put g++ header files."
31 ac_help="$ac_help
32   --enable-checking       enable expensive run-time checks."
33 ac_help="$ac_help
34   --enable-cpplib         use cpplib for the C preprocessor."
35 ac_help="$ac_help
36   --enable-c-cpplib       link cpplib directly into C and C++ compilers
37                           (implies --enable-cpplib)."
38 ac_help="$ac_help
39   --enable-c-mbchar       enable multibyte characters for C and C++."
40 ac_help="$ac_help
41   --enable-haifa          use the experimental scheduler.
42   --disable-haifa         don't use the experimental scheduler for the
43                           targets which normally enable it."
44 ac_help="$ac_help
45   --with-fast-fixincludes    use a faster fixinclude program (experimental)"
46 ac_help="$ac_help
47   --enable-init-priority  use attributes to assign initialization order
48                           for static objects.
49   --disable-init-priority conform to ISO C++ rules for ordering static objects
50                           (i.e. initialized in order of declaration). "
51 ac_help="$ac_help
52   --enable-threads        enable thread usage for target GCC.
53   --enable-threads=LIB    use LIB thread package for target GCC."
54 ac_help="$ac_help
55   --enable-objc-gc        enable the use of Boehm's garbage collector with
56                           the GNU Objective-C runtime."
57 ac_help="$ac_help
58   --enable-java-gc=TYPE   choose garbage collector [boehm]"
59
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
63 build=NONE
64 cache_file=./config.cache
65 exec_prefix=NONE
66 host=NONE
67 no_create=
68 nonopt=NONE
69 no_recursion=
70 prefix=NONE
71 program_prefix=NONE
72 program_suffix=NONE
73 program_transform_name=s,x,x,
74 silent=
75 site=
76 srcdir=
77 target=NONE
78 verbose=
79 x_includes=NONE
80 x_libraries=NONE
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
93
94 # Initialize some other variables.
95 subdirs=
96 MFLAGS= MAKEFLAGS=
97 SHELL=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
99 ac_max_here_lines=12
100
101 ac_prev=
102 for ac_option
103 do
104
105   # If the previous option needs an argument, assign it.
106   if test -n "$ac_prev"; then
107     eval "$ac_prev=\$ac_option"
108     ac_prev=
109     continue
110   fi
111
112   case "$ac_option" in
113   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
114   *) ac_optarg= ;;
115   esac
116
117   # Accept the important Cygnus configure options, so we can diagnose typos.
118
119   case "$ac_option" in
120
121   -bindir | --bindir | --bindi | --bind | --bin | --bi)
122     ac_prev=bindir ;;
123   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124     bindir="$ac_optarg" ;;
125
126   -build | --build | --buil | --bui | --bu)
127     ac_prev=build ;;
128   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129     build="$ac_optarg" ;;
130
131   -cache-file | --cache-file | --cache-fil | --cache-fi \
132   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133     ac_prev=cache_file ;;
134   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136     cache_file="$ac_optarg" ;;
137
138   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
139     ac_prev=datadir ;;
140   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
141   | --da=*)
142     datadir="$ac_optarg" ;;
143
144   -disable-* | --disable-*)
145     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146     # Reject names that are not valid shell variable names.
147     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149     fi
150     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151     eval "enable_${ac_feature}=no" ;;
152
153   -enable-* | --enable-*)
154     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155     # Reject names that are not valid shell variable names.
156     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158     fi
159     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160     case "$ac_option" in
161       *=*) ;;
162       *) ac_optarg=yes ;;
163     esac
164     eval "enable_${ac_feature}='$ac_optarg'" ;;
165
166   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168   | --exec | --exe | --ex)
169     ac_prev=exec_prefix ;;
170   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172   | --exec=* | --exe=* | --ex=*)
173     exec_prefix="$ac_optarg" ;;
174
175   -gas | --gas | --ga | --g)
176     # Obsolete; use --with-gas.
177     with_gas=yes ;;
178
179   -help | --help | --hel | --he)
180     # Omit some internal or obsolete options to make the list less imposing.
181     # This message is too long to be a string in the A/UX 3.1 sh.
182     cat << EOF
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
185 Configuration:
186   --cache-file=FILE       cache test results in FILE
187   --help                  print this message
188   --no-create             do not create output files
189   --quiet, --silent       do not print \`checking...' messages
190   --version               print the version of autoconf that created configure
191 Directory and file names:
192   --prefix=PREFIX         install architecture-independent files in PREFIX
193                           [$ac_default_prefix]
194   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
195                           [same as prefix]
196   --bindir=DIR            user executables in DIR [EPREFIX/bin]
197   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
198   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
199   --datadir=DIR           read-only architecture-independent data in DIR
200                           [PREFIX/share]
201   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
202   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
203                           [PREFIX/com]
204   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
205   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
206   --includedir=DIR        C header files in DIR [PREFIX/include]
207   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
208   --infodir=DIR           info documentation in DIR [PREFIX/info]
209   --mandir=DIR            man documentation in DIR [PREFIX/man]
210   --srcdir=DIR            find the sources in DIR [configure dir or ..]
211   --program-prefix=PREFIX prepend PREFIX to installed program names
212   --program-suffix=SUFFIX append SUFFIX to installed program names
213   --program-transform-name=PROGRAM
214                           run sed PROGRAM on installed program names
215 EOF
216     cat << EOF
217 Host type:
218   --build=BUILD           configure for building on BUILD [BUILD=HOST]
219   --host=HOST             configure for HOST [guessed]
220   --target=TARGET         configure for TARGET [TARGET=HOST]
221 Features and packages:
222   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
223   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
224   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
225   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
226   --x-includes=DIR        X include files are in DIR
227   --x-libraries=DIR       X library files are in DIR
228 EOF
229     if test -n "$ac_help"; then
230       echo "--enable and --with options recognized:$ac_help"
231     fi
232     exit 0 ;;
233
234   -host | --host | --hos | --ho)
235     ac_prev=host ;;
236   -host=* | --host=* | --hos=* | --ho=*)
237     host="$ac_optarg" ;;
238
239   -includedir | --includedir | --includedi | --included | --include \
240   | --includ | --inclu | --incl | --inc)
241     ac_prev=includedir ;;
242   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243   | --includ=* | --inclu=* | --incl=* | --inc=*)
244     includedir="$ac_optarg" ;;
245
246   -infodir | --infodir | --infodi | --infod | --info | --inf)
247     ac_prev=infodir ;;
248   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249     infodir="$ac_optarg" ;;
250
251   -libdir | --libdir | --libdi | --libd)
252     ac_prev=libdir ;;
253   -libdir=* | --libdir=* | --libdi=* | --libd=*)
254     libdir="$ac_optarg" ;;
255
256   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257   | --libexe | --libex | --libe)
258     ac_prev=libexecdir ;;
259   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260   | --libexe=* | --libex=* | --libe=*)
261     libexecdir="$ac_optarg" ;;
262
263   -localstatedir | --localstatedir | --localstatedi | --localstated \
264   | --localstate | --localstat | --localsta | --localst \
265   | --locals | --local | --loca | --loc | --lo)
266     ac_prev=localstatedir ;;
267   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270     localstatedir="$ac_optarg" ;;
271
272   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
273     ac_prev=mandir ;;
274   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275     mandir="$ac_optarg" ;;
276
277   -nfp | --nfp | --nf)
278     # Obsolete; use --without-fp.
279     with_fp=no ;;
280
281   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
282   | --no-cr | --no-c)
283     no_create=yes ;;
284
285   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
287     no_recursion=yes ;;
288
289   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291   | --oldin | --oldi | --old | --ol | --o)
292     ac_prev=oldincludedir ;;
293   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296     oldincludedir="$ac_optarg" ;;
297
298   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
299     ac_prev=prefix ;;
300   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301     prefix="$ac_optarg" ;;
302
303   -program-prefix | --program-prefix | --program-prefi | --program-pref \
304   | --program-pre | --program-pr | --program-p)
305     ac_prev=program_prefix ;;
306   -program-prefix=* | --program-prefix=* | --program-prefi=* \
307   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308     program_prefix="$ac_optarg" ;;
309
310   -program-suffix | --program-suffix | --program-suffi | --program-suff \
311   | --program-suf | --program-su | --program-s)
312     ac_prev=program_suffix ;;
313   -program-suffix=* | --program-suffix=* | --program-suffi=* \
314   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315     program_suffix="$ac_optarg" ;;
316
317   -program-transform-name | --program-transform-name \
318   | --program-transform-nam | --program-transform-na \
319   | --program-transform-n | --program-transform- \
320   | --program-transform | --program-transfor \
321   | --program-transfo | --program-transf \
322   | --program-trans | --program-tran \
323   | --progr-tra | --program-tr | --program-t)
324     ac_prev=program_transform_name ;;
325   -program-transform-name=* | --program-transform-name=* \
326   | --program-transform-nam=* | --program-transform-na=* \
327   | --program-transform-n=* | --program-transform-=* \
328   | --program-transform=* | --program-transfor=* \
329   | --program-transfo=* | --program-transf=* \
330   | --program-trans=* | --program-tran=* \
331   | --progr-tra=* | --program-tr=* | --program-t=*)
332     program_transform_name="$ac_optarg" ;;
333
334   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335   | -silent | --silent | --silen | --sile | --sil)
336     silent=yes ;;
337
338   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
339     ac_prev=sbindir ;;
340   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
341   | --sbi=* | --sb=*)
342     sbindir="$ac_optarg" ;;
343
344   -sharedstatedir | --sharedstatedir | --sharedstatedi \
345   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346   | --sharedst | --shareds | --shared | --share | --shar \
347   | --sha | --sh)
348     ac_prev=sharedstatedir ;;
349   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
352   | --sha=* | --sh=*)
353     sharedstatedir="$ac_optarg" ;;
354
355   -site | --site | --sit)
356     ac_prev=site ;;
357   -site=* | --site=* | --sit=*)
358     site="$ac_optarg" ;;
359
360   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
361     ac_prev=srcdir ;;
362   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363     srcdir="$ac_optarg" ;;
364
365   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366   | --syscon | --sysco | --sysc | --sys | --sy)
367     ac_prev=sysconfdir ;;
368   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370     sysconfdir="$ac_optarg" ;;
371
372   -target | --target | --targe | --targ | --tar | --ta | --t)
373     ac_prev=target ;;
374   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375     target="$ac_optarg" ;;
376
377   -v | -verbose | --verbose | --verbos | --verbo | --verb)
378     verbose=yes ;;
379
380   -version | --version | --versio | --versi | --vers)
381     echo "configure generated by autoconf version 2.12.2"
382     exit 0 ;;
383
384   -with-* | --with-*)
385     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386     # Reject names that are not valid shell variable names.
387     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389     fi
390     ac_package=`echo $ac_package| sed 's/-/_/g'`
391     case "$ac_option" in
392       *=*) ;;
393       *) ac_optarg=yes ;;
394     esac
395     eval "with_${ac_package}='$ac_optarg'" ;;
396
397   -without-* | --without-*)
398     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399     # Reject names that are not valid shell variable names.
400     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402     fi
403     ac_package=`echo $ac_package| sed 's/-/_/g'`
404     eval "with_${ac_package}=no" ;;
405
406   --x)
407     # Obsolete; use --with-x.
408     with_x=yes ;;
409
410   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411   | --x-incl | --x-inc | --x-in | --x-i)
412     ac_prev=x_includes ;;
413   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415     x_includes="$ac_optarg" ;;
416
417   -x-libraries | --x-libraries | --x-librarie | --x-librari \
418   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419     ac_prev=x_libraries ;;
420   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422     x_libraries="$ac_optarg" ;;
423
424   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
425     ;;
426
427   *)
428     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429       echo "configure: warning: $ac_option: invalid host type" 1>&2
430     fi
431     if test "x$nonopt" != xNONE; then
432       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433     fi
434     nonopt="$ac_option"
435     ;;
436
437   esac
438 done
439
440 if test -n "$ac_prev"; then
441   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
442 fi
443
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445
446 # File descriptor usage:
447 # 0 standard input
448 # 1 file creation
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
455   exec 6>/dev/null
456 else
457   exec 6>&1
458 fi
459 exec 5>./config.log
460
461 echo "\
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
464 " 1>&5
465
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
468 ac_configure_args=
469 for ac_arg
470 do
471   case "$ac_arg" in
472   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473   | --no-cr | --no-c) ;;
474   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
479   esac
480 done
481
482 # NLS nuisances.
483 # Only set these to C if already set.  These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
491
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
495 echo > confdefs.h
496
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file=tree.c
500
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503   ac_srcdir_defaulted=yes
504   # Try the directory containing this script, then its parent.
505   ac_prog=$0
506   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
508   srcdir=$ac_confdir
509   if test ! -r $srcdir/$ac_unique_file; then
510     srcdir=..
511   fi
512 else
513   ac_srcdir_defaulted=no
514 fi
515 if test ! -r $srcdir/$ac_unique_file; then
516   if test "$ac_srcdir_defaulted" = yes; then
517     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
518   else
519     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
520   fi
521 fi
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
523
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526   if test "x$prefix" != xNONE; then
527     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
528   else
529     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
530   fi
531 fi
532 for ac_site_file in $CONFIG_SITE; do
533   if test -r "$ac_site_file"; then
534     echo "loading site script $ac_site_file"
535     . "$ac_site_file"
536   fi
537 done
538
539 if test -r "$cache_file"; then
540   echo "loading cache $cache_file"
541   . $cache_file
542 else
543   echo "creating cache $cache_file"
544   > $cache_file
545 fi
546
547 ac_ext=c
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
553
554 ac_exeext=
555 ac_objext=o
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
559     ac_n= ac_c='
560 ' ac_t='        '
561   else
562     ac_n=-n ac_c= ac_t=
563   fi
564 else
565   ac_n= ac_c='\c' ac_t=
566 fi
567
568
569
570
571 remove=rm
572 hard_link=ln
573 symbolic_link='ln -s'
574 copy=cp
575
576 # Check for bogus environment variables.
577 # Test if LIBRARY_PATH contains the notation for the current directory
578 # since this would lead to problems installing/building glibc.
579 # LIBRARY_PATH contains the current directory if one of the following
580 # is true:
581 # - one of the terminals (":" and ";") is the first or last sign
582 # - two terminals occur directly after each other
583 # - the path contains an element with a dot in it
584 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
585 echo "configure:586: checking LIBRARY_PATH variable" >&5
586 case ${LIBRARY_PATH} in
587   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
588     library_path_setting="contains current directory"
589     ;;
590   *)
591     library_path_setting="ok"
592     ;;
593 esac
594 echo "$ac_t""$library_path_setting" 1>&6
595 if test "$library_path_setting" != "ok"; then
596 { echo "configure: error: 
597 *** LIBRARY_PATH shouldn't contain the current directory when
598 *** building egcs. Please change the environment variable
599 *** and run configure again." 1>&2; exit 1; }
600 fi
601
602 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
603 # since this would lead to problems installing/building glibc.
604 # GCC_EXEC_PREFIX contains the current directory if one of the following
605 # is true:
606 # - one of the terminals (":" and ";") is the first or last sign
607 # - two terminals occur directly after each other
608 # - the path contains an element with a dot in it
609 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
610 echo "configure:611: checking GCC_EXEC_PREFIX variable" >&5
611 case ${GCC_EXEC_PREFIX} in
612   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
613     gcc_exec_prefix_setting="contains current directory"
614     ;;
615   *)
616     gcc_exec_prefix_setting="ok"
617     ;;
618 esac
619 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
620 if test "$gcc_exec_prefix_setting" != "ok"; then
621 { echo "configure: error: 
622 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
623 *** building egcs. Please change the environment variable
624 *** and run configure again." 1>&2; exit 1; }
625 fi
626
627 # Check for additional parameters
628
629 # With GNU ld
630 # Check whether --with-gnu-ld or --without-gnu-ld was given.
631 if test "${with_gnu_ld+set}" = set; then
632   withval="$with_gnu_ld"
633   gnu_ld_flag="$with_gnu_ld"
634 else
635   gnu_ld_flag=no
636 fi
637
638
639 # With pre-defined ld
640 # Check whether --with-ld or --without-ld was given.
641 if test "${with_ld+set}" = set; then
642   withval="$with_ld"
643   DEFAULT_LINKER="$with_ld"
644 fi
645
646 if test x"${DEFAULT_LINKER+set}" = x"set"; then
647   if test ! -x "$DEFAULT_LINKER"; then
648     echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
649   elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
650     gnu_ld_flag=yes
651   fi
652   cat >> confdefs.h <<EOF
653 #define DEFAULT_LINKER "$DEFAULT_LINKER"
654 EOF
655
656 fi
657
658 # With GNU as
659 # Check whether --with-gnu-as or --without-gnu-as was given.
660 if test "${with_gnu_as+set}" = set; then
661   withval="$with_gnu_as"
662   gas_flag="$with_gnu_as"
663 else
664   gas_flag=no
665 fi
666
667
668 # Check whether --with-as or --without-as was given.
669 if test "${with_as+set}" = set; then
670   withval="$with_as"
671   DEFAULT_ASSEMBLER="$with_as"
672 fi
673
674 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
675   if test ! -x "$DEFAULT_ASSEMBLER"; then
676     echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
677   elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
678     gas_flag=yes
679   fi
680   cat >> confdefs.h <<EOF
681 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
682 EOF
683
684 fi
685
686 # With stabs
687 # Check whether --with-stabs or --without-stabs was given.
688 if test "${with_stabs+set}" = set; then
689   withval="$with_stabs"
690   stabs="$with_stabs"
691 else
692   stabs=no
693 fi
694
695
696 # With ELF
697 # Check whether --with-elf or --without-elf was given.
698 if test "${with_elf+set}" = set; then
699   withval="$with_elf"
700   elf="$with_elf"
701 else
702   elf=no
703 fi
704
705
706 # Specify the local prefix
707 local_prefix=
708 # Check whether --with-local-prefix or --without-local-prefix was given.
709 if test "${with_local_prefix+set}" = set; then
710   withval="$with_local_prefix"
711   case "${withval}" in
712 yes)    { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
713 no)     ;;
714 *)      local_prefix=$with_local_prefix ;;
715 esac
716 fi
717
718
719 # Default local prefix if it is empty
720 if test x$local_prefix = x; then
721         local_prefix=/usr/local
722 fi
723
724 gxx_include_dir=
725 # Specify the g++ header file directory
726 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
727 if test "${with_gxx_include_dir+set}" = set; then
728   withval="$with_gxx_include_dir"
729   case "${withval}" in
730 yes)    { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
731 no)     ;;
732 *)      gxx_include_dir=$with_gxx_include_dir ;;
733 esac
734 fi
735
736
737 if test x${gxx_include_dir} = x; then
738   if test x${enable_version_specific_runtime_libs} = xyes; then
739     gxx_include_dir='${libsubdir}/include/g++'
740   else
741     topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
742     gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
743   fi
744 fi
745
746 # Enable expensive internal checks
747 # Check whether --enable-checking or --disable-checking was given.
748 if test "${enable_checking+set}" = set; then
749   enableval="$enable_checking"
750   case "${enableval}" in
751 yes)    cat >> confdefs.h <<\EOF
752 #define ENABLE_CHECKING 1
753 EOF
754  ;;
755 no)     ;;
756 *)      { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
757 esac
758 fi
759
760
761 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
762 cpp_main=cccp
763 # Check whether --enable-cpplib or --disable-cpplib was given.
764 if test "${enable_cpplib+set}" = set; then
765   enableval="$enable_cpplib"
766   if test x$enable_cpplib != xno; then
767   cpp_main=cppmain
768 fi
769 fi
770
771
772 # Link cpplib into the compiler proper, for C/C++/ObjC.
773 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
774 if test "${enable_c_cpplib+set}" = set; then
775   enableval="$enable_c_cpplib"
776   if test x$enable_c_cpplib != xno; then
777   extra_c_objs="${extra_c_objs} libcpp.a"
778   extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
779   extra_c_flags=-DUSE_CPPLIB=1
780   cpp_main=cppmain
781 fi
782 fi
783
784
785 # Enable Multibyte Characters for C/C++
786 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
787 if test "${enable_c_mbchar+set}" = set; then
788   enableval="$enable_c_mbchar"
789   if test x$enable_c_mbchar != xno; then
790   extra_c_flags=-DMULTIBYTE_CHARS=1
791 fi
792 fi
793
794   
795 # Enable Haifa scheduler.
796 # Check whether --enable-haifa or --disable-haifa was given.
797 if test "${enable_haifa+set}" = set; then
798   enableval="$enable_haifa"
799   :
800 fi
801
802 # Fast fixincludes
803 #
804 # This is a work in progress...
805 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
806 if test "${with_fast_fixincludes+set}" = set; then
807   withval="$with_fast_fixincludes"
808   fast_fixinc="$with_fast_fixincludes"
809 else
810   fast_fixinc=no
811 fi
812
813
814 # Enable init_priority.
815 # Check whether --enable-init-priority or --disable-init-priority was given.
816 if test "${enable_init_priority+set}" = set; then
817   enableval="$enable_init_priority"
818   if test x$enable_init_priority != xno; then
819   extra_c_flags=-DUSE_INIT_PRIORITY
820 fi
821 fi
822
823
824 # Enable threads
825 # Pass with no value to take the default
826 # Pass with a value to specify a thread package
827 # Check whether --enable-threads or --disable-threads was given.
828 if test "${enable_threads+set}" = set; then
829   enableval="$enable_threads"
830   if test x$enable_threads = xno; then
831         enable_threads=''
832 fi
833 else
834   enable_threads=''
835 fi
836
837
838 enable_threads_flag=$enable_threads
839 # Check if a valid thread package
840 case x${enable_threads_flag} in
841         x | xno)
842                 # No threads
843                 target_thread_file='single'
844                 ;;
845         xyes)
846                 # default
847                 target_thread_file=''
848                 ;;
849         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
850         xsolaris | xwin32 | xdce | xvxworks)
851                 target_thread_file=$enable_threads_flag
852                 ;;
853         *)
854                 echo "$enable_threads is an unknown thread package" 1>&2
855                 exit 1
856                 ;;
857 esac
858
859 # Check whether --enable-objc-gc or --disable-objc-gc was given.
860 if test "${enable_objc_gc+set}" = set; then
861   enableval="$enable_objc_gc"
862   if [ x$enable_objc_gc = xno ]; then
863         objc_boehm_gc=''
864 else
865         objc_boehm_gc=1
866 fi
867 else
868   objc_boehm_gc=''
869 fi
870
871
872 # Check whether --enable-java-gc or --disable-java-gc was given.
873 if test "${enable_java_gc+set}" = set; then
874   enableval="$enable_java_gc"
875   
876   JAVAGC=$enableval
877 else
878   JAVAGC=boehm
879 fi
880
881
882 # Determine the host, build, and target systems
883 ac_aux_dir=
884 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
885   if test -f $ac_dir/install-sh; then
886     ac_aux_dir=$ac_dir
887     ac_install_sh="$ac_aux_dir/install-sh -c"
888     break
889   elif test -f $ac_dir/install.sh; then
890     ac_aux_dir=$ac_dir
891     ac_install_sh="$ac_aux_dir/install.sh -c"
892     break
893   fi
894 done
895 if test -z "$ac_aux_dir"; then
896   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
897 fi
898 ac_config_guess=$ac_aux_dir/config.guess
899 ac_config_sub=$ac_aux_dir/config.sub
900 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
901
902
903 # Do some error checking and defaulting for the host and target type.
904 # The inputs are:
905 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
906 #
907 # The rules are:
908 # 1. You are not allowed to specify --host, --target, and nonopt at the
909 #    same time.
910 # 2. Host defaults to nonopt.
911 # 3. If nonopt is not specified, then host defaults to the current host,
912 #    as determined by config.guess.
913 # 4. Target and build default to nonopt.
914 # 5. If nonopt is not specified, then target and build default to host.
915
916 # The aliases save the names the user supplied, while $host etc.
917 # will get canonicalized.
918 case $host---$target---$nonopt in
919 NONE---*---* | *---NONE---* | *---*---NONE) ;;
920 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
921 esac
922
923
924 # Make sure we can run config.sub.
925 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
927 fi
928
929 echo $ac_n "checking host system type""... $ac_c" 1>&6
930 echo "configure:931: checking host system type" >&5
931
932 host_alias=$host
933 case "$host_alias" in
934 NONE)
935   case $nonopt in
936   NONE)
937     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
938     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
939     fi ;;
940   *) host_alias=$nonopt ;;
941   esac ;;
942 esac
943
944 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
945 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
946 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
947 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948 echo "$ac_t""$host" 1>&6
949
950 echo $ac_n "checking target system type""... $ac_c" 1>&6
951 echo "configure:952: checking target system type" >&5
952
953 target_alias=$target
954 case "$target_alias" in
955 NONE)
956   case $nonopt in
957   NONE) target_alias=$host_alias ;;
958   *) target_alias=$nonopt ;;
959   esac ;;
960 esac
961
962 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
963 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
964 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
965 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
966 echo "$ac_t""$target" 1>&6
967
968 echo $ac_n "checking build system type""... $ac_c" 1>&6
969 echo "configure:970: checking build system type" >&5
970
971 build_alias=$build
972 case "$build_alias" in
973 NONE)
974   case $nonopt in
975   NONE) build_alias=$host_alias ;;
976   *) build_alias=$nonopt ;;
977   esac ;;
978 esac
979
980 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
981 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
984 echo "$ac_t""$build" 1>&6
985
986 test "$host_alias" != "$target_alias" &&
987   test "$program_prefix$program_suffix$program_transform_name" = \
988     NONENONEs,x,x, &&
989   program_prefix=${target_alias}-
990
991
992 # Find the native compiler
993 # Extract the first word of "gcc", so it can be a program name with args.
994 set dummy gcc; ac_word=$2
995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
996 echo "configure:997: checking for $ac_word" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
998   echo $ac_n "(cached) $ac_c" 1>&6
999 else
1000   if test -n "$CC"; then
1001   ac_cv_prog_CC="$CC" # Let the user override the test.
1002 else
1003   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1004   for ac_dir in $PATH; do
1005     test -z "$ac_dir" && ac_dir=.
1006     if test -f $ac_dir/$ac_word; then
1007       ac_cv_prog_CC="gcc"
1008       break
1009     fi
1010   done
1011   IFS="$ac_save_ifs"
1012 fi
1013 fi
1014 CC="$ac_cv_prog_CC"
1015 if test -n "$CC"; then
1016   echo "$ac_t""$CC" 1>&6
1017 else
1018   echo "$ac_t""no" 1>&6
1019 fi
1020
1021 if test -z "$CC"; then
1022   # Extract the first word of "cc", so it can be a program name with args.
1023 set dummy cc; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027   echo $ac_n "(cached) $ac_c" 1>&6
1028 else
1029   if test -n "$CC"; then
1030   ac_cv_prog_CC="$CC" # Let the user override the test.
1031 else
1032   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1033   ac_prog_rejected=no
1034   for ac_dir in $PATH; do
1035     test -z "$ac_dir" && ac_dir=.
1036     if test -f $ac_dir/$ac_word; then
1037       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1038         ac_prog_rejected=yes
1039         continue
1040       fi
1041       ac_cv_prog_CC="cc"
1042       break
1043     fi
1044   done
1045   IFS="$ac_save_ifs"
1046 if test $ac_prog_rejected = yes; then
1047   # We found a bogon in the path, so make sure we never use it.
1048   set dummy $ac_cv_prog_CC
1049   shift
1050   if test $# -gt 0; then
1051     # We chose a different compiler from the bogus one.
1052     # However, it has the same basename, so the bogon will be chosen
1053     # first if we set CC to just the basename; use the full file name.
1054     shift
1055     set dummy "$ac_dir/$ac_word" "$@"
1056     shift
1057     ac_cv_prog_CC="$@"
1058   fi
1059 fi
1060 fi
1061 fi
1062 CC="$ac_cv_prog_CC"
1063 if test -n "$CC"; then
1064   echo "$ac_t""$CC" 1>&6
1065 else
1066   echo "$ac_t""no" 1>&6
1067 fi
1068
1069   if test -z "$CC"; then
1070     case "`uname -s`" in
1071     *win32* | *WIN32*)
1072       # Extract the first word of "cl", so it can be a program name with args.
1073 set dummy cl; ac_word=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_word" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077   echo $ac_n "(cached) $ac_c" 1>&6
1078 else
1079   if test -n "$CC"; then
1080   ac_cv_prog_CC="$CC" # Let the user override the test.
1081 else
1082   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1083   for ac_dir in $PATH; do
1084     test -z "$ac_dir" && ac_dir=.
1085     if test -f $ac_dir/$ac_word; then
1086       ac_cv_prog_CC="cl"
1087       break
1088     fi
1089   done
1090   IFS="$ac_save_ifs"
1091 fi
1092 fi
1093 CC="$ac_cv_prog_CC"
1094 if test -n "$CC"; then
1095   echo "$ac_t""$CC" 1>&6
1096 else
1097   echo "$ac_t""no" 1>&6
1098 fi
1099  ;;
1100     esac
1101   fi
1102   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1103 fi
1104
1105 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1106 echo "configure:1107: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1107
1108 ac_ext=c
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling=$ac_cv_prog_cc_cross
1114
1115 cat > conftest.$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1118 main(){return(0);}
1119 EOF
1120 if { (eval echo configure:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1121   ac_cv_prog_cc_works=yes
1122   # If we can't run a trivial program, we are probably using a cross compiler.
1123   if (./conftest; exit) 2>/dev/null; then
1124     ac_cv_prog_cc_cross=no
1125   else
1126     ac_cv_prog_cc_cross=yes
1127   fi
1128 else
1129   echo "configure: failed program was:" >&5
1130   cat conftest.$ac_ext >&5
1131   ac_cv_prog_cc_works=no
1132 fi
1133 rm -fr conftest*
1134
1135 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1136 if test $ac_cv_prog_cc_works = no; then
1137   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1138 fi
1139 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1141 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1142 cross_compiling=$ac_cv_prog_cc_cross
1143
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147   echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149   cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151   yes;
1152 #endif
1153 EOF
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155   ac_cv_prog_gcc=yes
1156 else
1157   ac_cv_prog_gcc=no
1158 fi
1159 fi
1160
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1162
1163 if test $ac_cv_prog_gcc = yes; then
1164   GCC=yes
1165 else
1166   GCC=
1167 fi
1168
1169 ac_test_CFLAGS="${CFLAGS+set}"
1170 ac_save_CFLAGS="$CFLAGS"
1171 CFLAGS=
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175   echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177   echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1179   ac_cv_prog_cc_g=yes
1180 else
1181   ac_cv_prog_cc_g=no
1182 fi
1183 rm -f conftest*
1184
1185 fi
1186
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189   CFLAGS="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191   if test "$GCC" = yes; then
1192     CFLAGS="-g -O2"
1193   else
1194     CFLAGS="-g"
1195   fi
1196 else
1197   if test "$GCC" = yes; then
1198     CFLAGS="-O2"
1199   else
1200     CFLAGS=
1201   fi
1202 fi
1203
1204
1205 # If the native compiler is GCC, we can enable warnings even in stage1.  
1206 # That's useful for people building cross-compilers, or just running a
1207 # quick `make'.
1208 if test "x$GCC" = "xyes"; then 
1209   stage1_warn_cflags='$(WARN_CFLAGS)'
1210 else
1211   stage1_warn_cflags=""
1212 fi
1213
1214
1215 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether ${MAKE-make} sets \${MAKE}" >&5
1217 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1218 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1219   echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221   cat > conftestmake <<\EOF
1222 all:
1223         @echo 'ac_maketemp="${MAKE}"'
1224 EOF
1225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1226 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1227 if test -n "$ac_maketemp"; then
1228   eval ac_cv_prog_make_${ac_make}_set=yes
1229 else
1230   eval ac_cv_prog_make_${ac_make}_set=no
1231 fi
1232 rm -f conftestmake
1233 fi
1234 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1235   echo "$ac_t""yes" 1>&6
1236   SET_MAKE=
1237 else
1238   echo "$ac_t""no" 1>&6
1239   SET_MAKE="MAKE=${MAKE-make}"
1240 fi
1241
1242
1243 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether a default assembler was specified" >&5
1245 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1246     if test x"$with_gas" = x"no"; then
1247         echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1248     else
1249         echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1250     fi
1251 else
1252     echo "$ac_t""no" 1>&6
1253 fi
1254
1255 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1256 echo "configure:1257: checking whether a default linker was specified" >&5
1257 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1258     if test x"$with_gnu_ld" = x"no"; then
1259         echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1260     else
1261         echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1262     fi
1263 else
1264     echo "$ac_t""no" 1>&6
1265 fi
1266
1267 # Find some useful tools
1268 for ac_prog in mawk gawk nawk awk
1269 do
1270 # Extract the first word of "$ac_prog", so it can be a program name with args.
1271 set dummy $ac_prog; ac_word=$2
1272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273 echo "configure:1274: checking for $ac_word" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1275   echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277   if test -n "$AWK"; then
1278   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1279 else
1280   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1281   for ac_dir in $PATH; do
1282     test -z "$ac_dir" && ac_dir=.
1283     if test -f $ac_dir/$ac_word; then
1284       ac_cv_prog_AWK="$ac_prog"
1285       break
1286     fi
1287   done
1288   IFS="$ac_save_ifs"
1289 fi
1290 fi
1291 AWK="$ac_cv_prog_AWK"
1292 if test -n "$AWK"; then
1293   echo "$ac_t""$AWK" 1>&6
1294 else
1295   echo "$ac_t""no" 1>&6
1296 fi
1297
1298 test -n "$AWK" && break
1299 done
1300
1301 # Extract the first word of "flex", so it can be a program name with args.
1302 set dummy flex; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1306   echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308   if test -n "$LEX"; then
1309   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1310 else
1311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1312   for ac_dir in $PATH; do
1313     test -z "$ac_dir" && ac_dir=.
1314     if test -f $ac_dir/$ac_word; then
1315       ac_cv_prog_LEX="flex"
1316       break
1317     fi
1318   done
1319   IFS="$ac_save_ifs"
1320   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1321 fi
1322 fi
1323 LEX="$ac_cv_prog_LEX"
1324 if test -n "$LEX"; then
1325   echo "$ac_t""$LEX" 1>&6
1326 else
1327   echo "$ac_t""no" 1>&6
1328 fi
1329
1330 if test -z "$LEXLIB"
1331 then
1332   case "$LEX" in
1333   flex*) ac_lib=fl ;;
1334   *) ac_lib=l ;;
1335   esac
1336   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1337 echo "configure:1338: checking for yywrap in -l$ac_lib" >&5
1338 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1340   echo $ac_n "(cached) $ac_c" 1>&6
1341 else
1342   ac_save_LIBS="$LIBS"
1343 LIBS="-l$ac_lib  $LIBS"
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1347 /* Override any gcc2 internal prototype to avoid an error.  */
1348 /* We use char because int might match the return type of a gcc2
1349     builtin and then its argument prototype would still apply.  */
1350 char yywrap();
1351
1352 int main() {
1353 yywrap()
1354 ; return 0; }
1355 EOF
1356 if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1357   rm -rf conftest*
1358   eval "ac_cv_lib_$ac_lib_var=yes"
1359 else
1360   echo "configure: failed program was:" >&5
1361   cat conftest.$ac_ext >&5
1362   rm -rf conftest*
1363   eval "ac_cv_lib_$ac_lib_var=no"
1364 fi
1365 rm -f conftest*
1366 LIBS="$ac_save_LIBS"
1367
1368 fi
1369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1370   echo "$ac_t""yes" 1>&6
1371   LEXLIB="-l$ac_lib"
1372 else
1373   echo "$ac_t""no" 1>&6
1374 fi
1375
1376 fi
1377
1378 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether ln works" >&5
1380 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1381   echo $ac_n "(cached) $ac_c" 1>&6
1382 else
1383   rm -f conftestdata_t
1384 echo >conftestdata_f
1385 if ln conftestdata_f conftestdata_t 2>/dev/null
1386 then
1387   gcc_cv_prog_LN="ln"
1388 else
1389   if ln -s conftestdata_f conftestdata_t 2>/dev/null
1390   then
1391     gcc_cv_prog_LN="ln -s"
1392   else
1393     gcc_cv_prog_LN=cp
1394   fi
1395 fi
1396 rm -f conftestdata_f conftestdata_t
1397
1398 fi
1399 LN="$gcc_cv_prog_LN"
1400 if test "$gcc_cv_prog_LN" = "ln"; then
1401   echo "$ac_t""yes" 1>&6
1402 else
1403   if test "$gcc_cv_prog_LN" = "ln -s"; then
1404     echo "$ac_t""no, using ln -s" 1>&6
1405   else
1406     echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1407   fi
1408 fi
1409
1410 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1411 echo "configure:1412: checking whether ln -s works" >&5
1412 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1413   echo $ac_n "(cached) $ac_c" 1>&6
1414 else
1415   rm -f conftestdata_t
1416 echo >conftestdata_f
1417 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1418 then
1419   gcc_cv_prog_LN_S="ln -s"
1420 else
1421   if ln conftestdata_f conftestdata_t 2>/dev/null
1422   then
1423     gcc_cv_prog_LN_S=ln
1424   else
1425     gcc_cv_prog_LN_S=cp
1426   fi
1427 fi
1428 rm -f conftestdata_f conftestdata_t
1429
1430 fi
1431 LN_S="$gcc_cv_prog_LN_S"
1432 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1433   echo "$ac_t""yes" 1>&6
1434 else
1435   if test "$gcc_cv_prog_LN_S" = "ln"; then
1436     echo "$ac_t""no, using ln" 1>&6
1437   else
1438     echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1439   fi
1440 fi
1441
1442 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1443 echo "configure:1444: checking for volatile" >&5
1444 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1445   echo $ac_n "(cached) $ac_c" 1>&6
1446 else
1447   cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1450
1451 int main() {
1452 volatile int foo;
1453 ; return 0; }
1454 EOF
1455 if { (eval echo configure:1456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456   rm -rf conftest*
1457   gcc_cv_c_volatile=yes
1458 else
1459   echo "configure: failed program was:" >&5
1460   cat conftest.$ac_ext >&5
1461   rm -rf conftest*
1462   gcc_cv_c_volatile=no
1463 fi
1464 rm -f conftest*
1465 fi
1466
1467 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1468 if test $gcc_cv_c_volatile = yes ; then
1469   cat >> confdefs.h <<\EOF
1470 #define HAVE_VOLATILE 1
1471 EOF
1472
1473 fi
1474
1475 # Extract the first word of "ranlib", so it can be a program name with args.
1476 set dummy ranlib; ac_word=$2
1477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1478 echo "configure:1479: checking for $ac_word" >&5
1479 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1480   echo $ac_n "(cached) $ac_c" 1>&6
1481 else
1482   if test -n "$RANLIB"; then
1483   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1484 else
1485   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1486   for ac_dir in $PATH; do
1487     test -z "$ac_dir" && ac_dir=.
1488     if test -f $ac_dir/$ac_word; then
1489       ac_cv_prog_RANLIB="ranlib"
1490       break
1491     fi
1492   done
1493   IFS="$ac_save_ifs"
1494   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1495 fi
1496 fi
1497 RANLIB="$ac_cv_prog_RANLIB"
1498 if test -n "$RANLIB"; then
1499   echo "$ac_t""$RANLIB" 1>&6
1500 else
1501   echo "$ac_t""no" 1>&6
1502 fi
1503
1504 for ac_prog in 'bison -y' byacc
1505 do
1506 # Extract the first word of "$ac_prog", so it can be a program name with args.
1507 set dummy $ac_prog; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1511   echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513   if test -n "$YACC"; then
1514   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1515 else
1516   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1517   for ac_dir in $PATH; do
1518     test -z "$ac_dir" && ac_dir=.
1519     if test -f $ac_dir/$ac_word; then
1520       ac_cv_prog_YACC="$ac_prog"
1521       break
1522     fi
1523   done
1524   IFS="$ac_save_ifs"
1525 fi
1526 fi
1527 YACC="$ac_cv_prog_YACC"
1528 if test -n "$YACC"; then
1529   echo "$ac_t""$YACC" 1>&6
1530 else
1531   echo "$ac_t""no" 1>&6
1532 fi
1533
1534 test -n "$YACC" && break
1535 done
1536 test -n "$YACC" || YACC="yacc"
1537
1538 # Find a good install program.  We prefer a C program (faster),
1539 # so one script is as good as another.  But avoid the broken or
1540 # incompatible versions:
1541 # SysV /etc/install, /usr/sbin/install
1542 # SunOS /usr/etc/install
1543 # IRIX /sbin/install
1544 # AIX /bin/install
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1549 echo "configure:1550: checking for a BSD compatible install" >&5
1550 if test -z "$INSTALL"; then
1551 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1552   echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1555   for ac_dir in $PATH; do
1556     # Account for people who put trailing slashes in PATH elements.
1557     case "$ac_dir/" in
1558     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1559     *)
1560       # OSF1 and SCO ODT 3.0 have their own names for install.
1561       for ac_prog in ginstall scoinst install; do
1562         if test -f $ac_dir/$ac_prog; then
1563           if test $ac_prog = install &&
1564             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1565             # AIX install.  It has an incompatible calling convention.
1566             # OSF/1 installbsd also uses dspmsg, but is usable.
1567             :
1568           else
1569             ac_cv_path_install="$ac_dir/$ac_prog -c"
1570             break 2
1571           fi
1572         fi
1573       done
1574       ;;
1575     esac
1576   done
1577   IFS="$ac_save_IFS"
1578
1579 fi
1580   if test "${ac_cv_path_install+set}" = set; then
1581     INSTALL="$ac_cv_path_install"
1582   else
1583     # As a last resort, use the slow shell script.  We don't cache a
1584     # path for INSTALL within a source directory, because that will
1585     # break other packages using the cache if that directory is
1586     # removed, or if the path is relative.
1587     INSTALL="$ac_install_sh"
1588   fi
1589 fi
1590 echo "$ac_t""$INSTALL" 1>&6
1591
1592 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1593 # It thinks the first close brace ends the variable substitution.
1594 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1595
1596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1597
1598
1599 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1600 echo "configure:1601: checking how to run the C preprocessor" >&5
1601 # On Suns, sometimes $CPP names a directory.
1602 if test -n "$CPP" && test -d "$CPP"; then
1603   CPP=
1604 fi
1605 if test -z "$CPP"; then
1606 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1607   echo $ac_n "(cached) $ac_c" 1>&6
1608 else
1609     # This must be in double quotes, not single quotes, because CPP may get
1610   # substituted into the Makefile and "${CC-cc}" will confuse make.
1611   CPP="${CC-cc} -E"
1612   # On the NeXT, cc -E runs the code through the compiler's parser,
1613   # not just through cpp.
1614   cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 #include <assert.h>
1618 Syntax Error
1619 EOF
1620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1621 { (eval echo configure:1622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1623 if test -z "$ac_err"; then
1624   :
1625 else
1626   echo "$ac_err" >&5
1627   echo "configure: failed program was:" >&5
1628   cat conftest.$ac_ext >&5
1629   rm -rf conftest*
1630   CPP="${CC-cc} -E -traditional-cpp"
1631   cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #include <assert.h>
1635 Syntax Error
1636 EOF
1637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638 { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640 if test -z "$ac_err"; then
1641   :
1642 else
1643   echo "$ac_err" >&5
1644   echo "configure: failed program was:" >&5
1645   cat conftest.$ac_ext >&5
1646   rm -rf conftest*
1647   CPP="${CC-cc} -nologo -E"
1648   cat > conftest.$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1651 #include <assert.h>
1652 Syntax Error
1653 EOF
1654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1655 { (eval echo configure:1656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1657 if test -z "$ac_err"; then
1658   :
1659 else
1660   echo "$ac_err" >&5
1661   echo "configure: failed program was:" >&5
1662   cat conftest.$ac_ext >&5
1663   rm -rf conftest*
1664   CPP=/lib/cpp
1665 fi
1666 rm -f conftest*
1667 fi
1668 rm -f conftest*
1669 fi
1670 rm -f conftest*
1671   ac_cv_prog_CPP="$CPP"
1672 fi
1673   CPP="$ac_cv_prog_CPP"
1674 else
1675   ac_cv_prog_CPP="$CPP"
1676 fi
1677 echo "$ac_t""$CPP" 1>&6
1678
1679 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1680 echo "configure:1681: checking for ANSI C header files" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1682   echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684   cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <stdlib.h>
1688 #include <stdarg.h>
1689 #include <string.h>
1690 #include <float.h>
1691 EOF
1692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1693 { (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1695 if test -z "$ac_err"; then
1696   rm -rf conftest*
1697   ac_cv_header_stdc=yes
1698 else
1699   echo "$ac_err" >&5
1700   echo "configure: failed program was:" >&5
1701   cat conftest.$ac_ext >&5
1702   rm -rf conftest*
1703   ac_cv_header_stdc=no
1704 fi
1705 rm -f conftest*
1706
1707 if test $ac_cv_header_stdc = yes; then
1708   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <string.h>
1713 EOF
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715   egrep "memchr" >/dev/null 2>&1; then
1716   :
1717 else
1718   rm -rf conftest*
1719   ac_cv_header_stdc=no
1720 fi
1721 rm -f conftest*
1722
1723 fi
1724
1725 if test $ac_cv_header_stdc = yes; then
1726   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 #include <stdlib.h>
1731 EOF
1732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1733   egrep "free" >/dev/null 2>&1; then
1734   :
1735 else
1736   rm -rf conftest*
1737   ac_cv_header_stdc=no
1738 fi
1739 rm -f conftest*
1740
1741 fi
1742
1743 if test $ac_cv_header_stdc = yes; then
1744   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1745 if test "$cross_compiling" = yes; then
1746   :
1747 else
1748   cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 #include <ctype.h>
1752 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1753 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1755 int main () { int i; for (i = 0; i < 256; i++)
1756 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1757 exit (0); }
1758
1759 EOF
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1761 then
1762   :
1763 else
1764   echo "configure: failed program was:" >&5
1765   cat conftest.$ac_ext >&5
1766   rm -fr conftest*
1767   ac_cv_header_stdc=no
1768 fi
1769 rm -fr conftest*
1770 fi
1771
1772 fi
1773 fi
1774
1775 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1776 if test $ac_cv_header_stdc = yes; then
1777   cat >> confdefs.h <<\EOF
1778 #define STDC_HEADERS 1
1779 EOF
1780
1781 fi
1782
1783 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether time.h and sys/time.h may both be included" >&5
1785 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1786   echo $ac_n "(cached) $ac_c" 1>&6
1787 else
1788   cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 #include <sys/types.h>
1792 #include <sys/time.h>
1793 #include <time.h>
1794 int main() {
1795 struct tm *tp;
1796 ; return 0; }
1797 EOF
1798 if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1799   rm -rf conftest*
1800   ac_cv_header_time=yes
1801 else
1802   echo "configure: failed program was:" >&5
1803   cat conftest.$ac_ext >&5
1804   rm -rf conftest*
1805   ac_cv_header_time=no
1806 fi
1807 rm -f conftest*
1808 fi
1809
1810 echo "$ac_t""$ac_cv_header_time" 1>&6
1811 if test $ac_cv_header_time = yes; then
1812   cat >> confdefs.h <<\EOF
1813 #define TIME_WITH_SYS_TIME 1
1814 EOF
1815
1816 fi
1817
1818 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether string.h and strings.h may both be included" >&5
1820 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1821   echo $ac_n "(cached) $ac_c" 1>&6
1822 else
1823   cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 #include <string.h>
1827 #include <strings.h>
1828 int main() {
1829
1830 ; return 0; }
1831 EOF
1832 if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833   rm -rf conftest*
1834   gcc_cv_header_string=yes
1835 else
1836   echo "configure: failed program was:" >&5
1837   cat conftest.$ac_ext >&5
1838   rm -rf conftest*
1839   gcc_cv_header_string=no
1840 fi
1841 rm -f conftest*
1842 fi
1843
1844 echo "$ac_t""$gcc_cv_header_string" 1>&6
1845 if test $gcc_cv_header_string = yes; then
1846   cat >> confdefs.h <<\EOF
1847 #define STRING_WITH_STRINGS 1
1848 EOF
1849
1850 fi
1851
1852 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1853 echo "configure:1854: checking for sys/wait.h that is POSIX.1 compatible" >&5
1854 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1855   echo $ac_n "(cached) $ac_c" 1>&6
1856 else
1857   cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1860 #include <sys/types.h>
1861 #include <sys/wait.h>
1862 #ifndef WEXITSTATUS
1863 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1864 #endif
1865 #ifndef WIFEXITED
1866 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1867 #endif
1868 int main() {
1869 int s;
1870 wait (&s);
1871 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1872 ; return 0; }
1873 EOF
1874 if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1875   rm -rf conftest*
1876   ac_cv_header_sys_wait_h=yes
1877 else
1878   echo "configure: failed program was:" >&5
1879   cat conftest.$ac_ext >&5
1880   rm -rf conftest*
1881   ac_cv_header_sys_wait_h=no
1882 fi
1883 rm -f conftest*
1884 fi
1885
1886 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1887 if test $ac_cv_header_sys_wait_h = yes; then
1888   cat >> confdefs.h <<\EOF
1889 #define HAVE_SYS_WAIT_H 1
1890 EOF
1891
1892 fi
1893
1894 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
1895 do
1896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_hdr" >&5
1899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1900   echo $ac_n "(cached) $ac_c" 1>&6
1901 else
1902   cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1905 #include <$ac_hdr>
1906 EOF
1907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908 { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1910 if test -z "$ac_err"; then
1911   rm -rf conftest*
1912   eval "ac_cv_header_$ac_safe=yes"
1913 else
1914   echo "$ac_err" >&5
1915   echo "configure: failed program was:" >&5
1916   cat conftest.$ac_ext >&5
1917   rm -rf conftest*
1918   eval "ac_cv_header_$ac_safe=no"
1919 fi
1920 rm -f conftest*
1921 fi
1922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1923   echo "$ac_t""yes" 1>&6
1924     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1925   cat >> confdefs.h <<EOF
1926 #define $ac_tr_hdr 1
1927 EOF
1928  
1929 else
1930   echo "$ac_t""no" 1>&6
1931 fi
1932 done
1933
1934
1935 # Check for thread headers.
1936 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1937 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1938 echo "configure:1939: checking for thread.h" >&5
1939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1940   echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942   cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 #include <thread.h>
1946 EOF
1947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1948 { (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1950 if test -z "$ac_err"; then
1951   rm -rf conftest*
1952   eval "ac_cv_header_$ac_safe=yes"
1953 else
1954   echo "$ac_err" >&5
1955   echo "configure: failed program was:" >&5
1956   cat conftest.$ac_ext >&5
1957   rm -rf conftest*
1958   eval "ac_cv_header_$ac_safe=no"
1959 fi
1960 rm -f conftest*
1961 fi
1962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1963   echo "$ac_t""yes" 1>&6
1964   have_thread_h=yes
1965 else
1966   echo "$ac_t""no" 1>&6
1967 have_thread_h=
1968 fi
1969
1970 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1971 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1972 echo "configure:1973: checking for pthread.h" >&5
1973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1974   echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976   cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1979 #include <pthread.h>
1980 EOF
1981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1982 { (eval echo configure:1983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1984 if test -z "$ac_err"; then
1985   rm -rf conftest*
1986   eval "ac_cv_header_$ac_safe=yes"
1987 else
1988   echo "$ac_err" >&5
1989   echo "configure: failed program was:" >&5
1990   cat conftest.$ac_ext >&5
1991   rm -rf conftest*
1992   eval "ac_cv_header_$ac_safe=no"
1993 fi
1994 rm -f conftest*
1995 fi
1996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1997   echo "$ac_t""yes" 1>&6
1998   have_pthread_h=yes
1999 else
2000   echo "$ac_t""no" 1>&6
2001 have_pthread_h=
2002 fi
2003
2004
2005 # See if GNAT has been installed
2006 # Extract the first word of "gnatbind", so it can be a program name with args.
2007 set dummy gnatbind; ac_word=$2
2008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_word" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2011   echo $ac_n "(cached) $ac_c" 1>&6
2012 else
2013   if test -n "$gnat"; then
2014   ac_cv_prog_gnat="$gnat" # Let the user override the test.
2015 else
2016   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2017   for ac_dir in $PATH; do
2018     test -z "$ac_dir" && ac_dir=.
2019     if test -f $ac_dir/$ac_word; then
2020       ac_cv_prog_gnat="yes"
2021       break
2022     fi
2023   done
2024   IFS="$ac_save_ifs"
2025   test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2026 fi
2027 fi
2028 gnat="$ac_cv_prog_gnat"
2029 if test -n "$gnat"; then
2030   echo "$ac_t""$gnat" 1>&6
2031 else
2032   echo "$ac_t""no" 1>&6
2033 fi
2034
2035
2036 # See if the system preprocessor understands the ANSI C preprocessor
2037 # stringification operator.
2038 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether cpp understands the stringify operator" >&5
2040 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2041   echo $ac_n "(cached) $ac_c" 1>&6
2042 else
2043   cat > conftest.$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2046
2047 int main() {
2048 #define S(x)   #x
2049 char *test = S(foo);
2050 ; return 0; }
2051 EOF
2052 if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2053   rm -rf conftest*
2054   gcc_cv_c_have_stringify=yes
2055 else
2056   echo "configure: failed program was:" >&5
2057   cat conftest.$ac_ext >&5
2058   rm -rf conftest*
2059   gcc_cv_c_have_stringify=no
2060 fi
2061 rm -f conftest*
2062 fi
2063
2064 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2065 if test $gcc_cv_c_have_stringify = yes; then
2066   cat >> confdefs.h <<\EOF
2067 #define HAVE_CPP_STRINGIFY 1
2068 EOF
2069
2070 fi
2071
2072 # Use <inttypes.h> only if it exists,
2073 # doesn't clash with <sys/types.h>, and declares intmax_t.
2074 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2075 echo "configure:2076: checking for inttypes.h" >&5
2076 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2077   echo $ac_n "(cached) $ac_c" 1>&6
2078 else
2079   cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 #include <sys/types.h>
2083 #include <inttypes.h>
2084 int main() {
2085 intmax_t i = -1;
2086 ; return 0; }
2087 EOF
2088 if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2089   rm -rf conftest*
2090   gcc_cv_header_inttypes_h=yes
2091 else
2092   echo "configure: failed program was:" >&5
2093   cat conftest.$ac_ext >&5
2094   rm -rf conftest*
2095   gcc_cv_header_inttypes_h=no
2096 fi
2097 rm -f conftest*
2098 fi
2099
2100 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2101 if test $gcc_cv_header_inttypes_h = yes; then
2102   cat >> confdefs.h <<\EOF
2103 #define HAVE_INTTYPES_H 1
2104 EOF
2105
2106 fi
2107
2108 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2109         index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2110         sysconf isascii gettimeofday strsignal
2111 do
2112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2113 echo "configure:2114: checking for $ac_func" >&5
2114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2115   echo $ac_n "(cached) $ac_c" 1>&6
2116 else
2117   cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2120 /* System header to define __stub macros and hopefully few prototypes,
2121     which can conflict with char $ac_func(); below.  */
2122 #include <assert.h>
2123 /* Override any gcc2 internal prototype to avoid an error.  */
2124 /* We use char because int might match the return type of a gcc2
2125     builtin and then its argument prototype would still apply.  */
2126 char $ac_func();
2127
2128 int main() {
2129
2130 /* The GNU C library defines this for functions which it implements
2131     to always fail with ENOSYS.  Some functions are actually named
2132     something starting with __ and the normal name is an alias.  */
2133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2134 choke me
2135 #else
2136 $ac_func();
2137 #endif
2138
2139 ; return 0; }
2140 EOF
2141 if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2142   rm -rf conftest*
2143   eval "ac_cv_func_$ac_func=yes"
2144 else
2145   echo "configure: failed program was:" >&5
2146   cat conftest.$ac_ext >&5
2147   rm -rf conftest*
2148   eval "ac_cv_func_$ac_func=no"
2149 fi
2150 rm -f conftest*
2151 fi
2152
2153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2154   echo "$ac_t""yes" 1>&6
2155     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2156   cat >> confdefs.h <<EOF
2157 #define $ac_tr_func 1
2158 EOF
2159  
2160 else
2161   echo "$ac_t""no" 1>&6
2162 fi
2163 done
2164
2165
2166 # Make sure wchar_t is available
2167 #AC_CHECK_TYPE(wchar_t, unsigned int)
2168
2169 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2170 echo "configure:2171: checking for vprintf" >&5
2171 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2172   echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174   cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* System header to define __stub macros and hopefully few prototypes,
2178     which can conflict with char vprintf(); below.  */
2179 #include <assert.h>
2180 /* Override any gcc2 internal prototype to avoid an error.  */
2181 /* We use char because int might match the return type of a gcc2
2182     builtin and then its argument prototype would still apply.  */
2183 char vprintf();
2184
2185 int main() {
2186
2187 /* The GNU C library defines this for functions which it implements
2188     to always fail with ENOSYS.  Some functions are actually named
2189     something starting with __ and the normal name is an alias.  */
2190 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2191 choke me
2192 #else
2193 vprintf();
2194 #endif
2195
2196 ; return 0; }
2197 EOF
2198 if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2199   rm -rf conftest*
2200   eval "ac_cv_func_vprintf=yes"
2201 else
2202   echo "configure: failed program was:" >&5
2203   cat conftest.$ac_ext >&5
2204   rm -rf conftest*
2205   eval "ac_cv_func_vprintf=no"
2206 fi
2207 rm -f conftest*
2208 fi
2209
2210 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2211   echo "$ac_t""yes" 1>&6
2212   cat >> confdefs.h <<\EOF
2213 #define HAVE_VPRINTF 1
2214 EOF
2215
2216 else
2217   echo "$ac_t""no" 1>&6
2218 fi
2219
2220 if test "$ac_cv_func_vprintf" != yes; then
2221 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2222 echo "configure:2223: checking for _doprnt" >&5
2223 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2224   echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226   cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* System header to define __stub macros and hopefully few prototypes,
2230     which can conflict with char _doprnt(); below.  */
2231 #include <assert.h>
2232 /* Override any gcc2 internal prototype to avoid an error.  */
2233 /* We use char because int might match the return type of a gcc2
2234     builtin and then its argument prototype would still apply.  */
2235 char _doprnt();
2236
2237 int main() {
2238
2239 /* The GNU C library defines this for functions which it implements
2240     to always fail with ENOSYS.  Some functions are actually named
2241     something starting with __ and the normal name is an alias.  */
2242 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2243 choke me
2244 #else
2245 _doprnt();
2246 #endif
2247
2248 ; return 0; }
2249 EOF
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2251   rm -rf conftest*
2252   eval "ac_cv_func__doprnt=yes"
2253 else
2254   echo "configure: failed program was:" >&5
2255   cat conftest.$ac_ext >&5
2256   rm -rf conftest*
2257   eval "ac_cv_func__doprnt=no"
2258 fi
2259 rm -f conftest*
2260 fi
2261
2262 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2263   echo "$ac_t""yes" 1>&6
2264   cat >> confdefs.h <<\EOF
2265 #define HAVE_DOPRNT 1
2266 EOF
2267
2268 else
2269   echo "$ac_t""no" 1>&6
2270 fi
2271
2272 fi
2273
2274 vfprintf=
2275 doprint=
2276 if test $ac_cv_func_vprintf != yes ; then
2277   vfprintf=vfprintf.o
2278   if test $ac_cv_func__doprnt != yes ; then
2279     doprint=doprint.o
2280   fi
2281 fi
2282
2283
2284
2285 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2286 echo "configure:2287: checking whether the printf functions support %p" >&5
2287 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2288   echo $ac_n "(cached) $ac_c" 1>&6
2289 else
2290   if test "$cross_compiling" = yes; then
2291   gcc_cv_func_printf_ptr=no
2292 else
2293   cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 #include <stdio.h>
2297
2298 main()
2299 {
2300   char buf[64];
2301   char *p = buf, *q = NULL;
2302   sprintf(buf, "%p", p);
2303   sscanf(buf, "%p", &q);
2304   exit (p != q);
2305 }
2306 EOF
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2308 then
2309   gcc_cv_func_printf_ptr=yes
2310 else
2311   echo "configure: failed program was:" >&5
2312   cat conftest.$ac_ext >&5
2313   rm -fr conftest*
2314   gcc_cv_func_printf_ptr=no
2315 fi
2316 rm -fr conftest*
2317 fi
2318
2319 rm -f core core.* *.core
2320 fi
2321
2322 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2323 if test $gcc_cv_func_printf_ptr = yes ; then
2324   cat >> confdefs.h <<\EOF
2325 #define HAVE_PRINTF_PTR 1
2326 EOF
2327
2328 fi
2329
2330 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2331 echo "configure:2332: checking for pid_t" >&5
2332 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2333   echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335   cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 #include <sys/types.h>
2339 #if STDC_HEADERS
2340 #include <stdlib.h>
2341 #include <stddef.h>
2342 #endif
2343 EOF
2344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2345   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2346   rm -rf conftest*
2347   ac_cv_type_pid_t=yes
2348 else
2349   rm -rf conftest*
2350   ac_cv_type_pid_t=no
2351 fi
2352 rm -f conftest*
2353
2354 fi
2355 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2356 if test $ac_cv_type_pid_t = no; then
2357   cat >> confdefs.h <<\EOF
2358 #define pid_t int
2359 EOF
2360
2361 fi
2362
2363 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2364 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2365 echo "configure:2366: checking for vfork.h" >&5
2366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2367   echo $ac_n "(cached) $ac_c" 1>&6
2368 else
2369   cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 #include <vfork.h>
2373 EOF
2374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2375 { (eval echo configure:2376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2377 if test -z "$ac_err"; then
2378   rm -rf conftest*
2379   eval "ac_cv_header_$ac_safe=yes"
2380 else
2381   echo "$ac_err" >&5
2382   echo "configure: failed program was:" >&5
2383   cat conftest.$ac_ext >&5
2384   rm -rf conftest*
2385   eval "ac_cv_header_$ac_safe=no"
2386 fi
2387 rm -f conftest*
2388 fi
2389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2390   echo "$ac_t""yes" 1>&6
2391   cat >> confdefs.h <<\EOF
2392 #define HAVE_VFORK_H 1
2393 EOF
2394
2395 else
2396   echo "$ac_t""no" 1>&6
2397 fi
2398
2399 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2400 echo "configure:2401: checking for working vfork" >&5
2401 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2402   echo $ac_n "(cached) $ac_c" 1>&6
2403 else
2404   if test "$cross_compiling" = yes; then
2405   echo $ac_n "checking for vfork""... $ac_c" 1>&6
2406 echo "configure:2407: checking for vfork" >&5
2407 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2408   echo $ac_n "(cached) $ac_c" 1>&6
2409 else
2410   cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 /* System header to define __stub macros and hopefully few prototypes,
2414     which can conflict with char vfork(); below.  */
2415 #include <assert.h>
2416 /* Override any gcc2 internal prototype to avoid an error.  */
2417 /* We use char because int might match the return type of a gcc2
2418     builtin and then its argument prototype would still apply.  */
2419 char vfork();
2420
2421 int main() {
2422
2423 /* The GNU C library defines this for functions which it implements
2424     to always fail with ENOSYS.  Some functions are actually named
2425     something starting with __ and the normal name is an alias.  */
2426 #if defined (__stub_vfork) || defined (__stub___vfork)
2427 choke me
2428 #else
2429 vfork();
2430 #endif
2431
2432 ; return 0; }
2433 EOF
2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2435   rm -rf conftest*
2436   eval "ac_cv_func_vfork=yes"
2437 else
2438   echo "configure: failed program was:" >&5
2439   cat conftest.$ac_ext >&5
2440   rm -rf conftest*
2441   eval "ac_cv_func_vfork=no"
2442 fi
2443 rm -f conftest*
2444 fi
2445
2446 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2447   echo "$ac_t""yes" 1>&6
2448   :
2449 else
2450   echo "$ac_t""no" 1>&6
2451 fi
2452
2453 ac_cv_func_vfork_works=$ac_cv_func_vfork
2454 else
2455   cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 /* Thanks to Paul Eggert for this test.  */
2459 #include <stdio.h>
2460 #include <sys/types.h>
2461 #include <sys/stat.h>
2462 #ifdef HAVE_UNISTD_H
2463 #include <unistd.h>
2464 #endif
2465 #ifdef HAVE_VFORK_H
2466 #include <vfork.h>
2467 #endif
2468 /* On some sparc systems, changes by the child to local and incoming
2469    argument registers are propagated back to the parent.
2470    The compiler is told about this with #include <vfork.h>,
2471    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2472    Test for this by using a static variable whose address
2473    is put into a register that is clobbered by the vfork.  */
2474 static
2475 #ifdef __cplusplus
2476 sparc_address_test (int arg)
2477 #else
2478 sparc_address_test (arg) int arg;
2479 #endif
2480 {
2481   static pid_t child;
2482   if (!child) {
2483     child = vfork ();
2484     if (child < 0) {
2485       perror ("vfork");
2486       _exit(2);
2487     }
2488     if (!child) {
2489       arg = getpid();
2490       write(-1, "", 0);
2491       _exit (arg);
2492     }
2493   }
2494 }
2495 main() {
2496   pid_t parent = getpid ();
2497   pid_t child;
2498
2499   sparc_address_test ();
2500
2501   child = vfork ();
2502
2503   if (child == 0) {
2504     /* Here is another test for sparc vfork register problems.
2505        This test uses lots of local variables, at least
2506        as many local variables as main has allocated so far
2507        including compiler temporaries.  4 locals are enough for
2508        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2509        A buggy compiler should reuse the register of parent
2510        for one of the local variables, since it will think that
2511        parent can't possibly be used any more in this routine.
2512        Assigning to the local variable will thus munge parent
2513        in the parent process.  */
2514     pid_t
2515       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2516       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2517     /* Convince the compiler that p..p7 are live; otherwise, it might
2518        use the same hardware register for all 8 local variables.  */
2519     if (p != p1 || p != p2 || p != p3 || p != p4
2520         || p != p5 || p != p6 || p != p7)
2521       _exit(1);
2522
2523     /* On some systems (e.g. IRIX 3.3),
2524        vfork doesn't separate parent from child file descriptors.
2525        If the child closes a descriptor before it execs or exits,
2526        this munges the parent's descriptor as well.
2527        Test for this by closing stdout in the child.  */
2528     _exit(close(fileno(stdout)) != 0);
2529   } else {
2530     int status;
2531     struct stat st;
2532
2533     while (wait(&status) != child)
2534       ;
2535     exit(
2536          /* Was there some problem with vforking?  */
2537          child < 0
2538
2539          /* Did the child fail?  (This shouldn't happen.)  */
2540          || status
2541
2542          /* Did the vfork/compiler bug occur?  */
2543          || parent != getpid()
2544
2545          /* Did the file descriptor bug occur?  */
2546          || fstat(fileno(stdout), &st) != 0
2547          );
2548   }
2549 }
2550 EOF
2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2552 then
2553   ac_cv_func_vfork_works=yes
2554 else
2555   echo "configure: failed program was:" >&5
2556   cat conftest.$ac_ext >&5
2557   rm -fr conftest*
2558   ac_cv_func_vfork_works=no
2559 fi
2560 rm -fr conftest*
2561 fi
2562
2563 fi
2564
2565 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2566 if test $ac_cv_func_vfork_works = no; then
2567   cat >> confdefs.h <<\EOF
2568 #define vfork fork
2569 EOF
2570
2571 fi
2572
2573
2574 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2575         index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2576         strsignal
2577 do
2578 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2579 echo "configure:2580: checking whether $ac_func must be declared" >&5
2580 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2581   echo $ac_n "(cached) $ac_c" 1>&6
2582 else
2583   cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586
2587 #include <stdio.h>
2588 #ifdef STRING_WITH_STRINGS
2589 # include <string.h>
2590 # include <strings.h>
2591 #else
2592 # ifdef HAVE_STRING_H
2593 #  include <string.h>
2594 # else
2595 #  ifdef HAVE_STRINGS_H
2596 #   include <strings.h>
2597 #  endif
2598 # endif
2599 #endif
2600 #ifdef HAVE_STDLIB_H
2601 #include <stdlib.h>
2602 #endif
2603 #ifdef HAVE_UNISTD_H
2604 #include <unistd.h>
2605 #endif
2606 #ifndef HAVE_RINDEX
2607 #define rindex strrchr
2608 #endif
2609 #ifndef HAVE_INDEX
2610 #define index strchr
2611 #endif
2612
2613 int main() {
2614 char *(*pfn) = (char *(*)) $ac_func
2615 ; return 0; }
2616 EOF
2617 if { (eval echo configure:2618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2618   rm -rf conftest*
2619   eval "gcc_cv_decl_needed_$ac_func=no"
2620 else
2621   echo "configure: failed program was:" >&5
2622   cat conftest.$ac_ext >&5
2623   rm -rf conftest*
2624   eval "gcc_cv_decl_needed_$ac_func=yes"
2625 fi
2626 rm -f conftest*
2627 fi
2628
2629 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2630   echo "$ac_t""yes" 1>&6
2631   gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2632   cat >> confdefs.h <<EOF
2633 #define $gcc_tr_decl 1
2634 EOF
2635
2636 else
2637   echo "$ac_t""no" 1>&6
2638 fi
2639
2640 done
2641
2642
2643 for ac_func in getrlimit setrlimit
2644 do
2645 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2646 echo "configure:2647: checking whether $ac_func must be declared" >&5
2647 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2648   echo $ac_n "(cached) $ac_c" 1>&6
2649 else
2650   cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653
2654 #include <stdio.h>
2655 #ifdef STRING_WITH_STRINGS
2656 # include <string.h>
2657 # include <strings.h>
2658 #else
2659 # ifdef HAVE_STRING_H
2660 #  include <string.h>
2661 # else
2662 #  ifdef HAVE_STRINGS_H
2663 #   include <strings.h>
2664 #  endif
2665 # endif
2666 #endif
2667 #ifdef HAVE_STDLIB_H
2668 #include <stdlib.h>
2669 #endif
2670 #ifdef HAVE_UNISTD_H
2671 #include <unistd.h>
2672 #endif
2673 #ifndef HAVE_RINDEX
2674 #define rindex strrchr
2675 #endif
2676 #ifndef HAVE_INDEX
2677 #define index strchr
2678 #endif
2679 #include <sys/types.h>
2680 #ifdef HAVE_SYS_RESOURCE_H
2681 #include <sys/resource.h>
2682 #endif
2683
2684 int main() {
2685 char *(*pfn) = (char *(*)) $ac_func
2686 ; return 0; }
2687 EOF
2688 if { (eval echo configure:2689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2689   rm -rf conftest*
2690   eval "gcc_cv_decl_needed_$ac_func=no"
2691 else
2692   echo "configure: failed program was:" >&5
2693   cat conftest.$ac_ext >&5
2694   rm -rf conftest*
2695   eval "gcc_cv_decl_needed_$ac_func=yes"
2696 fi
2697 rm -f conftest*
2698 fi
2699
2700 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2701   echo "$ac_t""yes" 1>&6
2702   gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2703   cat >> confdefs.h <<EOF
2704 #define $gcc_tr_decl 1
2705 EOF
2706
2707 else
2708   echo "$ac_t""no" 1>&6
2709 fi
2710
2711 done
2712
2713
2714 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2715 echo "configure:2716: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2716 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2717   echo $ac_n "(cached) $ac_c" 1>&6
2718 else
2719   cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 #include <sys/types.h>
2723 #include <signal.h>
2724 /* NetBSD declares sys_siglist in unistd.h.  */
2725 #ifdef HAVE_UNISTD_H
2726 #include <unistd.h>
2727 #endif
2728 int main() {
2729 char *msg = *(sys_siglist + 1);
2730 ; return 0; }
2731 EOF
2732 if { (eval echo configure:2733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2733   rm -rf conftest*
2734   ac_cv_decl_sys_siglist=yes
2735 else
2736   echo "configure: failed program was:" >&5
2737   cat conftest.$ac_ext >&5
2738   rm -rf conftest*
2739   ac_cv_decl_sys_siglist=no
2740 fi
2741 rm -f conftest*
2742 fi
2743
2744 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2745 if test $ac_cv_decl_sys_siglist = yes; then
2746   cat >> confdefs.h <<\EOF
2747 #define SYS_SIGLIST_DECLARED 1
2748 EOF
2749
2750 fi
2751
2752
2753 # File extensions
2754 manext='.1'
2755 objext='.o'
2756
2757
2758
2759 build_xm_file=
2760 build_xm_defines=
2761 build_install_headers_dir=install-headers-tar
2762 build_exeext=
2763 host_xm_file=
2764 host_xm_defines=
2765 host_xmake_file=
2766 host_truncate_target=
2767 host_exeext=
2768
2769 # Decode the host machine, then the target machine.
2770 # For the host machine, we save the xm_file variable as host_xm_file;
2771 # then we decode the target machine and forget everything else
2772 # that came from the host machine.
2773 for machine in $build $host $target; do
2774
2775         out_file=
2776         xmake_file=
2777         tmake_file=
2778         extra_headers=
2779         extra_passes=
2780         extra_parts=
2781         extra_programs=
2782         extra_objs=
2783         extra_host_objs=
2784         extra_gcc_objs=
2785         xm_defines=
2786         float_format=
2787         # Set this to force installation and use of collect2.
2788         use_collect2=
2789         # Set this to override the default target model.
2790         target_cpu_default=
2791         # Set this to control which fixincludes program to use.
2792         if test x$fast_fixinc != xyes; then
2793                 fixincludes=fixincludes
2794         else fixincludes=fixinc.sh ; fi
2795         # Set this to control how the header file directory is installed.
2796         install_headers_dir=install-headers-tar
2797         # Set this to a non-empty list of args to pass to cpp if the target
2798         # wants its .md file passed through cpp.
2799         md_cppflags=
2800         # Set this if directory names should be truncated to 14 characters.
2801         truncate_target=
2802         # Set this if gdb needs a dir command with `dirname $out_file`
2803         gdb_needs_out_file_path=
2804         # Set this if the build machine requires executables to have a
2805         # file name suffix.
2806         exeext=
2807         # Set this to control which thread package will be used.
2808         thread_file=
2809         # Reinitialize these from the flag values every loop pass, since some
2810         # configure entries modify them.
2811         gas="$gas_flag"
2812         gnu_ld="$gnu_ld_flag"
2813         enable_threads=$enable_threads_flag
2814
2815         # Set default cpu_type, tm_file and xm_file so it can be updated in
2816         # each machine entry.
2817         cpu_type=`echo $machine | sed 's/-.*$//'`
2818         case $machine in
2819         alpha*-*-*)
2820                 cpu_type=alpha
2821                 ;;
2822         arm*-*-*)
2823                 cpu_type=arm
2824                 ;;
2825         c*-convex-*)
2826                 cpu_type=convex
2827                 ;;
2828         i[34567]86-*-*)
2829                 cpu_type=i386
2830                 ;;
2831         hppa*-*-*)
2832                 cpu_type=pa
2833                 ;;
2834         m68000-*-*)
2835                 cpu_type=m68k
2836                 ;;
2837         mips*-*-*)
2838                 cpu_type=mips
2839                 ;;
2840         powerpc*-*-*)
2841                 cpu_type=rs6000
2842                 ;;
2843         pyramid-*-*)
2844                 cpu_type=pyr
2845                 ;;
2846         sparc*-*-*)
2847                 cpu_type=sparc
2848                 ;;
2849         esac
2850
2851         tm_file=${cpu_type}/${cpu_type}.h
2852         xm_file=${cpu_type}/xm-${cpu_type}.h
2853         
2854         # Set the default macros to define for GNU/Linux systems.
2855         case $machine in
2856         *-*-linux-gnu*)
2857                 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2858                 ;;
2859         esac
2860
2861         case $machine in
2862         # Support site-specific machine types.
2863         *local*)
2864                 cpu_type=`echo $machine | sed -e 's/-.*//'`
2865                 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2866                 xm_file=${cpu_type}/xm-$rest.h
2867                 tm_file=${cpu_type}/$rest.h
2868                 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2869                 then xmake_file=${cpu_type}/x-$rest; \
2870                 else true; \
2871                 fi
2872                 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2873                 then tmake_file=${cpu_type}/t-$rest; \
2874                 else true; \
2875                 fi
2876                 ;;
2877         1750a-*-*)
2878                 ;;
2879         a29k-*-bsd* | a29k-*-sym1*)
2880                 tm_file="${tm_file} a29k/unix.h"
2881                 xm_defines=USG
2882                 xmake_file=a29k/x-unix
2883                 use_collect2=yes
2884                 ;;
2885         a29k-*-udi | a29k-*-coff)
2886                 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2887                 tmake_file=a29k/t-a29kbare
2888                 ;;
2889         a29k-wrs-vxworks*)
2890                 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2891                 tmake_file=a29k/t-vx29k
2892                 extra_parts="crtbegin.o crtend.o"
2893                 thread_file='vxworks'
2894                 ;;
2895         a29k-*-*)                       # Default a29k environment.
2896                 use_collect2=yes
2897                 ;;
2898         alpha*-*-linux-gnuecoff*)
2899                 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2900                 target_cpu_default="MASK_GAS"
2901                 gas=no
2902                 xmake_file=none
2903                 gas=yes gnu_ld=yes
2904                 ;;
2905         alpha*-*-linux-gnulibc1*)
2906                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2907                 target_cpu_default="MASK_GAS"
2908                 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2909                 extra_parts="crtbegin.o crtend.o"
2910                 fixincludes=fixinc.wrap
2911                 xmake_file=none
2912                 gas=yes gnu_ld=yes
2913                 if test x$enable_threads = xyes; then
2914                         thread_file='posix'
2915                 fi
2916                 ;;
2917         alpha*-*-linux-gnu*)
2918                 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2919                 target_cpu_default="MASK_GAS"
2920                 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2921                 extra_parts="crtbegin.o crtend.o"
2922                 xmake_file=none
2923                 fixincludes=Makefile.in
2924                 gas=yes gnu_ld=yes
2925                 if test x$enable_threads = xyes; then
2926                         thread_file='posix'
2927                 fi
2928                 ;;
2929         alpha*-*-netbsd*)
2930                 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2931                 target_cpu_default="MASK_GAS"
2932                 tmake_file="alpha/t-crtbe"
2933                 extra_parts="crtbegin.o crtend.o"
2934                 xmake_file=none
2935                 fixincludes=fixinc.wrap
2936                 gas=yes gnu_ld=yes
2937                 ;;
2938                 
2939         alpha*-dec-osf*)
2940                 if test x$stabs = xyes
2941                 then
2942                         tm_file="${tm_file} dbx.h"
2943                 fi
2944                 if test x$gas != xyes
2945                 then
2946                         extra_passes="mips-tfile mips-tdump"
2947                 fi
2948                 use_collect2=yes
2949                 case $machine in
2950                   *-*-osf1*)
2951                     tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2952                     ;;
2953                   *-*-osf[23]*)
2954                     tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
2955                     ;;
2956                   *-*-osf4*)
2957                     tm_file="${tm_file} alpha/osf.h"
2958                     # Some versions of OSF4 (specifically X4.0-9 296.7) have
2959                     # a broken tar, so we use cpio instead.
2960                     install_headers_dir=install-headers-cpio
2961                     ;;
2962                 esac
2963                 case $machine in
2964                   *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2965                     target_cpu_default=MASK_SUPPORT_ARCH
2966                     ;;
2967                 esac
2968                 ;;
2969         alpha*-*-vxworks*)
2970                 tm_file="${tm_file} dbx.h alpha/vxworks.h"
2971                 if  x$gas != xyes 
2972                 then
2973                         extra_passes="mips-tfile mips-tdump"
2974                 fi
2975                 use_collect2=yes
2976                 ;;
2977         alpha*-*-winnt*)
2978                 tm_file="${tm_file} alpha/win-nt.h"
2979                 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2980                 tmake_file=t-libc-ok
2981                 xmake_file=winnt/x-winnt
2982                 extra_host_objs=oldnames.o
2983                 extra_gcc_objs="spawnv.o oldnames.o"
2984                 fixincludes=fixinc.winnt
2985                 if test x$gnu_ld != xyes
2986                 then
2987                         extra_programs=ld.exe
2988                 fi
2989                 if test x$enable_threads = xyes; then
2990                         thread_file='win32'
2991                 fi
2992                 ;;
2993         alpha*-dec-vms*)
2994                 tm_file=alpha/vms.h
2995                 xm_file="${xm_file} alpha/xm-vms.h"
2996                 tmake_file=alpha/t-vms
2997                 fixincludes=Makefile.in
2998                 ;;
2999         arc-*-elf*)
3000                 extra_parts="crtinit.o crtfini.o"
3001                 ;;
3002         arm-*-coff* | armel-*-coff*)
3003                 tm_file=arm/coff.h
3004                 tmake_file=arm/t-bare
3005                 ;;
3006         arm-*-riscix1.[01]*)            # Acorn RISC machine (early versions)
3007                 tm_file=arm/riscix1-1.h
3008                 use_collect2=yes
3009                 ;;
3010         arm-*-riscix*)                  # Acorn RISC machine
3011                 if test x$gas = xyes
3012                 then
3013                     tm_file=arm/rix-gas.h
3014                 else
3015                     tm_file=arm/riscix.h
3016                 fi
3017                 xmake_file=arm/x-riscix
3018                 tmake_file=arm/t-riscix
3019                 use_collect2=yes
3020                 ;;
3021         arm-semi-aout | armel-semi-aout)
3022                 tm_file=arm/semi.h
3023                 tmake_file=arm/t-semi
3024                 fixincludes=Makefile.in # There is nothing to fix
3025                 ;;
3026         arm-semi-aof | armel-semi-aof)
3027                 tm_file=arm/semiaof.h
3028                 tmake_file=arm/t-semiaof
3029                 fixincludes=Makefile.in # There is nothing to fix
3030                 ;;
3031         arm*-*-netbsd*)
3032                 tm_file=arm/netbsd.h
3033                 xm_file="arm/xm-netbsd.h ${xm_file}"
3034                 tmake_file="t-netbsd arm/t-netbsd"
3035                 # On NetBSD, the headers are already okay, except for math.h.
3036                 fixincludes=fixinc.wrap
3037                 ;;
3038         arm*-*-linux-gnuaout*)          # ARM GNU/Linux with a.out
3039                 cpu_type=arm
3040                 xmake_file=x-linux
3041                 tm_file=arm/linux-aout.h
3042                 tmake_file=arm/t-linux
3043                 fixincludes=Makefile.in
3044                 gnu_ld=yes
3045                 ;;
3046         arm*-*-linux-gnu*)              # ARM GNU/Linux with ELF
3047                 xm_file=arm/xm-linux.h
3048                 xmake_file=x-linux
3049                 case $machine in
3050                 armv2*-*-*)
3051                         tm_file=arm/linux-elf26.h
3052                         ;;
3053                 *)
3054                         tm_file=arm/linux-elf.h
3055                         ;;
3056                 esac
3057                 tmake_file="t-linux arm/t-linux"
3058                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3059                 fixincludes=Makefile.in         # Nothing to fix
3060                 gnu_ld=yes
3061                 ;;
3062         arm*-*-aout)
3063                 tm_file=arm/aout.h
3064                 tmake_file=arm/t-bare
3065                 ;;
3066         arm*-*-elf)
3067                 tm_file=arm/unknown-elf.h
3068                 tmake_file=arm/t-arm-elf
3069                 ;;
3070         c1-convex-*)                    # Convex C1
3071                 target_cpu_default=1
3072                 use_collect2=yes
3073                 fixincludes=Makefile.in
3074                 ;;
3075         c2-convex-*)                    # Convex C2
3076                 target_cpu_default=2
3077                 use_collect2=yes
3078                 fixincludes=Makefile.in
3079                 ;;
3080         c32-convex-*)
3081                 target_cpu_default=4
3082                 use_collect2=yes
3083                 fixincludes=Makefile.in
3084                 ;;
3085         c34-convex-*)
3086                 target_cpu_default=8
3087                 use_collect2=yes
3088                 fixincludes=Makefile.in
3089                 ;;
3090         c38-convex-*)
3091                 target_cpu_default=16           
3092                 use_collect2=yes
3093                 fixincludes=Makefile.in
3094                 ;;
3095         c4x-*)
3096                 cpu_type=c4x
3097                 tmake_file=c4x/t-c4x
3098                 ;;
3099         clipper-intergraph-clix*)
3100                 tm_file="${tm_file} svr3.h clipper/clix.h"
3101                 xm_file=clipper/xm-clix.h
3102                 xmake_file=clipper/x-clix
3103                 extra_headers=va-clipper.h
3104                 extra_parts="crtbegin.o crtend.o"
3105                 install_headers_dir=install-headers-cpio
3106                 ;;
3107         dsp16xx-*)
3108                 ;;
3109         elxsi-elxsi-*)
3110                 use_collect2=yes
3111                 ;;
3112 # This hasn't been upgraded to GCC 2.
3113 #       fx80-alliant-*)                 # Alliant FX/80
3114 #               ;;
3115         h8300-*-*)
3116                 float_format=i32
3117                 ;;
3118         hppa1.1-*-pro*)
3119                 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3120                 xm_file=pa/xm-papro.h
3121                 tmake_file=pa/t-pro
3122                 ;;
3123         hppa1.1-*-osf*)
3124                 target_cpu_default=1
3125                 tm_file="${tm_file} pa/pa-osf.h"
3126                 use_collect2=yes
3127                 fixincludes=Makefile.in
3128                 ;;
3129         hppa1.1-*-rtems*)
3130                 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3131                 xm_file=pa/xm-papro.h
3132                 tmake_file=pa/t-pro
3133                 ;;
3134         hppa1.0-*-osf*)
3135                 tm_file="${tm_file} pa/pa-osf.h"
3136                 use_collect2=yes
3137                 fixincludes=Makefile.in
3138                 ;;
3139         hppa1.1-*-bsd*)
3140                 target_cpu_default=1
3141                 use_collect2=yes
3142                 fixincludes=Makefile.in
3143                 ;;
3144         hppa1.0-*-bsd*)
3145                 use_collect2=yes
3146                 fixincludes=Makefile.in
3147                 ;;
3148         hppa1.0-*-hpux7*)
3149                 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3150                 xm_file=pa/xm-pahpux.h
3151                 xmake_file=pa/x-pa-hpux
3152                 if test x$gas = xyes
3153                 then
3154                         tm_file="${tm_file} pa/gas.h"
3155                 fi
3156                 install_headers_dir=install-headers-cpio
3157                 use_collect2=yes
3158                 ;;
3159         hppa1.0-*-hpux8.0[0-2]*)
3160                 tm_file="${tm_file} pa/pa-hpux.h"
3161                 xm_file=pa/xm-pahpux.h
3162                 xmake_file=pa/x-pa-hpux
3163                 if test x$gas = xyes
3164                 then
3165                         tm_file="${tm_file} pa/pa-gas.h"
3166                 else
3167                         tm_file="pa/pa-oldas.h ${tm_file}"
3168                 fi
3169                 install_headers_dir=install-headers-cpio
3170                 use_collect2=yes
3171                 ;;
3172         hppa1.1-*-hpux8.0[0-2]*)
3173                 target_cpu_default=1
3174                 tm_file="${tm_file} pa/pa-hpux.h"
3175                 xm_file=pa/xm-pahpux.h
3176                 xmake_file=pa/x-pa-hpux
3177                 if test x$gas = xyes
3178                 then
3179                         tm_file="${tm_file} pa/pa-gas.h"
3180                 else
3181                         tm_file="pa/pa-oldas.h ${tm_file}"
3182                 fi
3183                 install_headers_dir=install-headers-cpio
3184                 use_collect2=yes
3185                 ;;
3186         hppa1.1-*-hpux8*)
3187                 target_cpu_default=1
3188                 tm_file="${tm_file} pa/pa-hpux.h"
3189                 xm_file=pa/xm-pahpux.h
3190                 xmake_file=pa/x-pa-hpux
3191                 if test x$gas = xyes
3192                 then
3193                         tm_file="${tm_file} pa/pa-gas.h"
3194                 fi
3195                 install_headers_dir=install-headers-cpio
3196                 use_collect2=yes
3197                 ;;
3198         hppa1.0-*-hpux8*)
3199                 tm_file="${tm_file} pa/pa-hpux.h"
3200                 xm_file=pa/xm-pahpux.h
3201                 xmake_file=pa/x-pa-hpux
3202                 if test x$gas = xyes
3203                 then
3204                         tm_file="${tm_file} pa/pa-gas.h"
3205                 fi
3206                 install_headers_dir=install-headers-cpio
3207                 use_collect2=yes
3208                 ;;
3209         hppa1.1-*-hpux10*)
3210                 target_cpu_default=1
3211                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3212                 xm_file=pa/xm-pahpux.h
3213                 xmake_file=pa/x-pa-hpux
3214                 tmake_file=pa/t-pa
3215                 if test x$gas = xyes
3216                 then
3217                         tm_file="${tm_file} pa/pa-gas.h"
3218                 fi
3219                 if test x$enable_threads = x; then
3220                     enable_threads=$have_pthread_h
3221                 fi
3222                 if test x$enable_threads = xyes; then
3223                         thread_file='dce'
3224                         tmake_file="${tmake_file} pa/t-dce-thr"
3225                 fi
3226                 install_headers_dir=install-headers-cpio
3227                 use_collect2=yes
3228                 ;;
3229         hppa1.0-*-hpux10*)
3230                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3231                 xm_file=pa/xm-pahpux.h
3232                 xmake_file=pa/x-pa-hpux
3233                 if test x$gas = xyes
3234                 then
3235                         tm_file="${tm_file} pa/pa-gas.h"
3236                 fi
3237                 if test x$enable_threads = x; then
3238                     enable_threads=$have_pthread_h
3239                 fi
3240                 if test x$enable_threads = xyes; then
3241                         thread_file='dce'
3242                         tmake_file="${tmake_file} pa/t-dce-thr"
3243                 fi
3244                 install_headers_dir=install-headers-cpio
3245                 use_collect2=yes
3246                 ;;
3247         hppa1.1-*-hpux*)
3248                 target_cpu_default=1
3249                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3250                 xm_file=pa/xm-pahpux.h
3251                 xmake_file=pa/x-pa-hpux
3252                 if test x$gas = xyes
3253                 then
3254                         tm_file="${tm_file} pa/pa-gas.h"
3255                 fi
3256                 install_headers_dir=install-headers-cpio
3257                 use_collect2=yes
3258                 ;;
3259         hppa1.0-*-hpux*)
3260                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3261                 xm_file=pa/xm-pahpux.h
3262                 xmake_file=pa/x-pa-hpux
3263                 if test x$gas = xyes
3264                 then
3265                         tm_file="${tm_file} pa/pa-gas.h"
3266                 fi
3267                 install_headers_dir=install-headers-cpio
3268                 use_collect2=yes
3269                 ;;
3270         hppa1.1-*-hiux*)
3271                 target_cpu_default=1
3272                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3273                 xm_file=pa/xm-pahpux.h
3274                 xmake_file=pa/x-pa-hpux
3275                 if test x$gas = xyes
3276                 then
3277                         tm_file="${tm_file} pa/pa-gas.h"
3278                 fi
3279                 install_headers_dir=install-headers-cpio
3280                 use_collect2=yes
3281                 ;;
3282         hppa1.0-*-hiux*)
3283                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3284                 xm_file=pa/xm-pahpux.h
3285                 xmake_file=pa/x-pa-hpux
3286                 if test x$gas = xyes
3287                 then
3288                         tm_file="${tm_file} pa/pa-gas.h"
3289                 fi
3290                 install_headers_dir=install-headers-cpio
3291                 use_collect2=yes
3292                 ;;
3293         hppa*-*-lites*)
3294                 target_cpu_default=1
3295                 use_collect2=yes
3296                 fixincludes=Makefile.in
3297                 ;;
3298         i370-*-mvs*)
3299                 ;;
3300         i[34567]86-ibm-aix*)            # IBM PS/2 running AIX
3301                 if test x$gas = xyes
3302                 then
3303                         tm_file=i386/aix386.h
3304                         extra_parts="crtbegin.o crtend.o"
3305                         tmake_file=i386/t-crtstuff
3306                 else
3307                         tm_file=i386/aix386ng.h
3308                         use_collect2=yes
3309                 fi
3310                 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3311                 xm_defines=USG
3312                 xmake_file=i386/x-aix
3313                 ;;
3314         i[34567]86-ncr-sysv4*)          # NCR 3000 - ix86 running system V.4
3315                 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3316                 xm_defines="USG POSIX SMALL_ARG_MAX"
3317                 xmake_file=i386/x-ncr3000
3318                 if test x$stabs = xyes -a x$gas = xyes
3319                 then
3320                         tm_file=i386/sysv4gdb.h
3321                 else
3322                         tm_file=i386/sysv4.h
3323                 fi
3324                 extra_parts="crtbegin.o crtend.o"
3325                 tmake_file=i386/t-crtpic
3326                 ;;
3327         i[34567]86-next-*)
3328                 tm_file=i386/next.h
3329                 xm_file=i386/xm-next.h
3330                 tmake_file=i386/t-next
3331                 xmake_file=i386/x-next
3332                 extra_objs=nextstep.o
3333                 extra_parts="crtbegin.o crtend.o"
3334                 if test x$enable_threads = xyes; then
3335                         thread_file='mach'
3336                 fi
3337                 ;;
3338         i[34567]86-sequent-bsd*)                # 80386 from Sequent
3339                 use_collect2=yes
3340                 if test x$gas = xyes
3341                 then
3342                         tm_file=i386/seq-gas.h
3343                 else
3344                         tm_file=i386/sequent.h
3345                 fi
3346                 ;;
3347         i[34567]86-sequent-ptx1*)
3348                 xm_defines="USG SVR3"
3349                 xmake_file=i386/x-sysv3
3350                 tm_file=i386/seq-sysv3.h
3351                 tmake_file=i386/t-crtstuff
3352                 fixincludes=fixinc.ptx
3353                 extra_parts="crtbegin.o crtend.o"
3354                 install_headers_dir=install-headers-cpio
3355                 ;;
3356         i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3357                 xm_defines="USG SVR3"
3358                 xmake_file=i386/x-sysv3
3359                 tm_file=i386/seq2-sysv3.h
3360                 tmake_file=i386/t-crtstuff
3361                 extra_parts="crtbegin.o crtend.o"
3362                 fixincludes=fixinc.ptx
3363                 install_headers_dir=install-headers-cpio
3364                 ;;
3365         i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3366                 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3367                 xm_defines="USG POSIX SMALL_ARG_MAX"
3368                 xmake_file=x-svr4
3369                 tm_file=i386/ptx4-i.h
3370                 tmake_file=t-svr4
3371                 extra_parts="crtbegin.o crtend.o"
3372                 fixincludes=fixinc.ptx
3373                 install_headers_dir=install-headers-cpio
3374                 ;;
3375         i386-sun-sunos*)                # Sun i386 roadrunner
3376                 xm_defines=USG
3377                 tm_file=i386/sun.h
3378                 use_collect2=yes
3379                 ;;
3380         i[34567]86-wrs-vxworks*)
3381                 tm_file=i386/vxi386.h
3382                 tmake_file=i386/t-i386bare
3383                 ;;
3384         i[34567]86-*-aout*)
3385                 tm_file=i386/i386-aout.h
3386                 tmake_file=i386/t-i386bare
3387                 ;;
3388         i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3389                 tm_file=i386/bsd386.h
3390 #               tmake_file=t-libc-ok
3391                 ;;
3392         i[34567]86-*-bsd*)
3393                 tm_file=i386/386bsd.h
3394 #               tmake_file=t-libc-ok
3395 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3396 #               use_collect2=yes
3397                 ;;
3398         i[34567]86-*-freebsdelf*)
3399                 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
3400                 # On FreeBSD, the headers are already ok, except for math.h.
3401                 fixincludes=fixinc.wrap
3402                 tmake_file=i386/t-freebsd
3403                 gas=yes
3404                 gnu_ld=yes
3405                 stabs=yes
3406                 ;;
3407         i[34567]86-*-freebsd*)
3408                 tm_file=i386/freebsd.h
3409                 # On FreeBSD, the headers are already ok, except for math.h.
3410                 fixincludes=fixinc.wrap
3411                 tmake_file=i386/t-freebsd
3412                 ;;
3413         # We are hoping OpenBSD is still close enough to NetBSD that we can
3414         # share the configurations.
3415         i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
3416                 tm_file=i386/netbsd.h
3417                 # On NetBSD, the headers are already okay, except for math.h.
3418                 fixincludes=fixinc.wrap
3419                 tmake_file=t-netbsd
3420                 ;;
3421         i[34567]86-*-coff*)
3422                 tm_file=i386/i386-coff.h
3423                 tmake_file=i386/t-i386bare
3424                 ;;
3425         i[34567]86-*-isc*)              # 80386 running ISC system
3426                 xm_file="${xm_file} i386/xm-isc.h"
3427                 xm_defines="USG SVR3"
3428                 case $machine in
3429                   i[34567]86-*-isc[34]*)
3430                     xmake_file=i386/x-isc3
3431                     ;;
3432                   *)
3433                     xmake_file=i386/x-isc
3434                     ;;
3435                 esac
3436                 if test x$gas = xyes -a x$stabs = xyes
3437                 then
3438                         tm_file=i386/iscdbx.h
3439                         tmake_file=i386/t-svr3dbx
3440                         extra_parts="svr3.ifile svr3z.ifile"
3441                 else
3442                         tm_file=i386/isccoff.h
3443                         tmake_file=i386/t-crtstuff
3444                         extra_parts="crtbegin.o crtend.o"
3445                 fi
3446                 install_headers_dir=install-headers-cpio
3447                 ;;
3448         i[34567]86-*-linux-gnuoldld*)   # Intel 80386's running GNU/Linux
3449                                         # pre BFD linkers
3450                 xmake_file=x-linux-aout
3451                 tmake_file="t-linux-aout i386/t-crtstuff"
3452                 tm_file=i386/linux-oldld.h
3453                 fixincludes=Makefile.in #On Linux, the headers are ok already.
3454                 gnu_ld=yes
3455                 float_format=i386
3456                 ;;
3457         i[34567]86-*-linux-gnuaout*)    # Intel 80386's running GNU/Linux
3458                 xmake_file=x-linux-aout
3459                 tmake_file="t-linux-aout i386/t-crtstuff"
3460                 tm_file=i386/linux-aout.h
3461                 fixincludes=Makefile.in #On Linux, the headers are ok already.
3462                 gnu_ld=yes
3463                 float_format=i386
3464                 ;;
3465         i[34567]86-*-linux-gnulibc1)    # Intel 80386's running GNU/Linux
3466                                         # GNU/Linux C library 5
3467                 xmake_file=x-linux      
3468                 tm_file=i386/linux.h    
3469                 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3470                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3471                 fixincludes=Makefile.in #On Linux, the headers are ok already.
3472                 gnu_ld=yes
3473                 float_format=i386
3474                 if test x$enable_threads = xyes; then
3475                         thread_file='single'
3476                 fi
3477                 ;;
3478         i[34567]86-*-linux-gnu*)        # Intel 80386's running GNU/Linux
3479                                         # aka GNU/Linux C library 6
3480                 xmake_file=x-linux
3481                 tm_file=i386/linux.h
3482                 tmake_file="t-linux i386/t-crtstuff"
3483                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3484                 fixincludes=Makefile.in #On Linux, the headers are ok already.
3485                 gnu_ld=yes
3486                 float_format=i386
3487                 if test x$enable_threads = xyes; then
3488                         thread_file='posix'
3489                 fi
3490                 ;;
3491         i[34567]86-*-gnu*)
3492                 ;;
3493         i[34567]86-go32-msdos | i[34567]86-*-go32*)
3494                 xm_file=i386/xm-go32.h
3495                 tm_file=i386/go32.h
3496                 tmake_file=i386/t-go32
3497                 ;;
3498         i[34567]86-pc-msdosdjgpp*)
3499                 xm_file=i386/xm-go32.h
3500                 tm_file=i386/go32.h
3501                 tmake_file=i386/t-go32
3502                 gnu_ld=yes
3503                 gas=yes
3504                 exeext=.exe
3505                 case $host in
3506                 *pc-msdosdjgpp*)
3507                         target_alias=djgpp
3508                         ;;
3509                 esac
3510                 ;;
3511         i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3512                 tm_file=i386/moss.h
3513                 tmake_file=t-libc-ok
3514                 fixincludes=Makefile.in
3515                 gnu_ld=yes
3516                 gas=yes
3517                 ;;
3518         i[34567]86-*-lynxos*)
3519                 if test x$gas = xyes
3520                 then
3521                         tm_file=i386/lynx.h
3522                 else
3523                         tm_file=i386/lynx-ng.h
3524                 fi
3525                 xm_file=i386/xm-lynx.h
3526                 tmake_file=i386/t-i386bare
3527                 xmake_file=x-lynx
3528                 ;;
3529         i[34567]86-*-mach*)
3530                 tm_file=i386/mach.h
3531 #               tmake_file=t-libc-ok
3532                 use_collect2=yes
3533                 ;;
3534         i[34567]86-*-osfrose*)          # 386 using OSF/rose
3535                 if test x$elf = xyes
3536                 then
3537                         tm_file=i386/osfelf.h
3538                         use_collect2=
3539                 else
3540                         tm_file=i386/osfrose.h
3541                         use_collect2=yes
3542                 fi
3543                 xm_file="i386/xm-osf.h ${xm_file}"
3544                 xmake_file=i386/x-osfrose
3545                 tmake_file=i386/t-osf
3546                 extra_objs=halfpic.o
3547                 ;;
3548         i[34567]86-go32-rtems*)
3549                 cpu_type=i386
3550                 xm_file=i386/xm-go32.h
3551                 tm_file=i386/go32-rtems.h
3552                 tmake_file="i386/t-go32 t-rtems"
3553                 ;;
3554         i[34567]86-*-rtemself*)
3555                 cpu_type=i386
3556                 tm_file=i386/rtemself.h
3557                 tmake_file="i386/t-i386bare t-rtems"
3558                 ;;
3559         i[34567]86-*-rtems*)
3560                 cpu_type=i386
3561                 tm_file=i386/rtems.h
3562                 tmake_file="i386/t-i386bare t-rtems"
3563                 ;;
3564         i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3565                 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3566                 xm_defines="USG SVR3"
3567                 xmake_file=i386/x-sco5
3568                 fixincludes=fixinc.sco
3569                 install_headers_dir=install-headers-cpio
3570                 tm_file=i386/sco5.h
3571                 if test x$gas = xyes
3572                 then
3573                         tm_file="i386/sco5gas.h ${tm_file}"
3574                         tmake_file=i386/t-sco5gas
3575                 else
3576                         tmake_file=i386/t-sco5
3577                 fi
3578                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3579                 ;;
3580         i[34567]86-*-sco3.2v4*)         # 80386 running SCO 3.2v4 system
3581                 xm_file="${xm_file} i386/xm-sco.h"
3582                 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3583                 xmake_file=i386/x-sco4
3584                 fixincludes=fixinc.sco
3585                 install_headers_dir=install-headers-cpio
3586                 if test x$stabs = xyes
3587                 then
3588                         tm_file=i386/sco4dbx.h
3589                         tmake_file=i386/t-svr3dbx
3590                         extra_parts="svr3.ifile svr3z.rfile"
3591                 else
3592                         tm_file=i386/sco4.h
3593                         tmake_file=i386/t-crtstuff
3594                         extra_parts="crtbegin.o crtend.o"
3595                 fi
3596                 truncate_target=yes
3597                 ;;
3598         i[34567]86-*-sco*)              # 80386 running SCO system
3599                 xm_file=i386/xm-sco.h
3600                 xmake_file=i386/x-sco
3601                 install_headers_dir=install-headers-cpio
3602                 if test x$stabs = xyes
3603                 then
3604                         tm_file=i386/scodbx.h
3605                         tmake_file=i386/t-svr3dbx
3606                         extra_parts="svr3.ifile svr3z.rfile"
3607                 else
3608                         tm_file=i386/sco.h
3609                         extra_parts="crtbegin.o crtend.o"
3610                         tmake_file=i386/t-crtstuff
3611                 fi
3612                 truncate_target=yes
3613                 ;;
3614         i[34567]86-*-solaris2*)
3615                 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3616                 xm_defines="USG POSIX SMALL_ARG_MAX"
3617                 if test x$stabs = xyes
3618                 then
3619                         tm_file=i386/sol2dbg.h
3620                 else
3621                         tm_file=i386/sol2.h
3622                 fi
3623                 tmake_file=i386/t-sol2
3624                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3625                 xmake_file=x-svr4
3626                 case $machine in
3627                 *-*-solaris2.[0-4])
3628                         fixincludes=fixinc.svr4;;
3629                 *)
3630                         fixincludes=fixinc.wrap;;
3631                 esac
3632                 if test x$enable_threads = xyes; then
3633                         thread_file='solaris'
3634                 fi
3635                 ;;
3636        i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
3637                xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3638                xm_defines="USG POSIX"
3639                tm_file=i386/sysv4.h
3640                if test x$stabs = xyes
3641                then
3642                        tm_file="${tm_file} dbx.h"
3643                fi
3644                tmake_file=i386/t-crtpic
3645                xmake_file=x-svr4
3646                extra_parts="crtbegin.o crtend.o"
3647                fixincludes=fixinc.svr4
3648                ;;
3649         i[34567]86-*-sysv4*)            # Intel 80386's running system V.4
3650                 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3651                 xm_defines="USG POSIX SMALL_ARG_MAX"
3652                 tm_file=i386/sysv4.h
3653                 if test x$stabs = xyes
3654                 then
3655                         tm_file="${tm_file} dbx.h"
3656                 fi
3657                 tmake_file=i386/t-crtpic
3658                 xmake_file=x-svr4
3659                 extra_parts="crtbegin.o crtend.o"
3660                 ;;
3661         i[34567]86-*-udk*)      # Intel x86 on SCO UW/OSR5 Dev Kit
3662                 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3663                 xm_defines="USG POSIX"
3664                 tm_file=i386/udk.h
3665                 tmake_file="i386/t-crtpic i386/t-udk"
3666                 xmake_file=x-svr4
3667                 extra_parts="crtbegin.o crtend.o"
3668                 fixincludes="fixinc.svr4"
3669                 ;;
3670         i[34567]86-*-osf1*)             # Intel 80386's running OSF/1 1.3+
3671                 cpu_type=i386
3672                 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3673                 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3674                 fixincludes=Makefile.in #Don't do it on OSF/1
3675                 if test x$stabs = xyes
3676                 then
3677                         tm_file=i386/osf1elfgdb.h
3678                 else
3679                         tm_file=i386/osf1elf.h
3680                 fi
3681                 tmake_file=i386/t-osf1elf
3682                 xmake_file=i386/x-osf1elf
3683                 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3684                 ;;
3685         i[34567]86-*-sysv*)             # Intel 80386's running system V
3686                 xm_defines="USG SVR3"
3687                 xmake_file=i386/x-sysv3
3688                 if test x$gas = xyes
3689                 then
3690                         if test x$stabs = xyes
3691                         then
3692                                 tm_file=i386/svr3dbx.h
3693                                 tmake_file=i386/t-svr3dbx
3694                                 extra_parts="svr3.ifile svr3z.rfile"
3695                         else
3696                                 tm_file=i386/svr3gas.h
3697                                 extra_parts="crtbegin.o crtend.o"
3698                                 tmake_file=i386/t-crtstuff
3699                         fi
3700                 else
3701                         tm_file=i386/sysv3.h
3702                         extra_parts="crtbegin.o crtend.o"
3703                         tmake_file=i386/t-crtstuff
3704                 fi
3705                 ;;
3706         i386-*-vsta)                    # Intel 80386's running VSTa kernel
3707                 xm_file="${xm_file} i386/xm-vsta.h"
3708                 tm_file=i386/vsta.h
3709                 tmake_file=i386/t-vsta
3710                 xmake_file=i386/x-vsta
3711                 ;;
3712         i[34567]86-*-win32)
3713                 xm_file="${xm_file} i386/xm-cygwin.h"
3714                 tmake_file=i386/t-cygwin
3715                 tm_file=i386/win32.h
3716                 xmake_file=i386/x-cygwin
3717                 extra_objs=winnt.o
3718                 fixincludes=Makefile.in
3719                 if test x$enable_threads = xyes; then
3720                         thread_file='win32'
3721                 fi
3722                 exeext=.exe
3723                 ;;
3724         i[34567]86-*-pe | i[34567]86-*-cygwin*)
3725                 xm_file="${xm_file} i386/xm-cygwin.h"
3726                 tmake_file=i386/t-cygwin
3727                 tm_file=i386/cygwin.h
3728                 xmake_file=i386/x-cygwin
3729                 extra_objs=winnt.o
3730                 fixincludes=Makefile.in
3731                 if test x$enable_threads = xyes; then
3732                         thread_file='win32'
3733                 fi
3734                 exeext=.exe
3735                 ;;
3736         i[34567]86-*-mingw32*)
3737                 tm_file=i386/mingw32.h
3738                 xm_file="${xm_file} i386/xm-mingw32.h"
3739                 tmake_file="i386/t-cygwin i386/t-mingw32"
3740                 extra_objs=winnt.o
3741                 xmake_file=i386/x-cygwin
3742                 fixincludes=Makefile.in
3743                 if test x$enable_threads = xyes; then
3744                         thread_file='win32'
3745                 fi
3746                 exeext=.exe
3747                 case $machine in
3748                         *mingw32msv*)
3749                                 ;;
3750                         *minwg32crt* | *mingw32*)
3751                                 tm_file="${tm_file} i386/crtdll.h"
3752                                 ;;
3753                 esac
3754                 ;;
3755         i[34567]86-*-winnt3*)
3756                 tm_file=i386/win-nt.h
3757                 out_file=i386/i386.c
3758                 xm_file="xm-winnt.h ${xm_file}"
3759                 xmake_file=winnt/x-winnt
3760                 tmake_file=i386/t-winnt
3761                 extra_host_objs="winnt.o oldnames.o"
3762                 extra_gcc_objs="spawnv.o oldnames.o"
3763                 fixincludes=fixinc.winnt
3764                 if test x$gnu_ld != xyes
3765                 then
3766                         extra_programs=ld.exe
3767                 fi
3768                 if test x$enable_threads = xyes; then
3769                         thread_file='win32'
3770                 fi
3771                 ;;
3772         i[34567]86-dg-dgux*)
3773                 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3774                 xm_defines="USG POSIX"
3775                 out_file=i386/dgux.c
3776                 tm_file=i386/dgux.h
3777                 tmake_file=i386/t-dgux
3778                 xmake_file=i386/x-dgux
3779                 fixincludes=fixinc.dgux
3780                 install_headers_dir=install-headers-cpio
3781               ;;
3782         i860-alliant-*)         # Alliant FX/2800
3783                 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3784                 xm_file="${xm_file}"
3785                 xmake_file=i860/x-fx2800
3786                 tmake_file=i860/t-fx2800
3787                 extra_parts="crtbegin.o crtend.o"
3788                 ;;
3789         i860-*-bsd*)
3790                 tm_file="${tm_file} i860/bsd.h"
3791                 if test x$gas = xyes
3792                 then
3793                         tm_file="${tm_file} i860/bsd-gas.h"
3794                 fi
3795                 use_collect2=yes
3796                 ;;
3797         i860-*-mach*)
3798                 tm_file="${tm_file} i860/mach.h"
3799                 tmake_file=t-libc-ok
3800                 ;;
3801         i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
3802                 tm_file="${tm_file} svr3.h i860/paragon.h"
3803                 xm_defines="USG SVR3"
3804                 tmake_file=t-osf
3805                 ;;
3806         i860-*-sysv3*)
3807                 tm_file="${tm_file} svr3.h i860/sysv3.h"
3808                 xm_defines="USG SVR3"
3809                 xmake_file=i860/x-sysv3
3810                 extra_parts="crtbegin.o crtend.o"
3811                 ;;
3812         i860-*-sysv4*)
3813                 tm_file="${tm_file} svr4.h i860/sysv4.h"
3814                 xm_defines="USG SVR3"
3815                 xmake_file=i860/x-sysv4
3816                 tmake_file=t-svr4
3817                 extra_parts="crtbegin.o crtend.o"
3818                 ;;
3819         i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3820                 tm_file="${tm_file} i960/vx960.h"
3821                 tmake_file=i960/t-vxworks960
3822                 use_collect2=yes
3823                 thread_file='vxworks'
3824                 ;;
3825         i960-wrs-vxworks5* | i960-wrs-vxworks)
3826                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3827                 tmake_file=i960/t-vxworks960
3828                 use_collect2=yes
3829                 thread_file='vxworks'
3830                 ;;
3831         i960-wrs-vxworks*)
3832                 tm_file="${tm_file} i960/vx960.h"
3833                 tmake_file=i960/t-vxworks960
3834                 use_collect2=yes
3835                 thread_file='vxworks'
3836                 ;;
3837         i960-*-coff*)
3838                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3839                 tmake_file=i960/t-960bare
3840                 use_collect2=yes
3841                 ;;
3842         i960-*-rtems)
3843                 tmake_file="i960/t-960bare t-rtems"
3844                 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3845                 use_collect2=yes
3846                 ;;
3847         i960-*-*)                       # Default i960 environment.
3848                 use_collect2=yes
3849                 ;;
3850         m32r-*-elf*)
3851                 extra_parts="crtinit.o crtfini.o"
3852                 ;;
3853         m68000-convergent-sysv*)
3854                 tm_file=m68k/ctix.h
3855                 xm_file="m68k/xm-3b1.h ${xm_file}"
3856                 xm_defines=USG
3857                 use_collect2=yes
3858                 extra_headers=math-68881.h
3859                 ;;
3860         m68000-hp-bsd*)                 # HP 9000/200 running BSD
3861                 tm_file=m68k/hp2bsd.h
3862                 xmake_file=m68k/x-hp2bsd
3863                 use_collect2=yes
3864                 extra_headers=math-68881.h
3865                 ;;
3866         m68000-hp-hpux*)                # HP 9000 series 300
3867                 xm_file="xm_alloca.h ${xm_file}"
3868                 xm_defines="USG NO_SYS_SIGLIST"
3869                 if test x$gas = xyes
3870                 then
3871                         xmake_file=m68k/x-hp320g
3872                         tm_file=m68k/hp310g.h
3873                 else
3874                         xmake_file=m68k/x-hp320
3875                         tm_file=m68k/hp310.h
3876                 fi
3877                 install_headers_dir=install-headers-cpio
3878                 use_collect2=yes
3879                 extra_headers=math-68881.h
3880                 ;;
3881         m68000-sun-sunos3*)
3882                 tm_file=m68k/sun2.h
3883                 use_collect2=yes
3884                 extra_headers=math-68881.h
3885                 ;;
3886         m68000-sun-sunos4*)
3887                 tm_file=m68k/sun2o4.h
3888                 use_collect2=yes
3889                 extra_headers=math-68881.h
3890                 ;;
3891         m68000-att-sysv*)
3892                 xm_file="m68k/xm-3b1.h ${xm_file}"
3893                 xm_defines=USG
3894                 if test x$gas = xyes
3895                 then
3896                         tm_file=m68k/3b1g.h
3897                 else
3898                         tm_file=m68k/3b1.h
3899                 fi
3900                 use_collect2=yes
3901                 extra_headers=math-68881.h
3902                 ;;
3903         m68k-apple-aux*)                # Apple Macintosh running A/UX
3904                 xm_defines="USG AUX"
3905                 tmake_file=m68k/t-aux
3906                 install_headers_dir=install-headers-cpio
3907                 extra_headers=math-68881.h
3908                 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3909                 tm_file=
3910                 if test "$gnu_ld" = yes
3911                 then
3912                         tm_file="${tm_file} m68k/auxgld.h"
3913                 else
3914                         tm_file="${tm_file} m68k/auxld.h"
3915                 fi
3916                 if test "$gas" = yes
3917                 then
3918                         tm_file="${tm_file} m68k/auxgas.h"
3919                 else
3920                         tm_file="${tm_file} m68k/auxas.h"
3921                 fi
3922                 tm_file="${tm_file} m68k/a-ux.h"
3923                 float_format=m68k
3924                 ;;
3925         m68k-apollo-*)
3926                 tm_file=m68k/apollo68.h
3927                 xmake_file=m68k/x-apollo68
3928                 use_collect2=yes
3929                 extra_headers=math-68881.h
3930                 float_format=m68k
3931                 ;;
3932         m68k-altos-sysv*)                  # Altos 3068
3933                 if test x$gas = xyes
3934                 then
3935                         tm_file=m68k/altos3068.h
3936                         xm_defines=USG
3937                 else
3938                         echo "The Altos is supported only with the GNU assembler" 1>&2
3939                         exit 1
3940                 fi
3941                 extra_headers=math-68881.h
3942                 ;;
3943         m68k-bull-sysv*)                # Bull DPX/2
3944                 if test x$gas = xyes
3945                 then
3946                         if test x$stabs = xyes
3947                         then
3948                                 tm_file=m68k/dpx2cdbx.h
3949                         else
3950                                 tm_file=m68k/dpx2g.h
3951                         fi
3952                 else
3953                         tm_file=m68k/dpx2.h
3954                 fi
3955                 xm_file="xm-alloca.h ${xm_file}"
3956                 xm_defines=USG
3957                 xmake_file=m68k/x-dpx2
3958                 use_collect2=yes
3959                 extra_headers=math-68881.h
3960                 ;;
3961         m68k-atari-sysv4*)              # Atari variant of V.4.
3962                 tm_file=m68k/atari.h
3963                 xm_file="xm-alloca.h ${xm_file}"
3964                 xm_defines="USG FULL_PROTOTYPES"
3965                 tmake_file=t-svr4
3966                 extra_parts="crtbegin.o crtend.o"
3967                 extra_headers=math-68881.h
3968                 float_format=m68k
3969                 ;;
3970         m68k-motorola-sysv*)
3971                 tm_file=m68k/mot3300.h
3972                 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3973                 xm_defines=NO_SYS_SIGLIST
3974                 if test x$gas = xyes
3975                 then
3976                         xmake_file=m68k/x-mot3300-gas
3977                         if test x$gnu_ld = xyes
3978                         then
3979                                 tmake_file=m68k/t-mot3300-gald
3980                         else
3981                                 tmake_file=m68k/t-mot3300-gas
3982                                 use_collect2=yes
3983                         fi
3984                 else
3985                         xmake_file=m68k/x-mot3300
3986                         if test x$gnu_ld = xyes
3987                         then
3988                                 tmake_file=m68k/t-mot3300-gld
3989                         else
3990                                 tmake_file=m68k/t-mot3300
3991                                 use_collect2=yes
3992                         fi
3993                 fi
3994                 gdb_needs_out_file_path=yes
3995                 extra_parts="crt0.o mcrt0.o"
3996                 extra_headers=math-68881.h
3997                 float_format=m68k
3998                 ;;
3999         m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
4000                 tm_file=m68k/tower-as.h
4001                 xm_defines="USG SVR3"
4002                 xmake_file=m68k/x-tower
4003                 extra_parts="crtbegin.o crtend.o"
4004                 extra_headers=math-68881.h
4005                 ;;
4006         m68k-plexus-sysv*)
4007                 tm_file=m68k/plexus.h
4008                 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4009                 xm_defines=USG
4010                 use_collect2=yes
4011                 extra_headers=math-68881.h
4012                 ;;
4013         m68k-tti-*)
4014                 tm_file=m68k/pbb.h
4015                 xm_file="xm-alloca.h ${xm_file}"
4016                 xm_defines=USG
4017                 extra_headers=math-68881.h
4018                 ;;
4019         m68k-crds-unos*)
4020                 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4021                 xm_defines="USG unos"
4022                 xmake_file=m68k/x-crds
4023                 tm_file=m68k/crds.h
4024                 use_collect2=yes
4025                 extra_headers=math-68881.h
4026                 ;;
4027         m68k-cbm-sysv4*)                # Commodore variant of V.4.
4028                 tm_file=m68k/amix.h
4029                 xm_file="xm-alloca.h ${xm_file}"
4030                 xm_defines="USG FULL_PROTOTYPES"
4031                 xmake_file=m68k/x-amix
4032                 tmake_file=t-svr4
4033                 extra_parts="crtbegin.o crtend.o"
4034                 extra_headers=math-68881.h
4035                 float_format=m68k
4036                 ;;
4037         m68k-ccur-rtu)
4038                 tm_file=m68k/ccur-GAS.h
4039                 xmake_file=m68k/x-ccur
4040                 extra_headers=math-68881.h
4041                 use_collect2=yes
4042                 float_format=m68k
4043                 ;;
4044         m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
4045                 tm_file=m68k/hp3bsd44.h
4046                 xmake_file=m68k/x-hp3bsd44
4047                 use_collect2=yes
4048                 extra_headers=math-68881.h
4049                 float_format=m68k
4050                 ;;
4051         m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
4052                 tm_file=m68k/hp3bsd.h
4053                 use_collect2=yes
4054                 extra_headers=math-68881.h
4055                 float_format=m68k
4056                 ;;
4057         m68k-isi-bsd*)
4058                 if test x$with_fp = xno
4059                 then
4060                         tm_file=m68k/isi-nfp.h
4061                 else
4062                         tm_file=m68k/isi.h
4063                         float_format=m68k
4064                 fi
4065                 use_collect2=yes
4066                 extra_headers=math-68881.h
4067                 ;;
4068         m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4069                 xm_file="xm_alloca.h ${xm_file}"
4070                 xm_defines="USG NO_SYS_SIGLIST"
4071                 if test x$gas = xyes
4072                 then
4073                         xmake_file=m68k/x-hp320g
4074                         tm_file=m68k/hp320g.h
4075                 else
4076                         xmake_file=m68k/x-hp320
4077                         tm_file=m68k/hpux7.h
4078                 fi
4079                 install_headers_dir=install-headers-cpio
4080                 use_collect2=yes
4081                 extra_headers=math-68881.h
4082                 float_format=m68k
4083                 ;;
4084         m68k-hp-hpux*)  # HP 9000 series 300
4085                 xm_file="xm_alloca.h ${xm_file}"
4086                 xm_defines="USG NO_SYS_SIGLIST"
4087                 if test x$gas = xyes
4088                 then
4089                         xmake_file=m68k/x-hp320g
4090                         tm_file=m68k/hp320g.h
4091                 else
4092                         xmake_file=m68k/x-hp320
4093                         tm_file=m68k/hp320.h
4094                 fi
4095                 install_headers_dir=install-headers-cpio
4096                 use_collect2=yes
4097                 extra_headers=math-68881.h
4098                 float_format=m68k
4099                 ;;
4100         m68k-sun-mach*)
4101                 tm_file=m68k/sun3mach.h
4102                 use_collect2=yes
4103                 extra_headers=math-68881.h
4104                 float_format=m68k
4105                 ;;
4106         m68k-sony-newsos3*)
4107                 if test x$gas = xyes
4108                 then
4109                         tm_file=m68k/news3gas.h
4110                 else
4111                         tm_file=m68k/news3.h
4112                 fi
4113                 use_collect2=yes
4114                 extra_headers=math-68881.h
4115                 float_format=m68k
4116                 ;;
4117         m68k-sony-bsd* | m68k-sony-newsos*)
4118                 if test x$gas = xyes
4119                 then
4120                         tm_file=m68k/newsgas.h
4121                 else
4122                         tm_file=m68k/news.h
4123                 fi
4124                 use_collect2=yes
4125                 extra_headers=math-68881.h
4126                 float_format=m68k
4127                 ;;
4128         m68k-next-nextstep2*)
4129                 tm_file=m68k/next21.h
4130                 xm_file="m68k/xm-next.h ${xm_file}"
4131                 tmake_file=m68k/t-next
4132                 xmake_file=m68k/x-next
4133                 extra_objs=nextstep.o
4134                 extra_headers=math-68881.h