* arm.c (arm_split_constant): Don't try to force a constant to
[official-gcc.git] / gcc / configure
blob2e68f03696233d0db83e72fbf173432c25601b9c
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 enable expensive run-time checks."
33 ac_help="$ac_help
34 --enable-cpplib use cpplib for the C preprocessor."
35 ac_help="$ac_help
36 --enable-c-cpplib link cpplib directly into C and C++ compilers
37 (implies --enable-cpplib)."
38 ac_help="$ac_help
39 --enable-c-mbchar enable multibyte characters for C and C++."
40 ac_help="$ac_help
41 --enable-haifa use the experimental scheduler.
42 --disable-haifa don't use the experimental scheduler for the
43 targets which normally enable it."
44 ac_help="$ac_help
45 --enable-threads enable thread usage for target GCC.
46 --enable-threads=LIB use LIB thread package for target GCC."
47 ac_help="$ac_help
48 --enable-objc-gc enable the use of Boehm's garbage collector with
49 the GNU Objective-C runtime."
50 ac_help="$ac_help
51 --enable-java-gc=TYPE choose garbage collector [boehm]"
52 ac_help="$ac_help
53 --enable-dwarf2 enable DWARF2 debugging as default."
54 ac_help="$ac_help
55 --enable-nls use Native Language Support (disabled by default)"
56 ac_help="$ac_help
57 --disable-nls do not use Native Language Support"
58 ac_help="$ac_help
59 --with-included-gettext use the GNU gettext library included here"
60 ac_help="$ac_help
61 --with-catgets use catgets functions if available"
63 # Initialize some variables set by options.
64 # The variables have the same names as the options, with
65 # dashes changed to underlines.
66 build=NONE
67 cache_file=./config.cache
68 exec_prefix=NONE
69 host=NONE
70 no_create=
71 nonopt=NONE
72 no_recursion=
73 prefix=NONE
74 program_prefix=NONE
75 program_suffix=NONE
76 program_transform_name=s,x,x,
77 silent=
78 site=
79 srcdir=
80 target=NONE
81 verbose=
82 x_includes=NONE
83 x_libraries=NONE
84 bindir='${exec_prefix}/bin'
85 sbindir='${exec_prefix}/sbin'
86 libexecdir='${exec_prefix}/libexec'
87 datadir='${prefix}/share'
88 sysconfdir='${prefix}/etc'
89 sharedstatedir='${prefix}/com'
90 localstatedir='${prefix}/var'
91 libdir='${exec_prefix}/lib'
92 includedir='${prefix}/include'
93 oldincludedir='/usr/include'
94 infodir='${prefix}/info'
95 mandir='${prefix}/man'
97 # Initialize some other variables.
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
102 ac_max_here_lines=12
104 ac_prev=
105 for ac_option
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
111 ac_prev=
112 continue
115 case "$ac_option" in
116 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 *) ac_optarg= ;;
118 esac
120 # Accept the important Cygnus configure options, so we can diagnose typos.
122 case "$ac_option" in
124 -bindir | --bindir | --bindi | --bind | --bin | --bi)
125 ac_prev=bindir ;;
126 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
127 bindir="$ac_optarg" ;;
129 -build | --build | --buil | --bui | --bu)
130 ac_prev=build ;;
131 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
132 build="$ac_optarg" ;;
134 -cache-file | --cache-file | --cache-fil | --cache-fi \
135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
136 ac_prev=cache_file ;;
137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
139 cache_file="$ac_optarg" ;;
141 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
142 ac_prev=datadir ;;
143 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
144 | --da=*)
145 datadir="$ac_optarg" ;;
147 -disable-* | --disable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* | --enable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 case "$ac_option" in
164 *=*) ;;
165 *) ac_optarg=yes ;;
166 esac
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
171 | --exec | --exe | --ex)
172 ac_prev=exec_prefix ;;
173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
175 | --exec=* | --exe=* | --ex=*)
176 exec_prefix="$ac_optarg" ;;
178 -gas | --gas | --ga | --g)
179 # Obsolete; use --with-gas.
180 with_gas=yes ;;
182 -help | --help | --hel | --he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
185 cat << EOF
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
188 Configuration:
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
196 [$ac_default_prefix]
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 [same as prefix]
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
203 [PREFIX/share]
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 [PREFIX/com]
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
219 cat << EOF
220 Host type:
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
235 exit 0 ;;
237 -host | --host | --hos | --ho)
238 ac_prev=host ;;
239 -host=* | --host=* | --hos=* | --ho=*)
240 host="$ac_optarg" ;;
242 -includedir | --includedir | --includedi | --included | --include \
243 | --includ | --inclu | --incl | --inc)
244 ac_prev=includedir ;;
245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246 | --includ=* | --inclu=* | --incl=* | --inc=*)
247 includedir="$ac_optarg" ;;
249 -infodir | --infodir | --infodi | --infod | --info | --inf)
250 ac_prev=infodir ;;
251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252 infodir="$ac_optarg" ;;
254 -libdir | --libdir | --libdi | --libd)
255 ac_prev=libdir ;;
256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
257 libdir="$ac_optarg" ;;
259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260 | --libexe | --libex | --libe)
261 ac_prev=libexecdir ;;
262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263 | --libexe=* | --libex=* | --libe=*)
264 libexecdir="$ac_optarg" ;;
266 -localstatedir | --localstatedir | --localstatedi | --localstated \
267 | --localstate | --localstat | --localsta | --localst \
268 | --locals | --local | --loca | --loc | --lo)
269 ac_prev=localstatedir ;;
270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273 localstatedir="$ac_optarg" ;;
275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
276 ac_prev=mandir ;;
277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278 mandir="$ac_optarg" ;;
280 -nfp | --nfp | --nf)
281 # Obsolete; use --without-fp.
282 with_fp=no ;;
284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 | --no-cr | --no-c)
286 no_create=yes ;;
288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290 no_recursion=yes ;;
292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294 | --oldin | --oldi | --old | --ol | --o)
295 ac_prev=oldincludedir ;;
296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299 oldincludedir="$ac_optarg" ;;
301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
302 ac_prev=prefix ;;
303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304 prefix="$ac_optarg" ;;
306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
307 | --program-pre | --program-pr | --program-p)
308 ac_prev=program_prefix ;;
309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311 program_prefix="$ac_optarg" ;;
313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
314 | --program-suf | --program-su | --program-s)
315 ac_prev=program_suffix ;;
316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318 program_suffix="$ac_optarg" ;;
320 -program-transform-name | --program-transform-name \
321 | --program-transform-nam | --program-transform-na \
322 | --program-transform-n | --program-transform- \
323 | --program-transform | --program-transfor \
324 | --program-transfo | --program-transf \
325 | --program-trans | --program-tran \
326 | --progr-tra | --program-tr | --program-t)
327 ac_prev=program_transform_name ;;
328 -program-transform-name=* | --program-transform-name=* \
329 | --program-transform-nam=* | --program-transform-na=* \
330 | --program-transform-n=* | --program-transform-=* \
331 | --program-transform=* | --program-transfor=* \
332 | --program-transfo=* | --program-transf=* \
333 | --program-trans=* | --program-tran=* \
334 | --progr-tra=* | --program-tr=* | --program-t=*)
335 program_transform_name="$ac_optarg" ;;
337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338 | -silent | --silent | --silen | --sile | --sil)
339 silent=yes ;;
341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
342 ac_prev=sbindir ;;
343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
344 | --sbi=* | --sb=*)
345 sbindir="$ac_optarg" ;;
347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349 | --sharedst | --shareds | --shared | --share | --shar \
350 | --sha | --sh)
351 ac_prev=sharedstatedir ;;
352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
355 | --sha=* | --sh=*)
356 sharedstatedir="$ac_optarg" ;;
358 -site | --site | --sit)
359 ac_prev=site ;;
360 -site=* | --site=* | --sit=*)
361 site="$ac_optarg" ;;
363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
364 ac_prev=srcdir ;;
365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366 srcdir="$ac_optarg" ;;
368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369 | --syscon | --sysco | --sysc | --sys | --sy)
370 ac_prev=sysconfdir ;;
371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373 sysconfdir="$ac_optarg" ;;
375 -target | --target | --targe | --targ | --tar | --ta | --t)
376 ac_prev=target ;;
377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378 target="$ac_optarg" ;;
380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
381 verbose=yes ;;
383 -version | --version | --versio | --versi | --vers)
384 echo "configure generated by autoconf version 2.13"
385 exit 0 ;;
387 -with-* | --with-*)
388 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 case "$ac_option" in
395 *=*) ;;
396 *) ac_optarg=yes ;;
397 esac
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
409 --x)
410 # Obsolete; use --with-x.
411 with_x=yes ;;
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes="$ac_optarg" ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
437 nonopt="$ac_option"
440 esac
441 done
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
450 # 0 standard input
451 # 1 file creation
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
458 exec 6>/dev/null
459 else
460 exec 6>&1
462 exec 5>./config.log
464 echo "\
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
467 " 1>&5
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
471 ac_configure_args=
472 for ac_arg
474 case "$ac_arg" in
475 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476 | --no-cr | --no-c) ;;
477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
482 esac
483 done
485 # NLS nuisances.
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 echo > confdefs.h
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file=tree.c
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
508 ac_prog=$0
509 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511 srcdir=$ac_confdir
512 if test ! -r $srcdir/$ac_unique_file; then
513 srcdir=..
515 else
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 else
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE; then
530 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
531 else
532 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
538 . "$ac_site_file"
540 done
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
544 . $cache_file
545 else
546 echo "creating cache $cache_file"
547 > $cache_file
550 ac_ext=c
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp='$CPP $CPPFLAGS'
553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
555 cross_compiling=$ac_cv_prog_cc_cross
557 ac_exeext=
558 ac_objext=o
559 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
560 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
561 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
562 ac_n= ac_c='
563 ' ac_t=' '
564 else
565 ac_n=-n ac_c= ac_t=
567 else
568 ac_n= ac_c='\c' ac_t=
574 remove=rm
575 hard_link=ln
576 symbolic_link='ln -s'
577 copy=cp
579 # Check for bogus environment variables.
580 # Test if LIBRARY_PATH contains the notation for the current directory
581 # since this would lead to problems installing/building glibc.
582 # LIBRARY_PATH contains the current directory if one of the following
583 # is true:
584 # - one of the terminals (":" and ";") is the first or last sign
585 # - two terminals occur directly after each other
586 # - the path contains an element with a dot in it
587 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
588 echo "configure:589: checking LIBRARY_PATH variable" >&5
589 case ${LIBRARY_PATH} in
590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
591 library_path_setting="contains current directory"
594 library_path_setting="ok"
596 esac
597 echo "$ac_t""$library_path_setting" 1>&6
598 if test "$library_path_setting" != "ok"; then
599 { echo "configure: error:
600 *** LIBRARY_PATH shouldn't contain the current directory when
601 *** building egcs. Please change the environment variable
602 *** and run configure again." 1>&2; exit 1; }
605 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
606 # since this would lead to problems installing/building glibc.
607 # GCC_EXEC_PREFIX contains the current directory if one of the following
608 # is true:
609 # - one of the terminals (":" and ";") is the first or last sign
610 # - two terminals occur directly after each other
611 # - the path contains an element with a dot in it
612 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
613 echo "configure:614: checking GCC_EXEC_PREFIX variable" >&5
614 case ${GCC_EXEC_PREFIX} in
615 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
616 gcc_exec_prefix_setting="contains current directory"
619 gcc_exec_prefix_setting="ok"
621 esac
622 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
623 if test "$gcc_exec_prefix_setting" != "ok"; then
624 { echo "configure: error:
625 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
626 *** building egcs. Please change the environment variable
627 *** and run configure again." 1>&2; exit 1; }
630 # Check for additional parameters
632 # With GNU ld
633 # Check whether --with-gnu-ld or --without-gnu-ld was given.
634 if test "${with_gnu_ld+set}" = set; then
635 withval="$with_gnu_ld"
636 gnu_ld_flag="$with_gnu_ld"
637 else
638 gnu_ld_flag=no
642 # With pre-defined ld
643 # Check whether --with-ld or --without-ld was given.
644 if test "${with_ld+set}" = set; then
645 withval="$with_ld"
646 DEFAULT_LINKER="$with_ld"
649 if test x"${DEFAULT_LINKER+set}" = x"set"; then
650 if test ! -x "$DEFAULT_LINKER"; then
651 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
652 elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
653 gnu_ld_flag=yes
655 cat >> confdefs.h <<EOF
656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
661 # With GNU as
662 # Check whether --with-gnu-as or --without-gnu-as was given.
663 if test "${with_gnu_as+set}" = set; then
664 withval="$with_gnu_as"
665 gas_flag="$with_gnu_as"
666 else
667 gas_flag=no
671 # Check whether --with-as or --without-as was given.
672 if test "${with_as+set}" = set; then
673 withval="$with_as"
674 DEFAULT_ASSEMBLER="$with_as"
677 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
678 if test ! -x "$DEFAULT_ASSEMBLER"; then
679 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
680 elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
681 gas_flag=yes
683 cat >> confdefs.h <<EOF
684 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
689 # With stabs
690 # Check whether --with-stabs or --without-stabs was given.
691 if test "${with_stabs+set}" = set; then
692 withval="$with_stabs"
693 stabs="$with_stabs"
694 else
695 stabs=no
699 # With ELF
700 # Check whether --with-elf or --without-elf was given.
701 if test "${with_elf+set}" = set; then
702 withval="$with_elf"
703 elf="$with_elf"
704 else
705 elf=no
709 # Specify the local prefix
710 local_prefix=
711 # Check whether --with-local-prefix or --without-local-prefix was given.
712 if test "${with_local_prefix+set}" = set; then
713 withval="$with_local_prefix"
714 case "${withval}" in
715 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
716 no) ;;
717 *) local_prefix=$with_local_prefix ;;
718 esac
722 # Default local prefix if it is empty
723 if test x$local_prefix = x; then
724 local_prefix=/usr/local
727 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
728 # passed in by the toplevel make and thus we'd get different behavior
729 # depending on where we built the sources.
730 gcc_gxx_include_dir=
731 # Specify the g++ header file directory
732 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
733 if test "${with_gxx_include_dir+set}" = set; then
734 withval="$with_gxx_include_dir"
735 case "${withval}" in
736 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
737 no) ;;
738 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
739 esac
743 if test x${gcc_gxx_include_dir} = x; then
744 if test x${enable_version_specific_runtime_libs} = xyes; then
745 gcc_gxx_include_dir='${libsubdir}/include/g++'
746 else
747 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
748 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
752 # Enable expensive internal checks
753 # Check whether --enable-checking or --disable-checking was given.
754 if test "${enable_checking+set}" = set; then
755 enableval="$enable_checking"
756 case "${enableval}" in
757 yes) cat >> confdefs.h <<\EOF
758 #define ENABLE_CHECKING 1
761 no) ;;
762 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
763 esac
767 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
768 cpp_main=cccp
769 # Check whether --enable-cpplib or --disable-cpplib was given.
770 if test "${enable_cpplib+set}" = set; then
771 enableval="$enable_cpplib"
772 if test x$enable_cpplib != xno; then
773 cpp_main=cppmain
778 # Link cpplib into the compiler proper, for C/C++/ObjC.
779 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
780 if test "${enable_c_cpplib+set}" = set; then
781 enableval="$enable_c_cpplib"
782 if test x$enable_c_cpplib != xno; then
783 extra_c_objs="${extra_c_objs} libcpp.a"
784 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
785 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
786 cpp_main=cppmain
791 # Enable Multibyte Characters for C/C++
792 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
793 if test "${enable_c_mbchar+set}" = set; then
794 enableval="$enable_c_mbchar"
795 if test x$enable_c_mbchar != xno; then
796 extra_c_flags=-DMULTIBYTE_CHARS=1
801 # Enable Haifa scheduler.
802 # Check whether --enable-haifa or --disable-haifa was given.
803 if test "${enable_haifa+set}" = set; then
804 enableval="$enable_haifa"
809 # Enable threads
810 # Pass with no value to take the default
811 # Pass with a value to specify a thread package
812 # Check whether --enable-threads or --disable-threads was given.
813 if test "${enable_threads+set}" = set; then
814 enableval="$enable_threads"
815 if test x$enable_threads = xno; then
816 enable_threads=''
818 else
819 enable_threads=''
823 enable_threads_flag=$enable_threads
824 # Check if a valid thread package
825 case x${enable_threads_flag} in
826 x | xno)
827 # No threads
828 target_thread_file='single'
830 xyes)
831 # default
832 target_thread_file=''
834 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
835 xsolaris | xwin32 | xdce | xvxworks)
836 target_thread_file=$enable_threads_flag
839 echo "$enable_threads is an unknown thread package" 1>&2
840 exit 1
842 esac
844 # Check whether --enable-objc-gc or --disable-objc-gc was given.
845 if test "${enable_objc_gc+set}" = set; then
846 enableval="$enable_objc_gc"
847 if [ x$enable_objc_gc = xno ]; then
848 objc_boehm_gc=''
849 else
850 objc_boehm_gc=1
852 else
853 objc_boehm_gc=''
857 # Check whether --enable-java-gc or --disable-java-gc was given.
858 if test "${enable_java_gc+set}" = set; then
859 enableval="$enable_java_gc"
861 JAVAGC=$enableval
862 else
863 JAVAGC=boehm
867 # Check whether --with-dwarf2 or --without-dwarf2 was given.
868 if test "${with_dwarf2+set}" = set; then
869 withval="$with_dwarf2"
870 dwarf2="$with_dwarf2"
871 else
872 dwarf2=no
876 # Determine the host, build, and target systems
877 ac_aux_dir=
878 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
879 if test -f $ac_dir/install-sh; then
880 ac_aux_dir=$ac_dir
881 ac_install_sh="$ac_aux_dir/install-sh -c"
882 break
883 elif test -f $ac_dir/install.sh; then
884 ac_aux_dir=$ac_dir
885 ac_install_sh="$ac_aux_dir/install.sh -c"
886 break
888 done
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
897 # Do some error checking and defaulting for the host and target type.
898 # The inputs are:
899 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
901 # The rules are:
902 # 1. You are not allowed to specify --host, --target, and nonopt at the
903 # same time.
904 # 2. Host defaults to nonopt.
905 # 3. If nonopt is not specified, then host defaults to the current host,
906 # as determined by config.guess.
907 # 4. Target and build default to nonopt.
908 # 5. If nonopt is not specified, then target and build default to host.
910 # The aliases save the names the user supplied, while $host etc.
911 # will get canonicalized.
912 case $host---$target---$nonopt in
913 NONE---*---* | *---NONE---* | *---*---NONE) ;;
914 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
915 esac
918 # Make sure we can run config.sub.
919 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
920 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
923 echo $ac_n "checking host system type""... $ac_c" 1>&6
924 echo "configure:925: checking host system type" >&5
926 host_alias=$host
927 case "$host_alias" in
928 NONE)
929 case $nonopt in
930 NONE)
931 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
932 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
933 fi ;;
934 *) host_alias=$nonopt ;;
935 esac ;;
936 esac
938 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
939 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
940 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
941 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
942 echo "$ac_t""$host" 1>&6
944 echo $ac_n "checking target system type""... $ac_c" 1>&6
945 echo "configure:946: checking target system type" >&5
947 target_alias=$target
948 case "$target_alias" in
949 NONE)
950 case $nonopt in
951 NONE) target_alias=$host_alias ;;
952 *) target_alias=$nonopt ;;
953 esac ;;
954 esac
956 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
957 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
958 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
959 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
960 echo "$ac_t""$target" 1>&6
962 echo $ac_n "checking build system type""... $ac_c" 1>&6
963 echo "configure:964: checking build system type" >&5
965 build_alias=$build
966 case "$build_alias" in
967 NONE)
968 case $nonopt in
969 NONE) build_alias=$host_alias ;;
970 *) build_alias=$nonopt ;;
971 esac ;;
972 esac
974 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
975 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
976 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
977 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
978 echo "$ac_t""$build" 1>&6
980 test "$host_alias" != "$target_alias" &&
981 test "$program_prefix$program_suffix$program_transform_name" = \
982 NONENONEs,x,x, &&
983 program_prefix=${target_alias}-
986 # Find the native compiler
987 # Extract the first word of "gcc", so it can be a program name with args.
988 set dummy gcc; ac_word=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993 else
994 if test -n "$CC"; then
995 ac_cv_prog_CC="$CC" # Let the user override the test.
996 else
997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
998 ac_dummy="$PATH"
999 for ac_dir in $ac_dummy; do
1000 test -z "$ac_dir" && ac_dir=.
1001 if test -f $ac_dir/$ac_word; then
1002 ac_cv_prog_CC="gcc"
1003 break
1005 done
1006 IFS="$ac_save_ifs"
1009 CC="$ac_cv_prog_CC"
1010 if test -n "$CC"; then
1011 echo "$ac_t""$CC" 1>&6
1012 else
1013 echo "$ac_t""no" 1>&6
1016 if test -z "$CC"; then
1017 # Extract the first word of "cc", so it can be a program name with args.
1018 set dummy cc; ac_word=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1023 else
1024 if test -n "$CC"; then
1025 ac_cv_prog_CC="$CC" # Let the user override the test.
1026 else
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1028 ac_prog_rejected=no
1029 ac_dummy="$PATH"
1030 for ac_dir in $ac_dummy; do
1031 test -z "$ac_dir" && ac_dir=.
1032 if test -f $ac_dir/$ac_word; then
1033 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1034 ac_prog_rejected=yes
1035 continue
1037 ac_cv_prog_CC="cc"
1038 break
1040 done
1041 IFS="$ac_save_ifs"
1042 if test $ac_prog_rejected = yes; then
1043 # We found a bogon in the path, so make sure we never use it.
1044 set dummy $ac_cv_prog_CC
1045 shift
1046 if test $# -gt 0; then
1047 # We chose a different compiler from the bogus one.
1048 # However, it has the same basename, so the bogon will be chosen
1049 # first if we set CC to just the basename; use the full file name.
1050 shift
1051 set dummy "$ac_dir/$ac_word" "$@"
1052 shift
1053 ac_cv_prog_CC="$@"
1058 CC="$ac_cv_prog_CC"
1059 if test -n "$CC"; then
1060 echo "$ac_t""$CC" 1>&6
1061 else
1062 echo "$ac_t""no" 1>&6
1065 if test -z "$CC"; then
1066 case "`uname -s`" in
1067 *win32* | *WIN32*)
1068 # Extract the first word of "cl", so it can be a program name with args.
1069 set dummy cl; 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_dummy="$PATH"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_CC="cl"
1084 break
1086 done
1087 IFS="$ac_save_ifs"
1090 CC="$ac_cv_prog_CC"
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1093 else
1094 echo "$ac_t""no" 1>&6
1097 esac
1099 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1102 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1105 ac_ext=c
1106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1107 ac_cpp='$CPP $CPPFLAGS'
1108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1110 cross_compiling=$ac_cv_prog_cc_cross
1112 cat > conftest.$ac_ext << EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1117 main(){return(0);}
1119 if { (eval echo configure:1120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1120 ac_cv_prog_cc_works=yes
1121 # If we can't run a trivial program, we are probably using a cross compiler.
1122 if (./conftest; exit) 2>/dev/null; then
1123 ac_cv_prog_cc_cross=no
1124 else
1125 ac_cv_prog_cc_cross=yes
1127 else
1128 echo "configure: failed program was:" >&5
1129 cat conftest.$ac_ext >&5
1130 ac_cv_prog_cc_works=no
1132 rm -fr conftest*
1133 ac_ext=c
1134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1135 ac_cpp='$CPP $CPPFLAGS'
1136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1138 cross_compiling=$ac_cv_prog_cc_cross
1140 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1141 if test $ac_cv_prog_cc_works = no; then
1142 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1144 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1146 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1147 cross_compiling=$ac_cv_prog_cc_cross
1149 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether we are using GNU C" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1153 else
1154 cat > conftest.c <<EOF
1155 #ifdef __GNUC__
1156 yes;
1157 #endif
1159 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1160 ac_cv_prog_gcc=yes
1161 else
1162 ac_cv_prog_gcc=no
1166 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1168 if test $ac_cv_prog_gcc = yes; then
1169 GCC=yes
1170 else
1171 GCC=
1174 ac_test_CFLAGS="${CFLAGS+set}"
1175 ac_save_CFLAGS="$CFLAGS"
1176 CFLAGS=
1177 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1178 echo "configure:1179: checking whether ${CC-cc} accepts -g" >&5
1179 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182 echo 'void f(){}' > conftest.c
1183 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1184 ac_cv_prog_cc_g=yes
1185 else
1186 ac_cv_prog_cc_g=no
1188 rm -f conftest*
1192 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1193 if test "$ac_test_CFLAGS" = set; then
1194 CFLAGS="$ac_save_CFLAGS"
1195 elif test $ac_cv_prog_cc_g = yes; then
1196 if test "$GCC" = yes; then
1197 CFLAGS="-g -O2"
1198 else
1199 CFLAGS="-g"
1201 else
1202 if test "$GCC" = yes; then
1203 CFLAGS="-O2"
1204 else
1205 CFLAGS=
1210 # If the native compiler is GCC, we can enable warnings even in stage1.
1211 # That's useful for people building cross-compilers, or just running a
1212 # quick `make'.
1213 if test "x$GCC" = "xyes"; then
1214 stage1_warn_cflags='$(WARN_CFLAGS)'
1215 else
1216 stage1_warn_cflags=""
1220 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether ${MAKE-make} sets \${MAKE}" >&5
1222 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1223 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1225 else
1226 cat > conftestmake <<\EOF
1227 all:
1228 @echo 'ac_maketemp="${MAKE}"'
1230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1231 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1232 if test -n "$ac_maketemp"; then
1233 eval ac_cv_prog_make_${ac_make}_set=yes
1234 else
1235 eval ac_cv_prog_make_${ac_make}_set=no
1237 rm -f conftestmake
1239 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1241 SET_MAKE=
1242 else
1243 echo "$ac_t""no" 1>&6
1244 SET_MAKE="MAKE=${MAKE-make}"
1248 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether a default assembler was specified" >&5
1250 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1251 if test x"$with_gas" = x"no"; then
1252 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1253 else
1254 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1256 else
1257 echo "$ac_t""no" 1>&6
1260 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether a default linker was specified" >&5
1262 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1263 if test x"$with_gnu_ld" = x"no"; then
1264 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1265 else
1266 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1268 else
1269 echo "$ac_t""no" 1>&6
1272 # Find some useful tools
1273 for ac_prog in mawk gawk nawk awk
1275 # Extract the first word of "$ac_prog", so it can be a program name with args.
1276 set dummy $ac_prog; ac_word=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1281 else
1282 if test -n "$AWK"; then
1283 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1284 else
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1286 ac_dummy="$PATH"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_prog_AWK="$ac_prog"
1291 break
1293 done
1294 IFS="$ac_save_ifs"
1297 AWK="$ac_cv_prog_AWK"
1298 if test -n "$AWK"; then
1299 echo "$ac_t""$AWK" 1>&6
1300 else
1301 echo "$ac_t""no" 1>&6
1304 test -n "$AWK" && break
1305 done
1307 # Extract the first word of "flex", so it can be a program name with args.
1308 set dummy flex; ac_word=$2
1309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1310 echo "configure:1311: checking for $ac_word" >&5
1311 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1313 else
1314 if test -n "$LEX"; then
1315 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1316 else
1317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1318 ac_dummy="$PATH"
1319 for ac_dir in $ac_dummy; do
1320 test -z "$ac_dir" && ac_dir=.
1321 if test -f $ac_dir/$ac_word; then
1322 ac_cv_prog_LEX="flex"
1323 break
1325 done
1326 IFS="$ac_save_ifs"
1327 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1330 LEX="$ac_cv_prog_LEX"
1331 if test -n "$LEX"; then
1332 echo "$ac_t""$LEX" 1>&6
1333 else
1334 echo "$ac_t""no" 1>&6
1337 if test -z "$LEXLIB"
1338 then
1339 case "$LEX" in
1340 flex*) ac_lib=fl ;;
1341 *) ac_lib=l ;;
1342 esac
1343 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1344 echo "configure:1345: checking for yywrap in -l$ac_lib" >&5
1345 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1348 else
1349 ac_save_LIBS="$LIBS"
1350 LIBS="-l$ac_lib $LIBS"
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1354 /* Override any gcc2 internal prototype to avoid an error. */
1355 /* We use char because int might match the return type of a gcc2
1356 builtin and then its argument prototype would still apply. */
1357 char yywrap();
1359 int main() {
1360 yywrap()
1361 ; return 0; }
1363 if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1364 rm -rf conftest*
1365 eval "ac_cv_lib_$ac_lib_var=yes"
1366 else
1367 echo "configure: failed program was:" >&5
1368 cat conftest.$ac_ext >&5
1369 rm -rf conftest*
1370 eval "ac_cv_lib_$ac_lib_var=no"
1372 rm -f conftest*
1373 LIBS="$ac_save_LIBS"
1376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1377 echo "$ac_t""yes" 1>&6
1378 LEXLIB="-l$ac_lib"
1379 else
1380 echo "$ac_t""no" 1>&6
1385 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether ln works" >&5
1387 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1389 else
1390 rm -f conftestdata_t
1391 echo >conftestdata_f
1392 if ln conftestdata_f conftestdata_t 2>/dev/null
1393 then
1394 gcc_cv_prog_LN="ln"
1395 else
1396 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1397 then
1398 gcc_cv_prog_LN="ln -s"
1399 else
1400 gcc_cv_prog_LN=cp
1403 rm -f conftestdata_f conftestdata_t
1406 LN="$gcc_cv_prog_LN"
1407 if test "$gcc_cv_prog_LN" = "ln"; then
1408 echo "$ac_t""yes" 1>&6
1409 else
1410 if test "$gcc_cv_prog_LN" = "ln -s"; then
1411 echo "$ac_t""no, using ln -s" 1>&6
1412 else
1413 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1417 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether ln -s works" >&5
1419 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1421 else
1422 rm -f conftestdata_t
1423 echo >conftestdata_f
1424 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1425 then
1426 gcc_cv_prog_LN_S="ln -s"
1427 else
1428 if ln conftestdata_f conftestdata_t 2>/dev/null
1429 then
1430 gcc_cv_prog_LN_S=ln
1431 else
1432 gcc_cv_prog_LN_S=cp
1435 rm -f conftestdata_f conftestdata_t
1438 LN_S="$gcc_cv_prog_LN_S"
1439 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1440 echo "$ac_t""yes" 1>&6
1441 else
1442 if test "$gcc_cv_prog_LN_S" = "ln"; then
1443 echo "$ac_t""no, using ln" 1>&6
1444 else
1445 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1449 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1450 echo "configure:1451: checking for volatile" >&5
1451 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1453 else
1454 cat > conftest.$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1458 int main() {
1459 volatile int foo;
1460 ; return 0; }
1462 if { (eval echo configure:1463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1463 rm -rf conftest*
1464 gcc_cv_c_volatile=yes
1465 else
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1468 rm -rf conftest*
1469 gcc_cv_c_volatile=no
1471 rm -f conftest*
1474 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1475 if test $gcc_cv_c_volatile = yes ; then
1476 cat >> confdefs.h <<\EOF
1477 #define HAVE_VOLATILE 1
1482 # Extract the first word of "ranlib", so it can be a program name with args.
1483 set dummy ranlib; ac_word=$2
1484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_word" >&5
1486 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1488 else
1489 if test -n "$RANLIB"; then
1490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1491 else
1492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1493 ac_dummy="$PATH"
1494 for ac_dir in $ac_dummy; do
1495 test -z "$ac_dir" && ac_dir=.
1496 if test -f $ac_dir/$ac_word; then
1497 ac_cv_prog_RANLIB="ranlib"
1498 break
1500 done
1501 IFS="$ac_save_ifs"
1502 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1505 RANLIB="$ac_cv_prog_RANLIB"
1506 if test -n "$RANLIB"; then
1507 echo "$ac_t""$RANLIB" 1>&6
1508 else
1509 echo "$ac_t""no" 1>&6
1512 for ac_prog in 'bison -y' byacc
1514 # Extract the first word of "$ac_prog", so it can be a program name with args.
1515 set dummy $ac_prog; ac_word=$2
1516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1517 echo "configure:1518: checking for $ac_word" >&5
1518 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1520 else
1521 if test -n "$YACC"; then
1522 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1523 else
1524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1525 ac_dummy="$PATH"
1526 for ac_dir in $ac_dummy; do
1527 test -z "$ac_dir" && ac_dir=.
1528 if test -f $ac_dir/$ac_word; then
1529 ac_cv_prog_YACC="$ac_prog"
1530 break
1532 done
1533 IFS="$ac_save_ifs"
1536 YACC="$ac_cv_prog_YACC"
1537 if test -n "$YACC"; then
1538 echo "$ac_t""$YACC" 1>&6
1539 else
1540 echo "$ac_t""no" 1>&6
1543 test -n "$YACC" && break
1544 done
1545 test -n "$YACC" || YACC="yacc"
1547 # Find a good install program. We prefer a C program (faster),
1548 # so one script is as good as another. But avoid the broken or
1549 # incompatible versions:
1550 # SysV /etc/install, /usr/sbin/install
1551 # SunOS /usr/etc/install
1552 # IRIX /sbin/install
1553 # AIX /bin/install
1554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556 # ./install, which can be erroneously created by make from ./install.sh.
1557 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1558 echo "configure:1559: checking for a BSD compatible install" >&5
1559 if test -z "$INSTALL"; then
1560 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1564 for ac_dir in $PATH; do
1565 # Account for people who put trailing slashes in PATH elements.
1566 case "$ac_dir/" in
1567 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1569 # OSF1 and SCO ODT 3.0 have their own names for install.
1570 for ac_prog in ginstall scoinst install; do
1571 if test -f $ac_dir/$ac_prog; then
1572 if test $ac_prog = install &&
1573 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1574 # AIX install. It has an incompatible calling convention.
1575 # OSF/1 installbsd also uses dspmsg, but is usable.
1577 else
1578 ac_cv_path_install="$ac_dir/$ac_prog -c"
1579 break 2
1582 done
1584 esac
1585 done
1586 IFS="$ac_save_IFS"
1589 if test "${ac_cv_path_install+set}" = set; then
1590 INSTALL="$ac_cv_path_install"
1591 else
1592 # As a last resort, use the slow shell script. We don't cache a
1593 # path for INSTALL within a source directory, because that will
1594 # break other packages using the cache if that directory is
1595 # removed, or if the path is relative.
1596 INSTALL="$ac_install_sh"
1599 echo "$ac_t""$INSTALL" 1>&6
1601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1602 # It thinks the first close brace ends the variable substitution.
1603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1608 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1609 echo "configure:1610: checking how to run the C preprocessor" >&5
1610 # On Suns, sometimes $CPP names a directory.
1611 if test -n "$CPP" && test -d "$CPP"; then
1612 CPP=
1614 if test -z "$CPP"; then
1615 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1617 else
1618 # This must be in double quotes, not single quotes, because CPP may get
1619 # substituted into the Makefile and "${CC-cc}" will confuse make.
1620 CPP="${CC-cc} -E"
1621 # On the NeXT, cc -E runs the code through the compiler's parser,
1622 # not just through cpp.
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626 #include <assert.h>
1627 Syntax Error
1629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1632 if test -z "$ac_err"; then
1634 else
1635 echo "$ac_err" >&5
1636 echo "configure: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1638 rm -rf conftest*
1639 CPP="${CC-cc} -E -traditional-cpp"
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 #include <assert.h>
1644 Syntax Error
1646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1647 { (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1649 if test -z "$ac_err"; then
1651 else
1652 echo "$ac_err" >&5
1653 echo "configure: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1655 rm -rf conftest*
1656 CPP="${CC-cc} -nologo -E"
1657 cat > conftest.$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 #include <assert.h>
1661 Syntax Error
1663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1664 { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1666 if test -z "$ac_err"; then
1668 else
1669 echo "$ac_err" >&5
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1672 rm -rf conftest*
1673 CPP=/lib/cpp
1675 rm -f conftest*
1677 rm -f conftest*
1679 rm -f conftest*
1680 ac_cv_prog_CPP="$CPP"
1682 CPP="$ac_cv_prog_CPP"
1683 else
1684 ac_cv_prog_CPP="$CPP"
1686 echo "$ac_t""$CPP" 1>&6
1688 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1689 echo "configure:1690: checking for ANSI C header files" >&5
1690 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1692 else
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 #include <stdlib.h>
1697 #include <stdarg.h>
1698 #include <string.h>
1699 #include <float.h>
1701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1702 { (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1704 if test -z "$ac_err"; then
1705 rm -rf conftest*
1706 ac_cv_header_stdc=yes
1707 else
1708 echo "$ac_err" >&5
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 rm -rf conftest*
1712 ac_cv_header_stdc=no
1714 rm -f conftest*
1716 if test $ac_cv_header_stdc = yes; then
1717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1718 cat > conftest.$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1721 #include <string.h>
1723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1724 egrep "memchr" >/dev/null 2>&1; then
1726 else
1727 rm -rf conftest*
1728 ac_cv_header_stdc=no
1730 rm -f conftest*
1734 if test $ac_cv_header_stdc = yes; then
1735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 #include <stdlib.h>
1741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1742 egrep "free" >/dev/null 2>&1; then
1744 else
1745 rm -rf conftest*
1746 ac_cv_header_stdc=no
1748 rm -f conftest*
1752 if test $ac_cv_header_stdc = yes; then
1753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1754 if test "$cross_compiling" = yes; then
1756 else
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1760 #include <ctype.h>
1761 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1762 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1764 int main () { int i; for (i = 0; i < 256; i++)
1765 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1766 exit (0); }
1769 if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1770 then
1772 else
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1775 rm -fr conftest*
1776 ac_cv_header_stdc=no
1778 rm -fr conftest*
1784 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1785 if test $ac_cv_header_stdc = yes; then
1786 cat >> confdefs.h <<\EOF
1787 #define STDC_HEADERS 1
1792 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1793 echo "configure:1794: checking whether time.h and sys/time.h may both be included" >&5
1794 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1800 #include <sys/types.h>
1801 #include <sys/time.h>
1802 #include <time.h>
1803 int main() {
1804 struct tm *tp;
1805 ; return 0; }
1807 if { (eval echo configure:1808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1808 rm -rf conftest*
1809 ac_cv_header_time=yes
1810 else
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1813 rm -rf conftest*
1814 ac_cv_header_time=no
1816 rm -f conftest*
1819 echo "$ac_t""$ac_cv_header_time" 1>&6
1820 if test $ac_cv_header_time = yes; then
1821 cat >> confdefs.h <<\EOF
1822 #define TIME_WITH_SYS_TIME 1
1827 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1828 echo "configure:1829: checking whether string.h and strings.h may both be included" >&5
1829 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1831 else
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 #include <string.h>
1836 #include <strings.h>
1837 int main() {
1839 ; return 0; }
1841 if { (eval echo configure:1842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1842 rm -rf conftest*
1843 gcc_cv_header_string=yes
1844 else
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1847 rm -rf conftest*
1848 gcc_cv_header_string=no
1850 rm -f conftest*
1853 echo "$ac_t""$gcc_cv_header_string" 1>&6
1854 if test $gcc_cv_header_string = yes; then
1855 cat >> confdefs.h <<\EOF
1856 #define STRING_WITH_STRINGS 1
1861 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1862 echo "configure:1863: checking for sys/wait.h that is POSIX.1 compatible" >&5
1863 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 #include <sys/types.h>
1870 #include <sys/wait.h>
1871 #ifndef WEXITSTATUS
1872 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1873 #endif
1874 #ifndef WIFEXITED
1875 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1876 #endif
1877 int main() {
1878 int s;
1879 wait (&s);
1880 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1881 ; return 0; }
1883 if { (eval echo configure:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1884 rm -rf conftest*
1885 ac_cv_header_sys_wait_h=yes
1886 else
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 rm -rf conftest*
1890 ac_cv_header_sys_wait_h=no
1892 rm -f conftest*
1895 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1896 if test $ac_cv_header_sys_wait_h = yes; then
1897 cat >> confdefs.h <<\EOF
1898 #define HAVE_SYS_WAIT_H 1
1903 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h sys/stat.h
1905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_hdr" >&5
1908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1910 else
1911 cat > conftest.$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1914 #include <$ac_hdr>
1916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1917 { (eval echo configure:1918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1919 if test -z "$ac_err"; then
1920 rm -rf conftest*
1921 eval "ac_cv_header_$ac_safe=yes"
1922 else
1923 echo "$ac_err" >&5
1924 echo "configure: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1926 rm -rf conftest*
1927 eval "ac_cv_header_$ac_safe=no"
1929 rm -f conftest*
1931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1934 cat >> confdefs.h <<EOF
1935 #define $ac_tr_hdr 1
1938 else
1939 echo "$ac_t""no" 1>&6
1941 done
1944 # Check for thread headers.
1945 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1946 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1947 echo "configure:1948: checking for thread.h" >&5
1948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1950 else
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 #include <thread.h>
1956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1960 rm -rf conftest*
1961 eval "ac_cv_header_$ac_safe=yes"
1962 else
1963 echo "$ac_err" >&5
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1966 rm -rf conftest*
1967 eval "ac_cv_header_$ac_safe=no"
1969 rm -f conftest*
1971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 have_thread_h=yes
1974 else
1975 echo "$ac_t""no" 1>&6
1976 have_thread_h=
1979 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1980 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1981 echo "configure:1982: checking for pthread.h" >&5
1982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 #include <pthread.h>
1990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1991 { (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1993 if test -z "$ac_err"; then
1994 rm -rf conftest*
1995 eval "ac_cv_header_$ac_safe=yes"
1996 else
1997 echo "$ac_err" >&5
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2000 rm -rf conftest*
2001 eval "ac_cv_header_$ac_safe=no"
2003 rm -f conftest*
2005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2007 have_pthread_h=yes
2008 else
2009 echo "$ac_t""no" 1>&6
2010 have_pthread_h=
2014 # See if GNAT has been installed
2015 # Extract the first word of "gnatbind", so it can be a program name with args.
2016 set dummy gnatbind; ac_word=$2
2017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_word" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2021 else
2022 if test -n "$gnat"; then
2023 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2024 else
2025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2026 ac_dummy="$PATH"
2027 for ac_dir in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir=.
2029 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_gnat="yes"
2031 break
2033 done
2034 IFS="$ac_save_ifs"
2035 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2038 gnat="$ac_cv_prog_gnat"
2039 if test -n "$gnat"; then
2040 echo "$ac_t""$gnat" 1>&6
2041 else
2042 echo "$ac_t""no" 1>&6
2046 # See if the system preprocessor understands the ANSI C preprocessor
2047 # stringification operator.
2048 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2049 echo "configure:2050: checking whether cpp understands the stringify operator" >&5
2050 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2052 else
2053 cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2057 int main() {
2058 #define S(x) #x
2059 char *test = S(foo);
2060 ; return 0; }
2062 if { (eval echo configure:2063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2063 rm -rf conftest*
2064 gcc_cv_c_have_stringify=yes
2065 else
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 rm -rf conftest*
2069 gcc_cv_c_have_stringify=no
2071 rm -f conftest*
2074 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2075 if test $gcc_cv_c_have_stringify = yes; then
2076 cat >> confdefs.h <<\EOF
2077 #define HAVE_CPP_STRINGIFY 1
2082 # Use <inttypes.h> only if it exists,
2083 # doesn't clash with <sys/types.h>, and declares intmax_t.
2084 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2085 echo "configure:2086: checking for inttypes.h" >&5
2086 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2088 else
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 #include <sys/types.h>
2093 #include <inttypes.h>
2094 int main() {
2095 intmax_t i = -1;
2096 ; return 0; }
2098 if { (eval echo configure:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2099 rm -rf conftest*
2100 gcc_cv_header_inttypes_h=yes
2101 else
2102 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2104 rm -rf conftest*
2105 gcc_cv_header_inttypes_h=no
2107 rm -f conftest*
2110 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2111 if test $gcc_cv_header_inttypes_h = yes; then
2112 cat >> confdefs.h <<\EOF
2113 #define HAVE_INTTYPES_H 1
2118 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2119 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2120 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2121 fputs_unlocked
2123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2124 echo "configure:2125: checking for $ac_func" >&5
2125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2127 else
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 /* System header to define __stub macros and hopefully few prototypes,
2132 which can conflict with char $ac_func(); below. */
2133 #include <assert.h>
2134 /* Override any gcc2 internal prototype to avoid an error. */
2135 /* We use char because int might match the return type of a gcc2
2136 builtin and then its argument prototype would still apply. */
2137 char $ac_func();
2139 int main() {
2141 /* The GNU C library defines this for functions which it implements
2142 to always fail with ENOSYS. Some functions are actually named
2143 something starting with __ and the normal name is an alias. */
2144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2145 choke me
2146 #else
2147 $ac_func();
2148 #endif
2150 ; return 0; }
2152 if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2153 rm -rf conftest*
2154 eval "ac_cv_func_$ac_func=yes"
2155 else
2156 echo "configure: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2158 rm -rf conftest*
2159 eval "ac_cv_func_$ac_func=no"
2161 rm -f conftest*
2164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2167 cat >> confdefs.h <<EOF
2168 #define $ac_tr_func 1
2171 else
2172 echo "$ac_t""no" 1>&6
2174 done
2177 # Make sure wchar_t is available
2178 #AC_CHECK_TYPE(wchar_t, unsigned int)
2180 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2181 echo "configure:2182: checking for vprintf" >&5
2182 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char vprintf(); below. */
2190 #include <assert.h>
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2194 char vprintf();
2196 int main() {
2198 /* The GNU C library defines this for functions which it implements
2199 to always fail with ENOSYS. Some functions are actually named
2200 something starting with __ and the normal name is an alias. */
2201 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2202 choke me
2203 #else
2204 vprintf();
2205 #endif
2207 ; return 0; }
2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 rm -rf conftest*
2211 eval "ac_cv_func_vprintf=yes"
2212 else
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2215 rm -rf conftest*
2216 eval "ac_cv_func_vprintf=no"
2218 rm -f conftest*
2221 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2222 echo "$ac_t""yes" 1>&6
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_VPRINTF 1
2227 else
2228 echo "$ac_t""no" 1>&6
2231 if test "$ac_cv_func_vprintf" != yes; then
2232 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2233 echo "configure:2234: checking for _doprnt" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char _doprnt(); below. */
2242 #include <assert.h>
2243 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2246 char _doprnt();
2248 int main() {
2250 /* The GNU C library defines this for functions which it implements
2251 to always fail with ENOSYS. Some functions are actually named
2252 something starting with __ and the normal name is an alias. */
2253 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2254 choke me
2255 #else
2256 _doprnt();
2257 #endif
2259 ; return 0; }
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 rm -rf conftest*
2263 eval "ac_cv_func__doprnt=yes"
2264 else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_func__doprnt=no"
2270 rm -f conftest*
2273 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 cat >> confdefs.h <<\EOF
2276 #define HAVE_DOPRNT 1
2279 else
2280 echo "$ac_t""no" 1>&6
2285 vfprintf=
2286 doprint=
2287 if test $ac_cv_func_vprintf != yes ; then
2288 vfprintf=vfprintf.o
2289 if test $ac_cv_func__doprnt != yes ; then
2290 doprint=doprint.o
2296 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2297 echo "configure:2298: checking whether the printf functions support %p" >&5
2298 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301 if test "$cross_compiling" = yes; then
2302 gcc_cv_func_printf_ptr=no
2303 else
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #include <stdio.h>
2309 main()
2311 char buf[64];
2312 char *p = buf, *q = NULL;
2313 sprintf(buf, "%p", p);
2314 sscanf(buf, "%p", &q);
2315 exit (p != q);
2318 if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2319 then
2320 gcc_cv_func_printf_ptr=yes
2321 else
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 rm -fr conftest*
2325 gcc_cv_func_printf_ptr=no
2327 rm -fr conftest*
2330 rm -f core core.* *.core
2333 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2334 if test $gcc_cv_func_printf_ptr = yes ; then
2335 cat >> confdefs.h <<\EOF
2336 #define HAVE_PRINTF_PTR 1
2342 case "${host}" in
2343 *-*-uwin*)
2344 # Under some versions of uwin, vfork is notoriously buggy and the test
2345 # can hang configure; on other versions, vfork exists just as a stub.
2346 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2347 ac_cv_func_vfork_works=no
2349 esac
2350 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2351 echo "configure:2352: checking for pid_t" >&5
2352 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2354 else
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 #include <sys/types.h>
2359 #if STDC_HEADERS
2360 #include <stdlib.h>
2361 #include <stddef.h>
2362 #endif
2364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2365 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2366 rm -rf conftest*
2367 ac_cv_type_pid_t=yes
2368 else
2369 rm -rf conftest*
2370 ac_cv_type_pid_t=no
2372 rm -f conftest*
2375 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2376 if test $ac_cv_type_pid_t = no; then
2377 cat >> confdefs.h <<\EOF
2378 #define pid_t int
2383 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2384 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2385 echo "configure:2386: checking for vfork.h" >&5
2386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2388 else
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 #include <vfork.h>
2394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2395 { (eval echo configure:2396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2397 if test -z "$ac_err"; then
2398 rm -rf conftest*
2399 eval "ac_cv_header_$ac_safe=yes"
2400 else
2401 echo "$ac_err" >&5
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2404 rm -rf conftest*
2405 eval "ac_cv_header_$ac_safe=no"
2407 rm -f conftest*
2409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 cat >> confdefs.h <<\EOF
2412 #define HAVE_VFORK_H 1
2415 else
2416 echo "$ac_t""no" 1>&6
2419 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2420 echo "configure:2421: checking for working vfork" >&5
2421 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424 if test "$cross_compiling" = yes; then
2425 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2426 echo "configure:2427: checking for vfork" >&5
2427 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429 else
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2433 /* System header to define __stub macros and hopefully few prototypes,
2434 which can conflict with char vfork(); below. */
2435 #include <assert.h>
2436 /* Override any gcc2 internal prototype to avoid an error. */
2437 /* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439 char vfork();
2441 int main() {
2443 /* The GNU C library defines this for functions which it implements
2444 to always fail with ENOSYS. Some functions are actually named
2445 something starting with __ and the normal name is an alias. */
2446 #if defined (__stub_vfork) || defined (__stub___vfork)
2447 choke me
2448 #else
2449 vfork();
2450 #endif
2452 ; return 0; }
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455 rm -rf conftest*
2456 eval "ac_cv_func_vfork=yes"
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 eval "ac_cv_func_vfork=no"
2463 rm -f conftest*
2466 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2467 echo "$ac_t""yes" 1>&6
2469 else
2470 echo "$ac_t""no" 1>&6
2473 ac_cv_func_vfork_works=$ac_cv_func_vfork
2474 else
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 /* Thanks to Paul Eggert for this test. */
2479 #include <stdio.h>
2480 #include <sys/types.h>
2481 #include <sys/stat.h>
2482 #ifdef HAVE_UNISTD_H
2483 #include <unistd.h>
2484 #endif
2485 #ifdef HAVE_VFORK_H
2486 #include <vfork.h>
2487 #endif
2488 /* On some sparc systems, changes by the child to local and incoming
2489 argument registers are propagated back to the parent.
2490 The compiler is told about this with #include <vfork.h>,
2491 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2492 Test for this by using a static variable whose address
2493 is put into a register that is clobbered by the vfork. */
2494 static
2495 #ifdef __cplusplus
2496 sparc_address_test (int arg)
2497 #else
2498 sparc_address_test (arg) int arg;
2499 #endif
2501 static pid_t child;
2502 if (!child) {
2503 child = vfork ();
2504 if (child < 0) {
2505 perror ("vfork");
2506 _exit(2);
2508 if (!child) {
2509 arg = getpid();
2510 write(-1, "", 0);
2511 _exit (arg);
2515 main() {
2516 pid_t parent = getpid ();
2517 pid_t child;
2519 sparc_address_test ();
2521 child = vfork ();
2523 if (child == 0) {
2524 /* Here is another test for sparc vfork register problems.
2525 This test uses lots of local variables, at least
2526 as many local variables as main has allocated so far
2527 including compiler temporaries. 4 locals are enough for
2528 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2529 A buggy compiler should reuse the register of parent
2530 for one of the local variables, since it will think that
2531 parent can't possibly be used any more in this routine.
2532 Assigning to the local variable will thus munge parent
2533 in the parent process. */
2534 pid_t
2535 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2536 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2537 /* Convince the compiler that p..p7 are live; otherwise, it might
2538 use the same hardware register for all 8 local variables. */
2539 if (p != p1 || p != p2 || p != p3 || p != p4
2540 || p != p5 || p != p6 || p != p7)
2541 _exit(1);
2543 /* On some systems (e.g. IRIX 3.3),
2544 vfork doesn't separate parent from child file descriptors.
2545 If the child closes a descriptor before it execs or exits,
2546 this munges the parent's descriptor as well.
2547 Test for this by closing stdout in the child. */
2548 _exit(close(fileno(stdout)) != 0);
2549 } else {
2550 int status;
2551 struct stat st;
2553 while (wait(&status) != child)
2555 exit(
2556 /* Was there some problem with vforking? */
2557 child < 0
2559 /* Did the child fail? (This shouldn't happen.) */
2560 || status
2562 /* Did the vfork/compiler bug occur? */
2563 || parent != getpid()
2565 /* Did the file descriptor bug occur? */
2566 || fstat(fileno(stdout), &st) != 0
2571 if { (eval echo configure:2572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2572 then
2573 ac_cv_func_vfork_works=yes
2574 else
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2577 rm -fr conftest*
2578 ac_cv_func_vfork_works=no
2580 rm -fr conftest*
2585 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2586 if test $ac_cv_func_vfork_works = no; then
2587 cat >> confdefs.h <<\EOF
2588 #define vfork fork
2594 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2595 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2596 strsignal
2598 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2599 echo "configure:2600: checking whether $ac_func must be declared" >&5
2600 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2602 else
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2607 #include <stdio.h>
2608 #ifdef STRING_WITH_STRINGS
2609 # include <string.h>
2610 # include <strings.h>
2611 #else
2612 # ifdef HAVE_STRING_H
2613 # include <string.h>
2614 # else
2615 # ifdef HAVE_STRINGS_H
2616 # include <strings.h>
2617 # endif
2618 # endif
2619 #endif
2620 #ifdef HAVE_STDLIB_H
2621 #include <stdlib.h>
2622 #endif
2623 #ifdef HAVE_UNISTD_H
2624 #include <unistd.h>
2625 #endif
2626 #ifndef HAVE_RINDEX
2627 #define rindex strrchr
2628 #endif
2629 #ifndef HAVE_INDEX
2630 #define index strchr
2631 #endif
2633 int main() {
2634 char *(*pfn) = (char *(*)) $ac_func
2635 ; return 0; }
2637 if { (eval echo configure:2638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2638 rm -rf conftest*
2639 eval "gcc_cv_decl_needed_$ac_func=no"
2640 else
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -rf conftest*
2644 eval "gcc_cv_decl_needed_$ac_func=yes"
2646 rm -f conftest*
2649 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2650 echo "$ac_t""yes" 1>&6
2651 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2652 cat >> confdefs.h <<EOF
2653 #define $gcc_tr_decl 1
2656 else
2657 echo "$ac_t""no" 1>&6
2660 done
2663 for ac_func in getrlimit setrlimit
2665 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2666 echo "configure:2667: checking whether $ac_func must be declared" >&5
2667 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2669 else
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2674 #include <stdio.h>
2675 #ifdef STRING_WITH_STRINGS
2676 # include <string.h>
2677 # include <strings.h>
2678 #else
2679 # ifdef HAVE_STRING_H
2680 # include <string.h>
2681 # else
2682 # ifdef HAVE_STRINGS_H
2683 # include <strings.h>
2684 # endif
2685 # endif
2686 #endif
2687 #ifdef HAVE_STDLIB_H
2688 #include <stdlib.h>
2689 #endif
2690 #ifdef HAVE_UNISTD_H
2691 #include <unistd.h>
2692 #endif
2693 #ifndef HAVE_RINDEX
2694 #define rindex strrchr
2695 #endif
2696 #ifndef HAVE_INDEX
2697 #define index strchr
2698 #endif
2699 #include <sys/types.h>
2700 #ifdef HAVE_SYS_RESOURCE_H
2701 #include <sys/resource.h>
2702 #endif
2704 int main() {
2705 char *(*pfn) = (char *(*)) $ac_func
2706 ; return 0; }
2708 if { (eval echo configure:2709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2709 rm -rf conftest*
2710 eval "gcc_cv_decl_needed_$ac_func=no"
2711 else
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 eval "gcc_cv_decl_needed_$ac_func=yes"
2717 rm -f conftest*
2720 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2723 cat >> confdefs.h <<EOF
2724 #define $gcc_tr_decl 1
2727 else
2728 echo "$ac_t""no" 1>&6
2731 done
2734 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2735 echo "configure:2736: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2736 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <sys/types.h>
2743 #include <signal.h>
2744 /* NetBSD declares sys_siglist in unistd.h. */
2745 #ifdef HAVE_UNISTD_H
2746 #include <unistd.h>
2747 #endif
2748 int main() {
2749 char *msg = *(sys_siglist + 1);
2750 ; return 0; }
2752 if { (eval echo configure:2753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2753 rm -rf conftest*
2754 ac_cv_decl_sys_siglist=yes
2755 else
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2758 rm -rf conftest*
2759 ac_cv_decl_sys_siglist=no
2761 rm -f conftest*
2764 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2765 if test $ac_cv_decl_sys_siglist = yes; then
2766 cat >> confdefs.h <<\EOF
2767 #define SYS_SIGLIST_DECLARED 1
2773 # File extensions
2774 manext='.1'
2775 objext='.o'
2779 build_xm_file=
2780 build_xm_defines=
2781 build_install_headers_dir=install-headers-tar
2782 build_exeext=
2783 host_xm_file=
2784 host_xm_defines=
2785 host_xmake_file=
2786 host_truncate_target=
2787 host_exeext=
2789 # It is relative to $prefix.
2790 cpp_install_dir=
2792 # Decode the host machine, then the target machine.
2793 # For the host machine, we save the xm_file variable as host_xm_file;
2794 # then we decode the target machine and forget everything else
2795 # that came from the host machine.
2796 for machine in $build $host $target; do
2798 out_file=
2799 xmake_file=
2800 tmake_file=
2801 extra_headers=
2802 extra_passes=
2803 extra_parts=
2804 extra_programs=
2805 extra_objs=
2806 extra_host_objs=
2807 extra_gcc_objs=
2808 xm_defines=
2809 float_format=
2810 # Set this to force installation and use of collect2.
2811 use_collect2=
2812 # Set this to override the default target model.
2813 target_cpu_default=
2814 # Set this to control how the header file directory is installed.
2815 install_headers_dir=install-headers-tar
2816 # Set this to a non-empty list of args to pass to cpp if the target
2817 # wants its .md file passed through cpp.
2818 md_cppflags=
2819 # Set this if directory names should be truncated to 14 characters.
2820 truncate_target=
2821 # Set this if gdb needs a dir command with `dirname $out_file`
2822 gdb_needs_out_file_path=
2823 # Set this if the build machine requires executables to have a
2824 # file name suffix.
2825 exeext=
2826 # Set this to control which thread package will be used.
2827 thread_file=
2828 # Reinitialize these from the flag values every loop pass, since some
2829 # configure entries modify them.
2830 gas="$gas_flag"
2831 gnu_ld="$gnu_ld_flag"
2832 enable_threads=$enable_threads_flag
2834 # Set default cpu_type, tm_file and xm_file so it can be updated in
2835 # each machine entry.
2836 cpu_type=`echo $machine | sed 's/-.*$//'`
2837 case $machine in
2838 alpha*-*-*)
2839 cpu_type=alpha
2841 arm*-*-*)
2842 cpu_type=arm
2844 c*-convex-*)
2845 cpu_type=convex
2847 i[34567]86-*-*)
2848 cpu_type=i386
2850 hppa*-*-*)
2851 cpu_type=pa
2853 m68000-*-*)
2854 cpu_type=m68k
2856 mips*-*-*)
2857 cpu_type=mips
2859 powerpc*-*-*)
2860 cpu_type=rs6000
2862 pyramid-*-*)
2863 cpu_type=pyr
2865 sparc*-*-*)
2866 cpu_type=sparc
2868 esac
2870 tm_file=${cpu_type}/${cpu_type}.h
2871 xm_file=${cpu_type}/xm-${cpu_type}.h
2873 # Common parts for linux-gnu and openbsd systems
2874 case $machine in
2875 *-*-linux-gnu*)
2876 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2878 *-*-openbsd*)
2879 tm_file=${cpu_type}/openbsd.h
2880 # On OpenBSD systems, the headers are okay
2881 fixincludes=Makefile.in
2882 tmake_file="t-libc-ok t-openbsd"
2883 # avoid surprises, always provide an xm-openbsd file
2884 xm_file=${cpu_type}/xm-openbsd.h
2885 if test x$enable_threads = xyes; then
2886 thread_file='posix'
2887 tmake_file="${tmake_file} t-openbsd-thread"
2890 esac
2892 case $machine in
2893 # Support site-specific machine types.
2894 *local*)
2895 cpu_type=`echo $machine | sed -e 's/-.*//'`
2896 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2897 xm_file=${cpu_type}/xm-$rest.h
2898 tm_file=${cpu_type}/$rest.h
2899 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2900 then xmake_file=${cpu_type}/x-$rest; \
2901 else true; \
2903 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2904 then tmake_file=${cpu_type}/t-$rest; \
2905 else true; \
2908 1750a-*-*)
2910 a29k-*-bsd* | a29k-*-sym1*)
2911 tm_file="${tm_file} a29k/unix.h"
2912 xm_defines=USG
2913 xmake_file=a29k/x-unix
2914 use_collect2=yes
2916 a29k-*-udi | a29k-*-coff)
2917 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2918 tmake_file=a29k/t-a29kbare
2920 a29k-wrs-vxworks*)
2921 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2922 tmake_file=a29k/t-vx29k
2923 extra_parts="crtbegin.o crtend.o"
2924 thread_file='vxworks'
2926 a29k-*-*) # Default a29k environment.
2927 use_collect2=yes
2929 alpha*-*-linux-gnuecoff*)
2930 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2931 target_cpu_default="MASK_GAS"
2932 gas=no
2933 xmake_file=none
2934 gas=yes gnu_ld=yes
2936 alpha*-*-linux-gnulibc1*)
2937 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2938 target_cpu_default="MASK_GAS"
2939 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2940 extra_parts="crtbegin.o crtend.o"
2941 xmake_file=none
2942 gas=yes gnu_ld=yes
2943 if test x$enable_threads = xyes; then
2944 thread_file='posix'
2947 alpha*-*-linux-gnu*)
2948 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2949 target_cpu_default="MASK_GAS"
2950 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2951 extra_parts="crtbegin.o crtend.o"
2952 xmake_file=none
2953 gas=yes gnu_ld=yes
2954 if test x$enable_threads = xyes; then
2955 thread_file='posix'
2958 alpha*-*-netbsd*)
2959 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
2960 target_cpu_default="MASK_GAS"
2961 tmake_file="alpha/t-crtbe"
2962 extra_parts="crtbegin.o crtend.o"
2963 xmake_file=none
2964 gas=yes gnu_ld=yes
2967 alpha*-*-openbsd*)
2968 # default x-alpha is only appropriate for dec-osf.
2969 target_cpu_default="MASK_GAS"
2970 xmake_file=none
2973 alpha*-dec-osf*)
2974 if test x$stabs = xyes
2975 then
2976 tm_file="${tm_file} dbx.h"
2978 if test x$gas != xyes
2979 then
2980 extra_passes="mips-tfile mips-tdump"
2982 use_collect2=yes
2983 case $machine in
2984 *-*-osf1*)
2985 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2987 *-*-osf[23]*)
2988 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
2990 *-*-osf4*)
2991 tm_file="${tm_file} alpha/osf.h"
2992 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2993 # a broken tar, so we use cpio instead.
2994 install_headers_dir=install-headers-cpio
2996 esac
2997 case $machine in
2998 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2999 target_cpu_default=MASK_SUPPORT_ARCH
3001 esac
3003 alpha*-*-vxworks*)
3004 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3005 if x$gas != xyes
3006 then
3007 extra_passes="mips-tfile mips-tdump"
3009 use_collect2=yes
3011 alpha*-*-winnt*)
3012 tm_file="${tm_file} alpha/win-nt.h"
3013 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3014 tmake_file=t-libc-ok
3015 xmake_file=winnt/x-winnt
3016 extra_host_objs=oldnames.o
3017 extra_gcc_objs="spawnv.o oldnames.o"
3018 if test x$gnu_ld != xyes
3019 then
3020 extra_programs=ld.exe
3022 if test x$enable_threads = xyes; then
3023 thread_file='win32'
3026 alpha*-dec-vms*)
3027 tm_file=alpha/vms.h
3028 xm_file="${xm_file} alpha/xm-vms.h"
3029 tmake_file=alpha/t-vms
3031 arc-*-elf*)
3032 extra_parts="crtinit.o crtfini.o"
3034 arm-*-coff* | armel-*-coff*)
3035 tm_file=arm/coff.h
3036 tmake_file=arm/t-bare
3038 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3039 tm_file=arm/riscix1-1.h
3040 use_collect2=yes
3042 arm-*-riscix*) # Acorn RISC machine
3043 if test x$gas = xyes
3044 then
3045 tm_file=arm/rix-gas.h
3046 else
3047 tm_file=arm/riscix.h
3049 xmake_file=arm/x-riscix
3050 tmake_file=arm/t-riscix
3051 use_collect2=yes
3053 arm-semi-aout | armel-semi-aout)
3054 tm_file=arm/semi.h
3055 tmake_file=arm/t-semi
3057 arm-semi-aof | armel-semi-aof)
3058 tm_file=arm/semiaof.h
3059 tmake_file=arm/t-semiaof
3061 arm*-*-netbsd*)
3062 tm_file=arm/netbsd.h
3063 xm_file="arm/xm-netbsd.h ${xm_file}"
3064 tmake_file="t-netbsd arm/t-netbsd"
3066 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3067 cpu_type=arm
3068 xmake_file=x-linux
3069 tm_file=arm/linux-aout.h
3070 tmake_file=arm/t-linux
3071 gnu_ld=yes
3073 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3074 xm_file=arm/xm-linux.h
3075 xmake_file=x-linux
3076 case $machine in
3077 armv2*-*-*)
3078 tm_file=arm/linux-elf26.h
3081 tm_file=arm/linux-elf.h
3083 esac
3084 tmake_file="t-linux arm/t-linux"
3085 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3086 gnu_ld=yes
3088 arm*-*-aout)
3089 tm_file=arm/aout.h
3090 tmake_file=arm/t-bare
3092 arm*-*-ecos-elf)
3093 tm_file=arm/ecos-elf.h
3094 tmake_file=arm/t-elf
3096 arm*-*-elf)
3097 tm_file=arm/unknown-elf.h
3098 tmake_file=arm/t-arm-elf
3100 arm*-*-oabi)
3101 tm_file=arm/unknown-elf-oabi.h
3102 tmake_file=arm/t-arm-elf
3104 c1-convex-*) # Convex C1
3105 target_cpu_default=1
3106 use_collect2=yes
3108 c2-convex-*) # Convex C2
3109 target_cpu_default=2
3110 use_collect2=yes
3112 c32-convex-*)
3113 target_cpu_default=4
3114 use_collect2=yes
3116 c34-convex-*)
3117 target_cpu_default=8
3118 use_collect2=yes
3120 c38-convex-*)
3121 target_cpu_default=16
3122 use_collect2=yes
3124 c4x-*)
3125 cpu_type=c4x
3126 tmake_file=c4x/t-c4x
3128 clipper-intergraph-clix*)
3129 tm_file="${tm_file} svr3.h clipper/clix.h"
3130 xm_file=clipper/xm-clix.h
3131 xmake_file=clipper/x-clix
3132 extra_headers=va-clipper.h
3133 extra_parts="crtbegin.o crtend.o"
3134 install_headers_dir=install-headers-cpio
3136 dsp16xx-*)
3138 elxsi-elxsi-*)
3139 use_collect2=yes
3141 # This hasn't been upgraded to GCC 2.
3142 # fx80-alliant-*) # Alliant FX/80
3143 # ;;
3144 h8300-*-*)
3145 float_format=i32
3147 hppa*-*-openbsd*)
3148 target_cpu_default="MASK_SNAKE"
3149 tmake_file=pa/t-openbsd
3151 hppa1.1-*-pro*)
3152 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3153 xm_file=pa/xm-papro.h
3154 tmake_file=pa/t-pro
3156 hppa1.1-*-osf*)
3157 target_cpu_default="MASK_SNAKE"
3158 tm_file="${tm_file} pa/pa-osf.h"
3159 use_collect2=yes
3161 hppa1.1-*-rtems*)
3162 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3163 xm_file=pa/xm-papro.h
3164 tmake_file=pa/t-pro
3166 hppa1.0-*-osf*)
3167 tm_file="${tm_file} pa/pa-osf.h"
3168 use_collect2=yes
3170 hppa1.1-*-bsd*)
3171 target_cpu_default="MASK_SNAKE"
3172 use_collect2=yes
3174 hppa1.0-*-bsd*)
3175 use_collect2=yes
3177 hppa1.0-*-hpux7*)
3178 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3179 xm_file=pa/xm-pahpux.h
3180 xmake_file=pa/x-pa-hpux
3181 if test x$gas = xyes
3182 then
3183 tm_file="${tm_file} pa/gas.h"
3185 install_headers_dir=install-headers-cpio
3186 use_collect2=yes
3188 hppa1.0-*-hpux8.0[0-2]*)
3189 tm_file="${tm_file} pa/pa-hpux.h"
3190 xm_file=pa/xm-pahpux.h
3191 xmake_file=pa/x-pa-hpux
3192 if test x$gas = xyes
3193 then
3194 tm_file="${tm_file} pa/pa-gas.h"
3195 else
3196 tm_file="pa/pa-oldas.h ${tm_file}"
3198 install_headers_dir=install-headers-cpio
3199 use_collect2=yes
3201 hppa1.1-*-hpux8.0[0-2]*)
3202 target_cpu_default="MASK_SNAKE"
3203 tm_file="${tm_file} pa/pa-hpux.h"
3204 xm_file=pa/xm-pahpux.h
3205 xmake_file=pa/x-pa-hpux
3206 if test x$gas = xyes
3207 then
3208 tm_file="${tm_file} pa/pa-gas.h"
3209 else
3210 tm_file="pa/pa-oldas.h ${tm_file}"
3212 install_headers_dir=install-headers-cpio
3213 use_collect2=yes
3215 hppa1.1-*-hpux8*)
3216 target_cpu_default="MASK_SNAKE"
3217 tm_file="${tm_file} pa/pa-hpux.h"
3218 xm_file=pa/xm-pahpux.h
3219 xmake_file=pa/x-pa-hpux
3220 if test x$gas = xyes
3221 then
3222 tm_file="${tm_file} pa/pa-gas.h"
3224 install_headers_dir=install-headers-cpio
3225 use_collect2=yes
3227 hppa1.0-*-hpux8*)
3228 tm_file="${tm_file} pa/pa-hpux.h"
3229 xm_file=pa/xm-pahpux.h
3230 xmake_file=pa/x-pa-hpux
3231 if test x$gas = xyes
3232 then
3233 tm_file="${tm_file} pa/pa-gas.h"
3235 install_headers_dir=install-headers-cpio
3236 use_collect2=yes
3238 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3239 target_cpu_default="MASK_SNAKE"
3240 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3241 xm_file=pa/xm-pahpux.h
3242 xmake_file=pa/x-pa-hpux
3243 tmake_file=pa/t-pa
3244 if test x$gas = xyes
3245 then
3246 tm_file="${tm_file} pa/pa-gas.h"
3248 if test x$enable_threads = x; then
3249 enable_threads=$have_pthread_h
3251 if test x$enable_threads = xyes; then
3252 thread_file='dce'
3253 tmake_file="${tmake_file} pa/t-dce-thr"
3255 install_headers_dir=install-headers-cpio
3256 use_collect2=yes
3258 hppa1.0-*-hpux10*)
3259 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3260 xm_file=pa/xm-pahpux.h
3261 xmake_file=pa/x-pa-hpux
3262 tmake_file=pa/t-pa
3263 if test x$gas = xyes
3264 then
3265 tm_file="${tm_file} pa/pa-gas.h"
3267 if test x$enable_threads = x; then
3268 enable_threads=$have_pthread_h
3270 if test x$enable_threads = xyes; then
3271 thread_file='dce'
3272 tmake_file="${tmake_file} pa/t-dce-thr"
3274 install_headers_dir=install-headers-cpio
3275 use_collect2=yes
3277 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3278 target_cpu_default="MASK_SNAKE"
3279 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3280 xm_file=pa/xm-pahpux.h
3281 xmake_file=pa/x-pa-hpux
3282 if test x$gas = xyes
3283 then
3284 tm_file="${tm_file} pa/pa-gas.h"
3286 install_headers_dir=install-headers-cpio
3287 use_collect2=yes
3289 hppa1.0-*-hpux*)
3290 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3291 xm_file=pa/xm-pahpux.h
3292 xmake_file=pa/x-pa-hpux
3293 if test x$gas = xyes
3294 then
3295 tm_file="${tm_file} pa/pa-gas.h"
3297 install_headers_dir=install-headers-cpio
3298 use_collect2=yes
3300 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3301 target_cpu_default="MASK_SNAKE"
3302 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3303 xm_file=pa/xm-pahpux.h
3304 xmake_file=pa/x-pa-hpux
3305 if test x$gas = xyes
3306 then
3307 tm_file="${tm_file} pa/pa-gas.h"
3309 install_headers_dir=install-headers-cpio
3310 use_collect2=yes
3312 hppa1.0-*-hiux*)
3313 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3314 xm_file=pa/xm-pahpux.h
3315 xmake_file=pa/x-pa-hpux
3316 if test x$gas = xyes
3317 then
3318 tm_file="${tm_file} pa/pa-gas.h"
3320 install_headers_dir=install-headers-cpio
3321 use_collect2=yes
3323 hppa*-*-lites*)
3324 target_cpu_default="MASK_SNAKE"
3325 use_collect2=yes
3327 i370-*-mvs*)
3329 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3330 if test x$gas = xyes
3331 then
3332 tm_file=i386/aix386.h
3333 extra_parts="crtbegin.o crtend.o"
3334 tmake_file=i386/t-crtstuff
3335 else
3336 tm_file=i386/aix386ng.h
3337 use_collect2=yes
3339 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3340 xm_defines=USG
3341 xmake_file=i386/x-aix
3343 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3344 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3345 xm_defines="USG POSIX SMALL_ARG_MAX"
3346 xmake_file=i386/x-ncr3000
3347 if test x$stabs = xyes -a x$gas = xyes
3348 then
3349 tm_file=i386/sysv4gdb.h
3350 else
3351 tm_file=i386/sysv4.h
3353 extra_parts="crtbegin.o crtend.o"
3354 tmake_file=i386/t-crtpic
3356 i[34567]86-next-*)
3357 tm_file=i386/next.h
3358 xm_file=i386/xm-next.h
3359 tmake_file=i386/t-next
3360 xmake_file=i386/x-next
3361 extra_objs=nextstep.o
3362 extra_parts="crtbegin.o crtend.o"
3363 if test x$enable_threads = xyes; then
3364 thread_file='mach'
3367 i[34567]86-sequent-bsd*) # 80386 from Sequent
3368 use_collect2=yes
3369 if test x$gas = xyes
3370 then
3371 tm_file=i386/seq-gas.h
3372 else
3373 tm_file=i386/sequent.h
3376 i[34567]86-sequent-ptx1*)
3377 xm_defines="USG SVR3"
3378 xmake_file=i386/x-sysv3
3379 tm_file=i386/seq-sysv3.h
3380 tmake_file=i386/t-crtstuff
3381 extra_parts="crtbegin.o crtend.o"
3382 install_headers_dir=install-headers-cpio
3384 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3385 xm_defines="USG SVR3"
3386 xmake_file=i386/x-sysv3
3387 tm_file=i386/seq2-sysv3.h
3388 tmake_file=i386/t-crtstuff
3389 extra_parts="crtbegin.o crtend.o"
3390 install_headers_dir=install-headers-cpio
3392 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3393 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3394 xm_defines="USG POSIX SMALL_ARG_MAX"
3395 xmake_file=x-svr4
3396 tm_file=i386/ptx4-i.h
3397 tmake_file=t-svr4
3398 extra_parts="crtbegin.o crtend.o"
3399 install_headers_dir=install-headers-cpio
3401 i386-sun-sunos*) # Sun i386 roadrunner
3402 xm_defines=USG
3403 tm_file=i386/sun.h
3404 use_collect2=yes
3406 i[34567]86-wrs-vxworks*)
3407 tm_file=i386/vxi386.h
3408 tmake_file=i386/t-i386bare
3410 i[34567]86-*-aout*)
3411 tm_file=i386/i386-aout.h
3412 tmake_file=i386/t-i386bare
3414 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3415 tm_file=i386/bsd386.h
3416 # tmake_file=t-libc-ok
3418 i[34567]86-*-bsd*)
3419 tm_file=i386/386bsd.h
3420 # tmake_file=t-libc-ok
3421 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3422 # use_collect2=yes
3424 i[34567]86-*-freebsdelf*)
3425 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
3426 # On FreeBSD, the headers are already ok, except for math.h.
3427 fixincludes=fixinc.wrap
3428 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3429 tmake_file=i386/t-freebsd
3430 gas=yes
3431 gnu_ld=yes
3432 stabs=yes
3434 i[34567]86-*-freebsd*)
3435 tm_file=i386/freebsd.h
3436 tmake_file=i386/t-freebsd
3438 i[34567]86-*-netbsd*)
3439 tm_file=i386/netbsd.h
3440 tmake_file=t-netbsd
3442 i[34567]86-*-openbsd*)
3443 # Remove when the math emulator is fixed
3444 target_cpu_default="MASK_NO_FANCY_MATH_387"
3445 # we need collect2 until our bug is fixed...
3446 use_collect2=yes
3448 i[34567]86-*-coff*)
3449 tm_file=i386/i386-coff.h
3450 tmake_file=i386/t-i386bare
3452 i[34567]86-*-isc*) # 80386 running ISC system
3453 xm_file="${xm_file} i386/xm-isc.h"
3454 xm_defines="USG SVR3"
3455 case $machine in
3456 i[34567]86-*-isc[34]*)
3457 xmake_file=i386/x-isc3
3460 xmake_file=i386/x-isc
3462 esac
3463 if test x$gas = xyes -a x$stabs = xyes
3464 then
3465 tm_file=i386/iscdbx.h
3466 tmake_file=i386/t-svr3dbx
3467 extra_parts="svr3.ifile svr3z.ifile"
3468 else
3469 tm_file=i386/isccoff.h
3470 tmake_file=i386/t-crtstuff
3471 extra_parts="crtbegin.o crtend.o"
3473 install_headers_dir=install-headers-cpio
3475 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3476 # pre BFD linkers
3477 xmake_file=x-linux-aout
3478 tmake_file="t-linux-aout i386/t-crtstuff"
3479 tm_file=i386/linux-oldld.h
3480 gnu_ld=yes
3481 float_format=i386
3483 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3484 xmake_file=x-linux-aout
3485 tmake_file="t-linux-aout i386/t-crtstuff"
3486 tm_file=i386/linux-aout.h
3487 gnu_ld=yes
3488 float_format=i386
3490 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3491 # GNU/Linux C library 5
3492 xmake_file=x-linux
3493 tm_file=i386/linux.h
3494 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3495 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3496 gnu_ld=yes
3497 float_format=i386
3498 if test x$enable_threads = xyes; then
3499 thread_file='single'
3502 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3503 # aka GNU/Linux C library 6
3504 xmake_file=x-linux
3505 tm_file=i386/linux.h
3506 tmake_file="t-linux i386/t-crtstuff"
3507 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3508 gnu_ld=yes
3509 float_format=i386
3510 if test x$enable_threads = xyes; then
3511 thread_file='posix'
3514 i[34567]86-*-gnu*)
3515 float_format=i386
3517 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3518 xm_file=i386/xm-go32.h
3519 tm_file=i386/go32.h
3520 tmake_file=i386/t-go32
3522 i[34567]86-pc-msdosdjgpp*)
3523 xm_file=i386/xm-go32.h
3524 tm_file=i386/go32.h
3525 tmake_file=i386/t-go32
3526 xmake_file=i386/x-go32
3527 gnu_ld=yes
3528 gas=yes
3529 exeext=.exe
3530 case $host in
3531 *pc-msdosdjgpp*)
3532 target_alias=djgpp
3534 esac
3536 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3537 tm_file=i386/moss.h
3538 tmake_file=t-libc-ok
3539 gnu_ld=yes
3540 gas=yes
3542 i[34567]86-*-lynxos*)
3543 if test x$gas = xyes
3544 then
3545 tm_file=i386/lynx.h
3546 else
3547 tm_file=i386/lynx-ng.h
3549 xm_file=i386/xm-lynx.h
3550 tmake_file=i386/t-i386bare
3551 xmake_file=x-lynx
3553 i[34567]86-*-mach*)
3554 tm_file=i386/mach.h
3555 # tmake_file=t-libc-ok
3556 use_collect2=yes
3558 i[34567]86-*-osfrose*) # 386 using OSF/rose
3559 if test x$elf = xyes
3560 then
3561 tm_file=i386/osfelf.h
3562 use_collect2=
3563 else
3564 tm_file=i386/osfrose.h
3565 use_collect2=yes
3567 xm_file="i386/xm-osf.h ${xm_file}"
3568 xmake_file=i386/x-osfrose
3569 tmake_file=i386/t-osf
3570 extra_objs=halfpic.o
3572 i[34567]86-go32-rtems*)
3573 cpu_type=i386
3574 xm_file=i386/xm-go32.h
3575 tm_file=i386/go32-rtems.h
3576 tmake_file="i386/t-go32 t-rtems"
3578 i[34567]86-*-rtemself*)
3579 cpu_type=i386
3580 tm_file=i386/rtemself.h
3581 tmake_file="i386/t-i386bare t-rtems"
3583 i[34567]86-*-rtems*)
3584 cpu_type=i386
3585 tm_file=i386/rtems.h
3586 tmake_file="i386/t-i386bare t-rtems"
3588 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3589 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3590 xm_defines="USG SVR3"
3591 xmake_file=i386/x-sco5
3592 install_headers_dir=install-headers-cpio
3593 tm_file=i386/sco5.h
3594 if test x$gas = xyes
3595 then
3596 tm_file="i386/sco5gas.h ${tm_file}"
3597 tmake_file=i386/t-sco5gas
3598 else
3599 tmake_file=i386/t-sco5
3601 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3603 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3604 xm_file="${xm_file} i386/xm-sco.h"
3605 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3606 xmake_file=i386/x-sco4
3607 install_headers_dir=install-headers-cpio
3608 if test x$stabs = xyes
3609 then
3610 tm_file=i386/sco4dbx.h
3611 tmake_file=i386/t-svr3dbx
3612 extra_parts="svr3.ifile svr3z.rfile"
3613 else
3614 tm_file=i386/sco4.h
3615 tmake_file=i386/t-crtstuff
3616 extra_parts="crtbegin.o crtend.o"
3618 truncate_target=yes
3620 i[34567]86-*-sco*) # 80386 running SCO system
3621 xm_file=i386/xm-sco.h
3622 xmake_file=i386/x-sco
3623 install_headers_dir=install-headers-cpio
3624 if test x$stabs = xyes
3625 then
3626 tm_file=i386/scodbx.h
3627 tmake_file=i386/t-svr3dbx
3628 extra_parts="svr3.ifile svr3z.rfile"
3629 else
3630 tm_file=i386/sco.h
3631 extra_parts="crtbegin.o crtend.o"
3632 tmake_file=i386/t-crtstuff
3634 truncate_target=yes
3636 i[34567]86-*-solaris2*)
3637 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3638 xm_defines="USG POSIX SMALL_ARG_MAX"
3639 if test x$stabs = xyes
3640 then
3641 tm_file=i386/sol2dbg.h
3642 else
3643 tm_file=i386/sol2.h
3645 tmake_file=i386/t-sol2
3646 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3647 xmake_file=x-svr4
3648 if test x$enable_threads = xyes; then
3649 thread_file='solaris'
3652 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3653 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3654 xm_defines="USG POSIX"
3655 tm_file=i386/sysv4.h
3656 if test x$stabs = xyes
3657 then
3658 tm_file="${tm_file} dbx.h"
3660 tmake_file=i386/t-crtpic
3661 xmake_file=x-svr4
3662 extra_parts="crtbegin.o crtend.o"
3664 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3665 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3666 xm_defines="USG POSIX SMALL_ARG_MAX"
3667 tm_file=i386/sysv4.h
3668 if test x$stabs = xyes
3669 then
3670 tm_file="${tm_file} dbx.h"
3672 tmake_file=i386/t-crtpic
3673 xmake_file=x-svr4
3674 extra_parts="crtbegin.o crtend.o"
3676 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3677 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3678 xm_defines="USG POSIX"
3679 tm_file=i386/udk.h
3680 tmake_file="i386/t-crtpic i386/t-udk"
3681 xmake_file=x-svr4
3682 extra_parts="crtbegin.o crtend.o"
3684 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3685 cpu_type=i386
3686 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3687 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3688 if test x$stabs = xyes
3689 then
3690 tm_file=i386/osf1elfgdb.h
3691 else
3692 tm_file=i386/osf1elf.h
3694 tmake_file=i386/t-osf1elf
3695 xmake_file=i386/x-osf1elf
3696 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3698 i[34567]86-*-sysv*) # Intel 80386's running system V
3699 xm_defines="USG SVR3"
3700 xmake_file=i386/x-sysv3
3701 if test x$gas = xyes
3702 then
3703 if test x$stabs = xyes
3704 then
3705 tm_file=i386/svr3dbx.h
3706 tmake_file=i386/t-svr3dbx
3707 extra_parts="svr3.ifile svr3z.rfile"
3708 else
3709 tm_file=i386/svr3gas.h
3710 extra_parts="crtbegin.o crtend.o"
3711 tmake_file=i386/t-crtstuff
3713 else
3714 tm_file=i386/sysv3.h
3715 extra_parts="crtbegin.o crtend.o"
3716 tmake_file=i386/t-crtstuff
3719 i386-*-vsta) # Intel 80386's running VSTa kernel
3720 xm_file="${xm_file} i386/xm-vsta.h"
3721 tm_file=i386/vsta.h
3722 tmake_file=i386/t-vsta
3723 xmake_file=i386/x-vsta
3725 i[34567]86-*-win32)
3726 xm_file="${xm_file} i386/xm-cygwin.h"
3727 tmake_file=i386/t-cygwin
3728 tm_file=i386/win32.h
3729 xmake_file=i386/x-cygwin
3730 extra_objs=winnt.o
3731 if test x$enable_threads = xyes; then
3732 thread_file='win32'
3734 exeext=.exe
3736 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3737 xm_file="${xm_file} i386/xm-cygwin.h"
3738 tmake_file=i386/t-cygwin
3739 tm_file=i386/cygwin.h
3740 xmake_file=i386/x-cygwin
3741 extra_objs=winnt.o
3742 if test x$enable_threads = xyes; then
3743 thread_file='win32'
3745 exeext=.exe
3747 i[34567]86-*-mingw32*)
3748 tm_file=i386/mingw32.h
3749 xm_file="${xm_file} i386/xm-mingw32.h"
3750 tmake_file="i386/t-cygwin i386/t-mingw32"
3751 extra_objs=winnt.o
3752 xmake_file=i386/x-cygwin
3753 if test x$enable_threads = xyes; then
3754 thread_file='win32'
3756 exeext=.exe
3757 case $machine in
3758 *mingw32msv*)
3760 *minwg32crt* | *mingw32*)
3761 tm_file="${tm_file} i386/crtdll.h"
3763 esac
3765 i[34567]86-*-uwin*)
3766 tm_file=i386/uwin.h
3767 xm_file="${xm_file} i386/xm-uwin.h"
3768 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
3769 tmake_file="i386/t-cygwin i386/t-uwin"
3770 extra_objs=winnt.o
3771 xmake_file=i386/x-cygwin
3772 fixincludes=Makefile.in
3773 if test x$enable_threads = xyes; then
3774 thread_file='win32'
3776 exeext=.exe
3778 i[34567]86-*-winnt3*)
3779 tm_file=i386/win-nt.h
3780 out_file=i386/i386.c
3781 xm_file="xm-winnt.h ${xm_file}"
3782 xmake_file=winnt/x-winnt
3783 tmake_file=i386/t-winnt
3784 extra_host_objs="winnt.o oldnames.o"
3785 extra_gcc_objs="spawnv.o oldnames.o"
3786 if test x$gnu_ld != xyes
3787 then
3788 extra_programs=ld.exe
3790 if test x$enable_threads = xyes; then
3791 thread_file='win32'
3794 i[34567]86-dg-dgux*)
3795 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3796 xm_defines="USG POSIX"
3797 out_file=i386/dgux.c
3798 tm_file=i386/dgux.h
3799 tmake_file=i386/t-dgux
3800 xmake_file=i386/x-dgux
3801 install_headers_dir=install-headers-cpio
3803 i860-alliant-*) # Alliant FX/2800
3804 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3805 xm_file="${xm_file}"
3806 xmake_file=i860/x-fx2800
3807 tmake_file=i860/t-fx2800
3808 extra_parts="crtbegin.o crtend.o"
3810 i860-*-bsd*)
3811 tm_file="${tm_file} i860/bsd.h"
3812 if test x$gas = xyes
3813 then
3814 tm_file="${tm_file} i860/bsd-gas.h"
3816 use_collect2=yes
3818 i860-*-mach*)
3819 tm_file="${tm_file} i860/mach.h"
3820 tmake_file=t-libc-ok
3822 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3823 tm_file="${tm_file} svr3.h i860/paragon.h"
3824 xm_defines="USG SVR3"
3825 tmake_file=t-osf
3827 i860-*-sysv3*)
3828 tm_file="${tm_file} svr3.h i860/sysv3.h"
3829 xm_defines="USG SVR3"
3830 xmake_file=i860/x-sysv3
3831 extra_parts="crtbegin.o crtend.o"
3833 i860-*-sysv4*)
3834 tm_file="${tm_file} svr4.h i860/sysv4.h"
3835 xm_defines="USG SVR3"
3836 xmake_file=i860/x-sysv4
3837 tmake_file=t-svr4
3838 extra_parts="crtbegin.o crtend.o"
3840 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3841 tm_file="${tm_file} i960/vx960.h"
3842 tmake_file=i960/t-vxworks960
3843 use_collect2=yes
3844 thread_file='vxworks'
3846 i960-wrs-vxworks5* | i960-wrs-vxworks)
3847 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3848 tmake_file=i960/t-vxworks960
3849 use_collect2=yes
3850 thread_file='vxworks'
3852 i960-wrs-vxworks*)
3853 tm_file="${tm_file} i960/vx960.h"
3854 tmake_file=i960/t-vxworks960
3855 use_collect2=yes
3856 thread_file='vxworks'
3858 i960-*-coff*)
3859 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3860 tmake_file=i960/t-960bare
3861 use_collect2=yes
3863 i960-*-rtems)
3864 tmake_file="i960/t-960bare t-rtems"
3865 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3866 use_collect2=yes
3868 i960-*-*) # Default i960 environment.
3869 use_collect2=yes
3871 m32r-*-elf*)
3872 extra_parts="crtinit.o crtfini.o"
3874 m68000-convergent-sysv*)
3875 tm_file=m68k/ctix.h
3876 xm_file="m68k/xm-3b1.h ${xm_file}"
3877 xm_defines=USG
3878 use_collect2=yes
3879 extra_headers=math-68881.h
3881 m68000-hp-bsd*) # HP 9000/200 running BSD
3882 tm_file=m68k/hp2bsd.h
3883 xmake_file=m68k/x-hp2bsd
3884 use_collect2=yes
3885 extra_headers=math-68881.h
3887 m68000-hp-hpux*) # HP 9000 series 300
3888 xm_file="xm_alloca.h ${xm_file}"
3889 xm_defines="USG NO_SYS_SIGLIST"
3890 if test x$gas = xyes
3891 then
3892 xmake_file=m68k/x-hp320g
3893 tm_file=m68k/hp310g.h
3894 else
3895 xmake_file=m68k/x-hp320
3896 tm_file=m68k/hp310.h
3898 install_headers_dir=install-headers-cpio
3899 use_collect2=yes
3900 extra_headers=math-68881.h
3902 m68000-sun-sunos3*)
3903 tm_file=m68k/sun2.h
3904 use_collect2=yes
3905 extra_headers=math-68881.h
3907 m68000-sun-sunos4*)
3908 tm_file=m68k/sun2o4.h
3909 use_collect2=yes
3910 extra_headers=math-68881.h
3912 m68000-att-sysv*)
3913 xm_file="m68k/xm-3b1.h ${xm_file}"
3914 xm_defines=USG
3915 if test x$gas = xyes
3916 then
3917 tm_file=m68k/3b1g.h
3918 else
3919 tm_file=m68k/3b1.h
3921 use_collect2=yes
3922 extra_headers=math-68881.h
3924 m68k-apple-aux*) # Apple Macintosh running A/UX
3925 xm_defines="USG AUX"
3926 tmake_file=m68k/t-aux
3927 install_headers_dir=install-headers-cpio
3928 extra_headers=math-68881.h
3929 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3930 tm_file=
3931 if test "$gnu_ld" = yes
3932 then
3933 tm_file="${tm_file} m68k/auxgld.h"
3934 else
3935 tm_file="${tm_file} m68k/auxld.h"
3937 if test "$gas" = yes
3938 then
3939 tm_file="${tm_file} m68k/auxgas.h"
3940 else
3941 tm_file="${tm_file} m68k/auxas.h"
3943 tm_file="${tm_file} m68k/a-ux.h"
3944 float_format=m68k
3946 m68k-apollo-*)
3947 tm_file=m68k/apollo68.h
3948 xmake_file=m68k/x-apollo68
3949 use_collect2=yes
3950 extra_headers=math-68881.h
3951 float_format=m68k
3953 m68k-altos-sysv*) # Altos 3068
3954 if test x$gas = xyes
3955 then
3956 tm_file=m68k/altos3068.h
3957 xm_defines=USG
3958 else
3959 echo "The Altos is supported only with the GNU assembler" 1>&2
3960 exit 1
3962 extra_headers=math-68881.h
3964 m68k-bull-sysv*) # Bull DPX/2
3965 if test x$gas = xyes
3966 then
3967 if test x$stabs = xyes
3968 then
3969 tm_file=m68k/dpx2cdbx.h
3970 else
3971 tm_file=m68k/dpx2g.h
3973 else
3974 tm_file=m68k/dpx2.h
3976 xm_file="xm-alloca.h ${xm_file}"
3977 xm_defines=USG
3978 xmake_file=m68k/x-dpx2
3979 use_collect2=yes
3980 extra_headers=math-68881.h
3982 m68k-atari-sysv4*) # Atari variant of V.4.
3983 tm_file=m68k/atari.h
3984 xm_file="xm-alloca.h ${xm_file}"
3985 xm_defines="USG FULL_PROTOTYPES"
3986 tmake_file=t-svr4
3987 extra_parts="crtbegin.o crtend.o"
3988 extra_headers=math-68881.h
3989 float_format=m68k
3991 m68k-motorola-sysv*)
3992 tm_file=m68k/mot3300.h
3993 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3994 xm_defines=NO_SYS_SIGLIST
3995 if test x$gas = xyes
3996 then
3997 xmake_file=m68k/x-mot3300-gas
3998 if test x$gnu_ld = xyes
3999 then
4000 tmake_file=m68k/t-mot3300-gald
4001 else
4002 tmake_file=m68k/t-mot3300-gas
4003 use_collect2=yes
4005 else
4006 xmake_file=m68k/x-mot3300
4007 if test x$gnu_ld = xyes
4008 then
4009 tmake_file=m68k/t-mot3300-gld
4010 else
4011 tmake_file=m68k/t-mot3300
4012 use_collect2=yes
4015 gdb_needs_out_file_path=yes
4016 extra_parts="crt0.o mcrt0.o"
4017 extra_headers=math-68881.h
4018 float_format=m68k
4020 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4021 tm_file=m68k/tower-as.h
4022 xm_defines="USG SVR3"
4023 xmake_file=m68k/x-tower
4024 extra_parts="crtbegin.o crtend.o"
4025 extra_headers=math-68881.h
4027 m68k-plexus-sysv*)
4028 tm_file=m68k/plexus.h
4029 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4030 xm_defines=USG
4031 use_collect2=yes
4032 extra_headers=math-68881.h
4034 m68k-tti-*)
4035 tm_file=m68k/pbb.h
4036 xm_file="xm-alloca.h ${xm_file}"
4037 xm_defines=USG
4038 extra_headers=math-68881.h
4040 m68k-crds-unos*)
4041 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4042 xm_defines="USG unos"
4043 xmake_file=m68k/x-crds
4044 tm_file=m68k/crds.h
4045 use_collect2=yes
4046 extra_headers=math-68881.h
4048 m68k-cbm-sysv4*) # Commodore variant of V.4.
4049 tm_file=m68k/amix.h
4050 xm_file="xm-alloca.h ${xm_file}"
4051 xm_defines="USG FULL_PROTOTYPES"
4052 xmake_file=m68k/x-amix
4053 tmake_file=t-svr4
4054 extra_parts="crtbegin.o crtend.o"
4055 extra_headers=math-68881.h
4056 float_format=m68k
4058 m68k-ccur-rtu)
4059 tm_file=m68k/ccur-GAS.h
4060 xmake_file=m68k/x-ccur
4061 extra_headers=math-68881.h
4062 use_collect2=yes
4063 float_format=m68k
4065 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4066 tm_file=m68k/hp3bsd44.h
4067 xmake_file=m68k/x-hp3bsd44
4068 use_collect2=yes
4069 extra_headers=math-68881.h
4070 float_format=m68k
4072 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4073 tm_file=m68k/hp3bsd.h
4074 use_collect2=yes
4075 extra_headers=math-68881.h
4076 float_format=m68k
4078 m68k-isi-bsd*)
4079 if test x$with_fp = xno
4080 then
4081 tm_file=m68k/isi-nfp.h
4082 else
4083 tm_file=m68k/isi.h
4084 float_format=m68k
4086 use_collect2=yes
4087 extra_headers=math-68881.h
4089 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4090 xm_file="xm_alloca.h ${xm_file}"
4091 xm_defines="USG NO_SYS_SIGLIST"
4092 if test x$gas = xyes
4093 then
4094 xmake_file=m68k/x-hp320g
4095 tm_file=m68k/hp320g.h
4096 else
4097 xmake_file=m68k/x-hp320
4098 tm_file=m68k/hpux7.h
4100 install_headers_dir=install-headers-cpio
4101 use_collect2=yes
4102 extra_headers=math-68881.h
4103 float_format=m68k
4105 m68k-hp-hpux*) # HP 9000 series 300
4106 xm_file="xm_alloca.h ${xm_file}"
4107 xm_defines="USG NO_SYS_SIGLIST"
4108 if test x$gas = xyes
4109 then
4110 xmake_file=m68k/x-hp320g
4111 tm_file=m68k/hp320g.h
4112 else
4113 xmake_file=m68k/x-hp320
4114 tm_file=m68k/hp320.h
4116 install_headers_dir=install-headers-cpio
4117 use_collect2=yes
4118 extra_headers=math-68881.h
4119 float_format=m68k
4121 m68k-sun-mach*)
4122 tm_file=m68k/sun3mach.h
4123 use_collect2=yes
4124 extra_headers=math-68881.h
4125 float_format=m68k
4127 m68k-sony-newsos3*)
4128 if test x$gas = xyes
4129 then
4130 tm_file=m68k/news3gas.h
4131 else
4132 tm_file=m68k/news3.h
4134 use_collect2=yes
4135 extra_headers=math-68881.h
4136 float_format=m68k
4138 m68k-sony-bsd* | m68k-sony-newsos*)
4139 if test x$gas = xyes
4140 then
4141 tm_file=m68k/newsgas.h
4142 else
4143 tm_file=m68k/news.h
4145 use_collect2=yes
4146 extra_headers=math-68881.h
4147 float_format=m68k
4149 m68k-next-nextstep2*)
4150 tm_file=m68k/next21.h
4151 xm_file="m68k/xm-next.h ${xm_file}"
4152 tmake_file=m68k/t-next
4153 xmake_file=m68k/x-next
4154 extra_objs=nextstep.o
4155 extra_headers=math-68881.h
4156 use_collect2=yes
4157 float_format=m68k
4159 m68k-next-nextstep3*)
4160 tm_file=m68k/next.h
4161 xm_file="m68k/xm-next.h ${xm_file}"
4162 tmake_file=m68k/t-next
4163 xmake_file=m68k/x-next
4164 extra_objs=nextstep.o
4165 extra_parts="crtbegin.o crtend.o"
4166 extra_headers=math-68881.h
4167 float_format=m68k
4168 if test x$enable_threads = xyes; then
4169 thread_file='mach'
4172 m68k-sun-sunos3*)
4173 if test x$with_fp = xno
4174 then
4175 tm_file=m68k/sun3n3.h
4176 else
4177 tm_file=m68k/sun3o3.h
4178 float_format=m68k
4180 use_collect2=yes
4181 extra_headers=math-68881.h
4183 m68k-sun-sunos*) # For SunOS 4 (the default).
4184 if test x$with_fp = xno
4185 then
4186 tm_file=m68k/sun3n.h
4187 else
4188 tm_file=m68k/sun3.h
4189 float_format=m68k
4191 use_collect2=yes
4192 extra_headers=math-68881.h
4194 m68k-wrs-vxworks*)
4195 tm_file=m68k/vxm68k.h
4196 tmake_file=m68k/t-vxworks68
4197 extra_headers=math-68881.h
4198 thread_file='vxworks'
4199 float_format=m68k
4201 m68k-*-aout*)
4202 tmake_file=m68k/t-m68kbare
4203 tm_file="m68k/m68k-aout.h libgloss.h"
4204 extra_headers=math-68881.h
4205 float_format=m68k
4207 m68k-*-coff*)
4208 tmake_file=m68k/t-m68kbare
4209 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4210 extra_headers=math-68881.h
4211 float_format=m68k
4213 m68020-*-elf* | m68k-*-elf*)
4214 tm_file="m68k/m68020-elf.h libgloss.h"
4215 xm_file=m68k/xm-m68kv.h
4216 tmake_file=m68k/t-m68kelf
4217 header_files=math-68881.h
4219 m68k-*-lynxos*)
4220 if test x$gas = xyes
4221 then
4222 tm_file=m68k/lynx.h
4223 else
4224 tm_file=m68k/lynx-ng.h
4226 xm_file=m68k/xm-lynx.h
4227 xmake_file=x-lynx
4228 tmake_file=m68k/t-lynx
4229 extra_headers=math-68881.h
4230 float_format=m68k
4232 m68k*-*-netbsd*)
4233 tm_file=m68k/netbsd.h
4234 tmake_file=t-netbsd
4235 float_format=m68k
4237 m68k*-*-openbsd*)
4238 float_format=m68k
4239 # we need collect2 until our bug is fixed...
4240 use_collect2=yes
4242 m68k-*-sysv3*) # Motorola m68k's running system V.3
4243 xm_file="xm-alloca.h ${xm_file}"
4244 xm_defines=USG
4245 xmake_file=m68k/x-m68kv
4246 extra_parts="crtbegin.o crtend.o"
4247 extra_headers=math-68881.h
4248 float_format=m68k
4250 m68k-*-sysv4*) # Motorola m68k's running system V.4
4251 tm_file=m68k/m68kv4.h
4252 xm_file="xm-alloca.h ${xm_file}"
4253 xm_defines=USG
4254 tmake_file=t-svr4
4255 extra_parts="crtbegin.o crtend.o"
4256 extra_headers=math-68881.h
4257 float_format=m68k
4259 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4260 # with a.out format
4261 xmake_file=x-linux
4262 tm_file=m68k/linux-aout.h
4263 tmake_file="t-linux-aout m68k/t-linux-aout"
4264 extra_headers=math-68881.h
4265 float_format=m68k
4266 gnu_ld=yes
4268 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4269 # with ELF format using the
4270 # GNU/Linux C library 5
4271 xmake_file=x-linux
4272 tm_file=m68k/linux.h
4273 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4274 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4275 extra_headers=math-68881.h
4276 float_format=m68k
4277 gnu_ld=yes
4279 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4280 # with ELF format using glibc 2
4281 # aka the GNU/Linux C library 6.
4282 xmake_file=x-linux
4283 tm_file=m68k/linux.h
4284 tmake_file="t-linux m68k/t-linux"
4285 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4286 extra_headers=math-68881.h
4287 float_format=m68k
4288 gnu_ld=yes
4289 if test x$enable_threads = xyes; then
4290 thread_file='posix'
4293 m68k-*-psos*)
4294 tmake_file=m68k/t-m68kbare
4295 tm_file=m68k/m68k-psos.h
4296 extra_headers=math-68881.h
4297 float_format=m68k
4299 m68k-*-rtems*)
4300 tmake_file="m68k/t-m68kbare t-rtems"
4301 tm_file=m68k/rtems.h
4302 extra_headers=math-68881.h
4303 float_format=m68k
4306 m88k-dg-dgux*)
4307 case $machine in
4308 m88k-dg-dguxbcs*)
4309 tm_file=m88k/dguxbcs.h
4310 tmake_file=m88k/t-dguxbcs
4313 tm_file=m88k/dgux.h
4314 tmake_file=m88k/t-dgux
4316 esac
4317 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4318 xmake_file=m88k/x-dgux
4319 if test x$gas = xyes
4320 then
4321 tmake_file=m88k/t-dgux-gas
4324 m88k-dolphin-sysv3*)
4325 tm_file=m88k/dolph.h
4326 extra_parts="crtbegin.o crtend.o"
4327 xm_file="m88k/xm-sysv3.h ${xm_file}"
4328 xmake_file=m88k/x-dolph
4329 if test x$gas = xyes
4330 then
4331 tmake_file=m88k/t-m88k-gas
4334 m88k-tektronix-sysv3)
4335 tm_file=m88k/tekXD88.h
4336 extra_parts="crtbegin.o crtend.o"
4337 xm_file="m88k/xm-sysv3.h ${xm_file}"
4338 xmake_file=m88k/x-tekXD88
4339 if test x$gas = xyes
4340 then
4341 tmake_file=m88k/t-m88k-gas
4344 m88k-*-aout*)
4345 tm_file=m88k/m88k-aout.h
4347 m88k-*-coff*)
4348 tm_file=m88k/m88k-coff.h
4349 tmake_file=m88k/t-bug
4351 m88k-*-luna*)
4352 tm_file=m88k/luna.h
4353 extra_parts="crtbegin.o crtend.o"
4354 if test x$gas = xyes
4355 then
4356 tmake_file=m88k/t-luna-gas
4357 else
4358 tmake_file=m88k/t-luna
4361 m88k-*-openbsd*)
4362 tmake_file="${tmake_file} m88k/t-luna-gas"
4364 m88k-*-sysv3*)
4365 tm_file=m88k/sysv3.h
4366 extra_parts="crtbegin.o crtend.o"
4367 xm_file="m88k/xm-sysv3.h ${xm_file}"
4368 xmake_file=m88k/x-sysv3
4369 if test x$gas = xyes
4370 then
4371 tmake_file=m88k/t-m88k-gas
4374 m88k-*-sysv4*)
4375 tm_file=m88k/sysv4.h
4376 extra_parts="crtbegin.o crtend.o"
4377 xmake_file=m88k/x-sysv4
4378 tmake_file=m88k/t-sysv4
4380 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4381 tm_file=mips/iris6.h
4382 xm_file=mips/xm-iris6.h
4383 xmake_file=mips/x-iris6
4384 tmake_file=mips/t-iris6
4385 # if test x$enable_threads = xyes; then
4386 # thread_file='irix'
4387 # fi
4389 mips-wrs-vxworks)
4390 tm_file="mips/elf.h libgloss.h"
4391 tmake_file=mips/t-ecoff
4392 gas=yes
4393 gnu_ld=yes
4394 extra_parts="crtbegin.o crtend.o"
4395 thread_file='vxworks'
4397 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4398 tm_file="mips/iris6.h mips/cross64.h"
4399 xm_defines=USG
4400 xm_file="mips/xm-iris5.h"
4401 xmake_file=mips/x-iris
4402 tmake_file=mips/t-cross64
4403 # See comment in mips/iris[56].h files.
4404 use_collect2=yes
4405 # if test x$enable_threads = xyes; then
4406 # thread_file='irix'
4407 # fi
4409 mips-sni-sysv4)
4410 if test x$gas = xyes
4411 then
4412 if test x$stabs = xyes
4413 then
4414 tm_file=mips/iris5gdb.h
4415 else
4416 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4418 else
4419 tm_file=mips/sni-svr4.h
4421 xm_defines=USG
4422 xmake_file=mips/x-sni-svr4
4423 tmake_file=mips/t-mips-gas
4424 if test x$gnu_ld != xyes
4425 then
4426 use_collect2=yes
4429 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4430 if test x$gas = xyes
4431 then
4432 tm_file="mips/iris5.h mips/iris5gas.h"
4433 if test x$stabs = xyes
4434 then
4435 tm_file="${tm_file} dbx.h"
4437 else
4438 tm_file=mips/iris5.h
4440 xm_defines=USG
4441 xm_file="mips/xm-iris5.h"
4442 xmake_file=mips/x-iris
4443 # mips-tfile doesn't work yet
4444 tmake_file=mips/t-mips-gas
4445 # See comment in mips/iris5.h file.
4446 use_collect2=yes
4447 # if test x$enable_threads = xyes; then
4448 # thread_file='irix'
4449 # fi
4451 mips-sgi-irix4loser*) # Mostly like a MIPS.
4452 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4453 if test x$stabs = xyes; then
4454 tm_file="${tm_file} dbx.h"
4456 xm_defines=USG
4457 xmake_file=mips/x-iris
4458 if test x$gas = xyes
4459 then
4460 tmake_file=mips/t-mips-gas
4461 else
4462 extra_passes="mips-tfile mips-tdump"
4464 if test x$gnu_ld != xyes
4465 then
4466 use_collect2=yes
4468 # if test x$enable_threads = xyes; then
4469 # thread_file='irix'
4470 # fi
4472 mips-sgi-irix4*) # Mostly like a MIPS.
4473 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4474 if test x$stabs = xyes; then
4475 tm_file="${tm_file} dbx.h"
4477 xm_defines=USG
4478 xmake_file=mips/x-iris
4479 if test x$gas = xyes
4480 then
4481 tmake_file=mips/t-mips-gas
4482 else
4483 extra_passes="mips-tfile mips-tdump"
4485 if test x$gnu_ld != xyes
4486 then
4487 use_collect2=yes
4489 # if test x$enable_threads = xyes; then
4490 # thread_file='irix'
4491 # fi
4493 mips-sgi-*) # Mostly like a MIPS.
4494 tm_file="mips/iris3.h ${tm_file}"
4495 if test x$stabs = xyes; then
4496 tm_file="${tm_file} dbx.h"
4498 xm_defines=USG
4499 xmake_file=mips/x-iris3
4500 if test x$gas = xyes
4501 then
4502 tmake_file=mips/t-mips-gas
4503 else
4504 extra_passes="mips-tfile mips-tdump"
4506 if test x$gnu_ld != xyes
4507 then
4508 use_collect2=yes
4511 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4512 tm_file="mips/osfrose.h ${tm_file}"
4513 xmake_file=mips/x-osfrose
4514 tmake_file=mips/t-osfrose
4515 extra_objs=halfpic.o
4516 use_collect2=yes
4518 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4519 tm_file=mips/dec-osf1.h
4520 if test x$stabs = xyes; then
4521 tm_file="${tm_file} dbx.h"
4523 xmake_file=mips/x-dec-osf1
4524 if test x$gas = xyes
4525 then
4526 tmake_file=mips/t-mips-gas
4527 else
4528 tmake_file=mips/t-ultrix
4529 extra_passes="mips-tfile mips-tdump"
4531 if test x$gnu_ld != xyes
4532 then
4533 use_collect2=yes
4536 mips-dec-bsd*) # Decstation running 4.4 BSD
4537 tm_file=mips/dec-bsd.h
4538 if test x$gas = xyes
4539 then
4540 tmake_file=mips/t-mips-gas
4541 else
4542 tmake_file=mips/t-ultrix
4543 extra_passes="mips-tfile mips-tdump"
4545 if test x$gnu_ld != xyes
4546 then
4547 use_collect2=yes
4550 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4551 tm_file=mips/netbsd.h
4552 # On NetBSD, the headers are already okay, except for math.h.
4553 tmake_file=t-netbsd
4555 mips*-*-linux*) # Linux MIPS, either endian.
4556 xmake_file=x-linux
4557 xm_file="xm-siglist.h ${xm_file}"
4558 case $machine in
4559 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4560 *) tm_file="mips/elf.h mips/linux.h" ;;
4561 esac
4562 extra_parts="crtbegin.o crtend.o"
4563 gnu_ld=yes
4564 gas=yes
4565 fixincludes=Makefile.in
4567 mips*el-*-openbsd*) # mips little endian
4568 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4569 tm_file=mips/openbsd.h
4570 xmake_file=none
4572 mips*-*-openbsd*) # mips big endian
4573 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4574 tm_file=mips/openbsd-be.h
4575 xmake_file=none
4577 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4578 tm_file="mips/news4.h ${tm_file}"
4579 if test x$stabs = xyes; then
4580 tm_file="${tm_file} dbx.h"
4582 if test x$gas = xyes
4583 then
4584 tmake_file=mips/t-mips-gas
4585 else
4586 extra_passes="mips-tfile mips-tdump"
4588 if test x$gnu_ld != xyes
4589 then
4590 use_collect2=yes
4592 xmake_file=mips/x-sony
4594 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4595 # That is based on svr4.
4596 # t-svr4 is not right because this system doesn't use ELF.
4597 tm_file="mips/news5.h ${tm_file}"
4598 if test x$stabs = xyes; then
4599 tm_file="${tm_file} dbx.h"
4601 xm_file="xm-siglist.h ${xm_file}"
4602 xm_defines=USG
4603 if test x$gas = xyes
4604 then
4605 tmake_file=mips/t-mips-gas
4606 else
4607 extra_passes="mips-tfile mips-tdump"
4609 if test x$gnu_ld != xyes
4610 then
4611 use_collect2=yes
4614 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4615 tm_file="mips/svr4-5.h mips/svr4-t.h"
4616 if test x$stabs = xyes; then
4617 tm_file="${tm_file} dbx.h"
4619 xm_file="xm-siglist.h ${xm_file}"
4620 xm_defines=USG
4621 xmake_file=mips/x-sysv
4622 if test x$gas = xyes
4623 then
4624 tmake_file=mips/t-mips-gas
4625 extra_parts="crtbegin.o crtend.o"
4626 else
4627 tmake_file=mips/t-mips
4628 extra_passes="mips-tfile mips-tdump"
4630 if test x$gnu_ld != xyes
4631 then
4632 use_collect2=yes
4635 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4636 tm_file="mips/ultrix.h ${tm_file}"
4637 if test x$stabs = xyes; then
4638 tm_file="${tm_file} dbx.h"
4640 xmake_file=mips/x-ultrix
4641 if test x$gas = xyes
4642 then
4643 tmake_file=mips/t-mips-gas
4644 else
4645 tmake_file=mips/t-ultrix
4646 extra_passes="mips-tfile mips-tdump"
4648 if test x$gnu_ld != xyes
4649 then
4650 use_collect2=yes
4653 mips-*-riscos[56789]bsd*)
4654 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4655 if test x$stabs = xyes; then
4656 tm_file="${tm_file} dbx.h"
4658 if test x$gas = xyes
4659 then
4660 tmake_file=mips/t-bsd-gas
4661 else
4662 tmake_file=mips/t-bsd
4663 extra_passes="mips-tfile mips-tdump"
4665 if test x$gnu_ld != xyes
4666 then
4667 use_collect2=yes
4670 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4671 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4672 if test x$stabs = xyes; then
4673 tm_file="${tm_file} dbx.h"
4675 if test x$gas = xyes
4676 then
4677 tmake_file=mips/t-bsd-gas
4678 else
4679 tmake_file=mips/t-bsd
4680 extra_passes="mips-tfile mips-tdump"
4682 if test x$gnu_ld != xyes
4683 then
4684 use_collect2=yes
4687 mips-*-riscos[56789]sysv4*)
4688 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4689 if test x$stabs = xyes; then
4690 tm_file="${tm_file} dbx.h"
4692 xm_file="xm-siglist.h ${xm_file}"
4693 xmake_file=mips/x-sysv
4694 if test x$gas = xyes
4695 then
4696 tmake_file=mips/t-svr4-gas
4697 else
4698 tmake_file=mips/t-svr4
4699 extra_passes="mips-tfile mips-tdump"
4701 if test x$gnu_ld != xyes
4702 then
4703 use_collect2=yes
4706 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4707 tm_file="mips/svr4-4.h ${tm_file}"
4708 if test x$stabs = xyes; then
4709 tm_file="${tm_file} dbx.h"
4711 xm_defines=USG
4712 xmake_file=mips/x-sysv
4713 if test x$gas = xyes
4714 then
4715 tmake_file=mips/t-svr4-gas
4716 else
4717 tmake_file=mips/t-svr4
4718 extra_passes="mips-tfile mips-tdump"
4720 if test x$gnu_ld != xyes
4721 then
4722 use_collect2=yes
4725 mips-*-riscos[56789]sysv*)
4726 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4727 if test x$stabs = xyes; then
4728 tm_file="${tm_file} dbx.h"
4730 xm_defines=USG
4731 xmake_file=mips/x-sysv
4732 if test x$gas = xyes
4733 then
4734 tmake_file=mips/t-svr3-gas
4735 else
4736 tmake_file=mips/t-svr3
4737 extra_passes="mips-tfile mips-tdump"
4739 if test x$gnu_ld != xyes
4740 then
4741 use_collect2=yes
4744 mips-*-sysv* | mips-*-riscos*sysv*)
4745 tm_file="mips/svr3-4.h ${tm_file}"
4746 if test x$stabs = xyes; then
4747 tm_file="${tm_file} dbx.h"
4749 xm_defines=USG
4750 xmake_file=mips/x-sysv
4751 if test x$gas = xyes
4752 then
4753 tmake_file=mips/t-svr3-gas
4754 else
4755 tmake_file=mips/t-svr3
4756 extra_passes="mips-tfile mips-tdump"
4758 if test x$gnu_ld != xyes
4759 then
4760 use_collect2=yes
4763 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4764 tm_file=mips/mips-5.h
4765 if test x$stabs = xyes; then
4766 tm_file="${tm_file} dbx.h"
4768 if test x$gas = xyes
4769 then
4770 tmake_file=mips/t-mips-gas
4771 else
4772 extra_passes="mips-tfile mips-tdump"
4774 if test x$gnu_ld != xyes
4775 then
4776 use_collect2=yes
4779 mips-*-gnu*)
4781 mipsel-*-ecoff*)
4782 tm_file=mips/ecoffl.h
4783 if test x$stabs = xyes; then
4784 tm_file="${tm_file} dbx.h"
4786 tmake_file=mips/t-ecoff
4788 mips-*-ecoff*)
4789 tm_file="gofast.h mips/ecoff.h"
4790 if test x$stabs = xyes; then
4791 tm_file="${tm_file} dbx.h"
4793 tmake_file=mips/t-ecoff
4795 mipsel-*-elf*)
4796 tm_file="mips/elfl.h libgloss.h"
4797 tmake_file=mips/t-ecoff
4799 mips-*-elf*)
4800 tm_file="mips/elf.h libgloss.h"
4801 tmake_file=mips/t-ecoff
4803 mips64el-*-elf*)
4804 tm_file="mips/elfl64.h libgloss.h"
4805 tmake_file=mips/t-ecoff
4807 mips64orionel-*-elf*)
4808 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4809 tmake_file=mips/t-ecoff
4811 mips64-*-elf*)
4812 tm_file="mips/elf64.h libgloss.h"
4813 tmake_file=mips/t-ecoff
4815 mips64orion-*-elf*)
4816 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4817 tmake_file=mips/t-ecoff
4819 mips64orion-*-rtems*)
4820 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4821 tmake_file="mips/t-ecoff t-rtems"
4823 mipstx39el-*-elf*)
4824 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4825 tmake_file=mips/t-r3900
4827 mipstx39-*-elf*)
4828 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4829 tmake_file=mips/t-r3900
4830 # FIXME mips-elf should be fixed to use crtstuff.
4831 use_collect2=yes
4833 mips-*-*) # Default MIPS RISC-OS 4.0.
4834 if test x$stabs = xyes; then
4835 tm_file="${tm_file} dbx.h"
4837 if test x$gas = xyes
4838 then
4839 tmake_file=mips/t-mips-gas
4840 else
4841 extra_passes="mips-tfile mips-tdump"
4843 if test x$gnu_ld != xyes
4844 then
4845 use_collect2=yes
4848 mn10200-*-*)
4849 cpu_type=mn10200
4850 tm_file="mn10200/mn10200.h"
4851 if test x$stabs = xyes
4852 then
4853 tm_file="${tm_file} dbx.h"
4855 use_collect2=no
4857 mn10300-*-*)
4858 cpu_type=mn10300
4859 tm_file="mn10300/mn10300.h"
4860 if test x$stabs = xyes
4861 then
4862 tm_file="${tm_file} dbx.h"
4864 use_collect2=no
4866 ns32k-encore-bsd*)
4867 tm_file=ns32k/encore.h
4868 use_collect2=yes
4870 ns32k-sequent-bsd*)
4871 tm_file=ns32k/sequent.h
4872 use_collect2=yes
4874 ns32k-tek6100-bsd*)
4875 tm_file=ns32k/tek6100.h
4876 use_collect2=yes
4878 ns32k-tek6200-bsd*)
4879 tm_file=ns32k/tek6200.h
4880 use_collect2=yes
4882 # This has not been updated to GCC 2.
4883 # ns32k-ns-genix*)
4884 # xm_defines=USG
4885 # xmake_file=ns32k/x-genix
4886 # tm_file=ns32k/genix.h
4887 # use_collect2=yes
4888 # ;;
4889 ns32k-merlin-*)
4890 tm_file=ns32k/merlin.h
4891 use_collect2=yes
4893 ns32k-pc532-mach*)
4894 tm_file=ns32k/pc532-mach.h
4895 use_collect2=yes
4897 ns32k-pc532-minix*)
4898 tm_file=ns32k/pc532-min.h
4899 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
4900 xm_defines=USG
4901 use_collect2=yes
4903 ns32k-*-netbsd*)
4904 tm_file=ns32k/netbsd.h
4905 xm_file="ns32k/xm-netbsd.h ${xm_file}"
4906 # On NetBSD, the headers are already okay, except for math.h.
4907 tmake_file=t-netbsd
4909 pdp11-*-bsd)
4910 tm_file="${tm_file} pdp11/2bsd.h"
4912 pdp11-*-*)
4914 ns32k-*-openbsd*)
4915 # Nothing special
4917 pyramid-*-*)
4918 cpu_type=pyr
4919 xmake_file=pyr/x-pyr
4920 use_collect2=yes
4922 romp-*-aos*)
4923 use_collect2=yes
4925 romp-*-mach*)
4926 xmake_file=romp/x-mach
4927 use_collect2=yes
4929 romp-*-openbsd*)
4930 # Nothing special
4932 powerpc-*-openbsd*)
4933 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
4934 xmake_file=none
4936 powerpc-*-beos*)
4937 cpu_type=rs6000
4938 tm_file=rs6000/beos.h
4939 xm_file=rs6000/xm-beos.h
4940 tmake_file=rs6000/t-beos
4941 xmake_file=rs6000/x-beos
4943 powerpc-*-sysv* | powerpc-*-elf*)
4944 tm_file=rs6000/sysv4.h
4945 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4946 xm_defines="USG POSIX"
4947 extra_headers=ppc-asm.h
4948 if test x$gas = xyes
4949 then
4950 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4951 else
4952 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4954 xmake_file=rs6000/x-sysv4
4956 powerpc-*-eabiaix*)
4957 tm_file=rs6000/eabiaix.h
4958 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4959 extra_headers=ppc-asm.h
4961 powerpc-*-eabisim*)
4962 tm_file=rs6000/eabisim.h
4963 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4964 extra_headers=ppc-asm.h
4966 powerpc-*-eabi*)
4967 tm_file=rs6000/eabi.h
4968 if test x$gas = xyes
4969 then
4970 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4971 else
4972 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4974 extra_headers=ppc-asm.h
4976 powerpc-*-rtems*)
4977 tm_file=rs6000/rtems.h
4978 if test x$gas = xyes
4979 then
4980 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4981 else
4982 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4984 extra_headers=ppc-asm.h
4986 powerpc-*-linux-gnulibc1)
4987 tm_file=rs6000/linux.h
4988 xm_file=rs6000/xm-sysv4.h
4989 out_file=rs6000/rs6000.c
4990 if test x$gas = xyes
4991 then
4992 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4993 else
4994 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4996 xmake_file=x-linux
4997 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4998 extra_headers=ppc-asm.h
4999 if test x$enable_threads = xyes; then
5000 thread_file='posix'
5003 powerpc-*-linux-gnu*)
5004 tm_file=rs6000/linux.h
5005 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5006 xm_defines="USG ${xm_defines}"
5007 out_file=rs6000/rs6000.c
5008 if test x$gas = xyes
5009 then
5010 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5011 else
5012 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5014 xmake_file=x-linux
5015 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5016 extra_headers=ppc-asm.h
5017 if test x$enable_threads = xyes; then
5018 thread_file='posix'
5021 powerpc-wrs-vxworks*)
5022 cpu_type=rs6000
5023 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5024 xm_defines="USG POSIX"
5025 tm_file=rs6000/vxppc.h
5026 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5027 extra_headers=ppc-asm.h
5028 thread_file='vxworks'
5030 powerpcle-*-sysv* | powerpcle-*-elf*)
5031 tm_file=rs6000/sysv4le.h
5032 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5033 xm_defines="USG POSIX"
5034 if test x$gas = xyes
5035 then
5036 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5037 else
5038 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5040 xmake_file=rs6000/x-sysv4
5041 extra_headers=ppc-asm.h
5043 powerpcle-*-eabisim*)
5044 tm_file=rs6000/eabilesim.h
5045 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5046 extra_headers=ppc-asm.h
5048 powerpcle-*-eabi*)
5049 tm_file=rs6000/eabile.h
5050 if test x$gas = xyes
5051 then
5052 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5053 else
5054 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5056 extra_headers=ppc-asm.h
5058 powerpcle-*-winnt* )
5059 tm_file=rs6000/win-nt.h
5060 tmake_file=rs6000/t-winnt
5061 # extra_objs=pe.o
5062 if test x$enable_threads = xyes; then
5063 thread_file='win32'
5065 extra_headers=ppc-asm.h
5067 powerpcle-*-pe | powerpcle-*-cygwin*)
5068 tm_file=rs6000/cygwin.h
5069 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5070 tmake_file=rs6000/t-winnt
5071 xmake_file=rs6000/x-cygwin
5072 # extra_objs=pe.o
5073 if test x$enable_threads = xyes; then
5074 thread_file='win32'
5076 exeext=.exe
5077 extra_headers=ppc-asm.h
5079 powerpcle-*-solaris2*)
5080 tm_file=rs6000/sol2.h
5081 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5082 xm_defines="USG POSIX"
5083 if test x$gas = xyes
5084 then
5085 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5086 else
5087 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5089 xmake_file=rs6000/x-sysv4
5090 extra_headers=ppc-asm.h
5092 rs6000-ibm-aix3.[01]*)
5093 tm_file=rs6000/aix31.h
5094 xmake_file=rs6000/x-aix31
5095 float_format=none
5096 use_collect2=yes
5098 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5099 tm_file=rs6000/aix3newas.h
5100 if test x$host != x$target
5101 then
5102 tmake_file=rs6000/t-xnewas
5103 else
5104 tmake_file=rs6000/t-newas
5106 float_format=none
5107 use_collect2=yes
5109 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5110 if test "$gnu_ld" = yes
5111 then
5112 tm_file=rs6000/aix41-gld.h
5113 else
5114 tm_file=rs6000/aix41.h
5116 if test x$host != x$target
5117 then
5118 tmake_file=rs6000/t-xnewas
5119 else
5120 tmake_file=rs6000/t-newas
5122 xmake_file=rs6000/x-aix41
5123 float_format=none
5124 use_collect2=yes
5126 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
5127 tm_file=rs6000/aix43.h
5128 if test x$host != x$target
5129 then
5130 tmake_file=rs6000/t-xaix43
5131 else
5132 tmake_file=rs6000/t-aix43
5134 xmake_file=rs6000/x-aix43
5135 float_format=none
5136 use_collect2=yes
5138 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5139 tm_file=rs6000/aix43.h
5140 if test x$host != x$target
5141 then
5142 tmake_file=rs6000/t-xaix43
5143 else
5144 tmake_file=rs6000/t-aix43
5146 xmake_file=rs6000/x-aix43
5147 float_format=none
5148 use_collect2=yes
5150 rs6000-ibm-aix*)
5151 float_format=none
5152 use_collect2=yes
5154 rs6000-bull-bosx)
5155 float_format=none
5156 use_collect2=yes
5158 rs6000-*-mach*)
5159 tm_file=rs6000/mach.h
5160 xm_file="${xm_file} rs6000/xm-mach.h"
5161 xmake_file=rs6000/x-mach
5162 use_collect2=yes
5164 rs6000-*-lynxos*)
5165 tm_file=rs6000/lynx.h
5166 xm_file=rs6000/xm-lynx.h
5167 tmake_file=rs6000/t-rs6000
5168 xmake_file=rs6000/x-lynx
5169 use_collect2=yes
5171 sh-*-elf*)
5172 tm_file=sh/elf.h
5173 float_format=sh
5175 sh-*-rtemself*)
5176 tmake_file="sh/t-sh t-rtems"
5177 tm_file=sh/rtemself.h
5178 float_format=sh
5180 sh-*-rtems*)
5181 tmake_file="sh/t-sh t-rtems"
5182 tm_file=sh/rtems.h
5183 float_format=sh
5185 sh-*-*)
5186 float_format=sh
5188 sparc-tti-*)
5189 tm_file=sparc/pbd.h
5190 xm_file="xm-alloca.h ${xm_file}"
5191 xm_defines=USG
5193 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5194 tm_file=sparc/vxsparc.h
5195 tmake_file=sparc/t-vxsparc
5196 use_collect2=yes
5197 thread_file='vxworks'
5199 sparc-*-aout*)
5200 tmake_file=sparc/t-sparcbare
5201 tm_file="sparc/aout.h libgloss.h"
5203 sparc-*-netbsd*)
5204 tm_file=sparc/netbsd.h
5205 tmake_file=t-netbsd
5207 sparc-*-openbsd*)
5208 # we need collect2 until our bug is fixed...
5209 use_collect2=yes
5211 sparc-*-bsd*)
5212 tm_file=sparc/bsd.h
5214 sparc-*-elf*)
5215 tm_file=sparc/elf.h
5216 tmake_file=sparc/t-elf
5217 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5218 #float_format=i128
5219 float_format=i64
5221 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5222 xm_file="${xm_file} sparc/xm-linux.h"
5223 tm_file=sparc/linux-aout.h
5224 xmake_file=x-linux
5225 gnu_ld=yes
5227 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5228 xm_file="${xm_file} sparc/xm-linux.h"
5229 xmake_file=x-linux
5230 tm_file=sparc/linux.h
5231 tmake_file="t-linux t-linux-gnulibc1"
5232 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5233 gnu_ld=yes
5235 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5236 xm_file="${xm_file} sparc/xm-linux.h"
5237 xmake_file=x-linux
5238 tm_file=sparc/linux.h
5239 tmake_file="t-linux"
5240 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5241 gnu_ld=yes
5242 if test x$enable_threads = xyes; then
5243 thread_file='posix'
5246 sparc-*-lynxos*)
5247 if test x$gas = xyes
5248 then
5249 tm_file=sparc/lynx.h
5250 else
5251 tm_file=sparc/lynx-ng.h
5253 xm_file=sparc/xm-lynx.h
5254 tmake_file=sparc/t-sunos41
5255 xmake_file=x-lynx
5257 sparc-*-rtems*)
5258 tmake_file="sparc/t-sparcbare t-rtems"
5259 tm_file=sparc/rtems.h
5261 sparcv9-*-solaris2*)
5262 tm_file=sparc/sol2-sld-64.h
5263 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5264 xm_defines="USG POSIX"
5265 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5266 xmake_file=sparc/x-sysv4
5267 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5268 float_format=none
5269 if test x${enable_threads} = x ; then
5270 enable_threads=$have_pthread_h
5271 if test x${enable_threads} = x ; then
5272 enable_threads=$have_thread_h
5275 if test x${enable_threads} = xyes ; then
5276 if test x${have_pthread_h} = xyes ; then
5277 thread_file='posix'
5278 else
5279 thread_file='solaris'
5283 sparc-hal-solaris2*)
5284 xm_file=sparc/xm-sol2.h
5285 tm_file="sparc/sol2.h sparc/hal.h"
5286 tmake_file="sparc/t-halos sparc/t-sol2"
5287 xmake_file=sparc/x-sysv4
5288 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5289 fixincludes=fixinc.svr4
5290 broken_install=yes
5292 sparc-*-solaris2*)
5293 if test x$gnu_ld = xyes
5294 then
5295 tm_file=sparc/sol2.h
5296 else
5297 tm_file=sparc/sol2-sld.h
5299 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5300 xm_defines="USG POSIX"
5301 tmake_file=sparc/t-sol2
5302 xmake_file=sparc/x-sysv4
5303 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5304 case $machine in
5305 *-*-solaris2.[0-4])
5306 float_format=i128
5309 float_format=none
5311 esac
5312 if test x${enable_threads} = x; then
5313 enable_threads=$have_pthread_h
5314 if test x${enable_threads} = x; then
5315 enable_threads=$have_thread_h
5318 if test x${enable_threads} = xyes; then
5319 if test x${have_pthread_h} = xyes; then
5320 thread_file='posix'
5321 else
5322 thread_file='solaris'
5326 sparc-*-sunos4.0*)
5327 tm_file=sparc/sunos4.h
5328 tmake_file=sparc/t-sunos40
5329 use_collect2=yes
5331 sparc-*-sunos4*)
5332 tm_file=sparc/sunos4.h
5333 tmake_file=sparc/t-sunos41
5334 use_collect2=yes
5335 if test x$gas = xyes; then
5336 tm_file="${tm_file} sparc/sun4gas.h"
5339 sparc-*-sunos3*)
5340 tm_file=sparc/sun4o3.h
5341 use_collect2=yes
5343 sparc-*-sysv4*)
5344 tm_file=sparc/sysv4.h
5345 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5346 xm_defines="USG POSIX"
5347 tmake_file=t-svr4
5348 xmake_file=sparc/x-sysv4
5349 extra_parts="crtbegin.o crtend.o"
5351 sparc-*-vxsim*)
5352 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5353 xm_defines="USG POSIX"
5354 tm_file=sparc/vxsim.h
5355 tmake_file=sparc/t-vxsparc
5356 xmake_file=sparc/x-sysv4
5358 sparclet-*-aout*)
5359 tm_file="sparc/splet.h libgloss.h"
5360 tmake_file=sparc/t-splet
5362 sparclite-*-coff*)
5363 tm_file="sparc/litecoff.h libgloss.h"
5364 tmake_file=sparc/t-sparclite
5366 sparclite-*-aout*)
5367 tm_file="sparc/lite.h aoutos.h libgloss.h"
5368 tmake_file=sparc/t-sparclite
5370 sparc64-*-aout*)
5371 tmake_file=sparc/t-sp64
5372 tm_file=sparc/sp64-aout.h
5374 sparc64-*-elf*)
5375 tmake_file=sparc/t-sp64
5376 tm_file=sparc/sp64-elf.h
5377 extra_parts="crtbegin.o crtend.o"
5379 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5380 tmake_file="t-linux sparc/t-linux64"
5381 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5382 tm_file=sparc/linux64.h
5383 xmake_file=x-linux
5384 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5385 gnu_ld=yes
5387 # This hasn't been upgraded to GCC 2.
5388 # tahoe-harris-*) # Harris tahoe, using COFF.
5389 # tm_file=tahoe/harris.h
5390 # ;;
5391 # tahoe-*-bsd*) # tahoe running BSD
5392 # ;;
5393 thumb-*-coff* | thumbel-*-coff*)
5394 tm_file=arm/tcoff.h
5395 out_file=arm/thumb.c
5396 xm_file=arm/xm-thumb.h
5397 md_file=arm/thumb.md
5398 tmake_file=arm/t-thumb
5400 # This hasn't been upgraded to GCC 2.
5401 # tron-*-*)
5402 # cpu_type=gmicro
5403 # use_collect2=yes
5404 # ;;
5405 v850-*-*)
5406 cpu_type=v850
5407 tm_file="v850/v850.h"
5408 xm_file="v850/xm-v850.h"
5409 tmake_file=v850/t-v850
5410 if test x$stabs = xyes
5411 then
5412 tm_file="${tm_file} dbx.h"
5414 use_collect2=no
5416 vax-*-bsd*) # vaxen running BSD
5417 use_collect2=yes
5418 float_format=vax
5420 vax-*-sysv*) # vaxen running system V
5421 tm_file="${tm_file} vax/vaxv.h"
5422 xm_defines=USG
5423 float_format=vax
5425 vax-*-netbsd*)
5426 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5427 tmake_file=t-netbsd
5428 float_format=vax
5430 vax-*-openbsd*)
5431 tmake_file="${tm_file} vax/t-openbsd"
5433 vax-*-ultrix*) # vaxen running ultrix
5434 tm_file="${tm_file} vax/ultrix.h"
5435 use_collect2=yes
5436 float_format=vax
5438 vax-*-vms*) # vaxen running VMS
5439 xm_file=vax/xm-vms.h
5440 tm_file=vax/vms.h
5441 float_format=vax
5443 vax-*-*) # vax default entry
5444 float_format=vax
5446 we32k-att-sysv*)
5447 xm_file="${xm_file} xm-svr3"
5448 use_collect2=yes
5451 echo "Configuration $machine not supported" 1>&2
5452 exit 1
5454 esac
5456 case $machine in
5457 *-*-linux-gnu*)
5458 ;; # Existing GNU/Linux systems do not use the GNU setup.
5459 *-*-gnu*)
5460 # On the GNU system, the setup is just about the same on
5461 # each different CPU. The specific machines that GNU
5462 # supports are matched above and just set $cpu_type.
5463 xm_file="xm-gnu.h ${xm_file}"
5464 tm_file=${cpu_type}/gnu.h
5465 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5466 # GNU always uses ELF.
5467 elf=yes
5468 # GNU tools are the only tools.
5469 gnu_ld=yes
5470 gas=yes
5471 xmake_file=x-linux # These details are the same as Linux.
5472 tmake_file=t-gnu # These are not.
5474 *-*-sysv4*)
5475 xmake_try_sysv=x-sysv
5476 install_headers_dir=install-headers-cpio
5478 *-*-sysv*)
5479 install_headers_dir=install-headers-cpio
5481 esac
5483 # Distinguish i[34567]86
5484 # Also, do not run mips-tfile on MIPS if using gas.
5485 # Process --with-cpu= for PowerPC/rs6000
5486 target_cpu_default2=
5487 case $machine in
5488 i486-*-*)
5489 target_cpu_default2=1
5491 i586-*-*)
5492 target_cpu_default2=2
5494 i686-*-* | i786-*-*)
5495 target_cpu_default2=3
5497 alpha*-*-*)
5498 case $machine in
5499 alphaev6*)
5500 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
5502 alphapca56*)
5503 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5505 alphaev56*)
5506 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5508 alphaev5*)
5509 target_cpu_default2="MASK_CPU_EV5"
5511 esac
5513 if test x$gas = xyes
5514 then
5515 if test "$target_cpu_default2" = ""
5516 then
5517 target_cpu_default2="MASK_GAS"
5518 else
5519 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5523 arm*-*-*)
5524 case "x$with_cpu" in
5526 # The most generic
5527 target_cpu_default2="TARGET_CPU_generic"
5530 # Distinguish cores, and major variants
5531 # arm7m doesn't exist, but D & I don't affect code
5532 xarm23678 | xarm250 | xarm67010 \
5533 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5534 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5535 | xstrongarm | xstrongarm110 | xstrongarm1100)
5536 target_cpu_default2="TARGET_CPU_$with_cpu"
5539 xyes | xno)
5540 echo "--with-cpu must be passed a value" 1>&2
5541 exit 1
5545 if test x$pass2done = xyes
5546 then
5547 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5548 exit 1
5551 esac
5554 mips*-*-ecoff* | mips*-*-elf*)
5555 if test x$gas = xyes
5556 then
5557 if test x$gnu_ld = xyes
5558 then
5559 target_cpu_default2=20
5560 else
5561 target_cpu_default2=16
5565 mips*-*-*)
5566 if test x$gas = xyes
5567 then
5568 target_cpu_default2=16
5571 powerpc*-*-* | rs6000-*-*)
5572 case "x$with_cpu" in
5576 xcommon | xpower | xpower2 | xpowerpc | xrios \
5577 | xrios1 | xrios2 | xrsc | xrsc1 \
5578 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5579 | xec603e | x740 | x750 | x401 \
5580 | x403 | x505 | x801 | x821 | x823 | x860)
5581 target_cpu_default2="\"$with_cpu\""
5584 xyes | xno)
5585 echo "--with-cpu must be passed a value" 1>&2
5586 exit 1
5590 if test x$pass2done = xyes
5591 then
5592 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5593 exit 1
5596 esac
5598 sparc*-*-*)
5599 case ".$with_cpu" in
5601 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5603 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5604 target_cpu_default2="TARGET_CPU_$with_cpu"
5607 if test x$pass2done = xyes
5608 then
5609 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5610 exit 1
5613 esac
5615 esac
5617 if test "$target_cpu_default2" != ""
5618 then
5619 if test "$target_cpu_default" != ""
5620 then
5621 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5622 else
5623 target_cpu_default=$target_cpu_default2
5627 # No need for collect2 if we have the GNU linker.
5628 # Actually, there is now; GNU ld doesn't handle the EH info or
5629 # collecting for shared libraries.
5630 #case x$gnu_ld in
5631 #xyes)
5632 # use_collect2=
5633 # ;;
5634 #esac
5636 # Save data on machine being used to compile GCC in build_xm_file.
5637 # Save data on host machine in vars host_xm_file and host_xmake_file.
5638 if test x$pass1done = x
5639 then
5640 if test x"$xm_file" = x
5641 then build_xm_file=$cpu_type/xm-$cpu_type.h
5642 else build_xm_file=$xm_file
5644 build_xm_defines=$xm_defines
5645 build_install_headers_dir=$install_headers_dir
5646 build_exeext=$exeext
5647 pass1done=yes
5648 else
5649 if test x$pass2done = x
5650 then
5651 if test x"$xm_file" = x
5652 then host_xm_file=$cpu_type/xm-$cpu_type.h
5653 else host_xm_file=$xm_file
5655 host_xm_defines=$xm_defines
5656 if test x"$xmake_file" = x
5657 then xmake_file=$cpu_type/x-$cpu_type
5659 host_xmake_file="$xmake_file"
5660 host_truncate_target=$truncate_target
5661 host_extra_gcc_objs=$extra_gcc_objs
5662 host_extra_objs=$extra_host_objs
5663 host_exeext=$exeext
5664 pass2done=yes
5667 done
5669 extra_objs="${host_extra_objs} ${extra_objs}"
5671 # Default the target-machine variables that were not explicitly set.
5672 if test x"$tm_file" = x
5673 then tm_file=$cpu_type/$cpu_type.h; fi
5675 if test x$extra_headers = x
5676 then extra_headers=; fi
5678 if test x"$xm_file" = x
5679 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5681 if test x$md_file = x
5682 then md_file=$cpu_type/$cpu_type.md; fi
5684 if test x$out_file = x
5685 then out_file=$cpu_type/$cpu_type.c; fi
5687 if test x"$tmake_file" = x
5688 then tmake_file=$cpu_type/t-$cpu_type
5691 if test x"$dwarf2" = xyes
5692 then tm_file="tm-dwarf2.h $tm_file"
5695 if test x$float_format = x
5696 then float_format=i64
5699 if test $float_format = none
5700 then float_h_file=Makefile.in
5701 else float_h_file=float-$float_format.h
5704 if test x$enable_haifa = x
5705 then
5706 case $target in
5707 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5708 enable_haifa=yes;;
5709 esac
5712 # Handle cpp installation.
5713 if [ x$enable_cpp != x ]
5714 then
5715 tmake_file="$tmake_file t-install-cpp"
5718 # Say what files are being used for the output code and MD file.
5719 echo "Using \`$srcdir/config/$out_file' to output insns."
5720 echo "Using \`$srcdir/config/$md_file' as machine description file."
5722 count=a
5723 for f in $tm_file; do
5724 count=${count}x
5725 done
5726 if test $count = ax; then
5727 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5728 else
5729 echo "Using the following target machine macro files:"
5730 for f in $tm_file; do
5731 echo " $srcdir/config/$f"
5732 done
5735 count=a
5736 for f in $host_xm_file; do
5737 count=${count}x
5738 done
5739 if test $count = ax; then
5740 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5741 else
5742 echo "Using the following host machine macro files:"
5743 for f in $host_xm_file; do
5744 echo " $srcdir/config/$f"
5745 done
5748 if test "$host_xm_file" != "$build_xm_file"; then
5749 count=a
5750 for f in $build_xm_file; do
5751 count=${count}x
5752 done
5753 if test $count = ax; then
5754 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5755 else
5756 echo "Using the following build machine macro files:"
5757 for f in $build_xm_file; do
5758 echo " $srcdir/config/$f"
5759 done
5763 if test x$thread_file = x; then
5764 if test x$target_thread_file != x; then
5765 thread_file=$target_thread_file
5766 else
5767 thread_file='single'
5771 # Set up the header files.
5772 # $links is the list of header files to create.
5773 # $vars is the list of shell variables with file names to include.
5774 # auto-host.h is the file containing items generated by autoconf and is
5775 # the first file included by config.h.
5776 null_defines=
5777 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
5779 # If host=build, it is correct to have hconfig include auto-host.h
5780 # as well. If host!=build, we are in error and need to do more
5781 # work to find out the build config parameters.
5782 if test x$host = x$build
5783 then
5784 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
5785 else
5786 # We create a subdir, then run autoconf in the subdir.
5787 # To prevent recursion we set host and build for the new
5788 # invocation of configure to the build for this invocation
5789 # of configure.
5790 tempdir=build.$$
5791 rm -rf $tempdir
5792 mkdir $tempdir
5793 cd $tempdir
5794 case ${srcdir} in
5795 /*) realsrcdir=${srcdir};;
5796 *) realsrcdir=../${srcdir};;
5797 esac
5798 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5799 --target=$target --host=$build --build=$build
5801 # We just finished tests for the build machine, so rename
5802 # the file auto-build.h in the gcc directory.
5803 mv auto-host.h ../auto-build.h
5804 cd ..
5805 rm -rf $tempdir
5806 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
5809 xm_file="gansidecl.h ${xm_file}"
5810 tm_file="gansidecl.h ${tm_file}"
5812 vars="host_xm_file tm_file xm_file build_xm_file"
5813 links="config.h tm.h tconfig.h hconfig.h"
5814 defines="host_xm_defines null_defines xm_defines build_xm_defines"
5816 rm -f config.bak
5817 if test -f config.status; then mv -f config.status config.bak; fi
5819 # Make the links.
5820 while test -n "$vars"
5822 set $vars; var=$1; shift; vars=$*
5823 set $links; link=$1; shift; links=$*
5824 set $defines; define=$1; shift; defines=$*
5826 rm -f $link
5828 # Define TARGET_CPU_DEFAULT if the system wants one.
5829 # This substitutes for lots of *.h files.
5830 if test "$target_cpu_default" != "" -a $link = tm.h
5831 then
5832 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5835 for file in `eval echo '$'$var`; do
5836 case $file in
5837 auto-config.h)
5840 echo '#ifdef IN_GCC' >>$link
5842 esac
5843 echo "#include \"$file\"" >>$link
5844 case $file in
5845 auto-config.h)
5848 echo '#endif' >>$link
5850 esac
5851 done
5853 for def in `eval echo '$'$define`; do
5854 echo "#ifndef $def" >>$link
5855 echo "#define $def" >>$link
5856 echo "#endif" >>$link
5857 done
5858 done
5860 # Truncate the target if necessary
5861 if test x$host_truncate_target != x; then
5862 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5865 # Get the version trigger filename from the toplevel
5866 if test "${with_gcc_version_trigger+set}" = set; then
5867 gcc_version_trigger=$with_gcc_version_trigger
5868 else
5869 gcc_version_trigger=${srcdir}/version.c
5871 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5873 # Internationalization
5874 PACKAGE=gcc
5875 VERSION="$gcc_version"
5876 cat >> confdefs.h <<EOF
5877 #define PACKAGE "$PACKAGE"
5880 cat >> confdefs.h <<EOF
5881 #define VERSION "$VERSION"
5887 ALL_LINGUAS="en_UK"
5889 # NLS support is still experimental, so disable it by default for now.
5890 # Check whether --enable-nls or --disable-nls was given.
5891 if test "${enable_nls+set}" = set; then
5892 enableval="$enable_nls"
5894 else
5895 enable_nls=no
5900 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
5901 echo "configure:5902: checking for strerror in -lcposix" >&5
5902 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
5903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5904 echo $ac_n "(cached) $ac_c" 1>&6
5905 else
5906 ac_save_LIBS="$LIBS"
5907 LIBS="-lcposix $LIBS"
5908 cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5911 /* Override any gcc2 internal prototype to avoid an error. */
5912 /* We use char because int might match the return type of a gcc2
5913 builtin and then its argument prototype would still apply. */
5914 char strerror();
5916 int main() {
5917 strerror()
5918 ; return 0; }
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5921 rm -rf conftest*
5922 eval "ac_cv_lib_$ac_lib_var=yes"
5923 else
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5926 rm -rf conftest*
5927 eval "ac_cv_lib_$ac_lib_var=no"
5929 rm -f conftest*
5930 LIBS="$ac_save_LIBS"
5933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5934 echo "$ac_t""yes" 1>&6
5935 LIBS="$LIBS -lcposix"
5936 else
5937 echo "$ac_t""no" 1>&6
5942 echo $ac_n "checking for working const""... $ac_c" 1>&6
5943 echo "configure:5944: checking for working const" >&5
5944 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5946 else
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5951 int main() {
5953 /* Ultrix mips cc rejects this. */
5954 typedef int charset[2]; const charset x;
5955 /* SunOS 4.1.1 cc rejects this. */
5956 char const *const *ccp;
5957 char **p;
5958 /* NEC SVR4.0.2 mips cc rejects this. */
5959 struct point {int x, y;};
5960 static struct point const zero = {0,0};
5961 /* AIX XL C 1.02.0.0 rejects this.
5962 It does not let you subtract one const X* pointer from another in an arm
5963 of an if-expression whose if-part is not a constant expression */
5964 const char *g = "string";
5965 ccp = &g + (g ? g-g : 0);
5966 /* HPUX 7.0 cc rejects these. */
5967 ++ccp;
5968 p = (char**) ccp;
5969 ccp = (char const *const *) p;
5970 { /* SCO 3.2v4 cc rejects this. */
5971 char *t;
5972 char const *s = 0 ? (char *) 0 : (char const *) 0;
5974 *t++ = 0;
5976 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5977 int x[] = {25, 17};
5978 const int *foo = &x[0];
5979 ++foo;
5981 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5982 typedef const int *iptr;
5983 iptr p = 0;
5984 ++p;
5986 { /* AIX XL C 1.02.0.0 rejects this saying
5987 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5988 struct s { int j; const int *ap[3]; };
5989 struct s *b; b->j = 5;
5991 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5992 const int foo = 10;
5995 ; return 0; }
5997 if { (eval echo configure:5998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5998 rm -rf conftest*
5999 ac_cv_c_const=yes
6000 else
6001 echo "configure: failed program was:" >&5
6002 cat conftest.$ac_ext >&5
6003 rm -rf conftest*
6004 ac_cv_c_const=no
6006 rm -f conftest*
6009 echo "$ac_t""$ac_cv_c_const" 1>&6
6010 if test $ac_cv_c_const = no; then
6011 cat >> confdefs.h <<\EOF
6012 #define const
6017 echo $ac_n "checking for inline""... $ac_c" 1>&6
6018 echo "configure:6019: checking for inline" >&5
6019 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6020 echo $ac_n "(cached) $ac_c" 1>&6
6021 else
6022 ac_cv_c_inline=no
6023 for ac_kw in inline __inline__ __inline; do
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6028 int main() {
6029 } $ac_kw foo() {
6030 ; return 0; }
6032 if { (eval echo configure:6033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6033 rm -rf conftest*
6034 ac_cv_c_inline=$ac_kw; break
6035 else
6036 echo "configure: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6039 rm -f conftest*
6040 done
6044 echo "$ac_t""$ac_cv_c_inline" 1>&6
6045 case "$ac_cv_c_inline" in
6046 inline | yes) ;;
6047 no) cat >> confdefs.h <<\EOF
6048 #define inline
6051 *) cat >> confdefs.h <<EOF
6052 #define inline $ac_cv_c_inline
6055 esac
6057 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6058 echo "configure:6059: checking for off_t" >&5
6059 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6061 else
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 #include <sys/types.h>
6066 #if STDC_HEADERS
6067 #include <stdlib.h>
6068 #include <stddef.h>
6069 #endif
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6073 rm -rf conftest*
6074 ac_cv_type_off_t=yes
6075 else
6076 rm -rf conftest*
6077 ac_cv_type_off_t=no
6079 rm -f conftest*
6082 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6083 if test $ac_cv_type_off_t = no; then
6084 cat >> confdefs.h <<\EOF
6085 #define off_t long
6090 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6091 echo "configure:6092: checking for size_t" >&5
6092 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6094 else
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 #include <sys/types.h>
6099 #if STDC_HEADERS
6100 #include <stdlib.h>
6101 #include <stddef.h>
6102 #endif
6104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6105 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6106 rm -rf conftest*
6107 ac_cv_type_size_t=yes
6108 else
6109 rm -rf conftest*
6110 ac_cv_type_size_t=no
6112 rm -f conftest*
6115 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6116 if test $ac_cv_type_size_t = no; then
6117 cat >> confdefs.h <<\EOF
6118 #define size_t unsigned
6123 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6124 # for constant arguments. Useless!
6125 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6126 echo "configure:6127: checking for working alloca.h" >&5
6127 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6129 else
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 #include <alloca.h>
6134 int main() {
6135 char *p = alloca(2 * sizeof(int));
6136 ; return 0; }
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 rm -rf conftest*
6140 ac_cv_header_alloca_h=yes
6141 else
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6144 rm -rf conftest*
6145 ac_cv_header_alloca_h=no
6147 rm -f conftest*
6150 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6151 if test $ac_cv_header_alloca_h = yes; then
6152 cat >> confdefs.h <<\EOF
6153 #define HAVE_ALLOCA_H 1
6158 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6159 echo "configure:6160: checking for alloca" >&5
6160 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6162 else
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6167 #ifdef __GNUC__
6168 # define alloca __builtin_alloca
6169 #else
6170 # ifdef _MSC_VER
6171 # include <malloc.h>
6172 # define alloca _alloca
6173 # else
6174 # if HAVE_ALLOCA_H
6175 # include <alloca.h>
6176 # else
6177 # ifdef _AIX
6178 #pragma alloca
6179 # else
6180 # ifndef alloca /* predefined by HP cc +Olibcalls */
6181 char *alloca ();
6182 # endif
6183 # endif
6184 # endif
6185 # endif
6186 #endif
6188 int main() {
6189 char *p = (char *) alloca(1);
6190 ; return 0; }
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6193 rm -rf conftest*
6194 ac_cv_func_alloca_works=yes
6195 else
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6198 rm -rf conftest*
6199 ac_cv_func_alloca_works=no
6201 rm -f conftest*
6204 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6205 if test $ac_cv_func_alloca_works = yes; then
6206 cat >> confdefs.h <<\EOF
6207 #define HAVE_ALLOCA 1
6212 if test $ac_cv_func_alloca_works = no; then
6213 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6214 # that cause trouble. Some versions do not even contain alloca or
6215 # contain a buggy version. If you still want to use their alloca,
6216 # use ar to extract alloca.o from them instead of compiling alloca.c.
6217 ALLOCA=alloca.${ac_objext}
6218 cat >> confdefs.h <<\EOF
6219 #define C_ALLOCA 1
6223 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6224 echo "configure:6225: checking whether alloca needs Cray hooks" >&5
6225 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6226 echo $ac_n "(cached) $ac_c" 1>&6
6227 else
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6231 #if defined(CRAY) && ! defined(CRAY2)
6232 webecray
6233 #else
6234 wenotbecray
6235 #endif
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 egrep "webecray" >/dev/null 2>&1; then
6240 rm -rf conftest*
6241 ac_cv_os_cray=yes
6242 else
6243 rm -rf conftest*
6244 ac_cv_os_cray=no
6246 rm -f conftest*
6250 echo "$ac_t""$ac_cv_os_cray" 1>&6
6251 if test $ac_cv_os_cray = yes; then
6252 for ac_func in _getb67 GETB67 getb67; do
6253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6254 echo "configure:6255: checking for $ac_func" >&5
6255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6257 else
6258 cat > conftest.$ac_ext <<EOF
6259 #line 6260 "configure"
6260 #include "confdefs.h"
6261 /* System header to define __stub macros and hopefully few prototypes,
6262 which can conflict with char $ac_func(); below. */
6263 #include <assert.h>
6264 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6267 char $ac_func();
6269 int main() {
6271 /* The GNU C library defines this for functions which it implements
6272 to always fail with ENOSYS. Some functions are actually named
6273 something starting with __ and the normal name is an alias. */
6274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6275 choke me
6276 #else
6277 $ac_func();
6278 #endif
6280 ; return 0; }
6282 if { (eval echo configure:6283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6283 rm -rf conftest*
6284 eval "ac_cv_func_$ac_func=yes"
6285 else
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6288 rm -rf conftest*
6289 eval "ac_cv_func_$ac_func=no"
6291 rm -f conftest*
6294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 cat >> confdefs.h <<EOF
6297 #define CRAY_STACKSEG_END $ac_func
6300 break
6301 else
6302 echo "$ac_t""no" 1>&6
6305 done
6308 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6309 echo "configure:6310: checking stack direction for C alloca" >&5
6310 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6311 echo $ac_n "(cached) $ac_c" 1>&6
6312 else
6313 if test "$cross_compiling" = yes; then
6314 ac_cv_c_stack_direction=0
6315 else
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 find_stack_direction ()
6321 static char *addr = 0;
6322 auto char dummy;
6323 if (addr == 0)
6325 addr = &dummy;
6326 return find_stack_direction ();
6328 else
6329 return (&dummy > addr) ? 1 : -1;
6331 main ()
6333 exit (find_stack_direction() < 0);
6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6337 then
6338 ac_cv_c_stack_direction=1
6339 else
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6342 rm -fr conftest*
6343 ac_cv_c_stack_direction=-1
6345 rm -fr conftest*
6350 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6351 cat >> confdefs.h <<EOF
6352 #define STACK_DIRECTION $ac_cv_c_stack_direction
6357 for ac_hdr in unistd.h
6359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6361 echo "configure:6362: checking for $ac_hdr" >&5
6362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6363 echo $ac_n "(cached) $ac_c" 1>&6
6364 else
6365 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6368 #include <$ac_hdr>
6370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6371 { (eval echo configure:6372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6373 if test -z "$ac_err"; then
6374 rm -rf conftest*
6375 eval "ac_cv_header_$ac_safe=yes"
6376 else
6377 echo "$ac_err" >&5
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6380 rm -rf conftest*
6381 eval "ac_cv_header_$ac_safe=no"
6383 rm -f conftest*
6385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6388 cat >> confdefs.h <<EOF
6389 #define $ac_tr_hdr 1
6392 else
6393 echo "$ac_t""no" 1>&6
6395 done
6397 for ac_func in getpagesize
6399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6400 echo "configure:6401: checking for $ac_func" >&5
6401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6403 else
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407 /* System header to define __stub macros and hopefully few prototypes,
6408 which can conflict with char $ac_func(); below. */
6409 #include <assert.h>
6410 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6413 char $ac_func();
6415 int main() {
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6421 choke me
6422 #else
6423 $ac_func();
6424 #endif
6426 ; return 0; }
6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 rm -rf conftest*
6430 eval "ac_cv_func_$ac_func=yes"
6431 else
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6434 rm -rf conftest*
6435 eval "ac_cv_func_$ac_func=no"
6437 rm -f conftest*
6440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6441 echo "$ac_t""yes" 1>&6
6442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6443 cat >> confdefs.h <<EOF
6444 #define $ac_tr_func 1
6447 else
6448 echo "$ac_t""no" 1>&6
6450 done
6452 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6453 echo "configure:6454: checking for working mmap" >&5
6454 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6456 else
6457 if test "$cross_compiling" = yes; then
6458 ac_cv_func_mmap_fixed_mapped=no
6459 else
6460 cat > conftest.$ac_ext <<EOF
6461 #line 6462 "configure"
6462 #include "confdefs.h"
6464 /* Thanks to Mike Haertel and Jim Avera for this test.
6465 Here is a matrix of mmap possibilities:
6466 mmap private not fixed
6467 mmap private fixed at somewhere currently unmapped
6468 mmap private fixed at somewhere already mapped
6469 mmap shared not fixed
6470 mmap shared fixed at somewhere currently unmapped
6471 mmap shared fixed at somewhere already mapped
6472 For private mappings, we should verify that changes cannot be read()
6473 back from the file, nor mmap's back from the file at a different
6474 address. (There have been systems where private was not correctly
6475 implemented like the infamous i386 svr4.0, and systems where the
6476 VM page cache was not coherent with the filesystem buffer cache
6477 like early versions of FreeBSD and possibly contemporary NetBSD.)
6478 For shared mappings, we should conversely verify that changes get
6479 propogated back to all the places they're supposed to be.
6481 Grep wants private fixed already mapped.
6482 The main things grep needs to know about mmap are:
6483 * does it exist and is it safe to write into the mmap'd area
6484 * how to use it (BSD variants) */
6485 #include <sys/types.h>
6486 #include <fcntl.h>
6487 #include <sys/mman.h>
6489 /* This mess was copied from the GNU getpagesize.h. */
6490 #ifndef HAVE_GETPAGESIZE
6491 # ifdef HAVE_UNISTD_H
6492 # include <unistd.h>
6493 # endif
6495 /* Assume that all systems that can run configure have sys/param.h. */
6496 # ifndef HAVE_SYS_PARAM_H
6497 # define HAVE_SYS_PARAM_H 1
6498 # endif
6500 # ifdef _SC_PAGESIZE
6501 # define getpagesize() sysconf(_SC_PAGESIZE)
6502 # else /* no _SC_PAGESIZE */
6503 # ifdef HAVE_SYS_PARAM_H
6504 # include <sys/param.h>
6505 # ifdef EXEC_PAGESIZE
6506 # define getpagesize() EXEC_PAGESIZE
6507 # else /* no EXEC_PAGESIZE */
6508 # ifdef NBPG
6509 # define getpagesize() NBPG * CLSIZE
6510 # ifndef CLSIZE
6511 # define CLSIZE 1
6512 # endif /* no CLSIZE */
6513 # else /* no NBPG */
6514 # ifdef NBPC
6515 # define getpagesize() NBPC
6516 # else /* no NBPC */
6517 # ifdef PAGESIZE
6518 # define getpagesize() PAGESIZE
6519 # endif /* PAGESIZE */
6520 # endif /* no NBPC */
6521 # endif /* no NBPG */
6522 # endif /* no EXEC_PAGESIZE */
6523 # else /* no HAVE_SYS_PARAM_H */
6524 # define getpagesize() 8192 /* punt totally */
6525 # endif /* no HAVE_SYS_PARAM_H */
6526 # endif /* no _SC_PAGESIZE */
6528 #endif /* no HAVE_GETPAGESIZE */
6530 #ifdef __cplusplus
6531 extern "C" { void *malloc(unsigned); }
6532 #else
6533 char *malloc();
6534 #endif
6537 main()
6539 char *data, *data2, *data3;
6540 int i, pagesize;
6541 int fd;
6543 pagesize = getpagesize();
6546 * First, make a file with some known garbage in it.
6548 data = malloc(pagesize);
6549 if (!data)
6550 exit(1);
6551 for (i = 0; i < pagesize; ++i)
6552 *(data + i) = rand();
6553 umask(0);
6554 fd = creat("conftestmmap", 0600);
6555 if (fd < 0)
6556 exit(1);
6557 if (write(fd, data, pagesize) != pagesize)
6558 exit(1);
6559 close(fd);
6562 * Next, try to mmap the file at a fixed address which
6563 * already has something else allocated at it. If we can,
6564 * also make sure that we see the same garbage.
6566 fd = open("conftestmmap", O_RDWR);
6567 if (fd < 0)
6568 exit(1);
6569 data2 = malloc(2 * pagesize);
6570 if (!data2)
6571 exit(1);
6572 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6573 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6574 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6575 exit(1);
6576 for (i = 0; i < pagesize; ++i)
6577 if (*(data + i) != *(data2 + i))
6578 exit(1);
6581 * Finally, make sure that changes to the mapped area
6582 * do not percolate back to the file as seen by read().
6583 * (This is a bug on some variants of i386 svr4.0.)
6585 for (i = 0; i < pagesize; ++i)
6586 *(data2 + i) = *(data2 + i) + 1;
6587 data3 = malloc(pagesize);
6588 if (!data3)
6589 exit(1);
6590 if (read(fd, data3, pagesize) != pagesize)
6591 exit(1);
6592 for (i = 0; i < pagesize; ++i)
6593 if (*(data + i) != *(data3 + i))
6594 exit(1);
6595 close(fd);
6596 unlink("conftestmmap");
6597 exit(0);
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6602 then
6603 ac_cv_func_mmap_fixed_mapped=yes
6604 else
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 rm -fr conftest*
6608 ac_cv_func_mmap_fixed_mapped=no
6610 rm -fr conftest*
6615 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6616 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6617 cat >> confdefs.h <<\EOF
6618 #define HAVE_MMAP 1
6624 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6625 unistd.h sys/param.h
6627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6629 echo "configure:6630: checking for $ac_hdr" >&5
6630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6631 echo $ac_n "(cached) $ac_c" 1>&6
6632 else
6633 cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 #include <$ac_hdr>
6638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6639 { (eval echo configure:6640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6641 if test -z "$ac_err"; then
6642 rm -rf conftest*
6643 eval "ac_cv_header_$ac_safe=yes"
6644 else
6645 echo "$ac_err" >&5
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6648 rm -rf conftest*
6649 eval "ac_cv_header_$ac_safe=no"
6651 rm -f conftest*
6653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6654 echo "$ac_t""yes" 1>&6
6655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6656 cat >> confdefs.h <<EOF
6657 #define $ac_tr_hdr 1
6660 else
6661 echo "$ac_t""no" 1>&6
6663 done
6665 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6666 strdup __argz_count __argz_stringify __argz_next
6668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6669 echo "configure:6670: checking for $ac_func" >&5
6670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6671 echo $ac_n "(cached) $ac_c" 1>&6
6672 else
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6676 /* System header to define __stub macros and hopefully few prototypes,
6677 which can conflict with char $ac_func(); below. */
6678 #include <assert.h>
6679 /* Override any gcc2 internal prototype to avoid an error. */
6680 /* We use char because int might match the return type of a gcc2
6681 builtin and then its argument prototype would still apply. */
6682 char $ac_func();
6684 int main() {
6686 /* The GNU C library defines this for functions which it implements
6687 to always fail with ENOSYS. Some functions are actually named
6688 something starting with __ and the normal name is an alias. */
6689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6690 choke me
6691 #else
6692 $ac_func();
6693 #endif
6695 ; return 0; }
6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 rm -rf conftest*
6699 eval "ac_cv_func_$ac_func=yes"
6700 else
6701 echo "configure: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6703 rm -rf conftest*
6704 eval "ac_cv_func_$ac_func=no"
6706 rm -f conftest*
6709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6712 cat >> confdefs.h <<EOF
6713 #define $ac_tr_func 1
6716 else
6717 echo "$ac_t""no" 1>&6
6719 done
6722 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6723 for ac_func in stpcpy
6725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6726 echo "configure:6727: checking for $ac_func" >&5
6727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6729 else
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6733 /* System header to define __stub macros and hopefully few prototypes,
6734 which can conflict with char $ac_func(); below. */
6735 #include <assert.h>
6736 /* Override any gcc2 internal prototype to avoid an error. */
6737 /* We use char because int might match the return type of a gcc2
6738 builtin and then its argument prototype would still apply. */
6739 char $ac_func();
6741 int main() {
6743 /* The GNU C library defines this for functions which it implements
6744 to always fail with ENOSYS. Some functions are actually named
6745 something starting with __ and the normal name is an alias. */
6746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6747 choke me
6748 #else
6749 $ac_func();
6750 #endif
6752 ; return 0; }
6754 if { (eval echo configure:6755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6755 rm -rf conftest*
6756 eval "ac_cv_func_$ac_func=yes"
6757 else
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6760 rm -rf conftest*
6761 eval "ac_cv_func_$ac_func=no"
6763 rm -f conftest*
6766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6769 cat >> confdefs.h <<EOF
6770 #define $ac_tr_func 1
6773 else
6774 echo "$ac_t""no" 1>&6
6776 done
6779 if test "${ac_cv_func_stpcpy}" = "yes"; then
6780 cat >> confdefs.h <<\EOF
6781 #define HAVE_STPCPY 1
6786 if test $ac_cv_header_locale_h = yes; then
6787 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6788 echo "configure:6789: checking for LC_MESSAGES" >&5
6789 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6791 else
6792 cat > conftest.$ac_ext <<EOF
6793 #line 6794 "configure"
6794 #include "confdefs.h"
6795 #include <locale.h>
6796 int main() {
6797 return LC_MESSAGES
6798 ; return 0; }
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 rm -rf conftest*
6802 am_cv_val_LC_MESSAGES=yes
6803 else
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6806 rm -rf conftest*
6807 am_cv_val_LC_MESSAGES=no
6809 rm -f conftest*
6812 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
6813 if test $am_cv_val_LC_MESSAGES = yes; then
6814 cat >> confdefs.h <<\EOF
6815 #define HAVE_LC_MESSAGES 1
6820 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
6821 echo "configure:6822: checking whether NLS is requested" >&5
6822 # Check whether --enable-nls or --disable-nls was given.
6823 if test "${enable_nls+set}" = set; then
6824 enableval="$enable_nls"
6825 USE_NLS=$enableval
6826 else
6827 USE_NLS=yes
6830 echo "$ac_t""$USE_NLS" 1>&6
6833 USE_INCLUDED_LIBINTL=no
6835 if test "$USE_NLS" = "yes"; then
6836 cat >> confdefs.h <<\EOF
6837 #define ENABLE_NLS 1
6840 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
6841 echo "configure:6842: checking whether included gettext is requested" >&5
6842 # Check whether --with-included-gettext or --without-included-gettext was given.
6843 if test "${with_included_gettext+set}" = set; then
6844 withval="$with_included_gettext"
6845 nls_cv_force_use_gnu_gettext=$withval
6846 else
6847 nls_cv_force_use_gnu_gettext=no
6850 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6852 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6853 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6854 nls_cv_header_intl=
6855 nls_cv_header_libgt=
6856 CATOBJEXT=NONE
6858 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6859 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6860 echo "configure:6861: checking for libintl.h" >&5
6861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6863 else
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 #include <libintl.h>
6869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6870 { (eval echo configure:6871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6872 if test -z "$ac_err"; then
6873 rm -rf conftest*
6874 eval "ac_cv_header_$ac_safe=yes"
6875 else
6876 echo "$ac_err" >&5
6877 echo "configure: failed program was:" >&5
6878 cat conftest.$ac_ext >&5
6879 rm -rf conftest*
6880 eval "ac_cv_header_$ac_safe=no"
6882 rm -f conftest*
6884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6885 echo "$ac_t""yes" 1>&6
6886 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
6887 echo "configure:6888: checking for gettext in libc" >&5
6888 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6890 else
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6894 #include <libintl.h>
6895 int main() {
6896 return (int) gettext ("")
6897 ; return 0; }
6899 if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6900 rm -rf conftest*
6901 gt_cv_func_gettext_libc=yes
6902 else
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6905 rm -rf conftest*
6906 gt_cv_func_gettext_libc=no
6908 rm -f conftest*
6911 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
6913 if test "$gt_cv_func_gettext_libc" != "yes"; then
6914 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
6915 echo "configure:6916: checking for bindtextdomain in -lintl" >&5
6916 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
6917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6919 else
6920 ac_save_LIBS="$LIBS"
6921 LIBS="-lintl $LIBS"
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6928 char bindtextdomain();
6930 int main() {
6931 bindtextdomain()
6932 ; return 0; }
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6935 rm -rf conftest*
6936 eval "ac_cv_lib_$ac_lib_var=yes"
6937 else
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6940 rm -rf conftest*
6941 eval "ac_cv_lib_$ac_lib_var=no"
6943 rm -f conftest*
6944 LIBS="$ac_save_LIBS"
6947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
6950 echo "configure:6951: checking for gettext in libintl" >&5
6951 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6953 else
6954 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
6955 echo "configure:6956: checking for gettext in -lintl" >&5
6956 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
6957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6959 else
6960 ac_save_LIBS="$LIBS"
6961 LIBS="-lintl $LIBS"
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6968 char gettext();
6970 int main() {
6971 gettext()
6972 ; return 0; }
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6975 rm -rf conftest*
6976 eval "ac_cv_lib_$ac_lib_var=yes"
6977 else
6978 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6980 rm -rf conftest*
6981 eval "ac_cv_lib_$ac_lib_var=no"
6983 rm -f conftest*
6984 LIBS="$ac_save_LIBS"
6987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6988 echo "$ac_t""yes" 1>&6
6989 gt_cv_func_gettext_libintl=yes
6990 else
6991 echo "$ac_t""no" 1>&6
6992 gt_cv_func_gettext_libintl=no
6997 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
6998 else
6999 echo "$ac_t""no" 1>&6
7004 if test "$gt_cv_func_gettext_libc" = "yes" \
7005 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7006 cat >> confdefs.h <<\EOF
7007 #define HAVE_GETTEXT 1
7010 # Extract the first word of "msgfmt", so it can be a program name with args.
7011 set dummy msgfmt; ac_word=$2
7012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7013 echo "configure:7014: checking for $ac_word" >&5
7014 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7015 echo $ac_n "(cached) $ac_c" 1>&6
7016 else
7017 case "$MSGFMT" in
7019 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7023 for ac_dir in $PATH; do
7024 test -z "$ac_dir" && ac_dir=.
7025 if test -f $ac_dir/$ac_word; then
7026 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7027 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7028 break
7031 done
7032 IFS="$ac_save_ifs"
7033 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7035 esac
7037 MSGFMT="$ac_cv_path_MSGFMT"
7038 if test -n "$MSGFMT"; then
7039 echo "$ac_t""$MSGFMT" 1>&6
7040 else
7041 echo "$ac_t""no" 1>&6
7043 if test "$MSGFMT" != "no"; then
7044 for ac_func in dcgettext
7046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7047 echo "configure:7048: checking for $ac_func" >&5
7048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7050 else
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7054 /* System header to define __stub macros and hopefully few prototypes,
7055 which can conflict with char $ac_func(); below. */
7056 #include <assert.h>
7057 /* Override any gcc2 internal prototype to avoid an error. */
7058 /* We use char because int might match the return type of a gcc2
7059 builtin and then its argument prototype would still apply. */
7060 char $ac_func();
7062 int main() {
7064 /* The GNU C library defines this for functions which it implements
7065 to always fail with ENOSYS. Some functions are actually named
7066 something starting with __ and the normal name is an alias. */
7067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7068 choke me
7069 #else
7070 $ac_func();
7071 #endif
7073 ; return 0; }
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7076 rm -rf conftest*
7077 eval "ac_cv_func_$ac_func=yes"
7078 else
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7081 rm -rf conftest*
7082 eval "ac_cv_func_$ac_func=no"
7084 rm -f conftest*
7087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7088 echo "$ac_t""yes" 1>&6
7089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7090 cat >> confdefs.h <<EOF
7091 #define $ac_tr_func 1
7094 else
7095 echo "$ac_t""no" 1>&6
7097 done
7099 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7100 set dummy gmsgfmt; ac_word=$2
7101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7102 echo "configure:7103: checking for $ac_word" >&5
7103 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7104 echo $ac_n "(cached) $ac_c" 1>&6
7105 else
7106 case "$GMSGFMT" in
7108 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7110 ?:/*)
7111 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7115 ac_dummy="$PATH"
7116 for ac_dir in $ac_dummy; do
7117 test -z "$ac_dir" && ac_dir=.
7118 if test -f $ac_dir/$ac_word; then
7119 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7120 break
7122 done
7123 IFS="$ac_save_ifs"
7124 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7126 esac
7128 GMSGFMT="$ac_cv_path_GMSGFMT"
7129 if test -n "$GMSGFMT"; then
7130 echo "$ac_t""$GMSGFMT" 1>&6
7131 else
7132 echo "$ac_t""no" 1>&6
7135 # Extract the first word of "xgettext", so it can be a program name with args.
7136 set dummy xgettext; ac_word=$2
7137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7138 echo "configure:7139: checking for $ac_word" >&5
7139 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7140 echo $ac_n "(cached) $ac_c" 1>&6
7141 else
7142 case "$XGETTEXT" in
7144 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7148 for ac_dir in $PATH; do
7149 test -z "$ac_dir" && ac_dir=.
7150 if test -f $ac_dir/$ac_word; then
7151 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7152 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7153 break
7156 done
7157 IFS="$ac_save_ifs"
7158 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7160 esac
7162 XGETTEXT="$ac_cv_path_XGETTEXT"
7163 if test -n "$XGETTEXT"; then
7164 echo "$ac_t""$XGETTEXT" 1>&6
7165 else
7166 echo "$ac_t""no" 1>&6
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7173 int main() {
7174 extern int _nl_msg_cat_cntr;
7175 return _nl_msg_cat_cntr
7176 ; return 0; }
7178 if { (eval echo configure:7179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179 rm -rf conftest*
7180 CATOBJEXT=.gmo
7181 DATADIRNAME=share
7182 else
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7185 rm -rf conftest*
7186 CATOBJEXT=.mo
7187 DATADIRNAME=lib
7189 rm -f conftest*
7190 INSTOBJEXT=.mo
7194 else
7195 echo "$ac_t""no" 1>&6
7199 if test "$CATOBJEXT" = "NONE"; then
7200 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7201 echo "configure:7202: checking whether catgets can be used" >&5
7202 # Check whether --with-catgets or --without-catgets was given.
7203 if test "${with_catgets+set}" = set; then
7204 withval="$with_catgets"
7205 nls_cv_use_catgets=$withval
7206 else
7207 nls_cv_use_catgets=no
7210 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7212 if test "$nls_cv_use_catgets" = "yes"; then
7213 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7214 echo "configure:7215: checking for main in -li" >&5
7215 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7217 echo $ac_n "(cached) $ac_c" 1>&6
7218 else
7219 ac_save_LIBS="$LIBS"
7220 LIBS="-li $LIBS"
7221 cat > conftest.$ac_ext <<EOF
7222 #line 7223 "configure"
7223 #include "confdefs.h"
7225 int main() {
7226 main()
7227 ; return 0; }
7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7230 rm -rf conftest*
7231 eval "ac_cv_lib_$ac_lib_var=yes"
7232 else
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 rm -rf conftest*
7236 eval "ac_cv_lib_$ac_lib_var=no"
7238 rm -f conftest*
7239 LIBS="$ac_save_LIBS"
7242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7244 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7245 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7246 cat >> confdefs.h <<EOF
7247 #define $ac_tr_lib 1
7250 LIBS="-li $LIBS"
7252 else
7253 echo "$ac_t""no" 1>&6
7256 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7257 echo "configure:7258: checking for catgets" >&5
7258 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7260 else
7261 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 /* System header to define __stub macros and hopefully few prototypes,
7265 which can conflict with char catgets(); below. */
7266 #include <assert.h>
7267 /* Override any gcc2 internal prototype to avoid an error. */
7268 /* We use char because int might match the return type of a gcc2
7269 builtin and then its argument prototype would still apply. */
7270 char catgets();
7272 int main() {
7274 /* The GNU C library defines this for functions which it implements
7275 to always fail with ENOSYS. Some functions are actually named
7276 something starting with __ and the normal name is an alias. */
7277 #if defined (__stub_catgets) || defined (__stub___catgets)
7278 choke me
7279 #else
7280 catgets();
7281 #endif
7283 ; return 0; }
7285 if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7286 rm -rf conftest*
7287 eval "ac_cv_func_catgets=yes"
7288 else
7289 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5
7291 rm -rf conftest*
7292 eval "ac_cv_func_catgets=no"
7294 rm -f conftest*
7297 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7298 echo "$ac_t""yes" 1>&6
7299 cat >> confdefs.h <<\EOF
7300 #define HAVE_CATGETS 1
7303 INTLOBJS="\$(CATOBJS)"
7304 # Extract the first word of "gencat", so it can be a program name with args.
7305 set dummy gencat; ac_word=$2
7306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7307 echo "configure:7308: checking for $ac_word" >&5
7308 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7310 else
7311 case "$GENCAT" in
7313 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7315 ?:/*)
7316 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7320 ac_dummy="$PATH"
7321 for ac_dir in $ac_dummy; do
7322 test -z "$ac_dir" && ac_dir=.
7323 if test -f $ac_dir/$ac_word; then
7324 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7325 break
7327 done
7328 IFS="$ac_save_ifs"
7329 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7331 esac
7333 GENCAT="$ac_cv_path_GENCAT"
7334 if test -n "$GENCAT"; then
7335 echo "$ac_t""$GENCAT" 1>&6
7336 else
7337 echo "$ac_t""no" 1>&6
7339 if test "$GENCAT" != "no"; then
7340 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7341 set dummy gmsgfmt; ac_word=$2
7342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7343 echo "configure:7344: checking for $ac_word" >&5
7344 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7346 else
7347 case "$GMSGFMT" in
7349 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7351 ?:/*)
7352 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7356 ac_dummy="$PATH"
7357 for ac_dir in $ac_dummy; do
7358 test -z "$ac_dir" && ac_dir=.
7359 if test -f $ac_dir/$ac_word; then
7360 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7361 break
7363 done
7364 IFS="$ac_save_ifs"
7365 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7367 esac
7369 GMSGFMT="$ac_cv_path_GMSGFMT"
7370 if test -n "$GMSGFMT"; then
7371 echo "$ac_t""$GMSGFMT" 1>&6
7372 else
7373 echo "$ac_t""no" 1>&6
7376 if test "$GMSGFMT" = "no"; then
7377 # Extract the first word of "msgfmt", so it can be a program name with args.
7378 set dummy msgfmt; ac_word=$2
7379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7380 echo "configure:7381: checking for $ac_word" >&5
7381 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7383 else
7384 case "$GMSGFMT" in
7386 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7390 for ac_dir in $PATH; do
7391 test -z "$ac_dir" && ac_dir=.
7392 if test -f $ac_dir/$ac_word; then
7393 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7394 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7395 break
7398 done
7399 IFS="$ac_save_ifs"
7400 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7402 esac
7404 GMSGFMT="$ac_cv_path_GMSGFMT"
7405 if test -n "$GMSGFMT"; then
7406 echo "$ac_t""$GMSGFMT" 1>&6
7407 else
7408 echo "$ac_t""no" 1>&6
7412 # Extract the first word of "xgettext", so it can be a program name with args.
7413 set dummy xgettext; ac_word=$2
7414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7415 echo "configure:7416: checking for $ac_word" >&5
7416 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7418 else
7419 case "$XGETTEXT" in
7421 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7425 for ac_dir in $PATH; do
7426 test -z "$ac_dir" && ac_dir=.
7427 if test -f $ac_dir/$ac_word; then
7428 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7429 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7430 break
7433 done
7434 IFS="$ac_save_ifs"
7435 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7437 esac
7439 XGETTEXT="$ac_cv_path_XGETTEXT"
7440 if test -n "$XGETTEXT"; then
7441 echo "$ac_t""$XGETTEXT" 1>&6
7442 else
7443 echo "$ac_t""no" 1>&6
7446 USE_INCLUDED_LIBINTL=yes
7447 CATOBJEXT=.cat
7448 INSTOBJEXT=.cat
7449 DATADIRNAME=lib
7450 INTLDEPS='$(top_builddir)/intl/libintl.a'
7451 INTLLIBS=$INTLDEPS
7452 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7453 nls_cv_header_intl=intl/libintl.h
7454 nls_cv_header_libgt=intl/libgettext.h
7456 else
7457 echo "$ac_t""no" 1>&6
7463 if test "$CATOBJEXT" = "NONE"; then
7464 nls_cv_use_gnu_gettext=yes
7468 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7469 INTLOBJS="\$(GETTOBJS)"
7470 # Extract the first word of "msgfmt", so it can be a program name with args.
7471 set dummy msgfmt; ac_word=$2
7472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7473 echo "configure:7474: checking for $ac_word" >&5
7474 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7475 echo $ac_n "(cached) $ac_c" 1>&6
7476 else
7477 case "$MSGFMT" in
7479 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7483 for ac_dir in $PATH; do
7484 test -z "$ac_dir" && ac_dir=.
7485 if test -f $ac_dir/$ac_word; then
7486 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7487 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7488 break
7491 done
7492 IFS="$ac_save_ifs"
7493 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7495 esac
7497 MSGFMT="$ac_cv_path_MSGFMT"
7498 if test -n "$MSGFMT"; then
7499 echo "$ac_t""$MSGFMT" 1>&6
7500 else
7501 echo "$ac_t""no" 1>&6
7504 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7505 set dummy gmsgfmt; ac_word=$2
7506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7507 echo "configure:7508: checking for $ac_word" >&5
7508 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7510 else
7511 case "$GMSGFMT" in
7513 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7515 ?:/*)
7516 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7520 ac_dummy="$PATH"
7521 for ac_dir in $ac_dummy; do
7522 test -z "$ac_dir" && ac_dir=.
7523 if test -f $ac_dir/$ac_word; then
7524 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7525 break
7527 done
7528 IFS="$ac_save_ifs"
7529 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7531 esac
7533 GMSGFMT="$ac_cv_path_GMSGFMT"
7534 if test -n "$GMSGFMT"; then
7535 echo "$ac_t""$GMSGFMT" 1>&6
7536 else
7537 echo "$ac_t""no" 1>&6
7540 # Extract the first word of "xgettext", so it can be a program name with args.
7541 set dummy xgettext; ac_word=$2
7542 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7543 echo "configure:7544: checking for $ac_word" >&5
7544 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7545 echo $ac_n "(cached) $ac_c" 1>&6
7546 else
7547 case "$XGETTEXT" in
7549 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7553 for ac_dir in $PATH; do
7554 test -z "$ac_dir" && ac_dir=.
7555 if test -f $ac_dir/$ac_word; then
7556 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7557 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7558 break
7561 done
7562 IFS="$ac_save_ifs"
7563 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7565 esac
7567 XGETTEXT="$ac_cv_path_XGETTEXT"
7568 if test -n "$XGETTEXT"; then
7569 echo "$ac_t""$XGETTEXT" 1>&6
7570 else
7571 echo "$ac_t""no" 1>&6
7575 USE_INCLUDED_LIBINTL=yes
7576 CATOBJEXT=.gmo
7577 INSTOBJEXT=.mo
7578 DATADIRNAME=share
7579 INTLDEPS='$(top_builddir)/intl/libintl.a'
7580 INTLLIBS=$INTLDEPS
7581 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7582 nls_cv_header_intl=intl/libintl.h
7583 nls_cv_header_libgt=intl/libgettext.h
7586 if test "$XGETTEXT" != ":"; then
7587 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7589 else
7590 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7591 XGETTEXT=":"
7595 # We need to process the po/ directory.
7596 POSUB=po
7597 else
7598 DATADIRNAME=share
7599 nls_cv_header_intl=intl/libintl.h
7600 nls_cv_header_libgt=intl/libgettext.h
7606 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7607 # because some of the sources are only built for this goal.
7608 if test "$PACKAGE" = gettext; then
7609 USE_NLS=yes
7610 USE_INCLUDED_LIBINTL=yes
7613 for lang in $ALL_LINGUAS; do
7614 GMOFILES="$GMOFILES $lang.gmo"
7615 POFILES="$POFILES $lang.po"
7616 done
7631 if test "x$CATOBJEXT" != "x"; then
7632 if test "x$ALL_LINGUAS" = "x"; then
7633 LINGUAS=
7634 else
7635 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7636 echo "configure:7637: checking for catalogs to be installed" >&5
7637 NEW_LINGUAS=
7638 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7639 case "$ALL_LINGUAS" in
7640 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7641 esac
7642 done
7643 LINGUAS=$NEW_LINGUAS
7644 echo "$ac_t""$LINGUAS" 1>&6
7647 if test -n "$LINGUAS"; then
7648 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7652 if test $ac_cv_header_locale_h = yes; then
7653 INCLUDE_LOCALE_H="#include <locale.h>"
7654 else
7655 INCLUDE_LOCALE_H="\
7656 /* The system does not provide the header <locale.h>. Take care yourself. */"
7660 test -d intl || mkdir intl
7661 if test "$CATOBJEXT" = ".cat"; then
7662 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7663 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7664 echo "configure:7665: checking for linux/version.h" >&5
7665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7666 echo $ac_n "(cached) $ac_c" 1>&6
7667 else
7668 cat > conftest.$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7671 #include <linux/version.h>
7673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7674 { (eval echo configure:7675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7676 if test -z "$ac_err"; then
7677 rm -rf conftest*
7678 eval "ac_cv_header_$ac_safe=yes"
7679 else
7680 echo "$ac_err" >&5
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 rm -rf conftest*
7684 eval "ac_cv_header_$ac_safe=no"
7686 rm -f conftest*
7688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7689 echo "$ac_t""yes" 1>&6
7690 msgformat=linux
7691 else
7692 echo "$ac_t""no" 1>&6
7693 msgformat=xopen
7697 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7699 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7700 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7702 if test "$PACKAGE" = "gettext"; then
7703 GT_NO="#NO#"
7704 GT_YES=
7705 else
7706 GT_NO=
7707 GT_YES="#YES#"
7712 MKINSTALLDIRS=
7713 if test -n "$ac_aux_dir"; then
7714 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7716 if test -z "$MKINSTALLDIRS"; then
7717 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7724 test -d po || mkdir po
7725 if test "x$srcdir" != "x."; then
7726 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7727 posrcprefix="$srcdir/"
7728 else
7729 posrcprefix="../$srcdir/"
7731 else
7732 posrcprefix="../"
7734 rm -f po/POTFILES
7735 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7736 < $srcdir/po/POTFILES.in > po/POTFILES
7738 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7740 # Get an absolute path to the GCC top-level source directory
7741 holddir=`pwd`
7742 cd $srcdir
7743 topdir=`pwd`
7744 cd $holddir
7746 # Conditionalize the makefile for this host machine.
7747 # Make-host contains the concatenation of all host makefile fragments
7748 # [there can be more than one]. This file is built by configure.frag.
7749 host_overrides=Make-host
7750 dep_host_xmake_file=
7751 for f in .. ${host_xmake_file}
7753 if test -f ${srcdir}/config/$f
7754 then
7755 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7757 done
7759 # Conditionalize the makefile for this target machine.
7760 # Make-target contains the concatenation of all host makefile fragments
7761 # [there can be more than one]. This file is built by configure.frag.
7762 target_overrides=Make-target
7763 dep_tmake_file=
7764 for f in .. ${tmake_file}
7766 if test -f ${srcdir}/config/$f
7767 then
7768 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7770 done
7772 # If the host doesn't support symlinks, modify CC in
7773 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7774 # Otherwise, we can use "CC=$(CC)".
7775 rm -f symtest.tem
7776 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7777 then
7778 cc_set_by_configure="\$(CC)"
7779 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7780 else
7781 rm -f symtest.tem
7782 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
7783 then
7784 symbolic_link="cp -p"
7785 else
7786 symbolic_link="cp"
7788 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7789 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7791 rm -f symtest.tem
7793 out_object_file=`basename $out_file .c`.o
7795 tm_file_list=
7796 for f in $tm_file; do
7797 if test $f != "gansidecl.h" ; then
7798 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
7799 else
7800 tm_file_list="${tm_file_list} $f"
7802 done
7804 host_xm_file_list=
7805 for f in $host_xm_file; do
7806 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
7807 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
7808 else
7809 host_xm_file_list="${host_xm_file_list} $f"
7811 done
7813 build_xm_file_list=
7814 for f in $build_xm_file; do
7815 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
7816 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
7817 else
7818 build_xm_file_list="${build_xm_file_list} $f"
7820 done
7822 # Define macro CROSS_COMPILE in compilation
7823 # if this is a cross-compiler.
7824 # Also use all.cross instead of all.internal
7825 # and add cross-make to Makefile.
7826 cross_overrides="/dev/null"
7827 if test x$host != x$target
7828 then
7829 cross_defines="CROSS=-DCROSS_COMPILE"
7830 cross_overrides="${topdir}/cross-make"
7833 # When building gcc with a cross-compiler, we need to fix a few things.
7834 # This must come after cross-make as we want all.build to override
7835 # all.cross.
7836 build_overrides="/dev/null"
7837 if test x$build != x$host
7838 then
7839 build_overrides="${topdir}/build-make"
7842 # Expand extra_headers to include complete path.
7843 # This substitutes for lots of t-* files.
7844 extra_headers_list=
7845 if test "x$extra_headers" = x
7846 then true
7847 else
7848 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
7849 for file in $extra_headers;
7851 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
7852 done
7855 if test x$use_collect2 = xno; then
7856 use_collect2=
7859 # Add a definition of USE_COLLECT2 if system wants one.
7860 # Also tell toplev.c what to do.
7861 # This substitutes for lots of t-* files.
7862 if test x$use_collect2 = x
7863 then
7864 will_use_collect2=
7865 maybe_use_collect2=
7866 else
7867 will_use_collect2="collect2"
7868 maybe_use_collect2="-DUSE_COLLECT2"
7871 # NEED TO CONVERT
7872 # Set MD_DEPS if the real md file is in md.pre-cpp.
7873 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
7874 # for line oriented comments, so we must always use a GNU cpp. If
7875 # building gcc with a cross compiler, use the cross compiler just
7876 # built. Otherwise, we can use the cpp just built.
7877 md_file_sub=
7878 if test "x$md_cppflags" = x
7879 then
7880 md_file_sub=$srcdir/config/$md_file
7881 else
7882 md_file=md
7885 # If we have gas in the build tree, make a link to it.
7886 if test -f ../gas/Makefile; then
7887 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
7890 # If we have nm in the build tree, make a link to it.
7891 if test -f ../binutils/Makefile; then
7892 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
7895 # If we have ld in the build tree, make a link to it.
7896 if test -f ../ld/Makefile; then
7897 # if test x$use_collect2 = x; then
7898 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
7899 # else
7900 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
7901 # fi
7904 # Figure out what assembler alignment features are present.
7905 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7906 echo "configure:7907: checking assembler alignment features" >&5
7907 gcc_cv_as=
7908 gcc_cv_as_alignment_features=
7909 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
7910 if test -x "$DEFAULT_ASSEMBLER"; then
7911 gcc_cv_as="$DEFAULT_ASSEMBLER"
7912 elif test -x "$AS"; then
7913 gcc_cv_as="$AS"
7914 elif test -x as$host_exeext; then
7915 # Build using assembler in the current directory.
7916 gcc_cv_as=./as$host_exeext
7917 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
7918 # Single tree build which includes gas.
7919 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
7921 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
7922 if test x$gcc_cv_gas_version != x; then
7923 break
7925 done
7926 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
7927 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
7928 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7929 # Gas version 2.6 and later support for .balign and .p2align.
7930 # bytes to skip when using .p2align.
7931 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
7932 gcc_cv_as_alignment_features=".balign and .p2align"
7933 cat >> confdefs.h <<\EOF
7934 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7938 # Gas version 2.8 and later support specifying the maximum
7939 # bytes to skip when using .p2align.
7940 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
7941 gcc_cv_as_alignment_features=".p2align including maximum skip"
7942 cat >> confdefs.h <<\EOF
7943 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7948 elif test x$host = x$target; then
7949 # Native build.
7950 gcc_cv_as=as$host_exeext
7952 if test x$gcc_cv_as != x; then
7953 # Check if we have .balign and .p2align
7954 echo ".balign 4" > conftest.s
7955 echo ".p2align 2" >> conftest.s
7956 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7957 gcc_cv_as_alignment_features=".balign and .p2align"
7958 cat >> confdefs.h <<\EOF
7959 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7963 rm -f conftest.s conftest.o
7964 # Check if specifying the maximum bytes to skip when
7965 # using .p2align is supported.
7966 echo ".p2align 4,,7" > conftest.s
7967 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7968 gcc_cv_as_alignment_features=".p2align including maximum skip"
7969 cat >> confdefs.h <<\EOF
7970 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7974 rm -f conftest.s conftest.o
7976 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7978 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7979 echo "configure:7980: checking assembler subsection support" >&5
7980 gcc_cv_as_subsections=
7981 if test x$gcc_cv_as != x; then
7982 # Check if we have .subsection
7983 echo ".subsection 1" > conftest.s
7984 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7985 gcc_cv_as_subsections=".subsection"
7986 if test -x nm$host_exeext; then
7987 gcc_cv_nm=./nm$host_exeext
7988 elif test x$host = x$target; then
7989 # Native build.
7990 gcc_cv_nm=nm$host_exeext
7992 if test x$gcc_cv_nm != x; then
7993 cat > conftest.s <<EOF
7994 conftest_label1: .word 0
7995 .subsection -1
7996 conftest_label2: .word 0
7997 .previous
7999 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8000 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8001 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8002 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8004 else
8005 gcc_cv_as_subsections="working .subsection -1"
8006 cat >> confdefs.h <<\EOF
8007 #define HAVE_GAS_SUBSECTION_ORDERING 1
8014 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8016 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8018 # Figure out what language subdirectories are present.
8019 # Look if the user specified --enable-languages="..."; if not, use
8020 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8021 # go away some day.
8022 if test x"${enable_languages+set}" != xset; then
8023 if test x"${LANGUAGES+set}" = xset; then
8024 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8025 else
8026 enable_languages=all
8029 subdirs=
8030 for lang in ${srcdir}/*/config-lang.in ..
8032 case $lang in
8033 ..) ;;
8034 # The odd quoting in the next line works around
8035 # an apparent bug in bash 1.12 on linux.
8036 ${srcdir}/[*]/config-lang.in) ;;
8038 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8039 if test "x$lang_alias" = x
8040 then
8041 echo "$lang doesn't set \$language." 1>&2
8042 exit 1
8044 if test x"${enable_languages}" = xall; then
8045 add_this_lang=yes
8046 else
8047 case "${enable_languages}" in
8048 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8049 add_this_lang=yes
8052 add_this_lang=no
8054 esac
8056 if test x"${add_this_lang}" = xyes; then
8057 case $lang in
8058 ${srcdir}/ada/config-lang.in)
8059 if test x$gnat = xyes ; then
8060 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8064 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8066 esac
8069 esac
8070 done
8072 # Make gthr-default.h if we have a thread file.
8073 gthread_flags=
8074 if test $thread_file != single; then
8075 rm -f gthr-default.h
8076 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8077 gthread_flags=-DHAVE_GTHR_DEFAULT
8081 # Make empty files to contain the specs and options for each language.
8082 # Then add #include lines to for a compiler that has specs and/or options.
8084 lang_specs_files=
8085 lang_options_files=
8086 lang_tree_files=
8087 rm -f specs.h options.h gencheck.h
8088 touch specs.h options.h gencheck.h
8089 for subdir in . $subdirs
8091 if test -f $srcdir/$subdir/lang-specs.h; then
8092 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8093 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8095 if test -f $srcdir/$subdir/lang-options.h; then
8096 echo "#include \"$subdir/lang-options.h\"" >>options.h
8097 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8099 if test -f $srcdir/$subdir/$subdir-tree.def; then
8100 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8101 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8103 done
8105 # These (without "all_") are set in each config-lang.in.
8106 # `language' must be a single word so is spelled singularly.
8107 all_languages=
8108 all_boot_languages=
8109 all_compilers=
8110 all_stagestuff=
8111 all_diff_excludes=
8112 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8113 # List of language makefile fragments.
8114 all_lang_makefiles=
8115 all_headers=
8116 all_lib2funcs=
8118 # Add the language fragments.
8119 # Languages are added via two mechanisms. Some information must be
8120 # recorded in makefile variables, these are defined in config-lang.in.
8121 # We accumulate them and plug them into the main Makefile.
8122 # The other mechanism is a set of hooks for each of the main targets
8123 # like `clean', `install', etc.
8125 language_fragments="Make-lang"
8126 language_hooks="Make-hooks"
8127 oldstyle_subdirs=
8129 for s in .. $subdirs
8131 if test $s != ".."
8132 then
8133 language=
8134 boot_language=
8135 compilers=
8136 stagestuff=
8137 diff_excludes=
8138 headers=
8139 outputs=
8140 lib2funcs=
8141 . ${srcdir}/$s/config-lang.in
8142 if test "x$language" = x
8143 then
8144 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8145 exit 1
8147 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8148 all_languages="$all_languages $language"
8149 if test "x$boot_language" = xyes
8150 then
8151 all_boot_languages="$all_boot_languages $language"
8153 all_compilers="$all_compilers $compilers"
8154 all_stagestuff="$all_stagestuff $stagestuff"
8155 all_diff_excludes="$all_diff_excludes $diff_excludes"
8156 all_headers="$all_headers $headers"
8157 all_outputs="$all_outputs $outputs"
8158 if test x$outputs = x
8159 then
8160 oldstyle_subdirs="$oldstyle_subdirs $s"
8162 all_lib2funcs="$all_lib2funcs $lib2funcs"
8164 done
8166 # Since we can't use `::' targets, we link each language in
8167 # with a set of hooks, reached indirectly via lang.${target}.
8169 rm -f Make-hooks
8170 touch Make-hooks
8171 target_list="all.build all.cross start.encap rest.encap \
8172 info dvi \
8173 install-normal install-common install-info install-man \
8174 uninstall distdir \
8175 mostlyclean clean distclean extraclean maintainer-clean \
8176 stage1 stage2 stage3 stage4"
8177 for t in $target_list
8180 for lang in .. $all_languages
8182 if test $lang != ".."; then
8183 x="$x $lang.$t"
8185 done
8186 echo "lang.$t: $x" >> Make-hooks
8187 done
8189 # If we're not building in srcdir, create .gdbinit.
8191 if test ! -f Makefile.in; then
8192 echo "dir ." > .gdbinit
8193 echo "dir ${srcdir}" >> .gdbinit
8194 if test x$gdb_needs_out_file_path = xyes
8195 then
8196 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8198 if test "x$subdirs" != x; then
8199 for s in $subdirs
8201 echo "dir ${srcdir}/$s" >> .gdbinit
8202 done
8204 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8207 # Define variables host_canonical and build_canonical
8208 # because some Cygnus local changes in the Makefile depend on them.
8209 build_canonical=${build}
8210 host_canonical=${host}
8211 target_subdir=
8212 if test "${host}" != "${target}" ; then
8213 target_subdir=${target}/
8219 # If this is using newlib, then define inhibit_libc in
8220 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8221 # libgcc.a, but that's OK because newib should have its own version of
8222 # assert.h.
8223 inhibit_libc=
8224 if test x$with_newlib = xyes; then
8225 inhibit_libc=-Dinhibit_libc
8229 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8230 sched_prefix=
8231 sched_cflags=
8232 if test x$enable_haifa = xyes; then
8233 echo "Using the Haifa scheduler."
8234 sched_prefix=haifa-
8235 sched_cflags=-DHAIFA
8239 if test x$enable_haifa != x; then
8240 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8241 for x in genattrtab.o toplev.o *sched.o; do
8242 if test -f $x; then
8243 echo "Removing $x"
8244 rm -f $x
8246 done
8249 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8250 # absolute path for gcc_tooldir based on inserting the number of up-directory
8251 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8252 # $(libsubdir)/@(unlibsubdir) based path.
8253 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8254 # make and thus we'd get different behavior depending on where we built the
8255 # sources.
8256 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8257 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8258 else
8259 # An explanation of the sed strings:
8260 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8261 # -e 's|/$||' match a trailing forward slash and eliminates it
8262 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8263 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8265 # (*) Note this pattern overwrites the first character of the string
8266 # with a forward slash if one is not already present. This is not a
8267 # problem because the exact names of the sub-directories concerned is
8268 # unimportant, just the number of them matters.
8270 # The practical upshot of these patterns is like this:
8272 # prefix exec_prefix result
8273 # ------ ----------- ------
8274 # /foo /foo/bar ../
8275 # /foo/ /foo/bar ../
8276 # /foo /foo/bar/ ../
8277 # /foo/ /foo/bar/ ../
8278 # /foo /foo/bar/ugg ../../
8280 dollar='$$'
8281 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8286 # Nothing to do for FLOAT_H, float_format already handled.
8287 objdir=`pwd`
8290 # Process the language and host/target makefile fragments.
8291 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8293 # Substitute configuration variables
8354 # Echo that links are built
8355 if test x$host = x$target
8356 then
8357 str1="native "
8358 else
8359 str1="cross-"
8360 str2=" from $host"
8363 if test x$host != x$build
8364 then
8365 str3=" on a $build system"
8368 if test "x$str2" != x || test "x$str3" != x
8369 then
8370 str4=
8373 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8375 if test "x$str2" != x || test "x$str3" != x
8376 then
8377 echo " ${str2}${str3}." 1>&2
8380 # Truncate the target if necessary
8381 if test x$host_truncate_target != x; then
8382 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8385 # Configure the subdirectories
8386 # AC_CONFIG_SUBDIRS($subdirs)
8388 # Create the Makefile
8389 # and configure language subdirectories
8390 trap '' 1 2 15
8391 cat > confcache <<\EOF
8392 # This file is a shell script that caches the results of configure
8393 # tests run on this system so they can be shared between configure
8394 # scripts and configure runs. It is not useful on other systems.
8395 # If it contains results you don't want to keep, you may remove or edit it.
8397 # By default, configure uses ./config.cache as the cache file,
8398 # creating it if it does not exist already. You can give configure
8399 # the --cache-file=FILE option to use a different cache file; that is
8400 # what configure does when it calls configure scripts in
8401 # subdirectories, so they share the cache.
8402 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8403 # config.status only pays attention to the cache file if you give it the
8404 # --recheck option to rerun configure.
8407 # The following way of writing the cache mishandles newlines in values,
8408 # but we know of no workaround that is simple, portable, and efficient.
8409 # So, don't put newlines in cache variables' values.
8410 # Ultrix sh set writes to stderr and can't be redirected directly,
8411 # and sets the high bit in the cache file unless we assign to the vars.
8412 (set) 2>&1 |
8413 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8414 *ac_space=\ *)
8415 # `set' does not quote correctly, so add quotes (double-quote substitution
8416 # turns \\\\ into \\, and sed turns \\ into \).
8417 sed -n \
8418 -e "s/'/'\\\\''/g" \
8419 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8422 # `set' quotes correctly as required by POSIX, so do not add quotes.
8423 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8425 esac >> confcache
8426 if cmp -s $cache_file confcache; then
8428 else
8429 if test -w $cache_file; then
8430 echo "updating cache $cache_file"
8431 cat confcache > $cache_file
8432 else
8433 echo "not updating unwritable cache $cache_file"
8436 rm -f confcache
8438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8441 # Let make expand exec_prefix.
8442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8444 # Any assignment to VPATH causes Sun make to only execute
8445 # the first set of double-colon rules, so remove it if not needed.
8446 # If there is a colon in the path, we need to keep it.
8447 if test "x$srcdir" = x.; then
8448 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8451 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8453 DEFS=-DHAVE_CONFIG_H
8455 # Without the "./", some shells look in PATH for config.status.
8456 : ${CONFIG_STATUS=./config.status}
8458 echo creating $CONFIG_STATUS
8459 rm -f $CONFIG_STATUS
8460 cat > $CONFIG_STATUS <<EOF
8461 #! /bin/sh
8462 # Generated automatically by configure.
8463 # Run this file to recreate the current configuration.
8464 # This directory was configured as follows,
8465 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8467 # $0 $ac_configure_args
8469 # Compiler output produced by configure, useful for debugging
8470 # configure, is in ./config.log if it exists.
8472 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8473 for ac_option
8475 case "\$ac_option" in
8476 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8477 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8478 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8479 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8480 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8481 exit 0 ;;
8482 -help | --help | --hel | --he | --h)
8483 echo "\$ac_cs_usage"; exit 0 ;;
8484 *) echo "\$ac_cs_usage"; exit 1 ;;
8485 esac
8486 done
8488 ac_given_srcdir=$srcdir
8490 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8492 cat >> $CONFIG_STATUS <<EOF
8494 # Protect against being on the right side of a sed subst in config.status.
8495 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8496 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8497 $ac_vpsub
8498 $extrasub
8499 s%@SHELL@%$SHELL%g
8500 s%@CFLAGS@%$CFLAGS%g
8501 s%@CPPFLAGS@%$CPPFLAGS%g
8502 s%@CXXFLAGS@%$CXXFLAGS%g
8503 s%@FFLAGS@%$FFLAGS%g
8504 s%@DEFS@%$DEFS%g
8505 s%@LDFLAGS@%$LDFLAGS%g
8506 s%@LIBS@%$LIBS%g
8507 s%@exec_prefix@%$exec_prefix%g
8508 s%@prefix@%$prefix%g
8509 s%@program_transform_name@%$program_transform_name%g
8510 s%@bindir@%$bindir%g
8511 s%@sbindir@%$sbindir%g
8512 s%@libexecdir@%$libexecdir%g
8513 s%@datadir@%$datadir%g
8514 s%@sysconfdir@%$sysconfdir%g
8515 s%@sharedstatedir@%$sharedstatedir%g
8516 s%@localstatedir@%$localstatedir%g
8517 s%@libdir@%$libdir%g
8518 s%@includedir@%$includedir%g
8519 s%@oldincludedir@%$oldincludedir%g
8520 s%@infodir@%$infodir%g
8521 s%@mandir@%$mandir%g
8522 s%@host@%$host%g
8523 s%@host_alias@%$host_alias%g
8524 s%@host_cpu@%$host_cpu%g
8525 s%@host_vendor@%$host_vendor%g
8526 s%@host_os@%$host_os%g
8527 s%@target@%$target%g
8528 s%@target_alias@%$target_alias%g
8529 s%@target_cpu@%$target_cpu%g
8530 s%@target_vendor@%$target_vendor%g
8531 s%@target_os@%$target_os%g
8532 s%@build@%$build%g
8533 s%@build_alias@%$build_alias%g
8534 s%@build_cpu@%$build_cpu%g
8535 s%@build_vendor@%$build_vendor%g
8536 s%@build_os@%$build_os%g
8537 s%@CC@%$CC%g
8538 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8539 s%@SET_MAKE@%$SET_MAKE%g
8540 s%@AWK@%$AWK%g
8541 s%@LEX@%$LEX%g
8542 s%@LEXLIB@%$LEXLIB%g
8543 s%@LN@%$LN%g
8544 s%@LN_S@%$LN_S%g
8545 s%@RANLIB@%$RANLIB%g
8546 s%@YACC@%$YACC%g
8547 s%@INSTALL@%$INSTALL%g
8548 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8549 s%@INSTALL_DATA@%$INSTALL_DATA%g
8550 s%@CPP@%$CPP%g
8551 s%@gnat@%$gnat%g
8552 s%@vfprintf@%$vfprintf%g
8553 s%@doprint@%$doprint%g
8554 s%@manext@%$manext%g
8555 s%@objext@%$objext%g
8556 s%@PACKAGE@%$PACKAGE%g
8557 s%@VERSION@%$VERSION%g
8558 s%@ALLOCA@%$ALLOCA%g
8559 s%@USE_NLS@%$USE_NLS%g
8560 s%@MSGFMT@%$MSGFMT%g
8561 s%@GMSGFMT@%$GMSGFMT%g
8562 s%@XGETTEXT@%$XGETTEXT%g
8563 s%@GENCAT@%$GENCAT%g
8564 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8565 s%@CATALOGS@%$CATALOGS%g
8566 s%@CATOBJEXT@%$CATOBJEXT%g
8567 s%@DATADIRNAME@%$DATADIRNAME%g
8568 s%@GMOFILES@%$GMOFILES%g
8569 s%@INSTOBJEXT@%$INSTOBJEXT%g
8570 s%@INTLDEPS@%$INTLDEPS%g
8571 s%@INTLLIBS@%$INTLLIBS%g
8572 s%@INTLOBJS@%$INTLOBJS%g
8573 s%@POFILES@%$POFILES%g
8574 s%@POSUB@%$POSUB%g
8575 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8576 s%@GT_NO@%$GT_NO%g
8577 s%@GT_YES@%$GT_YES%g
8578 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8579 s%@l@%$l%g
8580 s%@gthread_flags@%$gthread_flags%g
8581 s%@build_canonical@%$build_canonical%g
8582 s%@host_canonical@%$host_canonical%g
8583 s%@target_subdir@%$target_subdir%g
8584 s%@inhibit_libc@%$inhibit_libc%g
8585 s%@sched_prefix@%$sched_prefix%g
8586 s%@sched_cflags@%$sched_cflags%g
8587 s%@gcc_tooldir@%$gcc_tooldir%g
8588 s%@dollar@%$dollar%g
8589 s%@objdir@%$objdir%g
8590 s%@subdirs@%$subdirs%g
8591 s%@all_boot_languages@%$all_boot_languages%g
8592 s%@all_compilers@%$all_compilers%g
8593 s%@all_diff_excludes@%$all_diff_excludes%g
8594 s%@all_headers@%$all_headers%g
8595 s%@all_lang_makefiles@%$all_lang_makefiles%g
8596 s%@all_languages@%$all_languages%g
8597 s%@all_lib2funcs@%$all_lib2funcs%g
8598 s%@all_stagestuff@%$all_stagestuff%g
8599 s%@build_exeext@%$build_exeext%g
8600 s%@build_install_headers_dir@%$build_install_headers_dir%g
8601 s%@build_xm_file_list@%$build_xm_file_list%g
8602 s%@cc_set_by_configure@%$cc_set_by_configure%g
8603 s%@cpp_install_dir@%$cpp_install_dir%g
8604 s%@cpp_main@%$cpp_main%g
8605 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8606 s%@dep_tmake_file@%$dep_tmake_file%g
8607 s%@extra_c_flags@%$extra_c_flags%g
8608 s%@extra_c_objs@%$extra_c_objs%g
8609 s%@extra_cpp_objs@%$extra_cpp_objs%g
8610 s%@extra_cxx_objs@%$extra_cxx_objs%g
8611 s%@extra_headers_list@%$extra_headers_list%g
8612 s%@extra_objs@%$extra_objs%g
8613 s%@extra_parts@%$extra_parts%g
8614 s%@extra_passes@%$extra_passes%g
8615 s%@extra_programs@%$extra_programs%g
8616 s%@fixinc_defs@%$fixinc_defs%g
8617 s%@float_h_file@%$float_h_file%g
8618 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8619 s%@gcc_version@%$gcc_version%g
8620 s%@gcc_version_trigger@%$gcc_version_trigger%g
8621 s%@host_exeext@%$host_exeext%g
8622 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8623 s%@host_xm_file_list@%$host_xm_file_list%g
8624 s%@install@%$install%g
8625 s%@JAVAGC@%$JAVAGC%g
8626 s%@lang_options_files@%$lang_options_files%g
8627 s%@lang_specs_files@%$lang_specs_files%g
8628 s%@lang_tree_files@%$lang_tree_files%g
8629 s%@local_prefix@%$local_prefix%g
8630 s%@maybe_use_collect2@%$maybe_use_collect2%g
8631 s%@md_file@%$md_file%g
8632 s%@objc_boehm_gc@%$objc_boehm_gc%g
8633 s%@out_file@%$out_file%g
8634 s%@out_object_file@%$out_object_file%g
8635 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8636 s%@symbolic_link@%$symbolic_link%g
8637 s%@thread_file@%$thread_file%g
8638 s%@tm_file_list@%$tm_file_list%g
8639 s%@will_use_collect2@%$will_use_collect2%g
8640 /@target_overrides@/r $target_overrides
8641 s%@target_overrides@%%g
8642 /@host_overrides@/r $host_overrides
8643 s%@host_overrides@%%g
8644 s%@cross_defines@%$cross_defines%g
8645 /@cross_overrides@/r $cross_overrides
8646 s%@cross_overrides@%%g
8647 /@build_overrides@/r $build_overrides
8648 s%@build_overrides@%%g
8649 /@language_fragments@/r $language_fragments
8650 s%@language_fragments@%%g
8651 /@language_hooks@/r $language_hooks
8652 s%@language_hooks@%%g
8654 CEOF
8657 cat >> $CONFIG_STATUS <<\EOF
8659 # Split the substitutions into bite-sized pieces for seds with
8660 # small command number limits, like on Digital OSF/1 and HP-UX.
8661 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8662 ac_file=1 # Number of current file.
8663 ac_beg=1 # First line for current file.
8664 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8665 ac_more_lines=:
8666 ac_sed_cmds=""
8667 while $ac_more_lines; do
8668 if test $ac_beg -gt 1; then
8669 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8670 else
8671 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8673 if test ! -s conftest.s$ac_file; then
8674 ac_more_lines=false
8675 rm -f conftest.s$ac_file
8676 else
8677 if test -z "$ac_sed_cmds"; then
8678 ac_sed_cmds="sed -f conftest.s$ac_file"
8679 else
8680 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8682 ac_file=`expr $ac_file + 1`
8683 ac_beg=$ac_end
8684 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8686 done
8687 if test -z "$ac_sed_cmds"; then
8688 ac_sed_cmds=cat
8692 cat >> $CONFIG_STATUS <<EOF
8694 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8696 cat >> $CONFIG_STATUS <<\EOF
8697 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8699 case "$ac_file" in
8700 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8701 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8702 *) ac_file_in="${ac_file}.in" ;;
8703 esac
8705 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8707 # Remove last slash and all that follows it. Not all systems have dirname.
8708 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8709 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8710 # The file is in a subdirectory.
8711 test ! -d "$ac_dir" && mkdir "$ac_dir"
8712 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8713 # A "../" for each directory in $ac_dir_suffix.
8714 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8715 else
8716 ac_dir_suffix= ac_dots=
8719 case "$ac_given_srcdir" in
8720 .) srcdir=.
8721 if test -z "$ac_dots"; then top_srcdir=.
8722 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8723 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8724 *) # Relative path.
8725 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8726 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8727 esac
8730 echo creating "$ac_file"
8731 rm -f "$ac_file"
8732 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8733 case "$ac_file" in
8734 *Makefile*) ac_comsub="1i\\
8735 # $configure_input" ;;
8736 *) ac_comsub= ;;
8737 esac
8739 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8740 sed -e "$ac_comsub
8741 s%@configure_input@%$configure_input%g
8742 s%@srcdir@%$srcdir%g
8743 s%@top_srcdir@%$top_srcdir%g
8744 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8745 fi; done
8746 rm -f conftest.s*
8748 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8749 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8751 # ac_d sets the value in "#define NAME VALUE" lines.
8752 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8753 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8754 ac_dC='\3'
8755 ac_dD='%g'
8756 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8757 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8758 ac_uB='\([ ]\)%\1#\2define\3'
8759 ac_uC=' '
8760 ac_uD='\4%g'
8761 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8762 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8763 ac_eB='$%\1#\2define\3'
8764 ac_eC=' '
8765 ac_eD='%g'
8767 if test "${CONFIG_HEADERS+set}" != set; then
8769 cat >> $CONFIG_STATUS <<EOF
8770 CONFIG_HEADERS="auto-host.h:config.in"
8772 cat >> $CONFIG_STATUS <<\EOF
8774 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8775 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8776 case "$ac_file" in
8777 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8778 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8779 *) ac_file_in="${ac_file}.in" ;;
8780 esac
8782 echo creating $ac_file
8784 rm -f conftest.frag conftest.in conftest.out
8785 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8786 cat $ac_file_inputs > conftest.in
8790 # Transform confdefs.h into a sed script conftest.vals that substitutes
8791 # the proper values into config.h.in to produce config.h. And first:
8792 # Protect against being on the right side of a sed subst in config.status.
8793 # Protect against being in an unquoted here document in config.status.
8794 rm -f conftest.vals
8795 cat > conftest.hdr <<\EOF
8796 s/[\\&%]/\\&/g
8797 s%[\\$`]%\\&%g
8798 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8799 s%ac_d%ac_u%gp
8800 s%ac_u%ac_e%gp
8802 sed -n -f conftest.hdr confdefs.h > conftest.vals
8803 rm -f conftest.hdr
8805 # This sed command replaces #undef with comments. This is necessary, for
8806 # example, in the case of _POSIX_SOURCE, which is predefined and required
8807 # on some systems where configure will not decide to define it.
8808 cat >> conftest.vals <<\EOF
8809 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8812 # Break up conftest.vals because some shells have a limit on
8813 # the size of here documents, and old seds have small limits too.
8815 rm -f conftest.tail
8816 while :
8818 ac_lines=`grep -c . conftest.vals`
8819 # grep -c gives empty output for an empty file on some AIX systems.
8820 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8821 # Write a limited-size here document to conftest.frag.
8822 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8823 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8824 echo 'CEOF
8825 sed -f conftest.frag conftest.in > conftest.out
8826 rm -f conftest.in
8827 mv conftest.out conftest.in
8828 ' >> $CONFIG_STATUS
8829 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8830 rm -f conftest.vals
8831 mv conftest.tail conftest.vals
8832 done
8833 rm -f conftest.vals
8835 cat >> $CONFIG_STATUS <<\EOF
8836 rm -f conftest.frag conftest.h
8837 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8838 cat conftest.in >> conftest.h
8839 rm -f conftest.in
8840 if cmp -s $ac_file conftest.h 2>/dev/null; then
8841 echo "$ac_file is unchanged"
8842 rm -f conftest.h
8843 else
8844 # Remove last slash and all that follows it. Not all systems have dirname.
8845 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8846 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8847 # The file is in a subdirectory.
8848 test ! -d "$ac_dir" && mkdir "$ac_dir"
8850 rm -f $ac_file
8851 mv conftest.h $ac_file
8853 fi; done
8857 cat >> $CONFIG_STATUS <<EOF
8858 ac_sources="$nls_cv_header_libgt"
8859 ac_dests="$nls_cv_header_intl"
8862 cat >> $CONFIG_STATUS <<\EOF
8863 srcdir=$ac_given_srcdir
8864 while test -n "$ac_sources"; do
8865 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8866 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8868 echo "linking $srcdir/$ac_source to $ac_dest"
8870 if test ! -r $srcdir/$ac_source; then
8871 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8873 rm -f $ac_dest
8875 # Make relative symlinks.
8876 # Remove last slash and all that follows it. Not all systems have dirname.
8877 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8878 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8879 # The dest file is in a subdirectory.
8880 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8881 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8882 # A "../" for each directory in $ac_dest_dir_suffix.
8883 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8884 else
8885 ac_dest_dir_suffix= ac_dots=
8888 case "$srcdir" in
8889 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8890 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8891 esac
8893 # Make a symlink if possible; otherwise try a hard link.
8894 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8895 ln $srcdir/$ac_source $ac_dest; then :
8896 else
8897 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8899 done
8901 cat >> $CONFIG_STATUS <<EOF
8904 host='${host}'
8905 build='${build}'
8906 target='${target}'
8907 target_alias='${target_alias}'
8908 srcdir='${srcdir}'
8909 subdirs='${subdirs}'
8910 oldstyle_subdirs='${oldstyle_subdirs}'
8911 symbolic_link='${symbolic_link}'
8912 program_transform_set='${program_transform_set}'
8913 program_transform_name='${program_transform_name}'
8914 dep_host_xmake_file='${dep_host_xmake_file}'
8915 host_xmake_file='${host_xmake_file}'
8916 dep_tmake_file='${dep_tmake_file}'
8917 tmake_file='${tmake_file}'
8918 thread_file='${thread_file}'
8919 gcc_version='${gcc_version}'
8920 gcc_version_trigger='${gcc_version_trigger}'
8921 local_prefix='${local_prefix}'
8922 build_install_headers_dir='${build_install_headers_dir}'
8923 build_exeext='${build_exeext}'
8924 host_exeext='${host_exeext}'
8925 out_file='${out_file}'
8926 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
8927 SET_MAKE='${SET_MAKE}'
8928 target_list='${target_list}'
8929 target_overrides='${target_overrides}'
8930 host_overrides='${host_overrides}'
8931 cross_defines='${cross_defines}'
8932 cross_overrides='${cross_overrides}'
8933 build_overrides='${build_overrides}'
8934 cpp_install_dir='${cpp_install_dir}'
8937 cat >> $CONFIG_STATUS <<\EOF
8938 case "$CONFIG_FILES" in *po/Makefile.in*)
8939 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8940 esac
8942 . $srcdir/configure.lang
8943 case x$CONFIG_HEADERS in
8944 xauto-host.h:config.in)
8945 echo > cstamp-h ;;
8946 esac
8947 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8948 # bootstrapping and the installation procedure can still use
8949 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8950 # FLAGS_TO_PASS has been modified to solve the problem there.
8951 # This is virtually a duplicate of what happens in configure.lang; we do
8952 # an extra check to make sure this only happens if ln -s can be used.
8953 if test "$symbolic_link" = "ln -s"; then
8954 for d in .. ${subdirs} ; do
8955 if test $d != ..; then
8956 STARTDIR=`pwd`
8957 cd $d
8958 for t in stage1 stage2 stage3 stage4 include
8960 rm -f $t
8961 $symbolic_link ../$t $t 2>/dev/null
8962 done
8963 cd $STARTDIR
8965 done
8966 else true ; fi
8967 # Avoid having to add intl to our include paths.
8968 if test -f intl/libintl.h; then
8969 echo creating libintl.h
8970 echo '#include "intl/libintl.h"' >libintl.h
8973 exit 0
8975 chmod +x $CONFIG_STATUS
8976 rm -fr confdefs* $ac_clean_files
8977 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1