Fix most compile time warning messages
[official-gcc.git] / gcc / configure
blob37ecc640675642f8d98be0a088f968354e50e1a5
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnu-ld arrange to work with GNU ld."
16 ac_help="$ac_help
17 --with-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"
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'
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
125 ac_prev=
126 for ac_option
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
136 case "$ac_option" in
137 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 *) ac_optarg= ;;
139 esac
141 # Accept the important Cygnus configure options, so we can diagnose typos.
143 case "$ac_option" in
145 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 ac_prev=bindir ;;
147 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
148 bindir="$ac_optarg" ;;
150 -build | --build | --buil | --bui | --bu)
151 ac_prev=build ;;
152 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
153 build="$ac_optarg" ;;
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" ;;
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" ;;
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; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
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; }
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'" ;;
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" ;;
199 -gas | --gas | --ga | --g)
200 # Obsolete; use --with-gas.
201 with_gas=yes ;;
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
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
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
256 exit 0 ;;
258 -host | --host | --hos | --ho)
259 ac_prev=host ;;
260 -host=* | --host=* | --hos=* | --ho=*)
261 host="$ac_optarg" ;;
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" ;;
270 -infodir | --infodir | --infodi | --infod | --info | --inf)
271 ac_prev=infodir ;;
272 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
273 infodir="$ac_optarg" ;;
275 -libdir | --libdir | --libdi | --libd)
276 ac_prev=libdir ;;
277 -libdir=* | --libdir=* | --libdi=* | --libd=*)
278 libdir="$ac_optarg" ;;
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" ;;
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" ;;
296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
297 ac_prev=mandir ;;
298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
299 mandir="$ac_optarg" ;;
301 -nfp | --nfp | --nf)
302 # Obsolete; use --without-fp.
303 with_fp=no ;;
305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 | --no-cr | --no-c)
307 no_create=yes ;;
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 ;;
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" ;;
322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
323 ac_prev=prefix ;;
324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
359 | -silent | --silent | --silen | --sile | --sil)
360 silent=yes ;;
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" ;;
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" ;;
379 -site | --site | --sit)
380 ac_prev=site ;;
381 -site=* | --site=* | --sit=*)
382 site="$ac_optarg" ;;
384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
385 ac_prev=srcdir ;;
386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 srcdir="$ac_optarg" ;;
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" ;;
396 -target | --target | --targe | --targ | --tar | --ta | --t)
397 ac_prev=target ;;
398 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
399 target="$ac_optarg" ;;
401 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 verbose=yes ;;
404 -version | --version | --versio | --versi | --vers)
405 echo "configure generated by autoconf version 2.13"
406 exit 0 ;;
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; }
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'" ;;
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; }
427 ac_package=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
430 --x)
431 # Obsolete; use --with-x.
432 with_x=yes ;;
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" ;;
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" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
458 nonopt="$ac_option"
461 esac
462 done
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
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
483 exec 5>./config.log
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
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
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
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
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
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
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=..
536 else
537 ac_srcdir_defaulted=no
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; }
546 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
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"
561 done
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
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
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=
588 else
589 ac_n= ac_c='\c' ac_t=
595 remove=rm
596 hard_link=ln
597 symbolic_link='ln -s'
598 copy=cp
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"
615 library_path_setting="ok"
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; }
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"
640 gcc_exec_prefix_setting="ok"
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; }
651 # Check for additional parameters
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
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"
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
676 cat >> confdefs.h <<EOF
677 #define DEFAULT_LINKER "$DEFAULT_LINKER"
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
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"
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
704 cat >> confdefs.h <<EOF
705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
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
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
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
743 # Default local prefix if it is empty
744 if test x$local_prefix = x; then
745 local_prefix=/usr/local
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
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}
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
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
800 esac
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;
807 if test x$ac_checking != x ; then
808 cat >> confdefs.h <<\EOF
809 #define ENABLE_CHECKING 1
813 if test x$ac_tree_checking != x ; then
814 cat >> confdefs.h <<\EOF
815 #define ENABLE_TREE_CHECKING 1
819 if test x$ac_rtl_checking != x ; then
820 cat >> confdefs.h <<\EOF
821 #define ENABLE_RTL_CHECKING 1
825 if test x$ac_gc_checking != x ; then
826 cat >> confdefs.h <<\EOF
827 #define ENABLE_GC_CHECKING 1
831 if test x$ac_gc_always_collect != x ; then
832 cat >> confdefs.h <<\EOF
833 #define ENABLE_GC_ALWAYS_COLLECT 1
839 # Check whether --enable-cpp or --disable-cpp was given.
840 if test "${enable_cpp+set}" = set; then
841 enableval="$enable_cpp"
843 else
844 enable_cpp=yes
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
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"
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=''
879 else
880 enable_threads=''
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'
891 xyes)
892 # default
893 target_thread_file=''
895 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
896 xsolaris | xwin32 | xdce | xvxworks)
897 target_thread_file=$enable_threads_flag
900 echo "$enable_threads is an unknown thread package" 1>&2
901 exit 1
903 esac
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
913 else
914 objc_boehm_gc=''
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
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
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; }
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.
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
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.
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
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; }
974 echo $ac_n "checking host system type""... $ac_c" 1>&6
975 echo "configure:976: checking host system type" >&5
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
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
995 echo $ac_n "checking target system type""... $ac_c" 1>&6
996 echo "configure:997: checking target system type" >&5
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
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
1013 echo $ac_n "checking build system type""... $ac_c" 1>&6
1014 echo "configure:1015: checking build system type" >&5
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
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
1031 test "$host_alias" != "$target_alias" &&
1032 test "$program_prefix$program_suffix$program_transform_name" = \
1033 NONENONEs,x,x, &&
1034 program_prefix=${target_alias}-
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
1056 done
1057 IFS="$ac_save_ifs"
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
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
1088 ac_cv_prog_CC="cc"
1089 break
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="$@"
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
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
1137 done
1138 IFS="$ac_save_ifs"
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
1148 esac
1150 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
1163 cat > conftest.$ac_ext << EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1168 main(){return(0);}
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
1178 else
1179 echo "configure: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1181 ac_cv_prog_cc_works=no
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
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; }
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
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
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
1217 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1219 if test $ac_cv_prog_gcc = yes; then
1220 GCC=yes
1221 else
1222 GCC=
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
1239 rm -f conftest*
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"
1252 else
1253 if test "$GCC" = yes; then
1254 CFLAGS="-O2"
1255 else
1256 CFLAGS=
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
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.
1290 else
1291 # cc exists but doesn't like -o.
1292 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1296 else
1297 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1299 rm -f conftest*
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
1312 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1313 NO_MINUS_C_MINUS_O=yes
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"
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; }
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
1345 rm -f conftest*
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
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 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362 else
1363 save_CFLAGS="$CFLAGS"
1364 CFLAGS="-Wno-long-long"
1365 cat > conftest.$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1369 int main() {
1371 ; return 0; }
1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1374 rm -rf conftest*
1375 ac_cv_prog_cc_no_long_long=yes
1376 else
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1379 rm -rf conftest*
1380 ac_cv_prog_cc_no_long_long=no
1382 rm -f conftest*
1383 CFLAGS="$save_CFLAGS"
1386 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1388 # If the native compiler is GCC, we can enable warnings even in stage1.
1389 # That's useful for people building cross-compilers, or just running a
1390 # quick `make'.
1391 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1392 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
1393 if test "x$GCC" = "xyes"; then
1394 if test $ac_cv_prog_cc_no_long_long = yes; then
1395 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
1397 else
1398 stage1_warn_cflags=""
1403 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1404 echo "configure:1405: checking whether ${MAKE-make} sets \${MAKE}" >&5
1405 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1406 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1408 else
1409 cat > conftestmake <<\EOF
1410 all:
1411 @echo 'ac_maketemp="${MAKE}"'
1413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1415 if test -n "$ac_maketemp"; then
1416 eval ac_cv_prog_make_${ac_make}_set=yes
1417 else
1418 eval ac_cv_prog_make_${ac_make}_set=no
1420 rm -f conftestmake
1422 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1424 SET_MAKE=
1425 else
1426 echo "$ac_t""no" 1>&6
1427 SET_MAKE="MAKE=${MAKE-make}"
1431 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1432 echo "configure:1433: checking whether a default assembler was specified" >&5
1433 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1434 if test x"$gas_flag" = x"no"; then
1435 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1436 else
1437 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1439 else
1440 echo "$ac_t""no" 1>&6
1443 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether a default linker was specified" >&5
1445 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1446 if test x"$gnu_ld_flag" = x"no"; then
1447 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1448 else
1449 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1451 else
1452 echo "$ac_t""no" 1>&6
1455 echo $ac_n "checking for inline""... $ac_c" 1>&6
1456 echo "configure:1457: checking for inline" >&5
1457 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 ac_cv_c_inline=no
1461 for ac_kw in inline __inline__ __inline; do
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1466 int main() {
1467 } $ac_kw foo() {
1468 ; return 0; }
1470 if { (eval echo configure:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1471 rm -rf conftest*
1472 ac_cv_c_inline=$ac_kw; break
1473 else
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1477 rm -f conftest*
1478 done
1482 echo "$ac_t""$ac_cv_c_inline" 1>&6
1483 case "$ac_cv_c_inline" in
1484 inline | yes) ;;
1485 no) cat >> confdefs.h <<\EOF
1486 #define inline
1489 *) cat >> confdefs.h <<EOF
1490 #define inline $ac_cv_c_inline
1493 esac
1496 # Find some useful tools
1497 for ac_prog in mawk gawk nawk awk
1499 # Extract the first word of "$ac_prog", so it can be a program name with args.
1500 set dummy $ac_prog; ac_word=$2
1501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1502 echo "configure:1503: checking for $ac_word" >&5
1503 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1505 else
1506 if test -n "$AWK"; then
1507 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1508 else
1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1510 ac_dummy="$PATH"
1511 for ac_dir in $ac_dummy; do
1512 test -z "$ac_dir" && ac_dir=.
1513 if test -f $ac_dir/$ac_word; then
1514 ac_cv_prog_AWK="$ac_prog"
1515 break
1517 done
1518 IFS="$ac_save_ifs"
1521 AWK="$ac_cv_prog_AWK"
1522 if test -n "$AWK"; then
1523 echo "$ac_t""$AWK" 1>&6
1524 else
1525 echo "$ac_t""no" 1>&6
1528 test -n "$AWK" && break
1529 done
1531 # Extract the first word of "flex", so it can be a program name with args.
1532 set dummy flex; ac_word=$2
1533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1534 echo "configure:1535: checking for $ac_word" >&5
1535 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1537 else
1538 if test -n "$LEX"; then
1539 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1540 else
1541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1542 ac_dummy="$PATH"
1543 for ac_dir in $ac_dummy; do
1544 test -z "$ac_dir" && ac_dir=.
1545 if test -f $ac_dir/$ac_word; then
1546 ac_cv_prog_LEX="flex"
1547 break
1549 done
1550 IFS="$ac_save_ifs"
1551 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1554 LEX="$ac_cv_prog_LEX"
1555 if test -n "$LEX"; then
1556 echo "$ac_t""$LEX" 1>&6
1557 else
1558 echo "$ac_t""no" 1>&6
1561 if test -z "$LEXLIB"
1562 then
1563 case "$LEX" in
1564 flex*) ac_lib=fl ;;
1565 *) ac_lib=l ;;
1566 esac
1567 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1568 echo "configure:1569: checking for yywrap in -l$ac_lib" >&5
1569 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1572 else
1573 ac_save_LIBS="$LIBS"
1574 LIBS="-l$ac_lib $LIBS"
1575 cat > conftest.$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 /* Override any gcc2 internal prototype to avoid an error. */
1579 /* We use char because int might match the return type of a gcc2
1580 builtin and then its argument prototype would still apply. */
1581 char yywrap();
1583 int main() {
1584 yywrap()
1585 ; return 0; }
1587 if { (eval echo configure:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1588 rm -rf conftest*
1589 eval "ac_cv_lib_$ac_lib_var=yes"
1590 else
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1593 rm -rf conftest*
1594 eval "ac_cv_lib_$ac_lib_var=no"
1596 rm -f conftest*
1597 LIBS="$ac_save_LIBS"
1600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 LEXLIB="-l$ac_lib"
1603 else
1604 echo "$ac_t""no" 1>&6
1609 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1610 echo "configure:1611: checking whether ln works" >&5
1611 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614 rm -f conftestdata_t
1615 echo >conftestdata_f
1616 if ln conftestdata_f conftestdata_t 2>/dev/null
1617 then
1618 gcc_cv_prog_LN="ln"
1619 else
1620 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1621 then
1622 gcc_cv_prog_LN="ln -s"
1623 else
1624 gcc_cv_prog_LN=cp
1627 rm -f conftestdata_f conftestdata_t
1630 LN="$gcc_cv_prog_LN"
1631 if test "$gcc_cv_prog_LN" = "ln"; then
1632 echo "$ac_t""yes" 1>&6
1633 else
1634 if test "$gcc_cv_prog_LN" = "ln -s"; then
1635 echo "$ac_t""no, using ln -s" 1>&6
1636 else
1637 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1641 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether ln -s works" >&5
1643 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 rm -f conftestdata_t
1647 echo >conftestdata_f
1648 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1649 then
1650 gcc_cv_prog_LN_S="ln -s"
1651 else
1652 if ln conftestdata_f conftestdata_t 2>/dev/null
1653 then
1654 gcc_cv_prog_LN_S=ln
1655 else
1656 gcc_cv_prog_LN_S=cp
1659 rm -f conftestdata_f conftestdata_t
1662 LN_S="$gcc_cv_prog_LN_S"
1663 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1664 echo "$ac_t""yes" 1>&6
1665 else
1666 if test "$gcc_cv_prog_LN_S" = "ln"; then
1667 echo "$ac_t""no, using ln" 1>&6
1668 else
1669 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1673 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1674 echo "configure:1675: checking for volatile" >&5
1675 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1677 else
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1682 int main() {
1683 volatile int foo;
1684 ; return 0; }
1686 if { (eval echo configure:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1687 rm -rf conftest*
1688 gcc_cv_c_volatile=yes
1689 else
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1692 rm -rf conftest*
1693 gcc_cv_c_volatile=no
1695 rm -f conftest*
1698 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1699 if test $gcc_cv_c_volatile = yes ; then
1700 cat >> confdefs.h <<\EOF
1701 #define HAVE_VOLATILE 1
1706 # Extract the first word of "ranlib", so it can be a program name with args.
1707 set dummy ranlib; ac_word=$2
1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1709 echo "configure:1710: checking for $ac_word" >&5
1710 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1712 else
1713 if test -n "$RANLIB"; then
1714 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1715 else
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1717 ac_dummy="$PATH"
1718 for ac_dir in $ac_dummy; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1721 ac_cv_prog_RANLIB="ranlib"
1722 break
1724 done
1725 IFS="$ac_save_ifs"
1726 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1729 RANLIB="$ac_cv_prog_RANLIB"
1730 if test -n "$RANLIB"; then
1731 echo "$ac_t""$RANLIB" 1>&6
1732 else
1733 echo "$ac_t""no" 1>&6
1736 for ac_prog in 'bison -y' byacc
1738 # Extract the first word of "$ac_prog", so it can be a program name with args.
1739 set dummy $ac_prog; ac_word=$2
1740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1741 echo "configure:1742: checking for $ac_word" >&5
1742 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745 if test -n "$YACC"; then
1746 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1747 else
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1749 ac_dummy="$PATH"
1750 for ac_dir in $ac_dummy; do
1751 test -z "$ac_dir" && ac_dir=.
1752 if test -f $ac_dir/$ac_word; then
1753 ac_cv_prog_YACC="$ac_prog"
1754 break
1756 done
1757 IFS="$ac_save_ifs"
1760 YACC="$ac_cv_prog_YACC"
1761 if test -n "$YACC"; then
1762 echo "$ac_t""$YACC" 1>&6
1763 else
1764 echo "$ac_t""no" 1>&6
1767 test -n "$YACC" && break
1768 done
1769 test -n "$YACC" || YACC="yacc"
1771 # Find a good install program. We prefer a C program (faster),
1772 # so one script is as good as another. But avoid the broken or
1773 # incompatible versions:
1774 # SysV /etc/install, /usr/sbin/install
1775 # SunOS /usr/etc/install
1776 # IRIX /sbin/install
1777 # AIX /bin/install
1778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1780 # ./install, which can be erroneously created by make from ./install.sh.
1781 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1782 echo "configure:1783: checking for a BSD compatible install" >&5
1783 if test -z "$INSTALL"; then
1784 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1786 else
1787 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1788 for ac_dir in $PATH; do
1789 # Account for people who put trailing slashes in PATH elements.
1790 case "$ac_dir/" in
1791 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1793 # OSF1 and SCO ODT 3.0 have their own names for install.
1794 for ac_prog in ginstall scoinst install; do
1795 if test -f $ac_dir/$ac_prog; then
1796 if test $ac_prog = install &&
1797 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1798 # AIX install. It has an incompatible calling convention.
1799 # OSF/1 installbsd also uses dspmsg, but is usable.
1801 else
1802 ac_cv_path_install="$ac_dir/$ac_prog -c"
1803 break 2
1806 done
1808 esac
1809 done
1810 IFS="$ac_save_IFS"
1813 if test "${ac_cv_path_install+set}" = set; then
1814 INSTALL="$ac_cv_path_install"
1815 else
1816 # As a last resort, use the slow shell script. We don't cache a
1817 # path for INSTALL within a source directory, because that will
1818 # break other packages using the cache if that directory is
1819 # removed, or if the path is relative.
1820 INSTALL="$ac_install_sh"
1823 echo "$ac_t""$INSTALL" 1>&6
1825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1826 # It thinks the first close brace ends the variable substitution.
1827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1829 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1832 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1833 echo "configure:1834: checking how to run the C preprocessor" >&5
1834 # On Suns, sometimes $CPP names a directory.
1835 if test -n "$CPP" && test -d "$CPP"; then
1836 CPP=
1838 if test -z "$CPP"; then
1839 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841 else
1842 # This must be in double quotes, not single quotes, because CPP may get
1843 # substituted into the Makefile and "${CC-cc}" will confuse make.
1844 CPP="${CC-cc} -E"
1845 # On the NeXT, cc -E runs the code through the compiler's parser,
1846 # not just through cpp.
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1850 #include <assert.h>
1851 Syntax Error
1853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1854 { (eval echo configure:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1856 if test -z "$ac_err"; then
1858 else
1859 echo "$ac_err" >&5
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1862 rm -rf conftest*
1863 CPP="${CC-cc} -E -traditional-cpp"
1864 cat > conftest.$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 #include <assert.h>
1868 Syntax Error
1870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1871 { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1873 if test -z "$ac_err"; then
1875 else
1876 echo "$ac_err" >&5
1877 echo "configure: failed program was:" >&5
1878 cat conftest.$ac_ext >&5
1879 rm -rf conftest*
1880 CPP="${CC-cc} -nologo -E"
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <assert.h>
1885 Syntax Error
1887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1888 { (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1890 if test -z "$ac_err"; then
1892 else
1893 echo "$ac_err" >&5
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1896 rm -rf conftest*
1897 CPP=/lib/cpp
1899 rm -f conftest*
1901 rm -f conftest*
1903 rm -f conftest*
1904 ac_cv_prog_CPP="$CPP"
1906 CPP="$ac_cv_prog_CPP"
1907 else
1908 ac_cv_prog_CPP="$CPP"
1910 echo "$ac_t""$CPP" 1>&6
1912 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1913 echo "configure:1914: checking for ANSI C header files" >&5
1914 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1916 else
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #include <stdlib.h>
1921 #include <stdarg.h>
1922 #include <string.h>
1923 #include <float.h>
1925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1926 { (eval echo configure:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1928 if test -z "$ac_err"; then
1929 rm -rf conftest*
1930 ac_cv_header_stdc=yes
1931 else
1932 echo "$ac_err" >&5
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1935 rm -rf conftest*
1936 ac_cv_header_stdc=no
1938 rm -f conftest*
1940 if test $ac_cv_header_stdc = yes; then
1941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 #include <string.h>
1947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1948 egrep "memchr" >/dev/null 2>&1; then
1950 else
1951 rm -rf conftest*
1952 ac_cv_header_stdc=no
1954 rm -f conftest*
1958 if test $ac_cv_header_stdc = yes; then
1959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 #include <stdlib.h>
1965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1966 egrep "free" >/dev/null 2>&1; then
1968 else
1969 rm -rf conftest*
1970 ac_cv_header_stdc=no
1972 rm -f conftest*
1976 if test $ac_cv_header_stdc = yes; then
1977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1978 if test "$cross_compiling" = yes; then
1980 else
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 #include <ctype.h>
1985 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1986 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1988 int main () { int i; for (i = 0; i < 256; i++)
1989 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1990 exit (0); }
1993 if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1994 then
1996 else
1997 echo "configure: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 rm -fr conftest*
2000 ac_cv_header_stdc=no
2002 rm -fr conftest*
2008 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2009 if test $ac_cv_header_stdc = yes; then
2010 cat >> confdefs.h <<\EOF
2011 #define STDC_HEADERS 1
2016 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether time.h and sys/time.h may both be included" >&5
2018 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2020 else
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 #include <sys/types.h>
2025 #include <sys/time.h>
2026 #include <time.h>
2027 int main() {
2028 struct tm *tp;
2029 ; return 0; }
2031 if { (eval echo configure:2032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2032 rm -rf conftest*
2033 ac_cv_header_time=yes
2034 else
2035 echo "configure: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 rm -rf conftest*
2038 ac_cv_header_time=no
2040 rm -f conftest*
2043 echo "$ac_t""$ac_cv_header_time" 1>&6
2044 if test $ac_cv_header_time = yes; then
2045 cat >> confdefs.h <<\EOF
2046 #define TIME_WITH_SYS_TIME 1
2051 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether string.h and strings.h may both be included" >&5
2053 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2055 else
2056 cat > conftest.$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059 #include <string.h>
2060 #include <strings.h>
2061 int main() {
2063 ; return 0; }
2065 if { (eval echo configure:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 rm -rf conftest*
2067 gcc_cv_header_string=yes
2068 else
2069 echo "configure: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2071 rm -rf conftest*
2072 gcc_cv_header_string=no
2074 rm -f conftest*
2077 echo "$ac_t""$gcc_cv_header_string" 1>&6
2078 if test $gcc_cv_header_string = yes; then
2079 cat >> confdefs.h <<\EOF
2080 #define STRING_WITH_STRINGS 1
2085 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2086 echo "configure:2087: checking for sys/wait.h that is POSIX.1 compatible" >&5
2087 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089 else
2090 cat > conftest.$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2093 #include <sys/types.h>
2094 #include <sys/wait.h>
2095 #ifndef WEXITSTATUS
2096 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2097 #endif
2098 #ifndef WIFEXITED
2099 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2100 #endif
2101 int main() {
2102 int s;
2103 wait (&s);
2104 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2105 ; return 0; }
2107 if { (eval echo configure:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2108 rm -rf conftest*
2109 ac_cv_header_sys_wait_h=yes
2110 else
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2113 rm -rf conftest*
2114 ac_cv_header_sys_wait_h=no
2116 rm -f conftest*
2119 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2120 if test $ac_cv_header_sys_wait_h = yes; then
2121 cat >> confdefs.h <<\EOF
2122 #define HAVE_SYS_WAIT_H 1
2127 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2128 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2129 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2130 direct.h malloc.h
2132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_hdr" >&5
2135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2137 else
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2141 #include <$ac_hdr>
2143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2144 { (eval echo configure:2145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2146 if test -z "$ac_err"; then
2147 rm -rf conftest*
2148 eval "ac_cv_header_$ac_safe=yes"
2149 else
2150 echo "$ac_err" >&5
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 rm -rf conftest*
2154 eval "ac_cv_header_$ac_safe=no"
2156 rm -f conftest*
2158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2161 cat >> confdefs.h <<EOF
2162 #define $ac_tr_hdr 1
2165 else
2166 echo "$ac_t""no" 1>&6
2168 done
2171 # Check for thread headers.
2172 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2173 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2174 echo "configure:2175: checking for thread.h" >&5
2175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2177 else
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2181 #include <thread.h>
2183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2184 { (eval echo configure:2185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2186 if test -z "$ac_err"; then
2187 rm -rf conftest*
2188 eval "ac_cv_header_$ac_safe=yes"
2189 else
2190 echo "$ac_err" >&5
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 rm -rf conftest*
2194 eval "ac_cv_header_$ac_safe=no"
2196 rm -f conftest*
2198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2199 echo "$ac_t""yes" 1>&6
2200 have_thread_h=yes
2201 else
2202 echo "$ac_t""no" 1>&6
2203 have_thread_h=
2206 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2207 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2208 echo "configure:2209: checking for pthread.h" >&5
2209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2211 else
2212 cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2215 #include <pthread.h>
2217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2218 { (eval echo configure:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2220 if test -z "$ac_err"; then
2221 rm -rf conftest*
2222 eval "ac_cv_header_$ac_safe=yes"
2223 else
2224 echo "$ac_err" >&5
2225 echo "configure: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2227 rm -rf conftest*
2228 eval "ac_cv_header_$ac_safe=no"
2230 rm -f conftest*
2232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2233 echo "$ac_t""yes" 1>&6
2234 have_pthread_h=yes
2235 else
2236 echo "$ac_t""no" 1>&6
2237 have_pthread_h=
2241 # See if GNAT has been installed
2242 # Extract the first word of "gnatbind", so it can be a program name with args.
2243 set dummy gnatbind; ac_word=$2
2244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2245 echo "configure:2246: checking for $ac_word" >&5
2246 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2248 else
2249 if test -n "$gnat"; then
2250 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2251 else
2252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2253 ac_dummy="$PATH"
2254 for ac_dir in $ac_dummy; do
2255 test -z "$ac_dir" && ac_dir=.
2256 if test -f $ac_dir/$ac_word; then
2257 ac_cv_prog_gnat="yes"
2258 break
2260 done
2261 IFS="$ac_save_ifs"
2262 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2265 gnat="$ac_cv_prog_gnat"
2266 if test -n "$gnat"; then
2267 echo "$ac_t""$gnat" 1>&6
2268 else
2269 echo "$ac_t""no" 1>&6
2273 # Do we have a single-tree copy of texinfo?
2274 if test -f $srcdir/../texinfo/Makefile.in; then
2275 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2276 gcc_cv_prog_makeinfo_modern=yes
2277 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2278 else
2279 # See if makeinfo has been installed and is modern enough
2280 # that we can use it.
2281 # Extract the first word of "makeinfo", so it can be a program name with args.
2282 set dummy makeinfo; ac_word=$2
2283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_word" >&5
2285 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2287 else
2288 if test -n "$MAKEINFO"; then
2289 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2290 else
2291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2292 ac_dummy="$PATH"
2293 for ac_dir in $ac_dummy; do
2294 test -z "$ac_dir" && ac_dir=.
2295 if test -f $ac_dir/$ac_word; then
2296 ac_cv_prog_MAKEINFO="makeinfo"
2297 break
2299 done
2300 IFS="$ac_save_ifs"
2303 MAKEINFO="$ac_cv_prog_MAKEINFO"
2304 if test -n "$MAKEINFO"; then
2305 echo "$ac_t""$MAKEINFO" 1>&6
2306 else
2307 echo "$ac_t""no" 1>&6
2310 if test -n "$MAKEINFO"; then
2311 # Found it, now check the version.
2312 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2313 echo "configure:2314: checking for modern makeinfo" >&5
2314 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2316 else
2317 ac_prog_version=`$MAKEINFO --version 2>&1 |
2318 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2319 echo "configure:2320: version of makeinfo is $ac_prog_version" >&5
2320 case $ac_prog_version in
2321 '') gcc_cv_prog_makeinfo_modern=no;;
2322 3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
2323 gcc_cv_prog_makeinfo_modern=yes;;
2324 *) gcc_cv_prog_makeinfo_modern=no;;
2325 esac
2329 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2330 else
2331 gcc_cv_prog_makeinfo_modern=no
2336 if test $gcc_cv_prog_makeinfo_modern = no; then
2337 echo "configure: warning:
2338 *** Makeinfo is missing or too old.
2339 *** Info documentation will not be built or installed." 1>&2
2340 BUILD_INFO=
2341 INSTALL_INFO=
2342 else
2343 BUILD_INFO=info
2344 INSTALL_INFO=install-info
2347 # See if the stage1 system preprocessor understands the ANSI C
2348 # preprocessor stringification operator.
2351 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2352 echo "configure:2353: checking for preprocessor stringizing operator" >&5
2353 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2360 #define x(y) #y
2362 char *s = x(teststring);
2365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2366 egrep "#teststring" >/dev/null 2>&1; then
2367 rm -rf conftest*
2368 ac_cv_c_stringize=no
2369 else
2370 rm -rf conftest*
2371 ac_cv_c_stringize=yes
2373 rm -f conftest*
2377 if test "${ac_cv_c_stringize}" = yes
2378 then
2379 cat >> confdefs.h <<\EOF
2380 #define HAVE_STRINGIZE 1
2384 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2387 # Use <inttypes.h> only if it exists,
2388 # doesn't clash with <sys/types.h>, and declares intmax_t.
2389 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2390 echo "configure:2391: checking for inttypes.h" >&5
2391 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2393 else
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 #include <sys/types.h>
2398 #include <inttypes.h>
2399 int main() {
2400 intmax_t i = -1;
2401 ; return 0; }
2403 if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2404 rm -rf conftest*
2405 gcc_cv_header_inttypes_h=yes
2406 else
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2409 rm -rf conftest*
2410 gcc_cv_header_inttypes_h=no
2412 rm -f conftest*
2415 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2416 if test $gcc_cv_header_inttypes_h = yes; then
2417 cat >> confdefs.h <<\EOF
2418 #define HAVE_INTTYPES_H 1
2424 # Determine if enumerated bitfields are unsigned. ISO C says they can
2425 # be either signed or unsigned.
2427 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2428 echo "configure:2429: checking for unsigned enumerated bitfields" >&5
2429 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2431 else
2432 if test "$cross_compiling" = yes; then
2433 gcc_cv_enum_bf_unsigned=yes
2434 else
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 #include <stdlib.h>
2439 enum t { BLAH = 128 } ;
2440 struct s_t { enum t member : 8; } s ;
2441 int main(void)
2443 s.member = BLAH;
2444 if (s.member < 0) exit(1);
2445 exit(0);
2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2450 then
2451 gcc_cv_enum_bf_unsigned=yes
2452 else
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2455 rm -fr conftest*
2456 gcc_cv_enum_bf_unsigned=no
2458 rm -fr conftest*
2463 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2464 if test $gcc_cv_enum_bf_unsigned = yes; then
2465 cat >> confdefs.h <<\EOF
2466 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2471 for ac_func in strtoul bsearch putenv popen bcopy bzero bcmp \
2472 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2473 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2474 fputs_unlocked getrusage valloc
2476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_func" >&5
2478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char $ac_func(); below. */
2486 #include <assert.h>
2487 /* Override any gcc2 internal prototype to avoid an error. */
2488 /* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2490 char $ac_func();
2492 int main() {
2494 /* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2498 choke me
2499 #else
2500 $ac_func();
2501 #endif
2503 ; return 0; }
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2506 rm -rf conftest*
2507 eval "ac_cv_func_$ac_func=yes"
2508 else
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 rm -rf conftest*
2512 eval "ac_cv_func_$ac_func=no"
2514 rm -f conftest*
2517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2520 cat >> confdefs.h <<EOF
2521 #define $ac_tr_func 1
2524 else
2525 echo "$ac_t""no" 1>&6
2527 done
2530 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2531 echo "configure:2532: checking for ssize_t" >&5
2532 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2534 else
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <sys/types.h>
2539 #if STDC_HEADERS
2540 #include <stdlib.h>
2541 #include <stddef.h>
2542 #endif
2544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2545 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2546 rm -rf conftest*
2547 ac_cv_type_ssize_t=yes
2548 else
2549 rm -rf conftest*
2550 ac_cv_type_ssize_t=no
2552 rm -f conftest*
2555 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2556 if test $ac_cv_type_ssize_t = no; then
2557 cat >> confdefs.h <<\EOF
2558 #define ssize_t int
2564 # Try to determine the array type of the second argument of getgroups
2565 # for the target system (int or gid_t).
2566 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2567 echo "configure:2568: checking for uid_t in sys/types.h" >&5
2568 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2570 else
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <sys/types.h>
2576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2577 egrep "uid_t" >/dev/null 2>&1; then
2578 rm -rf conftest*
2579 ac_cv_type_uid_t=yes
2580 else
2581 rm -rf conftest*
2582 ac_cv_type_uid_t=no
2584 rm -f conftest*
2588 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2589 if test $ac_cv_type_uid_t = no; then
2590 cat >> confdefs.h <<\EOF
2591 #define uid_t int
2594 cat >> confdefs.h <<\EOF
2595 #define gid_t int
2600 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2601 echo "configure:2602: checking type of array argument to getgroups" >&5
2602 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2604 else
2605 if test "$cross_compiling" = yes; then
2606 ac_cv_type_getgroups=cross
2607 else
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2612 /* Thanks to Mike Rendell for this test. */
2613 #include <sys/types.h>
2614 #define NGID 256
2615 #undef MAX
2616 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2617 main()
2619 gid_t gidset[NGID];
2620 int i, n;
2621 union { gid_t gval; long lval; } val;
2623 val.lval = -1;
2624 for (i = 0; i < NGID; i++)
2625 gidset[i] = val.gval;
2626 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2627 gidset);
2628 /* Exit non-zero if getgroups seems to require an array of ints. This
2629 happens when gid_t is short but getgroups modifies an array of ints. */
2630 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2634 if { (eval echo configure:2635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2635 then
2636 ac_cv_type_getgroups=gid_t
2637 else
2638 echo "configure: failed program was:" >&5
2639 cat conftest.$ac_ext >&5
2640 rm -fr conftest*
2641 ac_cv_type_getgroups=int
2643 rm -fr conftest*
2646 if test $ac_cv_type_getgroups = cross; then
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 #include <unistd.h>
2652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2653 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2654 rm -rf conftest*
2655 ac_cv_type_getgroups=gid_t
2656 else
2657 rm -rf conftest*
2658 ac_cv_type_getgroups=int
2660 rm -f conftest*
2665 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2666 cat >> confdefs.h <<EOF
2667 #define GETGROUPS_T $ac_cv_type_getgroups
2671 if test "${target}" = "${build}"; then
2672 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
2673 else
2674 case "${target}" in
2675 # This condition may need some tweaking. It should include all
2676 # targets where the array type of the second argument of getgroups
2677 # is int and the type of gid_t is not equivalent to int.
2678 *-*-sunos* | *-*-ultrix*)
2679 TARGET_GETGROUPS_T=int
2682 TARGET_GETGROUPS_T=gid_t
2684 esac
2688 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2689 echo "configure:2690: checking for vprintf" >&5
2690 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2692 else
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* System header to define __stub macros and hopefully few prototypes,
2697 which can conflict with char vprintf(); below. */
2698 #include <assert.h>
2699 /* Override any gcc2 internal prototype to avoid an error. */
2700 /* We use char because int might match the return type of a gcc2
2701 builtin and then its argument prototype would still apply. */
2702 char vprintf();
2704 int main() {
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2710 choke me
2711 #else
2712 vprintf();
2713 #endif
2715 ; return 0; }
2717 if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2718 rm -rf conftest*
2719 eval "ac_cv_func_vprintf=yes"
2720 else
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2723 rm -rf conftest*
2724 eval "ac_cv_func_vprintf=no"
2726 rm -f conftest*
2729 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 cat >> confdefs.h <<\EOF
2732 #define HAVE_VPRINTF 1
2735 else
2736 echo "$ac_t""no" 1>&6
2739 if test "$ac_cv_func_vprintf" != yes; then
2740 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2741 echo "configure:2742: checking for _doprnt" >&5
2742 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* System header to define __stub macros and hopefully few prototypes,
2749 which can conflict with char _doprnt(); below. */
2750 #include <assert.h>
2751 /* Override any gcc2 internal prototype to avoid an error. */
2752 /* We use char because int might match the return type of a gcc2
2753 builtin and then its argument prototype would still apply. */
2754 char _doprnt();
2756 int main() {
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2762 choke me
2763 #else
2764 _doprnt();
2765 #endif
2767 ; return 0; }
2769 if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2770 rm -rf conftest*
2771 eval "ac_cv_func__doprnt=yes"
2772 else
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 rm -rf conftest*
2776 eval "ac_cv_func__doprnt=no"
2778 rm -f conftest*
2781 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 cat >> confdefs.h <<\EOF
2784 #define HAVE_DOPRNT 1
2787 else
2788 echo "$ac_t""no" 1>&6
2793 vfprintf=
2794 doprint=
2795 if test $ac_cv_func_vprintf != yes ; then
2796 vfprintf=vfprintf.o
2797 if test $ac_cv_func__doprnt != yes ; then
2798 doprint=doprint.o
2804 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2805 echo "configure:2806: checking whether the printf functions support %p" >&5
2806 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809 if test "$cross_compiling" = yes; then
2810 gcc_cv_func_printf_ptr=no
2811 else
2812 cat > conftest.$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2815 #include <stdio.h>
2817 int main()
2819 char buf[64];
2820 char *p = buf, *q = NULL;
2821 sprintf(buf, "%p", p);
2822 sscanf(buf, "%p", &q);
2823 return (p != q);
2826 if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2827 then
2828 gcc_cv_func_printf_ptr=yes
2829 else
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2832 rm -fr conftest*
2833 gcc_cv_func_printf_ptr=no
2835 rm -fr conftest*
2838 rm -f core core.* *.core
2841 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2842 if test $gcc_cv_func_printf_ptr = yes ; then
2843 cat >> confdefs.h <<\EOF
2844 #define HAVE_PRINTF_PTR 1
2850 case "${host}" in
2851 *-*-uwin*)
2852 # Under some versions of uwin, vfork is notoriously buggy and the test
2853 # can hang configure; on other versions, vfork exists just as a stub.
2854 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2855 ac_cv_func_vfork_works=no
2857 esac
2858 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2859 echo "configure:2860: checking for pid_t" >&5
2860 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2862 else
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2866 #include <sys/types.h>
2867 #if STDC_HEADERS
2868 #include <stdlib.h>
2869 #include <stddef.h>
2870 #endif
2872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2873 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2874 rm -rf conftest*
2875 ac_cv_type_pid_t=yes
2876 else
2877 rm -rf conftest*
2878 ac_cv_type_pid_t=no
2880 rm -f conftest*
2883 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2884 if test $ac_cv_type_pid_t = no; then
2885 cat >> confdefs.h <<\EOF
2886 #define pid_t int
2891 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2892 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2893 echo "configure:2894: checking for vfork.h" >&5
2894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2896 else
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2900 #include <vfork.h>
2902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2903 { (eval echo configure:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2905 if test -z "$ac_err"; then
2906 rm -rf conftest*
2907 eval "ac_cv_header_$ac_safe=yes"
2908 else
2909 echo "$ac_err" >&5
2910 echo "configure: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2912 rm -rf conftest*
2913 eval "ac_cv_header_$ac_safe=no"
2915 rm -f conftest*
2917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2918 echo "$ac_t""yes" 1>&6
2919 cat >> confdefs.h <<\EOF
2920 #define HAVE_VFORK_H 1
2923 else
2924 echo "$ac_t""no" 1>&6
2927 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2928 echo "configure:2929: checking for working vfork" >&5
2929 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2931 else
2932 if test "$cross_compiling" = yes; then
2933 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2934 echo "configure:2935: checking for vfork" >&5
2935 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2937 else
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 /* System header to define __stub macros and hopefully few prototypes,
2942 which can conflict with char vfork(); below. */
2943 #include <assert.h>
2944 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2947 char vfork();
2949 int main() {
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined (__stub_vfork) || defined (__stub___vfork)
2955 choke me
2956 #else
2957 vfork();
2958 #endif
2960 ; return 0; }
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2963 rm -rf conftest*
2964 eval "ac_cv_func_vfork=yes"
2965 else
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2968 rm -rf conftest*
2969 eval "ac_cv_func_vfork=no"
2971 rm -f conftest*
2974 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2977 else
2978 echo "$ac_t""no" 1>&6
2981 ac_cv_func_vfork_works=$ac_cv_func_vfork
2982 else
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 /* Thanks to Paul Eggert for this test. */
2987 #include <stdio.h>
2988 #include <sys/types.h>
2989 #include <sys/stat.h>
2990 #ifdef HAVE_UNISTD_H
2991 #include <unistd.h>
2992 #endif
2993 #ifdef HAVE_VFORK_H
2994 #include <vfork.h>
2995 #endif
2996 /* On some sparc systems, changes by the child to local and incoming
2997 argument registers are propagated back to the parent.
2998 The compiler is told about this with #include <vfork.h>,
2999 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3000 Test for this by using a static variable whose address
3001 is put into a register that is clobbered by the vfork. */
3002 static
3003 #ifdef __cplusplus
3004 sparc_address_test (int arg)
3005 #else
3006 sparc_address_test (arg) int arg;
3007 #endif
3009 static pid_t child;
3010 if (!child) {
3011 child = vfork ();
3012 if (child < 0) {
3013 perror ("vfork");
3014 _exit(2);
3016 if (!child) {
3017 arg = getpid();
3018 write(-1, "", 0);
3019 _exit (arg);
3023 main() {
3024 pid_t parent = getpid ();
3025 pid_t child;
3027 sparc_address_test ();
3029 child = vfork ();
3031 if (child == 0) {
3032 /* Here is another test for sparc vfork register problems.
3033 This test uses lots of local variables, at least
3034 as many local variables as main has allocated so far
3035 including compiler temporaries. 4 locals are enough for
3036 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3037 A buggy compiler should reuse the register of parent
3038 for one of the local variables, since it will think that
3039 parent can't possibly be used any more in this routine.
3040 Assigning to the local variable will thus munge parent
3041 in the parent process. */
3042 pid_t
3043 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3044 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3045 /* Convince the compiler that p..p7 are live; otherwise, it might
3046 use the same hardware register for all 8 local variables. */
3047 if (p != p1 || p != p2 || p != p3 || p != p4
3048 || p != p5 || p != p6 || p != p7)
3049 _exit(1);
3051 /* On some systems (e.g. IRIX 3.3),
3052 vfork doesn't separate parent from child file descriptors.
3053 If the child closes a descriptor before it execs or exits,
3054 this munges the parent's descriptor as well.
3055 Test for this by closing stdout in the child. */
3056 _exit(close(fileno(stdout)) != 0);
3057 } else {
3058 int status;
3059 struct stat st;
3061 while (wait(&status) != child)
3063 exit(
3064 /* Was there some problem with vforking? */
3065 child < 0
3067 /* Did the child fail? (This shouldn't happen.) */
3068 || status
3070 /* Did the vfork/compiler bug occur? */
3071 || parent != getpid()
3073 /* Did the file descriptor bug occur? */
3074 || fstat(fileno(stdout), &st) != 0
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3080 then
3081 ac_cv_func_vfork_works=yes
3082 else
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3085 rm -fr conftest*
3086 ac_cv_func_vfork_works=no
3088 rm -fr conftest*
3093 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3094 if test $ac_cv_func_vfork_works = no; then
3095 cat >> confdefs.h <<\EOF
3096 #define vfork fork
3101 for ac_hdr in unistd.h
3103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3105 echo "configure:3106: checking for $ac_hdr" >&5
3106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3108 else
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 #include <$ac_hdr>
3114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3115 { (eval echo configure:3116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3117 if test -z "$ac_err"; then
3118 rm -rf conftest*
3119 eval "ac_cv_header_$ac_safe=yes"
3120 else
3121 echo "$ac_err" >&5
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 rm -rf conftest*
3125 eval "ac_cv_header_$ac_safe=no"
3127 rm -f conftest*
3129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3132 cat >> confdefs.h <<EOF
3133 #define $ac_tr_hdr 1
3136 else
3137 echo "$ac_t""no" 1>&6
3139 done
3141 for ac_func in getpagesize
3143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_func" >&5
3145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3147 else
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 /* System header to define __stub macros and hopefully few prototypes,
3152 which can conflict with char $ac_func(); below. */
3153 #include <assert.h>
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 /* We use char because int might match the return type of a gcc2
3156 builtin and then its argument prototype would still apply. */
3157 char $ac_func();
3159 int main() {
3161 /* The GNU C library defines this for functions which it implements
3162 to always fail with ENOSYS. Some functions are actually named
3163 something starting with __ and the normal name is an alias. */
3164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3165 choke me
3166 #else
3167 $ac_func();
3168 #endif
3170 ; return 0; }
3172 if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3173 rm -rf conftest*
3174 eval "ac_cv_func_$ac_func=yes"
3175 else
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3178 rm -rf conftest*
3179 eval "ac_cv_func_$ac_func=no"
3181 rm -f conftest*
3184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3187 cat >> confdefs.h <<EOF
3188 #define $ac_tr_func 1
3191 else
3192 echo "$ac_t""no" 1>&6
3194 done
3196 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3197 echo "configure:3198: checking for working mmap which provides zeroed pages anywhere" >&5
3198 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3200 else
3201 if test "$cross_compiling" = yes; then
3202 ac_cv_func_mmap_anywhere=no
3203 else
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3208 /* Test by Richard Henderson and Alexandre Oliva.
3209 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3210 #include <sys/types.h>
3211 #include <fcntl.h>
3212 #include <sys/mman.h>
3214 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3215 # define MAP_ANONYMOUS MAP_ANON
3216 #endif
3218 /* This mess was copied from the GNU getpagesize.h. */
3219 #ifndef HAVE_GETPAGESIZE
3220 # ifdef HAVE_UNISTD_H
3221 # include <unistd.h>
3222 # endif
3224 /* Assume that all systems that can run configure have sys/param.h. */
3225 # ifndef HAVE_SYS_PARAM_H
3226 # define HAVE_SYS_PARAM_H 1
3227 # endif
3229 # ifdef _SC_PAGESIZE
3230 # define getpagesize() sysconf(_SC_PAGESIZE)
3231 # else /* no _SC_PAGESIZE */
3232 # ifdef HAVE_SYS_PARAM_H
3233 # include <sys/param.h>
3234 # ifdef EXEC_PAGESIZE
3235 # define getpagesize() EXEC_PAGESIZE
3236 # else /* no EXEC_PAGESIZE */
3237 # ifdef NBPG
3238 # define getpagesize() NBPG * CLSIZE
3239 # ifndef CLSIZE
3240 # define CLSIZE 1
3241 # endif /* no CLSIZE */
3242 # else /* no NBPG */
3243 # ifdef NBPC
3244 # define getpagesize() NBPC
3245 # else /* no NBPC */
3246 # ifdef PAGESIZE
3247 # define getpagesize() PAGESIZE
3248 # endif /* PAGESIZE */
3249 # endif /* no NBPC */
3250 # endif /* no NBPG */
3251 # endif /* no EXEC_PAGESIZE */
3252 # else /* no HAVE_SYS_PARAM_H */
3253 # define getpagesize() 8192 /* punt totally */
3254 # endif /* no HAVE_SYS_PARAM_H */
3255 # endif /* no _SC_PAGESIZE */
3257 #endif /* no HAVE_GETPAGESIZE */
3259 int main()
3261 char *x;
3262 int fd, pg;
3264 #ifndef MAP_ANONYMOUS
3265 fd = open("/dev/zero", O_RDWR);
3266 if (fd < 0)
3267 exit(1);
3268 #endif
3270 pg = getpagesize();
3271 #ifdef MAP_ANONYMOUS
3272 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3273 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3274 #else
3275 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3276 #endif
3277 if (x == (char *) -1)
3278 exit(2);
3280 *(int *)x += 1;
3282 if (munmap(x, pg) < 0)
3283 exit(3);
3285 exit(0);
3288 if { (eval echo configure:3289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3289 then
3290 ac_cv_func_mmap_anywhere=yes
3291 else
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3294 rm -fr conftest*
3295 ac_cv_func_mmap_anywhere=no
3297 rm -fr conftest*
3302 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3303 if test $ac_cv_func_mmap_anywhere = yes; then
3304 cat >> confdefs.h <<\EOF
3305 #define HAVE_MMAP_ANYWHERE 1
3310 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3311 echo "configure:3312: checking for working mmap of a file" >&5
3312 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3314 else
3315 # Create a file one thousand bytes long.
3316 for i in 1 2 3 4 5 6 7 8 9 0
3317 do for j in 1 2 3 4 5 6 7 8 9 0
3318 do echo $i $j xxxxx
3319 done
3320 done > conftestdata$$
3322 if test "$cross_compiling" = yes; then
3323 ac_cv_func_mmap_file=no
3324 else
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3329 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3330 Richard Henderson and Alexandre Oliva.
3331 Check whether read-only mmap of a plain file works. */
3332 #include <sys/types.h>
3333 #include <sys/stat.h>
3334 #include <fcntl.h>
3335 #include <sys/mman.h>
3337 int main()
3339 char *x;
3340 int fd;
3341 struct stat st;
3343 fd = open("conftestdata$$", O_RDONLY);
3344 if (fd < 0)
3345 exit(1);
3347 if (fstat (fd, &st))
3348 exit(2);
3350 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3351 if (x == (char *) -1)
3352 exit(3);
3354 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3355 exit(4);
3357 if (munmap(x, st.st_size) < 0)
3358 exit(5);
3360 exit(0);
3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3364 then
3365 ac_cv_func_mmap_file=yes
3366 else
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3369 rm -fr conftest*
3370 ac_cv_func_mmap_file=no
3372 rm -fr conftest*
3377 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3378 if test $ac_cv_func_mmap_file = yes; then
3379 cat >> confdefs.h <<\EOF
3380 #define HAVE_MMAP_FILE 1
3386 # We will need to find libiberty.h and ansidecl.h
3387 saved_CFLAGS="$CFLAGS"
3388 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3389 for ac_func in bcopy bzero bcmp \
3390 index rindex getenv atol sbrk abort atof getcwd getwd \
3391 strsignal putc_unlocked fputs_unlocked strstr environ \
3392 malloc realloc calloc free basename getopt
3394 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3395 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3396 echo "configure:3397: checking whether $ac_func is declared" >&5
3397 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3399 else
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include "gansidecl.h"
3404 #include "system.h"
3406 int main() {
3407 #ifndef $ac_func
3408 char *(*pfn) = (char *(*)) $ac_func ;
3409 #endif
3410 ; return 0; }
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413 rm -rf conftest*
3414 eval "gcc_cv_have_decl_$ac_func=yes"
3415 else
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3418 rm -rf conftest*
3419 eval "gcc_cv_have_decl_$ac_func=no"
3421 rm -f conftest*
3424 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3425 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3426 #define $ac_tr_decl 1
3429 else
3430 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3431 #define $ac_tr_decl 0
3436 done
3437 if test x = y ; then
3438 cat >> confdefs.h <<EOF
3439 #define HAVE_DECL_BCOPY 1
3441 cat >> confdefs.h <<EOF
3442 #define HAVE_DECL_BZERO 1
3444 cat >> confdefs.h <<EOF
3445 #define HAVE_DECL_BCMP 1
3448 cat >> confdefs.h <<EOF
3449 #define HAVE_DECL_INDEX 1
3451 cat >> confdefs.h <<EOF
3452 #define HAVE_DECL_RINDEX 1
3454 cat >> confdefs.h <<EOF
3455 #define HAVE_DECL_GETENV 1
3457 cat >> confdefs.h <<EOF
3458 #define HAVE_DECL_ATOL 1
3460 cat >> confdefs.h <<EOF
3461 #define HAVE_DECL_SBRK 1
3463 cat >> confdefs.h <<EOF
3464 #define HAVE_DECL_ABORT 1
3466 cat >> confdefs.h <<EOF
3467 #define HAVE_DECL_ATOF 1
3469 cat >> confdefs.h <<EOF
3470 #define HAVE_DECL_GETCWD 1
3472 cat >> confdefs.h <<EOF
3473 #define HAVE_DECL_GETWD 1
3476 cat >> confdefs.h <<EOF
3477 #define HAVE_DECL_STRSIGNAL 1
3479 cat >> confdefs.h <<EOF
3480 #define HAVE_DECL_PUTC_UNLOCKED 1
3482 cat >> confdefs.h <<EOF
3483 #define HAVE_DECL_FPUTS_UNLOCKED 1
3485 cat >> confdefs.h <<EOF
3486 #define HAVE_DECL_STRSTR 1
3488 cat >> confdefs.h <<EOF
3489 #define HAVE_DECL_ENVIRON 1
3492 cat >> confdefs.h <<EOF
3493 #define HAVE_DECL_MALLOC 1
3495 cat >> confdefs.h <<EOF
3496 #define HAVE_DECL_REALLOC 1
3498 cat >> confdefs.h <<EOF
3499 #define HAVE_DECL_CALLOC 1
3501 cat >> confdefs.h <<EOF
3502 #define HAVE_DECL_FREE 1
3504 cat >> confdefs.h <<EOF
3505 #define HAVE_DECL_BASENAME 1
3507 cat >> confdefs.h <<EOF
3508 #define HAVE_DECL_GETOPT 1
3513 for ac_func in getrlimit setrlimit getrusage
3515 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3516 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3517 echo "configure:3518: checking whether $ac_func is declared" >&5
3518 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3520 else
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3524 #include "gansidecl.h"
3525 #include "system.h"
3526 #ifdef HAVE_SYS_RESOURCE_H
3527 #include <sys/resource.h>
3528 #endif
3531 int main() {
3532 #ifndef $ac_func
3533 char *(*pfn) = (char *(*)) $ac_func ;
3534 #endif
3535 ; return 0; }
3537 if { (eval echo configure:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3538 rm -rf conftest*
3539 eval "gcc_cv_have_decl_$ac_func=yes"
3540 else
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3543 rm -rf conftest*
3544 eval "gcc_cv_have_decl_$ac_func=no"
3546 rm -f conftest*
3549 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3551 #define $ac_tr_decl 1
3554 else
3555 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3556 #define $ac_tr_decl 0
3561 done
3562 if test x = y ; then
3563 cat >> confdefs.h <<EOF
3564 #define HAVE_DECL_GETRLIMIT 1
3566 cat >> confdefs.h <<EOF
3567 #define HAVE_DECL_SETRLIMIT 1
3569 cat >> confdefs.h <<EOF
3570 #define HAVE_DECL_GETRUSAGE 1
3575 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3576 CFLAGS="$saved_CFLAGS"
3578 # mkdir takes a single argument on some systems.
3579 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3580 echo "configure:3581: checking if mkdir takes one argument" >&5
3581 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3583 else
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3588 #include <sys/types.h>
3589 #ifdef HAVE_SYS_STAT_H
3590 # include <sys/stat.h>
3591 #endif
3592 #ifdef HAVE_UNISTD_H
3593 # include <unistd.h>
3594 #endif
3595 #ifdef HAVE_DIRECT_H
3596 # include <direct.h>
3597 #endif
3598 int main() {
3599 mkdir ("foo", 0);
3600 ; return 0; }
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603 rm -rf conftest*
3604 gcc_cv_mkdir_takes_one_arg=no
3605 else
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3608 rm -rf conftest*
3609 gcc_cv_mkdir_takes_one_arg=yes
3611 rm -f conftest*
3614 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3615 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3616 cat >> confdefs.h <<\EOF
3617 #define MKDIR_TAKES_ONE_ARG 1
3623 # File extensions
3624 manext='.1'
3625 objext='.o'
3629 build_xm_file=
3630 build_xm_defines=
3631 build_install_headers_dir=install-headers-tar
3632 build_exeext=
3633 host_xm_file=
3634 host_xm_defines=
3635 host_xmake_file=
3636 host_truncate_target=
3637 host_exeext=
3639 # Decode the host machine, then the target machine.
3640 # For the host machine, we save the xm_file variable as host_xm_file;
3641 # then we decode the target machine and forget everything else
3642 # that came from the host machine.
3643 for machine in $build $host $target; do
3645 out_file=
3646 xmake_file=
3647 tmake_file=
3648 extra_headers=
3649 extra_passes=
3650 extra_parts=
3651 extra_programs=
3652 extra_objs=
3653 extra_host_objs=
3654 extra_gcc_objs=
3655 xm_defines=
3656 float_format=
3657 # Set this to force installation and use of collect2.
3658 use_collect2=
3659 # Set this to override the default target model.
3660 target_cpu_default=
3661 # Set this to control how the header file directory is installed.
3662 install_headers_dir=install-headers-tar
3663 # Set this to a non-empty list of args to pass to cpp if the target
3664 # wants its .md file passed through cpp.
3665 md_cppflags=
3666 # Set this if directory names should be truncated to 14 characters.
3667 truncate_target=
3668 # Set this if gdb needs a dir command with `dirname $out_file`
3669 gdb_needs_out_file_path=
3670 # Set this if the build machine requires executables to have a
3671 # file name suffix.
3672 exeext=
3673 # Set this to control which thread package will be used.
3674 thread_file=
3675 # Reinitialize these from the flag values every loop pass, since some
3676 # configure entries modify them.
3677 gas="$gas_flag"
3678 gnu_ld="$gnu_ld_flag"
3679 enable_threads=$enable_threads_flag
3681 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3682 # updated in each machine entry.
3683 tm_p_file=
3684 cpu_type=`echo $machine | sed 's/-.*$//'`
3685 case $machine in
3686 alpha*-*-*)
3687 cpu_type=alpha
3689 strongarm*-*-*)
3690 cpu_type=arm
3692 arm*-*-*)
3693 cpu_type=arm
3695 c*-convex-*)
3696 cpu_type=convex
3698 i[34567]86-*-*)
3699 cpu_type=i386
3701 hppa*-*-*)
3702 cpu_type=pa
3704 m68000-*-*)
3705 cpu_type=m68k
3707 mips*-*-*)
3708 cpu_type=mips
3710 pj*-*-*)
3711 cpu_type=pj
3713 powerpc*-*-*)
3714 cpu_type=rs6000
3716 pyramid-*-*)
3717 cpu_type=pyr
3719 sparc*-*-*)
3720 cpu_type=sparc
3722 esac
3724 tm_file=${cpu_type}/${cpu_type}.h
3725 xm_file=${cpu_type}/xm-${cpu_type}.h
3726 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3727 then
3728 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3730 # On a.out targets, we need to use collect2.
3731 case $machine in
3732 *-*-*aout*)
3733 use_collect2=yes
3735 esac
3737 # Common parts for linux-gnu and openbsd systems
3738 case $machine in
3739 *-*-linux-gnu*)
3740 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3742 *-*-openbsd*)
3743 tm_file=${cpu_type}/openbsd.h
3744 tmake_file="t-libc-ok t-openbsd"
3745 # avoid surprises, always provide an xm-openbsd file
3746 xm_file=${cpu_type}/xm-openbsd.h
3747 # don't depend on processor x-fragments as well
3748 xmake_file=none
3749 if test x$enable_threads = xyes; then
3750 thread_file='posix'
3751 tmake_file="${tmake_file} t-openbsd-thread"
3754 esac
3756 case $machine in
3757 # Support site-specific machine types.
3758 *local*)
3759 cpu_type=`echo $machine | sed -e 's/-.*//'`
3760 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3761 xm_file=${cpu_type}/xm-$rest.h
3762 tm_file=${cpu_type}/$rest.h
3763 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3764 then xmake_file=${cpu_type}/x-$rest; \
3765 else true; \
3767 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3768 then tmake_file=${cpu_type}/t-$rest; \
3769 else true; \
3772 1750a-*-*)
3774 a29k-*-bsd* | a29k-*-sym1*)
3775 tm_file="${tm_file} a29k/unix.h"
3776 xm_defines=USG
3777 xmake_file=a29k/x-unix
3778 use_collect2=yes
3780 a29k-*-udi | a29k-*-coff)
3781 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3782 tmake_file=a29k/t-a29kbare
3784 a29k-wrs-vxworks*)
3785 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3786 tmake_file=a29k/t-vx29k
3787 extra_parts="crtbegin.o crtend.o"
3788 thread_file='vxworks'
3790 a29k-*-*) # Default a29k environment.
3791 use_collect2=yes
3793 alpha-*-interix)
3794 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3796 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3797 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3799 # GAS + IEEE_CONFORMANT
3800 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3802 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3803 xmake_file="x-interix alpha/t-pe"
3804 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3805 if test x$enable_threads = xyes ; then
3806 thread_file='posix'
3808 if test x$stabs = xyes ; then
3809 tm_file="${tm_file} dbxcoff.h"
3811 #prefix='$$INTERIX_ROOT'/usr/contrib
3812 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3814 alpha*-*-linux-gnuecoff*)
3815 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3816 target_cpu_default="MASK_GAS"
3817 tmake_file="alpha/t-alpha alpha/t-ieee"
3818 gas=no
3819 xmake_file=none
3820 gas=yes gnu_ld=yes
3822 alpha*-*-linux-gnulibc1*)
3823 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3824 target_cpu_default="MASK_GAS"
3825 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3826 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3827 xmake_file=none
3828 gas=yes gnu_ld=yes
3829 if test x$enable_threads = xyes; then
3830 thread_file='posix'
3833 alpha*-*-linux-gnu*)
3834 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3835 target_cpu_default="MASK_GAS"
3836 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3837 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3838 xmake_file=none
3839 gas=yes gnu_ld=yes
3840 if test x$enable_threads = xyes; then
3841 thread_file='posix'
3844 alpha*-*-netbsd*)
3845 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3846 target_cpu_default="MASK_GAS"
3847 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3848 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3849 xmake_file=none
3850 gas=yes gnu_ld=yes
3853 alpha*-*-openbsd*)
3854 # default x-alpha is only appropriate for dec-osf.
3855 target_cpu_default="MASK_GAS"
3856 tmake_file="alpha/t-alpha alpha/t-ieee"
3859 alpha*-dec-osf*)
3860 if test x$stabs = xyes
3861 then
3862 tm_file="${tm_file} dbx.h"
3864 if test x$gas != xyes
3865 then
3866 extra_passes="mips-tfile mips-tdump"
3868 use_collect2=yes
3869 tmake_file="alpha/t-alpha alpha/t-ieee"
3870 case $machine in
3871 *-*-osf1*)
3872 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3874 *-*-osf[23]*)
3875 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3877 *-*-osf4*)
3878 tm_file="${tm_file} alpha/osf.h"
3879 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3880 # a broken tar, so we use cpio instead.
3881 install_headers_dir=install-headers-cpio
3883 *-*-osf5*)
3884 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
3886 esac
3887 case $machine in
3888 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
3889 target_cpu_default=MASK_SUPPORT_ARCH
3891 esac
3893 alpha*-*-vxworks*)
3894 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3895 tmake_file="alpha/t-alpha alpha/t-ieee"
3896 if x$gas != xyes
3897 then
3898 extra_passes="mips-tfile mips-tdump"
3900 use_collect2=yes
3901 thread_file='vxworks'
3903 alpha*-*-winnt*)
3904 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3905 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3906 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
3907 xmake_file=winnt/x-winnt
3908 extra_host_objs=oldnames.o
3909 extra_gcc_objs="spawnv.o oldnames.o"
3910 if test x$gnu_ld != xyes
3911 then
3912 extra_programs=ld.exe
3914 if test x$enable_threads = xyes; then
3915 thread_file='win32'
3918 alpha*-dec-vms*)
3919 tm_file=alpha/vms.h
3920 xm_file="${xm_file} alpha/xm-vms.h"
3921 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3923 arc-*-elf*)
3924 extra_parts="crtinit.o crtfini.o"
3926 arm-*-coff* | armel-*-coff*)
3927 tm_file=arm/coff.h
3928 tmake_file=arm/t-arm-coff
3930 arm-*-vxworks*)
3931 tm_file=arm/vxarm.h
3932 tmake_file=arm/t-arm-coff
3933 thread_file='vxworks'
3935 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3936 tm_file=arm/riscix1-1.h
3937 use_collect2=yes
3939 arm-*-riscix*) # Acorn RISC machine
3940 if test x$gas = xyes
3941 then
3942 tm_file=arm/rix-gas.h
3943 else
3944 tm_file=arm/riscix.h
3946 xmake_file=arm/x-riscix
3947 tmake_file=arm/t-riscix
3948 use_collect2=yes
3950 arm-semi-aout | armel-semi-aout)
3951 tm_file=arm/semi.h
3952 tmake_file=arm/t-semi
3954 arm-semi-aof | armel-semi-aof)
3955 tm_file=arm/semiaof.h
3956 tmake_file=arm/t-semiaof
3958 arm*-*-netbsd*)
3959 tm_file=arm/netbsd.h
3960 tmake_file="t-netbsd arm/t-netbsd"
3961 use_collect2=yes
3963 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3964 cpu_type=arm
3965 xmake_file=x-linux
3966 tm_file=arm/linux-aout.h
3967 tmake_file=arm/t-linux
3968 gnu_ld=yes
3970 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3971 xm_file=arm/xm-linux.h
3972 xmake_file=x-linux
3973 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3974 case $machine in
3975 armv2*-*-*)
3976 tm_file="arm/linux-elf26.h $tm_file"
3978 esac
3979 tmake_file="t-linux arm/t-linux"
3980 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3981 gnu_ld=yes
3982 case x${enable_threads} in
3983 x | xyes | xpthreads | xposix)
3984 thread_file='posix'
3986 esac
3988 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3989 xm_file=arm/xm-linux.h
3990 xmake_file=x-linux
3991 tm_file="arm/linux-elf.h"
3992 case $machine in
3993 armv2*-*-*)
3994 tm_file="arm/linux-elf26.h $tm_file"
3996 esac
3997 tmake_file="t-linux arm/t-linux"
3998 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3999 gnu_ld=yes
4000 case x${enable_threads} in
4001 x | xyes | xpthreads | xposix)
4002 thread_file='posix'
4004 esac
4006 arm*-*-uclinux*) # ARM ucLinux
4007 tm_file=arm/uclinux-elf.h
4008 tmake_file=arm/t-arm-elf
4010 arm*-*-aout)
4011 tm_file=arm/aout.h
4012 tmake_file=arm/t-arm-aout
4014 arm*-*-ecos-elf)
4015 tm_file=arm/ecos-elf.h
4016 tmake_file=arm/t-arm-elf
4018 arm*-*-elf)
4019 tm_file=arm/unknown-elf.h
4020 tmake_file=arm/t-arm-elf
4022 arm*-*-conix*)
4023 tm_file=arm/conix-elf.h
4024 tmake_file=arm/t-arm-elf
4026 arm*-*-oabi)
4027 tm_file=arm/unknown-elf-oabi.h
4028 tmake_file=arm/t-arm-elf
4030 arm-*-pe*)
4031 tm_file=arm/pe.h
4032 tmake_file=arm/t-pe
4033 extra_objs="pe.o"
4035 avr-*-*)
4037 c1-convex-*) # Convex C1
4038 target_cpu_default=1
4039 use_collect2=yes
4041 c2-convex-*) # Convex C2
4042 target_cpu_default=2
4043 use_collect2=yes
4045 c32-convex-*)
4046 target_cpu_default=4
4047 use_collect2=yes
4049 c34-convex-*)
4050 target_cpu_default=8
4051 use_collect2=yes
4053 c38-convex-*)
4054 target_cpu_default=16
4055 use_collect2=yes
4057 c4x-*)
4058 cpu_type=c4x
4059 tmake_file=c4x/t-c4x
4061 clipper-intergraph-clix*)
4062 tm_file="${tm_file} svr3.h clipper/clix.h"
4063 xm_file=clipper/xm-clix.h
4064 xmake_file=clipper/x-clix
4065 extra_headers=va-clipper.h
4066 extra_parts="crtbegin.o crtend.o"
4067 install_headers_dir=install-headers-cpio
4069 d30v-*)
4070 float_format=i64
4072 dsp16xx-*)
4074 elxsi-elxsi-*)
4075 use_collect2=yes
4077 fr30-*-elf)
4078 tm_file="fr30/fr30.h"
4079 tmake_file=fr30/t-fr30
4080 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4082 # This hasn't been upgraded to GCC 2.
4083 # fx80-alliant-*) # Alliant FX/80
4084 # ;;
4085 h8300-*-*)
4086 float_format=i32
4088 hppa*-*-linux*)
4089 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4090 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4091 tmake_file="t-linux pa/t-linux"
4092 extra_parts="crtbegin.o crtend.o"
4093 xmake_file=none
4094 gas=yes gnu_ld=yes
4095 if test x$enable_threads = xyes; then
4096 thread_file='posix'
4099 hppa*-*-openbsd*)
4100 target_cpu_default="MASK_PA_11"
4101 tmake_file=pa/t-openbsd
4103 hppa1.1-*-pro*)
4104 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4105 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4106 xm_file=pa/xm-papro.h
4107 tmake_file=pa/t-pro
4109 hppa1.1-*-osf*)
4110 target_cpu_default="MASK_PA_11"
4111 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4112 use_collect2=yes
4114 hppa1.1-*-rtems*)
4115 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4116 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4117 xm_file=pa/xm-papro.h
4118 tmake_file=pa/t-pro
4120 hppa1.0-*-osf*)
4121 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4122 use_collect2=yes
4124 hppa1.1-*-bsd*)
4125 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
4126 target_cpu_default="MASK_PA_11"
4127 use_collect2=yes
4129 hppa1.0-*-bsd*)
4130 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
4131 use_collect2=yes
4133 hppa1.0-*-hpux7*)
4134 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4135 xm_file=pa/xm-pahpux.h
4136 xmake_file=pa/x-pa-hpux
4137 if test x$gas = xyes
4138 then
4139 tm_file="${tm_file} pa/gas.h"
4141 install_headers_dir=install-headers-cpio
4142 use_collect2=yes
4144 hppa1.0-*-hpux8.0[0-2]*)
4145 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4146 xm_file=pa/xm-pahpux.h
4147 xmake_file=pa/x-pa-hpux
4148 if test x$gas = xyes
4149 then
4150 tm_file="${tm_file} pa/pa-gas.h"
4151 else
4152 tm_file="pa/pa-oldas.h ${tm_file}"
4154 install_headers_dir=install-headers-cpio
4155 use_collect2=yes
4157 hppa1.1-*-hpux8.0[0-2]*)
4158 target_cpu_default="MASK_PA_11"
4159 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4160 xm_file=pa/xm-pahpux.h
4161 xmake_file=pa/x-pa-hpux
4162 if test x$gas = xyes
4163 then
4164 tm_file="${tm_file} pa/pa-gas.h"
4165 else
4166 tm_file="pa/pa-oldas.h ${tm_file}"
4168 install_headers_dir=install-headers-cpio
4169 use_collect2=yes
4171 hppa1.1-*-hpux8*)
4172 target_cpu_default="MASK_PA_11"
4173 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4174 xm_file=pa/xm-pahpux.h
4175 xmake_file=pa/x-pa-hpux
4176 if test x$gas = xyes
4177 then
4178 tm_file="${tm_file} pa/pa-gas.h"
4180 install_headers_dir=install-headers-cpio
4181 use_collect2=yes
4183 hppa1.0-*-hpux8*)
4184 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4185 xm_file=pa/xm-pahpux.h
4186 xmake_file=pa/x-pa-hpux
4187 if test x$gas = xyes
4188 then
4189 tm_file="${tm_file} pa/pa-gas.h"
4191 install_headers_dir=install-headers-cpio
4192 use_collect2=yes
4194 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
4195 target_cpu_default="MASK_PA_11"
4196 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4197 float_format=i128
4198 xm_file=pa/xm-pahpux.h
4199 xmake_file=pa/x-pa-hpux
4200 tmake_file=pa/t-pa
4201 if test x$gas = xyes
4202 then
4203 tm_file="${tm_file} pa/pa-gas.h"
4205 if test x$enable_threads = x; then
4206 enable_threads=$have_pthread_h
4208 case x${enable_threads} in
4209 xyes | xdce)
4210 tmake_file="${tmake_file} pa/t-dce-thr"
4212 esac
4213 install_headers_dir=install-headers-cpio
4214 use_collect2=yes
4216 hppa1.0-*-hpux10*)
4217 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4218 float_format=i128
4219 xm_file=pa/xm-pahpux.h
4220 xmake_file=pa/x-pa-hpux
4221 tmake_file=pa/t-pa
4222 if test x$gas = xyes
4223 then
4224 tm_file="${tm_file} pa/pa-gas.h"
4226 if test x$enable_threads = x; then
4227 enable_threads=$have_pthread_h
4229 case x${enable_threads} in
4230 xyes | xdce)
4231 tmake_file="${tmake_file} pa/t-dce-thr"
4233 esac
4234 install_headers_dir=install-headers-cpio
4235 use_collect2=yes
4237 hppa*64*-*-hpux11*)
4238 target_cpu_default="MASK_PA_11"
4239 xm_file=pa/xm-pa64hpux.h
4240 xmake_file=pa/x-pa-hpux
4241 tmake_file=pa/t-pa
4242 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"
4243 float_format=i128
4244 tmake_file=pa/t-pa64
4245 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
4247 if [ x$gas = xyes ]
4248 then
4249 tm_file="${tm_file} pa/pa-gas.h"
4251 # if [[ x$enable_threads = x ]]; then
4252 # enable_threads=$have_pthread_h
4253 # fi
4254 # if [[ x$enable_threads = xyes ]]; then
4255 # thread_file='dce'
4256 # tmake_file="${tmake_file} pa/t-dce-thr"
4257 # fi
4258 install_headers_dir=install-headers-cpio
4259 use_collect2=yes
4261 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
4262 target_cpu_default="MASK_PA_11"
4263 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4264 float_format=i128
4265 xm_file=pa/xm-pahpux.h
4266 xmake_file=pa/x-pa-hpux
4267 tmake_file=pa/t-pa
4268 if test x$gas = xyes
4269 then
4270 tm_file="${tm_file} pa/pa-gas.h"
4272 # if test x$enable_threads = x; then
4273 # enable_threads=$have_pthread_h
4274 # fi
4275 # if test x$enable_threads = xyes; then
4276 # thread_file='dce'
4277 # tmake_file="${tmake_file} pa/t-dce-thr"
4278 # fi
4279 install_headers_dir=install-headers-cpio
4280 use_collect2=yes
4282 hppa1.0-*-hpux11*)
4283 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4284 float_format=i128
4285 xm_file=pa/xm-pahpux.h
4286 xmake_file=pa/x-pa-hpux
4287 if test x$gas = xyes
4288 then
4289 tm_file="${tm_file} pa/pa-gas.h"
4291 # if test x$enable_threads = x; then
4292 # enable_threads=$have_pthread_h
4293 # fi
4294 # if test x$enable_threads = xyes; then
4295 # thread_file='dce'
4296 # tmake_file="${tmake_file} pa/t-dce-thr"
4297 # fi
4298 install_headers_dir=install-headers-cpio
4299 use_collect2=yes
4301 hppa1.1-*-hpux* | hppa2*-*-hpux*)
4302 target_cpu_default="MASK_PA_11"
4303 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4304 xm_file=pa/xm-pahpux.h
4305 xmake_file=pa/x-pa-hpux
4306 if test x$gas = xyes
4307 then
4308 tm_file="${tm_file} pa/pa-gas.h"
4310 install_headers_dir=install-headers-cpio
4311 use_collect2=yes
4313 hppa1.0-*-hpux*)
4314 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4315 xm_file=pa/xm-pahpux.h
4316 xmake_file=pa/x-pa-hpux
4317 if test x$gas = xyes
4318 then
4319 tm_file="${tm_file} pa/pa-gas.h"
4321 install_headers_dir=install-headers-cpio
4322 use_collect2=yes
4324 hppa1.1-*-hiux* | hppa2*-*-hiux*)
4325 target_cpu_default="MASK_PA_11"
4326 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4327 xm_file=pa/xm-pahpux.h
4328 xmake_file=pa/x-pa-hpux
4329 if test x$gas = xyes
4330 then
4331 tm_file="${tm_file} pa/pa-gas.h"
4333 install_headers_dir=install-headers-cpio
4334 use_collect2=yes
4336 hppa1.0-*-hiux*)
4337 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4338 xm_file=pa/xm-pahpux.h
4339 xmake_file=pa/x-pa-hpux
4340 if test x$gas = xyes
4341 then
4342 tm_file="${tm_file} pa/pa-gas.h"
4344 install_headers_dir=install-headers-cpio
4345 use_collect2=yes
4347 hppa*-*-lites*)
4348 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4349 target_cpu_default="MASK_PA_11"
4350 use_collect2=yes
4352 hppa*-*-mpeix*)
4353 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4354 xm_file=pa/xm-pampeix.h
4355 xmake_file=pa/x-pa-mpeix
4356 echo "You must use gas. Assuming it is already installed."
4357 install_headers_dir=install-headers-tar
4358 use_collect2=yes
4360 i370-*-opened*) # IBM 360/370/390 Architecture
4361 xm_file=i370/xm-oe.h
4362 tm_file=i370/oe.h
4363 xmake_file=i370/x-oe
4364 tmake_file=i370/t-oe
4366 i370-*-mvs*)
4367 xm_file=i370/xm-mvs.h
4368 tm_file=i370/mvs.h
4369 tmake_file=i370/t-mvs
4371 i370-*-linux*)
4372 xm_file="xm-linux.h i370/xm-linux.h"
4373 xmake_file=x-linux
4374 tm_file="i370/linux.h ${tm_file}"
4375 tmake_file="t-linux i370/t-linux"
4376 # broken_install=yes
4377 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4378 # extra_parts="crtbegin.o crtend.o"
4379 gnu_ld=yes
4380 gas=yes
4381 elf=yes
4382 if test x$enable_threads = xyes; then
4383 thread_file='posix'
4386 i[34567]86-*-elf*)
4387 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4388 tm_file=i386/i386elf.h
4389 tmake_file=i386/t-i386elf
4390 xmake_file=x-svr4
4392 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
4393 if test x$gas = xyes
4394 then
4395 tm_file=i386/aix386.h
4396 extra_parts="crtbegin.o crtend.o"
4397 tmake_file=i386/t-crtstuff
4398 else
4399 tm_file=i386/aix386ng.h
4400 use_collect2=yes
4402 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
4403 xm_defines=USG
4404 xmake_file=i386/x-aix
4406 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4407 xm_file="xm-alloca.h ${xm_file}"
4408 xm_defines="USG POSIX SMALL_ARG_MAX"
4409 xmake_file=i386/x-ncr3000
4410 if test x$stabs = xyes -a x$gas = xyes
4411 then
4412 tm_file=i386/sysv4gdb.h
4413 else
4414 tm_file=i386/sysv4.h
4416 extra_parts="crtbegin.o crtend.o"
4417 tmake_file=i386/t-crtpic
4419 i[34567]86-next-*)
4420 tm_file=i386/next.h
4421 xm_file=i386/xm-next.h
4422 tmake_file=i386/t-next
4423 xmake_file=i386/x-next
4424 extra_objs=nextstep.o
4425 extra_parts="crtbegin.o crtend.o"
4426 if test x$enable_threads = xyes; then
4427 thread_file='mach'
4430 i[34567]86-sequent-bsd*) # 80386 from Sequent
4431 use_collect2=yes
4432 if test x$gas = xyes
4433 then
4434 tm_file=i386/seq-gas.h
4435 else
4436 tm_file=i386/sequent.h
4439 i[34567]86-sequent-ptx1*)
4440 xm_defines="USG SVR3"
4441 xmake_file=i386/x-sysv3
4442 tm_file=i386/seq-sysv3.h
4443 tmake_file=i386/t-crtstuff
4444 extra_parts="crtbegin.o crtend.o"
4445 install_headers_dir=install-headers-cpio
4447 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4448 xm_defines="USG SVR3"
4449 xmake_file=i386/x-sysv3
4450 tm_file=i386/seq2-sysv3.h
4451 tmake_file=i386/t-crtstuff
4452 extra_parts="crtbegin.o crtend.o"
4453 install_headers_dir=install-headers-cpio
4455 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4456 xm_file="xm-alloca.h ${xm_file}"
4457 xm_defines="USG POSIX SMALL_ARG_MAX"
4458 xmake_file=x-svr4
4459 tm_file=i386/ptx4-i.h
4460 tmake_file=t-svr4
4461 extra_parts="crtbegin.o crtend.o"
4462 install_headers_dir=install-headers-cpio
4464 i386-sun-sunos*) # Sun i386 roadrunner
4465 xm_defines=USG
4466 tm_file=i386/sun.h
4467 use_collect2=yes
4469 i[34567]86-wrs-vxworks*)
4470 tm_file=i386/vxi386.h
4471 tmake_file=i386/t-i386bare
4472 thread_file='vxworks'
4474 i[34567]86-*-aout*)
4475 tm_file=i386/i386-aout.h
4476 tmake_file=i386/t-i386bare
4478 i[34567]86-*-beoself* | i[34567]86-*-beos*)
4479 xm_file=i386/xm-beos.h
4480 tmake_file='i386/t-beos i386/t-crtpic'
4481 tm_file=i386/beos-elf.h
4482 xmake_file=i386/x-beos
4483 extra_parts='crtbegin.o crtend.o'
4485 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4486 tm_file=i386/bsd386.h
4487 # tmake_file=t-libc-ok
4489 i[34567]86-*-bsd*)
4490 tm_file=i386/386bsd.h
4491 # tmake_file=t-libc-ok
4492 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4493 # use_collect2=yes
4495 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
4496 tm_file="i386/freebsd.h i386/perform.h"
4497 tmake_file=t-freebsd
4499 i[34567]86-*-freebsd*)
4500 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4501 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4502 tmake_file=t-freebsd
4503 gas=yes
4504 gnu_ld=yes
4505 stabs=yes
4506 case x${enable_threads} in
4507 xyes | xpthreads | xposix)
4508 thread_file='posix'
4509 tmake_file="${tmake_file} t-freebsd-thread"
4511 esac
4513 i[34567]86-*-netbsd*)
4514 tm_file=i386/netbsd.h
4515 tmake_file=t-netbsd
4516 use_collect2=yes
4518 i[34567]86-*-openbsd*)
4519 # we need collect2 until our bug is fixed...
4520 use_collect2=yes
4522 i[34567]86-*-coff*)
4523 tm_file=i386/i386-coff.h
4524 tmake_file=i386/t-i386bare
4526 i[34567]86-*-isc*) # 80386 running ISC system
4527 xm_file="${xm_file} i386/xm-isc.h"
4528 xm_defines="USG SVR3"
4529 case $machine in
4530 i[34567]86-*-isc[34]*)
4531 xmake_file=i386/x-isc3
4534 xmake_file=i386/x-isc
4536 esac
4537 if test x$gas = xyes -a x$stabs = xyes
4538 then
4539 tm_file=i386/iscdbx.h
4540 tmake_file=i386/t-svr3dbx
4541 extra_parts="svr3.ifile svr3z.ifile"
4542 else
4543 tm_file=i386/isccoff.h
4544 tmake_file=i386/t-crtstuff
4545 extra_parts="crtbegin.o crtend.o"
4547 tmake_file="$tmake_file i386/t-i386bare"
4548 install_headers_dir=install-headers-cpio
4550 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4551 # pre BFD linkers
4552 xmake_file=x-linux-aout
4553 tmake_file="t-linux-aout i386/t-crtstuff"
4554 tm_file=i386/linux-oldld.h
4555 gnu_ld=yes
4556 float_format=i386
4558 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4559 xmake_file=x-linux-aout
4560 tmake_file="t-linux-aout i386/t-crtstuff"
4561 tm_file=i386/linux-aout.h
4562 gnu_ld=yes
4563 float_format=i386
4565 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4566 # GNU/Linux C library 5
4567 xmake_file=x-linux
4568 tm_file=i386/linux.h
4569 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4570 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4571 gnu_ld=yes
4572 float_format=i386
4573 if test x$enable_threads = xyes; then
4574 thread_file='single'
4577 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4578 # aka GNU/Linux C library 6
4579 xmake_file=x-linux
4580 tm_file=i386/linux.h
4581 tmake_file="t-linux i386/t-crtstuff"
4582 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4583 gnu_ld=yes
4584 float_format=i386
4585 if test x$enable_threads = xyes; then
4586 thread_file='posix'
4589 i[34567]86-*-gnu*)
4590 float_format=i386
4592 i[34567]86-go32-msdos | i[34567]86-*-go32*)
4593 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4594 exit 1
4596 i[34567]86-pc-msdosdjgpp*)
4597 xm_file=i386/xm-djgpp.h
4598 tm_file=i386/djgpp.h
4599 tmake_file=i386/t-djgpp
4600 xmake_file=i386/x-djgpp
4601 gnu_ld=yes
4602 gas=yes
4603 exeext=.exe
4604 float_format=none
4605 case $host in *pc-msdosdjgpp*)
4606 target_alias=djgpp
4608 esac
4610 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4611 tm_file=i386/moss.h
4612 tmake_file=t-libc-ok
4613 gnu_ld=yes
4614 gas=yes
4616 i[34567]86-*-lynxos*)
4617 if test x$gas = xyes
4618 then
4619 tm_file=i386/lynx.h
4620 else
4621 tm_file=i386/lynx-ng.h
4623 xm_file=i386/xm-lynx.h
4624 tmake_file=i386/t-i386bare
4625 xmake_file=x-lynx
4627 i[34567]86-*-mach*)
4628 tm_file=i386/mach.h
4629 # tmake_file=t-libc-ok
4630 use_collect2=yes
4632 i[34567]86-*-osfrose*) # 386 using OSF/rose
4633 if test x$elf = xyes
4634 then
4635 tm_file=i386/osfelf.h
4636 use_collect2=
4637 else
4638 tm_file=i386/osfrose.h
4639 use_collect2=yes
4641 xm_file="i386/xm-osf.h ${xm_file}"
4642 xmake_file=i386/x-osfrose
4643 tmake_file=i386/t-osf
4644 extra_objs=halfpic.o
4646 i[34567]86-go32-rtems*)
4647 cpu_type=i386
4648 xm_file=i386/xm-go32.h
4649 tm_file=i386/go32-rtems.h
4650 tmake_file="i386/t-go32 t-rtems"
4652 i[34567]86-*-rtemscoff*)
4653 cpu_type=i386
4654 tm_file=i386/rtems.h
4655 tmake_file="i386/t-i386bare t-rtems"
4657 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4658 cpu_type=i386
4659 tm_file=i386/rtemself.h
4660 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4661 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4663 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4664 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4665 xm_defines="USG SVR3"
4666 xmake_file=i386/x-sco5
4667 install_headers_dir=install-headers-cpio
4668 tm_file=i386/sco5.h
4669 if test x$gas = xyes
4670 then
4671 tm_file="i386/sco5gas.h ${tm_file}"
4672 tmake_file=i386/t-sco5gas
4673 else
4674 tmake_file=i386/t-sco5
4676 tmake_file="$tmake_file i386/t-i386bare"
4677 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4679 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
4680 xm_file="${xm_file} i386/xm-sco.h"
4681 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4682 xmake_file=i386/x-sco4
4683 install_headers_dir=install-headers-cpio
4684 if test x$stabs = xyes
4685 then
4686 tm_file=i386/sco4dbx.h
4687 tmake_file=i386/t-svr3dbx
4688 extra_parts="svr3.ifile svr3z.rfile"
4689 else
4690 tm_file=i386/sco4.h
4691 tmake_file=i386/t-crtstuff
4692 extra_parts="crtbegin.o crtend.o"
4694 tmake_file="$tmake_file i386/t-i386bare"
4695 # The default EAFS filesystem supports long file names.
4696 # Truncating the target makes $host != $target which
4697 # makes gcc think it is doing a cross-compile.
4698 # truncate_target=yes
4700 i[34567]86-*-sco*) # 80386 running SCO system
4701 xm_file=i386/xm-sco.h
4702 xmake_file=i386/x-sco
4703 install_headers_dir=install-headers-cpio
4704 if test x$stabs = xyes
4705 then
4706 tm_file=i386/scodbx.h
4707 tmake_file=i386/t-svr3dbx
4708 extra_parts="svr3.ifile svr3z.rfile"
4709 else
4710 tm_file=i386/sco.h
4711 extra_parts="crtbegin.o crtend.o"
4712 tmake_file=i386/t-crtstuff
4714 tmake_file="$tmake_file i386/t-i386bare"
4715 truncate_target=yes
4717 i[34567]86-*-solaris2*)
4718 xm_file="xm-alloca.h ${xm_file}"
4719 xm_defines="USG POSIX SMALL_ARG_MAX"
4720 tm_file=i386/sol2.h
4721 if test x$gas = xyes; then
4722 # Only needed if gas does not support -s
4723 tm_file="i386/sol2gas.h ${tm_file}"
4725 tmake_file="i386/t-i386bare i386/t-sol2"
4726 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4727 xmake_file=x-svr4
4728 if test x${enable_threads} = x; then
4729 enable_threads=$have_pthread_h
4730 if test x${enable_threads} = x; then
4731 enable_threads=$have_thread_h
4734 if test x${enable_threads} = xyes; then
4735 if test x${have_pthread_h} = xyes; then
4736 thread_file='posix'
4737 else
4738 thread_file='solaris'
4742 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4743 xm_file="xm-alloca.h ${xm_file}"
4744 xm_defines="USG POSIX"
4745 tm_file=i386/sysv5.h
4746 if test x$stabs = xyes
4747 then
4748 tm_file="${tm_file} dbx.h"
4750 tmake_file="i386/t-i386bare i386/t-crtpic"
4751 xmake_file=x-svr4
4752 extra_parts="crtbegin.o crtend.o"
4753 if test x$enable_threads = xyes; then
4754 thread_file='posix'
4757 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4758 xm_file="xm-alloca.h ${xm_file}"
4759 xm_defines="USG POSIX SMALL_ARG_MAX"
4760 tm_file=i386/sysv4.h
4761 if test x$stabs = xyes
4762 then
4763 tm_file="${tm_file} dbx.h"
4765 tmake_file="i386/t-i386bare i386/t-crtpic"
4766 xmake_file=x-svr4
4767 extra_parts="crtbegin.o crtend.o"
4769 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4770 xm_file="xm-alloca.h ${xm_file}"
4771 xm_defines="USG POSIX"
4772 tm_file=i386/udk.h
4773 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
4774 xmake_file=x-svr4
4775 extra_parts="crtbegin.o crtend.o"
4776 install_headers_dir=install-headers-cpio
4778 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4779 cpu_type=i386
4780 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4781 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4782 if test x$stabs = xyes
4783 then
4784 tm_file=i386/osf1elfgdb.h
4785 else
4786 tm_file=i386/osf1elf.h
4788 tmake_file=i386/t-osf1elf
4789 xmake_file=i386/x-osf1elf
4790 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4792 i[34567]86-*-sysv*) # Intel 80386's running system V
4793 xm_defines="USG SVR3"
4794 xmake_file=i386/x-sysv3
4795 if test x$gas = xyes
4796 then
4797 if test x$stabs = xyes
4798 then
4799 tm_file=i386/svr3dbx.h
4800 tmake_file=i386/t-svr3dbx
4801 extra_parts="svr3.ifile svr3z.rfile"
4802 else
4803 tm_file=i386/svr3gas.h
4804 extra_parts="crtbegin.o crtend.o"
4805 tmake_file=i386/t-crtstuff
4807 else
4808 tm_file=i386/sysv3.h
4809 extra_parts="crtbegin.o crtend.o"
4810 tmake_file=i386/t-crtstuff
4812 tmake_file="$tmake_file i386/t-crtpic"
4814 i386-*-vsta) # Intel 80386's running VSTa kernel
4815 xm_file="${xm_file} i386/xm-vsta.h"
4816 tm_file=i386/vsta.h
4817 tmake_file=i386/t-vsta
4818 xmake_file=i386/x-vsta
4820 i[34567]86-*-win32)
4821 xm_file="${xm_file} i386/xm-cygwin.h"
4822 tmake_file=i386/t-cygwin
4823 tm_file=i386/win32.h
4824 xmake_file=i386/x-cygwin
4825 extra_objs=winnt.o
4826 if test x$enable_threads = xyes; then
4827 thread_file='win32'
4829 exeext=.exe
4831 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4832 xm_file="${xm_file} i386/xm-cygwin.h"
4833 tmake_file=i386/t-cygwin
4834 tm_file=i386/cygwin.h
4835 xmake_file=i386/x-cygwin
4836 extra_objs=winnt.o
4837 if test x$enable_threads = xyes; then
4838 thread_file='win32'
4840 exeext=.exe
4842 i[34567]86-*-mingw32*)
4843 tm_file=i386/mingw32.h
4844 xm_file="${xm_file} i386/xm-mingw32.h"
4845 tmake_file="i386/t-cygwin i386/t-mingw32"
4846 extra_objs=winnt.o
4847 xmake_file=i386/x-cygwin
4848 if test x$enable_threads = xyes; then
4849 thread_file='win32'
4851 exeext=.exe
4852 case $machine in
4853 *mingw32msv*)
4855 *minwg32crt* | *mingw32*)
4856 tm_file="${tm_file} i386/crtdll.h"
4858 esac
4860 i[34567]86-*-uwin*)
4861 tm_file=i386/uwin.h
4862 xm_file="${xm_file} i386/xm-uwin.h"
4863 xm_defines="USG NO_STAB_H"
4864 tmake_file="i386/t-cygwin i386/t-uwin"
4865 extra_objs=winnt.o
4866 xmake_file=i386/x-cygwin
4867 if test x$enable_threads = xyes; then
4868 thread_file='win32'
4870 exeext=.exe
4872 i[34567]86-*-interix*)
4873 tm_file="i386/i386-interix.h interix.h"
4874 xm_file="i386/xm-i386-interix.h xm-interix.h"
4875 xm_defines="USG"
4876 tmake_file="i386/t-interix"
4877 extra_objs=interix.o
4878 xmake_file=x-interix
4879 if test x$enable_threads = xyes ; then
4880 thread_file='posix'
4882 if test x$stabs = xyes ; then
4883 tm_file="${tm_file} dbxcoff.h"
4886 i[34567]86-*-winnt3*)
4887 tm_file=i386/win-nt.h
4888 out_file=i386/i386.c
4889 xm_file="xm-winnt.h ${xm_file}"
4890 xmake_file=winnt/x-winnt
4891 tmake_file=i386/t-winnt
4892 extra_host_objs="winnt.o oldnames.o"
4893 extra_gcc_objs="spawnv.o oldnames.o"
4894 if test x$gnu_ld != xyes
4895 then
4896 extra_programs=ld.exe
4898 if test x$enable_threads = xyes; then
4899 thread_file='win32'
4902 i[34567]86-dg-dgux*)
4903 xm_file="xm-alloca.h ${xm_file}"
4904 xm_defines="USG POSIX"
4905 out_file=i386/dgux.c
4906 tm_file=i386/dgux.h
4907 tmake_file=i386/t-dgux
4908 xmake_file=i386/x-dgux
4909 install_headers_dir=install-headers-cpio
4911 i860-alliant-*) # Alliant FX/2800
4912 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4913 xm_file="${xm_file}"
4914 xmake_file=i860/x-fx2800
4915 tmake_file=i860/t-fx2800
4916 extra_parts="crtbegin.o crtend.o"
4918 i860-*-bsd*)
4919 tm_file="${tm_file} i860/bsd.h"
4920 if test x$gas = xyes
4921 then
4922 tm_file="${tm_file} i860/bsd-gas.h"
4924 use_collect2=yes
4926 i860-*-mach*)
4927 tm_file="${tm_file} i860/mach.h"
4928 tmake_file=t-libc-ok
4930 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4931 tm_file="${tm_file} svr3.h i860/paragon.h"
4932 xm_defines="USG SVR3"
4933 tmake_file=t-osf
4935 i860-*-sysv3*)
4936 tm_file="${tm_file} svr3.h i860/sysv3.h"
4937 xm_defines="USG SVR3"
4938 xmake_file=i860/x-sysv3
4939 extra_parts="crtbegin.o crtend.o"
4941 i860-*-sysv4*)
4942 tm_file="${tm_file} svr4.h i860/sysv4.h"
4943 xm_defines="USG SVR3"
4944 xmake_file=i860/x-sysv4
4945 tmake_file=t-svr4
4946 extra_parts="crtbegin.o crtend.o"
4948 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4949 tm_file="${tm_file} i960/vx960.h"
4950 tmake_file=i960/t-vxworks960
4951 use_collect2=yes
4952 thread_file='vxworks'
4954 i960-wrs-vxworks5* | i960-wrs-vxworks)
4955 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4956 tmake_file=i960/t-vxworks960
4957 use_collect2=yes
4958 thread_file='vxworks'
4960 i960-wrs-vxworks*)
4961 tm_file="${tm_file} i960/vx960.h"
4962 tmake_file=i960/t-vxworks960
4963 use_collect2=yes
4964 thread_file='vxworks'
4966 i960-*-coff*)
4967 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4968 tmake_file=i960/t-960bare
4969 use_collect2=yes
4971 i960-*-rtems)
4972 tmake_file="i960/t-960bare t-rtems"
4973 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4974 use_collect2=yes
4976 i960-*-*) # Default i960 environment.
4977 use_collect2=yes
4979 ia64*-*-elf*)
4980 tm_file=ia64/elf.h
4981 tmake_file="ia64/t-ia64"
4982 target_cpu_default="0"
4983 if test x$gas = xyes
4984 then
4985 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
4987 if test x$gnu_ld = xyes
4988 then
4989 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
4992 ia64*-*-linux*)
4993 tm_file=ia64/linux.h
4994 tmake_file="t-linux ia64/t-ia64"
4995 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
4996 if test x$enable_threads = xyes; then
4997 thread_file='posix'
5000 m32r-*-elf*)
5001 extra_parts="crtinit.o crtfini.o"
5003 m68000-convergent-sysv*)
5004 tm_file=m68k/ctix.h
5005 xm_file="m68k/xm-3b1.h ${xm_file}"
5006 xm_defines=USG
5007 use_collect2=yes
5008 extra_headers=math-68881.h
5010 m68000-hp-bsd*) # HP 9000/200 running BSD
5011 tm_file=m68k/hp2bsd.h
5012 xmake_file=m68k/x-hp2bsd
5013 use_collect2=yes
5014 extra_headers=math-68881.h
5016 m68000-hp-hpux*) # HP 9000 series 300
5017 xm_file="xm-alloca.h ${xm_file}"
5018 xm_defines="USG"
5019 if test x$gas = xyes
5020 then
5021 xmake_file=m68k/x-hp320g
5022 tm_file=m68k/hp310g.h
5023 else
5024 xmake_file=m68k/x-hp320
5025 tm_file=m68k/hp310.h
5027 install_headers_dir=install-headers-cpio
5028 use_collect2=yes
5029 extra_headers=math-68881.h
5031 m68000-sun-sunos3*)
5032 tm_file=m68k/sun2.h
5033 use_collect2=yes
5034 extra_headers=math-68881.h
5036 m68000-sun-sunos4*)
5037 tm_file=m68k/sun2o4.h
5038 use_collect2=yes
5039 extra_headers=math-68881.h
5041 m68000-att-sysv*)
5042 xm_file="m68k/xm-3b1.h ${xm_file}"
5043 xm_defines=USG
5044 if test x$gas = xyes
5045 then
5046 tm_file=m68k/3b1g.h
5047 else
5048 tm_file=m68k/3b1.h
5050 use_collect2=yes
5051 extra_headers=math-68881.h
5053 m68k-apple-aux*) # Apple Macintosh running A/UX
5054 xm_defines="USG AUX"
5055 tmake_file=m68k/t-aux
5056 install_headers_dir=install-headers-cpio
5057 extra_headers=math-68881.h
5058 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5059 tm_file=
5060 if test "$gnu_ld" = yes
5061 then
5062 tm_file="${tm_file} m68k/auxgld.h"
5063 else
5064 tm_file="${tm_file} m68k/auxld.h"
5066 if test "$gas" = yes
5067 then
5068 tm_file="${tm_file} m68k/auxgas.h"
5069 else
5070 tm_file="${tm_file} m68k/auxas.h"
5072 tm_file="${tm_file} m68k/a-ux.h"
5073 float_format=m68k
5075 m68k-apollo-*)
5076 tm_file=m68k/apollo68.h
5077 xmake_file=m68k/x-apollo68
5078 use_collect2=yes
5079 extra_headers=math-68881.h
5080 float_format=m68k
5082 m68k-altos-sysv*) # Altos 3068
5083 if test x$gas = xyes
5084 then
5085 tm_file=m68k/altos3068.h
5086 xm_defines=USG
5087 else
5088 echo "The Altos is supported only with the GNU assembler" 1>&2
5089 exit 1
5091 extra_headers=math-68881.h
5093 m68k-bull-sysv*) # Bull DPX/2
5094 if test x$gas = xyes
5095 then
5096 if test x$stabs = xyes
5097 then
5098 tm_file=m68k/dpx2cdbx.h
5099 else
5100 tm_file=m68k/dpx2g.h
5102 else
5103 tm_file=m68k/dpx2.h
5105 xm_file="xm-alloca.h ${xm_file}"
5106 xm_defines=USG
5107 xmake_file=m68k/x-dpx2
5108 use_collect2=yes
5109 extra_headers=math-68881.h
5111 m68k-atari-sysv4*) # Atari variant of V.4.
5112 tm_file=m68k/atari.h
5113 xm_file="xm-alloca.h ${xm_file}"
5114 xm_defines="USG FULL_PROTOTYPES"
5115 tmake_file=t-svr4
5116 extra_parts="crtbegin.o crtend.o"
5117 extra_headers=math-68881.h
5118 float_format=m68k
5120 m68k-motorola-sysv*)
5121 tm_file=m68k/mot3300.h
5122 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5123 if test x$gas = xyes
5124 then
5125 xmake_file=m68k/x-mot3300-gas
5126 if test x$gnu_ld = xyes
5127 then
5128 tmake_file=m68k/t-mot3300-gald
5129 else
5130 tmake_file=m68k/t-mot3300-gas
5131 use_collect2=yes
5133 else
5134 xmake_file=m68k/x-mot3300
5135 if test x$gnu_ld = xyes
5136 then
5137 tmake_file=m68k/t-mot3300-gld
5138 else
5139 tmake_file=m68k/t-mot3300
5140 use_collect2=yes
5143 gdb_needs_out_file_path=yes
5144 extra_parts="crt0.o mcrt0.o"
5145 extra_headers=math-68881.h
5146 float_format=m68k
5148 m68k-ncr-sysv*) # NCR Tower 32 SVR3
5149 tm_file=m68k/tower-as.h
5150 xm_defines="USG SVR3"
5151 xmake_file=m68k/x-tower
5152 extra_parts="crtbegin.o crtend.o"
5153 extra_headers=math-68881.h
5155 m68k-plexus-sysv*)
5156 tm_file=m68k/plexus.h
5157 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5158 xm_defines=USG
5159 use_collect2=yes
5160 extra_headers=math-68881.h
5162 m68k-tti-*)
5163 tm_file=m68k/pbb.h
5164 xm_file="xm-alloca.h ${xm_file}"
5165 xm_defines=USG
5166 extra_headers=math-68881.h
5168 m68k-crds-unos*)
5169 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5170 xm_defines="USG unos"
5171 xmake_file=m68k/x-crds
5172 tm_file=m68k/crds.h
5173 use_collect2=yes
5174 extra_headers=math-68881.h
5176 m68k-cbm-sysv4*) # Commodore variant of V.4.
5177 tm_file=m68k/amix.h
5178 xm_file="xm-alloca.h ${xm_file}"
5179 xm_defines="USG FULL_PROTOTYPES"
5180 xmake_file=m68k/x-amix
5181 tmake_file=t-svr4
5182 extra_parts="crtbegin.o crtend.o"
5183 extra_headers=math-68881.h
5184 float_format=m68k
5186 m68k-ccur-rtu)
5187 tm_file=m68k/ccur-GAS.h
5188 xmake_file=m68k/x-ccur
5189 extra_headers=math-68881.h
5190 use_collect2=yes
5191 float_format=m68k
5193 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
5194 tm_file=m68k/hp3bsd44.h
5195 xmake_file=m68k/x-hp3bsd44
5196 use_collect2=yes
5197 extra_headers=math-68881.h
5198 float_format=m68k
5200 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
5201 tm_file=m68k/hp3bsd.h
5202 use_collect2=yes
5203 extra_headers=math-68881.h
5204 float_format=m68k
5206 m68k-isi-bsd*)
5207 if test x$with_fp = xno
5208 then
5209 tm_file=m68k/isi-nfp.h
5210 else
5211 tm_file=m68k/isi.h
5212 float_format=m68k
5214 use_collect2=yes
5215 extra_headers=math-68881.h
5217 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
5218 xm_file="xm-alloca.h ${xm_file}"
5219 xm_defines="USG"
5220 if test x$gas = xyes
5221 then
5222 xmake_file=m68k/x-hp320g
5223 tm_file=m68k/hp320g.h
5224 else
5225 xmake_file=m68k/x-hp320
5226 tm_file=m68k/hpux7.h
5228 install_headers_dir=install-headers-cpio
5229 use_collect2=yes
5230 extra_headers=math-68881.h
5231 float_format=m68k
5233 m68k-hp-hpux*) # HP 9000 series 300
5234 xm_file="xm-alloca.h ${xm_file}"
5235 xm_defines="USG"
5236 if test x$gas = xyes
5237 then
5238 xmake_file=m68k/x-hp320g
5239 tm_file=m68k/hp320g.h
5240 else
5241 xmake_file=m68k/x-hp320
5242 tm_file=m68k/hp320.h
5244 install_headers_dir=install-headers-cpio
5245 use_collect2=yes
5246 extra_headers=math-68881.h
5247 float_format=m68k
5249 m68k-sun-mach*)
5250 tm_file=m68k/sun3mach.h
5251 use_collect2=yes
5252 extra_headers=math-68881.h
5253 float_format=m68k
5255 m68k-sony-newsos3*)
5256 if test x$gas = xyes
5257 then
5258 tm_file=m68k/news3gas.h
5259 else
5260 tm_file=m68k/news3.h
5262 use_collect2=yes
5263 extra_headers=math-68881.h
5264 float_format=m68k
5266 m68k-sony-bsd* | m68k-sony-newsos*)
5267 if test x$gas = xyes
5268 then
5269 tm_file=m68k/newsgas.h
5270 else
5271 tm_file=m68k/news.h
5273 use_collect2=yes
5274 extra_headers=math-68881.h
5275 float_format=m68k
5277 m68k-next-nextstep2*)
5278 tm_file=m68k/next21.h
5279 xm_file="m68k/xm-next.h ${xm_file}"
5280 tmake_file=m68k/t-next
5281 xmake_file=m68k/x-next
5282 extra_objs=nextstep.o
5283 extra_headers=math-68881.h
5284 use_collect2=yes
5285 float_format=m68k
5287 m68k-next-nextstep[34]*)
5288 tm_file=m68k/next.h
5289 xm_file="m68k/xm-next.h ${xm_file}"
5290 tmake_file=m68k/t-next
5291 xmake_file=m68k/x-next
5292 extra_objs=nextstep.o
5293 extra_parts="crtbegin.o crtend.o"
5294 extra_headers=math-68881.h
5295 float_format=m68k
5296 if test x$enable_threads = xyes; then
5297 thread_file='mach'
5300 m68k-sun-sunos3*)
5301 if test x$with_fp = xno
5302 then
5303 tm_file=m68k/sun3n3.h
5304 else
5305 tm_file=m68k/sun3o3.h
5306 float_format=m68k
5308 use_collect2=yes
5309 extra_headers=math-68881.h
5311 m68k-sun-sunos*) # For SunOS 4 (the default).
5312 if test x$with_fp = xno
5313 then
5314 tm_file=m68k/sun3n.h
5315 else
5316 tm_file=m68k/sun3.h
5317 float_format=m68k
5319 use_collect2=yes
5320 extra_headers=math-68881.h
5322 m68k-wrs-vxworks*)
5323 tm_file=m68k/vxm68k.h
5324 tmake_file=m68k/t-vxworks68
5325 extra_headers=math-68881.h
5326 thread_file='vxworks'
5327 float_format=m68k
5329 m68k-*-aout*)
5330 tmake_file=m68k/t-m68kbare
5331 tm_file="m68k/m68k-aout.h libgloss.h"
5332 extra_headers=math-68881.h
5333 float_format=m68k
5335 m68k-*-coff*)
5336 tmake_file=m68k/t-m68kbare
5337 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
5338 extra_headers=math-68881.h
5339 float_format=m68k
5341 m68020-*-elf* | m68k-*-elf*)
5342 tm_file="m68k/m68020-elf.h"
5343 xm_file=m68k/xm-m68kv.h
5344 tmake_file=m68k/t-m68kelf
5345 header_files=math-68881.h
5347 m68k-*-lynxos*)
5348 if test x$gas = xyes
5349 then
5350 tm_file=m68k/lynx.h
5351 else
5352 tm_file=m68k/lynx-ng.h
5354 xm_file=m68k/xm-lynx.h
5355 xmake_file=x-lynx
5356 tmake_file=m68k/t-lynx
5357 extra_headers=math-68881.h
5358 float_format=m68k
5360 m68k*-*-netbsd*)
5361 tm_file=m68k/netbsd.h
5362 tmake_file=t-netbsd
5363 float_format=m68k
5364 use_collect2=yes
5366 m68k*-*-openbsd*)
5367 float_format=m68k
5368 # we need collect2 until our bug is fixed...
5369 use_collect2=yes
5371 m68k-*-sysv3*) # Motorola m68k's running system V.3
5372 xm_file="xm-alloca.h ${xm_file}"
5373 xm_defines=USG
5374 xmake_file=m68k/x-m68kv
5375 extra_parts="crtbegin.o crtend.o"
5376 extra_headers=math-68881.h
5377 float_format=m68k
5379 m68k-*-sysv4*) # Motorola m68k's running system V.4
5380 tm_file=m68k/m68kv4.h
5381 xm_file="xm-alloca.h ${xm_file}"
5382 xm_defines=USG
5383 tmake_file=t-svr4
5384 extra_parts="crtbegin.o crtend.o"
5385 extra_headers=math-68881.h
5386 float_format=m68k
5388 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5389 # with a.out format
5390 xmake_file=x-linux
5391 tm_file=m68k/linux-aout.h
5392 tmake_file="t-linux-aout m68k/t-linux-aout"
5393 extra_headers=math-68881.h
5394 float_format=m68k
5395 gnu_ld=yes
5397 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5398 # with ELF format using the
5399 # GNU/Linux C library 5
5400 xmake_file=x-linux
5401 tm_file=m68k/linux.h
5402 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
5403 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5404 extra_headers=math-68881.h
5405 float_format=m68k
5406 gnu_ld=yes
5408 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
5409 # with ELF format using glibc 2
5410 # aka the GNU/Linux C library 6.
5411 xmake_file=x-linux
5412 tm_file=m68k/linux.h
5413 tmake_file="t-linux m68k/t-linux"
5414 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5415 extra_headers=math-68881.h
5416 float_format=m68k
5417 gnu_ld=yes
5418 if test x$enable_threads = xyes; then
5419 thread_file='posix'
5422 m68k-*-psos*)
5423 tmake_file=m68k/t-m68kbare
5424 tm_file=m68k/m68k-psos.h
5425 extra_headers=math-68881.h
5426 float_format=m68k
5428 m68k-*-rtemscoff*)
5429 tmake_file="m68k/t-m68kbare t-rtems"
5430 tm_file=m68k/rtems.h
5431 extra_headers=math-68881.h
5432 float_format=m68k
5434 m68k-*-rtemself*|m68k-*-rtems*)
5435 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5436 tm_file=m68k/rtemself.h
5437 extra_headers=math-68881.h
5438 float_format=m68k
5440 m88k-dg-dgux*)
5441 case $machine in
5442 m88k-dg-dguxbcs*)
5443 tm_file=m88k/dguxbcs.h
5444 tmake_file=m88k/t-dguxbcs
5447 tm_file=m88k/dgux.h
5448 tmake_file=m88k/t-dgux
5450 esac
5451 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5452 xmake_file=m88k/x-dgux
5453 if test x$gas = xyes
5454 then
5455 tmake_file=m88k/t-dgux-gas
5458 m88k-dolphin-sysv3*)
5459 tm_file=m88k/dolph.h
5460 extra_parts="crtbegin.o crtend.o"
5461 xm_file="m88k/xm-sysv3.h ${xm_file}"
5462 xmake_file=m88k/x-dolph
5463 if test x$gas = xyes
5464 then
5465 tmake_file=m88k/t-m88k-gas
5468 m88k-tektronix-sysv3)
5469 tm_file=m88k/tekXD88.h
5470 extra_parts="crtbegin.o crtend.o"
5471 xm_file="m88k/xm-sysv3.h ${xm_file}"
5472 xmake_file=m88k/x-tekXD88
5473 if test x$gas = xyes
5474 then
5475 tmake_file=m88k/t-m88k-gas
5478 m88k-*-aout*)
5479 tm_file=m88k/m88k-aout.h
5481 m88k-*-coff*)
5482 tm_file=m88k/m88k-coff.h
5483 tmake_file=m88k/t-bug
5485 m88k-*-luna*)
5486 tm_file=m88k/luna.h
5487 extra_parts="crtbegin.o crtend.o"
5488 if test x$gas = xyes
5489 then
5490 tmake_file=m88k/t-luna-gas
5491 else
5492 tmake_file=m88k/t-luna
5495 m88k-*-openbsd*)
5496 tmake_file="${tmake_file} m88k/t-luna-gas"
5497 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5498 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5500 m88k-*-sysv3*)
5501 tm_file=m88k/sysv3.h
5502 extra_parts="crtbegin.o crtend.o"
5503 xm_file="m88k/xm-sysv3.h ${xm_file}"
5504 xmake_file=m88k/x-sysv3
5505 if test x$gas = xyes
5506 then
5507 tmake_file=m88k/t-m88k-gas
5510 m88k-*-sysv4*)
5511 tm_file=m88k/sysv4.h
5512 extra_parts="crtbegin.o crtend.o"
5513 xmake_file=m88k/x-sysv4
5514 tmake_file=m88k/t-sysv4
5516 mcore-*-elf)
5517 tm_file=mcore/mcore-elf.h
5518 tmake_file=mcore/t-mcore
5520 mcore-*-pe*)
5521 tm_file=mcore/mcore-pe.h
5522 tmake_file=mcore/t-mcore-pe
5524 mips-sgi-irix6*) # SGI System V.4., IRIX 6
5525 if test "x$gnu_ld" = xyes
5526 then
5527 tm_file="mips/iris6.h mips/iris6gld.h"
5528 else
5529 tm_file=mips/iris6.h
5531 tmake_file=mips/t-iris6
5532 xm_file=mips/xm-iris6.h
5533 xmake_file=mips/x-iris6
5534 # if test x$enable_threads = xyes; then
5535 # thread_file='irix'
5536 # fi
5538 mips-wrs-vxworks)
5539 tm_file="mips/elf.h mips/vxworks.h"
5540 tmake_file=mips/t-ecoff
5541 gas=yes
5542 gnu_ld=yes
5543 extra_parts="crtbegin.o crtend.o"
5544 thread_file='vxworks'
5546 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
5547 tm_file="mips/iris6.h mips/cross64.h"
5548 xm_defines=USG
5549 xm_file="mips/xm-iris5.h"
5550 xmake_file=mips/x-iris
5551 tmake_file=mips/t-cross64
5552 # See comment in mips/iris[56].h files.
5553 use_collect2=yes
5554 # if test x$enable_threads = xyes; then
5555 # thread_file='irix'
5556 # fi
5558 mips-sni-sysv4)
5559 if test x$gas = xyes
5560 then
5561 if test x$stabs = xyes
5562 then
5563 tm_file=mips/iris5gdb.h
5564 else
5565 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5567 else
5568 tm_file=mips/sni-svr4.h
5570 xm_defines=USG
5571 xmake_file=mips/x-sni-svr4
5572 tmake_file=mips/t-mips-gas
5573 if test x$gnu_ld != xyes
5574 then
5575 use_collect2=yes
5578 mips-sgi-irix5*) # SGI System V.4., IRIX 5
5579 if test x$gas = xyes
5580 then
5581 tm_file="mips/iris5.h mips/iris5gas.h"
5582 if test x$stabs = xyes
5583 then
5584 tm_file="${tm_file} dbx.h"
5586 else
5587 tm_file=mips/iris5.h
5589 xm_defines=USG
5590 xm_file="mips/xm-iris5.h"
5591 xmake_file=mips/x-iris
5592 # mips-tfile doesn't work yet
5593 tmake_file=mips/t-mips-gas
5594 # See comment in mips/iris5.h file.
5595 use_collect2=yes
5596 # if test x$enable_threads = xyes; then
5597 # thread_file='irix'
5598 # fi
5600 mips-sgi-irix4loser*) # Mostly like a MIPS.
5601 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5602 if test x$stabs = xyes; then
5603 tm_file="${tm_file} dbx.h"
5605 xm_defines=USG
5606 xmake_file=mips/x-iris
5607 if test x$gas = xyes
5608 then
5609 tmake_file=mips/t-mips-gas
5610 else
5611 extra_passes="mips-tfile mips-tdump"
5613 if test x$gnu_ld != xyes
5614 then
5615 use_collect2=yes
5617 # if test x$enable_threads = xyes; then
5618 # thread_file='irix'
5619 # fi
5621 mips-sgi-irix4*) # Mostly like a MIPS.
5622 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5623 if test x$stabs = xyes; then
5624 tm_file="${tm_file} dbx.h"
5626 xm_defines=USG
5627 xmake_file=mips/x-iris
5628 if test x$gas = xyes
5629 then
5630 tmake_file=mips/t-mips-gas
5631 else
5632 extra_passes="mips-tfile mips-tdump"
5634 if test x$gnu_ld != xyes
5635 then
5636 use_collect2=yes
5638 # if test x$enable_threads = xyes; then
5639 # thread_file='irix'
5640 # fi
5642 mips-sgi-*) # Mostly like a MIPS.
5643 tm_file="mips/iris3.h ${tm_file}"
5644 if test x$stabs = xyes; then
5645 tm_file="${tm_file} dbx.h"
5647 xm_defines=USG
5648 xmake_file=mips/x-iris3
5649 if test x$gas = xyes
5650 then
5651 tmake_file=mips/t-mips-gas
5652 else
5653 extra_passes="mips-tfile mips-tdump"
5655 if test x$gnu_ld != xyes
5656 then
5657 use_collect2=yes
5660 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
5661 tm_file="mips/osfrose.h ${tm_file}"
5662 xmake_file=mips/x-osfrose
5663 tmake_file=mips/t-osfrose
5664 extra_objs=halfpic.o
5665 use_collect2=yes
5667 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
5668 tm_file=mips/dec-osf1.h
5669 if test x$stabs = xyes; then
5670 tm_file="${tm_file} dbx.h"
5672 xmake_file=mips/x-dec-osf1
5673 if test x$gas = xyes
5674 then
5675 tmake_file=mips/t-mips-gas
5676 else
5677 tmake_file=mips/t-ultrix
5678 extra_passes="mips-tfile mips-tdump"
5680 if test x$gnu_ld != xyes
5681 then
5682 use_collect2=yes
5685 mips-dec-bsd*) # Decstation running 4.4 BSD
5686 tm_file=mips/dec-bsd.h
5687 if test x$gas = xyes
5688 then
5689 tmake_file=mips/t-mips-gas
5690 else
5691 tmake_file=mips/t-ultrix
5692 extra_passes="mips-tfile mips-tdump"
5694 if test x$gnu_ld != xyes
5695 then
5696 use_collect2=yes
5699 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
5700 tm_file=mips/netbsd.h
5701 # On NetBSD, the headers are already okay, except for math.h.
5702 tmake_file=t-netbsd
5704 mips*-*-linux*) # Linux MIPS, either endian.
5705 xmake_file=x-linux
5706 case $machine in
5707 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
5708 *) tm_file="mips/elf.h mips/linux.h" ;;
5709 esac
5710 tmake_file=t-linux
5711 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5712 gnu_ld=yes
5713 gas=yes
5714 if test x$enable_threads = xyes; then
5715 thread_file='posix'
5718 mips*el-*-openbsd*) # mips little endian
5719 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5721 mips*-*-openbsd*) # mips big endian
5722 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5723 tm_file="mips/openbsd-be.h ${tm_file}"
5725 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
5726 tm_file="mips/news4.h ${tm_file}"
5727 if test x$stabs = xyes; then
5728 tm_file="${tm_file} dbx.h"
5730 if test x$gas = xyes
5731 then
5732 tmake_file=mips/t-mips-gas
5733 else
5734 extra_passes="mips-tfile mips-tdump"
5736 if test x$gnu_ld != xyes
5737 then
5738 use_collect2=yes
5740 xmake_file=mips/x-sony
5742 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5743 # That is based on svr4.
5744 # t-svr4 is not right because this system doesn't use ELF.
5745 tm_file="mips/news5.h ${tm_file}"
5746 if test x$stabs = xyes; then
5747 tm_file="${tm_file} dbx.h"
5749 xm_defines=USG
5750 if test x$gas = xyes
5751 then
5752 tmake_file=mips/t-mips-gas
5753 else
5754 extra_passes="mips-tfile mips-tdump"
5756 if test x$gnu_ld != xyes
5757 then
5758 use_collect2=yes
5761 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5762 tm_file="mips/svr4-5.h mips/svr4-t.h"
5763 if test x$stabs = xyes; then
5764 tm_file="${tm_file} dbx.h"
5766 xm_defines=USG
5767 xmake_file=mips/x-sysv
5768 if test x$gas = xyes
5769 then
5770 tmake_file=mips/t-mips-gas
5771 extra_parts="crtbegin.o crtend.o"
5772 else
5773 tmake_file=mips/t-mips
5774 extra_passes="mips-tfile mips-tdump"
5776 if test x$gnu_ld != xyes
5777 then
5778 use_collect2=yes
5781 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5782 tm_file="mips/ultrix.h ${tm_file}"
5783 if test x$stabs = xyes; then
5784 tm_file="${tm_file} dbx.h"
5786 xmake_file=mips/x-ultrix
5787 if test x$gas = xyes
5788 then
5789 tmake_file=mips/t-mips-gas
5790 else
5791 tmake_file=mips/t-ultrix
5792 extra_passes="mips-tfile mips-tdump"
5794 if test x$gnu_ld != xyes
5795 then
5796 use_collect2=yes
5799 mips-*-riscos[56789]bsd*)
5800 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5801 if test x$stabs = xyes; then
5802 tm_file="${tm_file} dbx.h"
5804 if test x$gas = xyes
5805 then
5806 tmake_file=mips/t-bsd-gas
5807 else
5808 tmake_file=mips/t-bsd
5809 extra_passes="mips-tfile mips-tdump"
5811 if test x$gnu_ld != xyes
5812 then
5813 use_collect2=yes
5816 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5817 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5818 if test x$stabs = xyes; then
5819 tm_file="${tm_file} dbx.h"
5821 if test x$gas = xyes
5822 then
5823 tmake_file=mips/t-bsd-gas
5824 else
5825 tmake_file=mips/t-bsd
5826 extra_passes="mips-tfile mips-tdump"
5828 if test x$gnu_ld != xyes
5829 then
5830 use_collect2=yes
5833 mips-*-riscos[56789]sysv4*)
5834 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5835 if test x$stabs = xyes; then
5836 tm_file="${tm_file} dbx.h"
5838 xmake_file=mips/x-sysv
5839 if test x$gas = xyes
5840 then
5841 tmake_file=mips/t-svr4-gas
5842 else
5843 tmake_file=mips/t-svr4
5844 extra_passes="mips-tfile mips-tdump"
5846 if test x$gnu_ld != xyes
5847 then
5848 use_collect2=yes
5851 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5852 tm_file="mips/svr4-4.h ${tm_file}"
5853 if test x$stabs = xyes; then
5854 tm_file="${tm_file} dbx.h"
5856 xm_defines=USG
5857 xmake_file=mips/x-sysv
5858 if test x$gas = xyes
5859 then
5860 tmake_file=mips/t-svr4-gas
5861 else
5862 tmake_file=mips/t-svr4
5863 extra_passes="mips-tfile mips-tdump"
5865 if test x$gnu_ld != xyes
5866 then
5867 use_collect2=yes
5870 mips-*-riscos[56789]sysv*)
5871 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5872 if test x$stabs = xyes; then
5873 tm_file="${tm_file} dbx.h"
5875 xm_defines=USG
5876 xmake_file=mips/x-sysv
5877 if test x$gas = xyes
5878 then
5879 tmake_file=mips/t-svr3-gas
5880 else
5881 tmake_file=mips/t-svr3
5882 extra_passes="mips-tfile mips-tdump"
5884 if test x$gnu_ld != xyes
5885 then
5886 use_collect2=yes
5889 mips-*-sysv* | mips-*-riscos*sysv*)
5890 tm_file="mips/svr3-4.h ${tm_file}"
5891 if test x$stabs = xyes; then
5892 tm_file="${tm_file} dbx.h"
5894 xm_defines=USG
5895 xmake_file=mips/x-sysv
5896 if test x$gas = xyes
5897 then
5898 tmake_file=mips/t-svr3-gas
5899 else
5900 tmake_file=mips/t-svr3
5901 extra_passes="mips-tfile mips-tdump"
5903 if test x$gnu_ld != xyes
5904 then
5905 use_collect2=yes
5908 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5909 tm_file=mips/mips-5.h
5910 if test x$stabs = xyes; then
5911 tm_file="${tm_file} dbx.h"
5913 if test x$gas = xyes
5914 then
5915 tmake_file=mips/t-mips-gas
5916 else
5917 extra_passes="mips-tfile mips-tdump"
5919 if test x$gnu_ld != xyes
5920 then
5921 use_collect2=yes
5924 mips-*-gnu*)
5926 mipsel-*-ecoff*)
5927 tm_file=mips/ecoffl.h
5928 if test x$stabs = xyes; then
5929 tm_file="${tm_file} dbx.h"
5931 tmake_file=mips/t-ecoff
5933 mips-*-ecoff*)
5934 tm_file="gofast.h mips/ecoff.h"
5935 if test x$stabs = xyes; then
5936 tm_file="${tm_file} dbx.h"
5938 tmake_file=mips/t-ecoff
5940 mipsel-*-elf*)
5941 tm_file="mips/elfl.h"
5942 tmake_file=mips/t-elf
5944 mips-*-elf*)
5945 tm_file="mips/elf.h"
5946 tmake_file=mips/t-elf
5948 mips64el-*-elf*)
5949 tm_file="mips/elfl64.h"
5950 tmake_file=mips/t-elf
5952 mips64orionel-*-elf*)
5953 tm_file="mips/elforion.h mips/elfl64.h"
5954 tmake_file=mips/t-elf
5956 mips64-*-elf*)
5957 tm_file="mips/elf64.h"
5958 tmake_file=mips/t-elf
5960 mips64orion-*-elf*)
5961 tm_file="mips/elforion.h mips/elf64.h"
5962 tmake_file=mips/t-elf
5964 mips64orion-*-rtems*)
5965 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5966 tmake_file="mips/t-elf t-rtems"
5968 mipstx39el-*-elf*)
5969 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5970 tmake_file=mips/t-r3900
5972 mipstx39-*-elf*)
5973 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5974 tmake_file=mips/t-r3900
5976 mips-*-*) # Default MIPS RISC-OS 4.0.
5977 if test x$stabs = xyes; then
5978 tm_file="${tm_file} dbx.h"
5980 if test x$gas = xyes
5981 then
5982 tmake_file=mips/t-mips-gas
5983 else
5984 extra_passes="mips-tfile mips-tdump"
5986 if test x$gnu_ld != xyes
5987 then
5988 use_collect2=yes
5991 mn10200-*-*)
5992 float_format=i32
5993 cpu_type=mn10200
5994 tm_file="mn10200/mn10200.h"
5995 if test x$stabs = xyes
5996 then
5997 tm_file="${tm_file} dbx.h"
5999 use_collect2=no
6001 mn10300-*-*)
6002 cpu_type=mn10300
6003 tm_file="mn10300/mn10300.h"
6004 if test x$stabs = xyes
6005 then
6006 tm_file="${tm_file} dbx.h"
6008 use_collect2=no
6010 ns32k-encore-bsd*)
6011 tm_file=ns32k/encore.h
6012 use_collect2=yes
6014 ns32k-sequent-bsd*)
6015 tm_file=ns32k/sequent.h
6016 use_collect2=yes
6018 ns32k-tek6100-bsd*)
6019 tm_file=ns32k/tek6100.h
6020 use_collect2=yes
6022 ns32k-tek6200-bsd*)
6023 tm_file=ns32k/tek6200.h
6024 use_collect2=yes
6026 # This has not been updated to GCC 2.
6027 # ns32k-ns-genix*)
6028 # xm_defines=USG
6029 # xmake_file=ns32k/x-genix
6030 # tm_file=ns32k/genix.h
6031 # use_collect2=yes
6032 # ;;
6033 ns32k-merlin-*)
6034 tm_file=ns32k/merlin.h
6035 use_collect2=yes
6037 ns32k-pc532-mach*)
6038 tm_file=ns32k/pc532-mach.h
6039 use_collect2=yes
6041 ns32k-pc532-minix*)
6042 tm_file=ns32k/pc532-min.h
6043 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
6044 xm_defines=USG
6045 use_collect2=yes
6047 ns32k-*-netbsd*)
6048 tm_file=ns32k/netbsd.h
6049 xm_file="ns32k/xm-netbsd.h ${xm_file}"
6050 # On NetBSD, the headers are already okay, except for math.h.
6051 tmake_file=t-netbsd
6052 use_collect2=yes
6054 pdp11-*-bsd)
6055 tm_file="${tm_file} pdp11/2bsd.h"
6057 pdp11-*-*)
6059 avr-*-*)
6061 ns32k-*-openbsd*)
6062 # Nothing special
6064 # This has not been updated to GCC 2.
6065 # pyramid-*-*)
6066 # cpu_type=pyr
6067 # xmake_file=pyr/x-pyr
6068 # use_collect2=yes
6069 # ;;
6071 pj*-linux*)
6072 tm_file="svr4.h pj/linux.h ${tm_file}"
6074 pj-*)
6076 pjl-*)
6077 tm_file="svr4.h pj/pjl.h ${tm_file}"
6080 romp-*-aos*)
6081 use_collect2=yes
6083 romp-*-mach*)
6084 xmake_file=romp/x-mach
6085 use_collect2=yes
6087 romp-*-openbsd*)
6088 # Nothing special
6090 powerpc-*-openbsd*)
6091 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6093 powerpc-*-beos*)
6094 cpu_type=rs6000
6095 tm_file=rs6000/beos.h
6096 xm_file=rs6000/xm-beos.h
6097 tmake_file=rs6000/t-beos
6098 xmake_file=rs6000/x-beos
6100 powerpc-*-sysv*)
6101 tm_file=rs6000/sysv4.h
6102 xm_file="rs6000/xm-sysv4.h"
6103 xm_defines="USG POSIX"
6104 extra_headers=ppc-asm.h
6105 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6106 xmake_file=rs6000/x-sysv4
6108 powerpc-*-eabiaix*)
6109 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6110 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6111 extra_headers=ppc-asm.h
6113 powerpc-*-eabisim*)
6114 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6115 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6116 extra_headers=ppc-asm.h
6118 powerpc-*-elf*)
6119 tm_file="rs6000/sysv4.h"
6120 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6121 extra_headers=ppc-asm.h
6123 powerpc-*-eabi*)
6124 tm_file="rs6000/sysv4.h rs6000/eabi.h"
6125 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6126 extra_headers=ppc-asm.h
6128 powerpc-*-rtems*)
6129 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6130 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6131 extra_headers=ppc-asm.h
6133 powerpc-*-linux-gnulibc1)
6134 tm_file="rs6000/sysv4.h rs6000/linux.h"
6135 xm_file=rs6000/xm-sysv4.h
6136 out_file=rs6000/rs6000.c
6137 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6138 xmake_file=x-linux
6139 extra_headers=ppc-asm.h
6140 if test x$enable_threads = xyes; then
6141 thread_file='posix'
6144 powerpc-*-linux-gnu*)
6145 tm_file="rs6000/sysv4.h rs6000/linux.h"
6146 xm_file="rs6000/xm-sysv4.h"
6147 xm_defines="USG ${xm_defines}"
6148 out_file=rs6000/rs6000.c
6149 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6150 xmake_file=x-linux
6151 extra_headers=ppc-asm.h
6152 if test x$enable_threads = xyes; then
6153 thread_file='posix'
6156 powerpc-wrs-vxworks*)
6157 cpu_type=rs6000
6158 xm_file="rs6000/xm-sysv4.h"
6159 xm_defines="USG POSIX"
6160 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
6161 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6162 extra_headers=ppc-asm.h
6163 thread_file='vxworks'
6165 powerpcle-wrs-vxworks*)
6166 cpu_type=rs6000
6167 xm_file="rs6000/xm-sysv4.h"
6168 xm_defines="USG POSIX"
6169 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6170 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6171 extra_headers=ppc-asm.h
6172 thread_file='vxworks'
6174 powerpcle-*-sysv*)
6175 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
6176 xm_file="rs6000/xm-sysv4.h"
6177 xm_defines="USG POSIX"
6178 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6179 xmake_file=rs6000/x-sysv4
6180 extra_headers=ppc-asm.h
6182 powerpcle-*-elf*)
6183 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
6184 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6185 extra_headers=ppc-asm.h
6187 powerpcle-*-eabisim*)
6188 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6189 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6190 extra_headers=ppc-asm.h
6192 powerpcle-*-eabi*)
6193 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6194 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
6195 extra_headers=ppc-asm.h
6197 powerpcle-*-solaris2*)
6198 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6199 xm_file="rs6000/xm-sysv4.h"
6200 xm_defines="USG POSIX"
6201 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
6202 xmake_file=rs6000/x-sysv4
6203 extra_headers=ppc-asm.h
6205 rs6000-ibm-aix3.[01]*)
6206 tm_file=rs6000/aix31.h
6207 xmake_file=rs6000/x-aix31
6208 float_format=none
6209 use_collect2=yes
6211 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
6212 tm_file=rs6000/aix3newas.h
6213 if test x$host != x$target
6214 then
6215 tmake_file=rs6000/t-xnewas
6216 else
6217 tmake_file=rs6000/t-newas
6219 float_format=none
6220 use_collect2=yes
6222 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
6223 tm_file=rs6000/aix41.h
6224 if test x$host != x$target
6225 then
6226 tmake_file=rs6000/t-xnewas
6227 else
6228 tmake_file=rs6000/t-newas
6230 if test "$gnu_ld" = yes
6231 then
6232 xmake_file=rs6000/x-aix41-gld
6233 else
6234 tmake_file="rs6000/t-newas rs6000/t-aix41"
6236 xmake_file=rs6000/x-aix41
6237 float_format=none
6238 use_collect2=yes
6240 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
6241 tm_file=rs6000/aix43.h
6242 tmake_file=rs6000/t-aix43
6243 xmake_file=rs6000/x-aix41
6244 float_format=none
6245 use_collect2=yes
6247 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
6248 tm_file=rs6000/aix43.h
6249 tmake_file=rs6000/t-aix43
6250 xmake_file=rs6000/x-aix41
6251 float_format=none
6252 use_collect2=yes
6254 rs6000-ibm-aix*)
6255 float_format=none
6256 use_collect2=yes
6258 rs6000-bull-bosx)
6259 float_format=none
6260 use_collect2=yes
6262 rs6000-*-mach*)
6263 tm_file=rs6000/mach.h
6264 xm_file="${xm_file} rs6000/xm-mach.h"
6265 xmake_file=rs6000/x-mach
6266 use_collect2=yes
6268 rs6000-*-lynxos*)
6269 tm_file=rs6000/lynx.h
6270 xm_file=rs6000/xm-lynx.h
6271 tmake_file=rs6000/t-rs6000
6272 xmake_file=rs6000/x-lynx
6273 use_collect2=yes
6275 sh-*-elf*)
6276 tm_file=sh/elf.h
6277 float_format=sh
6279 sh-*-rtemself*)
6280 tmake_file="sh/t-sh t-rtems"
6281 tm_file=sh/rtemself.h
6282 float_format=sh
6284 sh-*-rtems*)
6285 tmake_file="sh/t-sh t-rtems"
6286 tm_file=sh/rtems.h
6287 float_format=sh
6289 sh-*-*)
6290 float_format=sh
6292 sparc-tti-*)
6293 tm_file=sparc/pbd.h
6294 xm_file="xm-alloca.h ${xm_file}"
6295 xm_defines=USG
6297 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
6298 tm_file=sparc/vxsparc.h
6299 tmake_file=sparc/t-vxsparc
6300 use_collect2=yes
6301 thread_file='vxworks'
6303 sparc-*-aout*)
6304 tmake_file=sparc/t-sparcbare
6305 tm_file="sparc/aout.h libgloss.h"
6307 sparc-*-netbsd*)
6308 tm_file=sparc/netbsd.h
6309 tmake_file=t-netbsd
6310 use_collect2=yes
6312 sparc-*-openbsd*)
6313 # we need collect2 until our bug is fixed...
6314 use_collect2=yes
6316 sparc-*-bsd*)
6317 tm_file=sparc/bsd.h
6319 sparc-*-elf*)
6320 tm_file=sparc/elf.h
6321 tmake_file=sparc/t-elf
6322 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6323 #float_format=i128
6324 float_format=i64
6326 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6327 xm_file="${xm_file} sparc/xm-linux.h"
6328 tm_file=sparc/linux-aout.h
6329 xmake_file=x-linux
6330 gnu_ld=yes
6332 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6333 xm_file="${xm_file} sparc/xm-linux.h"
6334 xmake_file=x-linux
6335 tm_file=sparc/linux.h
6336 tmake_file="t-linux t-linux-gnulibc1"
6337 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6338 gnu_ld=yes
6339 float_format=sparc
6341 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6342 xm_file="${xm_file} sparc/xm-linux.h"
6343 xmake_file=x-linux
6344 tm_file=sparc/linux.h
6345 tmake_file="t-linux"
6346 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6347 gnu_ld=yes
6348 if test x$enable_threads = xyes; then
6349 thread_file='posix'
6351 float_format=sparc
6353 sparc-*-lynxos*)
6354 if test x$gas = xyes
6355 then
6356 tm_file=sparc/lynx.h
6357 else
6358 tm_file=sparc/lynx-ng.h
6360 xm_file=sparc/xm-lynx.h
6361 tmake_file=sparc/t-sunos41
6362 xmake_file=x-lynx
6364 sparc-*-rtemsaout*)
6365 tmake_file="sparc/t-sparcbare t-rtems"
6366 tm_file=sparc/rtems.h
6368 sparc-*-rtems*|sparc-*-rtemself*)
6369 tm_file="sparc/rtemself.h"
6370 tmake_file="sparc/t-elf t-rtems"
6371 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
6372 #float_format=i128
6373 float_format=i64
6375 sparcv9-*-solaris2*)
6376 if test x$gnu_ld = xyes
6377 then
6378 tm_file=sparc/sol2-64.h
6379 else
6380 tm_file=sparc/sol2-sld-64.h
6382 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6383 xm_defines="USG POSIX"
6384 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
6385 xmake_file=sparc/x-sysv4
6386 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6387 float_format=none
6388 if test x${enable_threads} = x ; then
6389 enable_threads=$have_pthread_h
6390 if test x${enable_threads} = x ; then
6391 enable_threads=$have_thread_h
6394 if test x${enable_threads} = xyes ; then
6395 if test x${have_pthread_h} = xyes ; then
6396 thread_file='posix'
6397 else
6398 thread_file='solaris'
6402 sparc-hal-solaris2*)
6403 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6404 xm_defines="USG POSIX"
6405 tm_file="sparc/sol2.h sparc/hal.h"
6406 tmake_file="sparc/t-halos sparc/t-sol2"
6407 xmake_file=sparc/x-sysv4
6408 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6409 case $machine in
6410 *-*-solaris2.[0-4])
6411 float_format=i128
6414 float_format=none
6416 esac
6417 thread_file='solaris'
6419 sparc-*-solaris2*)
6420 if test x$gnu_ld = xyes
6421 then
6422 tm_file=sparc/sol2.h
6423 else
6424 tm_file=sparc/sol2-sld.h
6426 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6427 xm_defines="USG POSIX"
6428 tmake_file=sparc/t-sol2
6429 xmake_file=sparc/x-sysv4
6430 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6431 case $machine in
6432 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6433 *-*-solaris2*)
6434 if test x$gnu_ld = xyes
6435 then
6436 tm_file=sparc/sol2-64.h
6437 else
6438 tm_file=sparc/sol2-sld-64.h
6440 tmake_file="$tmake_file sparc/t-sol2-64"
6442 esac
6443 case $machine in
6444 *-*-solaris2.[0-4])
6445 float_format=i128
6448 float_format=none
6450 esac
6451 if test x${enable_threads} = x; then
6452 enable_threads=$have_pthread_h
6453 if test x${enable_threads} = x; then
6454 enable_threads=$have_thread_h
6457 if test x${enable_threads} = xyes; then
6458 if test x${have_pthread_h} = xyes; then
6459 thread_file='posix'
6460 else
6461 thread_file='solaris'
6465 sparc-*-sunos4.0*)
6466 tm_file=sparc/sunos4.h
6467 tmake_file=sparc/t-sunos40
6468 use_collect2=yes
6470 sparc-*-sunos4*)
6471 tm_file=sparc/sunos4.h
6472 tmake_file=sparc/t-sunos41
6473 use_collect2=yes
6474 if test x$gas = xyes; then
6475 tm_file="${tm_file} sparc/sun4gas.h"
6478 sparc-*-sunos3*)
6479 tm_file=sparc/sun4o3.h
6480 use_collect2=yes
6482 sparc-*-sysv4*)
6483 tm_file=sparc/sysv4.h
6484 xm_file="sparc/xm-sysv4.h"
6485 xm_defines="USG POSIX"
6486 tmake_file=t-svr4
6487 xmake_file=sparc/x-sysv4
6488 extra_parts="crtbegin.o crtend.o"
6490 sparc-*-vxsim*)
6491 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6492 xm_defines="USG POSIX"
6493 tm_file=sparc/vxsim.h
6494 tmake_file=sparc/t-vxsparc
6495 xmake_file=sparc/x-sysv4
6497 sparclet-*-aout*)
6498 tm_file="sparc/splet.h libgloss.h"
6499 tmake_file=sparc/t-splet
6501 sparclite-*-coff*)
6502 tm_file="sparc/litecoff.h libgloss.h"
6503 tmake_file=sparc/t-sparclite
6505 sparclite-*-aout*)
6506 tm_file="sparc/lite.h aoutos.h libgloss.h"
6507 tmake_file=sparc/t-sparclite
6509 sparclite-*-elf*)
6510 tm_file="sparc/liteelf.h"
6511 tmake_file=sparc/t-sparclite
6512 extra_parts="crtbegin.o crtend.o"
6514 sparc86x-*-aout*)
6515 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6516 tmake_file=sparc/t-sp86x
6518 sparc86x-*-elf*)
6519 tm_file="sparc/sp86x-elf.h"
6520 tmake_file=sparc/t-sp86x
6521 extra_parts="crtbegin.o crtend.o"
6523 sparc64-*-aout*)
6524 tmake_file=sparc/t-sp64
6525 tm_file=sparc/sp64-aout.h
6527 sparc64-*-elf*)
6528 tmake_file=sparc/t-sp64
6529 tm_file=sparc/sp64-elf.h
6530 extra_parts="crtbegin.o crtend.o"
6532 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
6533 tmake_file="t-linux sparc/t-linux64"
6534 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6535 tm_file=sparc/linux64.h
6536 xmake_file=x-linux
6537 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6538 gnu_ld=yes
6539 if test x$enable_threads = xyes; then
6540 thread_file='posix'
6542 float_format=sparc
6544 # This hasn't been upgraded to GCC 2.
6545 # tahoe-harris-*) # Harris tahoe, using COFF.
6546 # tm_file=tahoe/harris.h
6547 # ;;
6548 # tahoe-*-bsd*) # tahoe running BSD
6549 # ;;
6551 thumb*-*-*)
6552 { echo "configure: error:
6553 *** The Thumb targets have been depreciated. The equivalent
6554 *** ARM based toolchain can now generated Thumb instructions
6555 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6557 # This hasn't been upgraded to GCC 2.
6558 # tron-*-*)
6559 # cpu_type=gmicro
6560 # use_collect2=yes
6561 # ;;
6562 v850-*-rtems*)
6563 cpu_type=v850
6564 tm_file="v850/rtems.h"
6565 xm_file="v850/xm-v850.h"
6566 tmake_file="v850/t-v850 t-rtems"
6567 if test x$stabs = xyes
6568 then
6569 tm_file="${tm_file} dbx.h"
6571 use_collect2=no
6573 v850-*-*)
6574 target_cpu_default="TARGET_CPU_generic"
6575 cpu_type=v850
6576 tm_file="v850/v850.h"
6577 xm_file="v850/xm-v850.h"
6578 tmake_file=v850/t-v850
6579 if test x$stabs = xyes
6580 then
6581 tm_file="${tm_file} dbx.h"
6583 use_collect2=no
6585 vax-*-bsd*) # vaxen running BSD
6586 use_collect2=yes
6587 float_format=vax
6589 vax-*-sysv*) # vaxen running system V
6590 tm_file="${tm_file} vax/vaxv.h"
6591 xm_defines=USG
6592 float_format=vax
6594 vax-*-netbsd*)
6595 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6596 tmake_file=t-netbsd
6597 float_format=vax
6598 use_collect2=yes
6600 vax-*-openbsd*)
6601 tmake_file="${tmake_file} vax/t-openbsd"
6602 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6603 xm_file="xm-openbsd.h vax/xm-vax.h"
6604 float_format=vax
6605 use_collect2=yes
6607 vax-*-ultrix*) # vaxen running ultrix
6608 tm_file="${tm_file} vax/ultrix.h"
6609 use_collect2=yes
6610 float_format=vax
6612 vax-*-vms*) # vaxen running VMS
6613 xm_file=vax/xm-vms.h
6614 tm_file=vax/vms.h
6615 float_format=vax
6617 vax-*-*) # vax default entry
6618 float_format=vax
6620 we32k-att-sysv*)
6621 xm_file="${xm_file} xm-svr3"
6622 use_collect2=yes
6625 echo "Configuration $machine not supported" 1>&2
6626 exit 1
6628 esac
6630 case $machine in
6631 *-*-linux-gnu*)
6632 ;; # Existing GNU/Linux systems do not use the GNU setup.
6633 *-*-gnu*)
6634 # On the GNU system, the setup is just about the same on
6635 # each different CPU. The specific machines that GNU
6636 # supports are matched above and just set $cpu_type.
6637 xm_file="xm-gnu.h ${xm_file}"
6638 tm_file=${cpu_type}/gnu.h
6639 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6640 # GNU always uses ELF.
6641 elf=yes
6642 # GNU tools are the only tools.
6643 gnu_ld=yes
6644 gas=yes
6645 xmake_file=x-linux # These details are the same as Linux.
6646 tmake_file=t-gnu # These are not.
6648 *-*-sysv4*)
6649 xmake_try_sysv=x-sysv
6650 install_headers_dir=install-headers-cpio
6652 *-*-sysv*)
6653 install_headers_dir=install-headers-cpio
6655 esac
6657 # Distinguish i[34567]86
6658 # Also, do not run mips-tfile on MIPS if using gas.
6659 # Process --with-cpu= for PowerPC/rs6000
6660 target_cpu_default2=
6661 case $machine in
6662 i486-*-*)
6663 target_cpu_default2=1
6665 i586-*-*)
6666 case $target_alias in
6667 k6-*)
6668 target_cpu_default2=4
6671 target_cpu_default2=2
6673 esac
6675 i686-*-* | i786-*-*)
6676 target_cpu_default2=3
6678 alpha*-*-*)
6679 case $machine in
6680 alphaev6[78]*)
6681 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6683 alphaev6*)
6684 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6686 alphapca56*)
6687 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6689 alphaev56*)
6690 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6692 alphaev5*)
6693 target_cpu_default2="MASK_CPU_EV5"
6695 esac
6697 if test x$gas = xyes
6698 then
6699 if test "$target_cpu_default2" = ""
6700 then
6701 target_cpu_default2="MASK_GAS"
6702 else
6703 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6707 arm*-*-*)
6708 case "x$with_cpu" in
6710 # The most generic
6711 target_cpu_default2="TARGET_CPU_generic"
6714 # Distinguish cores, and major variants
6715 # arm7m doesn't exist, but D & I don't affect code
6716 xarm[23678] | xarm250 | xarm[67][01]0 \
6717 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6718 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6719 | xstrongarm | xstrongarm110 | xstrongarm1100)
6720 target_cpu_default2="TARGET_CPU_$with_cpu"
6723 xyes | xno)
6724 echo "--with-cpu must be passed a value" 1>&2
6725 exit 1
6729 if test x$pass2done = xyes
6730 then
6731 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6732 exit 1
6735 esac
6738 mips*-*-ecoff* | mips*-*-elf*)
6739 if test x$gas = xyes
6740 then
6741 if test x$gnu_ld = xyes
6742 then
6743 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
6744 else
6745 target_cpu_default2="MASK_GAS"
6749 mips*-*-*)
6750 if test x$gas = xyes
6751 then
6752 target_cpu_default2="MASK_GAS"
6755 powerpc*-*-* | rs6000-*-*)
6756 case "x$with_cpu" in
6760 xcommon | xpower | xpower2 | xpowerpc | xrios \
6761 | xrios1 | xrios2 | xrsc | xrsc1 \
6762 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6763 | xec603e | x740 | x750 | x401 \
6764 | x403 | x505 | x801 | x821 | x823 | x860)
6765 target_cpu_default2="\"$with_cpu\""
6768 xyes | xno)
6769 echo "--with-cpu must be passed a value" 1>&2
6770 exit 1
6774 if test x$pass2done = xyes
6775 then
6776 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6777 exit 1
6780 esac
6782 sparc*-*-*)
6783 case ".$with_cpu" in
6785 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6787 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6788 target_cpu_default2="TARGET_CPU_$with_cpu"
6791 if test x$pass2done = xyes
6792 then
6793 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6794 exit 1
6797 esac
6799 esac
6801 if test "$target_cpu_default2" != ""
6802 then
6803 if test "$target_cpu_default" != ""
6804 then
6805 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6806 else
6807 target_cpu_default=$target_cpu_default2
6811 # No need for collect2 if we have the GNU linker.
6812 # Actually, there is now; GNU ld doesn't handle the EH info or
6813 # collecting for shared libraries.
6814 #case x$gnu_ld in
6815 #xyes)
6816 # use_collect2=
6817 # ;;
6818 #esac
6820 # Save data on machine being used to compile GCC in build_xm_file.
6821 # Save data on host machine in vars host_xm_file and host_xmake_file.
6822 if test x$pass1done = x
6823 then
6824 if test x"$xm_file" = x
6825 then build_xm_file=$cpu_type/xm-$cpu_type.h
6826 else build_xm_file=$xm_file
6828 build_xm_defines=$xm_defines
6829 build_install_headers_dir=$install_headers_dir
6830 build_exeext=$exeext
6831 pass1done=yes
6832 else
6833 if test x$pass2done = x
6834 then
6835 if test x"$xm_file" = x
6836 then host_xm_file=$cpu_type/xm-$cpu_type.h
6837 else host_xm_file=$xm_file
6839 host_xm_defines=$xm_defines
6840 if test x"$xmake_file" = x
6841 then xmake_file=$cpu_type/x-$cpu_type
6843 host_xmake_file="$xmake_file"
6844 host_truncate_target=$truncate_target
6845 host_extra_gcc_objs=$extra_gcc_objs
6846 host_extra_objs=$extra_host_objs
6847 host_exeext=$exeext
6848 pass2done=yes
6851 done
6853 extra_objs="${host_extra_objs} ${extra_objs}"
6855 # Default the target-machine variables that were not explicitly set.
6856 if test x"$tm_file" = x
6857 then tm_file=$cpu_type/$cpu_type.h; fi
6859 if test x$extra_headers = x
6860 then extra_headers=; fi
6862 if test x"$xm_file" = x
6863 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6865 if test x$md_file = x
6866 then md_file=$cpu_type/$cpu_type.md; fi
6868 if test x$out_file = x
6869 then out_file=$cpu_type/$cpu_type.c; fi
6871 if test x"$tmake_file" = x
6872 then tmake_file=$cpu_type/t-$cpu_type
6875 if test x"$dwarf2" = xyes
6876 then tm_file="$tm_file tm-dwarf2.h"
6879 if test x$float_format = x
6880 then float_format=i64
6883 if test $float_format = none
6884 then float_h_file=Makefile.in
6885 else float_h_file=float-$float_format.h
6888 # Handle cpp installation.
6889 if test x$enable_cpp != xno
6890 then
6891 tmake_file="$tmake_file t-install-cpp"
6894 # Say what files are being used for the output code and MD file.
6895 echo "Using \`$srcdir/config/$out_file' to output insns."
6896 echo "Using \`$srcdir/config/$md_file' as machine description file."
6898 count=a
6899 for f in $tm_file; do
6900 count=${count}x
6901 done
6902 if test $count = ax; then
6903 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6904 else
6905 echo "Using the following target machine macro files:"
6906 for f in $tm_file; do
6907 echo " $srcdir/config/$f"
6908 done
6911 count=a
6912 for f in $host_xm_file; do
6913 count=${count}x
6914 done
6915 if test $count = ax; then
6916 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6917 else
6918 echo "Using the following host machine macro files:"
6919 for f in $host_xm_file; do
6920 echo " $srcdir/config/$f"
6921 done
6924 if test "$host_xm_file" != "$build_xm_file"; then
6925 count=a
6926 for f in $build_xm_file; do
6927 count=${count}x
6928 done
6929 if test $count = ax; then
6930 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6931 else
6932 echo "Using the following build machine macro files:"
6933 for f in $build_xm_file; do
6934 echo " $srcdir/config/$f"
6935 done
6939 if test x$thread_file = x; then
6940 if test x$target_thread_file != x; then
6941 thread_file=$target_thread_file
6942 else
6943 thread_file='single'
6947 # Set up the header files.
6948 # $links is the list of header files to create.
6949 # $vars is the list of shell variables with file names to include.
6950 # auto-host.h is the file containing items generated by autoconf and is
6951 # the first file included by config.h.
6952 null_defines=
6953 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6955 # If host=build, it is correct to have hconfig include auto-host.h
6956 # as well. If host!=build, we are in error and need to do more
6957 # work to find out the build config parameters.
6958 if test x$host = x$build
6959 then
6960 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6961 else
6962 # We create a subdir, then run autoconf in the subdir.
6963 # To prevent recursion we set host and build for the new
6964 # invocation of configure to the build for this invocation
6965 # of configure.
6966 tempdir=build.$$
6967 rm -rf $tempdir
6968 mkdir $tempdir
6969 cd $tempdir
6970 case ${srcdir} in
6971 /*) realsrcdir=${srcdir};;
6972 *) realsrcdir=../${srcdir};;
6973 esac
6974 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6975 --target=$target --host=$build --build=$build
6977 # We just finished tests for the build machine, so rename
6978 # the file auto-build.h in the gcc directory.
6979 mv auto-host.h ../auto-build.h
6980 cd ..
6981 rm -rf $tempdir
6982 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6985 xm_file="gansidecl.h ${xm_file}"
6986 tm_file="gansidecl.h ${tm_file}"
6988 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6989 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6990 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6992 rm -f config.bak
6993 if test -f config.status; then mv -f config.status config.bak; fi
6995 # Make the links.
6996 while test -n "$vars"
6998 set $vars; var=$1; shift; vars=$*
6999 set $links; link=$1; shift; links=$*
7000 set $defines; define=$1; shift; defines=$*
7002 rm -f $link
7003 # Make sure the file is created, even if it is empty.
7004 echo >$link
7006 # Define TARGET_CPU_DEFAULT if the system wants one.
7007 # This substitutes for lots of *.h files.
7008 if test "$target_cpu_default" != "" -a $link = tm.h
7009 then
7010 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7013 for file in `eval echo '$'$var`; do
7014 case $file in
7015 auto-host.h | auto-build.h )
7018 echo '#ifdef IN_GCC' >>$link
7020 esac
7021 echo "#include \"$file\"" >>$link
7022 case $file in
7023 auto-host.h | auto-build.h )
7026 echo '#endif' >>$link
7028 esac
7029 done
7031 for def in `eval echo '$'$define`; do
7032 echo "#ifndef $def" >>$link
7033 echo "#define $def" >>$link
7034 echo "#endif" >>$link
7035 done
7036 done
7038 # Truncate the target if necessary
7039 if test x$host_truncate_target != x; then
7040 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
7043 # Get the version trigger filename from the toplevel
7044 if test "${with_gcc_version_trigger+set}" = set; then
7045 gcc_version_trigger=$with_gcc_version_trigger
7046 else
7047 gcc_version_trigger=${srcdir}/version.c
7049 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7051 # Internationalization
7052 PACKAGE=gcc
7053 VERSION="$gcc_version"
7054 cat >> confdefs.h <<EOF
7055 #define PACKAGE "$PACKAGE"
7058 cat >> confdefs.h <<EOF
7059 #define VERSION "$VERSION"
7065 ALL_LINGUAS="en_GB"
7067 # Enable NLS support by default
7068 # Check whether --enable-nls or --disable-nls was given.
7069 if test "${enable_nls+set}" = set; then
7070 enableval="$enable_nls"
7072 else
7073 enable_nls=yes
7077 # if cross compiling, disable NLS support.
7078 # It's not worth the trouble, at least for now.
7080 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7081 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7082 enable_nls=no
7086 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7087 echo "configure:7088: checking for strerror in -lcposix" >&5
7088 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7091 else
7092 ac_save_LIBS="$LIBS"
7093 LIBS="-lcposix $LIBS"
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7097 /* Override any gcc2 internal prototype to avoid an error. */
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7100 char strerror();
7102 int main() {
7103 strerror()
7104 ; return 0; }
7106 if { (eval echo configure:7107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7107 rm -rf conftest*
7108 eval "ac_cv_lib_$ac_lib_var=yes"
7109 else
7110 echo "configure: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 rm -rf conftest*
7113 eval "ac_cv_lib_$ac_lib_var=no"
7115 rm -f conftest*
7116 LIBS="$ac_save_LIBS"
7119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7120 echo "$ac_t""yes" 1>&6
7121 LIBS="$LIBS -lcposix"
7122 else
7123 echo "$ac_t""no" 1>&6
7128 echo $ac_n "checking for working const""... $ac_c" 1>&6
7129 echo "configure:7130: checking for working const" >&5
7130 if eval "test \"`echo '$''{'ac_cv_c_const'+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"
7137 int main() {
7139 /* Ultrix mips cc rejects this. */
7140 typedef int charset[2]; const charset x;
7141 /* SunOS 4.1.1 cc rejects this. */
7142 char const *const *ccp;
7143 char **p;
7144 /* NEC SVR4.0.2 mips cc rejects this. */
7145 struct point {int x, y;};
7146 static struct point const zero = {0,0};
7147 /* AIX XL C 1.02.0.0 rejects this.
7148 It does not let you subtract one const X* pointer from another in an arm
7149 of an if-expression whose if-part is not a constant expression */
7150 const char *g = "string";
7151 ccp = &g + (g ? g-g : 0);
7152 /* HPUX 7.0 cc rejects these. */
7153 ++ccp;
7154 p = (char**) ccp;
7155 ccp = (char const *const *) p;
7156 { /* SCO 3.2v4 cc rejects this. */
7157 char *t;
7158 char const *s = 0 ? (char *) 0 : (char const *) 0;
7160 *t++ = 0;
7162 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7163 int x[] = {25, 17};
7164 const int *foo = &x[0];
7165 ++foo;
7167 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7168 typedef const int *iptr;
7169 iptr p = 0;
7170 ++p;
7172 { /* AIX XL C 1.02.0.0 rejects this saying
7173 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7174 struct s { int j; const int *ap[3]; };
7175 struct s *b; b->j = 5;
7177 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7178 const int foo = 10;
7181 ; return 0; }
7183 if { (eval echo configure:7184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7184 rm -rf conftest*
7185 ac_cv_c_const=yes
7186 else
7187 echo "configure: failed program was:" >&5
7188 cat conftest.$ac_ext >&5
7189 rm -rf conftest*
7190 ac_cv_c_const=no
7192 rm -f conftest*
7195 echo "$ac_t""$ac_cv_c_const" 1>&6
7196 if test $ac_cv_c_const = no; then
7197 cat >> confdefs.h <<\EOF
7198 #define const
7203 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7204 echo "configure:7205: checking for off_t" >&5
7205 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7206 echo $ac_n "(cached) $ac_c" 1>&6
7207 else
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 #include <sys/types.h>
7212 #if STDC_HEADERS
7213 #include <stdlib.h>
7214 #include <stddef.h>
7215 #endif
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7219 rm -rf conftest*
7220 ac_cv_type_off_t=yes
7221 else
7222 rm -rf conftest*
7223 ac_cv_type_off_t=no
7225 rm -f conftest*
7228 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7229 if test $ac_cv_type_off_t = no; then
7230 cat >> confdefs.h <<\EOF
7231 #define off_t long
7236 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7237 echo "configure:7238: checking for size_t" >&5
7238 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7240 else
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 #include <sys/types.h>
7245 #if STDC_HEADERS
7246 #include <stdlib.h>
7247 #include <stddef.h>
7248 #endif
7250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7252 rm -rf conftest*
7253 ac_cv_type_size_t=yes
7254 else
7255 rm -rf conftest*
7256 ac_cv_type_size_t=no
7258 rm -f conftest*
7261 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7262 if test $ac_cv_type_size_t = no; then
7263 cat >> confdefs.h <<\EOF
7264 #define size_t unsigned
7269 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7270 # for constant arguments. Useless!
7271 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7272 echo "configure:7273: checking for working alloca.h" >&5
7273 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7275 else
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 #include <alloca.h>
7280 int main() {
7281 char *p = alloca(2 * sizeof(int));
7282 ; return 0; }
7284 if { (eval echo configure:7285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7285 rm -rf conftest*
7286 ac_cv_header_alloca_h=yes
7287 else
7288 echo "configure: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7290 rm -rf conftest*
7291 ac_cv_header_alloca_h=no
7293 rm -f conftest*
7296 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7297 if test $ac_cv_header_alloca_h = yes; then
7298 cat >> confdefs.h <<\EOF
7299 #define HAVE_ALLOCA_H 1
7304 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7305 echo "configure:7306: checking for alloca" >&5
7306 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7308 else
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7313 #ifdef __GNUC__
7314 # define alloca __builtin_alloca
7315 #else
7316 # ifdef _MSC_VER
7317 # include <malloc.h>
7318 # define alloca _alloca
7319 # else
7320 # if HAVE_ALLOCA_H
7321 # include <alloca.h>
7322 # else
7323 # ifdef _AIX
7324 #pragma alloca
7325 # else
7326 # ifndef alloca /* predefined by HP cc +Olibcalls */
7327 char *alloca ();
7328 # endif
7329 # endif
7330 # endif
7331 # endif
7332 #endif
7334 int main() {
7335 char *p = (char *) alloca(1);
7336 ; return 0; }
7338 if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7339 rm -rf conftest*
7340 ac_cv_func_alloca_works=yes
7341 else
7342 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7344 rm -rf conftest*
7345 ac_cv_func_alloca_works=no
7347 rm -f conftest*
7350 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7351 if test $ac_cv_func_alloca_works = yes; then
7352 cat >> confdefs.h <<\EOF
7353 #define HAVE_ALLOCA 1
7358 if test $ac_cv_func_alloca_works = no; then
7359 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7360 # that cause trouble. Some versions do not even contain alloca or
7361 # contain a buggy version. If you still want to use their alloca,
7362 # use ar to extract alloca.o from them instead of compiling alloca.c.
7363 ALLOCA=alloca.${ac_objext}
7364 cat >> confdefs.h <<\EOF
7365 #define C_ALLOCA 1
7369 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7370 echo "configure:7371: checking whether alloca needs Cray hooks" >&5
7371 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7373 else
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 #if defined(CRAY) && ! defined(CRAY2)
7378 webecray
7379 #else
7380 wenotbecray
7381 #endif
7384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7385 egrep "webecray" >/dev/null 2>&1; then
7386 rm -rf conftest*
7387 ac_cv_os_cray=yes
7388 else
7389 rm -rf conftest*
7390 ac_cv_os_cray=no
7392 rm -f conftest*
7396 echo "$ac_t""$ac_cv_os_cray" 1>&6
7397 if test $ac_cv_os_cray = yes; then
7398 for ac_func in _getb67 GETB67 getb67; do
7399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7400 echo "configure:7401: checking for $ac_func" >&5
7401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7403 else
7404 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char $ac_func(); below. */
7409 #include <assert.h>
7410 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7413 char $ac_func();
7415 int main() {
7417 /* The GNU C library defines this for functions which it implements
7418 to always fail with ENOSYS. Some functions are actually named
7419 something starting with __ and the normal name is an alias. */
7420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7421 choke me
7422 #else
7423 $ac_func();
7424 #endif
7426 ; return 0; }
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7429 rm -rf conftest*
7430 eval "ac_cv_func_$ac_func=yes"
7431 else
7432 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7434 rm -rf conftest*
7435 eval "ac_cv_func_$ac_func=no"
7437 rm -f conftest*
7440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 cat >> confdefs.h <<EOF
7443 #define CRAY_STACKSEG_END $ac_func
7446 break
7447 else
7448 echo "$ac_t""no" 1>&6
7451 done
7454 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7455 echo "configure:7456: checking stack direction for C alloca" >&5
7456 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7458 else
7459 if test "$cross_compiling" = yes; then
7460 ac_cv_c_stack_direction=0
7461 else
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 find_stack_direction ()
7467 static char *addr = 0;
7468 auto char dummy;
7469 if (addr == 0)
7471 addr = &dummy;
7472 return find_stack_direction ();
7474 else
7475 return (&dummy > addr) ? 1 : -1;
7477 main ()
7479 exit (find_stack_direction() < 0);
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7483 then
7484 ac_cv_c_stack_direction=1
7485 else
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7488 rm -fr conftest*
7489 ac_cv_c_stack_direction=-1
7491 rm -fr conftest*
7496 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7497 cat >> confdefs.h <<EOF
7498 #define STACK_DIRECTION $ac_cv_c_stack_direction
7504 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7505 unistd.h sys/param.h
7507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_hdr" >&5
7510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7512 else
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 #include <$ac_hdr>
7518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7519 { (eval echo configure:7520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7521 if test -z "$ac_err"; then
7522 rm -rf conftest*
7523 eval "ac_cv_header_$ac_safe=yes"
7524 else
7525 echo "$ac_err" >&5
7526 echo "configure: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7528 rm -rf conftest*
7529 eval "ac_cv_header_$ac_safe=no"
7531 rm -f conftest*
7533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7534 echo "$ac_t""yes" 1>&6
7535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7536 cat >> confdefs.h <<EOF
7537 #define $ac_tr_hdr 1
7540 else
7541 echo "$ac_t""no" 1>&6
7543 done
7545 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7546 strdup __argz_count __argz_stringify __argz_next
7548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_func" >&5
7550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7552 else
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* System header to define __stub macros and hopefully few prototypes,
7557 which can conflict with char $ac_func(); below. */
7558 #include <assert.h>
7559 /* Override any gcc2 internal prototype to avoid an error. */
7560 /* We use char because int might match the return type of a gcc2
7561 builtin and then its argument prototype would still apply. */
7562 char $ac_func();
7564 int main() {
7566 /* The GNU C library defines this for functions which it implements
7567 to always fail with ENOSYS. Some functions are actually named
7568 something starting with __ and the normal name is an alias. */
7569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7570 choke me
7571 #else
7572 $ac_func();
7573 #endif
7575 ; return 0; }
7577 if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578 rm -rf conftest*
7579 eval "ac_cv_func_$ac_func=yes"
7580 else
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7583 rm -rf conftest*
7584 eval "ac_cv_func_$ac_func=no"
7586 rm -f conftest*
7589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7592 cat >> confdefs.h <<EOF
7593 #define $ac_tr_func 1
7596 else
7597 echo "$ac_t""no" 1>&6
7599 done
7602 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7603 for ac_func in stpcpy
7605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7606 echo "configure:7607: checking for $ac_func" >&5
7607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7608 echo $ac_n "(cached) $ac_c" 1>&6
7609 else
7610 cat > conftest.$ac_ext <<EOF
7611 #line 7612 "configure"
7612 #include "confdefs.h"
7613 /* System header to define __stub macros and hopefully few prototypes,
7614 which can conflict with char $ac_func(); below. */
7615 #include <assert.h>
7616 /* Override any gcc2 internal prototype to avoid an error. */
7617 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7619 char $ac_func();
7621 int main() {
7623 /* The GNU C library defines this for functions which it implements
7624 to always fail with ENOSYS. Some functions are actually named
7625 something starting with __ and the normal name is an alias. */
7626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7627 choke me
7628 #else
7629 $ac_func();
7630 #endif
7632 ; return 0; }
7634 if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7635 rm -rf conftest*
7636 eval "ac_cv_func_$ac_func=yes"
7637 else
7638 echo "configure: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7640 rm -rf conftest*
7641 eval "ac_cv_func_$ac_func=no"
7643 rm -f conftest*
7646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7649 cat >> confdefs.h <<EOF
7650 #define $ac_tr_func 1
7653 else
7654 echo "$ac_t""no" 1>&6
7656 done
7659 if test "${ac_cv_func_stpcpy}" = "yes"; then
7660 cat >> confdefs.h <<\EOF
7661 #define HAVE_STPCPY 1
7666 if test $ac_cv_header_locale_h = yes; then
7667 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7668 echo "configure:7669: checking for LC_MESSAGES" >&5
7669 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7671 else
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 #include <locale.h>
7676 int main() {
7677 return LC_MESSAGES
7678 ; return 0; }
7680 if { (eval echo configure:7681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7681 rm -rf conftest*
7682 am_cv_val_LC_MESSAGES=yes
7683 else
7684 echo "configure: failed program was:" >&5
7685 cat conftest.$ac_ext >&5
7686 rm -rf conftest*
7687 am_cv_val_LC_MESSAGES=no
7689 rm -f conftest*
7692 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7693 if test $am_cv_val_LC_MESSAGES = yes; then
7694 cat >> confdefs.h <<\EOF
7695 #define HAVE_LC_MESSAGES 1
7700 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7701 echo "configure:7702: checking whether NLS is requested" >&5
7702 # Check whether --enable-nls or --disable-nls was given.
7703 if test "${enable_nls+set}" = set; then
7704 enableval="$enable_nls"
7705 USE_NLS=$enableval
7706 else
7707 USE_NLS=yes
7710 echo "$ac_t""$USE_NLS" 1>&6
7713 USE_INCLUDED_LIBINTL=no
7715 if test "$USE_NLS" = "yes"; then
7716 cat >> confdefs.h <<\EOF
7717 #define ENABLE_NLS 1
7720 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7721 echo "configure:7722: checking whether included gettext is requested" >&5
7722 # Check whether --with-included-gettext or --without-included-gettext was given.
7723 if test "${with_included_gettext+set}" = set; then
7724 withval="$with_included_gettext"
7725 nls_cv_force_use_gnu_gettext=$withval
7726 else
7727 nls_cv_force_use_gnu_gettext=yes
7730 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7732 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7733 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7734 nls_cv_header_intl=
7735 nls_cv_header_libgt=
7736 CATOBJEXT=NONE
7738 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7739 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7740 echo "configure:7741: checking for libintl.h" >&5
7741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7742 echo $ac_n "(cached) $ac_c" 1>&6
7743 else
7744 cat > conftest.$ac_ext <<EOF
7745 #line 7746 "configure"
7746 #include "confdefs.h"
7747 #include <libintl.h>
7749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7750 { (eval echo configure:7751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7752 if test -z "$ac_err"; then
7753 rm -rf conftest*
7754 eval "ac_cv_header_$ac_safe=yes"
7755 else
7756 echo "$ac_err" >&5
7757 echo "configure: failed program was:" >&5
7758 cat conftest.$ac_ext >&5
7759 rm -rf conftest*
7760 eval "ac_cv_header_$ac_safe=no"
7762 rm -f conftest*
7764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7765 echo "$ac_t""yes" 1>&6
7766 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7767 echo "configure:7768: checking for gettext in libc" >&5
7768 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7770 else
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7774 #include <libintl.h>
7775 int main() {
7776 return (int) gettext ("")
7777 ; return 0; }
7779 if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7780 rm -rf conftest*
7781 gt_cv_func_gettext_libc=yes
7782 else
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7785 rm -rf conftest*
7786 gt_cv_func_gettext_libc=no
7788 rm -f conftest*
7791 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7793 if test "$gt_cv_func_gettext_libc" != "yes"; then
7794 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7795 echo "configure:7796: checking for bindtextdomain in -lintl" >&5
7796 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7799 else
7800 ac_save_LIBS="$LIBS"
7801 LIBS="-lintl $LIBS"
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7805 /* Override any gcc2 internal prototype to avoid an error. */
7806 /* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7808 char bindtextdomain();
7810 int main() {
7811 bindtextdomain()
7812 ; return 0; }
7814 if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7815 rm -rf conftest*
7816 eval "ac_cv_lib_$ac_lib_var=yes"
7817 else
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7820 rm -rf conftest*
7821 eval "ac_cv_lib_$ac_lib_var=no"
7823 rm -f conftest*
7824 LIBS="$ac_save_LIBS"
7827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7830 echo "configure:7831: checking for gettext in libintl" >&5
7831 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7833 else
7834 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7835 echo "configure:7836: checking for gettext in -lintl" >&5
7836 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7839 else
7840 ac_save_LIBS="$LIBS"
7841 LIBS="-lintl $LIBS"
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 /* Override any gcc2 internal prototype to avoid an error. */
7846 /* We use char because int might match the return type of a gcc2
7847 builtin and then its argument prototype would still apply. */
7848 char gettext();
7850 int main() {
7851 gettext()
7852 ; return 0; }
7854 if { (eval echo configure:7855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7855 rm -rf conftest*
7856 eval "ac_cv_lib_$ac_lib_var=yes"
7857 else
7858 echo "configure: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 rm -rf conftest*
7861 eval "ac_cv_lib_$ac_lib_var=no"
7863 rm -f conftest*
7864 LIBS="$ac_save_LIBS"
7867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7868 echo "$ac_t""yes" 1>&6
7869 gt_cv_func_gettext_libintl=yes
7870 else
7871 echo "$ac_t""no" 1>&6
7872 gt_cv_func_gettext_libintl=no
7877 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7878 else
7879 echo "$ac_t""no" 1>&6
7884 if test "$gt_cv_func_gettext_libc" = "yes" \
7885 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7886 cat >> confdefs.h <<\EOF
7887 #define HAVE_GETTEXT 1
7890 # Extract the first word of "msgfmt", so it can be a program name with args.
7891 set dummy msgfmt; ac_word=$2
7892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7893 echo "configure:7894: checking for $ac_word" >&5
7894 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7896 else
7897 case "$MSGFMT" in
7899 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7902 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7903 for ac_dir in $PATH; do
7904 test -z "$ac_dir" && ac_dir=.
7905 if test -f $ac_dir/$ac_word; then
7906 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7907 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7908 break
7911 done
7912 IFS="$ac_save_ifs"
7913 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7915 esac
7917 MSGFMT="$ac_cv_path_MSGFMT"
7918 if test -n "$MSGFMT"; then
7919 echo "$ac_t""$MSGFMT" 1>&6
7920 else
7921 echo "$ac_t""no" 1>&6
7923 if test "$MSGFMT" != "no"; then
7924 for ac_func in dcgettext
7926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7927 echo "configure:7928: checking for $ac_func" >&5
7928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7930 else
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7934 /* System header to define __stub macros and hopefully few prototypes,
7935 which can conflict with char $ac_func(); below. */
7936 #include <assert.h>
7937 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7940 char $ac_func();
7942 int main() {
7944 /* The GNU C library defines this for functions which it implements
7945 to always fail with ENOSYS. Some functions are actually named
7946 something starting with __ and the normal name is an alias. */
7947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7948 choke me
7949 #else
7950 $ac_func();
7951 #endif
7953 ; return 0; }
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 rm -rf conftest*
7957 eval "ac_cv_func_$ac_func=yes"
7958 else
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 rm -rf conftest*
7962 eval "ac_cv_func_$ac_func=no"
7964 rm -f conftest*
7967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7968 echo "$ac_t""yes" 1>&6
7969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7970 cat >> confdefs.h <<EOF
7971 #define $ac_tr_func 1
7974 else
7975 echo "$ac_t""no" 1>&6
7977 done
7979 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7980 set dummy gmsgfmt; ac_word=$2
7981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_word" >&5
7983 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7986 case "$GMSGFMT" in
7988 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7990 ?:/*)
7991 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7995 ac_dummy="$PATH"
7996 for ac_dir in $ac_dummy; do
7997 test -z "$ac_dir" && ac_dir=.
7998 if test -f $ac_dir/$ac_word; then
7999 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8000 break
8002 done
8003 IFS="$ac_save_ifs"
8004 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8006 esac
8008 GMSGFMT="$ac_cv_path_GMSGFMT"
8009 if test -n "$GMSGFMT"; then
8010 echo "$ac_t""$GMSGFMT" 1>&6
8011 else
8012 echo "$ac_t""no" 1>&6
8015 # Extract the first word of "xgettext", so it can be a program name with args.
8016 set dummy xgettext; ac_word=$2
8017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8018 echo "configure:8019: checking for $ac_word" >&5
8019 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8021 else
8022 case "$XGETTEXT" in
8024 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8028 for ac_dir in $PATH; do
8029 test -z "$ac_dir" && ac_dir=.
8030 if test -f $ac_dir/$ac_word; then
8031 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8032 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8033 break
8036 done
8037 IFS="$ac_save_ifs"
8038 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8040 esac
8042 XGETTEXT="$ac_cv_path_XGETTEXT"
8043 if test -n "$XGETTEXT"; then
8044 echo "$ac_t""$XGETTEXT" 1>&6
8045 else
8046 echo "$ac_t""no" 1>&6
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8053 int main() {
8054 extern int _nl_msg_cat_cntr;
8055 return _nl_msg_cat_cntr
8056 ; return 0; }
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8059 rm -rf conftest*
8060 CATOBJEXT=.gmo
8061 DATADIRNAME=share
8062 else
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8065 rm -rf conftest*
8066 CATOBJEXT=.mo
8067 DATADIRNAME=lib
8069 rm -f conftest*
8070 INSTOBJEXT=.mo
8074 else
8075 echo "$ac_t""no" 1>&6
8079 if test "$CATOBJEXT" = "NONE"; then
8080 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8081 echo "configure:8082: checking whether catgets can be used" >&5
8082 # Check whether --with-catgets or --without-catgets was given.
8083 if test "${with_catgets+set}" = set; then
8084 withval="$with_catgets"
8085 nls_cv_use_catgets=$withval
8086 else
8087 nls_cv_use_catgets=no
8090 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8092 if test "$nls_cv_use_catgets" = "yes"; then
8093 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8094 echo "configure:8095: checking for main in -li" >&5
8095 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
8096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8098 else
8099 ac_save_LIBS="$LIBS"
8100 LIBS="-li $LIBS"
8101 cat > conftest.$ac_ext <<EOF
8102 #line 8103 "configure"
8103 #include "confdefs.h"
8105 int main() {
8106 main()
8107 ; return 0; }
8109 if { (eval echo configure:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8110 rm -rf conftest*
8111 eval "ac_cv_lib_$ac_lib_var=yes"
8112 else
8113 echo "configure: failed program was:" >&5
8114 cat conftest.$ac_ext >&5
8115 rm -rf conftest*
8116 eval "ac_cv_lib_$ac_lib_var=no"
8118 rm -f conftest*
8119 LIBS="$ac_save_LIBS"
8122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8123 echo "$ac_t""yes" 1>&6
8124 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8126 cat >> confdefs.h <<EOF
8127 #define $ac_tr_lib 1
8130 LIBS="-li $LIBS"
8132 else
8133 echo "$ac_t""no" 1>&6
8136 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8137 echo "configure:8138: checking for catgets" >&5
8138 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8140 else
8141 cat > conftest.$ac_ext <<EOF
8142 #line 8143 "configure"
8143 #include "confdefs.h"
8144 /* System header to define __stub macros and hopefully few prototypes,
8145 which can conflict with char catgets(); below. */
8146 #include <assert.h>
8147 /* Override any gcc2 internal prototype to avoid an error. */
8148 /* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8150 char catgets();
8152 int main() {
8154 /* The GNU C library defines this for functions which it implements
8155 to always fail with ENOSYS. Some functions are actually named
8156 something starting with __ and the normal name is an alias. */
8157 #if defined (__stub_catgets) || defined (__stub___catgets)
8158 choke me
8159 #else
8160 catgets();
8161 #endif
8163 ; return 0; }
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166 rm -rf conftest*
8167 eval "ac_cv_func_catgets=yes"
8168 else
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8171 rm -rf conftest*
8172 eval "ac_cv_func_catgets=no"
8174 rm -f conftest*
8177 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8178 echo "$ac_t""yes" 1>&6
8179 cat >> confdefs.h <<\EOF
8180 #define HAVE_CATGETS 1
8183 INTLOBJS="\$(CATOBJS)"
8184 # Extract the first word of "gencat", so it can be a program name with args.
8185 set dummy gencat; ac_word=$2
8186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8187 echo "configure:8188: checking for $ac_word" >&5
8188 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8190 else
8191 case "$GENCAT" in
8193 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
8195 ?:/*)
8196 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
8199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8200 ac_dummy="$PATH"
8201 for ac_dir in $ac_dummy; do
8202 test -z "$ac_dir" && ac_dir=.
8203 if test -f $ac_dir/$ac_word; then
8204 ac_cv_path_GENCAT="$ac_dir/$ac_word"
8205 break
8207 done
8208 IFS="$ac_save_ifs"
8209 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
8211 esac
8213 GENCAT="$ac_cv_path_GENCAT"
8214 if test -n "$GENCAT"; then
8215 echo "$ac_t""$GENCAT" 1>&6
8216 else
8217 echo "$ac_t""no" 1>&6
8219 if test "$GENCAT" != "no"; then
8220 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8221 set dummy gmsgfmt; ac_word=$2
8222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8223 echo "configure:8224: checking for $ac_word" >&5
8224 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8226 else
8227 case "$GMSGFMT" in
8229 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8231 ?:/*)
8232 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8236 ac_dummy="$PATH"
8237 for ac_dir in $ac_dummy; do
8238 test -z "$ac_dir" && ac_dir=.
8239 if test -f $ac_dir/$ac_word; then
8240 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8241 break
8243 done
8244 IFS="$ac_save_ifs"
8245 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
8247 esac
8249 GMSGFMT="$ac_cv_path_GMSGFMT"
8250 if test -n "$GMSGFMT"; then
8251 echo "$ac_t""$GMSGFMT" 1>&6
8252 else
8253 echo "$ac_t""no" 1>&6
8256 if test "$GMSGFMT" = "no"; then
8257 # Extract the first word of "msgfmt", so it can be a program name with args.
8258 set dummy msgfmt; ac_word=$2
8259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8260 echo "configure:8261: checking for $ac_word" >&5
8261 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8263 else
8264 case "$GMSGFMT" in
8266 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8270 for ac_dir in $PATH; do
8271 test -z "$ac_dir" && ac_dir=.
8272 if test -f $ac_dir/$ac_word; then
8273 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8274 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8275 break
8278 done
8279 IFS="$ac_save_ifs"
8280 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="msgfmt"
8282 esac
8284 GMSGFMT="$ac_cv_path_GMSGFMT"
8285 if test -n "$GMSGFMT"; then
8286 echo "$ac_t""$GMSGFMT" 1>&6
8287 else
8288 echo "$ac_t""no" 1>&6
8291 if test "$GMSGFMT" = "msgfmt"; then
8292 echo "configure: warning: No program for catalog building found" 1>&2
8293 create_catalogs="no"
8296 # Extract the first word of "xgettext", so it can be a program name with args.
8297 set dummy xgettext; ac_word=$2
8298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8299 echo "configure:8300: checking for $ac_word" >&5
8300 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8301 echo $ac_n "(cached) $ac_c" 1>&6
8302 else
8303 case "$XGETTEXT" in
8305 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8309 for ac_dir in $PATH; do
8310 test -z "$ac_dir" && ac_dir=.
8311 if test -f $ac_dir/$ac_word; then
8312 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8314 break
8317 done
8318 IFS="$ac_save_ifs"
8319 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8321 esac
8323 XGETTEXT="$ac_cv_path_XGETTEXT"
8324 if test -n "$XGETTEXT"; then
8325 echo "$ac_t""$XGETTEXT" 1>&6
8326 else
8327 echo "$ac_t""no" 1>&6
8330 USE_INCLUDED_LIBINTL=yes
8331 CATOBJEXT=.cat
8332 INSTOBJEXT=.cat
8333 DATADIRNAME=lib
8334 INTLDEPS='$(top_builddir)/intl/libintl.a'
8335 INTLLIBS=$INTLDEPS
8336 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8337 nls_cv_header_intl=intl/libintl.h
8338 nls_cv_header_libgt=intl/libgettext.h
8340 else
8341 echo "$ac_t""no" 1>&6
8347 if test "$CATOBJEXT" = "NONE"; then
8348 nls_cv_use_gnu_gettext=yes
8352 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8353 INTLOBJS="\$(GETTOBJS)"
8354 # Extract the first word of "msgfmt", so it can be a program name with args.
8355 set dummy msgfmt; ac_word=$2
8356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8357 echo "configure:8358: checking for $ac_word" >&5
8358 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8359 echo $ac_n "(cached) $ac_c" 1>&6
8360 else
8361 case "$MSGFMT" in
8363 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8367 for ac_dir in $PATH; do
8368 test -z "$ac_dir" && ac_dir=.
8369 if test -f $ac_dir/$ac_word; then
8370 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8371 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8372 break
8375 done
8376 IFS="$ac_save_ifs"
8377 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8379 esac
8381 MSGFMT="$ac_cv_path_MSGFMT"
8382 if test -n "$MSGFMT"; then
8383 echo "$ac_t""$MSGFMT" 1>&6
8384 else
8385 echo "$ac_t""no" 1>&6
8388 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8389 set dummy gmsgfmt; ac_word=$2
8390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8391 echo "configure:8392: checking for $ac_word" >&5
8392 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8394 else
8395 case "$GMSGFMT" in
8397 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8399 ?:/*)
8400 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8404 ac_dummy="$PATH"
8405 for ac_dir in $ac_dummy; do
8406 test -z "$ac_dir" && ac_dir=.
8407 if test -f $ac_dir/$ac_word; then
8408 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8409 break
8411 done
8412 IFS="$ac_save_ifs"
8413 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8415 esac
8417 GMSGFMT="$ac_cv_path_GMSGFMT"
8418 if test -n "$GMSGFMT"; then
8419 echo "$ac_t""$GMSGFMT" 1>&6
8420 else
8421 echo "$ac_t""no" 1>&6
8424 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8425 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8426 create_catalogs="no"
8428 # Extract the first word of "xgettext", so it can be a program name with args.
8429 set dummy xgettext; ac_word=$2
8430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8431 echo "configure:8432: checking for $ac_word" >&5
8432 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8434 else
8435 case "$XGETTEXT" in
8437 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8441 for ac_dir in $PATH; do
8442 test -z "$ac_dir" && ac_dir=.
8443 if test -f $ac_dir/$ac_word; then
8444 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8445 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8446 break
8449 done
8450 IFS="$ac_save_ifs"
8451 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8453 esac
8455 XGETTEXT="$ac_cv_path_XGETTEXT"
8456 if test -n "$XGETTEXT"; then
8457 echo "$ac_t""$XGETTEXT" 1>&6
8458 else
8459 echo "$ac_t""no" 1>&6
8463 USE_INCLUDED_LIBINTL=yes
8464 CATOBJEXT=.gmo
8465 INSTOBJEXT=.mo
8466 DATADIRNAME=share
8467 INTLDEPS='$(top_builddir)/intl/libintl.a'
8468 INTLLIBS=$INTLDEPS
8469 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8470 nls_cv_header_intl=intl/libintl.h
8471 nls_cv_header_libgt=intl/libgettext.h
8474 if test "$XGETTEXT" != ":"; then
8475 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8477 else
8478 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8479 XGETTEXT=":"
8485 # We need to process the po/ directory.
8486 POSUB=po
8487 else
8488 DATADIRNAME=share
8489 nls_cv_header_intl=intl/libintl.h
8490 nls_cv_header_libgt=intl/libgettext.h
8496 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8497 # because some of the sources are only built for this goal.
8498 if test "$PACKAGE" = gettext; then
8499 USE_NLS=yes
8500 USE_INCLUDED_LIBINTL=yes
8503 for lang in $ALL_LINGUAS; do
8504 GMOFILES="$GMOFILES $lang.gmo"
8505 POFILES="$POFILES $lang.po"
8506 done
8521 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8522 if test "x$ALL_LINGUAS" = "x"; then
8523 LINGUAS=
8524 else
8525 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8526 echo "configure:8527: checking for catalogs to be installed" >&5
8527 if test "x$LINGUAS" = "x"; then
8528 LINGUAS=$ALL_LINGUAS
8529 else
8530 NEW_LINGUAS=
8531 for lang in $ALL_LINGUAS; do
8532 case " $LINGUAS " in
8533 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8534 esac
8535 done
8536 LINGUAS=$NEW_LINGUAS
8538 echo "$ac_t""$LINGUAS" 1>&6
8541 if test -n "$LINGUAS"; then
8542 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8546 if test $ac_cv_header_locale_h = yes; then
8547 INCLUDE_LOCALE_H="#include <locale.h>"
8548 else
8549 INCLUDE_LOCALE_H="\
8550 /* The system does not provide the header <locale.h>. Take care yourself. */"
8554 test -d intl || mkdir intl
8555 if test "$CATOBJEXT" = ".cat"; then
8556 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8557 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8558 echo "configure:8559: checking for linux/version.h" >&5
8559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8561 else
8562 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8565 #include <linux/version.h>
8567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8568 { (eval echo configure:8569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8570 if test -z "$ac_err"; then
8571 rm -rf conftest*
8572 eval "ac_cv_header_$ac_safe=yes"
8573 else
8574 echo "$ac_err" >&5
8575 echo "configure: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8577 rm -rf conftest*
8578 eval "ac_cv_header_$ac_safe=no"
8580 rm -f conftest*
8582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8583 echo "$ac_t""yes" 1>&6
8584 msgformat=linux
8585 else
8586 echo "$ac_t""no" 1>&6
8587 msgformat=xopen
8591 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8593 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8594 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8596 if test "$PACKAGE" = "gettext"; then
8597 GT_NO="#NO#"
8598 GT_YES=
8599 else
8600 GT_NO=
8601 GT_YES="#YES#"
8606 MKINSTALLDIRS=
8607 if test -n "$ac_aux_dir"; then
8608 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8610 if test -z "$MKINSTALLDIRS"; then
8611 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8618 test -d po || mkdir po
8619 if test "x$srcdir" != "x."; then
8620 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8621 posrcprefix="$srcdir/"
8622 else
8623 posrcprefix="../$srcdir/"
8625 else
8626 posrcprefix="../"
8628 rm -f po/POTFILES
8629 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8630 < $srcdir/po/POTFILES.in > po/POTFILES
8632 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8634 # Windows32 Registry support for specifying GCC installation paths.
8635 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8636 if test "${enable_win32_registry+set}" = set; then
8637 enableval="$enable_win32_registry"
8642 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8643 echo "configure:8644: checking whether windows registry support is requested" >&5
8644 if test x$enable_win32_registry != xno; then
8645 cat >> confdefs.h <<\EOF
8646 #define ENABLE_WIN32_REGISTRY 1
8649 echo "$ac_t""yes" 1>&6
8650 else
8651 echo "$ac_t""no" 1>&6
8654 # Check if user specified a different registry key.
8655 case x${enable_win32_registry} in
8656 x | xyes)
8657 # default.
8658 gcc_cv_win32_registry_key="$VERSION"
8660 xno)
8661 # no registry lookup.
8662 gcc_cv_win32_registry_key=''
8665 # user-specified key.
8666 gcc_cv_win32_registry_key="$enable_win32_registry"
8668 esac
8670 if test x$enable_win32_registry != xno; then
8671 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8672 echo "configure:8673: checking registry key on windows hosts" >&5
8673 cat >> confdefs.h <<EOF
8674 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8677 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8680 # Get an absolute path to the GCC top-level source directory
8681 holddir=`pwd`
8682 cd $srcdir
8683 topdir=`pwd`
8684 cd $holddir
8686 # Conditionalize the makefile for this host machine.
8687 # Make-host contains the concatenation of all host makefile fragments
8688 # [there can be more than one]. This file is built by configure.frag.
8689 host_overrides=Make-host
8690 dep_host_xmake_file=
8691 for f in .. ${host_xmake_file}
8693 if test -f ${srcdir}/config/$f
8694 then
8695 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8697 done
8699 # Conditionalize the makefile for this target machine.
8700 # Make-target contains the concatenation of all host makefile fragments
8701 # [there can be more than one]. This file is built by configure.frag.
8702 target_overrides=Make-target
8703 dep_tmake_file=
8704 for f in .. ${tmake_file}
8706 if test -f ${srcdir}/config/$f
8707 then
8708 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8710 done
8712 # If the host doesn't support symlinks, modify CC in
8713 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8714 # Otherwise, we can use "CC=$(CC)".
8715 rm -f symtest.tem
8716 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8717 then
8718 cc_set_by_configure="\$(CC)"
8719 quoted_cc_set_by_configure="\$(CC)"
8720 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8721 else
8722 rm -f symtest.tem
8723 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8724 then
8725 symbolic_link="cp -p"
8726 else
8727 symbolic_link="cp"
8729 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8730 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8731 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8733 rm -f symtest.tem
8735 out_object_file=`basename $out_file .c`.o
8737 tm_file_list=
8738 for f in $tm_file; do
8739 case $f in
8740 gansidecl.h )
8741 tm_file_list="${tm_file_list} $f" ;;
8742 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8743 esac
8744 done
8746 host_xm_file_list=
8747 for f in $host_xm_file; do
8748 case $f in
8749 auto-host.h | gansidecl.h | hwint.h )
8750 host_xm_file_list="${host_xm_file_list} $f" ;;
8751 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8752 esac
8753 done
8755 build_xm_file_list=
8756 for f in $build_xm_file; do
8757 case $f in
8758 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8759 build_xm_file_list="${build_xm_file_list} $f" ;;
8760 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8761 esac
8762 done
8764 # Define macro CROSS_COMPILE in compilation
8765 # if this is a cross-compiler.
8766 # Also use all.cross instead of all.internal
8767 # and add cross-make to Makefile.
8768 cross_overrides="/dev/null"
8769 if test x$host != x$target
8770 then
8771 cross_defines="CROSS=-DCROSS_COMPILE"
8772 cross_overrides="${topdir}/cross-make"
8775 # If this is a cross-compiler that does not
8776 # have its own set of headers then define
8777 # inhibit_libc
8779 # If this is using newlib, then define inhibit_libc in
8780 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8781 # libgcc.a, but that's OK because newlib should have its own version of
8782 # assert.h.
8783 inhibit_libc=
8784 if test x$host != x$target && test x$with_headers = x; then
8785 inhibit_libc=-Dinhibit_libc
8786 else
8787 if test x$with_newlib = xyes; then
8788 inhibit_libc=-Dinhibit_libc
8793 # When building gcc with a cross-compiler, we need to fix a few things.
8794 # This must come after cross-make as we want all.build to override
8795 # all.cross.
8796 build_overrides="/dev/null"
8797 if test x$build != x$host
8798 then
8799 build_overrides="${topdir}/build-make"
8802 # Expand extra_headers to include complete path.
8803 # This substitutes for lots of t-* files.
8804 extra_headers_list=
8805 if test "x$extra_headers" = x
8806 then true
8807 else
8808 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8809 for file in $extra_headers;
8811 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8812 done
8815 if test x$use_collect2 = xno; then
8816 use_collect2=
8819 # Add a definition of USE_COLLECT2 if system wants one.
8820 # Also tell toplev.c what to do.
8821 # This substitutes for lots of t-* files.
8822 if test x$use_collect2 = x
8823 then
8824 will_use_collect2=
8825 maybe_use_collect2=
8826 else
8827 will_use_collect2="collect2"
8828 maybe_use_collect2="-DUSE_COLLECT2"
8831 # NEED TO CONVERT
8832 # Set MD_DEPS if the real md file is in md.pre-cpp.
8833 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8834 # for line oriented comments, so we must always use a GNU cpp. If
8835 # building gcc with a cross compiler, use the cross compiler just
8836 # built. Otherwise, we can use the cpp just built.
8837 md_file_sub=
8838 if test "x$md_cppflags" = x
8839 then
8840 md_file_sub=$srcdir/config/$md_file
8841 else
8842 md_file=md
8845 # If we have gas in the build tree, make a link to it.
8846 if test -f ../gas/Makefile; then
8847 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8850 # If we have nm in the build tree, make a link to it.
8851 if test -f ../binutils/Makefile; then
8852 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8855 # If we have ld in the build tree, make a link to it.
8856 if test -f ../ld/Makefile; then
8857 # if test x$use_collect2 = x; then
8858 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8859 # else
8860 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8861 # fi
8864 # Figure out what assembler alignment features are present.
8865 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8866 echo "configure:8867: checking assembler alignment features" >&5
8867 gcc_cv_as=
8868 gcc_cv_as_alignment_features=
8869 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8870 if test -x "$DEFAULT_ASSEMBLER"; then
8871 gcc_cv_as="$DEFAULT_ASSEMBLER"
8872 elif test -x "$AS"; then
8873 gcc_cv_as="$AS"
8874 elif test -x as$host_exeext; then
8875 # Build using assembler in the current directory.
8876 gcc_cv_as=./as$host_exeext
8877 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8878 # Single tree build which includes gas.
8879 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8881 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8882 if test x$gcc_cv_gas_version != x; then
8883 break
8885 done
8886 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8887 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8888 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8889 # Gas version 2.6 and later support for .balign and .p2align.
8890 # bytes to skip when using .p2align.
8891 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
8892 gcc_cv_as_alignment_features=".balign and .p2align"
8893 cat >> confdefs.h <<\EOF
8894 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8898 # Gas version 2.8 and later support specifying the maximum
8899 # bytes to skip when using .p2align.
8900 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
8901 gcc_cv_as_alignment_features=".p2align including maximum skip"
8902 cat >> confdefs.h <<\EOF
8903 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8908 elif test x$host = x$target; then
8909 # Native build.
8910 # Search the same directories that the installed compiler will
8911 # search. Else we may find the wrong assembler and lose. If we
8912 # do not find a suitable assembler binary, then try the user's
8913 # path.
8915 # Also note we have to check MD_EXEC_PREFIX before checking the
8916 # user's path. Unfortunately, there is no good way to get at the
8917 # value of MD_EXEC_PREFIX here. So we do a brute force search
8918 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8919 # to be fixed as part of the make/configure rewrite too.
8921 if test "x$exec_prefix" = xNONE; then
8922 if test "x$prefix" = xNONE; then
8923 test_prefix=/usr/local
8924 else
8925 test_prefix=$prefix
8927 else
8928 test_prefix=$exec_prefix
8931 # If the loop below does not find an assembler, then use whatever
8932 # one we can find in the users's path.
8933 # user's path.
8934 as=as$host_exeext
8936 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8937 $test_prefix/lib/gcc-lib/$target \
8938 /usr/lib/gcc/$target/$gcc_version \
8939 /usr/lib/gcc/$target \
8940 $test_prefix/$target/bin/$target/$gcc_version \
8941 $test_prefix/$target/bin \
8942 /usr/libexec \
8943 /usr/ccs/gcc \
8944 /usr/ccs/bin \
8945 /udk/usr/ccs/bin \
8946 /bsd43/usr/lib/cmplrs/cc \
8947 /usr/cross64/usr/bin \
8948 /usr/lib/cmplrs/cc \
8949 /sysv/usr/lib/cmplrs/cc \
8950 /svr4/usr/lib/cmplrs/cc \
8951 /usr/bin"
8953 for dir in $test_dirs; do
8954 if test -f $dir/as$host_exeext; then
8955 gcc_cv_as=$dir/as$host_exeext
8956 break;
8958 done
8960 if test x$gcc_cv_as != x; then
8961 # Check if we have .balign and .p2align
8962 echo ".balign 4" > conftest.s
8963 echo ".p2align 2" >> conftest.s
8964 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8965 gcc_cv_as_alignment_features=".balign and .p2align"
8966 cat >> confdefs.h <<\EOF
8967 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8971 rm -f conftest.s conftest.o
8972 # Check if specifying the maximum bytes to skip when
8973 # using .p2align is supported.
8974 echo ".p2align 4,,7" > conftest.s
8975 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8976 gcc_cv_as_alignment_features=".p2align including maximum skip"
8977 cat >> confdefs.h <<\EOF
8978 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8982 rm -f conftest.s conftest.o
8984 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8986 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8987 echo "configure:8988: checking assembler subsection support" >&5
8988 gcc_cv_as_subsections=
8989 if test x$gcc_cv_as != x; then
8990 # Check if we have .subsection
8991 echo ".subsection 1" > conftest.s
8992 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8993 gcc_cv_as_subsections=".subsection"
8994 if test -x nm$host_exeext; then
8995 gcc_cv_nm=./nm$host_exeext
8996 elif test x$host = x$target; then
8997 # Native build.
8998 gcc_cv_nm=nm$host_exeext
9000 if test x$gcc_cv_nm != x; then
9001 cat > conftest.s <<EOF
9002 conftest_label1: .word 0
9003 .subsection -1
9004 conftest_label2: .word 0
9005 .previous
9007 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9008 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
9009 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
9010 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
9012 else
9013 gcc_cv_as_subsections="working .subsection -1"
9014 cat >> confdefs.h <<\EOF
9015 #define HAVE_GAS_SUBSECTION_ORDERING 1
9022 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9024 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9026 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9027 echo "configure:9028: checking assembler weak support" >&5
9028 gcc_cv_as_weak=
9029 if test x$gcc_cv_as != x; then
9030 # Check if we have .weak
9031 echo " .weak foobar" > conftest.s
9032 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9033 cat >> confdefs.h <<\EOF
9034 #define HAVE_GAS_WEAK 1
9037 gcc_cv_as_weak="yes"
9039 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9041 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9043 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9044 echo "configure:9045: checking assembler hidden support" >&5
9045 gcc_cv_as_hidden=
9046 if test x$gcc_cv_as != x; then
9047 # Check if we have .hidden
9048 echo " .hidden foobar" > conftest.s
9049 echo "foobar:" >> conftest.s
9050 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9051 cat >> confdefs.h <<\EOF
9052 #define HAVE_GAS_HIDDEN 1
9055 gcc_cv_as_hidden="yes"
9057 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9059 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9061 case "$target" in
9062 sparc*-*-*)
9063 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9064 echo "configure:9065: checking assembler .register pseudo-op support" >&5
9065 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9067 else
9069 gcc_cv_as_register_pseudo_op=unknown
9070 if test x$gcc_cv_as != x; then
9071 # Check if we have .register
9072 echo ".register %g2, #scratch" > conftest.s
9073 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9074 gcc_cv_as_register_pseudo_op=yes
9075 else
9076 gcc_cv_as_register_pseudo_op=no
9078 rm -f conftest.s conftest.o
9083 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9084 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
9085 cat >> confdefs.h <<\EOF
9086 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9091 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9092 echo "configure:9093: checking assembler supports -relax" >&5
9093 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9094 echo $ac_n "(cached) $ac_c" 1>&6
9095 else
9097 gcc_cv_as_relax_opt=unknown
9098 if test x$gcc_cv_as != x; then
9099 # Check if gas supports -relax
9100 echo ".text" > conftest.s
9101 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
9102 gcc_cv_as_relax_opt=yes
9103 else
9104 gcc_cv_as_relax_opt=no
9106 rm -f conftest.s conftest.o
9111 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9112 if test "x$gcc_cv_as_relax_opt" = xyes; then
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_AS_RELAX_OPTION 1
9119 case "$tm_file" in
9120 *64*)
9121 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9122 echo "configure:9123: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9123 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9124 echo $ac_n "(cached) $ac_c" 1>&6
9125 else
9127 if test -n "$gcc_cv_as"; then
9128 echo ".xword foo" > conftest.s
9129 gcc_cv_as_flags64=no
9130 for flag in "-xarch=v9" "-64 -Av9"; do
9131 if $gcc_cv_as $flag -o conftest.o conftest.s \
9132 > /dev/null 2>&1; then
9133 gcc_cv_as_flags64=$flag
9134 break
9136 done
9137 rm -f conftest.s conftest.o
9138 else
9139 if test "$gas" = yes; then
9140 gcc_cv_as_flags64="-64 -Av9"
9141 else
9142 gcc_cv_as_flags64="-xarch=v9"
9148 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9149 if test "x$gcc_cv_as_flags64" = xno; then
9151 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9152 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9154 else
9155 cat >> confdefs.h <<EOF
9156 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9161 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
9163 esac
9165 if test "x$gcc_cv_as_flags64" != xno; then
9166 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9167 echo "configure:9168: checking for assembler offsetable %lo() support" >&5
9168 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9170 else
9172 gcc_cv_as_offsetable_lo10=unknown
9173 if test "x$gcc_cv_as" != x; then
9174 # Check if assembler has offsetable %lo()
9175 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9176 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9177 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9178 > /dev/null 2>&1 &&
9179 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9180 > /dev/null 2>&1; then
9181 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
9182 gcc_cv_as_offsetable_lo10=no
9183 else
9184 gcc_cv_as_offsetable_lo10=yes
9186 else
9187 gcc_cv_as_offsetable_lo10=no
9189 rm -f conftest.s conftest.o conftest1.s conftest1.o
9194 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9195 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
9196 cat >> confdefs.h <<\EOF
9197 #define HAVE_AS_OFFSETABLE_LO10 1
9204 i[34567]86-*-*)
9205 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9206 echo "configure:9207: checking assembler instructions" >&5
9207 gcc_cv_as_instructions=
9208 if test x$gcc_cv_as != x; then
9209 set "filds fists" "filds mem; fists mem"
9210 while test $# -gt 0
9212 echo "$2" > conftest.s
9213 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
9214 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
9215 cat >> confdefs.h <<EOF
9216 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9220 shift 2
9221 done
9222 rm -f conftest.s conftest.o
9224 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9226 esac
9228 # Figure out what language subdirectories are present.
9229 # Look if the user specified --enable-languages="..."; if not, use
9230 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9231 # go away some day.
9232 if test x"${enable_languages+set}" != xset; then
9233 if test x"${LANGUAGES+set}" = xset; then
9234 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
9235 else
9236 enable_languages=all
9238 else
9239 if test x"${enable_languages}" = x; then
9240 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9243 subdirs=
9244 for lang in ${srcdir}/*/config-lang.in ..
9246 case $lang in
9247 ..) ;;
9248 # The odd quoting in the next line works around
9249 # an apparent bug in bash 1.12 on linux.
9250 ${srcdir}/[*]/config-lang.in) ;;
9252 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9253 if test "x$lang_alias" = x
9254 then
9255 echo "$lang doesn't set \$language." 1>&2
9256 exit 1
9258 if test x"${enable_languages}" = xall; then
9259 add_this_lang=yes
9260 else
9261 case "${enable_languages}" in
9262 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9263 add_this_lang=yes
9266 add_this_lang=no
9268 esac
9270 if test x"${add_this_lang}" = xyes; then
9271 case $lang in
9272 ${srcdir}/ada/config-lang.in)
9273 if test x$gnat = xyes ; then
9274 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9278 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9280 esac
9283 esac
9284 done
9286 # Make gthr-default.h if we have a thread file.
9287 gthread_flags=
9288 if test $thread_file != single; then
9289 rm -f gthr-default.h
9290 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9291 gthread_flags=-DHAVE_GTHR_DEFAULT
9295 # Find out what GC implementation we want, or may, use.
9296 # Check whether --with-gc or --without-gc was given.
9297 if test "${with_gc+set}" = set; then
9298 withval="$with_gc"
9299 case "$withval" in
9300 simple | page)
9301 GGC=ggc-$withval
9304 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9306 esac
9307 else
9308 if test $ac_cv_func_mmap_anywhere = yes \
9309 || test $ac_cv_func_valloc = yes; then
9310 GGC=ggc-page
9311 else
9312 GGC=ggc-simple
9317 echo "Using $GGC for garbage collection."
9319 # Build a new-abi (c++) system
9320 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9321 if test "${enable_new_gxx_abi+set}" = set; then
9322 enableval="$enable_new_gxx_abi"
9323 cat >> confdefs.h <<\EOF
9324 #define ENABLE_NEW_GXX_ABI 1
9327 GXX_ABI_FLAG='-fnew-abi'
9328 echo "Building a new-abi g++ compiler."
9334 # Build a new-libstdc++ system (ie libstdc++-v3)
9335 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9336 echo "configure:9337: checking for libstdc++ to install" >&5
9337 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9338 if test "${enable_libstdcxx_v3+set}" = set; then
9339 enableval="$enable_libstdcxx_v3"
9340 enable_libstdcxx_v3=yes
9341 else
9342 enable_libstdcxx_v3=no
9346 if test x$enable_libstdcxx_v3 = xyes; then
9347 echo "$ac_t""v3" 1>&6
9348 ac_esn=1
9349 else
9350 echo "$ac_t""v2" 1>&6
9351 ac_esn=0
9353 cat >> confdefs.h <<EOF
9354 #define ENABLE_STD_NAMESPACE $ac_esn
9359 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9360 echo "configure:9361: checking whether to enable maintainer-specific portions of Makefiles" >&5
9361 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9362 if test "${enable_maintainer_mode+set}" = set; then
9363 enableval="$enable_maintainer_mode"
9364 maintainer_mode=$enableval
9365 else
9366 maintainer_mode=no
9370 echo "$ac_t""$maintainer_mode" 1>&6
9372 if test "$maintainer_mode" = "yes"; then
9373 MAINT=''
9374 else
9375 MAINT='#'
9378 # Make empty files to contain the specs and options for each language.
9379 # Then add #include lines to for a compiler that has specs and/or options.
9381 lang_specs_files=
9382 lang_options_files=
9383 lang_tree_files=
9384 rm -f specs.h options.h gencheck.h
9385 touch specs.h options.h gencheck.h
9386 for subdir in . $subdirs
9388 if test -f $srcdir/$subdir/lang-specs.h; then
9389 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9390 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9392 if test -f $srcdir/$subdir/lang-options.h; then
9393 echo "#include \"$subdir/lang-options.h\"" >>options.h
9394 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
9396 if test -f $srcdir/$subdir/$subdir-tree.def; then
9397 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9398 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9400 done
9402 # These (without "all_") are set in each config-lang.in.
9403 # `language' must be a single word so is spelled singularly.
9404 all_languages=
9405 all_boot_languages=
9406 all_compilers=
9407 all_stagestuff=
9408 all_diff_excludes=
9409 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9410 # List of language makefile fragments.
9411 all_lang_makefiles=
9412 all_headers=
9413 all_lib2funcs=
9415 # Add the language fragments.
9416 # Languages are added via two mechanisms. Some information must be
9417 # recorded in makefile variables, these are defined in config-lang.in.
9418 # We accumulate them and plug them into the main Makefile.
9419 # The other mechanism is a set of hooks for each of the main targets
9420 # like `clean', `install', etc.
9422 language_fragments="Make-lang"
9423 language_hooks="Make-hooks"
9424 oldstyle_subdirs=
9426 for s in .. $subdirs
9428 if test $s != ".."
9429 then
9430 language=
9431 boot_language=
9432 compilers=
9433 stagestuff=
9434 diff_excludes=
9435 headers=
9436 outputs=
9437 lib2funcs=
9438 . ${srcdir}/$s/config-lang.in
9439 if test "x$language" = x
9440 then
9441 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9442 exit 1
9444 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9445 all_languages="$all_languages $language"
9446 if test "x$boot_language" = xyes
9447 then
9448 all_boot_languages="$all_boot_languages $language"
9450 all_compilers="$all_compilers $compilers"
9451 all_stagestuff="$all_stagestuff $stagestuff"
9452 all_diff_excludes="$all_diff_excludes $diff_excludes"
9453 all_headers="$all_headers $headers"
9454 all_outputs="$all_outputs $outputs"
9455 if test x$outputs = x
9456 then
9457 oldstyle_subdirs="$oldstyle_subdirs $s"
9459 all_lib2funcs="$all_lib2funcs $lib2funcs"
9461 done
9463 # Since we can't use `::' targets, we link each language in
9464 # with a set of hooks, reached indirectly via lang.${target}.
9466 rm -f Make-hooks
9467 touch Make-hooks
9468 target_list="all.build all.cross start.encap rest.encap \
9469 info dvi \
9470 install-normal install-common install-info install-man \
9471 uninstall distdir \
9472 mostlyclean clean distclean extraclean maintainer-clean \
9473 stage1 stage2 stage3 stage4"
9474 for t in $target_list
9477 for lang in .. $all_languages
9479 if test $lang != ".."; then
9480 x="$x $lang.$t"
9482 done
9483 echo "lang.$t: $x" >> Make-hooks
9484 done
9486 # If we're not building in srcdir, create .gdbinit.
9488 if test ! -f Makefile.in; then
9489 echo "dir ." > .gdbinit
9490 echo "dir ${srcdir}" >> .gdbinit
9491 if test x$gdb_needs_out_file_path = xyes
9492 then
9493 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9495 if test "x$subdirs" != x; then
9496 for s in $subdirs
9498 echo "dir ${srcdir}/$s" >> .gdbinit
9499 done
9501 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9504 # Define variables host_canonical and build_canonical
9505 # because some Cygnus local changes in the Makefile depend on them.
9506 build_canonical=${build}
9507 host_canonical=${host}
9508 target_subdir=
9509 if test "${host}" != "${target}" ; then
9510 target_subdir=${target}/
9516 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9517 # absolute path for gcc_tooldir based on inserting the number of up-directory
9518 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9519 # $(libsubdir)/@(unlibsubdir) based path.
9520 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9521 # make and thus we'd get different behavior depending on where we built the
9522 # sources.
9523 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9524 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9525 else
9526 # An explanation of the sed strings:
9527 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9528 # -e 's|/$||' match a trailing forward slash and eliminates it
9529 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9530 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9532 # (*) Note this pattern overwrites the first character of the string
9533 # with a forward slash if one is not already present. This is not a
9534 # problem because the exact names of the sub-directories concerned is
9535 # unimportant, just the number of them matters.
9537 # The practical upshot of these patterns is like this:
9539 # prefix exec_prefix result
9540 # ------ ----------- ------
9541 # /foo /foo/bar ../
9542 # /foo/ /foo/bar ../
9543 # /foo /foo/bar/ ../
9544 # /foo/ /foo/bar/ ../
9545 # /foo /foo/bar/ugg ../../
9547 dollar='$$'
9548 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9553 # Nothing to do for FLOAT_H, float_format already handled.
9554 objdir=`pwd`
9557 # Process the language and host/target makefile fragments.
9558 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9560 # Substitute configuration variables
9619 # Echo that links are built
9620 if test x$host = x$target
9621 then
9622 str1="native "
9623 else
9624 str1="cross-"
9625 str2=" from $host"
9628 if test x$host != x$build
9629 then
9630 str3=" on a $build system"
9633 if test "x$str2" != x || test "x$str3" != x
9634 then
9635 str4=
9638 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9640 if test "x$str2" != x || test "x$str3" != x
9641 then
9642 echo " ${str2}${str3}." 1>&2
9645 # Truncate the target if necessary
9646 if test x$host_truncate_target != x; then
9647 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9650 # Configure the subdirectories
9651 # AC_CONFIG_SUBDIRS($subdirs)
9653 # Create the Makefile
9654 # and configure language subdirectories
9655 trap '' 1 2 15
9656 cat > confcache <<\EOF
9657 # This file is a shell script that caches the results of configure
9658 # tests run on this system so they can be shared between configure
9659 # scripts and configure runs. It is not useful on other systems.
9660 # If it contains results you don't want to keep, you may remove or edit it.
9662 # By default, configure uses ./config.cache as the cache file,
9663 # creating it if it does not exist already. You can give configure
9664 # the --cache-file=FILE option to use a different cache file; that is
9665 # what configure does when it calls configure scripts in
9666 # subdirectories, so they share the cache.
9667 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9668 # config.status only pays attention to the cache file if you give it the
9669 # --recheck option to rerun configure.
9672 # The following way of writing the cache mishandles newlines in values,
9673 # but we know of no workaround that is simple, portable, and efficient.
9674 # So, don't put newlines in cache variables' values.
9675 # Ultrix sh set writes to stderr and can't be redirected directly,
9676 # and sets the high bit in the cache file unless we assign to the vars.
9677 (set) 2>&1 |
9678 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9679 *ac_space=\ *)
9680 # `set' does not quote correctly, so add quotes (double-quote substitution
9681 # turns \\\\ into \\, and sed turns \\ into \).
9682 sed -n \
9683 -e "s/'/'\\\\''/g" \
9684 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9687 # `set' quotes correctly as required by POSIX, so do not add quotes.
9688 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9690 esac >> confcache
9691 if cmp -s $cache_file confcache; then
9693 else
9694 if test -w $cache_file; then
9695 echo "updating cache $cache_file"
9696 cat confcache > $cache_file
9697 else
9698 echo "not updating unwritable cache $cache_file"
9701 rm -f confcache
9703 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9706 # Let make expand exec_prefix.
9707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9709 # Any assignment to VPATH causes Sun make to only execute
9710 # the first set of double-colon rules, so remove it if not needed.
9711 # If there is a colon in the path, we need to keep it.
9712 if test "x$srcdir" = x.; then
9713 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9716 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9718 DEFS=-DHAVE_CONFIG_H
9720 # Without the "./", some shells look in PATH for config.status.
9721 : ${CONFIG_STATUS=./config.status}
9723 echo creating $CONFIG_STATUS
9724 rm -f $CONFIG_STATUS
9725 cat > $CONFIG_STATUS <<EOF
9726 #! /bin/sh
9727 # Generated automatically by configure.
9728 # Run this file to recreate the current configuration.
9729 # This directory was configured as follows,
9730 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9732 # $0 $ac_configure_args
9734 # Compiler output produced by configure, useful for debugging
9735 # configure, is in ./config.log if it exists.
9737 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9738 for ac_option
9740 case "\$ac_option" in
9741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9742 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9743 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9744 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9745 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9746 exit 0 ;;
9747 -help | --help | --hel | --he | --h)
9748 echo "\$ac_cs_usage"; exit 0 ;;
9749 *) echo "\$ac_cs_usage"; exit 1 ;;
9750 esac
9751 done
9753 ac_given_srcdir=$srcdir
9755 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9757 cat >> $CONFIG_STATUS <<EOF
9759 # Protect against being on the right side of a sed subst in config.status.
9760 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9761 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9762 $ac_vpsub
9763 $extrasub
9764 s%@SHELL@%$SHELL%g
9765 s%@CFLAGS@%$CFLAGS%g
9766 s%@CPPFLAGS@%$CPPFLAGS%g
9767 s%@CXXFLAGS@%$CXXFLAGS%g
9768 s%@FFLAGS@%$FFLAGS%g
9769 s%@DEFS@%$DEFS%g
9770 s%@LDFLAGS@%$LDFLAGS%g
9771 s%@LIBS@%$LIBS%g
9772 s%@exec_prefix@%$exec_prefix%g
9773 s%@prefix@%$prefix%g
9774 s%@program_transform_name@%$program_transform_name%g
9775 s%@bindir@%$bindir%g
9776 s%@sbindir@%$sbindir%g
9777 s%@libexecdir@%$libexecdir%g
9778 s%@datadir@%$datadir%g
9779 s%@sysconfdir@%$sysconfdir%g
9780 s%@sharedstatedir@%$sharedstatedir%g
9781 s%@localstatedir@%$localstatedir%g
9782 s%@libdir@%$libdir%g
9783 s%@includedir@%$includedir%g
9784 s%@oldincludedir@%$oldincludedir%g
9785 s%@infodir@%$infodir%g
9786 s%@mandir@%$mandir%g
9787 s%@host@%$host%g
9788 s%@host_alias@%$host_alias%g
9789 s%@host_cpu@%$host_cpu%g
9790 s%@host_vendor@%$host_vendor%g
9791 s%@host_os@%$host_os%g
9792 s%@target@%$target%g
9793 s%@target_alias@%$target_alias%g
9794 s%@target_cpu@%$target_cpu%g
9795 s%@target_vendor@%$target_vendor%g
9796 s%@target_os@%$target_os%g
9797 s%@build@%$build%g
9798 s%@build_alias@%$build_alias%g
9799 s%@build_cpu@%$build_cpu%g
9800 s%@build_vendor@%$build_vendor%g
9801 s%@build_os@%$build_os%g
9802 s%@CC@%$CC%g
9803 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9804 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9805 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9806 s%@SET_MAKE@%$SET_MAKE%g
9807 s%@AWK@%$AWK%g
9808 s%@LEX@%$LEX%g
9809 s%@LEXLIB@%$LEXLIB%g
9810 s%@LN@%$LN%g
9811 s%@LN_S@%$LN_S%g
9812 s%@RANLIB@%$RANLIB%g
9813 s%@YACC@%$YACC%g
9814 s%@INSTALL@%$INSTALL%g
9815 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9816 s%@INSTALL_DATA@%$INSTALL_DATA%g
9817 s%@CPP@%$CPP%g
9818 s%@gnat@%$gnat%g
9819 s%@MAKEINFO@%$MAKEINFO%g
9820 s%@BUILD_INFO@%$BUILD_INFO%g
9821 s%@INSTALL_INFO@%$INSTALL_INFO%g
9822 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9823 s%@vfprintf@%$vfprintf%g
9824 s%@doprint@%$doprint%g
9825 s%@manext@%$manext%g
9826 s%@objext@%$objext%g
9827 s%@PACKAGE@%$PACKAGE%g
9828 s%@VERSION@%$VERSION%g
9829 s%@ALLOCA@%$ALLOCA%g
9830 s%@USE_NLS@%$USE_NLS%g
9831 s%@MSGFMT@%$MSGFMT%g
9832 s%@GMSGFMT@%$GMSGFMT%g
9833 s%@XGETTEXT@%$XGETTEXT%g
9834 s%@GENCAT@%$GENCAT%g
9835 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9836 s%@CATALOGS@%$CATALOGS%g
9837 s%@CATOBJEXT@%$CATOBJEXT%g
9838 s%@DATADIRNAME@%$DATADIRNAME%g
9839 s%@GMOFILES@%$GMOFILES%g
9840 s%@INSTOBJEXT@%$INSTOBJEXT%g
9841 s%@INTLDEPS@%$INTLDEPS%g
9842 s%@INTLLIBS@%$INTLLIBS%g
9843 s%@INTLOBJS@%$INTLOBJS%g
9844 s%@POFILES@%$POFILES%g
9845 s%@POSUB@%$POSUB%g
9846 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9847 s%@GT_NO@%$GT_NO%g
9848 s%@GT_YES@%$GT_YES%g
9849 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9850 s%@l@%$l%g
9851 s%@inhibit_libc@%$inhibit_libc%g
9852 s%@gthread_flags@%$gthread_flags%g
9853 s%@GGC@%$GGC%g
9854 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9855 s%@MAINT@%$MAINT%g
9856 s%@build_canonical@%$build_canonical%g
9857 s%@host_canonical@%$host_canonical%g
9858 s%@target_subdir@%$target_subdir%g
9859 s%@gcc_tooldir@%$gcc_tooldir%g
9860 s%@dollar@%$dollar%g
9861 s%@objdir@%$objdir%g
9862 s%@subdirs@%$subdirs%g
9863 s%@all_boot_languages@%$all_boot_languages%g
9864 s%@all_compilers@%$all_compilers%g
9865 s%@all_diff_excludes@%$all_diff_excludes%g
9866 s%@all_headers@%$all_headers%g
9867 s%@all_lang_makefiles@%$all_lang_makefiles%g
9868 s%@all_languages@%$all_languages%g
9869 s%@all_lib2funcs@%$all_lib2funcs%g
9870 s%@all_stagestuff@%$all_stagestuff%g
9871 s%@build_exeext@%$build_exeext%g
9872 s%@build_install_headers_dir@%$build_install_headers_dir%g
9873 s%@build_xm_file_list@%$build_xm_file_list%g
9874 s%@cc_set_by_configure@%$cc_set_by_configure%g
9875 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9876 s%@cpp_install_dir@%$cpp_install_dir%g
9877 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9878 s%@dep_tmake_file@%$dep_tmake_file%g
9879 s%@extra_c_flags@%$extra_c_flags%g
9880 s%@extra_c_objs@%$extra_c_objs%g
9881 s%@extra_cpp_objs@%$extra_cpp_objs%g
9882 s%@extra_cxx_objs@%$extra_cxx_objs%g
9883 s%@extra_headers_list@%$extra_headers_list%g
9884 s%@extra_objs@%$extra_objs%g
9885 s%@extra_parts@%$extra_parts%g
9886 s%@extra_passes@%$extra_passes%g
9887 s%@extra_programs@%$extra_programs%g
9888 s%@float_h_file@%$float_h_file%g
9889 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9890 s%@gcc_version@%$gcc_version%g
9891 s%@gcc_version_trigger@%$gcc_version_trigger%g
9892 s%@host_exeext@%$host_exeext%g
9893 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9894 s%@host_xm_file_list@%$host_xm_file_list%g
9895 s%@install@%$install%g
9896 s%@lang_options_files@%$lang_options_files%g
9897 s%@lang_specs_files@%$lang_specs_files%g
9898 s%@lang_tree_files@%$lang_tree_files%g
9899 s%@local_prefix@%$local_prefix%g
9900 s%@maybe_use_collect2@%$maybe_use_collect2%g
9901 s%@md_file@%$md_file%g
9902 s%@objc_boehm_gc@%$objc_boehm_gc%g
9903 s%@out_file@%$out_file%g
9904 s%@out_object_file@%$out_object_file%g
9905 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9906 s%@symbolic_link@%$symbolic_link%g
9907 s%@thread_file@%$thread_file%g
9908 s%@tm_file_list@%$tm_file_list%g
9909 s%@will_use_collect2@%$will_use_collect2%g
9910 /@target_overrides@/r $target_overrides
9911 s%@target_overrides@%%g
9912 /@host_overrides@/r $host_overrides
9913 s%@host_overrides@%%g
9914 s%@cross_defines@%$cross_defines%g
9915 /@cross_overrides@/r $cross_overrides
9916 s%@cross_overrides@%%g
9917 /@build_overrides@/r $build_overrides
9918 s%@build_overrides@%%g
9919 /@language_fragments@/r $language_fragments
9920 s%@language_fragments@%%g
9921 /@language_hooks@/r $language_hooks
9922 s%@language_hooks@%%g
9924 CEOF
9927 cat >> $CONFIG_STATUS <<\EOF
9929 # Split the substitutions into bite-sized pieces for seds with
9930 # small command number limits, like on Digital OSF/1 and HP-UX.
9931 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9932 ac_file=1 # Number of current file.
9933 ac_beg=1 # First line for current file.
9934 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9935 ac_more_lines=:
9936 ac_sed_cmds=""
9937 while $ac_more_lines; do
9938 if test $ac_beg -gt 1; then
9939 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9940 else
9941 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9943 if test ! -s conftest.s$ac_file; then
9944 ac_more_lines=false
9945 rm -f conftest.s$ac_file
9946 else
9947 if test -z "$ac_sed_cmds"; then
9948 ac_sed_cmds="sed -f conftest.s$ac_file"
9949 else
9950 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9952 ac_file=`expr $ac_file + 1`
9953 ac_beg=$ac_end
9954 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9956 done
9957 if test -z "$ac_sed_cmds"; then
9958 ac_sed_cmds=cat
9962 cat >> $CONFIG_STATUS <<EOF
9964 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9966 cat >> $CONFIG_STATUS <<\EOF
9967 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9969 case "$ac_file" in
9970 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9971 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9972 *) ac_file_in="${ac_file}.in" ;;
9973 esac
9975 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9977 # Remove last slash and all that follows it. Not all systems have dirname.
9978 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9979 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9980 # The file is in a subdirectory.
9981 test ! -d "$ac_dir" && mkdir "$ac_dir"
9982 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9983 # A "../" for each directory in $ac_dir_suffix.
9984 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9985 else
9986 ac_dir_suffix= ac_dots=
9989 case "$ac_given_srcdir" in
9990 .) srcdir=.
9991 if test -z "$ac_dots"; then top_srcdir=.
9992 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9993 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9994 *) # Relative path.
9995 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9996 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9997 esac
10000 echo creating "$ac_file"
10001 rm -f "$ac_file"
10002 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10003 case "$ac_file" in
10004 *Makefile*) ac_comsub="1i\\
10005 # $configure_input" ;;
10006 *) ac_comsub= ;;
10007 esac
10009 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10010 sed -e "$ac_comsub
10011 s%@configure_input@%$configure_input%g
10012 s%@srcdir@%$srcdir%g
10013 s%@top_srcdir@%$top_srcdir%g
10014 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10015 fi; done
10016 rm -f conftest.s*
10018 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10019 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10021 # ac_d sets the value in "#define NAME VALUE" lines.
10022 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10023 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10024 ac_dC='\3'
10025 ac_dD='%g'
10026 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10027 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10028 ac_uB='\([ ]\)%\1#\2define\3'
10029 ac_uC=' '
10030 ac_uD='\4%g'
10031 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10032 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10033 ac_eB='$%\1#\2define\3'
10034 ac_eC=' '
10035 ac_eD='%g'
10037 if test "${CONFIG_HEADERS+set}" != set; then
10039 cat >> $CONFIG_STATUS <<EOF
10040 CONFIG_HEADERS="auto-host.h:config.in"
10042 cat >> $CONFIG_STATUS <<\EOF
10044 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10045 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10046 case "$ac_file" in
10047 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10048 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10049 *) ac_file_in="${ac_file}.in" ;;
10050 esac
10052 echo creating $ac_file
10054 rm -f conftest.frag conftest.in conftest.out
10055 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10056 cat $ac_file_inputs > conftest.in
10060 # Transform confdefs.h into a sed script conftest.vals that substitutes
10061 # the proper values into config.h.in to produce config.h. And first:
10062 # Protect against being on the right side of a sed subst in config.status.
10063 # Protect against being in an unquoted here document in config.status.
10064 rm -f conftest.vals
10065 cat > conftest.hdr <<\EOF
10066 s/[\\&%]/\\&/g
10067 s%[\\$`]%\\&%g
10068 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10069 s%ac_d%ac_u%gp
10070 s%ac_u%ac_e%gp
10072 sed -n -f conftest.hdr confdefs.h > conftest.vals
10073 rm -f conftest.hdr
10075 # This sed command replaces #undef with comments. This is necessary, for
10076 # example, in the case of _POSIX_SOURCE, which is predefined and required
10077 # on some systems where configure will not decide to define it.
10078 cat >> conftest.vals <<\EOF
10079 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10082 # Break up conftest.vals because some shells have a limit on
10083 # the size of here documents, and old seds have small limits too.
10085 rm -f conftest.tail
10086 while :
10088 ac_lines=`grep -c . conftest.vals`
10089 # grep -c gives empty output for an empty file on some AIX systems.
10090 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10091 # Write a limited-size here document to conftest.frag.
10092 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10093 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10094 echo 'CEOF
10095 sed -f conftest.frag conftest.in > conftest.out
10096 rm -f conftest.in
10097 mv conftest.out conftest.in
10098 ' >> $CONFIG_STATUS
10099 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10100 rm -f conftest.vals
10101 mv conftest.tail conftest.vals
10102 done
10103 rm -f conftest.vals
10105 cat >> $CONFIG_STATUS <<\EOF
10106 rm -f conftest.frag conftest.h
10107 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10108 cat conftest.in >> conftest.h
10109 rm -f conftest.in
10110 if cmp -s $ac_file conftest.h 2>/dev/null; then
10111 echo "$ac_file is unchanged"
10112 rm -f conftest.h
10113 else
10114 # Remove last slash and all that follows it. Not all systems have dirname.
10115 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10116 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10117 # The file is in a subdirectory.
10118 test ! -d "$ac_dir" && mkdir "$ac_dir"
10120 rm -f $ac_file
10121 mv conftest.h $ac_file
10123 fi; done
10127 cat >> $CONFIG_STATUS <<EOF
10128 ac_sources="$nls_cv_header_libgt"
10129 ac_dests="$nls_cv_header_intl"
10132 cat >> $CONFIG_STATUS <<\EOF
10133 srcdir=$ac_given_srcdir
10134 while test -n "$ac_sources"; do
10135 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10136 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10138 echo "linking $srcdir/$ac_source to $ac_dest"
10140 if test ! -r $srcdir/$ac_source; then
10141 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10143 rm -f $ac_dest
10145 # Make relative symlinks.
10146 # Remove last slash and all that follows it. Not all systems have dirname.
10147 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
10148 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10149 # The dest file is in a subdirectory.
10150 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10151 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
10152 # A "../" for each directory in $ac_dest_dir_suffix.
10153 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
10154 else
10155 ac_dest_dir_suffix= ac_dots=
10158 case "$srcdir" in
10159 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10160 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10161 esac
10163 # Make a symlink if possible; otherwise try a hard link.
10164 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10165 ln $srcdir/$ac_source $ac_dest; then :
10166 else
10167 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10169 done
10171 cat >> $CONFIG_STATUS <<EOF
10174 host='${host}'
10175 build='${build}'
10176 target='${target}'
10177 target_alias='${target_alias}'
10178 srcdir='${srcdir}'
10179 subdirs='${subdirs}'
10180 oldstyle_subdirs='${oldstyle_subdirs}'
10181 symbolic_link='${symbolic_link}'
10182 program_transform_set='${program_transform_set}'
10183 program_transform_name='${program_transform_name}'
10184 dep_host_xmake_file='${dep_host_xmake_file}'
10185 host_xmake_file='${host_xmake_file}'
10186 dep_tmake_file='${dep_tmake_file}'
10187 tmake_file='${tmake_file}'
10188 thread_file='${thread_file}'
10189 gcc_version='${gcc_version}'
10190 gcc_version_trigger='${gcc_version_trigger}'
10191 local_prefix='${local_prefix}'
10192 build_install_headers_dir='${build_install_headers_dir}'
10193 build_exeext='${build_exeext}'
10194 host_exeext='${host_exeext}'
10195 out_file='${out_file}'
10196 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10197 SET_MAKE='${SET_MAKE}'
10198 target_list='${target_list}'
10199 target_overrides='${target_overrides}'
10200 host_overrides='${host_overrides}'
10201 cross_defines='${cross_defines}'
10202 cross_overrides='${cross_overrides}'
10203 build_overrides='${build_overrides}'
10204 cpp_install_dir='${cpp_install_dir}'
10207 cat >> $CONFIG_STATUS <<\EOF
10208 case "$CONFIG_FILES" in *po/Makefile.in*)
10209 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10210 esac
10212 . $srcdir/configure.lang
10213 case x$CONFIG_HEADERS in
10214 xauto-host.h:config.in)
10215 echo > cstamp-h ;;
10216 esac
10217 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10218 # bootstrapping and the installation procedure can still use
10219 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10220 # FLAGS_TO_PASS has been modified to solve the problem there.
10221 # This is virtually a duplicate of what happens in configure.lang; we do
10222 # an extra check to make sure this only happens if ln -s can be used.
10223 if test "$symbolic_link" = "ln -s"; then
10224 for d in .. ${subdirs} ; do
10225 if test $d != ..; then
10226 STARTDIR=`pwd`
10227 cd $d
10228 for t in stage1 stage2 stage3 stage4 include
10230 rm -f $t
10231 $symbolic_link ../$t $t 2>/dev/null
10232 done
10233 cd $STARTDIR
10235 done
10236 else true ; fi
10237 # Avoid having to add intl to our include paths.
10238 if test -f intl/libintl.h; then
10239 echo creating libintl.h
10240 echo '#include "intl/libintl.h"' >libintl.h
10243 exit 0
10245 chmod +x $CONFIG_STATUS
10246 rm -fr confdefs* $ac_clean_files
10247 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1