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