OSDN Git Service

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