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