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