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