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