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