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