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