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.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
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
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-c-mbchar Enable multibyte characters for C and C++."
46 --enable-threads enable thread usage for target GCC.
47 --enable-threads=LIB use LIB thread package for target GCC."
49 --enable-objc-gc enable the use of Boehm's garbage collector with
50 the GNU Objective-C runtime."
52 --with-dwarf2 force the default debug format to be DWARF2."
54 --enable-nls use Native Language Support (default)"
56 --disable-nls do not use Native Language Support"
58 --with-included-gettext use the GNU gettext library included here"
60 --with-catgets use catgets functions if available"
62 --disable-win32-registry
63 Disable lookup of installation paths in the
64 Registry on Windows hosts.
65 --enable-win32-registry Enable registry lookup (default).
66 --enable-win32-registry=KEY
67 Use KEY instead of GCC version as the last portion
70 --with-gc={simple,page} Choose the garbage collection mechanism to use
74 select the new abi for g++. You must select an ABI
75 at configuration time, so that the correct runtime
76 support is built. You cannot mix ABIs."
79 enable libstdc++-v3 for building and installation"
81 --enable-maintainer-mode enable make rules and dependencies not useful
82 (and sometimes confusing) to the casual installer"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
88 cache_file
=.
/config.cache
97 program_transform_name
=s
,x
,x
,
105 bindir
='${exec_prefix}/bin'
106 sbindir
='${exec_prefix}/sbin'
107 libexecdir
='${exec_prefix}/libexec'
108 datadir
='${prefix}/share'
109 sysconfdir
='${prefix}/etc'
110 sharedstatedir
='${prefix}/com'
111 localstatedir
='${prefix}/var'
112 libdir
='${exec_prefix}/lib'
113 includedir
='${prefix}/include'
114 oldincludedir
='/usr/include'
115 infodir
='${prefix}/info'
116 mandir
='${prefix}/man'
118 # Initialize some other variables.
121 SHELL
=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
147 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
148 bindir
="$ac_optarg" ;;
150 -build |
--build |
--buil |
--bui |
--bu)
152 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
153 build
="$ac_optarg" ;;
155 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
156 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
157 ac_prev
=cache_file
;;
158 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
159 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
160 cache_file
="$ac_optarg" ;;
162 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
164 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
166 datadir
="$ac_optarg" ;;
168 -disable-* |
--disable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* |
--enable-*)
178 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
191 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
192 |
--exec |
--exe |
--ex)
193 ac_prev
=exec_prefix
;;
194 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
195 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
196 |
--exec=* |
--exe=* |
--ex=*)
197 exec_prefix
="$ac_optarg" ;;
199 -gas |
--gas |
--ga |
--g)
200 # Obsolete; use --with-gas.
203 -help |
--help |
--hel |
--he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host |
--host |
--hos |
--ho)
260 -host=* |
--host=* |
--hos=* |
--ho=*)
263 -includedir |
--includedir |
--includedi |
--included |
--include \
264 |
--includ |
--inclu |
--incl |
--inc)
265 ac_prev
=includedir
;;
266 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
267 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
268 includedir
="$ac_optarg" ;;
270 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
272 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
273 infodir
="$ac_optarg" ;;
275 -libdir |
--libdir |
--libdi |
--libd)
277 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
278 libdir
="$ac_optarg" ;;
280 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
281 |
--libexe |
--libex |
--libe)
282 ac_prev
=libexecdir
;;
283 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
284 |
--libexe=* |
--libex=* |
--libe=*)
285 libexecdir
="$ac_optarg" ;;
287 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
288 |
--localstate |
--localstat |
--localsta |
--localst \
289 |
--locals |
--local |
--loca |
--loc |
--lo)
290 ac_prev
=localstatedir
;;
291 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
292 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
293 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
294 localstatedir
="$ac_optarg" ;;
296 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
298 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
299 mandir
="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
309 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
310 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
313 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
314 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
315 |
--oldin |
--oldi |
--old |
--ol |
--o)
316 ac_prev
=oldincludedir
;;
317 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
318 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
319 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
320 oldincludedir
="$ac_optarg" ;;
322 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
324 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
325 prefix
="$ac_optarg" ;;
327 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
328 |
--program-pre |
--program-pr |
--program-p)
329 ac_prev
=program_prefix
;;
330 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
331 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
332 program_prefix
="$ac_optarg" ;;
334 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
335 |
--program-suf |
--program-su |
--program-s)
336 ac_prev
=program_suffix
;;
337 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
338 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
339 program_suffix
="$ac_optarg" ;;
341 -program-transform-name |
--program-transform-name \
342 |
--program-transform-nam |
--program-transform-na \
343 |
--program-transform-n |
--program-transform- \
344 |
--program-transform |
--program-transfor \
345 |
--program-transfo |
--program-transf \
346 |
--program-trans |
--program-tran \
347 |
--progr-tra |
--program-tr |
--program-t)
348 ac_prev
=program_transform_name
;;
349 -program-transform-name=* |
--program-transform-name=* \
350 |
--program-transform-nam=* |
--program-transform-na=* \
351 |
--program-transform-n=* |
--program-transform-=* \
352 |
--program-transform=* |
--program-transfor=* \
353 |
--program-transfo=* |
--program-transf=* \
354 |
--program-trans=* |
--program-tran=* \
355 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
356 program_transform_name
="$ac_optarg" ;;
358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
359 |
-silent |
--silent |
--silen |
--sile |
--sil)
362 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
364 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
366 sbindir
="$ac_optarg" ;;
368 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
369 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
370 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
372 ac_prev
=sharedstatedir
;;
373 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
374 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
375 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
377 sharedstatedir
="$ac_optarg" ;;
379 -site |
--site |
--sit)
381 -site=* |
--site=* |
--sit=*)
384 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
386 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
387 srcdir
="$ac_optarg" ;;
389 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
390 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
391 ac_prev
=sysconfdir
;;
392 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
393 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
394 sysconfdir
="$ac_optarg" ;;
396 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
398 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
399 target
="$ac_optarg" ;;
401 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
404 -version |
--version |
--versio |
--versi |
--vers)
405 echo "configure generated by autoconf version 2.13"
409 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* |
--without-*)
422 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package
=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
431 # Obsolete; use --with-x.
434 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
435 |
--x-incl |
--x-inc |
--x-in |
--x-i)
436 ac_prev
=x_includes
;;
437 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
438 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
439 x_includes
="$ac_optarg" ;;
441 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
442 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
443 ac_prev
=x_libraries
;;
444 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
445 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
446 x_libraries
="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE
; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
496 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
497 |
--no-cr |
--no-c) ;;
498 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
499 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
500 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest
* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file
=tree.c
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted
=yes
528 # Try the directory containing this script, then its parent.
530 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
533 if test ! -r $srcdir/$ac_unique_file; then
537 ac_srcdir_defaulted
=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE
; then
551 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
553 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file
in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp
='$CPP $CPPFLAGS'
574 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling
=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
589 ac_n
= ac_c
='\c' ac_t
=
597 symbolic_link
='ln -s'
600 # Check for bogus environment variables.
601 # Test if LIBRARY_PATH contains the notation for the current directory
602 # since this would lead to problems installing/building glibc.
603 # LIBRARY_PATH contains the current directory if one of the following
605 # - one of the terminals (":" and ";") is the first or last sign
606 # - two terminals occur directly after each other
607 # - the path contains an element with a dot in it
608 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
609 echo "configure:610: checking LIBRARY_PATH variable" >&5
610 case ${LIBRARY_PATH} in
611 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
612 library_path_setting
="contains current directory"
615 library_path_setting
="ok"
618 echo "$ac_t""$library_path_setting" 1>&6
619 if test "$library_path_setting" != "ok"; then
620 { echo "configure: error:
621 *** LIBRARY_PATH shouldn't contain the current directory when
622 *** building gcc. Please change the environment variable
623 *** and run configure again." 1>&2; exit 1; }
626 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
627 # since this would lead to problems installing/building glibc.
628 # GCC_EXEC_PREFIX contains the current directory if one of the following
630 # - one of the terminals (":" and ";") is the first or last sign
631 # - two terminals occur directly after each other
632 # - the path contains an element with a dot in it
633 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
634 echo "configure:635: checking GCC_EXEC_PREFIX variable" >&5
635 case ${GCC_EXEC_PREFIX} in
636 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
637 gcc_exec_prefix_setting
="contains current directory"
640 gcc_exec_prefix_setting
="ok"
643 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
644 if test "$gcc_exec_prefix_setting" != "ok"; then
645 { echo "configure: error:
646 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
647 *** building gcc. Please change the environment variable
648 *** and run configure again." 1>&2; exit 1; }
651 # Check for additional parameters
654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
655 if test "${with_gnu_ld+set}" = set; then
656 withval
="$with_gnu_ld"
657 gnu_ld_flag
="$with_gnu_ld"
663 # With pre-defined ld
664 # Check whether --with-ld or --without-ld was given.
665 if test "${with_ld+set}" = set; then
667 DEFAULT_LINKER
="$with_ld"
670 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
671 if test ! -x "$DEFAULT_LINKER"; then
672 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
673 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
676 cat >> confdefs.h
<<EOF
677 #define DEFAULT_LINKER "$DEFAULT_LINKER"
683 # Check whether --with-gnu-as or --without-gnu-as was given.
684 if test "${with_gnu_as+set}" = set; then
685 withval
="$with_gnu_as"
686 gas_flag
="$with_gnu_as"
692 # Check whether --with-as or --without-as was given.
693 if test "${with_as+set}" = set; then
695 DEFAULT_ASSEMBLER
="$with_as"
698 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
699 if test ! -x "$DEFAULT_ASSEMBLER"; then
700 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
701 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
704 cat >> confdefs.h
<<EOF
705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
711 # Check whether --with-stabs or --without-stabs was given.
712 if test "${with_stabs+set}" = set; then
713 withval
="$with_stabs"
721 # Check whether --with-elf or --without-elf was given.
722 if test "${with_elf+set}" = set; then
730 # Specify the local prefix
732 # Check whether --with-local-prefix or --without-local-prefix was given.
733 if test "${with_local_prefix+set}" = set; then
734 withval
="$with_local_prefix"
736 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
738 *) local_prefix
=$with_local_prefix ;;
743 # Default local prefix if it is empty
744 if test x
$local_prefix = x
; then
745 local_prefix
=/usr
/local
748 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
749 # passed in by the toplevel make and thus we'd get different behavior
750 # depending on where we built the sources.
752 # Specify the g++ header file directory
753 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
754 if test "${with_gxx_include_dir+set}" = set; then
755 withval
="$with_gxx_include_dir"
757 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
759 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
764 if test x
${gcc_gxx_include_dir} = x
; then
765 if test x
${enable_version_specific_runtime_libs} = xyes
; then
766 gcc_gxx_include_dir
='${libsubdir}/include/g++'
768 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
769 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
773 # Enable expensive internal checks
774 # Check whether --enable-checking or --disable-checking was given.
775 if test "${enable_checking+set}" = set; then
776 enableval
="$enable_checking"
781 ac_gc_always_collect
=
782 case "${enableval}" in
783 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
785 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
786 set fnord
$enableval; shift
791 misc
) ac_checking
=1 ;;
792 tree
) ac_tree_checking
=1 ;;
793 rtl
) ac_rtl_checking
=1 ;;
794 gc
) ac_gc_checking
=1 ;;
795 gcac
) ac_gc_always_collect
=1 ;;
796 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
803 # Enable some checks by default for development versions of GCC
804 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
807 if test x
$ac_checking != x
; then
808 cat >> confdefs.h
<<\EOF
809 #define ENABLE_CHECKING 1
813 if test x
$ac_tree_checking != x
; then
814 cat >> confdefs.h
<<\EOF
815 #define ENABLE_TREE_CHECKING 1
819 if test x
$ac_rtl_checking != x
; then
820 cat >> confdefs.h
<<\EOF
821 #define ENABLE_RTL_CHECKING 1
825 if test x
$ac_gc_checking != x
; then
826 cat >> confdefs.h
<<\EOF
827 #define ENABLE_GC_CHECKING 1
831 if test x
$ac_gc_always_collect != x
; then
832 cat >> confdefs.h
<<\EOF
833 #define ENABLE_GC_ALWAYS_COLLECT 1
839 # Check whether --enable-cpp or --disable-cpp was given.
840 if test "${enable_cpp+set}" = set; then
841 enableval
="$enable_cpp"
848 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
849 if test "${with_cpp_install_dir+set}" = set; then
850 withval
="$with_cpp_install_dir"
851 if test x
$withval = xyes
; then
852 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
853 elif test x
$withval != xno
; then
854 cpp_install_dir
=$withval
860 # Enable Multibyte Characters for C/C++
861 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
862 if test "${enable_c_mbchar+set}" = set; then
863 enableval
="$enable_c_mbchar"
864 if test x
$enable_c_mbchar != xno
; then
865 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
871 # Pass with no value to take the default
872 # Pass with a value to specify a thread package
873 # Check whether --enable-threads or --disable-threads was given.
874 if test "${enable_threads+set}" = set; then
875 enableval
="$enable_threads"
876 if test x
$enable_threads = xno
; then
884 enable_threads_flag
=$enable_threads
885 # Check if a valid thread package
886 case x
${enable_threads_flag} in
889 target_thread_file
='single'
893 target_thread_file
=''
895 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
896 xsolaris | xwin32 | xdce | xvxworks
)
897 target_thread_file
=$enable_threads_flag
900 echo "$enable_threads is an unknown thread package" 1>&2
905 # Check whether --enable-objc-gc or --disable-objc-gc was given.
906 if test "${enable_objc_gc+set}" = set; then
907 enableval
="$enable_objc_gc"
908 if test x
$enable_objc_gc = xno
; then
918 # Check whether --with-dwarf2 or --without-dwarf2 was given.
919 if test "${with_dwarf2+set}" = set; then
920 withval
="$with_dwarf2"
921 dwarf2
="$with_dwarf2"
927 # Determine the host, build, and target systems
929 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
930 if test -f $ac_dir/install-sh
; then
932 ac_install_sh
="$ac_aux_dir/install-sh -c"
934 elif test -f $ac_dir/install.sh
; then
936 ac_install_sh
="$ac_aux_dir/install.sh -c"
940 if test -z "$ac_aux_dir"; then
941 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
943 ac_config_guess
=$ac_aux_dir/config.guess
944 ac_config_sub
=$ac_aux_dir/config.sub
945 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
948 # Do some error checking and defaulting for the host and target type.
950 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
953 # 1. You are not allowed to specify --host, --target, and nonopt at the
955 # 2. Host defaults to nonopt.
956 # 3. If nonopt is not specified, then host defaults to the current host,
957 # as determined by config.guess.
958 # 4. Target and build default to nonopt.
959 # 5. If nonopt is not specified, then target and build default to host.
961 # The aliases save the names the user supplied, while $host etc.
962 # will get canonicalized.
963 case $host---$target---$nonopt in
964 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
965 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
969 # Make sure we can run config.sub.
970 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
971 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974 echo $ac_n "checking host system type""... $ac_c" 1>&6
975 echo "configure:976: checking host system type" >&5
978 case "$host_alias" in
982 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
983 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
985 *) host_alias
=$nonopt ;;
989 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
990 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$host" 1>&6
995 echo $ac_n "checking target system type""... $ac_c" 1>&6
996 echo "configure:997: checking target system type" >&5
999 case "$target_alias" in
1002 NONE
) target_alias
=$host_alias ;;
1003 *) target_alias
=$nonopt ;;
1007 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1008 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1009 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1010 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1011 echo "$ac_t""$target" 1>&6
1013 echo $ac_n "checking build system type""... $ac_c" 1>&6
1014 echo "configure:1015: checking build system type" >&5
1017 case "$build_alias" in
1020 NONE
) build_alias
=$host_alias ;;
1021 *) build_alias
=$nonopt ;;
1025 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1026 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029 echo "$ac_t""$build" 1>&6
1031 test "$host_alias" != "$target_alias" &&
1032 test "$program_prefix$program_suffix$program_transform_name" = \
1034 program_prefix
=${target_alias}-
1037 # Find the native compiler
1038 # Extract the first word of "gcc", so it can be a program name with args.
1039 set dummy gcc
; ac_word
=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041 echo "configure:1042: checking for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 if test -n "$CC"; then
1046 ac_cv_prog_CC
="$CC" # Let the user override the test.
1048 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1050 for ac_dir
in $ac_dummy; do
1051 test -z "$ac_dir" && ac_dir
=.
1052 if test -f $ac_dir/$ac_word; then
1061 if test -n "$CC"; then
1062 echo "$ac_t""$CC" 1>&6
1064 echo "$ac_t""no" 1>&6
1067 if test -z "$CC"; then
1068 # Extract the first word of "cc", so it can be a program name with args.
1069 set dummy cc
; ac_word
=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC
="$CC" # Let the user override the test.
1078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1084 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1085 ac_prog_rejected
=yes
1093 if test $ac_prog_rejected = yes; then
1094 # We found a bogon in the path, so make sure we never use it.
1095 set dummy
$ac_cv_prog_CC
1097 if test $# -gt 0; then
1098 # We chose a different compiler from the bogus one.
1099 # However, it has the same basename, so the bogon will be chosen
1100 # first if we set CC to just the basename; use the full file name.
1102 set dummy
"$ac_dir/$ac_word" "$@"
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1113 echo "$ac_t""no" 1>&6
1116 if test -z "$CC"; then
1117 case "`uname -s`" in
1119 # Extract the first word of "cl", so it can be a program name with args.
1120 set dummy cl
; ac_word
=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$CC"; then
1127 ac_cv_prog_CC
="$CC" # Let the user override the test.
1129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1131 for ac_dir
in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir
=.
1133 if test -f $ac_dir/$ac_word; then
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1145 echo "$ac_t""no" 1>&6
1150 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1158 ac_cpp
='$CPP $CPPFLAGS'
1159 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1160 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1161 cross_compiling
=$ac_cv_prog_cc_cross
1163 cat > conftest.
$ac_ext << EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1170 if { (eval echo configure
:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1171 ac_cv_prog_cc_works
=yes
1172 # If we can't run a trivial program, we are probably using a cross compiler.
1173 if (.
/conftest
; exit) 2>/dev
/null
; then
1174 ac_cv_prog_cc_cross
=no
1176 ac_cv_prog_cc_cross
=yes
1179 echo "configure: failed program was:" >&5
1180 cat conftest.
$ac_ext >&5
1181 ac_cv_prog_cc_works
=no
1185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1186 ac_cpp
='$CPP $CPPFLAGS'
1187 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1188 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1189 cross_compiling
=$ac_cv_prog_cc_cross
1191 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1192 if test $ac_cv_prog_cc_works = no
; then
1193 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1195 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1197 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1198 cross_compiling
=$ac_cv_prog_cc_cross
1200 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether we are using GNU C" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 cat > conftest.c
<<EOF
1210 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1217 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1219 if test $ac_cv_prog_gcc = yes; then
1225 ac_test_CFLAGS
="${CFLAGS+set}"
1226 ac_save_CFLAGS
="$CFLAGS"
1228 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether ${CC-cc} accepts -g" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 echo 'void f(){}' > conftest.c
1234 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1243 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1244 if test "$ac_test_CFLAGS" = set; then
1245 CFLAGS
="$ac_save_CFLAGS"
1246 elif test $ac_cv_prog_cc_g = yes; then
1247 if test "$GCC" = yes; then
1253 if test "$GCC" = yes; then
1260 if test "x$CC" != xcc
; then
1261 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether $CC and cc understand -c and -o together" >&5
1264 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether cc understands -c and -o together" >&5
1267 set dummy
$CC; ac_cc
="`echo $2 |
1268 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1269 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 echo 'foo(){}' > conftest.c
1273 # Make sure it works both with $CC and with simple cc.
1274 # We do the test twice because some compilers refuse to overwrite an
1275 # existing .o file with -o, though they will create one.
1276 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1277 if { (eval echo configure
:1278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1278 test -f conftest.o
&& { (eval echo configure
:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1280 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1281 if test "x$CC" != xcc
; then
1282 # Test first that cc exists at all.
1283 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1284 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1285 if { (eval echo configure
:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1286 test -f conftest.o
&& { (eval echo configure
:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1291 # cc exists but doesn't like -o.
1292 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1297 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1302 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1303 echo "$ac_t""yes" 1>&6
1305 echo "$ac_t""no" 1>&6
1306 cat >> confdefs.h
<<\EOF
1307 #define NO_MINUS_C_MINUS_O 1
1312 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1313 NO_MINUS_C_MINUS_O
=yes
1317 echo $ac_n "checking for long double""... $ac_c" 1>&6
1318 echo "configure:1319: checking for long double" >&5
1319 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test "$GCC" = yes; then
1323 gcc_cv_c_long_double
=yes
1325 cat > conftest.
$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1330 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1331 long double foo = 0.0;
1332 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1333 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1336 if { (eval echo configure
:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1338 gcc_cv_c_long_double
=yes
1340 echo "configure: failed program was:" >&5
1341 cat conftest.
$ac_ext >&5
1343 gcc_cv_c_long_double
=no
1349 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1350 if test $gcc_cv_c_long_double = yes; then
1351 cat >> confdefs.h
<<\EOF
1352 #define HAVE_LONG_DOUBLE 1
1358 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1360 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 save_CFLAGS
="$CFLAGS"
1364 CFLAGS
="-Wno-long-long"
1365 cat > conftest.
$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1373 if { (eval echo configure
:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 ac_cv_prog_cc_no_long_long
=yes
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 ac_cv_prog_cc_no_long_long
=no
1383 CFLAGS
="$save_CFLAGS"
1386 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1388 # If the native compiler is GCC, we can enable warnings even in stage1.
1389 # That's useful for people building cross-compilers, or just running a
1391 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1392 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1393 if test "x$GCC" = "xyes"; then
1394 if test $ac_cv_prog_cc_no_long_long = yes; then
1395 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1398 stage1_warn_cflags
=""
1403 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1404 echo "configure:1405: checking whether ${MAKE-make} sets \${MAKE}" >&5
1405 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1406 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1409 cat > conftestmake
<<\EOF
1411 @
echo 'ac_maketemp="${MAKE}"'
1413 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1415 if test -n "$ac_maketemp"; then
1416 eval ac_cv_prog_make_
${ac_make}_set
=yes
1418 eval ac_cv_prog_make_
${ac_make}_set
=no
1422 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1426 echo "$ac_t""no" 1>&6
1427 SET_MAKE
="MAKE=${MAKE-make}"
1431 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1432 echo "configure:1433: checking whether a default assembler was specified" >&5
1433 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1434 if test x
"$gas_flag" = x
"no"; then
1435 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1437 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1440 echo "$ac_t""no" 1>&6
1443 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether a default linker was specified" >&5
1445 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1446 if test x
"$gnu_ld_flag" = x
"no"; then
1447 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1449 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1452 echo "$ac_t""no" 1>&6
1455 echo $ac_n "checking for inline""... $ac_c" 1>&6
1456 echo "configure:1457: checking for inline" >&5
1457 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1461 for ac_kw
in inline __inline__ __inline
; do
1462 cat > conftest.
$ac_ext <<EOF
1463 #line 1464 "configure"
1464 #include "confdefs.h"
1470 if { (eval echo configure
:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1472 ac_cv_c_inline
=$ac_kw; break
1474 echo "configure: failed program was:" >&5
1475 cat conftest.
$ac_ext >&5
1482 echo "$ac_t""$ac_cv_c_inline" 1>&6
1483 case "$ac_cv_c_inline" in
1485 no
) cat >> confdefs.h
<<\EOF
1489 *) cat >> confdefs.h
<<EOF
1490 #define inline $ac_cv_c_inline
1496 # Find some useful tools
1497 for ac_prog
in gawk mawk nawk
awk
1499 # Extract the first word of "$ac_prog", so it can be a program name with args.
1500 set dummy
$ac_prog; ac_word
=$2
1501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1502 echo "configure:1503: checking for $ac_word" >&5
1503 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 if test -n "$AWK"; then
1507 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1509 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1511 for ac_dir
in $ac_dummy; do
1512 test -z "$ac_dir" && ac_dir
=.
1513 if test -f $ac_dir/$ac_word; then
1514 ac_cv_prog_AWK
="$ac_prog"
1521 AWK
="$ac_cv_prog_AWK"
1522 if test -n "$AWK"; then
1523 echo "$ac_t""$AWK" 1>&6
1525 echo "$ac_t""no" 1>&6
1528 test -n "$AWK" && break
1531 # Extract the first word of "flex", so it can be a program name with args.
1532 set dummy flex
; ac_word
=$2
1533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1534 echo "configure:1535: checking for $ac_word" >&5
1535 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 if test -n "$LEX"; then
1539 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1541 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1543 for ac_dir
in $ac_dummy; do
1544 test -z "$ac_dir" && ac_dir
=.
1545 if test -f $ac_dir/$ac_word; then
1546 ac_cv_prog_LEX
="flex"
1551 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1554 LEX
="$ac_cv_prog_LEX"
1555 if test -n "$LEX"; then
1556 echo "$ac_t""$LEX" 1>&6
1558 echo "$ac_t""no" 1>&6
1561 if test -z "$LEXLIB"
1567 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1568 echo "configure:1569: checking for yywrap in -l$ac_lib" >&5
1569 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 ac_save_LIBS
="$LIBS"
1574 LIBS
="-l$ac_lib $LIBS"
1575 cat > conftest.
$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 /* Override any gcc2 internal prototype to avoid an error. */
1579 /* We use char because int might match the return type of a gcc2
1580 builtin and then its argument prototype would still apply. */
1587 if { (eval echo configure
:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1589 eval "ac_cv_lib_$ac_lib_var=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 eval "ac_cv_lib_$ac_lib_var=no"
1597 LIBS
="$ac_save_LIBS"
1600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1604 echo "$ac_t""no" 1>&6
1609 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1610 echo "configure:1611: checking whether ln works" >&5
1611 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 rm -f conftestdata_t
1615 echo >conftestdata_f
1616 if ln conftestdata_f conftestdata_t
2>/dev
/null
1620 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1622 gcc_cv_prog_LN
="ln -s"
1627 rm -f conftestdata_f conftestdata_t
1630 LN
="$gcc_cv_prog_LN"
1631 if test "$gcc_cv_prog_LN" = "ln"; then
1632 echo "$ac_t""yes" 1>&6
1634 if test "$gcc_cv_prog_LN" = "ln -s"; then
1635 echo "$ac_t""no, using ln -s" 1>&6
1637 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1641 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1642 echo "configure:1643: checking whether ln -s works" >&5
1643 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 rm -f conftestdata_t
1647 echo >conftestdata_f
1648 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1650 gcc_cv_prog_LN_S
="ln -s"
1652 if ln conftestdata_f conftestdata_t
2>/dev
/null
1659 rm -f conftestdata_f conftestdata_t
1662 LN_S
="$gcc_cv_prog_LN_S"
1663 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1664 echo "$ac_t""yes" 1>&6
1666 if test "$gcc_cv_prog_LN_S" = "ln"; then
1667 echo "$ac_t""no, using ln" 1>&6
1669 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1673 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1674 echo "configure:1675: checking for volatile" >&5
1675 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 cat > conftest.
$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1686 if { (eval echo configure
:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1688 gcc_cv_c_volatile
=yes
1690 echo "configure: failed program was:" >&5
1691 cat conftest.
$ac_ext >&5
1693 gcc_cv_c_volatile
=no
1698 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1699 if test $gcc_cv_c_volatile = yes ; then
1700 cat >> confdefs.h
<<\EOF
1701 #define HAVE_VOLATILE 1
1706 # Extract the first word of "ranlib", so it can be a program name with args.
1707 set dummy ranlib
; ac_word
=$2
1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1709 echo "configure:1710: checking for $ac_word" >&5
1710 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 if test -n "$RANLIB"; then
1714 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1716 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1718 for ac_dir
in $ac_dummy; do
1719 test -z "$ac_dir" && ac_dir
=.
1720 if test -f $ac_dir/$ac_word; then
1721 ac_cv_prog_RANLIB
="ranlib"
1726 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1729 RANLIB
="$ac_cv_prog_RANLIB"
1730 if test -n "$RANLIB"; then
1731 echo "$ac_t""$RANLIB" 1>&6
1733 echo "$ac_t""no" 1>&6
1736 for ac_prog
in 'bison -y' byacc
1738 # Extract the first word of "$ac_prog", so it can be a program name with args.
1739 set dummy
$ac_prog; ac_word
=$2
1740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1741 echo "configure:1742: checking for $ac_word" >&5
1742 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 if test -n "$YACC"; then
1746 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1748 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1750 for ac_dir
in $ac_dummy; do
1751 test -z "$ac_dir" && ac_dir
=.
1752 if test -f $ac_dir/$ac_word; then
1753 ac_cv_prog_YACC
="$ac_prog"
1760 YACC
="$ac_cv_prog_YACC"
1761 if test -n "$YACC"; then
1762 echo "$ac_t""$YACC" 1>&6
1764 echo "$ac_t""no" 1>&6
1767 test -n "$YACC" && break
1769 test -n "$YACC" || YACC
="yacc"
1771 # Find a good install program. We prefer a C program (faster),
1772 # so one script is as good as another. But avoid the broken or
1773 # incompatible versions:
1774 # SysV /etc/install, /usr/sbin/install
1775 # SunOS /usr/etc/install
1776 # IRIX /sbin/install
1778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1780 # ./install, which can be erroneously created by make from ./install.sh.
1781 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1782 echo "configure:1783: checking for a BSD compatible install" >&5
1783 if test -z "$INSTALL"; then
1784 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1788 for ac_dir
in $PATH; do
1789 # Account for people who put trailing slashes in PATH elements.
1791 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1793 # OSF1 and SCO ODT 3.0 have their own names for install.
1794 for ac_prog
in ginstall scoinst
install; do
1795 if test -f $ac_dir/$ac_prog; then
1796 if test $ac_prog = install &&
1797 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1798 # AIX install. It has an incompatible calling convention.
1799 # OSF/1 installbsd also uses dspmsg, but is usable.
1802 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1813 if test "${ac_cv_path_install+set}" = set; then
1814 INSTALL
="$ac_cv_path_install"
1816 # As a last resort, use the slow shell script. We don't cache a
1817 # path for INSTALL within a source directory, because that will
1818 # break other packages using the cache if that directory is
1819 # removed, or if the path is relative.
1820 INSTALL
="$ac_install_sh"
1823 echo "$ac_t""$INSTALL" 1>&6
1825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1826 # It thinks the first close brace ends the variable substitution.
1827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1829 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1832 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1833 echo "configure:1834: checking how to run the C preprocessor" >&5
1834 # On Suns, sometimes $CPP names a directory.
1835 if test -n "$CPP" && test -d "$CPP"; then
1838 if test -z "$CPP"; then
1839 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 # This must be in double quotes, not single quotes, because CPP may get
1843 # substituted into the Makefile and "${CC-cc}" will confuse make.
1845 # On the NeXT, cc -E runs the code through the compiler's parser,
1846 # not just through cpp.
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1854 { (eval echo configure
:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1856 if test -z "$ac_err"; then
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1863 CPP
="${CC-cc} -E -traditional-cpp"
1864 cat > conftest.
$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1870 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1871 { (eval echo configure
:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1872 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1873 if test -z "$ac_err"; then
1877 echo "configure: failed program was:" >&5
1878 cat conftest.
$ac_ext >&5
1880 CPP
="${CC-cc} -nologo -E"
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1887 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1888 { (eval echo configure
:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1889 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1890 if test -z "$ac_err"; then
1894 echo "configure: failed program was:" >&5
1895 cat conftest.
$ac_ext >&5
1904 ac_cv_prog_CPP
="$CPP"
1906 CPP
="$ac_cv_prog_CPP"
1908 ac_cv_prog_CPP
="$CPP"
1910 echo "$ac_t""$CPP" 1>&6
1912 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1913 echo "configure:1914: checking for ANSI C header files" >&5
1914 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 cat > conftest.
$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1925 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1926 { (eval echo configure
:1927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1927 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1928 if test -z "$ac_err"; then
1930 ac_cv_header_stdc
=yes
1933 echo "configure: failed program was:" >&5
1934 cat conftest.
$ac_ext >&5
1936 ac_cv_header_stdc
=no
1940 if test $ac_cv_header_stdc = yes; then
1941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1942 cat > conftest.
$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1948 egrep "memchr" >/dev
/null
2>&1; then
1952 ac_cv_header_stdc
=no
1958 if test $ac_cv_header_stdc = yes; then
1959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1960 cat > conftest.
$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1966 egrep "free" >/dev
/null
2>&1; then
1970 ac_cv_header_stdc
=no
1976 if test $ac_cv_header_stdc = yes; then
1977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1978 if test "$cross_compiling" = yes; then
1981 cat > conftest.
$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1985 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1986 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1988 int main () { int i; for (i = 0; i < 256; i++)
1989 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1993 if { (eval echo configure
:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1997 echo "configure: failed program was:" >&5
1998 cat conftest.
$ac_ext >&5
2000 ac_cv_header_stdc
=no
2008 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2009 if test $ac_cv_header_stdc = yes; then
2010 cat >> confdefs.h
<<\EOF
2011 #define STDC_HEADERS 1
2016 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether time.h and sys/time.h may both be included" >&5
2018 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.
$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 #include <sys/types.h>
2025 #include <sys/time.h>
2031 if { (eval echo configure
:2032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2033 ac_cv_header_time
=yes
2035 echo "configure: failed program was:" >&5
2036 cat conftest.
$ac_ext >&5
2038 ac_cv_header_time
=no
2043 echo "$ac_t""$ac_cv_header_time" 1>&6
2044 if test $ac_cv_header_time = yes; then
2045 cat >> confdefs.h
<<\EOF
2046 #define TIME_WITH_SYS_TIME 1
2051 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether string.h and strings.h may both be included" >&5
2053 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 cat > conftest.
$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2060 #include <strings.h>
2065 if { (eval echo configure
:2066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2067 gcc_cv_header_string
=yes
2069 echo "configure: failed program was:" >&5
2070 cat conftest.
$ac_ext >&5
2072 gcc_cv_header_string
=no
2077 echo "$ac_t""$gcc_cv_header_string" 1>&6
2078 if test $gcc_cv_header_string = yes; then
2079 cat >> confdefs.h
<<\EOF
2080 #define STRING_WITH_STRINGS 1
2085 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2086 echo "configure:2087: checking for sys/wait.h that is POSIX.1 compatible" >&5
2087 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 cat > conftest.
$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2093 #include <sys/types.h>
2094 #include <sys/wait.h>
2096 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2099 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2104 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2107 if { (eval echo configure
:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2109 ac_cv_header_sys_wait_h
=yes
2111 echo "configure: failed program was:" >&5
2112 cat conftest.
$ac_ext >&5
2114 ac_cv_header_sys_wait_h
=no
2119 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2120 if test $ac_cv_header_sys_wait_h = yes; then
2121 cat >> confdefs.h
<<\EOF
2122 #define HAVE_SYS_WAIT_H 1
2127 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2128 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2129 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2132 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_hdr" >&5
2135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.
$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2143 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2144 { (eval echo configure
:2145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2145 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2146 if test -z "$ac_err"; then
2148 eval "ac_cv_header_$ac_safe=yes"
2151 echo "configure: failed program was:" >&5
2152 cat conftest.
$ac_ext >&5
2154 eval "ac_cv_header_$ac_safe=no"
2158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2161 cat >> confdefs.h
<<EOF
2162 #define $ac_tr_hdr 1
2166 echo "$ac_t""no" 1>&6
2171 # Check for thread headers.
2172 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2173 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2174 echo "configure:2175: checking for thread.h" >&5
2175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2178 cat > conftest.
$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2183 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2184 { (eval echo configure
:2185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2185 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2186 if test -z "$ac_err"; then
2188 eval "ac_cv_header_$ac_safe=yes"
2191 echo "configure: failed program was:" >&5
2192 cat conftest.
$ac_ext >&5
2194 eval "ac_cv_header_$ac_safe=no"
2198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2199 echo "$ac_t""yes" 1>&6
2202 echo "$ac_t""no" 1>&6
2206 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2207 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2208 echo "configure:2209: checking for pthread.h" >&5
2209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 cat > conftest.
$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2215 #include <pthread.h>
2217 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2218 { (eval echo configure
:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2219 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2220 if test -z "$ac_err"; then
2222 eval "ac_cv_header_$ac_safe=yes"
2225 echo "configure: failed program was:" >&5
2226 cat conftest.
$ac_ext >&5
2228 eval "ac_cv_header_$ac_safe=no"
2232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2233 echo "$ac_t""yes" 1>&6
2236 echo "$ac_t""no" 1>&6
2241 # See if GNAT has been installed
2242 # Extract the first word of "gnatbind", so it can be a program name with args.
2243 set dummy gnatbind
; ac_word
=$2
2244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2245 echo "configure:2246: checking for $ac_word" >&5
2246 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2249 if test -n "$gnat"; then
2250 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2252 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2254 for ac_dir
in $ac_dummy; do
2255 test -z "$ac_dir" && ac_dir
=.
2256 if test -f $ac_dir/$ac_word; then
2257 ac_cv_prog_gnat
="yes"
2262 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2265 gnat
="$ac_cv_prog_gnat"
2266 if test -n "$gnat"; then
2267 echo "$ac_t""$gnat" 1>&6
2269 echo "$ac_t""no" 1>&6
2273 # Do we have a single-tree copy of texinfo?
2274 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2275 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2276 gcc_cv_prog_makeinfo_modern
=yes
2277 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2279 # See if makeinfo has been installed and is modern enough
2280 # that we can use it.
2281 # Extract the first word of "makeinfo", so it can be a program name with args.
2282 set dummy makeinfo
; ac_word
=$2
2283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_word" >&5
2285 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 if test -n "$MAKEINFO"; then
2289 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2291 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2293 for ac_dir
in $ac_dummy; do
2294 test -z "$ac_dir" && ac_dir
=.
2295 if test -f $ac_dir/$ac_word; then
2296 ac_cv_prog_MAKEINFO
="makeinfo"
2303 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2304 if test -n "$MAKEINFO"; then
2305 echo "$ac_t""$MAKEINFO" 1>&6
2307 echo "$ac_t""no" 1>&6
2310 if test -n "$MAKEINFO"; then
2311 # Found it, now check the version.
2312 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2313 echo "configure:2314: checking for modern makeinfo" >&5
2314 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2318 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2319 echo "configure:2320: version of makeinfo is $ac_prog_version" >&5
2320 case $ac_prog_version in
2321 '') gcc_cv_prog_makeinfo_modern
=no
;;
2322 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2323 gcc_cv_prog_makeinfo_modern
=yes;;
2324 *) gcc_cv_prog_makeinfo_modern
=no
;;
2329 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2331 gcc_cv_prog_makeinfo_modern
=no
2336 if test $gcc_cv_prog_makeinfo_modern = no
; then
2337 echo "configure: warning:
2338 *** Makeinfo is missing or too old.
2339 *** Info documentation will not be built or installed." 1>&2
2344 INSTALL_INFO
=install-info
2347 # See if the stage1 system preprocessor understands the ANSI C
2348 # preprocessor stringification operator.
2351 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2352 echo "configure:2353: checking for preprocessor stringizing operator" >&5
2353 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 cat > conftest.
$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2362 char *s = x(teststring);
2365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2366 egrep "#teststring" >/dev
/null
2>&1; then
2368 ac_cv_c_stringize
=no
2371 ac_cv_c_stringize
=yes
2377 if test "${ac_cv_c_stringize}" = yes
2379 cat >> confdefs.h
<<\EOF
2380 #define HAVE_STRINGIZE 1
2384 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2387 # Use <inttypes.h> only if it exists,
2388 # doesn't clash with <sys/types.h>, and declares intmax_t.
2389 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2390 echo "configure:2391: checking for inttypes.h" >&5
2391 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.
$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 #include <sys/types.h>
2398 #include <inttypes.h>
2403 if { (eval echo configure
:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2405 gcc_cv_header_inttypes_h
=yes
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2410 gcc_cv_header_inttypes_h
=no
2415 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2416 if test $gcc_cv_header_inttypes_h = yes; then
2417 cat >> confdefs.h
<<\EOF
2418 #define HAVE_INTTYPES_H 1
2424 # Determine if enumerated bitfields are unsigned. ISO C says they can
2425 # be either signed or unsigned.
2427 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2428 echo "configure:2429: checking for unsigned enumerated bitfields" >&5
2429 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 if test "$cross_compiling" = yes; then
2433 gcc_cv_enum_bf_unsigned
=yes
2435 cat > conftest.
$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2439 enum t { BLAH = 128 } ;
2440 struct s_t { enum t member : 8; } s ;
2444 if (s.member < 0) exit(1);
2449 if { (eval echo configure
:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2451 gcc_cv_enum_bf_unsigned
=yes
2453 echo "configure: failed program was:" >&5
2454 cat conftest.
$ac_ext >&5
2456 gcc_cv_enum_bf_unsigned
=no
2463 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2464 if test $gcc_cv_enum_bf_unsigned = yes; then
2465 cat >> confdefs.h
<<\EOF
2466 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2471 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2472 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2473 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2474 fputs_unlocked getrusage valloc
2476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_func" >&5
2478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.
$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char $ac_func(); below. */
2487 /* Override any gcc2 internal prototype to avoid an error. */
2488 /* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2494 /* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2505 if { (eval echo configure
:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2507 eval "ac_cv_func_$ac_func=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 eval "ac_cv_func_$ac_func=no"
2517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2519 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2520 cat >> confdefs.h
<<EOF
2521 #define $ac_tr_func 1
2525 echo "$ac_t""no" 1>&6
2530 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2531 echo "configure:2532: checking for ssize_t" >&5
2532 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 cat > conftest.
$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <sys/types.h>
2544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2545 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2547 ac_cv_type_ssize_t
=yes
2550 ac_cv_type_ssize_t
=no
2555 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2556 if test $ac_cv_type_ssize_t = no
; then
2557 cat >> confdefs.h
<<\EOF
2564 # Try to determine the array type of the second argument of getgroups
2565 # for the target system (int or gid_t).
2566 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2567 echo "configure:2568: checking for uid_t in sys/types.h" >&5
2568 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2571 cat > conftest.
$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <sys/types.h>
2576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2577 egrep "uid_t" >/dev
/null
2>&1; then
2579 ac_cv_type_uid_t
=yes
2588 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2589 if test $ac_cv_type_uid_t = no
; then
2590 cat >> confdefs.h
<<\EOF
2594 cat >> confdefs.h
<<\EOF
2600 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2601 echo "configure:2602: checking type of array argument to getgroups" >&5
2602 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 if test "$cross_compiling" = yes; then
2606 ac_cv_type_getgroups
=cross
2608 cat > conftest.
$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2612 /* Thanks to Mike Rendell for this test. */
2613 #include <sys/types.h>
2616 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2621 union { gid_t gval; long lval; } val;
2624 for (i = 0; i < NGID; i++)
2625 gidset[i] = val.gval;
2626 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2628 /* Exit non-zero if getgroups seems to require an array of ints. This
2629 happens when gid_t is short but getgroups modifies an array of ints. */
2630 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2634 if { (eval echo configure
:2635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2636 ac_cv_type_getgroups
=gid_t
2638 echo "configure: failed program was:" >&5
2639 cat conftest.
$ac_ext >&5
2641 ac_cv_type_getgroups
=int
2646 if test $ac_cv_type_getgroups = cross
; then
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2653 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2655 ac_cv_type_getgroups
=gid_t
2658 ac_cv_type_getgroups
=int
2665 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2666 cat >> confdefs.h
<<EOF
2667 #define GETGROUPS_T $ac_cv_type_getgroups
2671 if test "${target}" = "${build}"; then
2672 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2675 # This condition may need some tweaking. It should include all
2676 # targets where the array type of the second argument of getgroups
2677 # is int and the type of gid_t is not equivalent to int.
2678 *-*-sunos* |
*-*-ultrix*)
2679 TARGET_GETGROUPS_T
=int
2682 TARGET_GETGROUPS_T
=gid_t
2688 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2689 echo "configure:2690: checking for vprintf" >&5
2690 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.
$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 /* System header to define __stub macros and hopefully few prototypes,
2697 which can conflict with char vprintf(); below. */
2699 /* Override any gcc2 internal prototype to avoid an error. */
2700 /* We use char because int might match the return type of a gcc2
2701 builtin and then its argument prototype would still apply. */
2706 /* The GNU C library defines this for functions which it implements
2707 to always fail with ENOSYS. Some functions are actually named
2708 something starting with __ and the normal name is an alias. */
2709 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2717 if { (eval echo configure
:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2719 eval "ac_cv_func_vprintf=yes"
2721 echo "configure: failed program was:" >&5
2722 cat conftest.
$ac_ext >&5
2724 eval "ac_cv_func_vprintf=no"
2729 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 cat >> confdefs.h
<<\EOF
2732 #define HAVE_VPRINTF 1
2736 echo "$ac_t""no" 1>&6
2739 if test "$ac_cv_func_vprintf" != yes; then
2740 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2741 echo "configure:2742: checking for _doprnt" >&5
2742 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.
$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* System header to define __stub macros and hopefully few prototypes,
2749 which can conflict with char _doprnt(); below. */
2751 /* Override any gcc2 internal prototype to avoid an error. */
2752 /* We use char because int might match the return type of a gcc2
2753 builtin and then its argument prototype would still apply. */
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2769 if { (eval echo configure
:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2771 eval "ac_cv_func__doprnt=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.
$ac_ext >&5
2776 eval "ac_cv_func__doprnt=no"
2781 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 cat >> confdefs.h
<<\EOF
2784 #define HAVE_DOPRNT 1
2788 echo "$ac_t""no" 1>&6
2795 if test $ac_cv_func_vprintf != yes ; then
2797 if test $ac_cv_func__doprnt != yes ; then
2804 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2805 echo "configure:2806: checking whether the printf functions support %p" >&5
2806 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2809 if test "$cross_compiling" = yes; then
2810 gcc_cv_func_printf_ptr
=no
2812 cat > conftest.
$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2820 char *p = buf, *q = NULL;
2821 sprintf(buf, "%p", p);
2822 sscanf(buf, "%p", &q);
2826 if { (eval echo configure
:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2828 gcc_cv_func_printf_ptr
=yes
2830 echo "configure: failed program was:" >&5
2831 cat conftest.
$ac_ext >&5
2833 gcc_cv_func_printf_ptr
=no
2838 rm -f core core.
* *.core
2841 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2842 if test $gcc_cv_func_printf_ptr = yes ; then
2843 cat >> confdefs.h
<<\EOF
2844 #define HAVE_PRINTF_PTR 1
2852 # Under some versions of uwin, vfork is notoriously buggy and the test
2853 # can hang configure; on other versions, vfork exists just as a stub.
2854 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2855 ac_cv_func_vfork_works
=no
2858 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2859 echo "configure:2860: checking for pid_t" >&5
2860 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 cat > conftest.
$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2866 #include <sys/types.h>
2872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2873 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2875 ac_cv_type_pid_t
=yes
2883 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2884 if test $ac_cv_type_pid_t = no
; then
2885 cat >> confdefs.h
<<\EOF
2891 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2892 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2893 echo "configure:2894: checking for vfork.h" >&5
2894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 cat > conftest.
$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2902 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2903 { (eval echo configure
:2904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2904 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2905 if test -z "$ac_err"; then
2907 eval "ac_cv_header_$ac_safe=yes"
2910 echo "configure: failed program was:" >&5
2911 cat conftest.
$ac_ext >&5
2913 eval "ac_cv_header_$ac_safe=no"
2917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2918 echo "$ac_t""yes" 1>&6
2919 cat >> confdefs.h
<<\EOF
2920 #define HAVE_VFORK_H 1
2924 echo "$ac_t""no" 1>&6
2927 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2928 echo "configure:2929: checking for working vfork" >&5
2929 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 if test "$cross_compiling" = yes; then
2933 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2934 echo "configure:2935: checking for vfork" >&5
2935 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 cat > conftest.
$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 /* System header to define __stub macros and hopefully few prototypes,
2942 which can conflict with char vfork(); below. */
2944 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined (__stub_vfork) || defined (__stub___vfork)
2962 if { (eval echo configure
:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2964 eval "ac_cv_func_vfork=yes"
2966 echo "configure: failed program was:" >&5
2967 cat conftest.
$ac_ext >&5
2969 eval "ac_cv_func_vfork=no"
2974 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2978 echo "$ac_t""no" 1>&6
2981 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2983 cat > conftest.
$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 /* Thanks to Paul Eggert for this test. */
2988 #include <sys/types.h>
2989 #include <sys/stat.h>
2990 #ifdef HAVE_UNISTD_H
2996 /* On some sparc systems, changes by the child to local and incoming
2997 argument registers are propagated back to the parent.
2998 The compiler is told about this with #include <vfork.h>,
2999 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3000 Test for this by using a static variable whose address
3001 is put into a register that is clobbered by the vfork. */
3004 sparc_address_test (int arg)
3006 sparc_address_test (arg) int arg;
3024 pid_t parent = getpid ();
3027 sparc_address_test ();
3032 /* Here is another test for sparc vfork register problems.
3033 This test uses lots of local variables, at least
3034 as many local variables as main has allocated so far
3035 including compiler temporaries. 4 locals are enough for
3036 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3037 A buggy compiler should reuse the register of parent
3038 for one of the local variables, since it will think that
3039 parent can't possibly be used any more in this routine.
3040 Assigning to the local variable will thus munge parent
3041 in the parent process. */
3043 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3044 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3045 /* Convince the compiler that p..p7 are live; otherwise, it might
3046 use the same hardware register for all 8 local variables. */
3047 if (p != p1 || p != p2 || p != p3 || p != p4
3048 || p != p5 || p != p6 || p != p7)
3051 /* On some systems (e.g. IRIX 3.3),
3052 vfork doesn't separate parent from child file descriptors.
3053 If the child closes a descriptor before it execs or exits,
3054 this munges the parent's descriptor as well.
3055 Test for this by closing stdout in the child. */
3056 _exit(close(fileno(stdout)) != 0);
3061 while (wait(&status) != child)
3064 /* Was there some problem with vforking? */
3067 /* Did the child fail? (This shouldn't happen.) */
3070 /* Did the vfork/compiler bug occur? */
3071 || parent != getpid()
3073 /* Did the file descriptor bug occur? */
3074 || fstat(fileno(stdout), &st) != 0
3079 if { (eval echo configure
:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3081 ac_cv_func_vfork_works
=yes
3083 echo "configure: failed program was:" >&5
3084 cat conftest.
$ac_ext >&5
3086 ac_cv_func_vfork_works
=no
3093 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3094 if test $ac_cv_func_vfork_works = no
; then
3095 cat >> confdefs.h
<<\EOF
3101 for ac_hdr
in unistd.h
3103 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3105 echo "configure:3106: checking for $ac_hdr" >&5
3106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 cat > conftest.
$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3114 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3115 { (eval echo configure
:3116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3116 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3117 if test -z "$ac_err"; then
3119 eval "ac_cv_header_$ac_safe=yes"
3122 echo "configure: failed program was:" >&5
3123 cat conftest.
$ac_ext >&5
3125 eval "ac_cv_header_$ac_safe=no"
3129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3132 cat >> confdefs.h
<<EOF
3133 #define $ac_tr_hdr 1
3137 echo "$ac_t""no" 1>&6
3141 for ac_func
in getpagesize
3143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_func" >&5
3145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 /* System header to define __stub macros and hopefully few prototypes,
3152 which can conflict with char $ac_func(); below. */
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 /* We use char because int might match the return type of a gcc2
3156 builtin and then its argument prototype would still apply. */
3161 /* The GNU C library defines this for functions which it implements
3162 to always fail with ENOSYS. Some functions are actually named
3163 something starting with __ and the normal name is an alias. */
3164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3172 if { (eval echo configure
:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3174 eval "ac_cv_func_$ac_func=yes"
3176 echo "configure: failed program was:" >&5
3177 cat conftest.
$ac_ext >&5
3179 eval "ac_cv_func_$ac_func=no"
3184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3187 cat >> confdefs.h
<<EOF
3188 #define $ac_tr_func 1
3192 echo "$ac_t""no" 1>&6
3196 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3197 echo "configure:3198: checking for working mmap which provides zeroed pages anywhere" >&5
3198 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 if test "$cross_compiling" = yes; then
3202 ac_cv_func_mmap_anywhere
=no
3204 cat > conftest.
$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3208 /* Test by Richard Henderson and Alexandre Oliva.
3209 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3210 #include <sys/types.h>
3212 #include <sys/mman.h>
3214 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3215 # define MAP_ANONYMOUS MAP_ANON
3218 /* This mess was copied from the GNU getpagesize.h. */
3219 #ifndef HAVE_GETPAGESIZE
3220 # ifdef HAVE_UNISTD_H
3221 # include <unistd.h>
3224 /* Assume that all systems that can run configure have sys/param.h. */
3225 # ifndef HAVE_SYS_PARAM_H
3226 # define HAVE_SYS_PARAM_H 1
3229 # ifdef _SC_PAGESIZE
3230 # define getpagesize() sysconf(_SC_PAGESIZE)
3231 # else /* no _SC_PAGESIZE */
3232 # ifdef HAVE_SYS_PARAM_H
3233 # include <sys/param.h>
3234 # ifdef EXEC_PAGESIZE
3235 # define getpagesize() EXEC_PAGESIZE
3236 # else /* no EXEC_PAGESIZE */
3238 # define getpagesize() NBPG * CLSIZE
3241 # endif /* no CLSIZE */
3242 # else /* no NBPG */
3244 # define getpagesize() NBPC
3245 # else /* no NBPC */
3247 # define getpagesize() PAGESIZE
3248 # endif /* PAGESIZE */
3249 # endif /* no NBPC */
3250 # endif /* no NBPG */
3251 # endif /* no EXEC_PAGESIZE */
3252 # else /* no HAVE_SYS_PARAM_H */
3253 # define getpagesize() 8192 /* punt totally */
3254 # endif /* no HAVE_SYS_PARAM_H */
3255 # endif /* no _SC_PAGESIZE */
3257 #endif /* no HAVE_GETPAGESIZE */
3264 #ifndef MAP_ANONYMOUS
3265 fd = open("/dev/zero", O_RDWR);
3271 #ifdef MAP_ANONYMOUS
3272 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3273 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3275 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3277 if (x == (char *) -1)
3282 if (munmap(x, pg) < 0)
3288 if { (eval echo configure
:3289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3290 ac_cv_func_mmap_anywhere
=yes
3292 echo "configure: failed program was:" >&5
3293 cat conftest.
$ac_ext >&5
3295 ac_cv_func_mmap_anywhere
=no
3302 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3303 if test $ac_cv_func_mmap_anywhere = yes; then
3304 cat >> confdefs.h
<<\EOF
3305 #define HAVE_MMAP_ANYWHERE 1
3310 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3311 echo "configure:3312: checking for working mmap of a file" >&5
3312 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 # Create a file one thousand bytes long.
3316 for i
in 1 2 3 4 5 6 7 8 9 0
3317 do for j
in 1 2 3 4 5 6 7 8 9 0
3320 done > conftestdata$$
3322 if test "$cross_compiling" = yes; then
3323 ac_cv_func_mmap_file
=no
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3329 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3330 Richard Henderson and Alexandre Oliva.
3331 Check whether read-only mmap of a plain file works. */
3332 #include <sys/types.h>
3333 #include <sys/stat.h>
3335 #include <sys/mman.h>
3343 fd = open("conftestdata$$", O_RDONLY);
3347 if (fstat (fd, &st))
3350 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3351 if (x == (char *) -1)
3354 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3357 if (munmap(x, st.st_size) < 0)
3363 if { (eval echo configure
:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3365 ac_cv_func_mmap_file
=yes
3367 echo "configure: failed program was:" >&5
3368 cat conftest.
$ac_ext >&5
3370 ac_cv_func_mmap_file
=no
3377 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3378 if test $ac_cv_func_mmap_file = yes; then
3379 cat >> confdefs.h
<<\EOF
3380 #define HAVE_MMAP_FILE 1
3386 # We will need to find libiberty.h and ansidecl.h
3387 saved_CFLAGS
="$CFLAGS"
3388 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3389 for ac_func
in bcopy bzero bcmp \
3390 index rindex getenv atol sbrk abort atof getcwd getwd \
3391 strsignal putc_unlocked fputs_unlocked strstr environ \
3392 malloc realloc calloc free
basename getopt
3394 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3395 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3396 echo "configure:3397: checking whether $ac_func is declared" >&5
3397 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 #include "gansidecl.h"
3408 char *(*pfn) = (char *(*)) $ac_func ;
3412 if { (eval echo configure
:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3414 eval "gcc_cv_have_decl_$ac_func=yes"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.
$ac_ext >&5
3419 eval "gcc_cv_have_decl_$ac_func=no"
3424 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3425 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3426 #define $ac_tr_decl 1
3430 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3431 #define $ac_tr_decl 0
3437 if test x
= y
; then
3438 cat >> confdefs.h
<<EOF
3439 #define HAVE_DECL_BCOPY 1
3441 cat >> confdefs.h
<<EOF
3442 #define HAVE_DECL_BZERO 1
3444 cat >> confdefs.h
<<EOF
3445 #define HAVE_DECL_BCMP 1
3448 cat >> confdefs.h
<<EOF
3449 #define HAVE_DECL_INDEX 1
3451 cat >> confdefs.h
<<EOF
3452 #define HAVE_DECL_RINDEX 1
3454 cat >> confdefs.h
<<EOF
3455 #define HAVE_DECL_GETENV 1
3457 cat >> confdefs.h
<<EOF
3458 #define HAVE_DECL_ATOL 1
3460 cat >> confdefs.h
<<EOF
3461 #define HAVE_DECL_SBRK 1
3463 cat >> confdefs.h
<<EOF
3464 #define HAVE_DECL_ABORT 1
3466 cat >> confdefs.h
<<EOF
3467 #define HAVE_DECL_ATOF 1
3469 cat >> confdefs.h
<<EOF
3470 #define HAVE_DECL_GETCWD 1
3472 cat >> confdefs.h
<<EOF
3473 #define HAVE_DECL_GETWD 1
3476 cat >> confdefs.h
<<EOF
3477 #define HAVE_DECL_STRSIGNAL 1
3479 cat >> confdefs.h
<<EOF
3480 #define HAVE_DECL_PUTC_UNLOCKED 1
3482 cat >> confdefs.h
<<EOF
3483 #define HAVE_DECL_FPUTS_UNLOCKED 1
3485 cat >> confdefs.h
<<EOF
3486 #define HAVE_DECL_STRSTR 1
3488 cat >> confdefs.h
<<EOF
3489 #define HAVE_DECL_ENVIRON 1
3492 cat >> confdefs.h
<<EOF
3493 #define HAVE_DECL_MALLOC 1
3495 cat >> confdefs.h
<<EOF
3496 #define HAVE_DECL_REALLOC 1
3498 cat >> confdefs.h
<<EOF
3499 #define HAVE_DECL_CALLOC 1
3501 cat >> confdefs.h
<<EOF
3502 #define HAVE_DECL_FREE 1
3504 cat >> confdefs.h
<<EOF
3505 #define HAVE_DECL_BASENAME 1
3507 cat >> confdefs.h
<<EOF
3508 #define HAVE_DECL_GETOPT 1
3513 for ac_func
in getrlimit setrlimit getrusage
3515 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3516 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3517 echo "configure:3518: checking whether $ac_func is declared" >&5
3518 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 cat > conftest.
$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3524 #include "gansidecl.h"
3526 #ifdef HAVE_SYS_RESOURCE_H
3527 #include <sys/resource.h>
3533 char *(*pfn) = (char *(*)) $ac_func ;
3537 if { (eval echo configure
:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3539 eval "gcc_cv_have_decl_$ac_func=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.
$ac_ext >&5
3544 eval "gcc_cv_have_decl_$ac_func=no"
3549 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3550 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3551 #define $ac_tr_decl 1
3555 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3556 #define $ac_tr_decl 0
3562 if test x
= y
; then
3563 cat >> confdefs.h
<<EOF
3564 #define HAVE_DECL_GETRLIMIT 1
3566 cat >> confdefs.h
<<EOF
3567 #define HAVE_DECL_SETRLIMIT 1
3569 cat >> confdefs.h
<<EOF
3570 #define HAVE_DECL_GETRUSAGE 1
3575 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3576 CFLAGS
="$saved_CFLAGS"
3578 # mkdir takes a single argument on some systems.
3579 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3580 echo "configure:3581: checking if mkdir takes one argument" >&5
3581 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 cat > conftest.
$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3588 #include <sys/types.h>
3589 #ifdef HAVE_SYS_STAT_H
3590 # include <sys/stat.h>
3592 #ifdef HAVE_UNISTD_H
3593 # include <unistd.h>
3595 #ifdef HAVE_DIRECT_H
3596 # include <direct.h>
3602 if { (eval echo configure
:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604 gcc_cv_mkdir_takes_one_arg
=no
3606 echo "configure: failed program was:" >&5
3607 cat conftest.
$ac_ext >&5
3609 gcc_cv_mkdir_takes_one_arg
=yes
3614 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3615 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3616 cat >> confdefs.h
<<\EOF
3617 #define MKDIR_TAKES_ONE_ARG 1
3631 build_install_headers_dir
=install-headers-tar
3636 host_truncate_target
=
3639 # Decode the host machine, then the target machine.
3640 # For the host machine, we save the xm_file variable as host_xm_file;
3641 # then we decode the target machine and forget everything else
3642 # that came from the host machine.
3643 for machine
in $build $host $target; do
3657 # Set this to force installation and use of collect2.
3659 # Set this to override the default target model.
3661 # Set this to control how the header file directory is installed.
3662 install_headers_dir
=install-headers-tar
3663 # Set this to a non-empty list of args to pass to cpp if the target
3664 # wants its .md file passed through cpp.
3666 # Set this if directory names should be truncated to 14 characters.
3668 # Set this if gdb needs a dir command with `dirname $out_file`
3669 gdb_needs_out_file_path
=
3670 # Set this if the build machine requires executables to have a
3673 # Set this to control which thread package will be used.
3675 # Reinitialize these from the flag values every loop pass, since some
3676 # configure entries modify them.
3678 gnu_ld
="$gnu_ld_flag"
3679 enable_threads
=$enable_threads_flag
3681 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3682 # updated in each machine entry.
3684 cpu_type
=`echo $machine | sed 's/-.*$//'`
3724 tm_file
=${cpu_type}/${cpu_type}.h
3725 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3726 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3728 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3730 # On a.out targets, we need to use collect2.
3737 # Common parts for linux-gnu and openbsd systems
3740 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3743 tm_file
=${cpu_type}/openbsd.h
3744 tmake_file
="t-libc-ok t-openbsd"
3745 # avoid surprises, always provide an xm-openbsd file
3746 xm_file
=${cpu_type}/xm-openbsd.h
3747 # don't depend on processor x-fragments as well
3749 if test x
$enable_threads = xyes
; then
3751 tmake_file
="${tmake_file} t-openbsd-thread"
3757 # Support site-specific machine types.
3759 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3760 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3761 xm_file
=${cpu_type}/xm-
$rest.h
3762 tm_file
=${cpu_type}/$rest.h
3763 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3764 then xmake_file
=${cpu_type}/x-
$rest; \
3767 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3768 then tmake_file
=${cpu_type}/t-
$rest; \
3774 a29k-
*-bsd* | a29k-
*-sym1*)
3775 tm_file
="${tm_file} a29k/unix.h"
3777 xmake_file
=a29k
/x-unix
3780 a29k-
*-udi | a29k-
*-coff)
3781 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3782 tmake_file
=a29k
/t-a29kbare
3785 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3786 tmake_file
=a29k
/t-vx29k
3787 extra_parts
="crtbegin.o crtend.o"
3788 thread_file
='vxworks'
3790 a29k-
*-*) # Default a29k environment.
3794 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3796 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3797 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3799 # GAS + IEEE_CONFORMANT
3800 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3802 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3803 xmake_file
="x-interix alpha/t-pe"
3804 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3805 if test x
$enable_threads = xyes
; then
3808 if test x
$stabs = xyes
; then
3809 tm_file
="${tm_file} dbxcoff.h"
3811 #prefix='$$INTERIX_ROOT'/usr/contrib
3812 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3814 alpha
*-*-linux-gnuecoff*)
3815 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3816 target_cpu_default
="MASK_GAS"
3817 tmake_file
="alpha/t-alpha alpha/t-ieee"
3822 alpha
*-*-linux-gnulibc1*)
3823 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3824 target_cpu_default
="MASK_GAS"
3825 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3826 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3829 if test x
$enable_threads = xyes
; then
3833 alpha
*-*-linux-gnu*)
3834 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3835 target_cpu_default
="MASK_GAS"
3836 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3837 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3840 if test x
$enable_threads = xyes
; then
3845 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3846 target_cpu_default
="MASK_GAS"
3847 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3848 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3854 # default x-alpha is only appropriate for dec-osf.
3855 target_cpu_default
="MASK_GAS"
3856 tmake_file
="alpha/t-alpha alpha/t-ieee"
3860 if test x
$stabs = xyes
3862 tm_file
="${tm_file} dbx.h"
3864 if test x
$gas != xyes
3866 extra_passes
="mips-tfile mips-tdump"
3869 tmake_file
="alpha/t-alpha alpha/t-ieee"
3872 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3875 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3878 tm_file
="${tm_file} alpha/osf.h"
3879 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3880 # a broken tar, so we use cpio instead.
3881 install_headers_dir
=install-headers-cpio
3884 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3888 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3889 target_cpu_default
=MASK_SUPPORT_ARCH
3894 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3895 tmake_file
="alpha/t-alpha alpha/t-ieee"
3898 extra_passes
="mips-tfile mips-tdump"
3901 thread_file
='vxworks'
3904 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3905 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3906 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3907 xmake_file
=winnt
/x-winnt
3908 extra_host_objs
=oldnames.o
3909 extra_gcc_objs
="spawnv.o oldnames.o"
3910 if test x
$gnu_ld != xyes
3912 extra_programs
=ld.exe
3914 if test x
$enable_threads = xyes
; then
3920 xm_file
="${xm_file} alpha/xm-vms.h"
3921 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3924 extra_parts
="crtinit.o crtfini.o"
3926 arm-
*-coff* | armel-
*-coff*)
3928 tmake_file
=arm
/t-arm-coff
3932 tmake_file
=arm
/t-arm-coff
3933 thread_file
='vxworks'
3935 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3936 tm_file
=arm
/riscix1-1.h
3939 arm-
*-riscix*) # Acorn RISC machine
3940 if test x
$gas = xyes
3942 tm_file
=arm
/rix-gas.h
3944 tm_file
=arm
/riscix.h
3946 xmake_file
=arm
/x-riscix
3947 tmake_file
=arm
/t-riscix
3950 arm-semi-aout | armel-semi-aout
)
3952 tmake_file
=arm
/t-semi
3954 arm-semi-aof | armel-semi-aof
)
3955 tm_file
=arm
/semiaof.h
3956 tmake_file
=arm
/t-semiaof
3959 tm_file
=arm
/netbsd.h
3960 tmake_file
="t-netbsd arm/t-netbsd"
3963 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3966 tm_file
=arm
/linux-aout.h
3967 tmake_file
=arm
/t-linux
3970 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3971 xm_file
=arm
/xm-linux.h
3973 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3976 tm_file
="arm/linux-elf26.h $tm_file"
3979 tmake_file
="t-linux arm/t-linux"
3980 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3982 case x
${enable_threads} in
3983 x | xyes | xpthreads | xposix
)
3988 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3989 xm_file
=arm
/xm-linux.h
3991 tm_file
="arm/linux-elf.h"
3994 tm_file
="arm/linux-elf26.h $tm_file"
3997 tmake_file
="t-linux arm/t-linux"
3998 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4000 case x
${enable_threads} in
4001 x | xyes | xpthreads | xposix
)
4006 arm
*-*-uclinux*) # ARM ucLinux
4007 tm_file
=arm
/uclinux-elf.h
4008 tmake_file
=arm
/t-arm-elf
4012 tmake_file
=arm
/t-arm-aout
4015 tm_file
=arm
/ecos-elf.h
4016 tmake_file
=arm
/t-arm-elf
4019 tm_file
=arm
/unknown-elf.h
4020 tmake_file
=arm
/t-arm-elf
4023 tm_file
=arm
/conix-elf.h
4024 tmake_file
=arm
/t-arm-elf
4027 tm_file
=arm
/unknown-elf-oabi.h
4028 tmake_file
=arm
/t-arm-elf
4037 c1-convex-
*) # Convex C1
4038 target_cpu_default
=1
4041 c2-convex-
*) # Convex C2
4042 target_cpu_default
=2
4046 target_cpu_default
=4
4050 target_cpu_default
=8
4054 target_cpu_default
=16
4059 tmake_file
=c4x
/t-c4x
4061 clipper-intergraph-clix
*)
4062 tm_file
="${tm_file} svr3.h clipper/clix.h"
4063 xm_file
=clipper
/xm-clix.h
4064 xmake_file
=clipper
/x-clix
4065 extra_headers
=va-clipper.h
4066 extra_parts
="crtbegin.o crtend.o"
4067 install_headers_dir
=install-headers-cpio
4078 tm_file
="fr30/fr30.h"
4079 tmake_file
=fr30
/t-fr30
4080 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4082 # This hasn't been upgraded to GCC 2.
4083 # fx80-alliant-*) # Alliant FX/80
4089 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4090 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4091 tmake_file
="t-linux pa/t-linux"
4092 extra_parts
="crtbegin.o crtend.o"
4095 if test x
$enable_threads = xyes
; then
4100 target_cpu_default
="MASK_PA_11"
4101 tmake_file
=pa
/t-openbsd
4104 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4105 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4106 xm_file
=pa
/xm-papro.h
4110 target_cpu_default
="MASK_PA_11"
4111 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4115 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4116 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4117 xm_file
=pa
/xm-papro.h
4121 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4125 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4126 target_cpu_default
="MASK_PA_11"
4130 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4134 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4135 xm_file
=pa
/xm-pahpux.h
4136 xmake_file
=pa
/x-pa-hpux
4137 if test x
$gas = xyes
4139 tm_file
="${tm_file} pa/gas.h"
4141 install_headers_dir
=install-headers-cpio
4144 hppa1.0
-*-hpux8.0
[0-2]*)
4145 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4146 xm_file
=pa
/xm-pahpux.h
4147 xmake_file
=pa
/x-pa-hpux
4148 if test x
$gas = xyes
4150 tm_file
="${tm_file} pa/pa-gas.h"
4152 tm_file
="pa/pa-oldas.h ${tm_file}"
4154 install_headers_dir
=install-headers-cpio
4157 hppa1.1
-*-hpux8.0
[0-2]*)
4158 target_cpu_default
="MASK_PA_11"
4159 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4160 xm_file
=pa
/xm-pahpux.h
4161 xmake_file
=pa
/x-pa-hpux
4162 if test x
$gas = xyes
4164 tm_file
="${tm_file} pa/pa-gas.h"
4166 tm_file
="pa/pa-oldas.h ${tm_file}"
4168 install_headers_dir
=install-headers-cpio
4172 target_cpu_default
="MASK_PA_11"
4173 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4174 xm_file
=pa
/xm-pahpux.h
4175 xmake_file
=pa
/x-pa-hpux
4176 if test x
$gas = xyes
4178 tm_file
="${tm_file} pa/pa-gas.h"
4180 install_headers_dir
=install-headers-cpio
4184 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4185 xm_file
=pa
/xm-pahpux.h
4186 xmake_file
=pa
/x-pa-hpux
4187 if test x
$gas = xyes
4189 tm_file
="${tm_file} pa/pa-gas.h"
4191 install_headers_dir
=install-headers-cpio
4194 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4195 target_cpu_default
="MASK_PA_11"
4196 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4198 xm_file
=pa
/xm-pahpux.h
4199 xmake_file
=pa
/x-pa-hpux
4201 if test x
$gas = xyes
4203 tm_file
="${tm_file} pa/pa-gas.h"
4205 if test x
$enable_threads = x
; then
4206 enable_threads
=$have_pthread_h
4208 if test x
$enable_threads = xyes
; then
4210 tmake_file
="${tmake_file} pa/t-dce-thr"
4212 install_headers_dir
=install-headers-cpio
4216 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4218 xm_file
=pa
/xm-pahpux.h
4219 xmake_file
=pa
/x-pa-hpux
4221 if test x
$gas = xyes
4223 tm_file
="${tm_file} pa/pa-gas.h"
4225 if test x
$enable_threads = x
; then
4226 enable_threads
=$have_pthread_h
4228 if test x
$enable_threads = xyes
; then
4230 tmake_file
="${tmake_file} pa/t-dce-thr"
4232 install_headers_dir
=install-headers-cpio
4236 target_cpu_default
="MASK_PA_11"
4237 xm_file
=pa
/xm-pa64hpux.h
4238 xmake_file
=pa
/x-pa-hpux
4240 tm_file
="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
4242 tmake_file
=pa
/t-pa64
4243 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4247 tm_file
="${tm_file} pa/pa-gas.h"
4249 # if [[ x$enable_threads = x ]]; then
4250 # enable_threads=$have_pthread_h
4252 # if [[ x$enable_threads = xyes ]]; then
4254 # tmake_file="${tmake_file} pa/t-dce-thr"
4256 install_headers_dir
=install-headers-cpio
4259 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4260 target_cpu_default
="MASK_PA_11"
4261 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4263 xm_file
=pa
/xm-pahpux.h
4264 xmake_file
=pa
/x-pa-hpux
4266 if test x
$gas = xyes
4268 tm_file
="${tm_file} pa/pa-gas.h"
4270 # if test x$enable_threads = x; then
4271 # enable_threads=$have_pthread_h
4273 # if test x$enable_threads = xyes; then
4275 # tmake_file="${tmake_file} pa/t-dce-thr"
4277 install_headers_dir
=install-headers-cpio
4281 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4283 xm_file
=pa
/xm-pahpux.h
4284 xmake_file
=pa
/x-pa-hpux
4285 if test x
$gas = xyes
4287 tm_file
="${tm_file} pa/pa-gas.h"
4289 # if test x$enable_threads = x; then
4290 # enable_threads=$have_pthread_h
4292 # if test x$enable_threads = xyes; then
4294 # tmake_file="${tmake_file} pa/t-dce-thr"
4296 install_headers_dir
=install-headers-cpio
4299 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4300 target_cpu_default
="MASK_PA_11"
4301 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4302 xm_file
=pa
/xm-pahpux.h
4303 xmake_file
=pa
/x-pa-hpux
4304 if test x
$gas = xyes
4306 tm_file
="${tm_file} pa/pa-gas.h"
4308 install_headers_dir
=install-headers-cpio
4312 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4313 xm_file
=pa
/xm-pahpux.h
4314 xmake_file
=pa
/x-pa-hpux
4315 if test x
$gas = xyes
4317 tm_file
="${tm_file} pa/pa-gas.h"
4319 install_headers_dir
=install-headers-cpio
4322 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4323 target_cpu_default
="MASK_PA_11"
4324 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4325 xm_file
=pa
/xm-pahpux.h
4326 xmake_file
=pa
/x-pa-hpux
4327 if test x
$gas = xyes
4329 tm_file
="${tm_file} pa/pa-gas.h"
4331 install_headers_dir
=install-headers-cpio
4335 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4336 xm_file
=pa
/xm-pahpux.h
4337 xmake_file
=pa
/x-pa-hpux
4338 if test x
$gas = xyes
4340 tm_file
="${tm_file} pa/pa-gas.h"
4342 install_headers_dir
=install-headers-cpio
4346 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4347 target_cpu_default
="MASK_PA_11"
4351 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4352 xm_file
=pa
/xm-pampeix.h
4353 xmake_file
=pa
/x-pa-mpeix
4354 echo "You must use gas. Assuming it is already installed."
4355 install_headers_dir
=install-headers-tar
4358 i370-
*-opened*) # IBM 360/370/390 Architecture
4359 xm_file
=i370
/xm-oe.h
4361 xmake_file
=i370
/x-oe
4362 tmake_file
=i370
/t-oe
4365 xm_file
=i370
/xm-mvs.h
4367 tmake_file
=i370
/t-mvs
4370 xm_file
="xm-linux.h i370/xm-linux.h"
4372 tm_file
="i370/linux.h ${tm_file}"
4373 tmake_file
="t-linux i370/t-linux"
4374 # broken_install=yes
4375 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4376 # extra_parts="crtbegin.o crtend.o"
4380 if test x
$enable_threads = xyes
; then
4385 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4386 tm_file
=i386
/i386elf.h
4387 tmake_file
=i386
/t-i386elf
4390 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4391 if test x
$gas = xyes
4393 tm_file
=i386
/aix386.h
4394 extra_parts
="crtbegin.o crtend.o"
4395 tmake_file
=i386
/t-crtstuff
4397 tm_file
=i386
/aix386ng.h
4400 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4402 xmake_file
=i386
/x-aix
4404 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4405 xm_file
="xm-alloca.h ${xm_file}"
4406 xm_defines
="USG POSIX SMALL_ARG_MAX"
4407 xmake_file
=i386
/x-ncr3000
4408 if test x
$stabs = xyes
-a x
$gas = xyes
4410 tm_file
=i386
/sysv4gdb.h
4412 tm_file
=i386
/sysv4.h
4414 extra_parts
="crtbegin.o crtend.o"
4415 tmake_file
=i386
/t-crtpic
4419 xm_file
=i386
/xm-next.h
4420 tmake_file
=i386
/t-next
4421 xmake_file
=i386
/x-next
4422 extra_objs
=nextstep.o
4423 extra_parts
="crtbegin.o crtend.o"
4424 if test x
$enable_threads = xyes
; then
4428 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4430 if test x
$gas = xyes
4432 tm_file
=i386
/seq-gas.h
4434 tm_file
=i386
/sequent.h
4437 i
[34567]86-sequent-ptx1*)
4438 xm_defines
="USG SVR3"
4439 xmake_file
=i386
/x-sysv3
4440 tm_file
=i386
/seq-sysv3.h
4441 tmake_file
=i386
/t-crtstuff
4442 extra_parts
="crtbegin.o crtend.o"
4443 install_headers_dir
=install-headers-cpio
4445 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4446 xm_defines
="USG SVR3"
4447 xmake_file
=i386
/x-sysv3
4448 tm_file
=i386
/seq2-sysv3.h
4449 tmake_file
=i386
/t-crtstuff
4450 extra_parts
="crtbegin.o crtend.o"
4451 install_headers_dir
=install-headers-cpio
4453 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4454 xm_file
="xm-alloca.h ${xm_file}"
4455 xm_defines
="USG POSIX SMALL_ARG_MAX"
4457 tm_file
=i386
/ptx4-i.h
4459 extra_parts
="crtbegin.o crtend.o"
4460 install_headers_dir
=install-headers-cpio
4462 i386-sun-sunos
*) # Sun i386 roadrunner
4467 i
[34567]86-wrs-vxworks*)
4468 tm_file
=i386
/vxi386.h
4469 tmake_file
=i386
/t-i386bare
4470 thread_file
='vxworks'
4473 tm_file
=i386
/i386-aout.h
4474 tmake_file
=i386
/t-i386bare
4476 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4477 xm_file
=i386
/xm-beos.h
4478 tmake_file
='i386/t-beos i386/t-crtpic'
4479 tm_file
=i386
/beos-elf.h
4480 xmake_file
=i386
/x-beos
4481 extra_parts
='crtbegin.o crtend.o'
4483 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4484 tm_file
=i386
/bsd386.h
4485 # tmake_file=t-libc-ok
4488 tm_file
=i386
/386bsd.h
4489 # tmake_file=t-libc-ok
4490 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4493 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4494 tm_file
="i386/freebsd.h i386/perform.h"
4495 tmake_file
=t-freebsd
4497 i
[34567]86-*-freebsd*)
4498 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4499 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4500 tmake_file
=t-freebsd
4504 case x
${enable_threads} in
4505 xyes | xpthreads | xposix
)
4507 tmake_file
="${tmake_file} t-freebsd-thread"
4511 i
[34567]86-*-netbsd*)
4512 tm_file
=i386
/netbsd.h
4516 i
[34567]86-*-openbsd*)
4517 # we need collect2 until our bug is fixed...
4521 tm_file
=i386
/i386-coff.h
4522 tmake_file
=i386
/t-i386bare
4524 i
[34567]86-*-isc*) # 80386 running ISC system
4525 xm_file
="${xm_file} i386/xm-isc.h"
4526 xm_defines
="USG SVR3"
4528 i
[34567]86-*-isc[34]*)
4529 xmake_file
=i386
/x-isc3
4532 xmake_file
=i386
/x-isc
4535 if test x
$gas = xyes
-a x
$stabs = xyes
4537 tm_file
=i386
/iscdbx.h
4538 tmake_file
=i386
/t-svr3dbx
4539 extra_parts
="svr3.ifile svr3z.ifile"
4541 tm_file
=i386
/isccoff.h
4542 tmake_file
=i386
/t-crtstuff
4543 extra_parts
="crtbegin.o crtend.o"
4545 tmake_file
="$tmake_file i386/t-i386bare"
4546 install_headers_dir
=install-headers-cpio
4548 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4550 xmake_file
=x-linux-aout
4551 tmake_file
="t-linux-aout i386/t-crtstuff"
4552 tm_file
=i386
/linux-oldld.h
4556 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4557 xmake_file
=x-linux-aout
4558 tmake_file
="t-linux-aout i386/t-crtstuff"
4559 tm_file
=i386
/linux-aout.h
4563 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4564 # GNU/Linux C library 5
4566 tm_file
=i386
/linux.h
4567 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4568 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4571 if test x
$enable_threads = xyes
; then
4572 thread_file
='single'
4575 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4576 # aka GNU/Linux C library 6
4578 tm_file
=i386
/linux.h
4579 tmake_file
="t-linux i386/t-crtstuff"
4580 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4583 if test x
$enable_threads = xyes
; then
4590 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4591 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4594 i
[34567]86-pc-msdosdjgpp*)
4595 xm_file
=i386
/xm-djgpp.h
4596 tm_file
=i386
/djgpp.h
4597 tmake_file
=i386
/t-djgpp
4598 xmake_file
=i386
/x-djgpp
4603 case $host in *pc-msdosdjgpp
*)
4608 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4610 tmake_file
=t-libc-ok
4614 i
[34567]86-*-lynxos*)
4615 if test x
$gas = xyes
4619 tm_file
=i386
/lynx-ng.h
4621 xm_file
=i386
/xm-lynx.h
4622 tmake_file
=i386
/t-i386bare
4627 # tmake_file=t-libc-ok
4630 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4631 if test x
$elf = xyes
4633 tm_file
=i386
/osfelf.h
4636 tm_file
=i386
/osfrose.h
4639 xm_file
="i386/xm-osf.h ${xm_file}"
4640 xmake_file
=i386
/x-osfrose
4641 tmake_file
=i386
/t-osf
4642 extra_objs
=halfpic.o
4644 i
[34567]86-go32-rtems*)
4646 xm_file
=i386
/xm-go32.h
4647 tm_file
=i386
/go32-rtems.h
4648 tmake_file
="i386/t-go32 t-rtems"
4650 i
[34567]86-*-rtemscoff*)
4652 tm_file
=i386
/rtems.h
4653 tmake_file
="i386/t-i386bare t-rtems"
4655 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4657 tm_file
=i386
/rtemself.h
4658 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4659 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4661 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4662 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4663 xm_defines
="USG SVR3"
4664 xmake_file
=i386
/x-sco5
4665 install_headers_dir
=install-headers-cpio
4667 if test x
$gas = xyes
4669 tm_file
="i386/sco5gas.h ${tm_file}"
4670 tmake_file
=i386
/t-sco5gas
4672 tmake_file
=i386
/t-sco5
4674 tmake_file
="$tmake_file i386/t-i386bare"
4675 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4677 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4678 xm_file
="${xm_file} i386/xm-sco.h"
4679 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4680 xmake_file
=i386
/x-sco4
4681 install_headers_dir
=install-headers-cpio
4682 if test x
$stabs = xyes
4684 tm_file
=i386
/sco4dbx.h
4685 tmake_file
=i386
/t-svr3dbx
4686 extra_parts
="svr3.ifile svr3z.rfile"
4689 tmake_file
=i386
/t-crtstuff
4690 extra_parts
="crtbegin.o crtend.o"
4692 tmake_file
="$tmake_file i386/t-i386bare"
4693 # The default EAFS filesystem supports long file names.
4694 # Truncating the target makes $host != $target which
4695 # makes gcc think it is doing a cross-compile.
4696 # truncate_target=yes
4698 i
[34567]86-*-sco*) # 80386 running SCO system
4699 xm_file
=i386
/xm-sco.h
4700 xmake_file
=i386
/x-sco
4701 install_headers_dir
=install-headers-cpio
4702 if test x
$stabs = xyes
4704 tm_file
=i386
/scodbx.h
4705 tmake_file
=i386
/t-svr3dbx
4706 extra_parts
="svr3.ifile svr3z.rfile"
4709 extra_parts
="crtbegin.o crtend.o"
4710 tmake_file
=i386
/t-crtstuff
4712 tmake_file
="$tmake_file i386/t-i386bare"
4715 i
[34567]86-*-solaris2*)
4716 xm_file
="xm-alloca.h ${xm_file}"
4717 xm_defines
="USG POSIX SMALL_ARG_MAX"
4719 if test x
$gas = xyes
; then
4720 # Only needed if gas does not support -s
4721 tm_file
="i386/sol2gas.h ${tm_file}"
4723 tmake_file
="i386/t-i386bare i386/t-sol2"
4724 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4726 if test x
${enable_threads} = x
; then
4727 enable_threads
=$have_pthread_h
4728 if test x
${enable_threads} = x
; then
4729 enable_threads
=$have_thread_h
4732 if test x
${enable_threads} = xyes
; then
4733 if test x
${have_pthread_h} = xyes
; then
4736 thread_file
='solaris'
4740 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4741 xm_file
="xm-alloca.h ${xm_file}"
4742 xm_defines
="USG POSIX"
4743 tm_file
=i386
/sysv5.h
4744 if test x
$stabs = xyes
4746 tm_file
="${tm_file} dbx.h"
4748 tmake_file
="i386/t-i386bare i386/t-crtpic"
4750 extra_parts
="crtbegin.o crtend.o"
4751 if test x
$enable_threads = xyes
; then
4755 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4756 xm_file
="xm-alloca.h ${xm_file}"
4757 xm_defines
="USG POSIX SMALL_ARG_MAX"
4758 tm_file
=i386
/sysv4.h
4759 if test x
$stabs = xyes
4761 tm_file
="${tm_file} dbx.h"
4763 tmake_file
="i386/t-i386bare i386/t-crtpic"
4765 extra_parts
="crtbegin.o crtend.o"
4767 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4768 xm_file
="xm-alloca.h ${xm_file}"
4769 xm_defines
="USG POSIX"
4771 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4773 extra_parts
="crtbegin.o crtend.o"
4774 install_headers_dir
=install-headers-cpio
4776 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4778 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4779 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4780 if test x
$stabs = xyes
4782 tm_file
=i386
/osf1elfgdb.h
4784 tm_file
=i386
/osf1elf.h
4786 tmake_file
=i386
/t-osf1elf
4787 xmake_file
=i386
/x-osf1elf
4788 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4790 i
[34567]86-*-sysv*) # Intel 80386's running system V
4791 xm_defines
="USG SVR3"
4792 xmake_file
=i386
/x-sysv3
4793 if test x
$gas = xyes
4795 if test x
$stabs = xyes
4797 tm_file
=i386
/svr3dbx.h
4798 tmake_file
=i386
/t-svr3dbx
4799 extra_parts
="svr3.ifile svr3z.rfile"
4801 tm_file
=i386
/svr3gas.h
4802 extra_parts
="crtbegin.o crtend.o"
4803 tmake_file
=i386
/t-crtstuff
4806 tm_file
=i386
/sysv3.h
4807 extra_parts
="crtbegin.o crtend.o"
4808 tmake_file
=i386
/t-crtstuff
4810 tmake_file
="$tmake_file i386/t-crtpic"
4812 i386-
*-vsta) # Intel 80386's running VSTa kernel
4813 xm_file
="${xm_file} i386/xm-vsta.h"
4815 tmake_file
=i386
/t-vsta
4816 xmake_file
=i386
/x-vsta
4819 xm_file
="${xm_file} i386/xm-cygwin.h"
4820 tmake_file
=i386
/t-cygwin
4821 tm_file
=i386
/win32.h
4822 xmake_file
=i386
/x-cygwin
4824 if test x
$enable_threads = xyes
; then
4829 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4830 xm_file
="${xm_file} i386/xm-cygwin.h"
4831 tmake_file
=i386
/t-cygwin
4832 tm_file
=i386
/cygwin.h
4833 xmake_file
=i386
/x-cygwin
4835 if test x
$enable_threads = xyes
; then
4840 i
[34567]86-*-mingw32*)
4841 tm_file
=i386
/mingw32.h
4842 xm_file
="${xm_file} i386/xm-mingw32.h"
4843 tmake_file
="i386/t-cygwin i386/t-mingw32"
4845 xmake_file
=i386
/x-cygwin
4846 if test x
$enable_threads = xyes
; then
4853 *minwg32crt
* |
*mingw32
*)
4854 tm_file
="${tm_file} i386/crtdll.h"
4860 xm_file
="${xm_file} i386/xm-uwin.h"
4861 xm_defines
="USG NO_STAB_H"
4862 tmake_file
="i386/t-cygwin i386/t-uwin"
4864 xmake_file
=i386
/x-cygwin
4865 if test x
$enable_threads = xyes
; then
4870 i
[34567]86-*-interix*)
4871 tm_file
="i386/i386-interix.h interix.h"
4872 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4874 tmake_file
="i386/t-interix"
4875 extra_objs
=interix.o
4876 xmake_file
=x-interix
4877 if test x
$enable_threads = xyes
; then
4880 if test x
$stabs = xyes
; then
4881 tm_file
="${tm_file} dbxcoff.h"
4884 i
[34567]86-*-winnt3*)
4885 tm_file
=i386
/win-nt.h
4886 out_file
=i386
/i386.c
4887 xm_file
="xm-winnt.h ${xm_file}"
4888 xmake_file
=winnt
/x-winnt
4889 tmake_file
=i386
/t-winnt
4890 extra_host_objs
="winnt.o oldnames.o"
4891 extra_gcc_objs
="spawnv.o oldnames.o"
4892 if test x
$gnu_ld != xyes
4894 extra_programs
=ld.exe
4896 if test x
$enable_threads = xyes
; then
4900 i
[34567]86-dg-dgux*)
4901 xm_file
="xm-alloca.h ${xm_file}"
4902 xm_defines
="USG POSIX"
4903 out_file
=i386
/dgux.c
4905 tmake_file
=i386
/t-dgux
4906 xmake_file
=i386
/x-dgux
4907 install_headers_dir
=install-headers-cpio
4909 i860-alliant-
*) # Alliant FX/2800
4910 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4911 xm_file
="${xm_file}"
4912 xmake_file
=i860
/x-fx2800
4913 tmake_file
=i860
/t-fx2800
4914 extra_parts
="crtbegin.o crtend.o"
4917 tm_file
="${tm_file} i860/bsd.h"
4918 if test x
$gas = xyes
4920 tm_file
="${tm_file} i860/bsd-gas.h"
4925 tm_file
="${tm_file} i860/mach.h"
4926 tmake_file
=t-libc-ok
4928 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4929 tm_file
="${tm_file} svr3.h i860/paragon.h"
4930 xm_defines
="USG SVR3"
4934 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4935 xm_defines
="USG SVR3"
4936 xmake_file
=i860
/x-sysv3
4937 extra_parts
="crtbegin.o crtend.o"
4940 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4941 xm_defines
="USG SVR3"
4942 xmake_file
=i860
/x-sysv4
4944 extra_parts
="crtbegin.o crtend.o"
4946 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4947 tm_file
="${tm_file} i960/vx960.h"
4948 tmake_file
=i960
/t-vxworks960
4950 thread_file
='vxworks'
4952 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4953 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4954 tmake_file
=i960
/t-vxworks960
4956 thread_file
='vxworks'
4959 tm_file
="${tm_file} i960/vx960.h"
4960 tmake_file
=i960
/t-vxworks960
4962 thread_file
='vxworks'
4965 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4966 tmake_file
=i960
/t-960bare
4970 tmake_file
="i960/t-960bare t-rtems"
4971 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4974 i960-
*-*) # Default i960 environment.
4979 tmake_file
="ia64/t-ia64"
4980 target_cpu_default
="0"
4981 if test x
$gas = xyes
4983 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4985 if test x
$gnu_ld = xyes
4987 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4991 tm_file
=ia64
/linux.h
4992 tmake_file
="t-linux ia64/t-ia64"
4993 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4994 if test x
$enable_threads = xyes
; then
4999 extra_parts
="crtinit.o crtfini.o"
5001 m68000-convergent-sysv
*)
5003 xm_file
="m68k/xm-3b1.h ${xm_file}"
5006 extra_headers
=math-68881.h
5008 m68000-hp-bsd
*) # HP 9000/200 running BSD
5009 tm_file
=m68k
/hp2bsd.h
5010 xmake_file
=m68k
/x-hp2bsd
5012 extra_headers
=math-68881.h
5014 m68000-hp-hpux
*) # HP 9000 series 300
5015 xm_file
="xm-alloca.h ${xm_file}"
5017 if test x
$gas = xyes
5019 xmake_file
=m68k
/x-hp320g
5020 tm_file
=m68k
/hp310g.h
5022 xmake_file
=m68k
/x-hp320
5023 tm_file
=m68k
/hp310.h
5025 install_headers_dir
=install-headers-cpio
5027 extra_headers
=math-68881.h
5032 extra_headers
=math-68881.h
5035 tm_file
=m68k
/sun2o4.h
5037 extra_headers
=math-68881.h
5040 xm_file
="m68k/xm-3b1.h ${xm_file}"
5042 if test x
$gas = xyes
5049 extra_headers
=math-68881.h
5051 m68k-apple-aux
*) # Apple Macintosh running A/UX
5052 xm_defines
="USG AUX"
5053 tmake_file
=m68k
/t-aux
5054 install_headers_dir
=install-headers-cpio
5055 extra_headers
=math-68881.h
5056 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5058 if test "$gnu_ld" = yes
5060 tm_file
="${tm_file} m68k/auxgld.h"
5062 tm_file
="${tm_file} m68k/auxld.h"
5064 if test "$gas" = yes
5066 tm_file
="${tm_file} m68k/auxgas.h"
5068 tm_file
="${tm_file} m68k/auxas.h"
5070 tm_file
="${tm_file} m68k/a-ux.h"
5074 tm_file
=m68k
/apollo68.h
5075 xmake_file
=m68k
/x-apollo68
5077 extra_headers
=math-68881.h
5080 m68k-altos-sysv
*) # Altos 3068
5081 if test x
$gas = xyes
5083 tm_file
=m68k
/altos3068.h
5086 echo "The Altos is supported only with the GNU assembler" 1>&2
5089 extra_headers
=math-68881.h
5091 m68k-bull-sysv
*) # Bull DPX/2
5092 if test x
$gas = xyes
5094 if test x
$stabs = xyes
5096 tm_file
=m68k
/dpx2cdbx.h
5098 tm_file
=m68k
/dpx2g.h
5103 xm_file
="xm-alloca.h ${xm_file}"
5105 xmake_file
=m68k
/x-dpx2
5107 extra_headers
=math-68881.h
5109 m68k-atari-sysv4
*) # Atari variant of V.4.
5110 tm_file
=m68k
/atari.h
5111 xm_file
="xm-alloca.h ${xm_file}"
5112 xm_defines
="USG FULL_PROTOTYPES"
5114 extra_parts
="crtbegin.o crtend.o"
5115 extra_headers
=math-68881.h
5118 m68k-motorola-sysv
*)
5119 tm_file
=m68k
/mot3300.h
5120 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5121 if test x
$gas = xyes
5123 xmake_file
=m68k
/x-mot3300-gas
5124 if test x
$gnu_ld = xyes
5126 tmake_file
=m68k
/t-mot3300-gald
5128 tmake_file
=m68k
/t-mot3300-gas
5132 xmake_file
=m68k
/x-mot3300
5133 if test x
$gnu_ld = xyes
5135 tmake_file
=m68k
/t-mot3300-gld
5137 tmake_file
=m68k
/t-mot3300
5141 gdb_needs_out_file_path
=yes
5142 extra_parts
="crt0.o mcrt0.o"
5143 extra_headers
=math-68881.h
5146 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5147 tm_file
=m68k
/tower-as.h
5148 xm_defines
="USG SVR3"
5149 xmake_file
=m68k
/x-tower
5150 extra_parts
="crtbegin.o crtend.o"
5151 extra_headers
=math-68881.h
5154 tm_file
=m68k
/plexus.h
5155 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5158 extra_headers
=math-68881.h
5162 xm_file
="xm-alloca.h ${xm_file}"
5164 extra_headers
=math-68881.h
5167 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5168 xm_defines
="USG unos"
5169 xmake_file
=m68k
/x-crds
5172 extra_headers
=math-68881.h
5174 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5176 xm_file
="xm-alloca.h ${xm_file}"
5177 xm_defines
="USG FULL_PROTOTYPES"
5178 xmake_file
=m68k
/x-amix
5180 extra_parts
="crtbegin.o crtend.o"
5181 extra_headers
=math-68881.h
5185 tm_file
=m68k
/ccur-GAS.h
5186 xmake_file
=m68k
/x-ccur
5187 extra_headers
=math-68881.h
5191 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5192 tm_file
=m68k
/hp3bsd44.h
5193 xmake_file
=m68k
/x-hp3bsd44
5195 extra_headers
=math-68881.h
5198 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5199 tm_file
=m68k
/hp3bsd.h
5201 extra_headers
=math-68881.h
5205 if test x
$with_fp = xno
5207 tm_file
=m68k
/isi-nfp.h
5213 extra_headers
=math-68881.h
5215 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5216 xm_file
="xm-alloca.h ${xm_file}"
5218 if test x
$gas = xyes
5220 xmake_file
=m68k
/x-hp320g
5221 tm_file
=m68k
/hp320g.h
5223 xmake_file
=m68k
/x-hp320
5224 tm_file
=m68k
/hpux7.h
5226 install_headers_dir
=install-headers-cpio
5228 extra_headers
=math-68881.h
5231 m68k-hp-hpux
*) # HP 9000 series 300
5232 xm_file
="xm-alloca.h ${xm_file}"
5234 if test x
$gas = xyes
5236 xmake_file
=m68k
/x-hp320g
5237 tm_file
=m68k
/hp320g.h
5239 xmake_file
=m68k
/x-hp320
5240 tm_file
=m68k
/hp320.h
5242 install_headers_dir
=install-headers-cpio
5244 extra_headers
=math-68881.h
5248 tm_file
=m68k
/sun3mach.h
5250 extra_headers
=math-68881.h
5254 if test x
$gas = xyes
5256 tm_file
=m68k
/news3gas.h
5258 tm_file
=m68k
/news3.h
5261 extra_headers
=math-68881.h
5264 m68k-sony-bsd
* | m68k-sony-newsos
*)
5265 if test x
$gas = xyes
5267 tm_file
=m68k
/newsgas.h
5272 extra_headers
=math-68881.h
5275 m68k-next-nextstep2
*)
5276 tm_file
=m68k
/next21.h
5277 xm_file
="m68k/xm-next.h ${xm_file}"
5278 tmake_file
=m68k
/t-next
5279 xmake_file
=m68k
/x-next
5280 extra_objs
=nextstep.o
5281 extra_headers
=math-68881.h
5285 m68k-next-nextstep
[34]*)
5287 xm_file
="m68k/xm-next.h ${xm_file}"
5288 tmake_file
=m68k
/t-next
5289 xmake_file
=m68k
/x-next
5290 extra_objs
=nextstep.o
5291 extra_parts
="crtbegin.o crtend.o"
5292 extra_headers
=math-68881.h
5294 if test x
$enable_threads = xyes
; then
5299 if test x
$with_fp = xno
5301 tm_file
=m68k
/sun3n3.h
5303 tm_file
=m68k
/sun3o3.h
5307 extra_headers
=math-68881.h
5309 m68k-sun-sunos
*) # For SunOS 4 (the default).
5310 if test x
$with_fp = xno
5312 tm_file
=m68k
/sun3n.h
5318 extra_headers
=math-68881.h
5321 tm_file
=m68k
/vxm68k.h
5322 tmake_file
=m68k
/t-vxworks68
5323 extra_headers
=math-68881.h
5324 thread_file
='vxworks'
5328 tmake_file
=m68k
/t-m68kbare
5329 tm_file
="m68k/m68k-aout.h libgloss.h"
5330 extra_headers
=math-68881.h
5334 tmake_file
=m68k
/t-m68kbare
5335 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5336 extra_headers
=math-68881.h
5339 m68020-
*-elf* | m68k-
*-elf*)
5340 tm_file
="m68k/m68020-elf.h"
5341 xm_file
=m68k
/xm-m68kv.h
5342 tmake_file
=m68k
/t-m68kelf
5343 header_files
=math-68881.h
5346 if test x
$gas = xyes
5350 tm_file
=m68k
/lynx-ng.h
5352 xm_file
=m68k
/xm-lynx.h
5354 tmake_file
=m68k
/t-lynx
5355 extra_headers
=math-68881.h
5359 tm_file
=m68k
/netbsd.h
5366 # we need collect2 until our bug is fixed...
5369 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5370 xm_file
="xm-alloca.h ${xm_file}"
5372 xmake_file
=m68k
/x-m68kv
5373 extra_parts
="crtbegin.o crtend.o"
5374 extra_headers
=math-68881.h
5377 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5378 tm_file
=m68k
/m68kv4.h
5379 xm_file
="xm-alloca.h ${xm_file}"
5382 extra_parts
="crtbegin.o crtend.o"
5383 extra_headers
=math-68881.h
5386 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5389 tm_file
=m68k
/linux-aout.h
5390 tmake_file
="t-linux-aout m68k/t-linux-aout"
5391 extra_headers
=math-68881.h
5395 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5396 # with ELF format using the
5397 # GNU/Linux C library 5
5399 tm_file
=m68k
/linux.h
5400 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5401 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5402 extra_headers
=math-68881.h
5406 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5407 # with ELF format using glibc 2
5408 # aka the GNU/Linux C library 6.
5410 tm_file
=m68k
/linux.h
5411 tmake_file
="t-linux m68k/t-linux"
5412 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5413 extra_headers
=math-68881.h
5416 if test x
$enable_threads = xyes
; then
5421 tmake_file
=m68k
/t-m68kbare
5422 tm_file
=m68k
/m68k-psos.h
5423 extra_headers
=math-68881.h
5427 tmake_file
="m68k/t-m68kbare t-rtems"
5428 tm_file
=m68k
/rtems.h
5429 extra_headers
=math-68881.h
5432 m68k-
*-rtemself*|m68k-
*-rtems*)
5433 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5434 tm_file
=m68k
/rtemself.h
5435 extra_headers
=math-68881.h
5441 tm_file
=m88k
/dguxbcs.h
5442 tmake_file
=m88k
/t-dguxbcs
5446 tmake_file
=m88k
/t-dgux
5449 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5450 xmake_file
=m88k
/x-dgux
5451 if test x
$gas = xyes
5453 tmake_file
=m88k
/t-dgux-gas
5456 m88k-dolphin-sysv3
*)
5457 tm_file
=m88k
/dolph.h
5458 extra_parts
="crtbegin.o crtend.o"
5459 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5460 xmake_file
=m88k
/x-dolph
5461 if test x
$gas = xyes
5463 tmake_file
=m88k
/t-m88k-gas
5466 m88k-tektronix-sysv3
)
5467 tm_file
=m88k
/tekXD88.h
5468 extra_parts
="crtbegin.o crtend.o"
5469 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5470 xmake_file
=m88k
/x-tekXD88
5471 if test x
$gas = xyes
5473 tmake_file
=m88k
/t-m88k-gas
5477 tm_file
=m88k
/m88k-aout.h
5480 tm_file
=m88k
/m88k-coff.h
5481 tmake_file
=m88k
/t-bug
5485 extra_parts
="crtbegin.o crtend.o"
5486 if test x
$gas = xyes
5488 tmake_file
=m88k
/t-luna-gas
5490 tmake_file
=m88k
/t-luna
5494 tmake_file
="${tmake_file} m88k/t-luna-gas"
5495 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5496 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5499 tm_file
=m88k
/sysv3.h
5500 extra_parts
="crtbegin.o crtend.o"
5501 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5502 xmake_file
=m88k
/x-sysv3
5503 if test x
$gas = xyes
5505 tmake_file
=m88k
/t-m88k-gas
5509 tm_file
=m88k
/sysv4.h
5510 extra_parts
="crtbegin.o crtend.o"
5511 xmake_file
=m88k
/x-sysv4
5512 tmake_file
=m88k
/t-sysv4
5515 tm_file
=mcore
/mcore-elf.h
5516 tmake_file
=mcore
/t-mcore
5519 tm_file
=mcore
/mcore-pe.h
5520 tmake_file
=mcore
/t-mcore-pe
5522 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5523 if test "x$gnu_ld" = xyes
5525 tm_file
="mips/iris6.h mips/iris6gld.h"
5527 tm_file
=mips
/iris6.h
5529 tmake_file
=mips
/t-iris6
5530 xm_file
=mips
/xm-iris6.h
5531 xmake_file
=mips
/x-iris6
5532 # if test x$enable_threads = xyes; then
5533 # thread_file='irix'
5537 tm_file
="mips/elf.h mips/vxworks.h"
5538 tmake_file
=mips
/t-ecoff
5541 extra_parts
="crtbegin.o crtend.o"
5542 thread_file
='vxworks'
5544 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5545 tm_file
="mips/iris6.h mips/cross64.h"
5547 xm_file
="mips/xm-iris5.h"
5548 xmake_file
=mips
/x-iris
5549 tmake_file
=mips
/t-cross64
5550 # See comment in mips/iris[56].h files.
5552 # if test x$enable_threads = xyes; then
5553 # thread_file='irix'
5557 if test x
$gas = xyes
5559 if test x
$stabs = xyes
5561 tm_file
=mips
/iris5gdb.h
5563 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5566 tm_file
=mips
/sni-svr4.h
5569 xmake_file
=mips
/x-sni-svr4
5570 tmake_file
=mips
/t-mips-gas
5571 if test x
$gnu_ld != xyes
5576 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5577 if test x
$gas = xyes
5579 tm_file
="mips/iris5.h mips/iris5gas.h"
5580 if test x
$stabs = xyes
5582 tm_file
="${tm_file} dbx.h"
5585 tm_file
=mips
/iris5.h
5588 xm_file
="mips/xm-iris5.h"
5589 xmake_file
=mips
/x-iris
5590 # mips-tfile doesn't work yet
5591 tmake_file
=mips
/t-mips-gas
5592 # See comment in mips/iris5.h file.
5594 # if test x$enable_threads = xyes; then
5595 # thread_file='irix'
5598 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5599 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5600 if test x
$stabs = xyes
; then
5601 tm_file
="${tm_file} dbx.h"
5604 xmake_file
=mips
/x-iris
5605 if test x
$gas = xyes
5607 tmake_file
=mips
/t-mips-gas
5609 extra_passes
="mips-tfile mips-tdump"
5611 if test x
$gnu_ld != xyes
5615 # if test x$enable_threads = xyes; then
5616 # thread_file='irix'
5619 mips-sgi-irix4
*) # Mostly like a MIPS.
5620 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5621 if test x
$stabs = xyes
; then
5622 tm_file
="${tm_file} dbx.h"
5625 xmake_file
=mips
/x-iris
5626 if test x
$gas = xyes
5628 tmake_file
=mips
/t-mips-gas
5630 extra_passes
="mips-tfile mips-tdump"
5632 if test x
$gnu_ld != xyes
5636 # if test x$enable_threads = xyes; then
5637 # thread_file='irix'
5640 mips-sgi-
*) # Mostly like a MIPS.
5641 tm_file
="mips/iris3.h ${tm_file}"
5642 if test x
$stabs = xyes
; then
5643 tm_file
="${tm_file} dbx.h"
5646 xmake_file
=mips
/x-iris3
5647 if test x
$gas = xyes
5649 tmake_file
=mips
/t-mips-gas
5651 extra_passes
="mips-tfile mips-tdump"
5653 if test x
$gnu_ld != xyes
5658 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5659 tm_file
="mips/osfrose.h ${tm_file}"
5660 xmake_file
=mips
/x-osfrose
5661 tmake_file
=mips
/t-osfrose
5662 extra_objs
=halfpic.o
5665 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5666 tm_file
=mips
/dec-osf1.h
5667 if test x
$stabs = xyes
; then
5668 tm_file
="${tm_file} dbx.h"
5670 xmake_file
=mips
/x-dec-osf1
5671 if test x
$gas = xyes
5673 tmake_file
=mips
/t-mips-gas
5675 tmake_file
=mips
/t-ultrix
5676 extra_passes
="mips-tfile mips-tdump"
5678 if test x
$gnu_ld != xyes
5683 mips-dec-bsd
*) # Decstation running 4.4 BSD
5684 tm_file
=mips
/dec-bsd.h
5685 if test x
$gas = xyes
5687 tmake_file
=mips
/t-mips-gas
5689 tmake_file
=mips
/t-ultrix
5690 extra_passes
="mips-tfile mips-tdump"
5692 if test x
$gnu_ld != xyes
5697 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5698 tm_file
=mips
/netbsd.h
5699 # On NetBSD, the headers are already okay, except for math.h.
5702 mips
*-*-linux*) # Linux MIPS, either endian.
5705 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5706 *) tm_file
="mips/elf.h mips/linux.h" ;;
5709 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5712 if test x
$enable_threads = xyes
; then
5716 mips
*el-
*-openbsd*) # mips little endian
5717 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5719 mips
*-*-openbsd*) # mips big endian
5720 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5721 tm_file
="mips/openbsd-be.h ${tm_file}"
5723 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5724 tm_file
="mips/news4.h ${tm_file}"
5725 if test x
$stabs = xyes
; then
5726 tm_file
="${tm_file} dbx.h"
5728 if test x
$gas = xyes
5730 tmake_file
=mips
/t-mips-gas
5732 extra_passes
="mips-tfile mips-tdump"
5734 if test x
$gnu_ld != xyes
5738 xmake_file
=mips
/x-sony
5740 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5741 # That is based on svr4.
5742 # t-svr4 is not right because this system doesn't use ELF.
5743 tm_file
="mips/news5.h ${tm_file}"
5744 if test x
$stabs = xyes
; then
5745 tm_file
="${tm_file} dbx.h"
5748 if test x
$gas = xyes
5750 tmake_file
=mips
/t-mips-gas
5752 extra_passes
="mips-tfile mips-tdump"
5754 if test x
$gnu_ld != xyes
5759 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5760 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5761 if test x
$stabs = xyes
; then
5762 tm_file
="${tm_file} dbx.h"
5765 xmake_file
=mips
/x-sysv
5766 if test x
$gas = xyes
5768 tmake_file
=mips
/t-mips-gas
5769 extra_parts
="crtbegin.o crtend.o"
5771 tmake_file
=mips
/t-mips
5772 extra_passes
="mips-tfile mips-tdump"
5774 if test x
$gnu_ld != xyes
5779 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5780 tm_file
="mips/ultrix.h ${tm_file}"
5781 if test x
$stabs = xyes
; then
5782 tm_file
="${tm_file} dbx.h"
5784 xmake_file
=mips
/x-ultrix
5785 if test x
$gas = xyes
5787 tmake_file
=mips
/t-mips-gas
5789 tmake_file
=mips
/t-ultrix
5790 extra_passes
="mips-tfile mips-tdump"
5792 if test x
$gnu_ld != xyes
5797 mips-
*-riscos[56789]bsd
*)
5798 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5799 if test x
$stabs = xyes
; then
5800 tm_file
="${tm_file} dbx.h"
5802 if test x
$gas = xyes
5804 tmake_file
=mips
/t-bsd-gas
5806 tmake_file
=mips
/t-bsd
5807 extra_passes
="mips-tfile mips-tdump"
5809 if test x
$gnu_ld != xyes
5814 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5815 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5816 if test x
$stabs = xyes
; then
5817 tm_file
="${tm_file} dbx.h"
5819 if test x
$gas = xyes
5821 tmake_file
=mips
/t-bsd-gas
5823 tmake_file
=mips
/t-bsd
5824 extra_passes
="mips-tfile mips-tdump"
5826 if test x
$gnu_ld != xyes
5831 mips-
*-riscos[56789]sysv4
*)
5832 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5833 if test x
$stabs = xyes
; then
5834 tm_file
="${tm_file} dbx.h"
5836 xmake_file
=mips
/x-sysv
5837 if test x
$gas = xyes
5839 tmake_file
=mips
/t-svr4-gas
5841 tmake_file
=mips
/t-svr4
5842 extra_passes
="mips-tfile mips-tdump"
5844 if test x
$gnu_ld != xyes
5849 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5850 tm_file
="mips/svr4-4.h ${tm_file}"
5851 if test x
$stabs = xyes
; then
5852 tm_file
="${tm_file} dbx.h"
5855 xmake_file
=mips
/x-sysv
5856 if test x
$gas = xyes
5858 tmake_file
=mips
/t-svr4-gas
5860 tmake_file
=mips
/t-svr4
5861 extra_passes
="mips-tfile mips-tdump"
5863 if test x
$gnu_ld != xyes
5868 mips-
*-riscos[56789]sysv
*)
5869 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5870 if test x
$stabs = xyes
; then
5871 tm_file
="${tm_file} dbx.h"
5874 xmake_file
=mips
/x-sysv
5875 if test x
$gas = xyes
5877 tmake_file
=mips
/t-svr3-gas
5879 tmake_file
=mips
/t-svr3
5880 extra_passes
="mips-tfile mips-tdump"
5882 if test x
$gnu_ld != xyes
5887 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5888 tm_file
="mips/svr3-4.h ${tm_file}"
5889 if test x
$stabs = xyes
; then
5890 tm_file
="${tm_file} dbx.h"
5893 xmake_file
=mips
/x-sysv
5894 if test x
$gas = xyes
5896 tmake_file
=mips
/t-svr3-gas
5898 tmake_file
=mips
/t-svr3
5899 extra_passes
="mips-tfile mips-tdump"
5901 if test x
$gnu_ld != xyes
5906 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5907 tm_file
=mips
/mips-5.h
5908 if test x
$stabs = xyes
; then
5909 tm_file
="${tm_file} dbx.h"
5911 if test x
$gas = xyes
5913 tmake_file
=mips
/t-mips-gas
5915 extra_passes
="mips-tfile mips-tdump"
5917 if test x
$gnu_ld != xyes
5925 tm_file
=mips
/ecoffl.h
5926 if test x
$stabs = xyes
; then
5927 tm_file
="${tm_file} dbx.h"
5929 tmake_file
=mips
/t-ecoff
5932 tm_file
="gofast.h mips/ecoff.h"
5933 if test x
$stabs = xyes
; then
5934 tm_file
="${tm_file} dbx.h"
5936 tmake_file
=mips
/t-ecoff
5939 tm_file
="mips/elfl.h"
5940 tmake_file
=mips
/t-elf
5943 tm_file
="mips/elf.h"
5944 tmake_file
=mips
/t-elf
5947 tm_file
="mips/elfl64.h"
5948 tmake_file
=mips
/t-elf
5950 mips64orionel-
*-elf*)
5951 tm_file
="mips/elforion.h mips/elfl64.h"
5952 tmake_file
=mips
/t-elf
5955 tm_file
="mips/elf64.h"
5956 tmake_file
=mips
/t-elf
5959 tm_file
="mips/elforion.h mips/elf64.h"
5960 tmake_file
=mips
/t-elf
5962 mips64orion-
*-rtems*)
5963 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5964 tmake_file
="mips/t-elf t-rtems"
5967 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5968 tmake_file
=mips
/t-r3900
5971 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5972 tmake_file
=mips
/t-r3900
5974 mips-
*-*) # Default MIPS RISC-OS 4.0.
5975 if test x
$stabs = xyes
; then
5976 tm_file
="${tm_file} dbx.h"
5978 if test x
$gas = xyes
5980 tmake_file
=mips
/t-mips-gas
5982 extra_passes
="mips-tfile mips-tdump"
5984 if test x
$gnu_ld != xyes
5992 tm_file
="mn10200/mn10200.h"
5993 if test x
$stabs = xyes
5995 tm_file
="${tm_file} dbx.h"
6001 tm_file
="mn10300/mn10300.h"
6002 if test x
$stabs = xyes
6004 tm_file
="${tm_file} dbx.h"
6009 tm_file
=ns32k
/encore.h
6013 tm_file
=ns32k
/sequent.h
6017 tm_file
=ns32k
/tek6100.h
6021 tm_file
=ns32k
/tek6200.h
6024 # This has not been updated to GCC 2.
6027 # xmake_file=ns32k/x-genix
6028 # tm_file=ns32k/genix.h
6032 tm_file
=ns32k
/merlin.h
6036 tm_file
=ns32k
/pc532-mach.h
6040 tm_file
=ns32k
/pc532-min.h
6041 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6046 tm_file
=ns32k
/netbsd.h
6047 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6048 # On NetBSD, the headers are already okay, except for math.h.
6053 tm_file
="${tm_file} pdp11/2bsd.h"
6062 # This has not been updated to GCC 2.
6065 # xmake_file=pyr/x-pyr
6070 tm_file
="svr4.h pj/linux.h ${tm_file}"
6075 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6082 xmake_file
=romp
/x-mach
6089 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6093 tm_file
=rs6000
/beos.h
6094 xm_file
=rs6000
/xm-beos.h
6095 tmake_file
=rs6000
/t-beos
6096 xmake_file
=rs6000
/x-beos
6099 tm_file
=rs6000
/sysv4.h
6100 xm_file
="rs6000/xm-sysv4.h"
6101 xm_defines
="USG POSIX"
6102 extra_headers
=ppc-asm.h
6103 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6104 xmake_file
=rs6000
/x-sysv4
6107 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6108 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6109 extra_headers
=ppc-asm.h
6112 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6113 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6114 extra_headers
=ppc-asm.h
6117 tm_file
="rs6000/sysv4.h"
6118 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6119 extra_headers
=ppc-asm.h
6122 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6123 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6124 extra_headers
=ppc-asm.h
6127 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6128 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6129 extra_headers
=ppc-asm.h
6131 powerpc-
*-linux-gnulibc1)
6132 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6133 xm_file
=rs6000
/xm-sysv4.h
6134 out_file
=rs6000
/rs6000.c
6135 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6137 extra_headers
=ppc-asm.h
6138 if test x
$enable_threads = xyes
; then
6142 powerpc-
*-linux-gnu*)
6143 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6144 xm_file
="rs6000/xm-sysv4.h"
6145 xm_defines
="USG ${xm_defines}"
6146 out_file
=rs6000
/rs6000.c
6147 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6149 extra_headers
=ppc-asm.h
6150 if test x
$enable_threads = xyes
; then
6154 powerpc-wrs-vxworks
*)
6156 xm_file
="rs6000/xm-sysv4.h"
6157 xm_defines
="USG POSIX"
6158 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6159 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6160 extra_headers
=ppc-asm.h
6161 thread_file
='vxworks'
6163 powerpcle-wrs-vxworks
*)
6165 xm_file
="rs6000/xm-sysv4.h"
6166 xm_defines
="USG POSIX"
6167 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6168 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6169 extra_headers
=ppc-asm.h
6170 thread_file
='vxworks'
6173 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6174 xm_file
="rs6000/xm-sysv4.h"
6175 xm_defines
="USG POSIX"
6176 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6177 xmake_file
=rs6000
/x-sysv4
6178 extra_headers
=ppc-asm.h
6181 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6182 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6183 extra_headers
=ppc-asm.h
6185 powerpcle-
*-eabisim*)
6186 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6187 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6188 extra_headers
=ppc-asm.h
6191 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6192 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6193 extra_headers
=ppc-asm.h
6195 powerpcle-
*-solaris2*)
6196 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6197 xm_file
="rs6000/xm-sysv4.h"
6198 xm_defines
="USG POSIX"
6199 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6200 xmake_file
=rs6000
/x-sysv4
6201 extra_headers
=ppc-asm.h
6203 rs6000-ibm-aix3.
[01]*)
6204 tm_file
=rs6000
/aix31.h
6205 xmake_file
=rs6000
/x-aix31
6209 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6210 tm_file
=rs6000
/aix3newas.h
6211 if test x
$host != x
$target
6213 tmake_file
=rs6000
/t-xnewas
6215 tmake_file
=rs6000
/t-newas
6220 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6221 tm_file
=rs6000
/aix41.h
6222 if test x
$host != x
$target
6224 tmake_file
=rs6000
/t-xnewas
6226 tmake_file
=rs6000
/t-newas
6228 if test "$gnu_ld" = yes
6230 xmake_file
=rs6000
/x-aix41-gld
6232 tmake_file
="rs6000/t-newas rs6000/t-aix41"
6234 xmake_file
=rs6000
/x-aix41
6238 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6239 tm_file
=rs6000
/aix43.h
6240 tmake_file
=rs6000
/t-aix43
6241 xmake_file
=rs6000
/x-aix41
6245 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6246 tm_file
=rs6000
/aix43.h
6247 tmake_file
=rs6000
/t-aix43
6248 xmake_file
=rs6000
/x-aix41
6261 tm_file
=rs6000
/mach.h
6262 xm_file
="${xm_file} rs6000/xm-mach.h"
6263 xmake_file
=rs6000
/x-mach
6267 tm_file
=rs6000
/lynx.h
6268 xm_file
=rs6000
/xm-lynx.h
6269 tmake_file
=rs6000
/t-rs6000
6270 xmake_file
=rs6000
/x-lynx
6278 tmake_file
="sh/t-sh t-rtems"
6279 tm_file
=sh
/rtemself.h
6283 tmake_file
="sh/t-sh t-rtems"
6292 xm_file
="xm-alloca.h ${xm_file}"
6295 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6296 tm_file
=sparc
/vxsparc.h
6297 tmake_file
=sparc
/t-vxsparc
6299 thread_file
='vxworks'
6302 tmake_file
=sparc
/t-sparcbare
6303 tm_file
="sparc/aout.h libgloss.h"
6306 tm_file
=sparc
/netbsd.h
6311 # we need collect2 until our bug is fixed...
6319 tmake_file
=sparc
/t-elf
6320 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6324 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6325 xm_file
="${xm_file} sparc/xm-linux.h"
6326 tm_file
=sparc
/linux-aout.h
6330 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6331 xm_file
="${xm_file} sparc/xm-linux.h"
6333 tm_file
=sparc
/linux.h
6334 tmake_file
="t-linux t-linux-gnulibc1"
6335 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6339 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6340 xm_file
="${xm_file} sparc/xm-linux.h"
6342 tm_file
=sparc
/linux.h
6343 tmake_file
="t-linux"
6344 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6346 if test x
$enable_threads = xyes
; then
6352 if test x
$gas = xyes
6354 tm_file
=sparc
/lynx.h
6356 tm_file
=sparc
/lynx-ng.h
6358 xm_file
=sparc
/xm-lynx.h
6359 tmake_file
=sparc
/t-sunos41
6363 tmake_file
="sparc/t-sparcbare t-rtems"
6364 tm_file
=sparc
/rtems.h
6366 sparc-
*-rtems*|sparc-
*-rtemself*)
6367 tm_file
="sparc/rtemself.h"
6368 tmake_file
="sparc/t-elf t-rtems"
6369 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6373 sparcv9-
*-solaris2*)
6374 if test x
$gnu_ld = xyes
6376 tm_file
=sparc
/sol2-64.h
6378 tm_file
=sparc
/sol2-sld-64.h
6380 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6381 xm_defines
="USG POSIX"
6382 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6383 xmake_file
=sparc
/x-sysv4
6384 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6386 if test x
${enable_threads} = x
; then
6387 enable_threads
=$have_pthread_h
6388 if test x
${enable_threads} = x
; then
6389 enable_threads
=$have_thread_h
6392 if test x
${enable_threads} = xyes
; then
6393 if test x
${have_pthread_h} = xyes
; then
6396 thread_file
='solaris'
6400 sparc-hal-solaris2
*)
6401 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6402 xm_defines
="USG POSIX"
6403 tm_file
="sparc/sol2.h sparc/hal.h"
6404 tmake_file
="sparc/t-halos sparc/t-sol2"
6405 xmake_file
=sparc
/x-sysv4
6406 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6415 thread_file
='solaris'
6418 if test x
$gnu_ld = xyes
6420 tm_file
=sparc
/sol2.h
6422 tm_file
=sparc
/sol2-sld.h
6424 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6425 xm_defines
="USG POSIX"
6426 tmake_file
=sparc
/t-sol2
6427 xmake_file
=sparc
/x-sysv4
6428 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6430 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6432 if test x
$gnu_ld = xyes
6434 tm_file
=sparc
/sol2-64.h
6436 tm_file
=sparc
/sol2-sld-64.h
6438 tmake_file
="$tmake_file sparc/t-sol2-64"
6449 if test x
${enable_threads} = x
; then
6450 enable_threads
=$have_pthread_h
6451 if test x
${enable_threads} = x
; then
6452 enable_threads
=$have_thread_h
6455 if test x
${enable_threads} = xyes
; then
6456 if test x
${have_pthread_h} = xyes
; then
6459 thread_file
='solaris'
6464 tm_file
=sparc
/sunos4.h
6465 tmake_file
=sparc
/t-sunos40
6469 tm_file
=sparc
/sunos4.h
6470 tmake_file
=sparc
/t-sunos41
6472 if test x
$gas = xyes
; then
6473 tm_file
="${tm_file} sparc/sun4gas.h"
6477 tm_file
=sparc
/sun4o3.h
6481 tm_file
=sparc
/sysv4.h
6482 xm_file
="sparc/xm-sysv4.h"
6483 xm_defines
="USG POSIX"
6485 xmake_file
=sparc
/x-sysv4
6486 extra_parts
="crtbegin.o crtend.o"
6489 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6490 xm_defines
="USG POSIX"
6491 tm_file
=sparc
/vxsim.h
6492 tmake_file
=sparc
/t-vxsparc
6493 xmake_file
=sparc
/x-sysv4
6496 tm_file
="sparc/splet.h libgloss.h"
6497 tmake_file
=sparc
/t-splet
6500 tm_file
="sparc/litecoff.h libgloss.h"
6501 tmake_file
=sparc
/t-sparclite
6504 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6505 tmake_file
=sparc
/t-sparclite
6508 tm_file
="sparc/liteelf.h"
6509 tmake_file
=sparc
/t-sparclite
6510 extra_parts
="crtbegin.o crtend.o"
6513 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6514 tmake_file
=sparc
/t-sp86x
6517 tm_file
="sparc/sp86x-elf.h"
6518 tmake_file
=sparc
/t-sp86x
6519 extra_parts
="crtbegin.o crtend.o"
6522 tmake_file
=sparc
/t-sp64
6523 tm_file
=sparc
/sp64-aout.h
6526 tmake_file
=sparc
/t-sp64
6527 tm_file
=sparc
/sp64-elf.h
6528 extra_parts
="crtbegin.o crtend.o"
6530 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6531 tmake_file
="t-linux sparc/t-linux64"
6532 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6533 tm_file
=sparc
/linux64.h
6535 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6537 if test x
$enable_threads = xyes
; then
6542 # This hasn't been upgraded to GCC 2.
6543 # tahoe-harris-*) # Harris tahoe, using COFF.
6544 # tm_file=tahoe/harris.h
6546 # tahoe-*-bsd*) # tahoe running BSD
6550 { echo "configure: error:
6551 *** The Thumb targets have been depreciated. The equivalent
6552 *** ARM based toolchain can now generated Thumb instructions
6553 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6555 # This hasn't been upgraded to GCC 2.
6562 tm_file
="v850/rtems.h"
6563 xm_file
="v850/xm-v850.h"
6564 tmake_file
="v850/t-v850 t-rtems"
6565 if test x
$stabs = xyes
6567 tm_file
="${tm_file} dbx.h"
6572 target_cpu_default
="TARGET_CPU_generic"
6574 tm_file
="v850/v850.h"
6575 xm_file
="v850/xm-v850.h"
6576 tmake_file
=v850
/t-v850
6577 if test x
$stabs = xyes
6579 tm_file
="${tm_file} dbx.h"
6583 vax-
*-bsd*) # vaxen running BSD
6587 vax-
*-sysv*) # vaxen running system V
6588 tm_file
="${tm_file} vax/vaxv.h"
6593 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6599 tmake_file
="${tmake_file} vax/t-openbsd"
6600 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6601 xm_file
="xm-openbsd.h vax/xm-vax.h"
6605 vax-
*-ultrix*) # vaxen running ultrix
6606 tm_file
="${tm_file} vax/ultrix.h"
6610 vax-
*-vms*) # vaxen running VMS
6611 xm_file
=vax
/xm-vms.h
6615 vax-
*-*) # vax default entry
6619 xm_file
="${xm_file} xm-svr3"
6623 echo "Configuration $machine not supported" 1>&2
6630 ;; # Existing GNU/Linux systems do not use the GNU setup.
6632 # On the GNU system, the setup is just about the same on
6633 # each different CPU. The specific machines that GNU
6634 # supports are matched above and just set $cpu_type.
6635 xm_file
="xm-gnu.h ${xm_file}"
6636 tm_file
=${cpu_type}/gnu.h
6637 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6638 # GNU always uses ELF.
6640 # GNU tools are the only tools.
6643 xmake_file
=x-linux
# These details are the same as Linux.
6644 tmake_file
=t-gnu
# These are not.
6647 xmake_try_sysv
=x-sysv
6648 install_headers_dir
=install-headers-cpio
6651 install_headers_dir
=install-headers-cpio
6655 # Distinguish i[34567]86
6656 # Also, do not run mips-tfile on MIPS if using gas.
6657 # Process --with-cpu= for PowerPC/rs6000
6658 target_cpu_default2
=
6661 target_cpu_default2
=1
6664 case $target_alias in
6666 target_cpu_default2
=4
6669 target_cpu_default2
=2
6673 i686-
*-* | i786-
*-*)
6674 target_cpu_default2
=3
6679 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6682 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6685 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6688 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6691 target_cpu_default2
="MASK_CPU_EV5"
6695 if test x
$gas = xyes
6697 if test "$target_cpu_default2" = ""
6699 target_cpu_default2
="MASK_GAS"
6701 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6706 case "x$with_cpu" in
6709 target_cpu_default2
="TARGET_CPU_generic"
6712 # Distinguish cores, and major variants
6713 # arm7m doesn't exist, but D & I don't affect code
6714 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6715 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6716 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6717 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6718 target_cpu_default2
="TARGET_CPU_$with_cpu"
6722 echo "--with-cpu must be passed a value" 1>&2
6727 if test x
$pass2done = xyes
6729 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6736 mips
*-*-ecoff* | mips
*-*-elf*)
6737 if test x
$gas = xyes
6739 if test x
$gnu_ld = xyes
6741 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6743 target_cpu_default2
="MASK_GAS"
6748 if test x
$gas = xyes
6750 target_cpu_default2
="MASK_GAS"
6753 powerpc
*-*-* | rs6000-
*-*)
6754 case "x$with_cpu" in
6758 xcommon | xpower | xpower2 | xpowerpc | xrios \
6759 | xrios1 | xrios2 | xrsc | xrsc1 \
6760 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6761 | xec603e | x740 | x750 | x401 \
6762 | x403 | x505 | x801 | x821 | x823 | x860
)
6763 target_cpu_default2
="\"$with_cpu\""
6767 echo "--with-cpu must be passed a value" 1>&2
6772 if test x
$pass2done = xyes
6774 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6781 case ".$with_cpu" in
6783 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6785 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6786 target_cpu_default2
="TARGET_CPU_$with_cpu"
6789 if test x
$pass2done = xyes
6791 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6799 if test "$target_cpu_default2" != ""
6801 if test "$target_cpu_default" != ""
6803 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6805 target_cpu_default
=$target_cpu_default2
6809 # No need for collect2 if we have the GNU linker.
6810 # Actually, there is now; GNU ld doesn't handle the EH info or
6811 # collecting for shared libraries.
6818 # Save data on machine being used to compile GCC in build_xm_file.
6819 # Save data on host machine in vars host_xm_file and host_xmake_file.
6820 if test x
$pass1done = x
6822 if test x
"$xm_file" = x
6823 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6824 else build_xm_file
=$xm_file
6826 build_xm_defines
=$xm_defines
6827 build_install_headers_dir
=$install_headers_dir
6828 build_exeext
=$exeext
6831 if test x
$pass2done = x
6833 if test x
"$xm_file" = x
6834 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6835 else host_xm_file
=$xm_file
6837 host_xm_defines
=$xm_defines
6838 if test x
"$xmake_file" = x
6839 then xmake_file
=$cpu_type/x-
$cpu_type
6841 host_xmake_file
="$xmake_file"
6842 host_truncate_target
=$truncate_target
6843 host_extra_gcc_objs
=$extra_gcc_objs
6844 host_extra_objs
=$extra_host_objs
6851 extra_objs
="${host_extra_objs} ${extra_objs}"
6853 # Default the target-machine variables that were not explicitly set.
6854 if test x
"$tm_file" = x
6855 then tm_file
=$cpu_type/$cpu_type.h
; fi
6857 if test x
$extra_headers = x
6858 then extra_headers
=; fi
6860 if test x
"$xm_file" = x
6861 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6863 if test x
$md_file = x
6864 then md_file
=$cpu_type/$cpu_type.md
; fi
6866 if test x
$out_file = x
6867 then out_file
=$cpu_type/$cpu_type.c
; fi
6869 if test x
"$tmake_file" = x
6870 then tmake_file
=$cpu_type/t-
$cpu_type
6873 if test x
"$dwarf2" = xyes
6874 then tm_file
="$tm_file tm-dwarf2.h"
6877 if test x
$float_format = x
6878 then float_format
=i64
6881 if test $float_format = none
6882 then float_h_file
=Makefile.
in
6883 else float_h_file
=float-
$float_format.h
6886 # Handle cpp installation.
6887 if test x
$enable_cpp != xno
6889 tmake_file
="$tmake_file t-install-cpp"
6892 # Say what files are being used for the output code and MD file.
6893 echo "Using \`$srcdir/config/$out_file' to output insns."
6894 echo "Using \`$srcdir/config/$md_file' as machine description file."
6897 for f
in $tm_file; do
6900 if test $count = ax
; then
6901 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6903 echo "Using the following target machine macro files:"
6904 for f
in $tm_file; do
6905 echo " $srcdir/config/$f"
6910 for f
in $host_xm_file; do
6913 if test $count = ax
; then
6914 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6916 echo "Using the following host machine macro files:"
6917 for f
in $host_xm_file; do
6918 echo " $srcdir/config/$f"
6922 if test "$host_xm_file" != "$build_xm_file"; then
6924 for f
in $build_xm_file; do
6927 if test $count = ax
; then
6928 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6930 echo "Using the following build machine macro files:"
6931 for f
in $build_xm_file; do
6932 echo " $srcdir/config/$f"
6937 if test x
$thread_file = x
; then
6938 if test x
$target_thread_file != x
; then
6939 thread_file
=$target_thread_file
6941 thread_file
='single'
6945 # Set up the header files.
6946 # $links is the list of header files to create.
6947 # $vars is the list of shell variables with file names to include.
6948 # auto-host.h is the file containing items generated by autoconf and is
6949 # the first file included by config.h.
6951 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6953 # If host=build, it is correct to have hconfig include auto-host.h
6954 # as well. If host!=build, we are in error and need to do more
6955 # work to find out the build config parameters.
6956 if test x
$host = x
$build
6958 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6960 # We create a subdir, then run autoconf in the subdir.
6961 # To prevent recursion we set host and build for the new
6962 # invocation of configure to the build for this invocation
6969 /*) realsrcdir
=${srcdir};;
6970 *) realsrcdir
=..
/${srcdir};;
6972 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6973 --target=$target --host=$build --build=$build
6975 # We just finished tests for the build machine, so rename
6976 # the file auto-build.h in the gcc directory.
6977 mv auto-host.h ..
/auto-build.h
6980 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6983 xm_file
="gansidecl.h ${xm_file}"
6984 tm_file
="gansidecl.h ${tm_file}"
6986 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6987 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6988 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6991 if test -f config.status
; then mv -f config.status config.bak
; fi
6994 while test -n "$vars"
6996 set $vars; var
=$1; shift; vars
=$
*
6997 set $links; link
=$1; shift; links
=$
*
6998 set $defines; define
=$1; shift; defines
=$
*
7001 # Make sure the file is created, even if it is empty.
7004 # Define TARGET_CPU_DEFAULT if the system wants one.
7005 # This substitutes for lots of *.h files.
7006 if test "$target_cpu_default" != "" -a $link = tm.h
7008 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7011 for file in `eval echo '$'$var`; do
7013 auto-host.h | auto-build.h
)
7016 echo '#ifdef IN_GCC' >>$link
7019 echo "#include \"$file\"" >>$link
7021 auto-host.h | auto-build.h
)
7024 echo '#endif' >>$link
7029 for def
in `eval echo '$'$define`; do
7030 echo "#ifndef $def" >>$link
7031 echo "#define $def" >>$link
7032 echo "#endif" >>$link
7036 # Truncate the target if necessary
7037 if test x
$host_truncate_target != x
; then
7038 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7041 # Get the version trigger filename from the toplevel
7042 if test "${with_gcc_version_trigger+set}" = set; then
7043 gcc_version_trigger
=$with_gcc_version_trigger
7045 gcc_version_trigger
=${srcdir}/version.c
7047 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7049 # Internationalization
7051 VERSION
="$gcc_version"
7052 cat >> confdefs.h
<<EOF
7053 #define PACKAGE "$PACKAGE"
7056 cat >> confdefs.h
<<EOF
7057 #define VERSION "$VERSION"
7065 # Enable NLS support by default
7066 # Check whether --enable-nls or --disable-nls was given.
7067 if test "${enable_nls+set}" = set; then
7068 enableval
="$enable_nls"
7075 # if cross compiling, disable NLS support.
7076 # It's not worth the trouble, at least for now.
7078 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7079 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7084 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7085 echo "configure:7086: checking for strerror in -lcposix" >&5
7086 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7088 echo $ac_n "(cached) $ac_c" 1>&6
7090 ac_save_LIBS
="$LIBS"
7091 LIBS
="-lcposix $LIBS"
7092 cat > conftest.
$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7095 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7104 if { (eval echo configure
:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7106 eval "ac_cv_lib_$ac_lib_var=yes"
7108 echo "configure: failed program was:" >&5
7109 cat conftest.
$ac_ext >&5
7111 eval "ac_cv_lib_$ac_lib_var=no"
7114 LIBS
="$ac_save_LIBS"
7117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7118 echo "$ac_t""yes" 1>&6
7119 LIBS
="$LIBS -lcposix"
7121 echo "$ac_t""no" 1>&6
7126 echo $ac_n "checking for working const""... $ac_c" 1>&6
7127 echo "configure:7128: checking for working const" >&5
7128 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.
$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7137 /* Ultrix mips cc rejects this. */
7138 typedef int charset[2]; const charset x;
7139 /* SunOS 4.1.1 cc rejects this. */
7140 char const *const *ccp;
7142 /* NEC SVR4.0.2 mips cc rejects this. */
7143 struct point {int x, y;};
7144 static struct point const zero = {0,0};
7145 /* AIX XL C 1.02.0.0 rejects this.
7146 It does not let you subtract one const X* pointer from another in an arm
7147 of an if-expression whose if-part is not a constant expression */
7148 const char *g = "string";
7149 ccp = &g + (g ? g-g : 0);
7150 /* HPUX 7.0 cc rejects these. */
7153 ccp = (char const *const *) p;
7154 { /* SCO 3.2v4 cc rejects this. */
7156 char const *s = 0 ? (char *) 0 : (char const *) 0;
7160 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7162 const int *foo = &x[0];
7165 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7166 typedef const int *iptr;
7170 { /* AIX XL C 1.02.0.0 rejects this saying
7171 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7172 struct s { int j; const int *ap[3]; };
7173 struct s *b; b->j = 5;
7175 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7181 if { (eval echo configure
:7182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7185 echo "configure: failed program was:" >&5
7186 cat conftest.
$ac_ext >&5
7193 echo "$ac_t""$ac_cv_c_const" 1>&6
7194 if test $ac_cv_c_const = no
; then
7195 cat >> confdefs.h
<<\EOF
7201 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7202 echo "configure:7203: checking for off_t" >&5
7203 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7204 echo $ac_n "(cached) $ac_c" 1>&6
7206 cat > conftest.
$ac_ext <<EOF
7207 #line 7208 "configure"
7208 #include "confdefs.h"
7209 #include <sys/types.h>
7215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7216 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7218 ac_cv_type_off_t
=yes
7226 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7227 if test $ac_cv_type_off_t = no
; then
7228 cat >> confdefs.h
<<\EOF
7234 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7235 echo "configure:7236: checking for size_t" >&5
7236 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7237 echo $ac_n "(cached) $ac_c" 1>&6
7239 cat > conftest.
$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7242 #include <sys/types.h>
7248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7249 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7251 ac_cv_type_size_t
=yes
7254 ac_cv_type_size_t
=no
7259 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7260 if test $ac_cv_type_size_t = no
; then
7261 cat >> confdefs.h
<<\EOF
7262 #define size_t unsigned
7267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7268 # for constant arguments. Useless!
7269 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7270 echo "configure:7271: checking for working alloca.h" >&5
7271 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6
7274 cat > conftest.
$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7279 char *p = alloca(2 * sizeof(int));
7282 if { (eval echo configure
:7283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7284 ac_cv_header_alloca_h
=yes
7286 echo "configure: failed program was:" >&5
7287 cat conftest.
$ac_ext >&5
7289 ac_cv_header_alloca_h
=no
7294 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7295 if test $ac_cv_header_alloca_h = yes; then
7296 cat >> confdefs.h
<<\EOF
7297 #define HAVE_ALLOCA_H 1
7302 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7303 echo "configure:7304: checking for alloca" >&5
7304 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 cat > conftest.
$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7312 # define alloca __builtin_alloca
7315 # include <malloc.h>
7316 # define alloca _alloca
7319 # include <alloca.h>
7324 # ifndef alloca /* predefined by HP cc +Olibcalls */
7333 char *p = (char *) alloca(1);
7336 if { (eval echo configure
:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7338 ac_cv_func_alloca_works
=yes
7340 echo "configure: failed program was:" >&5
7341 cat conftest.
$ac_ext >&5
7343 ac_cv_func_alloca_works
=no
7348 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7349 if test $ac_cv_func_alloca_works = yes; then
7350 cat >> confdefs.h
<<\EOF
7351 #define HAVE_ALLOCA 1
7356 if test $ac_cv_func_alloca_works = no
; then
7357 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7358 # that cause trouble. Some versions do not even contain alloca or
7359 # contain a buggy version. If you still want to use their alloca,
7360 # use ar to extract alloca.o from them instead of compiling alloca.c.
7361 ALLOCA
=alloca.
${ac_objext}
7362 cat >> confdefs.h
<<\EOF
7367 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7368 echo "configure:7369: checking whether alloca needs Cray hooks" >&5
7369 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.
$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 #if defined(CRAY) && ! defined(CRAY2)
7382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383 egrep "webecray" >/dev
/null
2>&1; then
7394 echo "$ac_t""$ac_cv_os_cray" 1>&6
7395 if test $ac_cv_os_cray = yes; then
7396 for ac_func
in _getb67 GETB67 getb67
; do
7397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7398 echo "configure:7399: checking for $ac_func" >&5
7399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7402 cat > conftest.
$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* System header to define __stub macros and hopefully few prototypes,
7406 which can conflict with char $ac_func(); below. */
7408 /* Override any gcc2 internal prototype to avoid an error. */
7409 /* We use char because int might match the return type of a gcc2
7410 builtin and then its argument prototype would still apply. */
7415 /* The GNU C library defines this for functions which it implements
7416 to always fail with ENOSYS. Some functions are actually named
7417 something starting with __ and the normal name is an alias. */
7418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7426 if { (eval echo configure
:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7428 eval "ac_cv_func_$ac_func=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.
$ac_ext >&5
7433 eval "ac_cv_func_$ac_func=no"
7438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7439 echo "$ac_t""yes" 1>&6
7440 cat >> confdefs.h
<<EOF
7441 #define CRAY_STACKSEG_END $ac_func
7446 echo "$ac_t""no" 1>&6
7452 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7453 echo "configure:7454: checking stack direction for C alloca" >&5
7454 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7457 if test "$cross_compiling" = yes; then
7458 ac_cv_c_stack_direction
=0
7460 cat > conftest.
$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 find_stack_direction ()
7465 static char *addr = 0;
7470 return find_stack_direction ();
7473 return (&dummy > addr) ? 1 : -1;
7477 exit (find_stack_direction() < 0);
7480 if { (eval echo configure
:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7482 ac_cv_c_stack_direction
=1
7484 echo "configure: failed program was:" >&5
7485 cat conftest.
$ac_ext >&5
7487 ac_cv_c_stack_direction
=-1
7494 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7495 cat >> confdefs.h
<<EOF
7496 #define STACK_DIRECTION $ac_cv_c_stack_direction
7502 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7503 unistd.h sys
/param.h
7505 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7507 echo "configure:7508: checking for $ac_hdr" >&5
7508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7511 cat > conftest.
$ac_ext <<EOF
7512 #line 7513 "configure"
7513 #include "confdefs.h"
7516 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7517 { (eval echo configure
:7518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7518 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7519 if test -z "$ac_err"; then
7521 eval "ac_cv_header_$ac_safe=yes"
7524 echo "configure: failed program was:" >&5
7525 cat conftest.
$ac_ext >&5
7527 eval "ac_cv_header_$ac_safe=no"
7531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7532 echo "$ac_t""yes" 1>&6
7533 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7534 cat >> confdefs.h
<<EOF
7535 #define $ac_tr_hdr 1
7539 echo "$ac_t""no" 1>&6
7543 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7544 strdup __argz_count __argz_stringify __argz_next
7546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7547 echo "configure:7548: checking for $ac_func" >&5
7548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7551 cat > conftest.
$ac_ext <<EOF
7552 #line 7553 "configure"
7553 #include "confdefs.h"
7554 /* System header to define __stub macros and hopefully few prototypes,
7555 which can conflict with char $ac_func(); below. */
7557 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7564 /* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7575 if { (eval echo configure
:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7577 eval "ac_cv_func_$ac_func=yes"
7579 echo "configure: failed program was:" >&5
7580 cat conftest.
$ac_ext >&5
7582 eval "ac_cv_func_$ac_func=no"
7587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7588 echo "$ac_t""yes" 1>&6
7589 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7590 cat >> confdefs.h
<<EOF
7591 #define $ac_tr_func 1
7595 echo "$ac_t""no" 1>&6
7600 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7601 for ac_func
in stpcpy
7603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7604 echo "configure:7605: checking for $ac_func" >&5
7605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7608 cat > conftest.
$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7611 /* System header to define __stub macros and hopefully few prototypes,
7612 which can conflict with char $ac_func(); below. */
7614 /* Override any gcc2 internal prototype to avoid an error. */
7615 /* We use char because int might match the return type of a gcc2
7616 builtin and then its argument prototype would still apply. */
7621 /* The GNU C library defines this for functions which it implements
7622 to always fail with ENOSYS. Some functions are actually named
7623 something starting with __ and the normal name is an alias. */
7624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7632 if { (eval echo configure
:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7634 eval "ac_cv_func_$ac_func=yes"
7636 echo "configure: failed program was:" >&5
7637 cat conftest.
$ac_ext >&5
7639 eval "ac_cv_func_$ac_func=no"
7644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7645 echo "$ac_t""yes" 1>&6
7646 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7647 cat >> confdefs.h
<<EOF
7648 #define $ac_tr_func 1
7652 echo "$ac_t""no" 1>&6
7657 if test "${ac_cv_func_stpcpy}" = "yes"; then
7658 cat >> confdefs.h
<<\EOF
7659 #define HAVE_STPCPY 1
7664 if test $ac_cv_header_locale_h = yes; then
7665 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7666 echo "configure:7667: checking for LC_MESSAGES" >&5
7667 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 cat > conftest.
$ac_ext <<EOF
7671 #line 7672 "configure"
7672 #include "confdefs.h"
7678 if { (eval echo configure
:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7680 am_cv_val_LC_MESSAGES
=yes
7682 echo "configure: failed program was:" >&5
7683 cat conftest.
$ac_ext >&5
7685 am_cv_val_LC_MESSAGES
=no
7690 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7691 if test $am_cv_val_LC_MESSAGES = yes; then
7692 cat >> confdefs.h
<<\EOF
7693 #define HAVE_LC_MESSAGES 1
7698 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7699 echo "configure:7700: checking whether NLS is requested" >&5
7700 # Check whether --enable-nls or --disable-nls was given.
7701 if test "${enable_nls+set}" = set; then
7702 enableval
="$enable_nls"
7708 echo "$ac_t""$USE_NLS" 1>&6
7711 USE_INCLUDED_LIBINTL
=no
7713 if test "$USE_NLS" = "yes"; then
7714 cat >> confdefs.h
<<\EOF
7715 #define ENABLE_NLS 1
7718 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7719 echo "configure:7720: checking whether included gettext is requested" >&5
7720 # Check whether --with-included-gettext or --without-included-gettext was given.
7721 if test "${with_included_gettext+set}" = set; then
7722 withval
="$with_included_gettext"
7723 nls_cv_force_use_gnu_gettext
=$withval
7725 nls_cv_force_use_gnu_gettext
=yes
7728 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7730 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7731 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7733 nls_cv_header_libgt
=
7736 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7737 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7738 echo "configure:7739: checking for libintl.h" >&5
7739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7742 cat > conftest.
$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 #include <libintl.h>
7747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7748 { (eval echo configure
:7749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7749 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7750 if test -z "$ac_err"; then
7752 eval "ac_cv_header_$ac_safe=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.
$ac_ext >&5
7758 eval "ac_cv_header_$ac_safe=no"
7762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7765 echo "configure:7766: checking for gettext in libc" >&5
7766 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7769 cat > conftest.
$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 #include <libintl.h>
7774 return (int) gettext ("")
7777 if { (eval echo configure
:7778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7779 gt_cv_func_gettext_libc
=yes
7781 echo "configure: failed program was:" >&5
7782 cat conftest.
$ac_ext >&5
7784 gt_cv_func_gettext_libc
=no
7789 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7791 if test "$gt_cv_func_gettext_libc" != "yes"; then
7792 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7793 echo "configure:7794: checking for bindtextdomain in -lintl" >&5
7794 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7798 ac_save_LIBS
="$LIBS"
7800 cat > conftest.
$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806 char bindtextdomain();
7812 if { (eval echo configure
:7813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7814 eval "ac_cv_lib_$ac_lib_var=yes"
7816 echo "configure: failed program was:" >&5
7817 cat conftest.
$ac_ext >&5
7819 eval "ac_cv_lib_$ac_lib_var=no"
7822 LIBS
="$ac_save_LIBS"
7825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7826 echo "$ac_t""yes" 1>&6
7827 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7828 echo "configure:7829: checking for gettext in libintl" >&5
7829 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7832 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7833 echo "configure:7834: checking for gettext in -lintl" >&5
7834 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7838 ac_save_LIBS
="$LIBS"
7840 cat > conftest.
$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7852 if { (eval echo configure
:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7854 eval "ac_cv_lib_$ac_lib_var=yes"
7856 echo "configure: failed program was:" >&5
7857 cat conftest.
$ac_ext >&5
7859 eval "ac_cv_lib_$ac_lib_var=no"
7862 LIBS
="$ac_save_LIBS"
7865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7866 echo "$ac_t""yes" 1>&6
7867 gt_cv_func_gettext_libintl
=yes
7869 echo "$ac_t""no" 1>&6
7870 gt_cv_func_gettext_libintl
=no
7875 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7877 echo "$ac_t""no" 1>&6
7882 if test "$gt_cv_func_gettext_libc" = "yes" \
7883 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7884 cat >> confdefs.h
<<\EOF
7885 #define HAVE_GETTEXT 1
7888 # Extract the first word of "msgfmt", so it can be a program name with args.
7889 set dummy msgfmt
; ac_word
=$2
7890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7891 echo "configure:7892: checking for $ac_word" >&5
7892 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7897 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7900 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7901 for ac_dir
in $PATH; do
7902 test -z "$ac_dir" && ac_dir
=.
7903 if test -f $ac_dir/$ac_word; then
7904 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7905 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7911 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7915 MSGFMT
="$ac_cv_path_MSGFMT"
7916 if test -n "$MSGFMT"; then
7917 echo "$ac_t""$MSGFMT" 1>&6
7919 echo "$ac_t""no" 1>&6
7921 if test "$MSGFMT" != "no"; then
7922 for ac_func
in dcgettext
7924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7925 echo "configure:7926: checking for $ac_func" >&5
7926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7929 cat > conftest.
$ac_ext <<EOF
7930 #line 7931 "configure"
7931 #include "confdefs.h"
7932 /* System header to define __stub macros and hopefully few prototypes,
7933 which can conflict with char $ac_func(); below. */
7935 /* Override any gcc2 internal prototype to avoid an error. */
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7942 /* The GNU C library defines this for functions which it implements
7943 to always fail with ENOSYS. Some functions are actually named
7944 something starting with __ and the normal name is an alias. */
7945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7953 if { (eval echo configure
:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7955 eval "ac_cv_func_$ac_func=yes"
7957 echo "configure: failed program was:" >&5
7958 cat conftest.
$ac_ext >&5
7960 eval "ac_cv_func_$ac_func=no"
7965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7966 echo "$ac_t""yes" 1>&6
7967 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7968 cat >> confdefs.h
<<EOF
7969 #define $ac_tr_func 1
7973 echo "$ac_t""no" 1>&6
7977 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7978 set dummy gmsgfmt
; ac_word
=$2
7979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7980 echo "configure:7981: checking for $ac_word" >&5
7981 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7986 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7989 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7994 for ac_dir
in $ac_dummy; do
7995 test -z "$ac_dir" && ac_dir
=.
7996 if test -f $ac_dir/$ac_word; then
7997 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8002 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8006 GMSGFMT
="$ac_cv_path_GMSGFMT"
8007 if test -n "$GMSGFMT"; then
8008 echo "$ac_t""$GMSGFMT" 1>&6
8010 echo "$ac_t""no" 1>&6
8013 # Extract the first word of "xgettext", so it can be a program name with args.
8014 set dummy xgettext
; ac_word
=$2
8015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8016 echo "configure:8017: checking for $ac_word" >&5
8017 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8022 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8026 for ac_dir
in $PATH; do
8027 test -z "$ac_dir" && ac_dir
=.
8028 if test -f $ac_dir/$ac_word; then
8029 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8030 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8036 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8040 XGETTEXT
="$ac_cv_path_XGETTEXT"
8041 if test -n "$XGETTEXT"; then
8042 echo "$ac_t""$XGETTEXT" 1>&6
8044 echo "$ac_t""no" 1>&6
8047 cat > conftest.
$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8052 extern int _nl_msg_cat_cntr;
8053 return _nl_msg_cat_cntr
8056 if { (eval echo configure
:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8061 echo "configure: failed program was:" >&5
8062 cat conftest.
$ac_ext >&5
8073 echo "$ac_t""no" 1>&6
8077 if test "$CATOBJEXT" = "NONE"; then
8078 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8079 echo "configure:8080: checking whether catgets can be used" >&5
8080 # Check whether --with-catgets or --without-catgets was given.
8081 if test "${with_catgets+set}" = set; then
8082 withval
="$with_catgets"
8083 nls_cv_use_catgets
=$withval
8085 nls_cv_use_catgets
=no
8088 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8090 if test "$nls_cv_use_catgets" = "yes"; then
8091 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8092 echo "configure:8093: checking for main in -li" >&5
8093 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 ac_save_LIBS
="$LIBS"
8099 cat > conftest.
$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8107 if { (eval echo configure
:8108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8109 eval "ac_cv_lib_$ac_lib_var=yes"
8111 echo "configure: failed program was:" >&5
8112 cat conftest.
$ac_ext >&5
8114 eval "ac_cv_lib_$ac_lib_var=no"
8117 LIBS
="$ac_save_LIBS"
8120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8121 echo "$ac_t""yes" 1>&6
8122 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8124 cat >> confdefs.h
<<EOF
8125 #define $ac_tr_lib 1
8131 echo "$ac_t""no" 1>&6
8134 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8135 echo "configure:8136: checking for catgets" >&5
8136 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 cat > conftest.
$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* System header to define __stub macros and hopefully few prototypes,
8143 which can conflict with char catgets(); below. */
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8152 /* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155 #if defined (__stub_catgets) || defined (__stub___catgets)
8163 if { (eval echo configure
:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8165 eval "ac_cv_func_catgets=yes"
8167 echo "configure: failed program was:" >&5
8168 cat conftest.
$ac_ext >&5
8170 eval "ac_cv_func_catgets=no"
8175 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8176 echo "$ac_t""yes" 1>&6
8177 cat >> confdefs.h
<<\EOF
8178 #define HAVE_CATGETS 1
8181 INTLOBJS
="\$(CATOBJS)"
8182 # Extract the first word of "gencat", so it can be a program name with args.
8183 set dummy gencat
; ac_word
=$2
8184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8185 echo "configure:8186: checking for $ac_word" >&5
8186 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8191 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8194 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8197 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8199 for ac_dir
in $ac_dummy; do
8200 test -z "$ac_dir" && ac_dir
=.
8201 if test -f $ac_dir/$ac_word; then
8202 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8207 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8211 GENCAT
="$ac_cv_path_GENCAT"
8212 if test -n "$GENCAT"; then
8213 echo "$ac_t""$GENCAT" 1>&6
8215 echo "$ac_t""no" 1>&6
8217 if test "$GENCAT" != "no"; then
8218 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8219 set dummy gmsgfmt
; ac_word
=$2
8220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8221 echo "configure:8222: checking for $ac_word" >&5
8222 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8227 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8230 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8233 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8235 for ac_dir
in $ac_dummy; do
8236 test -z "$ac_dir" && ac_dir
=.
8237 if test -f $ac_dir/$ac_word; then
8238 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8243 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8247 GMSGFMT
="$ac_cv_path_GMSGFMT"
8248 if test -n "$GMSGFMT"; then
8249 echo "$ac_t""$GMSGFMT" 1>&6
8251 echo "$ac_t""no" 1>&6
8254 if test "$GMSGFMT" = "no"; then
8255 # Extract the first word of "msgfmt", so it can be a program name with args.
8256 set dummy msgfmt
; ac_word
=$2
8257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8258 echo "configure:8259: checking for $ac_word" >&5
8259 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8264 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8267 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8268 for ac_dir
in $PATH; do
8269 test -z "$ac_dir" && ac_dir
=.
8270 if test -f $ac_dir/$ac_word; then
8271 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8272 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8278 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8282 GMSGFMT
="$ac_cv_path_GMSGFMT"
8283 if test -n "$GMSGFMT"; then
8284 echo "$ac_t""$GMSGFMT" 1>&6
8286 echo "$ac_t""no" 1>&6
8289 if test "$GMSGFMT" = "msgfmt"; then
8290 echo "configure: warning: No program for catalog building found" 1>&2
8291 create_catalogs
="no"
8294 # Extract the first word of "xgettext", so it can be a program name with args.
8295 set dummy xgettext
; ac_word
=$2
8296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8297 echo "configure:8298: checking for $ac_word" >&5
8298 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8303 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8306 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8307 for ac_dir
in $PATH; do
8308 test -z "$ac_dir" && ac_dir
=.
8309 if test -f $ac_dir/$ac_word; then
8310 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8311 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8317 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8321 XGETTEXT
="$ac_cv_path_XGETTEXT"
8322 if test -n "$XGETTEXT"; then
8323 echo "$ac_t""$XGETTEXT" 1>&6
8325 echo "$ac_t""no" 1>&6
8328 USE_INCLUDED_LIBINTL
=yes
8332 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8334 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8335 nls_cv_header_intl
=intl
/libintl.h
8336 nls_cv_header_libgt
=intl
/libgettext.h
8339 echo "$ac_t""no" 1>&6
8345 if test "$CATOBJEXT" = "NONE"; then
8346 nls_cv_use_gnu_gettext
=yes
8350 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8351 INTLOBJS
="\$(GETTOBJS)"
8352 # Extract the first word of "msgfmt", so it can be a program name with args.
8353 set dummy msgfmt
; ac_word
=$2
8354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8355 echo "configure:8356: checking for $ac_word" >&5
8356 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8361 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8364 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8365 for ac_dir
in $PATH; do
8366 test -z "$ac_dir" && ac_dir
=.
8367 if test -f $ac_dir/$ac_word; then
8368 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8369 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8375 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8379 MSGFMT
="$ac_cv_path_MSGFMT"
8380 if test -n "$MSGFMT"; then
8381 echo "$ac_t""$MSGFMT" 1>&6
8383 echo "$ac_t""no" 1>&6
8386 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8387 set dummy gmsgfmt
; ac_word
=$2
8388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8389 echo "configure:8390: checking for $ac_word" >&5
8390 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8395 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8398 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8401 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8403 for ac_dir
in $ac_dummy; do
8404 test -z "$ac_dir" && ac_dir
=.
8405 if test -f $ac_dir/$ac_word; then
8406 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8411 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8415 GMSGFMT
="$ac_cv_path_GMSGFMT"
8416 if test -n "$GMSGFMT"; then
8417 echo "$ac_t""$GMSGFMT" 1>&6
8419 echo "$ac_t""no" 1>&6
8422 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8423 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8424 create_catalogs
="no"
8426 # Extract the first word of "xgettext", so it can be a program name with args.
8427 set dummy xgettext
; ac_word
=$2
8428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8429 echo "configure:8430: checking for $ac_word" >&5
8430 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8431 echo $ac_n "(cached) $ac_c" 1>&6
8435 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8438 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8439 for ac_dir
in $PATH; do
8440 test -z "$ac_dir" && ac_dir
=.
8441 if test -f $ac_dir/$ac_word; then
8442 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8443 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8449 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8453 XGETTEXT
="$ac_cv_path_XGETTEXT"
8454 if test -n "$XGETTEXT"; then
8455 echo "$ac_t""$XGETTEXT" 1>&6
8457 echo "$ac_t""no" 1>&6
8461 USE_INCLUDED_LIBINTL
=yes
8465 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8467 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8468 nls_cv_header_intl
=intl
/libintl.h
8469 nls_cv_header_libgt
=intl
/libgettext.h
8472 if test "$XGETTEXT" != ":"; then
8473 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8476 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8483 # We need to process the po/ directory.
8487 nls_cv_header_intl
=intl
/libintl.h
8488 nls_cv_header_libgt
=intl
/libgettext.h
8494 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8495 # because some of the sources are only built for this goal.
8496 if test "$PACKAGE" = gettext; then
8498 USE_INCLUDED_LIBINTL
=yes
8501 for lang
in $ALL_LINGUAS; do
8502 GMOFILES
="$GMOFILES $lang.gmo"
8503 POFILES
="$POFILES $lang.po"
8519 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8520 if test "x$ALL_LINGUAS" = "x"; then
8523 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8524 echo "configure:8525: checking for catalogs to be installed" >&5
8525 if test "x$LINGUAS" = "x"; then
8526 LINGUAS
=$ALL_LINGUAS
8529 for lang
in $ALL_LINGUAS; do
8530 case " $LINGUAS " in
8531 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8534 LINGUAS
=$NEW_LINGUAS
8536 echo "$ac_t""$LINGUAS" 1>&6
8539 if test -n "$LINGUAS"; then
8540 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8544 if test $ac_cv_header_locale_h = yes; then
8545 INCLUDE_LOCALE_H
="#include <locale.h>"
8548 /* The system does not provide the header <locale.h>. Take care yourself. */"
8552 test -d intl || mkdir intl
8553 if test "$CATOBJEXT" = ".cat"; then
8554 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8555 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8556 echo "configure:8557: checking for linux/version.h" >&5
8557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8560 cat > conftest.
$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8563 #include <linux/version.h>
8565 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8566 { (eval echo configure
:8567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8567 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8568 if test -z "$ac_err"; then
8570 eval "ac_cv_header_$ac_safe=yes"
8573 echo "configure: failed program was:" >&5
8574 cat conftest.
$ac_ext >&5
8576 eval "ac_cv_header_$ac_safe=no"
8580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8581 echo "$ac_t""yes" 1>&6
8584 echo "$ac_t""no" 1>&6
8589 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8591 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8592 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8594 if test "$PACKAGE" = "gettext"; then
8605 if test -n "$ac_aux_dir"; then
8606 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8608 if test -z "$MKINSTALLDIRS"; then
8609 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8616 test -d po || mkdir po
8617 if test "x$srcdir" != "x."; then
8618 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8619 posrcprefix
="$srcdir/"
8621 posrcprefix
="../$srcdir/"
8627 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8628 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8630 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8632 # Windows32 Registry support for specifying GCC installation paths.
8633 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8634 if test "${enable_win32_registry+set}" = set; then
8635 enableval
="$enable_win32_registry"
8640 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8641 echo "configure:8642: checking whether windows registry support is requested" >&5
8642 if test x
$enable_win32_registry != xno
; then
8643 cat >> confdefs.h
<<\EOF
8644 #define ENABLE_WIN32_REGISTRY 1
8647 echo "$ac_t""yes" 1>&6
8649 echo "$ac_t""no" 1>&6
8652 # Check if user specified a different registry key.
8653 case x
${enable_win32_registry} in
8656 gcc_cv_win32_registry_key
="$VERSION"
8659 # no registry lookup.
8660 gcc_cv_win32_registry_key
=''
8663 # user-specified key.
8664 gcc_cv_win32_registry_key
="$enable_win32_registry"
8668 if test x
$enable_win32_registry != xno
; then
8669 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8670 echo "configure:8671: checking registry key on windows hosts" >&5
8671 cat >> confdefs.h
<<EOF
8672 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8675 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8678 # Get an absolute path to the GCC top-level source directory
8684 # Conditionalize the makefile for this host machine.
8685 # Make-host contains the concatenation of all host makefile fragments
8686 # [there can be more than one]. This file is built by configure.frag.
8687 host_overrides
=Make-host
8688 dep_host_xmake_file
=
8689 for f
in ..
${host_xmake_file}
8691 if test -f ${srcdir}/config
/$f
8693 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8697 # Conditionalize the makefile for this target machine.
8698 # Make-target contains the concatenation of all host makefile fragments
8699 # [there can be more than one]. This file is built by configure.frag.
8700 target_overrides
=Make-target
8702 for f
in ..
${tmake_file}
8704 if test -f ${srcdir}/config
/$f
8706 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8710 # If the host doesn't support symlinks, modify CC in
8711 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8712 # Otherwise, we can use "CC=$(CC)".
8714 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8716 cc_set_by_configure
="\$(CC)"
8717 quoted_cc_set_by_configure
="\$(CC)"
8718 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8721 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8723 symbolic_link
="cp -p"
8727 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8728 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8729 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8733 out_object_file
=`basename $out_file .c`.o
8736 for f
in $tm_file; do
8739 tm_file_list
="${tm_file_list} $f" ;;
8740 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8745 for f
in $host_xm_file; do
8747 auto-host.h | gansidecl.h | hwint.h
)
8748 host_xm_file_list
="${host_xm_file_list} $f" ;;
8749 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8754 for f
in $build_xm_file; do
8756 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8757 build_xm_file_list
="${build_xm_file_list} $f" ;;
8758 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8762 # Define macro CROSS_COMPILE in compilation
8763 # if this is a cross-compiler.
8764 # Also use all.cross instead of all.internal
8765 # and add cross-make to Makefile.
8766 cross_overrides
="/dev/null"
8767 if test x
$host != x
$target
8769 cross_defines
="CROSS=-DCROSS_COMPILE"
8770 cross_overrides
="${topdir}/cross-make"
8773 # If this is a cross-compiler that does not
8774 # have its own set of headers then define
8777 # If this is using newlib, then define inhibit_libc in
8778 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8779 # libgcc.a, but that's OK because newlib should have its own version of
8782 if test x
$host != x
$target && test x
$with_headers = x
; then
8783 inhibit_libc
=-Dinhibit_libc
8785 if test x
$with_newlib = xyes
; then
8786 inhibit_libc
=-Dinhibit_libc
8791 # When building gcc with a cross-compiler, we need to fix a few things.
8792 # This must come after cross-make as we want all.build to override
8794 build_overrides
="/dev/null"
8795 if test x
$build != x
$host
8797 build_overrides
="${topdir}/build-make"
8800 # Expand extra_headers to include complete path.
8801 # This substitutes for lots of t-* files.
8803 if test "x$extra_headers" = x
8806 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8807 for file in $extra_headers;
8809 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8813 if test x
$use_collect2 = xno
; then
8817 # Add a definition of USE_COLLECT2 if system wants one.
8818 # Also tell toplev.c what to do.
8819 # This substitutes for lots of t-* files.
8820 if test x
$use_collect2 = x
8825 will_use_collect2
="collect2"
8826 maybe_use_collect2
="-DUSE_COLLECT2"
8830 # Set MD_DEPS if the real md file is in md.pre-cpp.
8831 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8832 # for line oriented comments, so we must always use a GNU cpp. If
8833 # building gcc with a cross compiler, use the cross compiler just
8834 # built. Otherwise, we can use the cpp just built.
8836 if test "x$md_cppflags" = x
8838 md_file_sub
=$srcdir/config
/$md_file
8843 # If we have gas in the build tree, make a link to it.
8844 if test -f ..
/gas
/Makefile
; then
8845 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8848 # If we have nm in the build tree, make a link to it.
8849 if test -f ..
/binutils
/Makefile
; then
8850 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8853 # If we have ld in the build tree, make a link to it.
8854 if test -f ..
/ld
/Makefile
; then
8855 # if test x$use_collect2 = x; then
8856 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8858 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8862 # Figure out what assembler alignment features are present.
8863 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8864 echo "configure:8865: checking assembler alignment features" >&5
8866 gcc_cv_as_alignment_features
=
8867 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8868 if test -x "$DEFAULT_ASSEMBLER"; then
8869 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8870 elif test -x "$AS"; then
8872 elif test -x as
$host_exeext; then
8873 # Build using assembler in the current directory.
8874 gcc_cv_as
=.
/as
$host_exeext
8875 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8876 # Single tree build which includes gas.
8877 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8879 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8880 if test x
$gcc_cv_gas_version != x
; then
8884 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8885 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8886 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8887 # Gas version 2.6 and later support for .balign and .p2align.
8888 # bytes to skip when using .p2align.
8889 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
8890 gcc_cv_as_alignment_features
=".balign and .p2align"
8891 cat >> confdefs.h
<<\EOF
8892 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8896 # Gas version 2.8 and later support specifying the maximum
8897 # bytes to skip when using .p2align.
8898 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
8899 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8900 cat >> confdefs.h
<<\EOF
8901 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8906 elif test x
$host = x
$target; then
8908 # Search the same directories that the installed compiler will
8909 # search. Else we may find the wrong assembler and lose. If we
8910 # do not find a suitable assembler binary, then try the user's
8913 # Also note we have to check MD_EXEC_PREFIX before checking the
8914 # user's path. Unfortunately, there is no good way to get at the
8915 # value of MD_EXEC_PREFIX here. So we do a brute force search
8916 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8917 # to be fixed as part of the make/configure rewrite too.
8919 if test "x$exec_prefix" = xNONE
; then
8920 if test "x$prefix" = xNONE
; then
8921 test_prefix
=/usr
/local
8926 test_prefix
=$exec_prefix
8929 # If the loop below does not find an assembler, then use whatever
8930 # one we can find in the users's path.
8934 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8935 $test_prefix/lib/gcc-lib/$target \
8936 /usr/lib/gcc/$target/$gcc_version \
8937 /usr/lib/gcc/$target \
8938 $test_prefix/$target/bin/$target/$gcc_version \
8939 $test_prefix/$target/bin \
8944 /bsd43/usr/lib/cmplrs/cc \
8945 /usr/cross64/usr/bin \
8946 /usr/lib/cmplrs/cc \
8947 /sysv/usr/lib/cmplrs/cc \
8948 /svr4/usr/lib/cmplrs/cc \
8951 for dir
in $test_dirs; do
8952 if test -f $dir/as
$host_exeext; then
8953 gcc_cv_as
=$dir/as
$host_exeext
8958 if test x
$gcc_cv_as != x
; then
8959 # Check if we have .balign and .p2align
8960 echo ".balign 4" > conftest.s
8961 echo ".p2align 2" >> conftest.s
8962 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8963 gcc_cv_as_alignment_features
=".balign and .p2align"
8964 cat >> confdefs.h
<<\EOF
8965 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8969 rm -f conftest.s conftest.o
8970 # Check if specifying the maximum bytes to skip when
8971 # using .p2align is supported.
8972 echo ".p2align 4,,7" > conftest.s
8973 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8974 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8975 cat >> confdefs.h
<<\EOF
8976 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8980 rm -f conftest.s conftest.o
8982 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8984 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8985 echo "configure:8986: checking assembler subsection support" >&5
8986 gcc_cv_as_subsections
=
8987 if test x
$gcc_cv_as != x
; then
8988 # Check if we have .subsection
8989 echo ".subsection 1" > conftest.s
8990 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8991 gcc_cv_as_subsections
=".subsection"
8992 if test -x nm
$host_exeext; then
8993 gcc_cv_nm
=.
/nm
$host_exeext
8994 elif test x
$host = x
$target; then
8996 gcc_cv_nm
=nm
$host_exeext
8998 if test x
$gcc_cv_nm != x
; then
8999 cat > conftest.s
<<EOF
9000 conftest_label1: .word 0
9002 conftest_label2: .word 0
9005 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9006 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9007 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9008 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9011 gcc_cv_as_subsections
="working .subsection -1"
9012 cat >> confdefs.h
<<\EOF
9013 #define HAVE_GAS_SUBSECTION_ORDERING 1
9020 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9022 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9024 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9025 echo "configure:9026: checking assembler weak support" >&5
9027 if test x
$gcc_cv_as != x
; then
9028 # Check if we have .weak
9029 echo " .weak foobar" > conftest.s
9030 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9031 cat >> confdefs.h
<<\EOF
9032 #define HAVE_GAS_WEAK 1
9035 gcc_cv_as_weak
="yes"
9037 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9039 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9041 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9042 echo "configure:9043: checking assembler hidden support" >&5
9044 if test x
$gcc_cv_as != x
; then
9045 # Check if we have .hidden
9046 echo " .hidden foobar" > conftest.s
9047 echo "foobar:" >> conftest.s
9048 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9049 cat >> confdefs.h
<<\EOF
9050 #define HAVE_GAS_HIDDEN 1
9053 gcc_cv_as_hidden
="yes"
9055 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9057 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9061 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9062 echo "configure:9063: checking assembler .register pseudo-op support" >&5
9063 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9067 gcc_cv_as_register_pseudo_op
=unknown
9068 if test x
$gcc_cv_as != x
; then
9069 # Check if we have .register
9070 echo ".register %g2, #scratch" > conftest.s
9071 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9072 gcc_cv_as_register_pseudo_op
=yes
9074 gcc_cv_as_register_pseudo_op
=no
9076 rm -f conftest.s conftest.o
9081 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9082 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9083 cat >> confdefs.h
<<\EOF
9084 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9089 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9090 echo "configure:9091: checking assembler supports -relax" >&5
9091 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9095 gcc_cv_as_relax_opt
=unknown
9096 if test x
$gcc_cv_as != x
; then
9097 # Check if gas supports -relax
9098 echo ".text" > conftest.s
9099 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9100 gcc_cv_as_relax_opt
=yes
9102 gcc_cv_as_relax_opt
=no
9104 rm -f conftest.s conftest.o
9109 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9110 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9111 cat >> confdefs.h
<<\EOF
9112 #define HAVE_AS_RELAX_OPTION 1
9119 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9120 echo "configure:9121: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9121 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9125 if test -n "$gcc_cv_as"; then
9126 echo ".xword foo" > conftest.s
9127 gcc_cv_as_flags64
=no
9128 for flag
in "-xarch=v9" "-64 -Av9"; do
9129 if $gcc_cv_as $flag -o conftest.o conftest.s \
9130 > /dev
/null
2>&1; then
9131 gcc_cv_as_flags64
=$flag
9135 rm -f conftest.s conftest.o
9137 if test "$gas" = yes; then
9138 gcc_cv_as_flags64
="-64 -Av9"
9140 gcc_cv_as_flags64
="-xarch=v9"
9146 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9147 if test "x$gcc_cv_as_flags64" = xno
; then
9149 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9150 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9153 cat >> confdefs.h
<<EOF
9154 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9159 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9163 if test "x$gcc_cv_as_flags64" != xno
; then
9164 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9165 echo "configure:9166: checking for assembler offsetable %lo() support" >&5
9166 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9170 gcc_cv_as_offsetable_lo10
=unknown
9171 if test "x$gcc_cv_as" != x
; then
9172 # Check if assembler has offsetable %lo()
9173 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9174 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9175 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9177 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9178 > /dev
/null
2>&1; then
9179 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9180 gcc_cv_as_offsetable_lo10
=no
9182 gcc_cv_as_offsetable_lo10
=yes
9185 gcc_cv_as_offsetable_lo10
=no
9187 rm -f conftest.s conftest.o conftest1.s conftest1.o
9192 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9193 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9194 cat >> confdefs.h
<<\EOF
9195 #define HAVE_AS_OFFSETABLE_LO10 1
9203 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9204 echo "configure:9205: checking assembler instructions" >&5
9205 gcc_cv_as_instructions
=
9206 if test x
$gcc_cv_as != x
; then
9207 set "filds fists" "filds mem; fists mem"
9210 echo "$2" > conftest.s
9211 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9212 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9213 cat >> confdefs.h
<<EOF
9214 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9220 rm -f conftest.s conftest.o
9222 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9226 # Figure out what language subdirectories are present.
9227 # Look if the user specified --enable-languages="..."; if not, use
9228 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9230 if test x
"${enable_languages+set}" != xset
; then
9231 if test x
"${LANGUAGES+set}" = xset
; then
9232 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9234 enable_languages
=all
9237 if test x
"${enable_languages}" = x
; then
9238 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9242 for lang
in ${srcdir}/*/config-lang.
in ..
9246 # The odd quoting in the next line works around
9247 # an apparent bug in bash 1.12 on linux.
9248 ${srcdir}/[*]/config-lang.
in) ;;
9250 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9251 if test "x$lang_alias" = x
9253 echo "$lang doesn't set \$language." 1>&2
9256 if test x
"${enable_languages}" = xall
; then
9259 case "${enable_languages}" in
9260 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9268 if test x"${add_this_lang}" = xyes; then
9270 ${srcdir}/ada/config-lang.in)
9271 if test x$gnat = xyes ; then
9272 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9276 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9284 # Make gthr-default.h if we have a thread file.
9286 if test $thread_file != single; then
9287 rm -f gthr-default.h
9288 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9289 gthread_flags
=-DHAVE_GTHR_DEFAULT
9293 # Find out what GC implementation we want, or may, use.
9294 # Check whether --with-gc or --without-gc was given.
9295 if test "${with_gc+set}" = set; then
9302 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9306 if test $ac_cv_func_mmap_anywhere = yes \
9307 ||
test $ac_cv_func_valloc = yes; then
9315 echo "Using $GGC for garbage collection."
9317 # Build a new-abi (c++) system
9318 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9319 if test "${enable_new_gxx_abi+set}" = set; then
9320 enableval
="$enable_new_gxx_abi"
9321 cat >> confdefs.h
<<\EOF
9322 #define ENABLE_NEW_GXX_ABI 1
9325 GXX_ABI_FLAG
='-fnew-abi'
9326 echo "Building a new-abi g++ compiler."
9332 # Build a new-libstdc++ system (ie libstdc++-v3)
9333 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9334 echo "configure:9335: checking for libstdc++ to install" >&5
9335 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9336 if test "${enable_libstdcxx_v3+set}" = set; then
9337 enableval
="$enable_libstdcxx_v3"
9338 enable_libstdcxx_v3
=yes
9340 enable_libstdcxx_v3
=no
9344 if test x
$enable_libstdcxx_v3 = xyes
; then
9345 echo "$ac_t""v3" 1>&6
9348 echo "$ac_t""v2" 1>&6
9351 cat >> confdefs.h
<<EOF
9352 #define ENABLE_STD_NAMESPACE $ac_esn
9357 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9358 echo "configure:9359: checking whether to enable maintainer-specific portions of Makefiles" >&5
9359 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9360 if test "${enable_maintainer_mode+set}" = set; then
9361 enableval
="$enable_maintainer_mode"
9362 maintainer_mode
=$enableval
9368 echo "$ac_t""$maintainer_mode" 1>&6
9370 if test "$maintainer_mode" = "yes"; then
9376 # Make empty files to contain the specs and options for each language.
9377 # Then add #include lines to for a compiler that has specs and/or options.
9382 rm -f specs.h options.h gencheck.h
9383 touch specs.h options.h gencheck.h
9384 for subdir
in .
$subdirs
9386 if test -f $srcdir/$subdir/lang-specs.h
; then
9387 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9388 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9390 if test -f $srcdir/$subdir/lang-options.h
; then
9391 echo "#include \"$subdir/lang-options.h\"" >>options.h
9392 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9394 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9395 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9396 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9400 # These (without "all_") are set in each config-lang.in.
9401 # `language' must be a single word so is spelled singularly.
9407 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9408 # List of language makefile fragments.
9413 # Add the language fragments.
9414 # Languages are added via two mechanisms. Some information must be
9415 # recorded in makefile variables, these are defined in config-lang.in.
9416 # We accumulate them and plug them into the main Makefile.
9417 # The other mechanism is a set of hooks for each of the main targets
9418 # like `clean', `install', etc.
9420 language_fragments
="Make-lang"
9421 language_hooks
="Make-hooks"
9424 for s
in ..
$subdirs
9436 .
${srcdir}/$s/config-lang.
in
9437 if test "x$language" = x
9439 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9442 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9443 all_languages
="$all_languages $language"
9444 if test "x$boot_language" = xyes
9446 all_boot_languages
="$all_boot_languages $language"
9448 all_compilers
="$all_compilers $compilers"
9449 all_stagestuff
="$all_stagestuff $stagestuff"
9450 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9451 all_headers
="$all_headers $headers"
9452 all_outputs
="$all_outputs $outputs"
9453 if test x
$outputs = x
9455 oldstyle_subdirs
="$oldstyle_subdirs $s"
9457 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9461 # Since we can't use `::' targets, we link each language in
9462 # with a set of hooks, reached indirectly via lang.${target}.
9466 target_list
="all.build all.cross start.encap rest.encap \
9468 install-normal install-common install-info install-man \
9470 mostlyclean clean distclean extraclean maintainer-clean \
9471 stage1 stage2 stage3 stage4"
9472 for t
in $target_list
9475 for lang
in ..
$all_languages
9477 if test $lang != ".."; then
9481 echo "lang.$t: $x" >> Make-hooks
9484 # If we're not building in srcdir, create .gdbinit.
9486 if test ! -f Makefile.
in; then
9487 echo "dir ." > .gdbinit
9488 echo "dir ${srcdir}" >> .gdbinit
9489 if test x
$gdb_needs_out_file_path = xyes
9491 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9493 if test "x$subdirs" != x
; then
9496 echo "dir ${srcdir}/$s" >> .gdbinit
9499 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9502 # Define variables host_canonical and build_canonical
9503 # because some Cygnus local changes in the Makefile depend on them.
9504 build_canonical
=${build}
9505 host_canonical
=${host}
9507 if test "${host}" != "${target}" ; then
9508 target_subdir
=${target}/
9514 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9515 # absolute path for gcc_tooldir based on inserting the number of up-directory
9516 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9517 # $(libsubdir)/@(unlibsubdir) based path.
9518 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9519 # make and thus we'd get different behavior depending on where we built the
9521 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9522 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9524 # An explanation of the sed strings:
9525 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9526 # -e 's|/$||' match a trailing forward slash and eliminates it
9527 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9528 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9530 # (*) Note this pattern overwrites the first character of the string
9531 # with a forward slash if one is not already present. This is not a
9532 # problem because the exact names of the sub-directories concerned is
9533 # unimportant, just the number of them matters.
9535 # The practical upshot of these patterns is like this:
9537 # prefix exec_prefix result
9538 # ------ ----------- ------
9540 # /foo/ /foo/bar ../
9541 # /foo /foo/bar/ ../
9542 # /foo/ /foo/bar/ ../
9543 # /foo /foo/bar/ugg ../../
9546 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9551 # Nothing to do for FLOAT_H, float_format already handled.
9555 # Process the language and host/target makefile fragments.
9556 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9558 # Substitute configuration variables
9617 # Echo that links are built
9618 if test x
$host = x
$target
9626 if test x
$host != x
$build
9628 str3
=" on a $build system"
9631 if test "x$str2" != x ||
test "x$str3" != x
9636 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9638 if test "x$str2" != x ||
test "x$str3" != x
9640 echo " ${str2}${str3}." 1>&2
9643 # Truncate the target if necessary
9644 if test x
$host_truncate_target != x
; then
9645 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9648 # Configure the subdirectories
9649 # AC_CONFIG_SUBDIRS($subdirs)
9651 # Create the Makefile
9652 # and configure language subdirectories
9654 cat > confcache
<<\EOF
9655 # This file is a shell script that caches the results of configure
9656 # tests run on this system so they can be shared between configure
9657 # scripts and configure runs. It is not useful on other systems.
9658 # If it contains results you don't want to keep, you may remove or edit it.
9660 # By default, configure uses ./config.cache as the cache file,
9661 # creating it if it does not exist already. You can give configure
9662 # the --cache-file=FILE option to use a different cache file; that is
9663 # what configure does when it calls configure scripts in
9664 # subdirectories, so they share the cache.
9665 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9666 # config.status only pays attention to the cache file if you give it the
9667 # --recheck option to rerun configure.
9670 # The following way of writing the cache mishandles newlines in values,
9671 # but we know of no workaround that is simple, portable, and efficient.
9672 # So, don't put newlines in cache variables' values.
9673 # Ultrix sh set writes to stderr and can't be redirected directly,
9674 # and sets the high bit in the cache file unless we assign to the vars.
9676 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9678 # `set' does not quote correctly, so add quotes (double-quote substitution
9679 # turns \\\\ into \\, and sed turns \\ into \).
9681 -e "s/'/'\\\\''/g" \
9682 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9685 # `set' quotes correctly as required by POSIX, so do not add quotes.
9686 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9689 if cmp -s $cache_file confcache
; then
9692 if test -w $cache_file; then
9693 echo "updating cache $cache_file"
9694 cat confcache
> $cache_file
9696 echo "not updating unwritable cache $cache_file"
9701 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9703 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9704 # Let make expand exec_prefix.
9705 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9707 # Any assignment to VPATH causes Sun make to only execute
9708 # the first set of double-colon rules, so remove it if not needed.
9709 # If there is a colon in the path, we need to keep it.
9710 if test "x$srcdir" = x.
; then
9711 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9714 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9716 DEFS
=-DHAVE_CONFIG_H
9718 # Without the "./", some shells look in PATH for config.status.
9719 : ${CONFIG_STATUS=./config.status}
9721 echo creating
$CONFIG_STATUS
9722 rm -f $CONFIG_STATUS
9723 cat > $CONFIG_STATUS <<EOF
9725 # Generated automatically by configure.
9726 # Run this file to recreate the current configuration.
9727 # This directory was configured as follows,
9728 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9730 # $0 $ac_configure_args
9732 # Compiler output produced by configure, useful for debugging
9733 # configure, is in ./config.log if it exists.
9735 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9738 case "\$ac_option" in
9739 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9740 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9741 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9742 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9743 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9745 -help | --help | --hel | --he | --h)
9746 echo "\$ac_cs_usage"; exit 0 ;;
9747 *) echo "\$ac_cs_usage"; exit 1 ;;
9751 ac_given_srcdir=$srcdir
9753 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9755 cat >> $CONFIG_STATUS <<EOF
9757 # Protect against being on the right side of a sed subst in config.status.
9758 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9759 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9763 s%@CFLAGS@%$CFLAGS%g
9764 s%@CPPFLAGS@%$CPPFLAGS%g
9765 s%@CXXFLAGS@%$CXXFLAGS%g
9766 s%@FFLAGS@%$FFLAGS%g
9768 s%@LDFLAGS@%$LDFLAGS%g
9770 s%@exec_prefix@%$exec_prefix%g
9771 s%@prefix@%$prefix%g
9772 s%@program_transform_name@%$program_transform_name%g
9773 s%@bindir@%$bindir%g
9774 s%@sbindir@%$sbindir%g
9775 s%@libexecdir@%$libexecdir%g
9776 s%@datadir@%$datadir%g
9777 s%@sysconfdir@%$sysconfdir%g
9778 s%@sharedstatedir@%$sharedstatedir%g
9779 s%@localstatedir@%$localstatedir%g
9780 s%@libdir@%$libdir%g
9781 s%@includedir@%$includedir%g
9782 s%@oldincludedir@%$oldincludedir%g
9783 s%@infodir@%$infodir%g
9784 s%@mandir@%$mandir%g
9786 s%@host_alias@%$host_alias%g
9787 s%@host_cpu@%$host_cpu%g
9788 s%@host_vendor@%$host_vendor%g
9789 s%@host_os@%$host_os%g
9790 s%@target@%$target%g
9791 s%@target_alias@%$target_alias%g
9792 s%@target_cpu@%$target_cpu%g
9793 s%@target_vendor@%$target_vendor%g
9794 s%@target_os@%$target_os%g
9796 s%@build_alias@%$build_alias%g
9797 s%@build_cpu@%$build_cpu%g
9798 s%@build_vendor@%$build_vendor%g
9799 s%@build_os@%$build_os%g
9801 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9802 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9803 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9804 s%@SET_MAKE@%$SET_MAKE%g
9807 s%@LEXLIB@%$LEXLIB%g
9810 s%@RANLIB@%$RANLIB%g
9812 s%@INSTALL@%$INSTALL%g
9813 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9814 s%@INSTALL_DATA@%$INSTALL_DATA%g
9817 s%@MAKEINFO@%$MAKEINFO%g
9818 s%@BUILD_INFO@%$BUILD_INFO%g
9819 s%@INSTALL_INFO@%$INSTALL_INFO%g
9820 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9821 s%@vfprintf@%$vfprintf%g
9822 s%@doprint@%$doprint%g
9823 s%@manext@%$manext%g
9824 s%@objext@%$objext%g
9825 s%@PACKAGE@%$PACKAGE%g
9826 s%@VERSION@%$VERSION%g
9827 s%@ALLOCA@%$ALLOCA%g
9828 s%@USE_NLS@%$USE_NLS%g
9829 s%@MSGFMT@%$MSGFMT%g
9830 s%@GMSGFMT@%$GMSGFMT%g
9831 s%@XGETTEXT@%$XGETTEXT%g
9832 s%@GENCAT@%$GENCAT%g
9833 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9834 s%@CATALOGS@%$CATALOGS%g
9835 s%@CATOBJEXT@%$CATOBJEXT%g
9836 s%@DATADIRNAME@%$DATADIRNAME%g
9837 s%@GMOFILES@%$GMOFILES%g
9838 s%@INSTOBJEXT@%$INSTOBJEXT%g
9839 s%@INTLDEPS@%$INTLDEPS%g
9840 s%@INTLLIBS@%$INTLLIBS%g
9841 s%@INTLOBJS@%$INTLOBJS%g
9842 s%@POFILES@%$POFILES%g
9844 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9846 s%@GT_YES@%$GT_YES%g
9847 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9849 s%@inhibit_libc@%$inhibit_libc%g
9850 s%@gthread_flags@%$gthread_flags%g
9852 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9854 s%@build_canonical@%$build_canonical%g
9855 s%@host_canonical@%$host_canonical%g
9856 s%@target_subdir@%$target_subdir%g
9857 s%@gcc_tooldir@%$gcc_tooldir%g
9858 s%@dollar@%$dollar%g
9859 s%@objdir@%$objdir%g
9860 s%@subdirs@%$subdirs%g
9861 s%@all_boot_languages@%$all_boot_languages%g
9862 s%@all_compilers@%$all_compilers%g
9863 s%@all_diff_excludes@%$all_diff_excludes%g
9864 s%@all_headers@%$all_headers%g
9865 s%@all_lang_makefiles@%$all_lang_makefiles%g
9866 s%@all_languages@%$all_languages%g
9867 s%@all_lib2funcs@%$all_lib2funcs%g
9868 s%@all_stagestuff@%$all_stagestuff%g
9869 s%@build_exeext@%$build_exeext%g
9870 s%@build_install_headers_dir@%$build_install_headers_dir%g
9871 s%@build_xm_file_list@%$build_xm_file_list%g
9872 s%@cc_set_by_configure@%$cc_set_by_configure%g
9873 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9874 s%@cpp_install_dir@%$cpp_install_dir%g
9875 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9876 s%@dep_tmake_file@%$dep_tmake_file%g
9877 s%@extra_c_flags@%$extra_c_flags%g
9878 s%@extra_c_objs@%$extra_c_objs%g
9879 s%@extra_cpp_objs@%$extra_cpp_objs%g
9880 s%@extra_cxx_objs@%$extra_cxx_objs%g
9881 s%@extra_headers_list@%$extra_headers_list%g
9882 s%@extra_objs@%$extra_objs%g
9883 s%@extra_parts@%$extra_parts%g
9884 s%@extra_passes@%$extra_passes%g
9885 s%@extra_programs@%$extra_programs%g
9886 s%@float_h_file@%$float_h_file%g
9887 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9888 s%@gcc_version@%$gcc_version%g
9889 s%@gcc_version_trigger@%$gcc_version_trigger%g
9890 s%@host_exeext@%$host_exeext%g
9891 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9892 s%@host_xm_file_list@%$host_xm_file_list%g
9893 s%@install@%$install%g
9894 s%@lang_options_files@%$lang_options_files%g
9895 s%@lang_specs_files@%$lang_specs_files%g
9896 s%@lang_tree_files@%$lang_tree_files%g
9897 s%@local_prefix@%$local_prefix%g
9898 s%@maybe_use_collect2@%$maybe_use_collect2%g
9899 s%@md_file@%$md_file%g
9900 s%@objc_boehm_gc@%$objc_boehm_gc%g
9901 s%@out_file@%$out_file%g
9902 s%@out_object_file@%$out_object_file%g
9903 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9904 s%@symbolic_link@%$symbolic_link%g
9905 s%@thread_file@%$thread_file%g
9906 s%@tm_file_list@%$tm_file_list%g
9907 s%@will_use_collect2@%$will_use_collect2%g
9908 /@target_overrides@/r $target_overrides
9909 s%@target_overrides@%%g
9910 /@host_overrides@/r $host_overrides
9911 s%@host_overrides@%%g
9912 s%@cross_defines@%$cross_defines%g
9913 /@cross_overrides@/r $cross_overrides
9914 s%@cross_overrides@%%g
9915 /@build_overrides@/r $build_overrides
9916 s%@build_overrides@%%g
9917 /@language_fragments@/r $language_fragments
9918 s%@language_fragments@%%g
9919 /@language_hooks@/r $language_hooks
9920 s%@language_hooks@%%g
9925 cat >> $CONFIG_STATUS <<\EOF
9927 # Split the substitutions into bite-sized pieces for seds with
9928 # small command number limits, like on Digital OSF/1 and HP-UX.
9929 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9930 ac_file
=1 # Number of current file.
9931 ac_beg
=1 # First line for current file.
9932 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9935 while $ac_more_lines; do
9936 if test $ac_beg -gt 1; then
9937 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9939 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9941 if test ! -s conftest.s
$ac_file; then
9943 rm -f conftest.s
$ac_file
9945 if test -z "$ac_sed_cmds"; then
9946 ac_sed_cmds
="sed -f conftest.s$ac_file"
9948 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9950 ac_file
=`expr $ac_file + 1`
9952 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9955 if test -z "$ac_sed_cmds"; then
9960 cat >> $CONFIG_STATUS <<EOF
9962 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9964 cat >> $CONFIG_STATUS <<\EOF
9965 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9966 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9968 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9969 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9970 *) ac_file_in
="${ac_file}.in" ;;
9973 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9975 # Remove last slash and all that follows it. Not all systems have dirname.
9976 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9977 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9978 # The file is in a subdirectory.
9979 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9980 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9981 # A "../" for each directory in $ac_dir_suffix.
9982 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9984 ac_dir_suffix
= ac_dots
=
9987 case "$ac_given_srcdir" in
9989 if test -z "$ac_dots"; then top_srcdir
=.
9990 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9991 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9993 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9994 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9998 echo creating
"$ac_file"
10000 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10002 *Makefile
*) ac_comsub
="1i\\
10003 # $configure_input" ;;
10007 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10009 s%@configure_input@%$configure_input%g
10010 s%@srcdir@%$srcdir%g
10011 s%@top_srcdir@%$top_srcdir%g
10012 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10016 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10017 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10019 # ac_d sets the value in "#define NAME VALUE" lines.
10020 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10021 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10024 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10025 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10026 ac_uB
='\([ ]\)%\1#\2define\3'
10029 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10030 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10031 ac_eB
='$%\1#\2define\3'
10035 if test "${CONFIG_HEADERS+set}" != set; then
10037 cat >> $CONFIG_STATUS <<EOF
10038 CONFIG_HEADERS="auto-host.h:config.in"
10040 cat >> $CONFIG_STATUS <<\EOF
10042 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10043 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10045 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10046 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10047 *) ac_file_in
="${ac_file}.in" ;;
10050 echo creating
$ac_file
10052 rm -f conftest.frag conftest.
in conftest.out
10053 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10054 cat $ac_file_inputs > conftest.
in
10058 # Transform confdefs.h into a sed script conftest.vals that substitutes
10059 # the proper values into config.h.in to produce config.h. And first:
10060 # Protect against being on the right side of a sed subst in config.status.
10061 # Protect against being in an unquoted here document in config.status.
10062 rm -f conftest.vals
10063 cat > conftest.hdr
<<\EOF
10066 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10070 sed -n -f conftest.hdr confdefs.h > conftest.vals
10073 # This sed command replaces #undef with comments. This is necessary, for
10074 # example, in the case of _POSIX_SOURCE, which is predefined and required
10075 # on some systems where configure will not decide to define it.
10076 cat >> conftest.vals <<\EOF
10077 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10080 # Break up conftest.vals because some shells have a limit on
10081 # the size of here documents, and old seds have small limits too.
10083 rm -f conftest.tail
10086 ac_lines=`grep -c . conftest.vals
`
10087 # grep -c gives empty output for an empty file on some AIX systems.
10088 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10089 # Write a limited-size here document to conftest.frag.
10090 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10091 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10093 sed -f conftest.frag conftest.in > conftest.out
10095 mv conftest.out conftest.in
10096 ' >> $CONFIG_STATUS
10097 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10098 rm -f conftest.vals
10099 mv conftest.tail conftest.vals
10101 rm -f conftest.vals
10103 cat >> $CONFIG_STATUS <<\EOF
10104 rm -f conftest.frag conftest.h
10105 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10106 cat conftest.in >> conftest.h
10108 if cmp -s $ac_file conftest.h 2>/dev/null; then
10109 echo "$ac_file is unchanged"
10112 # Remove last slash and all that follows it. Not all systems have dirname.
10113 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10114 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10115 # The file is in a subdirectory.
10116 test ! -d "$ac_dir" && mkdir "$ac_dir"
10119 mv conftest.h $ac_file
10125 cat >> $CONFIG_STATUS <<EOF
10126 ac_sources="$nls_cv_header_libgt"
10127 ac_dests="$nls_cv_header_intl"
10130 cat >> $CONFIG_STATUS <<\EOF
10131 srcdir=$ac_given_srcdir
10132 while test -n "$ac_sources"; do
10133 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10134 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10136 echo "linking $srcdir/$ac_source to $ac_dest"
10138 if test ! -r $srcdir/$ac_source; then
10139 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10143 # Make relative symlinks.
10144 # Remove last slash and all that follows it. Not all systems have dirname.
10145 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10146 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10147 # The dest file is in a subdirectory.
10148 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10149 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10150 # A "../" for each directory in $ac_dest_dir_suffix.
10151 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10153 ac_dest_dir_suffix= ac_dots=
10157 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10158 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10161 # Make a symlink if possible; otherwise try a hard link.
10162 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10163 ln $srcdir/$ac_source $ac_dest; then :
10165 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10169 cat >> $CONFIG_STATUS <<EOF
10175 target_alias='${target_alias}'
10177 subdirs='${subdirs}'
10178 oldstyle_subdirs='${oldstyle_subdirs}'
10179 symbolic_link='${symbolic_link}'
10180 program_transform_set='${program_transform_set}'
10181 program_transform_name='${program_transform_name}'
10182 dep_host_xmake_file='${dep_host_xmake_file}'
10183 host_xmake_file='${host_xmake_file}'
10184 dep_tmake_file='${dep_tmake_file}'
10185 tmake_file='${tmake_file}'
10186 thread_file='${thread_file}'
10187 gcc_version='${gcc_version}'
10188 gcc_version_trigger='${gcc_version_trigger}'
10189 local_prefix='${local_prefix}'
10190 build_install_headers_dir='${build_install_headers_dir}'
10191 build_exeext='${build_exeext}'
10192 host_exeext='${host_exeext}'
10193 out_file='${out_file}'
10194 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10195 SET_MAKE='${SET_MAKE}'
10196 target_list='${target_list}'
10197 target_overrides='${target_overrides}'
10198 host_overrides='${host_overrides}'
10199 cross_defines='${cross_defines}'
10200 cross_overrides='${cross_overrides}'
10201 build_overrides='${build_overrides}'
10202 cpp_install_dir='${cpp_install_dir}'
10205 cat >> $CONFIG_STATUS <<\EOF
10206 case "$CONFIG_FILES" in *po/Makefile.in*)
10207 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10210 . $srcdir/configure.lang
10211 case x$CONFIG_HEADERS in
10212 xauto-host.h:config.in)
10215 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10216 # bootstrapping and the installation procedure can still use
10217 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10218 # FLAGS_TO_PASS has been modified to solve the problem there.
10219 # This is virtually a duplicate of what happens in configure.lang; we do
10220 # an extra check to make sure this only happens if ln -s can be used.
10221 if test "$symbolic_link" = "ln -s"; then
10222 for d in .. ${subdirs} ; do
10223 if test $d != ..; then
10226 for t in stage1 stage2 stage3 stage4 include
10229 $symbolic_link ../$t $t 2>/dev/null
10235 # Avoid having to add intl to our include paths.
10236 if test -f intl/libintl.h; then
10237 echo creating libintl.h
10238 echo '#include "intl/libintl.h"' >libintl.h
10243 chmod +x $CONFIG_STATUS
10244 rm -fr confdefs* $ac_clean_files
10245 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1