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