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