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