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