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