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