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-cpplib link cpplib directly into C and C++ compilers
45 (HIGHLY EXPERIMENTAL)."
47 --enable-c-mbchar Enable multibyte characters for C and C++."
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 --with-dwarf2 force the default debug format to be DWARF2."
57 --enable-nls use Native Language Support (default)"
59 --disable-nls do not use Native Language Support"
61 --with-included-gettext use the GNU gettext library included here"
63 --with-catgets use catgets functions if available"
65 --disable-win32-registry
66 Disable lookup of installation paths in the
67 Registry on Windows hosts.
68 --enable-win32-registry Enable registry lookup (default).
69 --enable-win32-registry=KEY
70 Use KEY instead of GCC version as the last portion
73 --with-gc={simple,page} Choose the garbage collection mechanism to use
77 select the new abi for g++. You must select an ABI
78 at configuration time, so that the correct runtime
79 support is built. You cannot mix ABIs."
82 enable libstdc++-v3 for building and installation"
84 --enable-maintainer-mode enable make rules and dependencies not useful
85 (and sometimes confusing) to the casual installer"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
108 bindir
='${exec_prefix}/bin'
109 sbindir
='${exec_prefix}/sbin'
110 libexecdir
='${exec_prefix}/libexec'
111 datadir
='${prefix}/share'
112 sysconfdir
='${prefix}/etc'
113 sharedstatedir
='${prefix}/com'
114 localstatedir
='${prefix}/var'
115 libdir
='${exec_prefix}/lib'
116 includedir
='${prefix}/include'
117 oldincludedir
='/usr/include'
118 infodir
='${prefix}/info'
119 mandir
='${prefix}/man'
121 # Initialize some other variables.
124 SHELL
=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
150 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
151 bindir
="$ac_optarg" ;;
153 -build |
--build |
--buil |
--bui |
--bu)
155 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
156 build
="$ac_optarg" ;;
158 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
159 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
160 ac_prev
=cache_file
;;
161 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
162 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
163 cache_file
="$ac_optarg" ;;
165 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
167 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
169 datadir
="$ac_optarg" ;;
171 -disable-* |
--disable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* |
--enable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
194 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
195 |
--exec |
--exe |
--ex)
196 ac_prev
=exec_prefix
;;
197 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
198 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
199 |
--exec=* |
--exe=* |
--ex=*)
200 exec_prefix
="$ac_optarg" ;;
202 -gas |
--gas |
--ga |
--g)
203 # Obsolete; use --with-gas.
206 -help |
--help |
--hel |
--he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host |
--host |
--hos |
--ho)
263 -host=* |
--host=* |
--hos=* |
--ho=*)
266 -includedir |
--includedir |
--includedi |
--included |
--include \
267 |
--includ |
--inclu |
--incl |
--inc)
268 ac_prev
=includedir
;;
269 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
270 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
271 includedir
="$ac_optarg" ;;
273 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
275 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
276 infodir
="$ac_optarg" ;;
278 -libdir |
--libdir |
--libdi |
--libd)
280 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
281 libdir
="$ac_optarg" ;;
283 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
284 |
--libexe |
--libex |
--libe)
285 ac_prev
=libexecdir
;;
286 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
287 |
--libexe=* |
--libex=* |
--libe=*)
288 libexecdir
="$ac_optarg" ;;
290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
291 |
--localstate |
--localstat |
--localsta |
--localst \
292 |
--locals |
--local |
--loca |
--loc |
--lo)
293 ac_prev
=localstatedir
;;
294 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
295 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
296 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
297 localstatedir
="$ac_optarg" ;;
299 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
301 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
302 mandir
="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
312 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
313 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
316 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
317 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
318 |
--oldin |
--oldi |
--old |
--ol |
--o)
319 ac_prev
=oldincludedir
;;
320 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
321 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
322 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
323 oldincludedir
="$ac_optarg" ;;
325 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
327 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
328 prefix
="$ac_optarg" ;;
330 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
331 |
--program-pre |
--program-pr |
--program-p)
332 ac_prev
=program_prefix
;;
333 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
334 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
335 program_prefix
="$ac_optarg" ;;
337 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
338 |
--program-suf |
--program-su |
--program-s)
339 ac_prev
=program_suffix
;;
340 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
341 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
342 program_suffix
="$ac_optarg" ;;
344 -program-transform-name |
--program-transform-name \
345 |
--program-transform-nam |
--program-transform-na \
346 |
--program-transform-n |
--program-transform- \
347 |
--program-transform |
--program-transfor \
348 |
--program-transfo |
--program-transf \
349 |
--program-trans |
--program-tran \
350 |
--progr-tra |
--program-tr |
--program-t)
351 ac_prev
=program_transform_name
;;
352 -program-transform-name=* |
--program-transform-name=* \
353 |
--program-transform-nam=* |
--program-transform-na=* \
354 |
--program-transform-n=* |
--program-transform-=* \
355 |
--program-transform=* |
--program-transfor=* \
356 |
--program-transfo=* |
--program-transf=* \
357 |
--program-trans=* |
--program-tran=* \
358 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
359 program_transform_name
="$ac_optarg" ;;
361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
362 |
-silent |
--silent |
--silen |
--sile |
--sil)
365 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
367 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
369 sbindir
="$ac_optarg" ;;
371 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
372 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
373 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
375 ac_prev
=sharedstatedir
;;
376 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
377 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
378 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
380 sharedstatedir
="$ac_optarg" ;;
382 -site |
--site |
--sit)
384 -site=* |
--site=* |
--sit=*)
387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
390 srcdir
="$ac_optarg" ;;
392 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
393 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
394 ac_prev
=sysconfdir
;;
395 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
396 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
397 sysconfdir
="$ac_optarg" ;;
399 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
401 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
402 target
="$ac_optarg" ;;
404 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
407 -version |
--version |
--versio |
--versi |
--vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* |
--without-*)
425 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
438 |
--x-incl |
--x-inc |
--x-in |
--x-i)
439 ac_prev
=x_includes
;;
440 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
441 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
442 x_includes
="$ac_optarg" ;;
444 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
445 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
446 ac_prev
=x_libraries
;;
447 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
448 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
449 x_libraries
="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE
; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
500 |
--no-cr |
--no-c) ;;
501 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
502 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
503 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest
* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file
=tree.c
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted
=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted
=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE
; then
554 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file
in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp
='$CPP $CPPFLAGS'
577 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling
=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
592 ac_n
= ac_c
='\c' ac_t
=
600 symbolic_link
='ln -s'
603 # Check for bogus environment variables.
604 # Test if LIBRARY_PATH contains the notation for the current directory
605 # since this would lead to problems installing/building glibc.
606 # LIBRARY_PATH contains the current directory if one of the following
608 # - one of the terminals (":" and ";") is the first or last sign
609 # - two terminals occur directly after each other
610 # - the path contains an element with a dot in it
611 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
612 echo "configure:613: checking LIBRARY_PATH variable" >&5
613 case ${LIBRARY_PATH} in
614 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
615 library_path_setting
="contains current directory"
618 library_path_setting
="ok"
621 echo "$ac_t""$library_path_setting" 1>&6
622 if test "$library_path_setting" != "ok"; then
623 { echo "configure: error:
624 *** LIBRARY_PATH shouldn't contain the current directory when
625 *** building gcc. Please change the environment variable
626 *** and run configure again." 1>&2; exit 1; }
629 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
630 # since this would lead to problems installing/building glibc.
631 # GCC_EXEC_PREFIX contains the current directory if one of the following
633 # - one of the terminals (":" and ";") is the first or last sign
634 # - two terminals occur directly after each other
635 # - the path contains an element with a dot in it
636 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
637 echo "configure:638: checking GCC_EXEC_PREFIX variable" >&5
638 case ${GCC_EXEC_PREFIX} in
639 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
640 gcc_exec_prefix_setting
="contains current directory"
643 gcc_exec_prefix_setting
="ok"
646 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
647 if test "$gcc_exec_prefix_setting" != "ok"; then
648 { echo "configure: error:
649 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
650 *** building gcc. Please change the environment variable
651 *** and run configure again." 1>&2; exit 1; }
654 # Check for additional parameters
657 # Check whether --with-gnu-ld or --without-gnu-ld was given.
658 if test "${with_gnu_ld+set}" = set; then
659 withval
="$with_gnu_ld"
660 gnu_ld_flag
="$with_gnu_ld"
666 # With pre-defined ld
667 # Check whether --with-ld or --without-ld was given.
668 if test "${with_ld+set}" = set; then
670 DEFAULT_LINKER
="$with_ld"
673 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
674 if test ! -x "$DEFAULT_LINKER"; then
675 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
676 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
679 cat >> confdefs.h
<<EOF
680 #define DEFAULT_LINKER "$DEFAULT_LINKER"
686 # Check whether --with-gnu-as or --without-gnu-as was given.
687 if test "${with_gnu_as+set}" = set; then
688 withval
="$with_gnu_as"
689 gas_flag
="$with_gnu_as"
695 # Check whether --with-as or --without-as was given.
696 if test "${with_as+set}" = set; then
698 DEFAULT_ASSEMBLER
="$with_as"
701 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
702 if test ! -x "$DEFAULT_ASSEMBLER"; then
703 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
704 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
707 cat >> confdefs.h
<<EOF
708 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
714 # Check whether --with-stabs or --without-stabs was given.
715 if test "${with_stabs+set}" = set; then
716 withval
="$with_stabs"
724 # Check whether --with-elf or --without-elf was given.
725 if test "${with_elf+set}" = set; then
733 # Specify the local prefix
735 # Check whether --with-local-prefix or --without-local-prefix was given.
736 if test "${with_local_prefix+set}" = set; then
737 withval
="$with_local_prefix"
739 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
741 *) local_prefix
=$with_local_prefix ;;
746 # Default local prefix if it is empty
747 if test x
$local_prefix = x
; then
748 local_prefix
=/usr
/local
751 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
752 # passed in by the toplevel make and thus we'd get different behavior
753 # depending on where we built the sources.
755 # Specify the g++ header file directory
756 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
757 if test "${with_gxx_include_dir+set}" = set; then
758 withval
="$with_gxx_include_dir"
760 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
762 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
767 if test x
${gcc_gxx_include_dir} = x
; then
768 if test x
${enable_version_specific_runtime_libs} = xyes
; then
769 gcc_gxx_include_dir
='${libsubdir}/include/g++'
771 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
772 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
776 # Enable expensive internal checks
777 # Check whether --enable-checking or --disable-checking was given.
778 if test "${enable_checking+set}" = set; then
779 enableval
="$enable_checking"
784 ac_gc_always_collect
=
785 case "${enableval}" in
786 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
788 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
789 set fnord
$enableval; shift
794 misc
) ac_checking
=1 ;;
795 tree
) ac_tree_checking
=1 ;;
796 rtl
) ac_rtl_checking
=1 ;;
797 gc
) ac_gc_checking
=1 ;;
798 gcac
) ac_gc_always_collect
=1 ;;
799 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
806 # Enable some checks by default for development versions of GCC
807 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
810 if test x
$ac_checking != x
; then
811 cat >> confdefs.h
<<\EOF
812 #define ENABLE_CHECKING 1
816 if test x
$ac_tree_checking != x
; then
817 cat >> confdefs.h
<<\EOF
818 #define ENABLE_TREE_CHECKING 1
822 if test x
$ac_rtl_checking != x
; then
823 cat >> confdefs.h
<<\EOF
824 #define ENABLE_RTL_CHECKING 1
828 if test x
$ac_gc_checking != x
; then
829 cat >> confdefs.h
<<\EOF
830 #define ENABLE_GC_CHECKING 1
834 if test x
$ac_gc_always_collect != x
; then
835 cat >> confdefs.h
<<\EOF
836 #define ENABLE_GC_ALWAYS_COLLECT 1
842 # Check whether --enable-cpp or --disable-cpp was given.
843 if test "${enable_cpp+set}" = set; then
844 enableval
="$enable_cpp"
851 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
852 if test "${with_cpp_install_dir+set}" = set; then
853 withval
="$with_cpp_install_dir"
854 if test x
$withval = xyes
; then
855 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
856 elif test x
$withval != xno
; then
857 cpp_install_dir
=$withval
862 # Link cpplib into the compiler proper, for C/C++/ObjC.
863 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
864 if test "${enable_c_cpplib+set}" = set; then
865 enableval
="$enable_c_cpplib"
866 if test x
$enable_c_cpplib != xno
; then
867 extra_c_objs
="${extra_c_objs} libcpp.a"
868 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
869 cat >> confdefs.h
<<\EOF
877 # Enable Multibyte Characters for C/C++
878 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
879 if test "${enable_c_mbchar+set}" = set; then
880 enableval
="$enable_c_mbchar"
881 if test x
$enable_c_mbchar != xno
; then
882 cat >> confdefs.h
<<\EOF
883 #define MULTIBYTE_CHARS 1
891 # Pass with no value to take the default
892 # Pass with a value to specify a thread package
893 # Check whether --enable-threads or --disable-threads was given.
894 if test "${enable_threads+set}" = set; then
895 enableval
="$enable_threads"
896 if test x
$enable_threads = xno
; then
904 enable_threads_flag
=$enable_threads
905 # Check if a valid thread package
906 case x
${enable_threads_flag} in
909 target_thread_file
='single'
913 target_thread_file
=''
915 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
916 xsolaris | xwin32 | xdce | xvxworks
)
917 target_thread_file
=$enable_threads_flag
920 echo "$enable_threads is an unknown thread package" 1>&2
925 # Check whether --enable-objc-gc or --disable-objc-gc was given.
926 if test "${enable_objc_gc+set}" = set; then
927 enableval
="$enable_objc_gc"
928 if test x
$enable_objc_gc = xno
; then
938 # Check whether --with-dwarf2 or --without-dwarf2 was given.
939 if test "${with_dwarf2+set}" = set; then
940 withval
="$with_dwarf2"
941 dwarf2
="$with_dwarf2"
947 # Determine the host, build, and target systems
949 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
950 if test -f $ac_dir/install-sh
; then
952 ac_install_sh
="$ac_aux_dir/install-sh -c"
954 elif test -f $ac_dir/install.sh
; then
956 ac_install_sh
="$ac_aux_dir/install.sh -c"
960 if test -z "$ac_aux_dir"; then
961 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963 ac_config_guess
=$ac_aux_dir/config.guess
964 ac_config_sub
=$ac_aux_dir/config.sub
965 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
968 # Do some error checking and defaulting for the host and target type.
970 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
973 # 1. You are not allowed to specify --host, --target, and nonopt at the
975 # 2. Host defaults to nonopt.
976 # 3. If nonopt is not specified, then host defaults to the current host,
977 # as determined by config.guess.
978 # 4. Target and build default to nonopt.
979 # 5. If nonopt is not specified, then target and build default to host.
981 # The aliases save the names the user supplied, while $host etc.
982 # will get canonicalized.
983 case $host---$target---$nonopt in
984 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
985 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
989 # Make sure we can run config.sub.
990 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
991 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
994 echo $ac_n "checking host system type""... $ac_c" 1>&6
995 echo "configure:996: checking host system type" >&5
998 case "$host_alias" in
1002 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1003 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 *) host_alias
=$nonopt ;;
1009 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1010 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1011 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1012 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013 echo "$ac_t""$host" 1>&6
1015 echo $ac_n "checking target system type""... $ac_c" 1>&6
1016 echo "configure:1017: checking target system type" >&5
1018 target_alias
=$target
1019 case "$target_alias" in
1022 NONE
) target_alias
=$host_alias ;;
1023 *) target_alias
=$nonopt ;;
1027 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1028 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031 echo "$ac_t""$target" 1>&6
1033 echo $ac_n "checking build system type""... $ac_c" 1>&6
1034 echo "configure:1035: checking build system type" >&5
1037 case "$build_alias" in
1040 NONE
) build_alias
=$host_alias ;;
1041 *) build_alias
=$nonopt ;;
1045 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1046 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$build" 1>&6
1051 test "$host_alias" != "$target_alias" &&
1052 test "$program_prefix$program_suffix$program_transform_name" = \
1054 program_prefix
=${target_alias}-
1057 # Find the native compiler
1058 # Extract the first word of "gcc", so it can be a program name with args.
1059 set dummy gcc
; ac_word
=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC
="$CC" # Let the user override the test.
1068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1070 for ac_dir
in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir
=.
1072 if test -f $ac_dir/$ac_word; then
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1084 echo "$ac_t""no" 1>&6
1087 if test -z "$CC"; then
1088 # Extract the first word of "cc", so it can be a program name with args.
1089 set dummy cc
; ac_word
=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$CC"; then
1096 ac_cv_prog_CC
="$CC" # Let the user override the test.
1098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1101 for ac_dir
in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir
=.
1103 if test -f $ac_dir/$ac_word; then
1104 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1105 ac_prog_rejected
=yes
1113 if test $ac_prog_rejected = yes; then
1114 # We found a bogon in the path, so make sure we never use it.
1115 set dummy
$ac_cv_prog_CC
1117 if test $# -gt 0; then
1118 # We chose a different compiler from the bogus one.
1119 # However, it has the same basename, so the bogon will be chosen
1120 # first if we set CC to just the basename; use the full file name.
1122 set dummy
"$ac_dir/$ac_word" "$@"
1130 if test -n "$CC"; then
1131 echo "$ac_t""$CC" 1>&6
1133 echo "$ac_t""no" 1>&6
1136 if test -z "$CC"; then
1137 case "`uname -s`" in
1139 # Extract the first word of "cl", so it can be a program name with args.
1140 set dummy cl
; ac_word
=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$CC"; then
1147 ac_cv_prog_CC
="$CC" # Let the user override the test.
1149 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1151 for ac_dir
in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir
=.
1153 if test -f $ac_dir/$ac_word; then
1162 if test -n "$CC"; then
1163 echo "$ac_t""$CC" 1>&6
1165 echo "$ac_t""no" 1>&6
1170 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1173 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1178 ac_cpp
='$CPP $CPPFLAGS'
1179 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1180 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1181 cross_compiling
=$ac_cv_prog_cc_cross
1183 cat > conftest.
$ac_ext << EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1190 if { (eval echo configure
:1191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1191 ac_cv_prog_cc_works
=yes
1192 # If we can't run a trivial program, we are probably using a cross compiler.
1193 if (.
/conftest
; exit) 2>/dev
/null
; then
1194 ac_cv_prog_cc_cross
=no
1196 ac_cv_prog_cc_cross
=yes
1199 echo "configure: failed program was:" >&5
1200 cat conftest.
$ac_ext >&5
1201 ac_cv_prog_cc_works
=no
1205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1206 ac_cpp
='$CPP $CPPFLAGS'
1207 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1208 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1209 cross_compiling
=$ac_cv_prog_cc_cross
1211 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1212 if test $ac_cv_prog_cc_works = no
; then
1213 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1215 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1217 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1218 cross_compiling
=$ac_cv_prog_cc_cross
1220 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether we are using GNU C" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 cat > conftest.c
<<EOF
1230 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1237 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1239 if test $ac_cv_prog_gcc = yes; then
1245 ac_test_CFLAGS
="${CFLAGS+set}"
1246 ac_save_CFLAGS
="$CFLAGS"
1248 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether ${CC-cc} accepts -g" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 echo 'void f(){}' > conftest.c
1254 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1263 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1264 if test "$ac_test_CFLAGS" = set; then
1265 CFLAGS
="$ac_save_CFLAGS"
1266 elif test $ac_cv_prog_cc_g = yes; then
1267 if test "$GCC" = yes; then
1273 if test "$GCC" = yes; then
1280 if test "x$CC" != xcc
; then
1281 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether $CC and cc understand -c and -o together" >&5
1284 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether cc understands -c and -o together" >&5
1287 set dummy
$CC; ac_cc
="`echo $2 |
1288 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1289 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 echo 'foo(){}' > conftest.c
1293 # Make sure it works both with $CC and with simple cc.
1294 # We do the test twice because some compilers refuse to overwrite an
1295 # existing .o file with -o, though they will create one.
1296 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1297 if { (eval echo configure
:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1298 test -f conftest.o
&& { (eval echo configure
:1299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1300 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1301 if test "x$CC" != xcc
; then
1302 # Test first that cc exists at all.
1303 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1304 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1305 if { (eval echo configure
:1306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1306 test -f conftest.o
&& { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1311 # cc exists but doesn't like -o.
1312 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1317 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1322 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1323 echo "$ac_t""yes" 1>&6
1325 echo "$ac_t""no" 1>&6
1326 cat >> confdefs.h
<<\EOF
1327 #define NO_MINUS_C_MINUS_O 1
1332 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1333 NO_MINUS_C_MINUS_O
=yes
1337 echo $ac_n "checking for long double""... $ac_c" 1>&6
1338 echo "configure:1339: checking for long double" >&5
1339 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test "$GCC" = yes; then
1343 gcc_cv_c_long_double
=yes
1345 cat > conftest.
$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1350 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1351 long double foo = 0.0;
1352 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1353 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1356 if { (eval echo configure
:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1358 gcc_cv_c_long_double
=yes
1360 echo "configure: failed program was:" >&5
1361 cat conftest.
$ac_ext >&5
1363 gcc_cv_c_long_double
=no
1369 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1370 if test $gcc_cv_c_long_double = yes; then
1371 cat >> confdefs.h
<<\EOF
1372 #define HAVE_LONG_DOUBLE 1
1378 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 save_CFLAGS
="$CFLAGS"
1384 CFLAGS
="-Wno-long-long"
1385 cat > conftest.
$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1393 if { (eval echo configure
:1394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1395 ac_cv_prog_cc_no_long_long
=yes
1397 echo "configure: failed program was:" >&5
1398 cat conftest.
$ac_ext >&5
1400 ac_cv_prog_cc_no_long_long
=no
1403 CFLAGS
="$save_CFLAGS"
1406 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1408 # If the native compiler is GCC, we can enable warnings even in stage1.
1409 # That's useful for people building cross-compilers, or just running a
1411 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1412 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1413 if test "x$GCC" = "xyes"; then
1414 if test $ac_cv_prog_cc_no_long_long = yes; then
1415 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1418 stage1_warn_cflags
=""
1421 # Stage specific cflags for build.
1424 if test x
$GCC = xyes
1426 stage1_warn_cflags
="$stage1_warn_cflags -Wa,-J"
1428 stage1_warn_cflags
="$stage1_warn_cflags -J"
1436 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1437 echo "configure:1438: checking whether ${MAKE-make} sets \${MAKE}" >&5
1438 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1439 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 cat > conftestmake
<<\EOF
1444 @
echo 'ac_maketemp="${MAKE}"'
1446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1447 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1448 if test -n "$ac_maketemp"; then
1449 eval ac_cv_prog_make_
${ac_make}_set
=yes
1451 eval ac_cv_prog_make_
${ac_make}_set
=no
1455 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1459 echo "$ac_t""no" 1>&6
1460 SET_MAKE
="MAKE=${MAKE-make}"
1464 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1465 echo "configure:1466: checking whether a default assembler was specified" >&5
1466 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1467 if test x
"$gas_flag" = x
"no"; then
1468 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1470 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1473 echo "$ac_t""no" 1>&6
1476 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1477 echo "configure:1478: checking whether a default linker was specified" >&5
1478 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1479 if test x
"$gnu_ld_flag" = x
"no"; then
1480 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1482 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1485 echo "$ac_t""no" 1>&6
1488 echo $ac_n "checking for inline""... $ac_c" 1>&6
1489 echo "configure:1490: checking for inline" >&5
1490 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1494 for ac_kw
in inline __inline__ __inline
; do
1495 cat > conftest.
$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1503 if { (eval echo configure
:1504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1505 ac_cv_c_inline
=$ac_kw; break
1507 echo "configure: failed program was:" >&5
1508 cat conftest.
$ac_ext >&5
1515 echo "$ac_t""$ac_cv_c_inline" 1>&6
1516 case "$ac_cv_c_inline" in
1518 no
) cat >> confdefs.h
<<\EOF
1522 *) cat >> confdefs.h
<<EOF
1523 #define inline $ac_cv_c_inline
1529 # Find some useful tools
1530 for ac_prog
in mawk gawk nawk
awk
1532 # Extract the first word of "$ac_prog", so it can be a program name with args.
1533 set dummy
$ac_prog; ac_word
=$2
1534 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1535 echo "configure:1536: checking for $ac_word" >&5
1536 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 if test -n "$AWK"; then
1540 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1542 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1544 for ac_dir
in $ac_dummy; do
1545 test -z "$ac_dir" && ac_dir
=.
1546 if test -f $ac_dir/$ac_word; then
1547 ac_cv_prog_AWK
="$ac_prog"
1554 AWK
="$ac_cv_prog_AWK"
1555 if test -n "$AWK"; then
1556 echo "$ac_t""$AWK" 1>&6
1558 echo "$ac_t""no" 1>&6
1561 test -n "$AWK" && break
1564 # Extract the first word of "flex", so it can be a program name with args.
1565 set dummy flex
; ac_word
=$2
1566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1567 echo "configure:1568: checking for $ac_word" >&5
1568 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 if test -n "$LEX"; then
1572 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1576 for ac_dir
in $ac_dummy; do
1577 test -z "$ac_dir" && ac_dir
=.
1578 if test -f $ac_dir/$ac_word; then
1579 ac_cv_prog_LEX
="flex"
1584 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1587 LEX
="$ac_cv_prog_LEX"
1588 if test -n "$LEX"; then
1589 echo "$ac_t""$LEX" 1>&6
1591 echo "$ac_t""no" 1>&6
1594 if test -z "$LEXLIB"
1600 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1601 echo "configure:1602: checking for yywrap in -l$ac_lib" >&5
1602 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 ac_save_LIBS
="$LIBS"
1607 LIBS
="-l$ac_lib $LIBS"
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 /* Override any gcc2 internal prototype to avoid an error. */
1612 /* We use char because int might match the return type of a gcc2
1613 builtin and then its argument prototype would still apply. */
1620 if { (eval echo configure
:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1622 eval "ac_cv_lib_$ac_lib_var=yes"
1624 echo "configure: failed program was:" >&5
1625 cat conftest.
$ac_ext >&5
1627 eval "ac_cv_lib_$ac_lib_var=no"
1630 LIBS
="$ac_save_LIBS"
1633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1634 echo "$ac_t""yes" 1>&6
1637 echo "$ac_t""no" 1>&6
1642 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1643 echo "configure:1644: checking whether ln works" >&5
1644 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 rm -f conftestdata_t
1648 echo >conftestdata_f
1649 if ln conftestdata_f conftestdata_t
2>/dev
/null
1653 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1655 gcc_cv_prog_LN
="ln -s"
1660 rm -f conftestdata_f conftestdata_t
1663 LN
="$gcc_cv_prog_LN"
1664 if test "$gcc_cv_prog_LN" = "ln"; then
1665 echo "$ac_t""yes" 1>&6
1667 if test "$gcc_cv_prog_LN" = "ln -s"; then
1668 echo "$ac_t""no, using ln -s" 1>&6
1670 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1674 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether ln -s works" >&5
1676 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 rm -f conftestdata_t
1680 echo >conftestdata_f
1681 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1683 gcc_cv_prog_LN_S
="ln -s"
1685 if ln conftestdata_f conftestdata_t
2>/dev
/null
1692 rm -f conftestdata_f conftestdata_t
1695 LN_S
="$gcc_cv_prog_LN_S"
1696 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1697 echo "$ac_t""yes" 1>&6
1699 if test "$gcc_cv_prog_LN_S" = "ln"; then
1700 echo "$ac_t""no, using ln" 1>&6
1702 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1706 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1707 echo "configure:1708: checking for volatile" >&5
1708 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.
$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1719 if { (eval echo configure
:1720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1721 gcc_cv_c_volatile
=yes
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 gcc_cv_c_volatile
=no
1731 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1732 if test $gcc_cv_c_volatile = yes ; then
1733 cat >> confdefs.h
<<\EOF
1734 #define HAVE_VOLATILE 1
1739 # Extract the first word of "ranlib", so it can be a program name with args.
1740 set dummy ranlib
; ac_word
=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 if test -n "$RANLIB"; then
1747 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1751 for ac_dir
in $ac_dummy; do
1752 test -z "$ac_dir" && ac_dir
=.
1753 if test -f $ac_dir/$ac_word; then
1754 ac_cv_prog_RANLIB
="ranlib"
1759 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1762 RANLIB
="$ac_cv_prog_RANLIB"
1763 if test -n "$RANLIB"; then
1764 echo "$ac_t""$RANLIB" 1>&6
1766 echo "$ac_t""no" 1>&6
1769 for ac_prog
in 'bison -y' byacc
1771 # Extract the first word of "$ac_prog", so it can be a program name with args.
1772 set dummy
$ac_prog; ac_word
=$2
1773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1774 echo "configure:1775: checking for $ac_word" >&5
1775 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 if test -n "$YACC"; then
1779 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1781 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1783 for ac_dir
in $ac_dummy; do
1784 test -z "$ac_dir" && ac_dir
=.
1785 if test -f $ac_dir/$ac_word; then
1786 ac_cv_prog_YACC
="$ac_prog"
1793 YACC
="$ac_cv_prog_YACC"
1794 if test -n "$YACC"; then
1795 echo "$ac_t""$YACC" 1>&6
1797 echo "$ac_t""no" 1>&6
1800 test -n "$YACC" && break
1802 test -n "$YACC" || YACC
="yacc"
1804 # Find a good install program. We prefer a C program (faster),
1805 # so one script is as good as another. But avoid the broken or
1806 # incompatible versions:
1807 # SysV /etc/install, /usr/sbin/install
1808 # SunOS /usr/etc/install
1809 # IRIX /sbin/install
1811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1813 # ./install, which can be erroneously created by make from ./install.sh.
1814 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1815 echo "configure:1816: checking for a BSD compatible install" >&5
1816 if test -z "$INSTALL"; then
1817 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1821 for ac_dir
in $PATH; do
1822 # Account for people who put trailing slashes in PATH elements.
1824 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1826 # OSF1 and SCO ODT 3.0 have their own names for install.
1827 for ac_prog
in ginstall scoinst
install; do
1828 if test -f $ac_dir/$ac_prog; then
1829 if test $ac_prog = install &&
1830 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1831 # AIX install. It has an incompatible calling convention.
1832 # OSF/1 installbsd also uses dspmsg, but is usable.
1835 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1846 if test "${ac_cv_path_install+set}" = set; then
1847 INSTALL
="$ac_cv_path_install"
1849 # As a last resort, use the slow shell script. We don't cache a
1850 # path for INSTALL within a source directory, because that will
1851 # break other packages using the cache if that directory is
1852 # removed, or if the path is relative.
1853 INSTALL
="$ac_install_sh"
1856 echo "$ac_t""$INSTALL" 1>&6
1858 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1859 # It thinks the first close brace ends the variable substitution.
1860 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1862 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1865 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1866 echo "configure:1867: checking how to run the C preprocessor" >&5
1867 # On Suns, sometimes $CPP names a directory.
1868 if test -n "$CPP" && test -d "$CPP"; then
1871 if test -z "$CPP"; then
1872 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 # This must be in double quotes, not single quotes, because CPP may get
1876 # substituted into the Makefile and "${CC-cc}" will confuse make.
1878 # On the NeXT, cc -E runs the code through the compiler's parser,
1879 # not just through cpp.
1880 cat > conftest.
$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1887 { (eval echo configure
:1888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1889 if test -z "$ac_err"; then
1893 echo "configure: failed program was:" >&5
1894 cat conftest.
$ac_ext >&5
1896 CPP
="${CC-cc} -E -traditional-cpp"
1897 cat > conftest.
$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1903 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1904 { (eval echo configure
:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1905 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1906 if test -z "$ac_err"; then
1910 echo "configure: failed program was:" >&5
1911 cat conftest.
$ac_ext >&5
1913 CPP
="${CC-cc} -nologo -E"
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1920 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1921 { (eval echo configure
:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1922 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1923 if test -z "$ac_err"; then
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1937 ac_cv_prog_CPP
="$CPP"
1939 CPP
="$ac_cv_prog_CPP"
1941 ac_cv_prog_CPP
="$CPP"
1943 echo "$ac_t""$CPP" 1>&6
1945 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1946 echo "configure:1947: checking for ANSI C header files" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1958 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1959 { (eval echo configure
:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1960 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1961 if test -z "$ac_err"; then
1963 ac_cv_header_stdc
=yes
1966 echo "configure: failed program was:" >&5
1967 cat conftest.
$ac_ext >&5
1969 ac_cv_header_stdc
=no
1973 if test $ac_cv_header_stdc = yes; then
1974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1975 cat > conftest.
$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1981 egrep "memchr" >/dev
/null
2>&1; then
1985 ac_cv_header_stdc
=no
1991 if test $ac_cv_header_stdc = yes; then
1992 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1993 cat > conftest.
$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999 egrep "free" >/dev
/null
2>&1; then
2003 ac_cv_header_stdc
=no
2009 if test $ac_cv_header_stdc = yes; then
2010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2011 if test "$cross_compiling" = yes; then
2014 cat > conftest.
$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2018 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2019 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2021 int main () { int i; for (i = 0; i < 256; i++)
2022 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2026 if { (eval echo configure
:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2030 echo "configure: failed program was:" >&5
2031 cat conftest.
$ac_ext >&5
2033 ac_cv_header_stdc
=no
2041 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2042 if test $ac_cv_header_stdc = yes; then
2043 cat >> confdefs.h
<<\EOF
2044 #define STDC_HEADERS 1
2049 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether time.h and sys/time.h may both be included" >&5
2051 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 cat > conftest.
$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2057 #include <sys/types.h>
2058 #include <sys/time.h>
2064 if { (eval echo configure
:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 ac_cv_header_time
=yes
2068 echo "configure: failed program was:" >&5
2069 cat conftest.
$ac_ext >&5
2071 ac_cv_header_time
=no
2076 echo "$ac_t""$ac_cv_header_time" 1>&6
2077 if test $ac_cv_header_time = yes; then
2078 cat >> confdefs.h
<<\EOF
2079 #define TIME_WITH_SYS_TIME 1
2084 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2085 echo "configure:2086: checking whether string.h and strings.h may both be included" >&5
2086 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2093 #include <strings.h>
2098 if { (eval echo configure
:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100 gcc_cv_header_string
=yes
2102 echo "configure: failed program was:" >&5
2103 cat conftest.
$ac_ext >&5
2105 gcc_cv_header_string
=no
2110 echo "$ac_t""$gcc_cv_header_string" 1>&6
2111 if test $gcc_cv_header_string = yes; then
2112 cat >> confdefs.h
<<\EOF
2113 #define STRING_WITH_STRINGS 1
2118 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2119 echo "configure:2120: checking for sys/wait.h that is POSIX.1 compatible" >&5
2120 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 cat > conftest.
$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 #include <sys/types.h>
2127 #include <sys/wait.h>
2129 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2132 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2137 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2140 if { (eval echo configure
:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2142 ac_cv_header_sys_wait_h
=yes
2144 echo "configure: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2147 ac_cv_header_sys_wait_h
=no
2152 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2153 if test $ac_cv_header_sys_wait_h = yes; then
2154 cat >> confdefs.h
<<\EOF
2155 #define HAVE_SYS_WAIT_H 1
2160 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2161 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2162 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2165 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2167 echo "configure:2168: checking for $ac_hdr" >&5
2168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.
$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2176 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2177 { (eval echo configure
:2178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2178 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2179 if test -z "$ac_err"; then
2181 eval "ac_cv_header_$ac_safe=yes"
2184 echo "configure: failed program was:" >&5
2185 cat conftest.
$ac_ext >&5
2187 eval "ac_cv_header_$ac_safe=no"
2191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2192 echo "$ac_t""yes" 1>&6
2193 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2194 cat >> confdefs.h
<<EOF
2195 #define $ac_tr_hdr 1
2199 echo "$ac_t""no" 1>&6
2204 # Check for thread headers.
2205 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2206 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2207 echo "configure:2208: checking for thread.h" >&5
2208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 cat > conftest.
$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2216 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2217 { (eval echo configure
:2218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2218 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2219 if test -z "$ac_err"; then
2221 eval "ac_cv_header_$ac_safe=yes"
2224 echo "configure: failed program was:" >&5
2225 cat conftest.
$ac_ext >&5
2227 eval "ac_cv_header_$ac_safe=no"
2231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2232 echo "$ac_t""yes" 1>&6
2235 echo "$ac_t""no" 1>&6
2239 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2240 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2241 echo "configure:2242: checking for pthread.h" >&5
2242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 #include <pthread.h>
2250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2251 { (eval echo configure
:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2252 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2253 if test -z "$ac_err"; then
2255 eval "ac_cv_header_$ac_safe=yes"
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2261 eval "ac_cv_header_$ac_safe=no"
2265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2269 echo "$ac_t""no" 1>&6
2274 # See if GNAT has been installed
2275 # Extract the first word of "gnatbind", so it can be a program name with args.
2276 set dummy gnatbind
; ac_word
=$2
2277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_word" >&5
2279 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 if test -n "$gnat"; then
2283 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2285 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2287 for ac_dir
in $ac_dummy; do
2288 test -z "$ac_dir" && ac_dir
=.
2289 if test -f $ac_dir/$ac_word; then
2290 ac_cv_prog_gnat
="yes"
2295 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2298 gnat
="$ac_cv_prog_gnat"
2299 if test -n "$gnat"; then
2300 echo "$ac_t""$gnat" 1>&6
2302 echo "$ac_t""no" 1>&6
2306 # Do we have a single-tree copy of texinfo?
2307 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2308 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2309 gcc_cv_prog_makeinfo_modern
=yes
2310 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2312 # See if makeinfo has been installed and is modern enough
2313 # that we can use it.
2314 # Extract the first word of "makeinfo", so it can be a program name with args.
2315 set dummy makeinfo
; ac_word
=$2
2316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2317 echo "configure:2318: checking for $ac_word" >&5
2318 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 if test -n "$MAKEINFO"; then
2322 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2324 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2326 for ac_dir
in $ac_dummy; do
2327 test -z "$ac_dir" && ac_dir
=.
2328 if test -f $ac_dir/$ac_word; then
2329 ac_cv_prog_MAKEINFO
="makeinfo"
2336 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2337 if test -n "$MAKEINFO"; then
2338 echo "$ac_t""$MAKEINFO" 1>&6
2340 echo "$ac_t""no" 1>&6
2343 if test -n "$MAKEINFO"; then
2344 # Found it, now check the version.
2345 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2346 echo "configure:2347: checking for modern makeinfo" >&5
2347 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2351 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2352 echo "configure:2353: version of makeinfo is $ac_prog_version" >&5
2353 case $ac_prog_version in
2354 '') gcc_cv_prog_makeinfo_modern
=no
;;
2355 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2356 gcc_cv_prog_makeinfo_modern
=yes;;
2357 *) gcc_cv_prog_makeinfo_modern
=no
;;
2362 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2364 gcc_cv_prog_makeinfo_modern
=no
2369 if test $gcc_cv_prog_makeinfo_modern = no
; then
2370 echo "configure: warning:
2371 *** Makeinfo is missing or too old.
2372 *** Info documentation will not be built or installed." 1>&2
2377 INSTALL_INFO
=install-info
2380 # See if the stage1 system preprocessor understands the ANSI C
2381 # preprocessor stringification operator.
2384 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2385 echo "configure:2386: checking for preprocessor stringizing operator" >&5
2386 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.
$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2395 char *s = x(teststring);
2398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2399 egrep "#teststring" >/dev
/null
2>&1; then
2401 ac_cv_c_stringize
=no
2404 ac_cv_c_stringize
=yes
2410 if test "${ac_cv_c_stringize}" = yes
2412 cat >> confdefs.h
<<\EOF
2413 #define HAVE_STRINGIZE 1
2417 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2420 # Use <inttypes.h> only if it exists,
2421 # doesn't clash with <sys/types.h>, and declares intmax_t.
2422 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2423 echo "configure:2424: checking for inttypes.h" >&5
2424 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2430 #include <sys/types.h>
2431 #include <inttypes.h>
2436 if { (eval echo configure
:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2438 gcc_cv_header_inttypes_h
=yes
2440 echo "configure: failed program was:" >&5
2441 cat conftest.
$ac_ext >&5
2443 gcc_cv_header_inttypes_h
=no
2448 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2449 if test $gcc_cv_header_inttypes_h = yes; then
2450 cat >> confdefs.h
<<\EOF
2451 #define HAVE_INTTYPES_H 1
2457 # Determine if enumerated bitfields are unsigned. ISO C says they can
2458 # be either signed or unsigned.
2460 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2461 echo "configure:2462: checking for unsigned enumerated bitfields" >&5
2462 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 if test "$cross_compiling" = yes; then
2466 gcc_cv_enum_bf_unsigned
=yes
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2472 enum t { BLAH = 128 } ;
2473 struct s_t { enum t member : 8; } s ;
2477 if (s.member < 0) exit(1);
2482 if { (eval echo configure
:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2484 gcc_cv_enum_bf_unsigned
=yes
2486 echo "configure: failed program was:" >&5
2487 cat conftest.
$ac_ext >&5
2489 gcc_cv_enum_bf_unsigned
=no
2496 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2497 if test $gcc_cv_enum_bf_unsigned = yes; then
2498 cat >> confdefs.h
<<\EOF
2499 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2504 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2505 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2506 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2507 fputs_unlocked getrusage valloc
2509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2510 echo "configure:2511: checking for $ac_func" >&5
2511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 cat > conftest.
$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2517 /* System header to define __stub macros and hopefully few prototypes,
2518 which can conflict with char $ac_func(); below. */
2520 /* Override any gcc2 internal prototype to avoid an error. */
2521 /* We use char because int might match the return type of a gcc2
2522 builtin and then its argument prototype would still apply. */
2527 /* The GNU C library defines this for functions which it implements
2528 to always fail with ENOSYS. Some functions are actually named
2529 something starting with __ and the normal name is an alias. */
2530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2538 if { (eval echo configure
:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2540 eval "ac_cv_func_$ac_func=yes"
2542 echo "configure: failed program was:" >&5
2543 cat conftest.
$ac_ext >&5
2545 eval "ac_cv_func_$ac_func=no"
2550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2551 echo "$ac_t""yes" 1>&6
2552 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2553 cat >> confdefs.h
<<EOF
2554 #define $ac_tr_func 1
2558 echo "$ac_t""no" 1>&6
2563 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2564 echo "configure:2565: checking for ssize_t" >&5
2565 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.
$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <sys/types.h>
2577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2580 ac_cv_type_ssize_t
=yes
2583 ac_cv_type_ssize_t
=no
2588 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2589 if test $ac_cv_type_ssize_t = no
; then
2590 cat >> confdefs.h
<<\EOF
2597 # Try to determine the array type of the second argument of getgroups
2598 # for the target system (int or gid_t).
2599 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2600 echo "configure:2601: checking for uid_t in sys/types.h" >&5
2601 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.
$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2607 #include <sys/types.h>
2609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2610 egrep "uid_t" >/dev
/null
2>&1; then
2612 ac_cv_type_uid_t
=yes
2621 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2622 if test $ac_cv_type_uid_t = no
; then
2623 cat >> confdefs.h
<<\EOF
2627 cat >> confdefs.h
<<\EOF
2633 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2634 echo "configure:2635: checking type of array argument to getgroups" >&5
2635 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 if test "$cross_compiling" = yes; then
2639 ac_cv_type_getgroups
=cross
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2645 /* Thanks to Mike Rendell for this test. */
2646 #include <sys/types.h>
2649 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2654 union { gid_t gval; long lval; } val;
2657 for (i = 0; i < NGID; i++)
2658 gidset[i] = val.gval;
2659 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2661 /* Exit non-zero if getgroups seems to require an array of ints. This
2662 happens when gid_t is short but getgroups modifies an array of ints. */
2663 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2667 if { (eval echo configure
:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2669 ac_cv_type_getgroups
=gid_t
2671 echo "configure: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2674 ac_cv_type_getgroups
=int
2679 if test $ac_cv_type_getgroups = cross
; then
2680 cat > conftest.
$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2686 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2688 ac_cv_type_getgroups
=gid_t
2691 ac_cv_type_getgroups
=int
2698 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2699 cat >> confdefs.h
<<EOF
2700 #define GETGROUPS_T $ac_cv_type_getgroups
2704 if test "${target}" = "${build}"; then
2705 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2708 # This condition may need some tweaking. It should include all
2709 # targets where the array type of the second argument of getgroups
2710 # is int and the type of gid_t is not equivalent to int.
2711 *-*-sunos* |
*-*-ultrix*)
2712 TARGET_GETGROUPS_T
=int
2715 TARGET_GETGROUPS_T
=gid_t
2721 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2722 echo "configure:2723: checking for vprintf" >&5
2723 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 /* System header to define __stub macros and hopefully few prototypes,
2730 which can conflict with char vprintf(); below. */
2732 /* Override any gcc2 internal prototype to avoid an error. */
2733 /* We use char because int might match the return type of a gcc2
2734 builtin and then its argument prototype would still apply. */
2739 /* The GNU C library defines this for functions which it implements
2740 to always fail with ENOSYS. Some functions are actually named
2741 something starting with __ and the normal name is an alias. */
2742 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2750 if { (eval echo configure
:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2752 eval "ac_cv_func_vprintf=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.
$ac_ext >&5
2757 eval "ac_cv_func_vprintf=no"
2762 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 cat >> confdefs.h
<<\EOF
2765 #define HAVE_VPRINTF 1
2769 echo "$ac_t""no" 1>&6
2772 if test "$ac_cv_func_vprintf" != yes; then
2773 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2774 echo "configure:2775: checking for _doprnt" >&5
2775 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 /* System header to define __stub macros and hopefully few prototypes,
2782 which can conflict with char _doprnt(); below. */
2784 /* Override any gcc2 internal prototype to avoid an error. */
2785 /* We use char because int might match the return type of a gcc2
2786 builtin and then its argument prototype would still apply. */
2791 /* The GNU C library defines this for functions which it implements
2792 to always fail with ENOSYS. Some functions are actually named
2793 something starting with __ and the normal name is an alias. */
2794 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2802 if { (eval echo configure
:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2804 eval "ac_cv_func__doprnt=yes"
2806 echo "configure: failed program was:" >&5
2807 cat conftest.
$ac_ext >&5
2809 eval "ac_cv_func__doprnt=no"
2814 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2815 echo "$ac_t""yes" 1>&6
2816 cat >> confdefs.h
<<\EOF
2817 #define HAVE_DOPRNT 1
2821 echo "$ac_t""no" 1>&6
2828 if test $ac_cv_func_vprintf != yes ; then
2830 if test $ac_cv_func__doprnt != yes ; then
2837 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2838 echo "configure:2839: checking whether the printf functions support %p" >&5
2839 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 if test "$cross_compiling" = yes; then
2843 gcc_cv_func_printf_ptr
=no
2845 cat > conftest.
$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2853 char *p = buf, *q = NULL;
2854 sprintf(buf, "%p", p);
2855 sscanf(buf, "%p", &q);
2859 if { (eval echo configure
:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2861 gcc_cv_func_printf_ptr
=yes
2863 echo "configure: failed program was:" >&5
2864 cat conftest.
$ac_ext >&5
2866 gcc_cv_func_printf_ptr
=no
2871 rm -f core core.
* *.core
2874 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2875 if test $gcc_cv_func_printf_ptr = yes ; then
2876 cat >> confdefs.h
<<\EOF
2877 #define HAVE_PRINTF_PTR 1
2885 # Under some versions of uwin, vfork is notoriously buggy and the test
2886 # can hang configure; on other versions, vfork exists just as a stub.
2887 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2888 ac_cv_func_vfork_works
=no
2891 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2892 echo "configure:2893: checking for pid_t" >&5
2893 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 cat > conftest.
$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 #include <sys/types.h>
2905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2906 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2908 ac_cv_type_pid_t
=yes
2916 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2917 if test $ac_cv_type_pid_t = no
; then
2918 cat >> confdefs.h
<<\EOF
2924 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2925 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2926 echo "configure:2927: checking for vfork.h" >&5
2927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2935 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2936 { (eval echo configure
:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2938 if test -z "$ac_err"; then
2940 eval "ac_cv_header_$ac_safe=yes"
2943 echo "configure: failed program was:" >&5
2944 cat conftest.
$ac_ext >&5
2946 eval "ac_cv_header_$ac_safe=no"
2950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 cat >> confdefs.h
<<\EOF
2953 #define HAVE_VFORK_H 1
2957 echo "$ac_t""no" 1>&6
2960 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2961 echo "configure:2962: checking for working vfork" >&5
2962 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 if test "$cross_compiling" = yes; then
2966 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2967 echo "configure:2968: checking for vfork" >&5
2968 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 cat > conftest.
$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2974 /* System header to define __stub macros and hopefully few prototypes,
2975 which can conflict with char vfork(); below. */
2977 /* Override any gcc2 internal prototype to avoid an error. */
2978 /* We use char because int might match the return type of a gcc2
2979 builtin and then its argument prototype would still apply. */
2984 /* The GNU C library defines this for functions which it implements
2985 to always fail with ENOSYS. Some functions are actually named
2986 something starting with __ and the normal name is an alias. */
2987 #if defined (__stub_vfork) || defined (__stub___vfork)
2995 if { (eval echo configure
:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2997 eval "ac_cv_func_vfork=yes"
2999 echo "configure: failed program was:" >&5
3000 cat conftest.
$ac_ext >&5
3002 eval "ac_cv_func_vfork=no"
3007 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3011 echo "$ac_t""no" 1>&6
3014 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3016 cat > conftest.
$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3019 /* Thanks to Paul Eggert for this test. */
3021 #include <sys/types.h>
3022 #include <sys/stat.h>
3023 #ifdef HAVE_UNISTD_H
3029 /* On some sparc systems, changes by the child to local and incoming
3030 argument registers are propagated back to the parent.
3031 The compiler is told about this with #include <vfork.h>,
3032 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3033 Test for this by using a static variable whose address
3034 is put into a register that is clobbered by the vfork. */
3037 sparc_address_test (int arg)
3039 sparc_address_test (arg) int arg;
3057 pid_t parent = getpid ();
3060 sparc_address_test ();
3065 /* Here is another test for sparc vfork register problems.
3066 This test uses lots of local variables, at least
3067 as many local variables as main has allocated so far
3068 including compiler temporaries. 4 locals are enough for
3069 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3070 A buggy compiler should reuse the register of parent
3071 for one of the local variables, since it will think that
3072 parent can't possibly be used any more in this routine.
3073 Assigning to the local variable will thus munge parent
3074 in the parent process. */
3076 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3077 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3078 /* Convince the compiler that p..p7 are live; otherwise, it might
3079 use the same hardware register for all 8 local variables. */
3080 if (p != p1 || p != p2 || p != p3 || p != p4
3081 || p != p5 || p != p6 || p != p7)
3084 /* On some systems (e.g. IRIX 3.3),
3085 vfork doesn't separate parent from child file descriptors.
3086 If the child closes a descriptor before it execs or exits,
3087 this munges the parent's descriptor as well.
3088 Test for this by closing stdout in the child. */
3089 _exit(close(fileno(stdout)) != 0);
3094 while (wait(&status) != child)
3097 /* Was there some problem with vforking? */
3100 /* Did the child fail? (This shouldn't happen.) */
3103 /* Did the vfork/compiler bug occur? */
3104 || parent != getpid()
3106 /* Did the file descriptor bug occur? */
3107 || fstat(fileno(stdout), &st) != 0
3112 if { (eval echo configure
:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3114 ac_cv_func_vfork_works
=yes
3116 echo "configure: failed program was:" >&5
3117 cat conftest.
$ac_ext >&5
3119 ac_cv_func_vfork_works
=no
3126 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3127 if test $ac_cv_func_vfork_works = no
; then
3128 cat >> confdefs.h
<<\EOF
3134 for ac_hdr
in unistd.h
3136 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3138 echo "configure:3139: checking for $ac_hdr" >&5
3139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 cat > conftest.
$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3147 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3148 { (eval echo configure
:3149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3149 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3150 if test -z "$ac_err"; then
3152 eval "ac_cv_header_$ac_safe=yes"
3155 echo "configure: failed program was:" >&5
3156 cat conftest.
$ac_ext >&5
3158 eval "ac_cv_header_$ac_safe=no"
3162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3163 echo "$ac_t""yes" 1>&6
3164 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3165 cat >> confdefs.h
<<EOF
3166 #define $ac_tr_hdr 1
3170 echo "$ac_t""no" 1>&6
3174 for ac_func
in getpagesize
3176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3177 echo "configure:3178: checking for $ac_func" >&5
3178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* System header to define __stub macros and hopefully few prototypes,
3185 which can conflict with char $ac_func(); below. */
3187 /* Override any gcc2 internal prototype to avoid an error. */
3188 /* We use char because int might match the return type of a gcc2
3189 builtin and then its argument prototype would still apply. */
3194 /* The GNU C library defines this for functions which it implements
3195 to always fail with ENOSYS. Some functions are actually named
3196 something starting with __ and the normal name is an alias. */
3197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3205 if { (eval echo configure
:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3207 eval "ac_cv_func_$ac_func=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.
$ac_ext >&5
3212 eval "ac_cv_func_$ac_func=no"
3217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3218 echo "$ac_t""yes" 1>&6
3219 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3220 cat >> confdefs.h
<<EOF
3221 #define $ac_tr_func 1
3225 echo "$ac_t""no" 1>&6
3229 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3230 echo "configure:3231: checking for working mmap which provides zeroed pages anywhere" >&5
3231 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 if test "$cross_compiling" = yes; then
3235 ac_cv_func_mmap_anywhere
=no
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3241 /* Test by Richard Henderson and Alexandre Oliva.
3242 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3243 #include <sys/types.h>
3245 #include <sys/mman.h>
3247 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3248 # define MAP_ANONYMOUS MAP_ANON
3251 /* This mess was copied from the GNU getpagesize.h. */
3252 #ifndef HAVE_GETPAGESIZE
3253 # ifdef HAVE_UNISTD_H
3254 # include <unistd.h>
3257 /* Assume that all systems that can run configure have sys/param.h. */
3258 # ifndef HAVE_SYS_PARAM_H
3259 # define HAVE_SYS_PARAM_H 1
3262 # ifdef _SC_PAGESIZE
3263 # define getpagesize() sysconf(_SC_PAGESIZE)
3264 # else /* no _SC_PAGESIZE */
3265 # ifdef HAVE_SYS_PARAM_H
3266 # include <sys/param.h>
3267 # ifdef EXEC_PAGESIZE
3268 # define getpagesize() EXEC_PAGESIZE
3269 # else /* no EXEC_PAGESIZE */
3271 # define getpagesize() NBPG * CLSIZE
3274 # endif /* no CLSIZE */
3275 # else /* no NBPG */
3277 # define getpagesize() NBPC
3278 # else /* no NBPC */
3280 # define getpagesize() PAGESIZE
3281 # endif /* PAGESIZE */
3282 # endif /* no NBPC */
3283 # endif /* no NBPG */
3284 # endif /* no EXEC_PAGESIZE */
3285 # else /* no HAVE_SYS_PARAM_H */
3286 # define getpagesize() 8192 /* punt totally */
3287 # endif /* no HAVE_SYS_PARAM_H */
3288 # endif /* no _SC_PAGESIZE */
3290 #endif /* no HAVE_GETPAGESIZE */
3297 #ifndef MAP_ANONYMOUS
3298 fd = open("/dev/zero", O_RDWR);
3304 #ifdef MAP_ANONYMOUS
3305 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3306 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3308 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3310 if (x == (char *) -1)
3315 if (munmap(x, pg) < 0)
3321 if { (eval echo configure
:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3323 ac_cv_func_mmap_anywhere
=yes
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3328 ac_cv_func_mmap_anywhere
=no
3335 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3336 if test $ac_cv_func_mmap_anywhere = yes; then
3337 cat >> confdefs.h
<<\EOF
3338 #define HAVE_MMAP_ANYWHERE 1
3343 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3344 echo "configure:3345: checking for working mmap of a file" >&5
3345 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 # Create a file one thousand bytes long.
3349 for i
in 1 2 3 4 5 6 7 8 9 0
3350 do for j
in 1 2 3 4 5 6 7 8 9 0
3353 done > conftestdata$$
3355 if test "$cross_compiling" = yes; then
3356 ac_cv_func_mmap_file
=no
3358 cat > conftest.
$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3362 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3363 Richard Henderson and Alexandre Oliva.
3364 Check whether read-only mmap of a plain file works. */
3365 #include <sys/types.h>
3366 #include <sys/stat.h>
3368 #include <sys/mman.h>
3376 fd = open("conftestdata$$", O_RDONLY);
3380 if (fstat (fd, &st))
3383 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3384 if (x == (char *) -1)
3387 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3390 if (munmap(x, st.st_size) < 0)
3396 if { (eval echo configure
:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3398 ac_cv_func_mmap_file
=yes
3400 echo "configure: failed program was:" >&5
3401 cat conftest.
$ac_ext >&5
3403 ac_cv_func_mmap_file
=no
3410 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3411 if test $ac_cv_func_mmap_file = yes; then
3412 cat >> confdefs.h
<<\EOF
3413 #define HAVE_MMAP_FILE 1
3419 # We will need to find libiberty.h and ansidecl.h
3420 saved_CFLAGS
="$CFLAGS"
3421 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3422 for ac_func
in bcopy bzero bcmp \
3423 index rindex getenv atol sbrk abort atof getcwd getwd \
3424 strsignal putc_unlocked fputs_unlocked strstr environ \
3425 malloc realloc calloc free
basename getopt
3427 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3428 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3429 echo "configure:3430: checking whether $ac_func is declared" >&5
3430 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 #include "gansidecl.h"
3441 char *(*pfn) = (char *(*)) $ac_func ;
3445 if { (eval echo configure
:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447 eval "gcc_cv_have_decl_$ac_func=yes"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.
$ac_ext >&5
3452 eval "gcc_cv_have_decl_$ac_func=no"
3457 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3459 #define $ac_tr_decl 1
3463 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3464 #define $ac_tr_decl 0
3470 if test x
= y
; then
3471 cat >> confdefs.h
<<EOF
3472 #define HAVE_DECL_BCOPY 1
3474 cat >> confdefs.h
<<EOF
3475 #define HAVE_DECL_BZERO 1
3477 cat >> confdefs.h
<<EOF
3478 #define HAVE_DECL_BCMP 1
3481 cat >> confdefs.h
<<EOF
3482 #define HAVE_DECL_INDEX 1
3484 cat >> confdefs.h
<<EOF
3485 #define HAVE_DECL_RINDEX 1
3487 cat >> confdefs.h
<<EOF
3488 #define HAVE_DECL_GETENV 1
3490 cat >> confdefs.h
<<EOF
3491 #define HAVE_DECL_ATOL 1
3493 cat >> confdefs.h
<<EOF
3494 #define HAVE_DECL_SBRK 1
3496 cat >> confdefs.h
<<EOF
3497 #define HAVE_DECL_ABORT 1
3499 cat >> confdefs.h
<<EOF
3500 #define HAVE_DECL_ATOF 1
3502 cat >> confdefs.h
<<EOF
3503 #define HAVE_DECL_GETCWD 1
3505 cat >> confdefs.h
<<EOF
3506 #define HAVE_DECL_GETWD 1
3509 cat >> confdefs.h
<<EOF
3510 #define HAVE_DECL_STRSIGNAL 1
3512 cat >> confdefs.h
<<EOF
3513 #define HAVE_DECL_PUTC_UNLOCKED 1
3515 cat >> confdefs.h
<<EOF
3516 #define HAVE_DECL_FPUTS_UNLOCKED 1
3518 cat >> confdefs.h
<<EOF
3519 #define HAVE_DECL_STRSTR 1
3521 cat >> confdefs.h
<<EOF
3522 #define HAVE_DECL_ENVIRON 1
3525 cat >> confdefs.h
<<EOF
3526 #define HAVE_DECL_MALLOC 1
3528 cat >> confdefs.h
<<EOF
3529 #define HAVE_DECL_REALLOC 1
3531 cat >> confdefs.h
<<EOF
3532 #define HAVE_DECL_CALLOC 1
3534 cat >> confdefs.h
<<EOF
3535 #define HAVE_DECL_FREE 1
3537 cat >> confdefs.h
<<EOF
3538 #define HAVE_DECL_BASENAME 1
3540 cat >> confdefs.h
<<EOF
3541 #define HAVE_DECL_GETOPT 1
3546 for ac_func
in getrlimit setrlimit getrusage
3548 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3549 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3550 echo "configure:3551: checking whether $ac_func is declared" >&5
3551 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 cat > conftest.
$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include "gansidecl.h"
3559 #ifdef HAVE_SYS_RESOURCE_H
3560 #include <sys/resource.h>
3566 char *(*pfn) = (char *(*)) $ac_func ;
3570 if { (eval echo configure
:3571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3572 eval "gcc_cv_have_decl_$ac_func=yes"
3574 echo "configure: failed program was:" >&5
3575 cat conftest.
$ac_ext >&5
3577 eval "gcc_cv_have_decl_$ac_func=no"
3582 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3584 #define $ac_tr_decl 1
3588 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3589 #define $ac_tr_decl 0
3595 if test x
= y
; then
3596 cat >> confdefs.h
<<EOF
3597 #define HAVE_DECL_GETRLIMIT 1
3599 cat >> confdefs.h
<<EOF
3600 #define HAVE_DECL_SETRLIMIT 1
3602 cat >> confdefs.h
<<EOF
3603 #define HAVE_DECL_GETRUSAGE 1
3608 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3609 CFLAGS
="$saved_CFLAGS"
3611 # mkdir takes a single argument on some systems.
3612 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3613 echo "configure:3614: checking if mkdir takes one argument" >&5
3614 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.
$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3621 #include <sys/types.h>
3622 #ifdef HAVE_SYS_STAT_H
3623 # include <sys/stat.h>
3625 #ifdef HAVE_UNISTD_H
3626 # include <unistd.h>
3628 #ifdef HAVE_DIRECT_H
3629 # include <direct.h>
3635 if { (eval echo configure
:3636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3637 gcc_cv_mkdir_takes_one_arg
=no
3639 echo "configure: failed program was:" >&5
3640 cat conftest.
$ac_ext >&5
3642 gcc_cv_mkdir_takes_one_arg
=yes
3647 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3648 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3649 cat >> confdefs.h
<<\EOF
3650 #define MKDIR_TAKES_ONE_ARG 1
3664 build_install_headers_dir
=install-headers-tar
3669 host_truncate_target
=
3672 # Decode the host machine, then the target machine.
3673 # For the host machine, we save the xm_file variable as host_xm_file;
3674 # then we decode the target machine and forget everything else
3675 # that came from the host machine.
3676 for machine
in $build $host $target; do
3690 # Set this to force installation and use of collect2.
3692 # Set this to override the default target model.
3694 # Set this to control how the header file directory is installed.
3695 install_headers_dir
=install-headers-tar
3696 # Set this to a non-empty list of args to pass to cpp if the target
3697 # wants its .md file passed through cpp.
3699 # Set this if directory names should be truncated to 14 characters.
3701 # Set this if gdb needs a dir command with `dirname $out_file`
3702 gdb_needs_out_file_path
=
3703 # Set this if the build machine requires executables to have a
3706 # Set this to control which thread package will be used.
3708 # Reinitialize these from the flag values every loop pass, since some
3709 # configure entries modify them.
3711 gnu_ld
="$gnu_ld_flag"
3712 enable_threads
=$enable_threads_flag
3714 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3715 # updated in each machine entry.
3717 cpu_type
=`echo $machine | sed 's/-.*$//'`
3757 tm_file
=${cpu_type}/${cpu_type}.h
3758 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3759 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3761 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3763 # On a.out targets, we need to use collect2.
3770 # Common parts for linux and openbsd systems
3773 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3776 tm_file
=${cpu_type}/openbsd.h
3777 tmake_file
="t-libc-ok t-openbsd"
3778 # avoid surprises, always provide an xm-openbsd file
3779 xm_file
=${cpu_type}/xm-openbsd.h
3780 # don't depend on processor x-fragments as well
3782 if test x
$enable_threads = xyes
; then
3784 tmake_file
="${tmake_file} t-openbsd-thread"
3790 # Support site-specific machine types.
3792 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3793 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3794 xm_file
=${cpu_type}/xm-
$rest.h
3795 tm_file
=${cpu_type}/$rest.h
3796 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3797 then xmake_file
=${cpu_type}/x-
$rest; \
3800 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3801 then tmake_file
=${cpu_type}/t-
$rest; \
3807 a29k-
*-bsd* | a29k-
*-sym1*)
3808 tm_file
="${tm_file} a29k/unix.h"
3810 xmake_file
=a29k
/x-unix
3813 a29k-
*-udi | a29k-
*-coff)
3814 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3815 tmake_file
=a29k
/t-a29kbare
3818 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3819 tmake_file
=a29k
/t-vx29k
3820 extra_parts
="crtbegin.o crtend.o"
3821 thread_file
='vxworks'
3823 a29k-
*-*) # Default a29k environment.
3827 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3829 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3830 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3832 # GAS + IEEE_CONFORMANT
3833 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3835 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3836 xmake_file
="x-interix alpha/t-pe"
3837 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3838 if test x
$enable_threads = xyes
; then
3841 if test x
$stabs = xyes
; then
3842 tm_file
="${tm_file} dbxcoff.h"
3844 #prefix='$$INTERIX_ROOT'/usr/contrib
3845 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3847 alpha
*-*-linux*ecoff
*)
3848 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3849 target_cpu_default
="MASK_GAS"
3850 tmake_file
="alpha/t-alpha alpha/t-ieee"
3855 alpha
*-*-linux*libc1
*)
3856 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3857 target_cpu_default
="MASK_GAS"
3858 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3859 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3862 if test x
$enable_threads = xyes
; then
3867 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3868 target_cpu_default
="MASK_GAS"
3869 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3870 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3873 if test x
$enable_threads = xyes
; then
3878 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3879 target_cpu_default
="MASK_GAS"
3880 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3881 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3887 # default x-alpha is only appropriate for dec-osf.
3888 target_cpu_default
="MASK_GAS"
3889 tmake_file
="alpha/t-alpha alpha/t-ieee"
3893 if test x
$stabs = xyes
3895 tm_file
="${tm_file} dbx.h"
3897 if test x
$gas != xyes
3899 extra_passes
="mips-tfile mips-tdump"
3902 tmake_file
="alpha/t-alpha alpha/t-ieee"
3905 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3908 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3911 tm_file
="${tm_file} alpha/osf.h"
3912 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3913 # a broken tar, so we use cpio instead.
3914 install_headers_dir
=install-headers-cpio
3917 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3921 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3922 target_cpu_default
=MASK_SUPPORT_ARCH
3927 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3928 tmake_file
="alpha/t-alpha alpha/t-ieee"
3931 extra_passes
="mips-tfile mips-tdump"
3934 thread_file
='vxworks'
3937 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3938 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3939 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3940 xmake_file
=winnt
/x-winnt
3941 extra_host_objs
=oldnames.o
3942 extra_gcc_objs
="spawnv.o oldnames.o"
3943 if test x
$gnu_ld != xyes
3945 extra_programs
=ld.exe
3947 if test x
$enable_threads = xyes
; then
3953 xm_file
="${xm_file} alpha/xm-vms.h"
3954 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3957 extra_parts
="crtinit.o crtfini.o"
3959 arm-
*-coff* | armel-
*-coff*)
3961 tmake_file
=arm
/t-arm-coff
3965 tmake_file
=arm
/t-arm-coff
3966 thread_file
='vxworks'
3968 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3969 tm_file
=arm
/riscix1-1.h
3972 arm-
*-riscix*) # Acorn RISC machine
3973 if test x
$gas = xyes
3975 tm_file
=arm
/rix-gas.h
3977 tm_file
=arm
/riscix.h
3979 xmake_file
=arm
/x-riscix
3980 tmake_file
=arm
/t-riscix
3983 arm-semi-aout | armel-semi-aout
)
3985 tmake_file
=arm
/t-semi
3987 arm-semi-aof | armel-semi-aof
)
3988 tm_file
=arm
/semiaof.h
3989 tmake_file
=arm
/t-semiaof
3992 tm_file
=arm
/netbsd.h
3993 tmake_file
="t-netbsd arm/t-netbsd"
3996 arm
*-*-linux*aout
*) # ARM GNU/Linux with a.out
3999 tm_file
=arm
/linux-aout.h
4000 tmake_file
=arm
/t-linux
4003 arm
*-*-linux*oldld
*) # ARM GNU/Linux with old ELF linker
4004 xm_file
=arm
/xm-linux.h
4006 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
4009 tm_file
="arm/linux-elf26.h $tm_file"
4012 tmake_file
="t-linux arm/t-linux"
4013 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4015 case x
${enable_threads} in
4016 x | xyes | xpthreads | xposix
)
4021 arm
*-*-linux*) # ARM GNU/Linux with ELF
4022 xm_file
=arm
/xm-linux.h
4024 tm_file
="arm/linux-elf.h"
4027 tm_file
="arm/linux-elf26.h $tm_file"
4030 tmake_file
="t-linux arm/t-linux"
4031 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4033 case x
${enable_threads} in
4034 x | xyes | xpthreads | xposix
)
4039 arm
*-*-uclinux*) # ARM ucLinux
4040 tm_file
=arm
/uclinux-elf.h
4041 tmake_file
=arm
/t-arm-elf
4045 tmake_file
=arm
/t-arm-aout
4048 tm_file
=arm
/ecos-elf.h
4049 tmake_file
=arm
/t-arm-elf
4052 tm_file
=arm
/unknown-elf.h
4053 tmake_file
=arm
/t-arm-elf
4056 tm_file
=arm
/conix-elf.h
4057 tmake_file
=arm
/t-arm-elf
4060 tm_file
=arm
/unknown-elf-oabi.h
4061 tmake_file
=arm
/t-arm-elf
4070 c1-convex-
*) # Convex C1
4071 target_cpu_default
=1
4074 c2-convex-
*) # Convex C2
4075 target_cpu_default
=2
4079 target_cpu_default
=4
4083 target_cpu_default
=8
4087 target_cpu_default
=16
4092 tmake_file
=c4x
/t-c4x
4094 clipper-intergraph-clix
*)
4095 tm_file
="${tm_file} svr3.h clipper/clix.h"
4096 xm_file
=clipper
/xm-clix.h
4097 xmake_file
=clipper
/x-clix
4098 extra_headers
=va-clipper.h
4099 extra_parts
="crtbegin.o crtend.o"
4100 install_headers_dir
=install-headers-cpio
4111 tm_file
="fr30/fr30.h"
4112 tmake_file
=fr30
/t-fr30
4113 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4115 # This hasn't been upgraded to GCC 2.
4116 # fx80-alliant-*) # Alliant FX/80
4122 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4123 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4124 tmake_file
="t-linux pa/t-linux"
4125 extra_parts
="crtbegin.o crtend.o"
4128 if test x
$enable_threads = xyes
; then
4133 target_cpu_default
="MASK_PA_11"
4134 tmake_file
=pa
/t-openbsd
4137 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4138 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4139 xm_file
=pa
/xm-papro.h
4143 target_cpu_default
="MASK_PA_11"
4144 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4148 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4149 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4150 xm_file
=pa
/xm-papro.h
4154 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4158 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4159 target_cpu_default
="MASK_PA_11"
4163 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4167 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4168 xm_file
=pa
/xm-pahpux.h
4169 xmake_file
=pa
/x-pa-hpux
4170 if test x
$gas = xyes
4172 tm_file
="${tm_file} pa/gas.h"
4174 install_headers_dir
=install-headers-cpio
4177 hppa1.0
-*-hpux8.0
[0-2]*)
4178 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4179 xm_file
=pa
/xm-pahpux.h
4180 xmake_file
=pa
/x-pa-hpux
4181 if test x
$gas = xyes
4183 tm_file
="${tm_file} pa/pa-gas.h"
4185 tm_file
="pa/pa-oldas.h ${tm_file}"
4187 install_headers_dir
=install-headers-cpio
4190 hppa1.1
-*-hpux8.0
[0-2]*)
4191 target_cpu_default
="MASK_PA_11"
4192 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4193 xm_file
=pa
/xm-pahpux.h
4194 xmake_file
=pa
/x-pa-hpux
4195 if test x
$gas = xyes
4197 tm_file
="${tm_file} pa/pa-gas.h"
4199 tm_file
="pa/pa-oldas.h ${tm_file}"
4201 install_headers_dir
=install-headers-cpio
4205 target_cpu_default
="MASK_PA_11"
4206 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4207 xm_file
=pa
/xm-pahpux.h
4208 xmake_file
=pa
/x-pa-hpux
4209 if test x
$gas = xyes
4211 tm_file
="${tm_file} pa/pa-gas.h"
4213 install_headers_dir
=install-headers-cpio
4217 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4218 xm_file
=pa
/xm-pahpux.h
4219 xmake_file
=pa
/x-pa-hpux
4220 if test x
$gas = xyes
4222 tm_file
="${tm_file} pa/pa-gas.h"
4224 install_headers_dir
=install-headers-cpio
4227 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4228 target_cpu_default
="MASK_PA_11"
4229 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4231 xm_file
=pa
/xm-pahpux.h
4232 xmake_file
=pa
/x-pa-hpux
4234 if test x
$gas = xyes
4236 tm_file
="${tm_file} pa/pa-gas.h"
4238 if test x
$enable_threads = x
; then
4239 enable_threads
=$have_pthread_h
4241 case x
${enable_threads} in
4243 tmake_file
="${tmake_file} pa/t-dce-thr"
4246 install_headers_dir
=install-headers-cpio
4250 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4252 xm_file
=pa
/xm-pahpux.h
4253 xmake_file
=pa
/x-pa-hpux
4255 if test x
$gas = xyes
4257 tm_file
="${tm_file} pa/pa-gas.h"
4259 if test x
$enable_threads = x
; then
4260 enable_threads
=$have_pthread_h
4262 case x
${enable_threads} in
4264 tmake_file
="${tmake_file} pa/t-dce-thr"
4267 install_headers_dir
=install-headers-cpio
4271 target_cpu_default
="MASK_PA_11"
4272 xm_file
=pa
/xm-pa64hpux.h
4273 xmake_file
=pa
/x-pa-hpux
4275 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"
4277 tmake_file
=pa
/t-pa64
4278 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4282 tm_file
="${tm_file} pa/pa-gas.h"
4284 # if [[ x$enable_threads = x ]]; then
4285 # enable_threads=$have_pthread_h
4287 # if [[ x$enable_threads = xyes ]]; then
4289 # tmake_file="${tmake_file} pa/t-dce-thr"
4291 install_headers_dir
=install-headers-cpio
4294 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4295 target_cpu_default
="MASK_PA_11"
4296 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4298 xm_file
=pa
/xm-pahpux.h
4299 xmake_file
=pa
/x-pa-hpux
4301 if test x
$gas = xyes
4303 tm_file
="${tm_file} pa/pa-gas.h"
4305 # if test x$enable_threads = x; then
4306 # enable_threads=$have_pthread_h
4308 # if test x$enable_threads = xyes; then
4310 # tmake_file="${tmake_file} pa/t-dce-thr"
4312 install_headers_dir
=install-headers-cpio
4316 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4318 xm_file
=pa
/xm-pahpux.h
4319 xmake_file
=pa
/x-pa-hpux
4320 if test x
$gas = xyes
4322 tm_file
="${tm_file} pa/pa-gas.h"
4324 # if test x$enable_threads = x; then
4325 # enable_threads=$have_pthread_h
4327 # if test x$enable_threads = xyes; then
4329 # tmake_file="${tmake_file} pa/t-dce-thr"
4331 install_headers_dir
=install-headers-cpio
4334 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4335 target_cpu_default
="MASK_PA_11"
4336 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4337 xm_file
=pa
/xm-pahpux.h
4338 xmake_file
=pa
/x-pa-hpux
4339 if test x
$gas = xyes
4341 tm_file
="${tm_file} pa/pa-gas.h"
4343 install_headers_dir
=install-headers-cpio
4347 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4348 xm_file
=pa
/xm-pahpux.h
4349 xmake_file
=pa
/x-pa-hpux
4350 if test x
$gas = xyes
4352 tm_file
="${tm_file} pa/pa-gas.h"
4354 install_headers_dir
=install-headers-cpio
4357 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4358 target_cpu_default
="MASK_PA_11"
4359 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4360 xm_file
=pa
/xm-pahpux.h
4361 xmake_file
=pa
/x-pa-hpux
4362 if test x
$gas = xyes
4364 tm_file
="${tm_file} pa/pa-gas.h"
4366 install_headers_dir
=install-headers-cpio
4370 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4371 xm_file
=pa
/xm-pahpux.h
4372 xmake_file
=pa
/x-pa-hpux
4373 if test x
$gas = xyes
4375 tm_file
="${tm_file} pa/pa-gas.h"
4377 install_headers_dir
=install-headers-cpio
4381 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4382 target_cpu_default
="MASK_PA_11"
4386 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4387 xm_file
=pa
/xm-pampeix.h
4388 xmake_file
=pa
/x-pa-mpeix
4389 echo "You must use gas. Assuming it is already installed."
4390 install_headers_dir
=install-headers-tar
4393 i370-
*-opened*) # IBM 360/370/390 Architecture
4394 xm_file
=i370
/xm-oe.h
4396 xmake_file
=i370
/x-oe
4397 tmake_file
=i370
/t-oe
4400 xm_file
=i370
/xm-mvs.h
4402 tmake_file
=i370
/t-mvs
4405 xm_file
="xm-linux.h i370/xm-linux.h"
4407 tm_file
="i370/linux.h ${tm_file}"
4408 tmake_file
="t-linux i370/t-linux"
4409 # broken_install=yes
4410 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4411 # extra_parts="crtbegin.o crtend.o"
4415 if test x
$enable_threads = xyes
; then
4420 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4421 tm_file
=i386
/i386elf.h
4422 tmake_file
=i386
/t-i386elf
4425 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4426 if test x
$gas = xyes
4428 tm_file
=i386
/aix386.h
4429 extra_parts
="crtbegin.o crtend.o"
4430 tmake_file
=i386
/t-crtstuff
4432 tm_file
=i386
/aix386ng.h
4435 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4437 xmake_file
=i386
/x-aix
4439 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4440 xm_file
="xm-alloca.h ${xm_file}"
4441 xm_defines
="USG POSIX SMALL_ARG_MAX"
4442 xmake_file
=i386
/x-ncr3000
4443 if test x
$stabs = xyes
-a x
$gas = xyes
4445 tm_file
=i386
/sysv4gdb.h
4447 tm_file
=i386
/sysv4.h
4449 extra_parts
="crtbegin.o crtend.o"
4450 tmake_file
=i386
/t-crtpic
4454 xm_file
=i386
/xm-next.h
4455 tmake_file
=i386
/t-next
4456 xmake_file
=i386
/x-next
4457 extra_objs
=nextstep.o
4458 extra_parts
="crtbegin.o crtend.o"
4459 if test x
$enable_threads = xyes
; then
4463 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4465 if test x
$gas = xyes
4467 tm_file
=i386
/seq-gas.h
4469 tm_file
=i386
/sequent.h
4472 i
[34567]86-sequent-ptx1*)
4473 xm_defines
="USG SVR3"
4474 xmake_file
=i386
/x-sysv3
4475 tm_file
=i386
/seq-sysv3.h
4476 tmake_file
=i386
/t-crtstuff
4477 extra_parts
="crtbegin.o crtend.o"
4478 install_headers_dir
=install-headers-cpio
4480 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4481 xm_defines
="USG SVR3"
4482 xmake_file
=i386
/x-sysv3
4483 tm_file
=i386
/seq2-sysv3.h
4484 tmake_file
=i386
/t-crtstuff
4485 extra_parts
="crtbegin.o crtend.o"
4486 install_headers_dir
=install-headers-cpio
4488 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4489 xm_file
="xm-alloca.h ${xm_file}"
4490 xm_defines
="USG POSIX SMALL_ARG_MAX"
4492 tm_file
=i386
/ptx4-i.h
4494 extra_parts
="crtbegin.o crtend.o"
4495 install_headers_dir
=install-headers-cpio
4497 i386-sun-sunos
*) # Sun i386 roadrunner
4502 i
[34567]86-wrs-vxworks*)
4503 tm_file
=i386
/vxi386.h
4504 tmake_file
=i386
/t-i386bare
4505 thread_file
='vxworks'
4508 tm_file
=i386
/i386-aout.h
4509 tmake_file
=i386
/t-i386bare
4511 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4512 xm_file
=i386
/xm-beos.h
4513 tmake_file
='i386/t-beos i386/t-crtpic'
4514 tm_file
=i386
/beos-elf.h
4515 xmake_file
=i386
/x-beos
4516 extra_parts
='crtbegin.o crtend.o'
4518 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4519 tm_file
=i386
/bsd386.h
4520 # tmake_file=t-libc-ok
4523 tm_file
=i386
/386bsd.h
4524 # tmake_file=t-libc-ok
4525 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4528 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4529 tm_file
="i386/freebsd.h i386/perform.h"
4530 tmake_file
=t-freebsd
4532 i
[34567]86-*-freebsd*)
4533 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4534 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4535 tmake_file
=t-freebsd
4539 case x
${enable_threads} in
4540 xyes | xpthreads | xposix
)
4542 tmake_file
="${tmake_file} t-freebsd-thread"
4546 i
[34567]86-*-netbsd*)
4547 tm_file
=i386
/netbsd.h
4551 i
[34567]86-*-openbsd*)
4552 # we need collect2 until our bug is fixed...
4556 tm_file
=i386
/i386-coff.h
4557 tmake_file
=i386
/t-i386bare
4559 i
[34567]86-*-isc*) # 80386 running ISC system
4560 xm_file
="${xm_file} i386/xm-isc.h"
4561 xm_defines
="USG SVR3"
4563 i
[34567]86-*-isc[34]*)
4564 xmake_file
=i386
/x-isc3
4567 xmake_file
=i386
/x-isc
4570 if test x
$gas = xyes
-a x
$stabs = xyes
4572 tm_file
=i386
/iscdbx.h
4573 tmake_file
=i386
/t-svr3dbx
4574 extra_parts
="svr3.ifile svr3z.ifile"
4576 tm_file
=i386
/isccoff.h
4577 tmake_file
=i386
/t-crtstuff
4578 extra_parts
="crtbegin.o crtend.o"
4580 tmake_file
="$tmake_file i386/t-i386bare"
4581 install_headers_dir
=install-headers-cpio
4583 i
[34567]86-*-linux*oldld
*) # Intel 80386's running GNU/Linux
4585 xmake_file
=x-linux-aout
4586 tmake_file
="t-linux-aout i386/t-crtstuff"
4587 tm_file
=i386
/linux-oldld.h
4591 i
[34567]86-*-linux*aout
*) # Intel 80386's running GNU/Linux
4592 xmake_file
=x-linux-aout
4593 tmake_file
="t-linux-aout i386/t-crtstuff"
4594 tm_file
=i386
/linux-aout.h
4598 i
[34567]86-*-linux*libc1
) # Intel 80386's running GNU/Linux
4599 # GNU/Linux C library 5
4601 tm_file
=i386
/linux.h
4602 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4603 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4606 if test x
$enable_threads = xyes
; then
4607 thread_file
='single'
4610 i
[34567]86-*-linux*) # Intel 80386's running GNU/Linux
4611 # aka GNU/Linux C library 6
4613 tm_file
=i386
/linux.h
4614 tmake_file
="t-linux i386/t-crtstuff"
4615 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4618 if test x
$enable_threads = xyes
; then
4625 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4626 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4629 i
[34567]86-pc-msdosdjgpp*)
4630 xm_file
=i386
/xm-djgpp.h
4631 tm_file
=i386
/djgpp.h
4632 tmake_file
=i386
/t-djgpp
4633 xmake_file
=i386
/x-djgpp
4638 case $host in *pc-msdosdjgpp
*)
4643 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4645 tmake_file
=t-libc-ok
4649 i
[34567]86-*-lynxos*)
4650 if test x
$gas = xyes
4654 tm_file
=i386
/lynx-ng.h
4656 xm_file
=i386
/xm-lynx.h
4657 tmake_file
=i386
/t-i386bare
4662 # tmake_file=t-libc-ok
4665 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4666 if test x
$elf = xyes
4668 tm_file
=i386
/osfelf.h
4671 tm_file
=i386
/osfrose.h
4674 xm_file
="i386/xm-osf.h ${xm_file}"
4675 xmake_file
=i386
/x-osfrose
4676 tmake_file
=i386
/t-osf
4677 extra_objs
=halfpic.o
4679 i
[34567]86-go32-rtems*)
4681 xm_file
=i386
/xm-go32.h
4682 tm_file
=i386
/go32-rtems.h
4683 tmake_file
="i386/t-go32 t-rtems"
4685 i
[34567]86-*-rtemscoff*)
4687 tm_file
=i386
/rtems.h
4688 tmake_file
="i386/t-i386bare t-rtems"
4690 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4692 tm_file
=i386
/rtemself.h
4693 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4694 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4696 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4697 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4698 xm_defines
="USG SVR3"
4699 xmake_file
=i386
/x-sco5
4700 install_headers_dir
=install-headers-cpio
4702 if test x
$gas = xyes
4704 tm_file
="i386/sco5gas.h ${tm_file}"
4705 tmake_file
=i386
/t-sco5gas
4707 tmake_file
=i386
/t-sco5
4709 tmake_file
="$tmake_file i386/t-i386bare"
4710 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4712 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4713 xm_file
="${xm_file} i386/xm-sco.h"
4714 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4715 xmake_file
=i386
/x-sco4
4716 install_headers_dir
=install-headers-cpio
4717 if test x
$stabs = xyes
4719 tm_file
=i386
/sco4dbx.h
4720 tmake_file
=i386
/t-svr3dbx
4721 extra_parts
="svr3.ifile svr3z.rfile"
4724 tmake_file
=i386
/t-crtstuff
4725 extra_parts
="crtbegin.o crtend.o"
4727 tmake_file
="$tmake_file i386/t-i386bare"
4728 # The default EAFS filesystem supports long file names.
4729 # Truncating the target makes $host != $target which
4730 # makes gcc think it is doing a cross-compile.
4731 # truncate_target=yes
4733 i
[34567]86-*-sco*) # 80386 running SCO system
4734 xm_file
=i386
/xm-sco.h
4735 xmake_file
=i386
/x-sco
4736 install_headers_dir
=install-headers-cpio
4737 if test x
$stabs = xyes
4739 tm_file
=i386
/scodbx.h
4740 tmake_file
=i386
/t-svr3dbx
4741 extra_parts
="svr3.ifile svr3z.rfile"
4744 extra_parts
="crtbegin.o crtend.o"
4745 tmake_file
=i386
/t-crtstuff
4747 tmake_file
="$tmake_file i386/t-i386bare"
4750 i
[34567]86-*-solaris2*)
4751 xm_file
="xm-alloca.h ${xm_file}"
4752 xm_defines
="USG POSIX SMALL_ARG_MAX"
4754 if test x
$gas = xyes
; then
4755 # Only needed if gas does not support -s
4756 tm_file
="i386/sol2gas.h ${tm_file}"
4758 tmake_file
="i386/t-i386bare i386/t-sol2"
4759 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4761 if test x
${enable_threads} = x
; then
4762 enable_threads
=$have_pthread_h
4763 if test x
${enable_threads} = x
; then
4764 enable_threads
=$have_thread_h
4767 if test x
${enable_threads} = xyes
; then
4768 if test x
${have_pthread_h} = xyes
; then
4771 thread_file
='solaris'
4775 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4776 xm_file
="xm-alloca.h ${xm_file}"
4777 xm_defines
="USG POSIX"
4778 tm_file
=i386
/sysv5.h
4779 if test x
$stabs = xyes
4781 tm_file
="${tm_file} dbx.h"
4783 tmake_file
="i386/t-i386bare i386/t-crtpic"
4785 extra_parts
="crtbegin.o crtend.o"
4786 if test x
$enable_threads = xyes
; then
4790 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4791 xm_file
="xm-alloca.h ${xm_file}"
4792 xm_defines
="USG POSIX SMALL_ARG_MAX"
4793 tm_file
=i386
/sysv4.h
4794 if test x
$stabs = xyes
4796 tm_file
="${tm_file} dbx.h"
4798 tmake_file
="i386/t-i386bare i386/t-crtpic"
4800 extra_parts
="crtbegin.o crtend.o"
4802 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4803 xm_file
="xm-alloca.h ${xm_file}"
4804 xm_defines
="USG POSIX"
4806 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4808 extra_parts
="crtbegin.o crtend.o"
4809 install_headers_dir
=install-headers-cpio
4811 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4813 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4814 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4815 if test x
$stabs = xyes
4817 tm_file
=i386
/osf1elfgdb.h
4819 tm_file
=i386
/osf1elf.h
4821 tmake_file
=i386
/t-osf1elf
4822 xmake_file
=i386
/x-osf1elf
4823 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4825 i
[34567]86-*-sysv*) # Intel 80386's running system V
4826 xm_defines
="USG SVR3"
4827 xmake_file
=i386
/x-sysv3
4828 if test x
$gas = xyes
4830 if test x
$stabs = xyes
4832 tm_file
=i386
/svr3dbx.h
4833 tmake_file
=i386
/t-svr3dbx
4834 extra_parts
="svr3.ifile svr3z.rfile"
4836 tm_file
=i386
/svr3gas.h
4837 extra_parts
="crtbegin.o crtend.o"
4838 tmake_file
=i386
/t-crtstuff
4841 tm_file
=i386
/sysv3.h
4842 extra_parts
="crtbegin.o crtend.o"
4843 tmake_file
=i386
/t-crtstuff
4845 tmake_file
="$tmake_file i386/t-crtpic"
4847 i386-
*-vsta) # Intel 80386's running VSTa kernel
4848 xm_file
="${xm_file} i386/xm-vsta.h"
4850 tmake_file
=i386
/t-vsta
4851 xmake_file
=i386
/x-vsta
4854 xm_file
="${xm_file} i386/xm-cygwin.h"
4855 tmake_file
=i386
/t-cygwin
4856 tm_file
=i386
/win32.h
4857 xmake_file
=i386
/x-cygwin
4859 if test x
$enable_threads = xyes
; then
4864 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4865 xm_file
="${xm_file} i386/xm-cygwin.h"
4866 tmake_file
=i386
/t-cygwin
4867 tm_file
=i386
/cygwin.h
4868 xmake_file
=i386
/x-cygwin
4870 if test x
$enable_threads = xyes
; then
4875 i
[34567]86-*-mingw32*)
4876 tm_file
=i386
/mingw32.h
4877 xm_file
="${xm_file} i386/xm-mingw32.h"
4878 tmake_file
="i386/t-cygwin i386/t-mingw32"
4880 xmake_file
=i386
/x-cygwin
4881 if test x
$enable_threads = xyes
; then
4888 *minwg32crt
* |
*mingw32
*)
4889 tm_file
="${tm_file} i386/crtdll.h"
4895 xm_file
="${xm_file} i386/xm-uwin.h"
4896 xm_defines
="USG NO_STAB_H"
4897 tmake_file
="i386/t-cygwin i386/t-uwin"
4899 xmake_file
=i386
/x-cygwin
4900 if test x
$enable_threads = xyes
; then
4905 i
[34567]86-*-interix*)
4906 tm_file
="i386/i386-interix.h interix.h"
4907 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4909 tmake_file
="i386/t-interix"
4910 extra_objs
=interix.o
4911 xmake_file
=x-interix
4912 if test x
$enable_threads = xyes
; then
4915 if test x
$stabs = xyes
; then
4916 tm_file
="${tm_file} dbxcoff.h"
4919 i
[34567]86-*-winnt3*)
4920 tm_file
=i386
/win-nt.h
4921 out_file
=i386
/i386.c
4922 xm_file
="xm-winnt.h ${xm_file}"
4923 xmake_file
=winnt
/x-winnt
4924 tmake_file
=i386
/t-winnt
4925 extra_host_objs
="winnt.o oldnames.o"
4926 extra_gcc_objs
="spawnv.o oldnames.o"
4927 if test x
$gnu_ld != xyes
4929 extra_programs
=ld.exe
4931 if test x
$enable_threads = xyes
; then
4935 i
[34567]86-dg-dgux*)
4936 xm_file
="xm-alloca.h ${xm_file}"
4937 xm_defines
="USG POSIX"
4938 out_file
=i386
/dgux.c
4940 tmake_file
=i386
/t-dgux
4941 xmake_file
=i386
/x-dgux
4942 install_headers_dir
=install-headers-cpio
4944 i860-alliant-
*) # Alliant FX/2800
4945 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4946 xm_file
="${xm_file}"
4947 xmake_file
=i860
/x-fx2800
4948 tmake_file
=i860
/t-fx2800
4949 extra_parts
="crtbegin.o crtend.o"
4952 tm_file
="${tm_file} i860/bsd.h"
4953 if test x
$gas = xyes
4955 tm_file
="${tm_file} i860/bsd-gas.h"
4960 tm_file
="${tm_file} i860/mach.h"
4961 tmake_file
=t-libc-ok
4963 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4964 tm_file
="${tm_file} svr3.h i860/paragon.h"
4965 xm_defines
="USG SVR3"
4969 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4970 xm_defines
="USG SVR3"
4971 xmake_file
=i860
/x-sysv3
4972 extra_parts
="crtbegin.o crtend.o"
4975 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4976 xm_defines
="USG SVR3"
4977 xmake_file
=i860
/x-sysv4
4979 extra_parts
="crtbegin.o crtend.o"
4981 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4982 tm_file
="${tm_file} i960/vx960.h"
4983 tmake_file
=i960
/t-vxworks960
4985 thread_file
='vxworks'
4987 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4988 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4989 tmake_file
=i960
/t-vxworks960
4991 thread_file
='vxworks'
4994 tm_file
="${tm_file} i960/vx960.h"
4995 tmake_file
=i960
/t-vxworks960
4997 thread_file
='vxworks'
5000 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
5001 tmake_file
=i960
/t-960bare
5005 tmake_file
="i960/t-960bare t-rtems"
5006 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
5009 i960-
*-*) # Default i960 environment.
5014 tmake_file
="ia64/t-ia64"
5015 target_cpu_default
="0"
5016 if test x
$gas = xyes
5018 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
5020 if test x
$gnu_ld = xyes
5022 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
5027 tm_file
=ia64
/linux.h
5028 tmake_file
="t-linux ia64/t-ia64"
5029 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
5030 if test x
$enable_threads = xyes
; then
5036 extra_parts
="crtinit.o crtfini.o"
5038 m68000-convergent-sysv
*)
5040 xm_file
="m68k/xm-3b1.h ${xm_file}"
5043 extra_headers
=math-68881.h
5045 m68000-hp-bsd
*) # HP 9000/200 running BSD
5046 tm_file
=m68k
/hp2bsd.h
5047 xmake_file
=m68k
/x-hp2bsd
5049 extra_headers
=math-68881.h
5051 m68000-hp-hpux
*) # HP 9000 series 300
5052 xm_file
="xm-alloca.h ${xm_file}"
5054 if test x
$gas = xyes
5056 xmake_file
=m68k
/x-hp320g
5057 tm_file
=m68k
/hp310g.h
5059 xmake_file
=m68k
/x-hp320
5060 tm_file
=m68k
/hp310.h
5062 install_headers_dir
=install-headers-cpio
5064 extra_headers
=math-68881.h
5069 extra_headers
=math-68881.h
5072 tm_file
=m68k
/sun2o4.h
5074 extra_headers
=math-68881.h
5077 xm_file
="m68k/xm-3b1.h ${xm_file}"
5079 if test x
$gas = xyes
5086 extra_headers
=math-68881.h
5088 m68k-apple-aux
*) # Apple Macintosh running A/UX
5089 xm_defines
="USG AUX"
5090 tmake_file
=m68k
/t-aux
5091 install_headers_dir
=install-headers-cpio
5092 extra_headers
=math-68881.h
5093 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5095 if test "$gnu_ld" = yes
5097 tm_file
="${tm_file} m68k/auxgld.h"
5099 tm_file
="${tm_file} m68k/auxld.h"
5101 if test "$gas" = yes
5103 tm_file
="${tm_file} m68k/auxgas.h"
5105 tm_file
="${tm_file} m68k/auxas.h"
5107 tm_file
="${tm_file} m68k/a-ux.h"
5111 tm_file
=m68k
/apollo68.h
5112 xmake_file
=m68k
/x-apollo68
5114 extra_headers
=math-68881.h
5117 m68k-altos-sysv
*) # Altos 3068
5118 if test x
$gas = xyes
5120 tm_file
=m68k
/altos3068.h
5123 echo "The Altos is supported only with the GNU assembler" 1>&2
5126 extra_headers
=math-68881.h
5128 m68k-bull-sysv
*) # Bull DPX/2
5129 if test x
$gas = xyes
5131 if test x
$stabs = xyes
5133 tm_file
=m68k
/dpx2cdbx.h
5135 tm_file
=m68k
/dpx2g.h
5140 xm_file
="xm-alloca.h ${xm_file}"
5142 xmake_file
=m68k
/x-dpx2
5144 extra_headers
=math-68881.h
5146 m68k-atari-sysv4
*) # Atari variant of V.4.
5147 tm_file
=m68k
/atari.h
5148 xm_file
="xm-alloca.h ${xm_file}"
5149 xm_defines
="USG FULL_PROTOTYPES"
5151 extra_parts
="crtbegin.o crtend.o"
5152 extra_headers
=math-68881.h
5155 m68k-motorola-sysv
*)
5156 tm_file
=m68k
/mot3300.h
5157 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5158 if test x
$gas = xyes
5160 xmake_file
=m68k
/x-mot3300-gas
5161 if test x
$gnu_ld = xyes
5163 tmake_file
=m68k
/t-mot3300-gald
5165 tmake_file
=m68k
/t-mot3300-gas
5169 xmake_file
=m68k
/x-mot3300
5170 if test x
$gnu_ld = xyes
5172 tmake_file
=m68k
/t-mot3300-gld
5174 tmake_file
=m68k
/t-mot3300
5178 gdb_needs_out_file_path
=yes
5179 extra_parts
="crt0.o mcrt0.o"
5180 extra_headers
=math-68881.h
5183 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5184 tm_file
=m68k
/tower-as.h
5185 xm_defines
="USG SVR3"
5186 xmake_file
=m68k
/x-tower
5187 extra_parts
="crtbegin.o crtend.o"
5188 extra_headers
=math-68881.h
5191 tm_file
=m68k
/plexus.h
5192 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5195 extra_headers
=math-68881.h
5199 xm_file
="xm-alloca.h ${xm_file}"
5201 extra_headers
=math-68881.h
5204 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5205 xm_defines
="USG unos"
5206 xmake_file
=m68k
/x-crds
5209 extra_headers
=math-68881.h
5211 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5213 xm_file
="xm-alloca.h ${xm_file}"
5214 xm_defines
="USG FULL_PROTOTYPES"
5215 xmake_file
=m68k
/x-amix
5217 extra_parts
="crtbegin.o crtend.o"
5218 extra_headers
=math-68881.h
5222 tm_file
=m68k
/ccur-GAS.h
5223 xmake_file
=m68k
/x-ccur
5224 extra_headers
=math-68881.h
5228 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5229 tm_file
=m68k
/hp3bsd44.h
5230 xmake_file
=m68k
/x-hp3bsd44
5232 extra_headers
=math-68881.h
5235 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5236 tm_file
=m68k
/hp3bsd.h
5238 extra_headers
=math-68881.h
5242 if test x
$with_fp = xno
5244 tm_file
=m68k
/isi-nfp.h
5250 extra_headers
=math-68881.h
5252 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5253 xm_file
="xm-alloca.h ${xm_file}"
5255 if test x
$gas = xyes
5257 xmake_file
=m68k
/x-hp320g
5258 tm_file
=m68k
/hp320g.h
5260 xmake_file
=m68k
/x-hp320
5261 tm_file
=m68k
/hpux7.h
5263 install_headers_dir
=install-headers-cpio
5265 extra_headers
=math-68881.h
5268 m68k-hp-hpux
*) # HP 9000 series 300
5269 xm_file
="xm-alloca.h ${xm_file}"
5271 if test x
$gas = xyes
5273 xmake_file
=m68k
/x-hp320g
5274 tm_file
=m68k
/hp320g.h
5276 xmake_file
=m68k
/x-hp320
5277 tm_file
=m68k
/hp320.h
5279 install_headers_dir
=install-headers-cpio
5281 extra_headers
=math-68881.h
5285 tm_file
=m68k
/sun3mach.h
5287 extra_headers
=math-68881.h
5291 if test x
$gas = xyes
5293 tm_file
=m68k
/news3gas.h
5295 tm_file
=m68k
/news3.h
5298 extra_headers
=math-68881.h
5301 m68k-sony-bsd
* | m68k-sony-newsos
*)
5302 if test x
$gas = xyes
5304 tm_file
=m68k
/newsgas.h
5309 extra_headers
=math-68881.h
5312 m68k-next-nextstep2
*)
5313 tm_file
=m68k
/next21.h
5314 xm_file
="m68k/xm-next.h ${xm_file}"
5315 tmake_file
=m68k
/t-next
5316 xmake_file
=m68k
/x-next
5317 extra_objs
=nextstep.o
5318 extra_headers
=math-68881.h
5322 m68k-next-nextstep
[34]*)
5324 xm_file
="m68k/xm-next.h ${xm_file}"
5325 tmake_file
=m68k
/t-next
5326 xmake_file
=m68k
/x-next
5327 extra_objs
=nextstep.o
5328 extra_parts
="crtbegin.o crtend.o"
5329 extra_headers
=math-68881.h
5331 if test x
$enable_threads = xyes
; then
5336 if test x
$with_fp = xno
5338 tm_file
=m68k
/sun3n3.h
5340 tm_file
=m68k
/sun3o3.h
5344 extra_headers
=math-68881.h
5346 m68k-sun-sunos
*) # For SunOS 4 (the default).
5347 if test x
$with_fp = xno
5349 tm_file
=m68k
/sun3n.h
5355 extra_headers
=math-68881.h
5358 tm_file
=m68k
/vxm68k.h
5359 tmake_file
=m68k
/t-vxworks68
5360 extra_headers
=math-68881.h
5361 thread_file
='vxworks'
5365 tmake_file
=m68k
/t-m68kbare
5366 tm_file
="m68k/m68k-aout.h libgloss.h"
5367 extra_headers
=math-68881.h
5371 tmake_file
=m68k
/t-m68kbare
5372 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5373 extra_headers
=math-68881.h
5376 m68020-
*-elf* | m68k-
*-elf*)
5377 tm_file
="m68k/m68020-elf.h"
5378 xm_file
=m68k
/xm-m68kv.h
5379 tmake_file
=m68k
/t-m68kelf
5380 header_files
=math-68881.h
5383 if test x
$gas = xyes
5387 tm_file
=m68k
/lynx-ng.h
5389 xm_file
=m68k
/xm-lynx.h
5391 tmake_file
=m68k
/t-lynx
5392 extra_headers
=math-68881.h
5396 tm_file
=m68k
/netbsd.h
5403 # we need collect2 until our bug is fixed...
5406 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5407 xm_file
="xm-alloca.h ${xm_file}"
5409 xmake_file
=m68k
/x-m68kv
5410 extra_parts
="crtbegin.o crtend.o"
5411 extra_headers
=math-68881.h
5414 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5415 tm_file
=m68k
/m68kv4.h
5416 xm_file
="xm-alloca.h ${xm_file}"
5419 extra_parts
="crtbegin.o crtend.o"
5420 extra_headers
=math-68881.h
5423 m68k-
*-linux*aout
*) # Motorola m68k's running GNU/Linux
5426 tm_file
=m68k
/linux-aout.h
5427 tmake_file
="t-linux-aout m68k/t-linux-aout"
5428 extra_headers
=math-68881.h
5432 m68k-
*-linux*libc1
) # Motorola m68k's running GNU/Linux
5433 # with ELF format using the
5434 # GNU/Linux C library 5
5436 tm_file
=m68k
/linux.h
5437 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5438 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5439 extra_headers
=math-68881.h
5443 m68k-
*-linux*) # Motorola m68k's running GNU/Linux
5444 # with ELF format using glibc 2
5445 # aka the GNU/Linux C library 6.
5447 tm_file
=m68k
/linux.h
5448 tmake_file
="t-linux m68k/t-linux"
5449 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5450 extra_headers
=math-68881.h
5453 if test x
$enable_threads = xyes
; then
5458 tmake_file
=m68k
/t-m68kbare
5459 tm_file
=m68k
/m68k-psos.h
5460 extra_headers
=math-68881.h
5464 tmake_file
="m68k/t-m68kbare t-rtems"
5465 tm_file
=m68k
/rtems.h
5466 extra_headers
=math-68881.h
5469 m68k-
*-rtemself*|m68k-
*-rtems*)
5470 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5471 tm_file
=m68k
/rtemself.h
5472 extra_headers
=math-68881.h
5478 tm_file
=m88k
/dguxbcs.h
5479 tmake_file
=m88k
/t-dguxbcs
5483 tmake_file
=m88k
/t-dgux
5486 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5487 xmake_file
=m88k
/x-dgux
5488 if test x
$gas = xyes
5490 tmake_file
=m88k
/t-dgux-gas
5493 m88k-dolphin-sysv3
*)
5494 tm_file
=m88k
/dolph.h
5495 extra_parts
="crtbegin.o crtend.o"
5496 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5497 xmake_file
=m88k
/x-dolph
5498 if test x
$gas = xyes
5500 tmake_file
=m88k
/t-m88k-gas
5503 m88k-tektronix-sysv3
)
5504 tm_file
=m88k
/tekXD88.h
5505 extra_parts
="crtbegin.o crtend.o"
5506 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5507 xmake_file
=m88k
/x-tekXD88
5508 if test x
$gas = xyes
5510 tmake_file
=m88k
/t-m88k-gas
5514 tm_file
=m88k
/m88k-aout.h
5517 tm_file
=m88k
/m88k-coff.h
5518 tmake_file
=m88k
/t-bug
5522 extra_parts
="crtbegin.o crtend.o"
5523 if test x
$gas = xyes
5525 tmake_file
=m88k
/t-luna-gas
5527 tmake_file
=m88k
/t-luna
5531 tmake_file
="${tmake_file} m88k/t-luna-gas"
5532 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5533 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5536 tm_file
=m88k
/sysv3.h
5537 extra_parts
="crtbegin.o crtend.o"
5538 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5539 xmake_file
=m88k
/x-sysv3
5540 if test x
$gas = xyes
5542 tmake_file
=m88k
/t-m88k-gas
5546 tm_file
=m88k
/sysv4.h
5547 extra_parts
="crtbegin.o crtend.o"
5548 xmake_file
=m88k
/x-sysv4
5549 tmake_file
=m88k
/t-sysv4
5552 tm_file
=mcore
/mcore-elf.h
5553 tmake_file
=mcore
/t-mcore
5556 tm_file
=mcore
/mcore-pe.h
5557 tmake_file
=mcore
/t-mcore-pe
5559 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5560 if test "x$gnu_ld" = xyes
5562 tm_file
="mips/iris6.h mips/iris6gld.h"
5564 tm_file
=mips
/iris6.h
5566 tmake_file
=mips
/t-iris6
5567 xm_file
=mips
/xm-iris6.h
5568 xmake_file
=mips
/x-iris6
5569 # if test x$enable_threads = xyes; then
5570 # thread_file='irix'
5574 tm_file
="mips/elf.h mips/vxworks.h"
5575 tmake_file
=mips
/t-ecoff
5578 extra_parts
="crtbegin.o crtend.o"
5579 thread_file
='vxworks'
5581 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5582 tm_file
="mips/iris6.h mips/cross64.h"
5584 xm_file
="mips/xm-iris5.h"
5585 xmake_file
=mips
/x-iris
5586 tmake_file
=mips
/t-cross64
5587 # See comment in mips/iris[56].h files.
5589 # if test x$enable_threads = xyes; then
5590 # thread_file='irix'
5594 if test x
$gas = xyes
5596 if test x
$stabs = xyes
5598 tm_file
=mips
/iris5gdb.h
5600 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5603 tm_file
=mips
/sni-svr4.h
5606 xmake_file
=mips
/x-sni-svr4
5607 tmake_file
=mips
/t-mips-gas
5608 if test x
$gnu_ld != xyes
5613 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5614 if test x
$gas = xyes
5616 tm_file
="mips/iris5.h mips/iris5gas.h"
5617 if test x
$stabs = xyes
5619 tm_file
="${tm_file} dbx.h"
5622 tm_file
=mips
/iris5.h
5625 xm_file
="mips/xm-iris5.h"
5626 xmake_file
=mips
/x-iris
5627 # mips-tfile doesn't work yet
5628 tmake_file
=mips
/t-mips-gas
5629 # See comment in mips/iris5.h file.
5631 # if test x$enable_threads = xyes; then
5632 # thread_file='irix'
5635 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5636 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5637 if test x
$stabs = xyes
; then
5638 tm_file
="${tm_file} dbx.h"
5641 xmake_file
=mips
/x-iris
5642 if test x
$gas = xyes
5644 tmake_file
=mips
/t-mips-gas
5646 extra_passes
="mips-tfile mips-tdump"
5648 if test x
$gnu_ld != xyes
5652 # if test x$enable_threads = xyes; then
5653 # thread_file='irix'
5656 mips-sgi-irix4
*) # Mostly like a MIPS.
5657 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5658 if test x
$stabs = xyes
; then
5659 tm_file
="${tm_file} dbx.h"
5662 xmake_file
=mips
/x-iris
5663 if test x
$gas = xyes
5665 tmake_file
=mips
/t-mips-gas
5667 extra_passes
="mips-tfile mips-tdump"
5669 if test x
$gnu_ld != xyes
5673 # if test x$enable_threads = xyes; then
5674 # thread_file='irix'
5677 mips-sgi-
*) # Mostly like a MIPS.
5678 tm_file
="mips/iris3.h ${tm_file}"
5679 if test x
$stabs = xyes
; then
5680 tm_file
="${tm_file} dbx.h"
5683 xmake_file
=mips
/x-iris3
5684 if test x
$gas = xyes
5686 tmake_file
=mips
/t-mips-gas
5688 extra_passes
="mips-tfile mips-tdump"
5690 if test x
$gnu_ld != xyes
5695 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5696 tm_file
="mips/osfrose.h ${tm_file}"
5697 xmake_file
=mips
/x-osfrose
5698 tmake_file
=mips
/t-osfrose
5699 extra_objs
=halfpic.o
5702 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5703 tm_file
=mips
/dec-osf1.h
5704 if test x
$stabs = xyes
; then
5705 tm_file
="${tm_file} dbx.h"
5707 xmake_file
=mips
/x-dec-osf1
5708 if test x
$gas = xyes
5710 tmake_file
=mips
/t-mips-gas
5712 tmake_file
=mips
/t-ultrix
5713 extra_passes
="mips-tfile mips-tdump"
5715 if test x
$gnu_ld != xyes
5720 mips-dec-bsd
*) # Decstation running 4.4 BSD
5721 tm_file
=mips
/dec-bsd.h
5722 if test x
$gas = xyes
5724 tmake_file
=mips
/t-mips-gas
5726 tmake_file
=mips
/t-ultrix
5727 extra_passes
="mips-tfile mips-tdump"
5729 if test x
$gnu_ld != xyes
5734 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5735 tm_file
=mips
/netbsd.h
5736 # On NetBSD, the headers are already okay, except for math.h.
5739 mips
*-*-linux*) # Linux MIPS, either endian.
5742 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5743 *) tm_file
="mips/elf.h mips/linux.h" ;;
5746 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5749 if test x
$enable_threads = xyes
; then
5753 mips
*el-
*-openbsd*) # mips little endian
5754 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5756 mips
*-*-openbsd*) # mips big endian
5757 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5758 tm_file
="mips/openbsd-be.h ${tm_file}"
5760 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5761 tm_file
="mips/news4.h ${tm_file}"
5762 if test x
$stabs = xyes
; then
5763 tm_file
="${tm_file} dbx.h"
5765 if test x
$gas = xyes
5767 tmake_file
=mips
/t-mips-gas
5769 extra_passes
="mips-tfile mips-tdump"
5771 if test x
$gnu_ld != xyes
5775 xmake_file
=mips
/x-sony
5777 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5778 # That is based on svr4.
5779 # t-svr4 is not right because this system doesn't use ELF.
5780 tm_file
="mips/news5.h ${tm_file}"
5781 if test x
$stabs = xyes
; then
5782 tm_file
="${tm_file} dbx.h"
5785 if test x
$gas = xyes
5787 tmake_file
=mips
/t-mips-gas
5789 extra_passes
="mips-tfile mips-tdump"
5791 if test x
$gnu_ld != xyes
5796 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5797 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5798 if test x
$stabs = xyes
; then
5799 tm_file
="${tm_file} dbx.h"
5802 xmake_file
=mips
/x-sysv
5803 if test x
$gas = xyes
5805 tmake_file
=mips
/t-mips-gas
5806 extra_parts
="crtbegin.o crtend.o"
5808 tmake_file
=mips
/t-mips
5809 extra_passes
="mips-tfile mips-tdump"
5811 if test x
$gnu_ld != xyes
5816 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5817 tm_file
="mips/ultrix.h ${tm_file}"
5818 if test x
$stabs = xyes
; then
5819 tm_file
="${tm_file} dbx.h"
5821 xmake_file
=mips
/x-ultrix
5822 if test x
$gas = xyes
5824 tmake_file
=mips
/t-mips-gas
5826 tmake_file
=mips
/t-ultrix
5827 extra_passes
="mips-tfile mips-tdump"
5829 if test x
$gnu_ld != xyes
5834 mips-
*-riscos[56789]bsd
*)
5835 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5836 if test x
$stabs = xyes
; then
5837 tm_file
="${tm_file} dbx.h"
5839 if test x
$gas = xyes
5841 tmake_file
=mips
/t-bsd-gas
5843 tmake_file
=mips
/t-bsd
5844 extra_passes
="mips-tfile mips-tdump"
5846 if test x
$gnu_ld != xyes
5851 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5852 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5853 if test x
$stabs = xyes
; then
5854 tm_file
="${tm_file} dbx.h"
5856 if test x
$gas = xyes
5858 tmake_file
=mips
/t-bsd-gas
5860 tmake_file
=mips
/t-bsd
5861 extra_passes
="mips-tfile mips-tdump"
5863 if test x
$gnu_ld != xyes
5868 mips-
*-riscos[56789]sysv4
*)
5869 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5870 if test x
$stabs = xyes
; then
5871 tm_file
="${tm_file} dbx.h"
5873 xmake_file
=mips
/x-sysv
5874 if test x
$gas = xyes
5876 tmake_file
=mips
/t-svr4-gas
5878 tmake_file
=mips
/t-svr4
5879 extra_passes
="mips-tfile mips-tdump"
5881 if test x
$gnu_ld != xyes
5886 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5887 tm_file
="mips/svr4-4.h ${tm_file}"
5888 if test x
$stabs = xyes
; then
5889 tm_file
="${tm_file} dbx.h"
5892 xmake_file
=mips
/x-sysv
5893 if test x
$gas = xyes
5895 tmake_file
=mips
/t-svr4-gas
5897 tmake_file
=mips
/t-svr4
5898 extra_passes
="mips-tfile mips-tdump"
5900 if test x
$gnu_ld != xyes
5905 mips-
*-riscos[56789]sysv
*)
5906 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5907 if test x
$stabs = xyes
; then
5908 tm_file
="${tm_file} dbx.h"
5911 xmake_file
=mips
/x-sysv
5912 if test x
$gas = xyes
5914 tmake_file
=mips
/t-svr3-gas
5916 tmake_file
=mips
/t-svr3
5917 extra_passes
="mips-tfile mips-tdump"
5919 if test x
$gnu_ld != xyes
5924 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5925 tm_file
="mips/svr3-4.h ${tm_file}"
5926 if test x
$stabs = xyes
; then
5927 tm_file
="${tm_file} dbx.h"
5930 xmake_file
=mips
/x-sysv
5931 if test x
$gas = xyes
5933 tmake_file
=mips
/t-svr3-gas
5935 tmake_file
=mips
/t-svr3
5936 extra_passes
="mips-tfile mips-tdump"
5938 if test x
$gnu_ld != xyes
5943 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5944 tm_file
=mips
/mips-5.h
5945 if test x
$stabs = xyes
; then
5946 tm_file
="${tm_file} dbx.h"
5948 if test x
$gas = xyes
5950 tmake_file
=mips
/t-mips-gas
5952 extra_passes
="mips-tfile mips-tdump"
5954 if test x
$gnu_ld != xyes
5962 tm_file
=mips
/ecoffl.h
5963 if test x
$stabs = xyes
; then
5964 tm_file
="${tm_file} dbx.h"
5966 tmake_file
=mips
/t-ecoff
5969 tm_file
="gofast.h mips/ecoff.h"
5970 if test x
$stabs = xyes
; then
5971 tm_file
="${tm_file} dbx.h"
5973 tmake_file
=mips
/t-ecoff
5976 tm_file
="mips/elfl.h"
5977 tmake_file
=mips
/t-elf
5980 tm_file
="mips/elf.h"
5981 tmake_file
=mips
/t-elf
5984 tm_file
="mips/elfl64.h"
5985 tmake_file
=mips
/t-elf
5987 mips64orionel-
*-elf*)
5988 tm_file
="mips/elforion.h mips/elfl64.h"
5989 tmake_file
=mips
/t-elf
5992 tm_file
="mips/elf64.h"
5993 tmake_file
=mips
/t-elf
5996 tm_file
="mips/elforion.h mips/elf64.h"
5997 tmake_file
=mips
/t-elf
5999 mips64orion-
*-rtems*)
6000 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
6001 tmake_file
="mips/t-elf t-rtems"
6004 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
6005 tmake_file
=mips
/t-r3900
6008 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
6009 tmake_file
=mips
/t-r3900
6011 mips-
*-*) # Default MIPS RISC-OS 4.0.
6012 if test x
$stabs = xyes
; then
6013 tm_file
="${tm_file} dbx.h"
6015 if test x
$gas = xyes
6017 tmake_file
=mips
/t-mips-gas
6019 extra_passes
="mips-tfile mips-tdump"
6021 if test x
$gnu_ld != xyes
6029 tm_file
="mn10200/mn10200.h"
6030 if test x
$stabs = xyes
6032 tm_file
="${tm_file} dbx.h"
6038 tm_file
="mn10300/mn10300.h"
6039 if test x
$stabs = xyes
6041 tm_file
="${tm_file} dbx.h"
6046 tm_file
=ns32k
/encore.h
6050 tm_file
=ns32k
/sequent.h
6054 tm_file
=ns32k
/tek6100.h
6058 tm_file
=ns32k
/tek6200.h
6061 # This has not been updated to GCC 2.
6064 # xmake_file=ns32k/x-genix
6065 # tm_file=ns32k/genix.h
6069 tm_file
=ns32k
/merlin.h
6073 tm_file
=ns32k
/pc532-mach.h
6077 tm_file
=ns32k
/pc532-min.h
6078 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6083 tm_file
=ns32k
/netbsd.h
6084 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6085 # On NetBSD, the headers are already okay, except for math.h.
6090 tm_file
="${tm_file} pdp11/2bsd.h"
6099 # This has not been updated to GCC 2.
6102 # xmake_file=pyr/x-pyr
6107 tm_file
="svr4.h pj/linux.h ${tm_file}"
6112 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6119 xmake_file
=romp
/x-mach
6126 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6130 tm_file
=rs6000
/beos.h
6131 xm_file
=rs6000
/xm-beos.h
6132 tmake_file
=rs6000
/t-beos
6133 xmake_file
=rs6000
/x-beos
6136 tm_file
=rs6000
/sysv4.h
6137 xm_file
="rs6000/xm-sysv4.h"
6138 xm_defines
="USG POSIX"
6139 extra_headers
=ppc-asm.h
6140 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6141 xmake_file
=rs6000
/x-sysv4
6144 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6145 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6146 extra_headers
=ppc-asm.h
6149 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6150 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6151 extra_headers
=ppc-asm.h
6154 tm_file
="rs6000/sysv4.h"
6155 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6156 extra_headers
=ppc-asm.h
6159 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6160 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6161 extra_headers
=ppc-asm.h
6164 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6165 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6166 extra_headers
=ppc-asm.h
6168 powerpc-
*-linux*libc1
)
6169 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6170 xm_file
=rs6000
/xm-sysv4.h
6171 out_file
=rs6000
/rs6000.c
6172 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6174 extra_headers
=ppc-asm.h
6175 if test x
$enable_threads = xyes
; then
6180 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6181 xm_file
="rs6000/xm-sysv4.h"
6182 xm_defines
="USG ${xm_defines}"
6183 out_file
=rs6000
/rs6000.c
6184 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6186 extra_headers
=ppc-asm.h
6187 if test x
$enable_threads = xyes
; then
6191 powerpc-wrs-vxworks
*)
6193 xm_file
="rs6000/xm-sysv4.h"
6194 xm_defines
="USG POSIX"
6195 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6196 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6197 extra_headers
=ppc-asm.h
6198 thread_file
='vxworks'
6200 powerpcle-wrs-vxworks
*)
6202 xm_file
="rs6000/xm-sysv4.h"
6203 xm_defines
="USG POSIX"
6204 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6205 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6206 extra_headers
=ppc-asm.h
6207 thread_file
='vxworks'
6210 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6211 xm_file
="rs6000/xm-sysv4.h"
6212 xm_defines
="USG POSIX"
6213 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6214 xmake_file
=rs6000
/x-sysv4
6215 extra_headers
=ppc-asm.h
6218 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6219 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6220 extra_headers
=ppc-asm.h
6222 powerpcle-
*-eabisim*)
6223 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6224 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6225 extra_headers
=ppc-asm.h
6228 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6229 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6230 extra_headers
=ppc-asm.h
6232 powerpcle-
*-solaris2*)
6233 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6234 xm_file
="rs6000/xm-sysv4.h"
6235 xm_defines
="USG POSIX"
6236 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6237 xmake_file
=rs6000
/x-sysv4
6238 extra_headers
=ppc-asm.h
6240 rs6000-ibm-aix3.
[01]*)
6241 tm_file
=rs6000
/aix31.h
6242 xmake_file
=rs6000
/x-aix31
6246 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6247 tm_file
=rs6000
/aix3newas.h
6248 if test x
$host != x
$target
6250 tmake_file
=rs6000
/t-xnewas
6252 tmake_file
=rs6000
/t-newas
6257 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6258 tm_file
=rs6000
/aix41.h
6259 if test x
$host != x
$target
6261 tmake_file
=rs6000
/t-xnewas
6263 tmake_file
=rs6000
/t-newas
6265 if test "$gnu_ld" = yes
6267 xmake_file
=rs6000
/x-aix41-gld
6269 tmake_file
='rs6000/t-newas rs6000/t-aix41'
6271 xmake_file
=rs6000
/x-aix41
6275 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6276 tm_file
=rs6000
/aix43.h
6277 tmake_file
=rs6000
/t-aix43
6278 xmake_file
=rs6000
/x-aix41
6282 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6283 tm_file
=rs6000
/aix43.h
6284 tmake_file
=rs6000
/t-aix43
6285 xmake_file
=rs6000
/x-aix41
6298 tm_file
=rs6000
/mach.h
6299 xm_file
="${xm_file} rs6000/xm-mach.h"
6300 xmake_file
=rs6000
/x-mach
6304 tm_file
=rs6000
/lynx.h
6305 xm_file
=rs6000
/xm-lynx.h
6306 tmake_file
=rs6000
/t-rs6000
6307 xmake_file
=rs6000
/x-lynx
6311 tm_file
="sh/sh.h sh/elf.h"
6315 tmake_file
="sh/t-sh t-rtems"
6316 tm_file
="sh/sh.h sh/elf.h sh/rtemself.h"
6320 tmake_file
="sh/t-sh t-rtems"
6321 tm_file
="sh/sh.h sh/rtems.h"
6329 xm_file
="xm-alloca.h ${xm_file}"
6332 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6333 tm_file
=sparc
/vxsparc.h
6334 tmake_file
=sparc
/t-vxsparc
6336 thread_file
='vxworks'
6339 tmake_file
=sparc
/t-sparcbare
6340 tm_file
="sparc/aout.h libgloss.h"
6343 tm_file
=sparc
/netbsd.h
6348 # we need collect2 until our bug is fixed...
6356 tmake_file
=sparc
/t-elf
6357 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6361 sparc-
*-linux*aout
*) # Sparc's running GNU/Linux, a.out
6362 xm_file
="${xm_file} sparc/xm-linux.h"
6363 tm_file
=sparc
/linux-aout.h
6367 sparc-
*-linux*libc1
*) # Sparc's running GNU/Linux, libc5
6368 xm_file
="${xm_file} sparc/xm-linux.h"
6370 tm_file
=sparc
/linux.h
6371 tmake_file
="t-linux t-linux-gnulibc1"
6372 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6376 sparc-
*-linux*) # Sparc's running GNU/Linux, libc6
6377 xm_file
="${xm_file} sparc/xm-linux.h"
6379 tm_file
=sparc
/linux.h
6380 tmake_file
="t-linux"
6381 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6383 if test x
$enable_threads = xyes
; then
6389 if test x
$gas = xyes
6391 tm_file
=sparc
/lynx.h
6393 tm_file
=sparc
/lynx-ng.h
6395 xm_file
=sparc
/xm-lynx.h
6396 tmake_file
=sparc
/t-sunos41
6400 tmake_file
="sparc/t-sparcbare t-rtems"
6401 tm_file
=sparc
/rtems.h
6403 sparc-
*-rtems*|sparc-
*-rtemself*)
6404 tm_file
="sparc/rtemself.h"
6405 tmake_file
="sparc/t-elf t-rtems"
6406 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6410 sparcv9-
*-solaris2*)
6411 if test x
$gnu_ld = xyes
6413 tm_file
=sparc
/sol2-64.h
6415 tm_file
=sparc
/sol2-sld-64.h
6417 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6418 xm_defines
="USG POSIX"
6419 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6420 xmake_file
=sparc
/x-sysv4
6421 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6423 if test x
${enable_threads} = x
; then
6424 enable_threads
=$have_pthread_h
6425 if test x
${enable_threads} = x
; then
6426 enable_threads
=$have_thread_h
6429 if test x
${enable_threads} = xyes
; then
6430 if test x
${have_pthread_h} = xyes
; then
6433 thread_file
='solaris'
6437 sparc-hal-solaris2
*)
6438 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6439 xm_defines
="USG POSIX"
6440 tm_file
="sparc/sol2.h sparc/hal.h"
6441 tmake_file
="sparc/t-halos sparc/t-sol2"
6442 xmake_file
=sparc
/x-sysv4
6443 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6452 thread_file
='solaris'
6455 if test x
$gnu_ld = xyes
6457 tm_file
=sparc
/sol2.h
6459 tm_file
=sparc
/sol2-sld.h
6461 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6462 xm_defines
="USG POSIX"
6463 tmake_file
=sparc
/t-sol2
6464 xmake_file
=sparc
/x-sysv4
6465 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6467 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6469 if test x
$gnu_ld = xyes
6471 tm_file
=sparc
/sol2-64.h
6473 tm_file
=sparc
/sol2-sld-64.h
6475 tmake_file
="$tmake_file sparc/t-sol2-64"
6486 if test x
${enable_threads} = x
; then
6487 enable_threads
=$have_pthread_h
6488 if test x
${enable_threads} = x
; then
6489 enable_threads
=$have_thread_h
6492 if test x
${enable_threads} = xyes
; then
6493 if test x
${have_pthread_h} = xyes
; then
6496 thread_file
='solaris'
6501 tm_file
=sparc
/sunos4.h
6502 tmake_file
=sparc
/t-sunos40
6506 tm_file
=sparc
/sunos4.h
6507 tmake_file
=sparc
/t-sunos41
6509 if test x
$gas = xyes
; then
6510 tm_file
="${tm_file} sparc/sun4gas.h"
6514 tm_file
=sparc
/sun4o3.h
6518 tm_file
=sparc
/sysv4.h
6519 xm_file
="sparc/xm-sysv4.h"
6520 xm_defines
="USG POSIX"
6522 xmake_file
=sparc
/x-sysv4
6523 extra_parts
="crtbegin.o crtend.o"
6526 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6527 xm_defines
="USG POSIX"
6528 tm_file
=sparc
/vxsim.h
6529 tmake_file
=sparc
/t-vxsparc
6530 xmake_file
=sparc
/x-sysv4
6533 tm_file
="sparc/splet.h libgloss.h"
6534 tmake_file
=sparc
/t-splet
6537 tm_file
="sparc/litecoff.h libgloss.h"
6538 tmake_file
=sparc
/t-sparclite
6541 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6542 tmake_file
=sparc
/t-sparclite
6545 tm_file
="sparc/liteelf.h"
6546 tmake_file
=sparc
/t-sparclite
6547 extra_parts
="crtbegin.o crtend.o"
6550 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6551 tmake_file
=sparc
/t-sp86x
6554 tm_file
="sparc/sp86x-elf.h"
6555 tmake_file
=sparc
/t-sp86x
6556 extra_parts
="crtbegin.o crtend.o"
6559 tmake_file
=sparc
/t-sp64
6560 tm_file
=sparc
/sp64-aout.h
6563 tmake_file
=sparc
/t-sp64
6564 tm_file
=sparc
/sp64-elf.h
6565 extra_parts
="crtbegin.o crtend.o"
6567 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6568 tmake_file
="t-linux sparc/t-linux64"
6569 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6570 tm_file
=sparc
/linux64.h
6572 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6574 if test x
$enable_threads = xyes
; then
6579 # This hasn't been upgraded to GCC 2.
6580 # tahoe-harris-*) # Harris tahoe, using COFF.
6581 # tm_file=tahoe/harris.h
6583 # tahoe-*-bsd*) # tahoe running BSD
6587 { echo "configure: error:
6588 *** The Thumb targets have been depreciated. The equivalent
6589 *** ARM based toolchain can now generated Thumb instructions
6590 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6592 # This hasn't been upgraded to GCC 2.
6599 tm_file
="v850/rtems.h"
6600 xm_file
="v850/xm-v850.h"
6601 tmake_file
="v850/t-v850 t-rtems"
6602 if test x
$stabs = xyes
6604 tm_file
="${tm_file} dbx.h"
6609 target_cpu_default
="TARGET_CPU_generic"
6611 tm_file
="v850/v850.h"
6612 xm_file
="v850/xm-v850.h"
6613 tmake_file
=v850
/t-v850
6614 if test x
$stabs = xyes
6616 tm_file
="${tm_file} dbx.h"
6620 vax-
*-bsd*) # vaxen running BSD
6624 vax-
*-sysv*) # vaxen running system V
6625 tm_file
="${tm_file} vax/vaxv.h"
6630 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6636 tmake_file
="${tmake_file} vax/t-openbsd"
6637 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6638 xm_file
="xm-openbsd.h vax/xm-vax.h"
6642 vax-
*-ultrix*) # vaxen running ultrix
6643 tm_file
="${tm_file} vax/ultrix.h"
6646 vax-
*-vms*) # vaxen running VMS
6647 xm_file
=vax
/xm-vms.h
6651 vax-
*-*) # vax default entry
6655 xm_file
="${xm_file} xm-svr3"
6659 echo "Configuration $machine not supported" 1>&2
6666 ;; # Existing GNU/Linux systems do not use the GNU setup.
6668 # On the GNU system, the setup is just about the same on
6669 # each different CPU. The specific machines that GNU
6670 # supports are matched above and just set $cpu_type.
6671 xm_file
="xm-gnu.h ${xm_file}"
6672 tm_file
=${cpu_type}/gnu.h
6673 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6674 # GNU always uses ELF.
6676 # GNU tools are the only tools.
6679 xmake_file
=x-linux
# These details are the same as Linux.
6680 tmake_file
=t-gnu
# These are not.
6683 xmake_try_sysv
=x-sysv
6684 install_headers_dir
=install-headers-cpio
6687 install_headers_dir
=install-headers-cpio
6691 # Distinguish i[34567]86
6692 # Also, do not run mips-tfile on MIPS if using gas.
6693 # Process --with-cpu= for PowerPC/rs6000
6694 target_cpu_default2
=
6697 target_cpu_default2
=1
6700 case $target_alias in
6702 target_cpu_default2
=4
6705 target_cpu_default2
=2
6709 i686-
*-* | i786-
*-*)
6710 target_cpu_default2
=3
6715 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6718 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6721 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6724 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6727 target_cpu_default2
="MASK_CPU_EV5"
6731 if test x
$gas = xyes
6733 if test "$target_cpu_default2" = ""
6735 target_cpu_default2
="MASK_GAS"
6737 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6742 case "x$with_cpu" in
6745 target_cpu_default2
="TARGET_CPU_generic"
6748 # Distinguish cores, and major variants
6749 # arm7m doesn't exist, but D & I don't affect code
6750 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6751 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6752 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6753 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6754 target_cpu_default2
="TARGET_CPU_$with_cpu"
6758 echo "--with-cpu must be passed a value" 1>&2
6763 if test x
$pass2done = xyes
6765 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6772 mips
*-*-ecoff* | mips
*-*-elf*)
6773 if test x
$gas = xyes
6775 if test x
$gnu_ld = xyes
6777 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6779 target_cpu_default2
="MASK_GAS"
6784 if test x
$gas = xyes
6786 target_cpu_default2
="MASK_GAS"
6789 powerpc
*-*-* | rs6000-
*-*)
6790 case "x$with_cpu" in
6794 xcommon | xpower | xpower2 | xpowerpc | xrios \
6795 | xrios1 | xrios2 | xrsc | xrsc1 \
6796 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6797 | xec603e | x740 | x750 | x401 \
6798 | x403 | x505 | x801 | x821 | x823 | x860
)
6799 target_cpu_default2
="\"$with_cpu\""
6803 echo "--with-cpu must be passed a value" 1>&2
6808 if test x
$pass2done = xyes
6810 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6817 case ".$with_cpu" in
6819 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6821 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6822 target_cpu_default2
="TARGET_CPU_$with_cpu"
6825 if test x
$pass2done = xyes
6827 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6835 if test "$target_cpu_default2" != ""
6837 if test "$target_cpu_default" != ""
6839 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6841 target_cpu_default
=$target_cpu_default2
6845 # No need for collect2 if we have the GNU linker.
6846 # Actually, there is now; GNU ld doesn't handle the EH info or
6847 # collecting for shared libraries.
6854 # Save data on machine being used to compile GCC in build_xm_file.
6855 # Save data on host machine in vars host_xm_file and host_xmake_file.
6856 if test x
$pass1done = x
6858 if test x
"$xm_file" = x
6859 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6860 else build_xm_file
=$xm_file
6862 build_xm_defines
=$xm_defines
6863 build_install_headers_dir
=$install_headers_dir
6864 build_exeext
=$exeext
6867 if test x
$pass2done = x
6869 if test x
"$xm_file" = x
6870 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6871 else host_xm_file
=$xm_file
6873 host_xm_defines
=$xm_defines
6874 if test x
"$xmake_file" = x
6875 then xmake_file
=$cpu_type/x-
$cpu_type
6877 host_xmake_file
="$xmake_file"
6878 host_truncate_target
=$truncate_target
6879 host_extra_gcc_objs
=$extra_gcc_objs
6880 host_extra_objs
=$extra_host_objs
6887 extra_objs
="${host_extra_objs} ${extra_objs}"
6889 # Default the target-machine variables that were not explicitly set.
6890 if test x
"$tm_file" = x
6891 then tm_file
=$cpu_type/$cpu_type.h
; fi
6893 if test x
$extra_headers = x
6894 then extra_headers
=; fi
6896 if test x
"$xm_file" = x
6897 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6899 if test x
$md_file = x
6900 then md_file
=$cpu_type/$cpu_type.md
; fi
6902 if test x
$out_file = x
6903 then out_file
=$cpu_type/$cpu_type.c
; fi
6905 if test x
"$tmake_file" = x
6906 then tmake_file
=$cpu_type/t-
$cpu_type
6909 if test x
"$dwarf2" = xyes
6910 then tm_file
="$tm_file tm-dwarf2.h"
6913 if test x
$float_format = x
6914 then float_format
=i64
6917 if test $float_format = none
6918 then float_h_file
=Makefile.
in
6919 else float_h_file
=float-
$float_format.h
6922 # Handle cpp installation.
6923 if test x
$enable_cpp != xno
6925 tmake_file
="$tmake_file t-install-cpp"
6928 # Say what files are being used for the output code and MD file.
6929 echo "Using \`$srcdir/config/$out_file' to output insns."
6930 echo "Using \`$srcdir/config/$md_file' as machine description file."
6933 for f
in $tm_file; do
6936 if test $count = ax
; then
6937 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6939 echo "Using the following target machine macro files:"
6940 for f
in $tm_file; do
6941 echo " $srcdir/config/$f"
6946 for f
in $host_xm_file; do
6949 if test $count = ax
; then
6950 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6952 echo "Using the following host machine macro files:"
6953 for f
in $host_xm_file; do
6954 echo " $srcdir/config/$f"
6958 if test "$host_xm_file" != "$build_xm_file"; then
6960 for f
in $build_xm_file; do
6963 if test $count = ax
; then
6964 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6966 echo "Using the following build machine macro files:"
6967 for f
in $build_xm_file; do
6968 echo " $srcdir/config/$f"
6973 if test x
$thread_file = x
; then
6974 if test x
$target_thread_file != x
; then
6975 thread_file
=$target_thread_file
6977 thread_file
='single'
6981 # Set up the header files.
6982 # $links is the list of header files to create.
6983 # $vars is the list of shell variables with file names to include.
6984 # auto-host.h is the file containing items generated by autoconf and is
6985 # the first file included by config.h.
6987 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6989 # If host=build, it is correct to have hconfig include auto-host.h
6990 # as well. If host!=build, we are in error and need to do more
6991 # work to find out the build config parameters.
6992 if test x
$host = x
$build
6994 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6996 # We create a subdir, then run autoconf in the subdir.
6997 # To prevent recursion we set host and build for the new
6998 # invocation of configure to the build for this invocation
7005 /*) realsrcdir
=${srcdir};;
7006 *) realsrcdir
=..
/${srcdir};;
7008 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
7009 --target=$target --host=$build --build=$build
7011 # We just finished tests for the build machine, so rename
7012 # the file auto-build.h in the gcc directory.
7013 mv auto-host.h ..
/auto-build.h
7016 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7019 xm_file
="gansidecl.h ${xm_file}"
7020 tm_file
="gansidecl.h ${tm_file}"
7022 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7023 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
7024 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7027 if test -f config.status
; then mv -f config.status config.bak
; fi
7030 while test -n "$vars"
7032 set $vars; var
=$1; shift; vars
=$
*
7033 set $links; link
=$1; shift; links
=$
*
7034 set $defines; define
=$1; shift; defines
=$
*
7037 # Make sure the file is created, even if it is empty.
7040 # Define TARGET_CPU_DEFAULT if the system wants one.
7041 # This substitutes for lots of *.h files.
7042 if test "$target_cpu_default" != "" -a $link = tm.h
7044 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7047 for file in `eval echo '$'$var`; do
7049 auto-host.h | auto-build.h
)
7052 echo '#ifdef IN_GCC' >>$link
7055 echo "#include \"$file\"" >>$link
7057 auto-host.h | auto-build.h
)
7060 echo '#endif' >>$link
7065 for def
in `eval echo '$'$define`; do
7066 echo "#ifndef $def" >>$link
7067 echo "#define $def" >>$link
7068 echo "#endif" >>$link
7072 # Truncate the target if necessary
7073 if test x
$host_truncate_target != x
; then
7074 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7077 # Get the version trigger filename from the toplevel
7078 if test "${with_gcc_version_trigger+set}" = set; then
7079 gcc_version_trigger
=$with_gcc_version_trigger
7081 gcc_version_trigger
=${srcdir}/version.c
7083 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7085 # Internationalization
7087 VERSION
="$gcc_version"
7088 cat >> confdefs.h
<<EOF
7089 #define PACKAGE "$PACKAGE"
7092 cat >> confdefs.h
<<EOF
7093 #define VERSION "$VERSION"
7101 # Enable NLS support by default
7102 # Check whether --enable-nls or --disable-nls was given.
7103 if test "${enable_nls+set}" = set; then
7104 enableval
="$enable_nls"
7111 # if cross compiling, disable NLS support.
7112 # It's not worth the trouble, at least for now.
7114 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7115 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7120 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7121 echo "configure:7122: checking for strerror in -lcposix" >&5
7122 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7126 ac_save_LIBS
="$LIBS"
7127 LIBS
="-lcposix $LIBS"
7128 cat > conftest.
$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131 /* Override any gcc2 internal prototype to avoid an error. */
7132 /* We use char because int might match the return type of a gcc2
7133 builtin and then its argument prototype would still apply. */
7140 if { (eval echo configure
:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7142 eval "ac_cv_lib_$ac_lib_var=yes"
7144 echo "configure: failed program was:" >&5
7145 cat conftest.
$ac_ext >&5
7147 eval "ac_cv_lib_$ac_lib_var=no"
7150 LIBS
="$ac_save_LIBS"
7153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7154 echo "$ac_t""yes" 1>&6
7155 LIBS
="$LIBS -lcposix"
7157 echo "$ac_t""no" 1>&6
7162 echo $ac_n "checking for working const""... $ac_c" 1>&6
7163 echo "configure:7164: checking for working const" >&5
7164 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 cat > conftest.
$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7173 /* Ultrix mips cc rejects this. */
7174 typedef int charset[2]; const charset x;
7175 /* SunOS 4.1.1 cc rejects this. */
7176 char const *const *ccp;
7178 /* NEC SVR4.0.2 mips cc rejects this. */
7179 struct point {int x, y;};
7180 static struct point const zero = {0,0};
7181 /* AIX XL C 1.02.0.0 rejects this.
7182 It does not let you subtract one const X* pointer from another in an arm
7183 of an if-expression whose if-part is not a constant expression */
7184 const char *g = "string";
7185 ccp = &g + (g ? g-g : 0);
7186 /* HPUX 7.0 cc rejects these. */
7189 ccp = (char const *const *) p;
7190 { /* SCO 3.2v4 cc rejects this. */
7192 char const *s = 0 ? (char *) 0 : (char const *) 0;
7196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7198 const int *foo = &x[0];
7201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7202 typedef const int *iptr;
7206 { /* AIX XL C 1.02.0.0 rejects this saying
7207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7208 struct s { int j; const int *ap[3]; };
7209 struct s *b; b->j = 5;
7211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7217 if { (eval echo configure
:7218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7221 echo "configure: failed program was:" >&5
7222 cat conftest.
$ac_ext >&5
7229 echo "$ac_t""$ac_cv_c_const" 1>&6
7230 if test $ac_cv_c_const = no
; then
7231 cat >> confdefs.h
<<\EOF
7237 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7238 echo "configure:7239: checking for off_t" >&5
7239 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.
$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 #include <sys/types.h>
7251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7252 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7254 ac_cv_type_off_t
=yes
7262 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7263 if test $ac_cv_type_off_t = no
; then
7264 cat >> confdefs.h
<<\EOF
7270 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7271 echo "configure:7272: checking for size_t" >&5
7272 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7275 cat > conftest.
$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7278 #include <sys/types.h>
7284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7285 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7287 ac_cv_type_size_t
=yes
7290 ac_cv_type_size_t
=no
7295 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7296 if test $ac_cv_type_size_t = no
; then
7297 cat >> confdefs.h
<<\EOF
7298 #define size_t unsigned
7303 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7304 # for constant arguments. Useless!
7305 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7306 echo "configure:7307: checking for working alloca.h" >&5
7307 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7310 cat > conftest.
$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7315 char *p = alloca(2 * sizeof(int));
7318 if { (eval echo configure
:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7320 ac_cv_header_alloca_h
=yes
7322 echo "configure: failed program was:" >&5
7323 cat conftest.
$ac_ext >&5
7325 ac_cv_header_alloca_h
=no
7330 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7331 if test $ac_cv_header_alloca_h = yes; then
7332 cat >> confdefs.h
<<\EOF
7333 #define HAVE_ALLOCA_H 1
7338 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7339 echo "configure:7340: checking for alloca" >&5
7340 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7341 echo $ac_n "(cached) $ac_c" 1>&6
7343 cat > conftest.
$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7348 # define alloca __builtin_alloca
7351 # include <malloc.h>
7352 # define alloca _alloca
7355 # include <alloca.h>
7360 # ifndef alloca /* predefined by HP cc +Olibcalls */
7369 char *p = (char *) alloca(1);
7372 if { (eval echo configure
:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7374 ac_cv_func_alloca_works
=yes
7376 echo "configure: failed program was:" >&5
7377 cat conftest.
$ac_ext >&5
7379 ac_cv_func_alloca_works
=no
7384 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7385 if test $ac_cv_func_alloca_works = yes; then
7386 cat >> confdefs.h
<<\EOF
7387 #define HAVE_ALLOCA 1
7392 if test $ac_cv_func_alloca_works = no
; then
7393 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7394 # that cause trouble. Some versions do not even contain alloca or
7395 # contain a buggy version. If you still want to use their alloca,
7396 # use ar to extract alloca.o from them instead of compiling alloca.c.
7397 ALLOCA
=alloca.
${ac_objext}
7398 cat >> confdefs.h
<<\EOF
7403 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7404 echo "configure:7405: checking whether alloca needs Cray hooks" >&5
7405 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.
$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 #if defined(CRAY) && ! defined(CRAY2)
7418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7419 egrep "webecray" >/dev
/null
2>&1; then
7430 echo "$ac_t""$ac_cv_os_cray" 1>&6
7431 if test $ac_cv_os_cray = yes; then
7432 for ac_func
in _getb67 GETB67 getb67
; do
7433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7434 echo "configure:7435: checking for $ac_func" >&5
7435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 cat > conftest.
$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* System header to define __stub macros and hopefully few prototypes,
7442 which can conflict with char $ac_func(); below. */
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7462 if { (eval echo configure
:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7464 eval "ac_cv_func_$ac_func=yes"
7466 echo "configure: failed program was:" >&5
7467 cat conftest.
$ac_ext >&5
7469 eval "ac_cv_func_$ac_func=no"
7474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7476 cat >> confdefs.h
<<EOF
7477 #define CRAY_STACKSEG_END $ac_func
7482 echo "$ac_t""no" 1>&6
7488 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7489 echo "configure:7490: checking stack direction for C alloca" >&5
7490 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7491 echo $ac_n "(cached) $ac_c" 1>&6
7493 if test "$cross_compiling" = yes; then
7494 ac_cv_c_stack_direction
=0
7496 cat > conftest.
$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 find_stack_direction ()
7501 static char *addr = 0;
7506 return find_stack_direction ();
7509 return (&dummy > addr) ? 1 : -1;
7513 exit (find_stack_direction() < 0);
7516 if { (eval echo configure
:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7518 ac_cv_c_stack_direction
=1
7520 echo "configure: failed program was:" >&5
7521 cat conftest.
$ac_ext >&5
7523 ac_cv_c_stack_direction
=-1
7530 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7531 cat >> confdefs.h
<<EOF
7532 #define STACK_DIRECTION $ac_cv_c_stack_direction
7538 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7539 unistd.h sys
/param.h
7541 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7543 echo "configure:7544: checking for $ac_hdr" >&5
7544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7545 echo $ac_n "(cached) $ac_c" 1>&6
7547 cat > conftest.
$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7552 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7553 { (eval echo configure
:7554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7554 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7555 if test -z "$ac_err"; then
7557 eval "ac_cv_header_$ac_safe=yes"
7560 echo "configure: failed program was:" >&5
7561 cat conftest.
$ac_ext >&5
7563 eval "ac_cv_header_$ac_safe=no"
7567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7568 echo "$ac_t""yes" 1>&6
7569 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7570 cat >> confdefs.h
<<EOF
7571 #define $ac_tr_hdr 1
7575 echo "$ac_t""no" 1>&6
7579 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7580 strdup __argz_count __argz_stringify __argz_next
7582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7583 echo "configure:7584: checking for $ac_func" >&5
7584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7585 echo $ac_n "(cached) $ac_c" 1>&6
7587 cat > conftest.
$ac_ext <<EOF
7588 #line 7589 "configure"
7589 #include "confdefs.h"
7590 /* System header to define __stub macros and hopefully few prototypes,
7591 which can conflict with char $ac_func(); below. */
7593 /* Override any gcc2 internal prototype to avoid an error. */
7594 /* We use char because int might match the return type of a gcc2
7595 builtin and then its argument prototype would still apply. */
7600 /* The GNU C library defines this for functions which it implements
7601 to always fail with ENOSYS. Some functions are actually named
7602 something starting with __ and the normal name is an alias. */
7603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7611 if { (eval echo configure
:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7613 eval "ac_cv_func_$ac_func=yes"
7615 echo "configure: failed program was:" >&5
7616 cat conftest.
$ac_ext >&5
7618 eval "ac_cv_func_$ac_func=no"
7623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7624 echo "$ac_t""yes" 1>&6
7625 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7626 cat >> confdefs.h
<<EOF
7627 #define $ac_tr_func 1
7631 echo "$ac_t""no" 1>&6
7636 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7637 for ac_func
in stpcpy
7639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7640 echo "configure:7641: checking for $ac_func" >&5
7641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7644 cat > conftest.
$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7647 /* System header to define __stub macros and hopefully few prototypes,
7648 which can conflict with char $ac_func(); below. */
7650 /* Override any gcc2 internal prototype to avoid an error. */
7651 /* We use char because int might match the return type of a gcc2
7652 builtin and then its argument prototype would still apply. */
7657 /* The GNU C library defines this for functions which it implements
7658 to always fail with ENOSYS. Some functions are actually named
7659 something starting with __ and the normal name is an alias. */
7660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7668 if { (eval echo configure
:7669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7670 eval "ac_cv_func_$ac_func=yes"
7672 echo "configure: failed program was:" >&5
7673 cat conftest.
$ac_ext >&5
7675 eval "ac_cv_func_$ac_func=no"
7680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7681 echo "$ac_t""yes" 1>&6
7682 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7683 cat >> confdefs.h
<<EOF
7684 #define $ac_tr_func 1
7688 echo "$ac_t""no" 1>&6
7693 if test "${ac_cv_func_stpcpy}" = "yes"; then
7694 cat >> confdefs.h
<<\EOF
7695 #define HAVE_STPCPY 1
7700 if test $ac_cv_header_locale_h = yes; then
7701 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7702 echo "configure:7703: checking for LC_MESSAGES" >&5
7703 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7706 cat > conftest.
$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7714 if { (eval echo configure
:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7716 am_cv_val_LC_MESSAGES
=yes
7718 echo "configure: failed program was:" >&5
7719 cat conftest.
$ac_ext >&5
7721 am_cv_val_LC_MESSAGES
=no
7726 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7727 if test $am_cv_val_LC_MESSAGES = yes; then
7728 cat >> confdefs.h
<<\EOF
7729 #define HAVE_LC_MESSAGES 1
7734 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7735 echo "configure:7736: checking whether NLS is requested" >&5
7736 # Check whether --enable-nls or --disable-nls was given.
7737 if test "${enable_nls+set}" = set; then
7738 enableval
="$enable_nls"
7744 echo "$ac_t""$USE_NLS" 1>&6
7747 USE_INCLUDED_LIBINTL
=no
7749 if test "$USE_NLS" = "yes"; then
7750 cat >> confdefs.h
<<\EOF
7751 #define ENABLE_NLS 1
7754 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7755 echo "configure:7756: checking whether included gettext is requested" >&5
7756 # Check whether --with-included-gettext or --without-included-gettext was given.
7757 if test "${with_included_gettext+set}" = set; then
7758 withval
="$with_included_gettext"
7759 nls_cv_force_use_gnu_gettext
=$withval
7761 nls_cv_force_use_gnu_gettext
=yes
7764 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7766 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7767 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7769 nls_cv_header_libgt
=
7772 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7773 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7774 echo "configure:7775: checking for libintl.h" >&5
7775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 cat > conftest.
$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 #include <libintl.h>
7783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7784 { (eval echo configure
:7785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7785 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7786 if test -z "$ac_err"; then
7788 eval "ac_cv_header_$ac_safe=yes"
7791 echo "configure: failed program was:" >&5
7792 cat conftest.
$ac_ext >&5
7794 eval "ac_cv_header_$ac_safe=no"
7798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7799 echo "$ac_t""yes" 1>&6
7800 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7801 echo "configure:7802: checking for gettext in libc" >&5
7802 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7805 cat > conftest.
$ac_ext <<EOF
7806 #line 7807 "configure"
7807 #include "confdefs.h"
7808 #include <libintl.h>
7810 return (int) gettext ("")
7813 if { (eval echo configure
:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7815 gt_cv_func_gettext_libc
=yes
7817 echo "configure: failed program was:" >&5
7818 cat conftest.
$ac_ext >&5
7820 gt_cv_func_gettext_libc
=no
7825 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7827 if test "$gt_cv_func_gettext_libc" != "yes"; then
7828 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7829 echo "configure:7830: checking for bindtextdomain in -lintl" >&5
7830 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7834 ac_save_LIBS
="$LIBS"
7836 cat > conftest.
$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* Override any gcc2 internal prototype to avoid an error. */
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7842 char bindtextdomain();
7848 if { (eval echo configure
:7849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7850 eval "ac_cv_lib_$ac_lib_var=yes"
7852 echo "configure: failed program was:" >&5
7853 cat conftest.
$ac_ext >&5
7855 eval "ac_cv_lib_$ac_lib_var=no"
7858 LIBS
="$ac_save_LIBS"
7861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7864 echo "configure:7865: checking for gettext in libintl" >&5
7865 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
7868 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7869 echo "configure:7870: checking for gettext in -lintl" >&5
7870 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7874 ac_save_LIBS
="$LIBS"
7876 cat > conftest.
$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 /* Override any gcc2 internal prototype to avoid an error. */
7880 /* We use char because int might match the return type of a gcc2
7881 builtin and then its argument prototype would still apply. */
7888 if { (eval echo configure
:7889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7890 eval "ac_cv_lib_$ac_lib_var=yes"
7892 echo "configure: failed program was:" >&5
7893 cat conftest.
$ac_ext >&5
7895 eval "ac_cv_lib_$ac_lib_var=no"
7898 LIBS
="$ac_save_LIBS"
7901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7902 echo "$ac_t""yes" 1>&6
7903 gt_cv_func_gettext_libintl
=yes
7905 echo "$ac_t""no" 1>&6
7906 gt_cv_func_gettext_libintl
=no
7911 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7913 echo "$ac_t""no" 1>&6
7918 if test "$gt_cv_func_gettext_libc" = "yes" \
7919 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7920 cat >> confdefs.h
<<\EOF
7921 #define HAVE_GETTEXT 1
7924 # Extract the first word of "msgfmt", so it can be a program name with args.
7925 set dummy msgfmt
; ac_word
=$2
7926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7927 echo "configure:7928: checking for $ac_word" >&5
7928 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7933 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7936 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7937 for ac_dir
in $PATH; do
7938 test -z "$ac_dir" && ac_dir
=.
7939 if test -f $ac_dir/$ac_word; then
7940 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7941 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7947 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7951 MSGFMT
="$ac_cv_path_MSGFMT"
7952 if test -n "$MSGFMT"; then
7953 echo "$ac_t""$MSGFMT" 1>&6
7955 echo "$ac_t""no" 1>&6
7957 if test "$MSGFMT" != "no"; then
7958 for ac_func
in dcgettext
7960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7961 echo "configure:7962: checking for $ac_func" >&5
7962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7965 cat > conftest.
$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7968 /* System header to define __stub macros and hopefully few prototypes,
7969 which can conflict with char $ac_func(); below. */
7971 /* Override any gcc2 internal prototype to avoid an error. */
7972 /* We use char because int might match the return type of a gcc2
7973 builtin and then its argument prototype would still apply. */
7978 /* The GNU C library defines this for functions which it implements
7979 to always fail with ENOSYS. Some functions are actually named
7980 something starting with __ and the normal name is an alias. */
7981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7989 if { (eval echo configure
:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7991 eval "ac_cv_func_$ac_func=yes"
7993 echo "configure: failed program was:" >&5
7994 cat conftest.
$ac_ext >&5
7996 eval "ac_cv_func_$ac_func=no"
8001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8004 cat >> confdefs.h
<<EOF
8005 #define $ac_tr_func 1
8009 echo "$ac_t""no" 1>&6
8013 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8014 set dummy gmsgfmt
; 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_GMSGFMT'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8022 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8025 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8028 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8030 for ac_dir
in $ac_dummy; do
8031 test -z "$ac_dir" && ac_dir
=.
8032 if test -f $ac_dir/$ac_word; then
8033 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8038 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8042 GMSGFMT
="$ac_cv_path_GMSGFMT"
8043 if test -n "$GMSGFMT"; then
8044 echo "$ac_t""$GMSGFMT" 1>&6
8046 echo "$ac_t""no" 1>&6
8049 # Extract the first word of "xgettext", so it can be a program name with args.
8050 set dummy xgettext
; ac_word
=$2
8051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8052 echo "configure:8053: checking for $ac_word" >&5
8053 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8058 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8062 for ac_dir
in $PATH; do
8063 test -z "$ac_dir" && ac_dir
=.
8064 if test -f $ac_dir/$ac_word; then
8065 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8066 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8072 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8076 XGETTEXT
="$ac_cv_path_XGETTEXT"
8077 if test -n "$XGETTEXT"; then
8078 echo "$ac_t""$XGETTEXT" 1>&6
8080 echo "$ac_t""no" 1>&6
8083 cat > conftest.
$ac_ext <<EOF
8084 #line 8085 "configure"
8085 #include "confdefs.h"
8088 extern int _nl_msg_cat_cntr;
8089 return _nl_msg_cat_cntr
8092 if { (eval echo configure
:8093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8097 echo "configure: failed program was:" >&5
8098 cat conftest.
$ac_ext >&5
8109 echo "$ac_t""no" 1>&6
8113 if test "$CATOBJEXT" = "NONE"; then
8114 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8115 echo "configure:8116: checking whether catgets can be used" >&5
8116 # Check whether --with-catgets or --without-catgets was given.
8117 if test "${with_catgets+set}" = set; then
8118 withval
="$with_catgets"
8119 nls_cv_use_catgets
=$withval
8121 nls_cv_use_catgets
=no
8124 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8126 if test "$nls_cv_use_catgets" = "yes"; then
8127 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8128 echo "configure:8129: checking for main in -li" >&5
8129 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8131 echo $ac_n "(cached) $ac_c" 1>&6
8133 ac_save_LIBS
="$LIBS"
8135 cat > conftest.
$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8143 if { (eval echo configure
:8144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8145 eval "ac_cv_lib_$ac_lib_var=yes"
8147 echo "configure: failed program was:" >&5
8148 cat conftest.
$ac_ext >&5
8150 eval "ac_cv_lib_$ac_lib_var=no"
8153 LIBS
="$ac_save_LIBS"
8156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8157 echo "$ac_t""yes" 1>&6
8158 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8159 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8160 cat >> confdefs.h
<<EOF
8161 #define $ac_tr_lib 1
8167 echo "$ac_t""no" 1>&6
8170 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8171 echo "configure:8172: checking for catgets" >&5
8172 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8175 cat > conftest.
$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 /* System header to define __stub macros and hopefully few prototypes,
8179 which can conflict with char catgets(); below. */
8181 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8188 /* The GNU C library defines this for functions which it implements
8189 to always fail with ENOSYS. Some functions are actually named
8190 something starting with __ and the normal name is an alias. */
8191 #if defined (__stub_catgets) || defined (__stub___catgets)
8199 if { (eval echo configure
:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8201 eval "ac_cv_func_catgets=yes"
8203 echo "configure: failed program was:" >&5
8204 cat conftest.
$ac_ext >&5
8206 eval "ac_cv_func_catgets=no"
8211 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8212 echo "$ac_t""yes" 1>&6
8213 cat >> confdefs.h
<<\EOF
8214 #define HAVE_CATGETS 1
8217 INTLOBJS
="\$(CATOBJS)"
8218 # Extract the first word of "gencat", so it can be a program name with args.
8219 set dummy gencat
; 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_GENCAT'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8227 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8230 ac_cv_path_GENCAT
="$GENCAT" # 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_GENCAT
="$ac_dir/$ac_word"
8243 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8247 GENCAT
="$ac_cv_path_GENCAT"
8248 if test -n "$GENCAT"; then
8249 echo "$ac_t""$GENCAT" 1>&6
8251 echo "$ac_t""no" 1>&6
8253 if test "$GENCAT" != "no"; then
8254 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8255 set dummy gmsgfmt
; ac_word
=$2
8256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_word" >&5
8258 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8263 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8266 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8269 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8271 for ac_dir
in $ac_dummy; do
8272 test -z "$ac_dir" && ac_dir
=.
8273 if test -f $ac_dir/$ac_word; then
8274 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8279 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8283 GMSGFMT
="$ac_cv_path_GMSGFMT"
8284 if test -n "$GMSGFMT"; then
8285 echo "$ac_t""$GMSGFMT" 1>&6
8287 echo "$ac_t""no" 1>&6
8290 if test "$GMSGFMT" = "no"; then
8291 # Extract the first word of "msgfmt", so it can be a program name with args.
8292 set dummy msgfmt
; ac_word
=$2
8293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8294 echo "configure:8295: checking for $ac_word" >&5
8295 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8300 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8303 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8304 for ac_dir
in $PATH; do
8305 test -z "$ac_dir" && ac_dir
=.
8306 if test -f $ac_dir/$ac_word; then
8307 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8308 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8314 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8318 GMSGFMT
="$ac_cv_path_GMSGFMT"
8319 if test -n "$GMSGFMT"; then
8320 echo "$ac_t""$GMSGFMT" 1>&6
8322 echo "$ac_t""no" 1>&6
8325 if test "$GMSGFMT" = "msgfmt"; then
8326 echo "configure: warning: No program for catalog building found" 1>&2
8327 create_catalogs
="no"
8330 # Extract the first word of "xgettext", so it can be a program name with args.
8331 set dummy xgettext
; ac_word
=$2
8332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_word" >&5
8334 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8339 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8342 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8343 for ac_dir
in $PATH; do
8344 test -z "$ac_dir" && ac_dir
=.
8345 if test -f $ac_dir/$ac_word; then
8346 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8347 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8353 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8357 XGETTEXT
="$ac_cv_path_XGETTEXT"
8358 if test -n "$XGETTEXT"; then
8359 echo "$ac_t""$XGETTEXT" 1>&6
8361 echo "$ac_t""no" 1>&6
8364 USE_INCLUDED_LIBINTL
=yes
8368 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8370 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8371 nls_cv_header_intl
=intl
/libintl.h
8372 nls_cv_header_libgt
=intl
/libgettext.h
8375 echo "$ac_t""no" 1>&6
8381 if test "$CATOBJEXT" = "NONE"; then
8382 nls_cv_use_gnu_gettext
=yes
8386 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8387 INTLOBJS
="\$(GETTOBJS)"
8388 # Extract the first word of "msgfmt", so it can be a program name with args.
8389 set dummy msgfmt
; ac_word
=$2
8390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8391 echo "configure:8392: checking for $ac_word" >&5
8392 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8397 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8400 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8401 for ac_dir
in $PATH; do
8402 test -z "$ac_dir" && ac_dir
=.
8403 if test -f $ac_dir/$ac_word; then
8404 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8405 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8411 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8415 MSGFMT
="$ac_cv_path_MSGFMT"
8416 if test -n "$MSGFMT"; then
8417 echo "$ac_t""$MSGFMT" 1>&6
8419 echo "$ac_t""no" 1>&6
8422 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8423 set dummy gmsgfmt
; ac_word
=$2
8424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8425 echo "configure:8426: checking for $ac_word" >&5
8426 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8431 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8434 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8437 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8439 for ac_dir
in $ac_dummy; do
8440 test -z "$ac_dir" && ac_dir
=.
8441 if test -f $ac_dir/$ac_word; then
8442 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8447 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8451 GMSGFMT
="$ac_cv_path_GMSGFMT"
8452 if test -n "$GMSGFMT"; then
8453 echo "$ac_t""$GMSGFMT" 1>&6
8455 echo "$ac_t""no" 1>&6
8458 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8459 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8460 create_catalogs
="no"
8462 # Extract the first word of "xgettext", so it can be a program name with args.
8463 set dummy xgettext
; ac_word
=$2
8464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8465 echo "configure:8466: checking for $ac_word" >&5
8466 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8471 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8474 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8475 for ac_dir
in $PATH; do
8476 test -z "$ac_dir" && ac_dir
=.
8477 if test -f $ac_dir/$ac_word; then
8478 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8479 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8485 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8489 XGETTEXT
="$ac_cv_path_XGETTEXT"
8490 if test -n "$XGETTEXT"; then
8491 echo "$ac_t""$XGETTEXT" 1>&6
8493 echo "$ac_t""no" 1>&6
8497 USE_INCLUDED_LIBINTL
=yes
8501 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8503 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8504 nls_cv_header_intl
=intl
/libintl.h
8505 nls_cv_header_libgt
=intl
/libgettext.h
8508 if test "$XGETTEXT" != ":"; then
8509 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8512 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8519 # We need to process the po/ directory.
8523 nls_cv_header_intl
=intl
/libintl.h
8524 nls_cv_header_libgt
=intl
/libgettext.h
8530 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8531 # because some of the sources are only built for this goal.
8532 if test "$PACKAGE" = gettext; then
8534 USE_INCLUDED_LIBINTL
=yes
8537 for lang
in $ALL_LINGUAS; do
8538 GMOFILES
="$GMOFILES $lang.gmo"
8539 POFILES
="$POFILES $lang.po"
8555 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8556 if test "x$ALL_LINGUAS" = "x"; then
8559 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8560 echo "configure:8561: checking for catalogs to be installed" >&5
8561 if test "x$LINGUAS" = "x"; then
8562 LINGUAS
=$ALL_LINGUAS
8565 for lang
in $ALL_LINGUAS; do
8566 case " $LINGUAS " in
8567 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8570 LINGUAS
=$NEW_LINGUAS
8572 echo "$ac_t""$LINGUAS" 1>&6
8575 if test -n "$LINGUAS"; then
8576 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8580 if test $ac_cv_header_locale_h = yes; then
8581 INCLUDE_LOCALE_H
="#include <locale.h>"
8584 /* The system does not provide the header <locale.h>. Take care yourself. */"
8588 test -d intl || mkdir intl
8589 if test "$CATOBJEXT" = ".cat"; then
8590 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8591 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8592 echo "configure:8593: checking for linux/version.h" >&5
8593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8594 echo $ac_n "(cached) $ac_c" 1>&6
8596 cat > conftest.
$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8599 #include <linux/version.h>
8601 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8602 { (eval echo configure
:8603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8603 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8604 if test -z "$ac_err"; then
8606 eval "ac_cv_header_$ac_safe=yes"
8609 echo "configure: failed program was:" >&5
8610 cat conftest.
$ac_ext >&5
8612 eval "ac_cv_header_$ac_safe=no"
8616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8620 echo "$ac_t""no" 1>&6
8625 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8627 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8628 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8630 if test "$PACKAGE" = "gettext"; then
8641 if test -n "$ac_aux_dir"; then
8642 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8644 if test -z "$MKINSTALLDIRS"; then
8645 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8652 test -d po || mkdir po
8653 if test "x$srcdir" != "x."; then
8654 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8655 posrcprefix
="$srcdir/"
8657 posrcprefix
="../$srcdir/"
8663 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8664 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8666 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8668 # Windows32 Registry support for specifying GCC installation paths.
8669 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8670 if test "${enable_win32_registry+set}" = set; then
8671 enableval
="$enable_win32_registry"
8676 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8677 echo "configure:8678: checking whether windows registry support is requested" >&5
8678 if test x
$enable_win32_registry != xno
; then
8679 cat >> confdefs.h
<<\EOF
8680 #define ENABLE_WIN32_REGISTRY 1
8683 echo "$ac_t""yes" 1>&6
8685 echo "$ac_t""no" 1>&6
8688 # Check if user specified a different registry key.
8689 case x
${enable_win32_registry} in
8692 gcc_cv_win32_registry_key
="$VERSION"
8695 # no registry lookup.
8696 gcc_cv_win32_registry_key
=''
8699 # user-specified key.
8700 gcc_cv_win32_registry_key
="$enable_win32_registry"
8704 if test x
$enable_win32_registry != xno
; then
8705 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8706 echo "configure:8707: checking registry key on windows hosts" >&5
8707 cat >> confdefs.h
<<EOF
8708 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8711 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8714 # Get an absolute path to the GCC top-level source directory
8720 # Conditionalize the makefile for this host machine.
8721 # Make-host contains the concatenation of all host makefile fragments
8722 # [there can be more than one]. This file is built by configure.frag.
8723 host_overrides
=Make-host
8724 dep_host_xmake_file
=
8725 for f
in ..
${host_xmake_file}
8727 if test -f ${srcdir}/config
/$f
8729 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8733 # Conditionalize the makefile for this target machine.
8734 # Make-target contains the concatenation of all host makefile fragments
8735 # [there can be more than one]. This file is built by configure.frag.
8736 target_overrides
=Make-target
8738 for f
in ..
${tmake_file}
8740 if test -f ${srcdir}/config
/$f
8742 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8746 # If the host doesn't support symlinks, modify CC in
8747 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8748 # Otherwise, we can use "CC=$(CC)".
8750 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8752 cc_set_by_configure
="\$(CC)"
8753 quoted_cc_set_by_configure
="\$(CC)"
8754 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8757 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8759 symbolic_link
="cp -p"
8763 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8764 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8765 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8769 out_object_file
=`basename $out_file .c`.o
8772 for f
in $tm_file; do
8775 tm_file_list
="${tm_file_list} $f" ;;
8776 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8781 for f
in $host_xm_file; do
8783 auto-host.h | gansidecl.h | hwint.h
)
8784 host_xm_file_list
="${host_xm_file_list} $f" ;;
8785 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8790 for f
in $build_xm_file; do
8792 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8793 build_xm_file_list
="${build_xm_file_list} $f" ;;
8794 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8798 # Define macro CROSS_COMPILE in compilation
8799 # if this is a cross-compiler.
8800 # Also use all.cross instead of all.internal
8801 # and add cross-make to Makefile.
8802 cross_overrides
="/dev/null"
8803 if test x
$host != x
$target
8805 cross_defines
="CROSS=-DCROSS_COMPILE"
8806 cross_overrides
="${topdir}/cross-make"
8809 # If this is a cross-compiler that does not
8810 # have its own set of headers then define
8813 # If this is using newlib, then define inhibit_libc in
8814 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8815 # libgcc.a, but that's OK because newlib should have its own version of
8818 if test x
$host != x
$target && test x
$with_headers = x
; then
8819 inhibit_libc
=-Dinhibit_libc
8821 if test x
$with_newlib = xyes
; then
8822 inhibit_libc
=-Dinhibit_libc
8827 # When building gcc with a cross-compiler, we need to fix a few things.
8828 # This must come after cross-make as we want all.build to override
8830 build_overrides
="/dev/null"
8831 if test x
$build != x
$host
8833 build_overrides
="${topdir}/build-make"
8836 # Expand extra_headers to include complete path.
8837 # This substitutes for lots of t-* files.
8839 if test "x$extra_headers" = x
8842 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8843 for file in $extra_headers;
8845 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8849 if test x
$use_collect2 = xno
; then
8853 # Add a definition of USE_COLLECT2 if system wants one.
8854 # Also tell toplev.c what to do.
8855 # This substitutes for lots of t-* files.
8856 if test x
$use_collect2 = x
8861 will_use_collect2
="collect2"
8862 maybe_use_collect2
="-DUSE_COLLECT2"
8866 # Set MD_DEPS if the real md file is in md.pre-cpp.
8867 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8868 # for line oriented comments, so we must always use a GNU cpp. If
8869 # building gcc with a cross compiler, use the cross compiler just
8870 # built. Otherwise, we can use the cpp just built.
8872 if test "x$md_cppflags" = x
8874 md_file_sub
=$srcdir/config
/$md_file
8879 # If we have gas in the build tree, make a link to it.
8880 if test -f ..
/gas
/Makefile
; then
8881 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8884 # If we have nm in the build tree, make a link to it.
8885 if test -f ..
/binutils
/Makefile
; then
8886 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8889 # If we have ld in the build tree, make a link to it.
8890 if test -f ..
/ld
/Makefile
; then
8891 # if test x$use_collect2 = x; then
8892 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8894 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8898 # Figure out what assembler alignment features are present.
8899 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8900 echo "configure:8901: checking assembler alignment features" >&5
8902 gcc_cv_as_alignment_features
=
8903 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8904 if test -x "$DEFAULT_ASSEMBLER"; then
8905 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8906 elif test -x "$AS"; then
8908 elif test -x as
$host_exeext; then
8909 # Build using assembler in the current directory.
8910 gcc_cv_as
=.
/as
$host_exeext
8911 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8912 # Single tree build which includes gas.
8913 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8915 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8916 if test x
$gcc_cv_gas_version != x
; then
8920 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8921 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8922 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8923 # Gas version 2.6 and later support for .balign and .p2align.
8924 # bytes to skip when using .p2align.
8925 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
8926 gcc_cv_as_alignment_features
=".balign and .p2align"
8927 cat >> confdefs.h
<<\EOF
8928 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8932 # Gas version 2.8 and later support specifying the maximum
8933 # bytes to skip when using .p2align.
8934 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
8935 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8936 cat >> confdefs.h
<<\EOF
8937 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8942 elif test x
$host = x
$target; then
8944 # Search the same directories that the installed compiler will
8945 # search. Else we may find the wrong assembler and lose. If we
8946 # do not find a suitable assembler binary, then try the user's
8949 # Also note we have to check MD_EXEC_PREFIX before checking the
8950 # user's path. Unfortunately, there is no good way to get at the
8951 # value of MD_EXEC_PREFIX here. So we do a brute force search
8952 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8953 # to be fixed as part of the make/configure rewrite too.
8955 if test "x$exec_prefix" = xNONE
; then
8956 if test "x$prefix" = xNONE
; then
8957 test_prefix
=/usr
/local
8962 test_prefix
=$exec_prefix
8965 # If the loop below does not find an assembler, then use whatever
8966 # one we can find in the users's path.
8970 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8971 $test_prefix/lib/gcc-lib/$target \
8972 /usr/lib/gcc/$target/$gcc_version \
8973 /usr/lib/gcc/$target \
8974 $test_prefix/$target/bin/$target/$gcc_version \
8975 $test_prefix/$target/bin \
8980 /bsd43/usr/lib/cmplrs/cc \
8981 /usr/cross64/usr/bin \
8982 /usr/lib/cmplrs/cc \
8983 /sysv/usr/lib/cmplrs/cc \
8984 /svr4/usr/lib/cmplrs/cc \
8987 for dir
in $test_dirs; do
8988 if test -f $dir/as
$host_exeext; then
8989 gcc_cv_as
=$dir/as
$host_exeext
8994 if test x
$gcc_cv_as != x
; then
8995 # Check if we have .balign and .p2align
8996 echo ".balign 4" > conftest.s
8997 echo ".p2align 2" >> conftest.s
8998 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8999 gcc_cv_as_alignment_features
=".balign and .p2align"
9000 cat >> confdefs.h
<<\EOF
9001 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9005 rm -f conftest.s conftest.o
9006 # Check if specifying the maximum bytes to skip when
9007 # using .p2align is supported.
9008 echo ".p2align 4,,7" > conftest.s
9009 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9010 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9011 cat >> confdefs.h
<<\EOF
9012 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9016 rm -f conftest.s conftest.o
9018 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9020 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9021 echo "configure:9022: checking assembler subsection support" >&5
9022 gcc_cv_as_subsections
=
9023 if test x
$gcc_cv_as != x
; then
9024 # Check if we have .subsection
9025 echo ".subsection 1" > conftest.s
9026 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9027 gcc_cv_as_subsections
=".subsection"
9028 if test -x nm
$host_exeext; then
9029 gcc_cv_nm
=.
/nm
$host_exeext
9030 elif test x
$host = x
$target; then
9032 gcc_cv_nm
=nm
$host_exeext
9034 if test x
$gcc_cv_nm != x
; then
9035 cat > conftest.s
<<EOF
9036 conftest_label1: .word 0
9038 conftest_label2: .word 0
9041 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9042 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9043 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9044 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9047 gcc_cv_as_subsections
="working .subsection -1"
9048 cat >> confdefs.h
<<\EOF
9049 #define HAVE_GAS_SUBSECTION_ORDERING 1
9056 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9058 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9060 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9061 echo "configure:9062: checking assembler weak support" >&5
9063 if test x
$gcc_cv_as != x
; then
9064 # Check if we have .weak
9065 echo " .weak foobar" > conftest.s
9066 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9067 cat >> confdefs.h
<<\EOF
9068 #define HAVE_GAS_WEAK 1
9071 gcc_cv_as_weak
="yes"
9073 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9075 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9077 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9078 echo "configure:9079: checking assembler hidden support" >&5
9080 if test x
$gcc_cv_as != x
; then
9081 # Check if we have .hidden
9082 echo " .hidden foobar" > conftest.s
9083 echo "foobar:" >> conftest.s
9084 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9085 cat >> confdefs.h
<<\EOF
9086 #define HAVE_GAS_HIDDEN 1
9089 gcc_cv_as_hidden
="yes"
9091 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9093 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9097 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9098 echo "configure:9099: checking assembler .register pseudo-op support" >&5
9099 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9103 gcc_cv_as_register_pseudo_op
=unknown
9104 if test x
$gcc_cv_as != x
; then
9105 # Check if we have .register
9106 echo ".register %g2, #scratch" > conftest.s
9107 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9108 gcc_cv_as_register_pseudo_op
=yes
9110 gcc_cv_as_register_pseudo_op
=no
9112 rm -f conftest.s conftest.o
9117 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9118 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9119 cat >> confdefs.h
<<\EOF
9120 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9125 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9126 echo "configure:9127: checking assembler supports -relax" >&5
9127 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9131 gcc_cv_as_relax_opt
=unknown
9132 if test x
$gcc_cv_as != x
; then
9133 # Check if gas supports -relax
9134 echo ".text" > conftest.s
9135 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9136 gcc_cv_as_relax_opt
=yes
9138 gcc_cv_as_relax_opt
=no
9140 rm -f conftest.s conftest.o
9145 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9146 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9147 cat >> confdefs.h
<<\EOF
9148 #define HAVE_AS_RELAX_OPTION 1
9155 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9156 echo "configure:9157: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9157 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9161 if test -n "$gcc_cv_as"; then
9162 echo ".xword foo" > conftest.s
9163 gcc_cv_as_flags64
=no
9164 for flag
in "-xarch=v9" "-64 -Av9"; do
9165 if $gcc_cv_as $flag -o conftest.o conftest.s \
9166 > /dev
/null
2>&1; then
9167 gcc_cv_as_flags64
=$flag
9171 rm -f conftest.s conftest.o
9173 if test "$gas" = yes; then
9174 gcc_cv_as_flags64
="-64 -Av9"
9176 gcc_cv_as_flags64
="-xarch=v9"
9182 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9183 if test "x$gcc_cv_as_flags64" = xno
; then
9185 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9186 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9189 cat >> confdefs.h
<<EOF
9190 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9195 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9199 if test "x$gcc_cv_as_flags64" != xno
; then
9200 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9201 echo "configure:9202: checking for assembler offsetable %lo() support" >&5
9202 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9206 gcc_cv_as_offsetable_lo10
=unknown
9207 if test "x$gcc_cv_as" != x
; then
9208 # Check if assembler has offsetable %lo()
9209 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9210 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9211 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9213 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9214 > /dev
/null
2>&1; then
9215 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9216 gcc_cv_as_offsetable_lo10
=no
9218 gcc_cv_as_offsetable_lo10
=yes
9221 gcc_cv_as_offsetable_lo10
=no
9223 rm -f conftest.s conftest.o conftest1.s conftest1.o
9228 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9229 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9230 cat >> confdefs.h
<<\EOF
9231 #define HAVE_AS_OFFSETABLE_LO10 1
9239 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9240 echo "configure:9241: checking assembler instructions" >&5
9241 gcc_cv_as_instructions
=
9242 if test x
$gcc_cv_as != x
; then
9243 set "filds fists" "filds mem; fists mem"
9246 echo "$2" > conftest.s
9247 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9248 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9249 cat >> confdefs.h
<<EOF
9250 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9256 rm -f conftest.s conftest.o
9258 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9262 # Figure out what language subdirectories are present.
9263 # Look if the user specified --enable-languages="..."; if not, use
9264 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9266 if test x
"${enable_languages+set}" != xset
; then
9267 if test x
"${LANGUAGES+set}" = xset
; then
9268 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9270 enable_languages
=all
9273 if test x
"${enable_languages}" = x
; then
9274 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9278 for lang
in ${srcdir}/*/config-lang.
in ..
9282 # The odd quoting in the next line works around
9283 # an apparent bug in bash 1.12 on linux.
9284 ${srcdir}/[*]/config-lang.
in) ;;
9286 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9287 if test "x$lang_alias" = x
9289 echo "$lang doesn't set \$language." 1>&2
9292 if test x
"${enable_languages}" = xall
; then
9295 case "${enable_languages}" in
9296 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9304 if test x"${add_this_lang}" = xyes; then
9306 ${srcdir}/ada/config-lang.in)
9307 if test x$gnat = xyes ; then
9308 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9312 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9320 # Make gthr-default.h if we have a thread file.
9322 if test $thread_file != single; then
9323 rm -f gthr-default.h
9324 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9325 gthread_flags
=-DHAVE_GTHR_DEFAULT
9329 # Find out what GC implementation we want, or may, use.
9330 # Check whether --with-gc or --without-gc was given.
9331 if test "${with_gc+set}" = set; then
9338 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9342 if test $ac_cv_func_mmap_anywhere = yes \
9343 ||
test $ac_cv_func_valloc = yes; then
9351 echo "Using $GGC for garbage collection."
9353 # Build a new-abi (c++) system
9354 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9355 if test "${enable_new_gxx_abi+set}" = set; then
9356 enableval
="$enable_new_gxx_abi"
9357 cat >> confdefs.h
<<\EOF
9358 #define ENABLE_NEW_GXX_ABI 1
9361 GXX_ABI_FLAG
='-fnew-abi'
9362 echo "Building a new-abi g++ compiler."
9368 # Build a new-libstdc++ system (ie libstdc++-v3)
9369 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9370 echo "configure:9371: checking for libstdc++ to install" >&5
9371 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9372 if test "${enable_libstdcxx_v3+set}" = set; then
9373 enableval
="$enable_libstdcxx_v3"
9374 enable_libstdcxx_v3
="$enableval"
9376 enable_libstdcxx_v3
=no
9380 if test x
$enable_libstdcxx_v3 = xyes
; then
9381 echo "$ac_t""v3" 1>&6
9384 echo "$ac_t""v2" 1>&6
9387 cat >> confdefs.h
<<EOF
9388 #define ENABLE_STD_NAMESPACE $ac_esn
9393 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9394 echo "configure:9395: checking whether to enable maintainer-specific portions of Makefiles" >&5
9395 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9396 if test "${enable_maintainer_mode+set}" = set; then
9397 enableval
="$enable_maintainer_mode"
9398 maintainer_mode
=$enableval
9404 echo "$ac_t""$maintainer_mode" 1>&6
9406 if test "$maintainer_mode" = "yes"; then
9412 # Make empty files to contain the specs and options for each language.
9413 # Then add #include lines to for a compiler that has specs and/or options.
9418 rm -f specs.h options.h gencheck.h
9419 touch specs.h options.h gencheck.h
9420 for subdir
in .
$subdirs
9422 if test -f $srcdir/$subdir/lang-specs.h
; then
9423 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9424 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9426 if test -f $srcdir/$subdir/lang-options.h
; then
9427 echo "#include \"$subdir/lang-options.h\"" >>options.h
9428 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9430 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9431 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9432 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9436 # These (without "all_") are set in each config-lang.in.
9437 # `language' must be a single word so is spelled singularly.
9443 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9444 # List of language makefile fragments.
9449 # Add the language fragments.
9450 # Languages are added via two mechanisms. Some information must be
9451 # recorded in makefile variables, these are defined in config-lang.in.
9452 # We accumulate them and plug them into the main Makefile.
9453 # The other mechanism is a set of hooks for each of the main targets
9454 # like `clean', `install', etc.
9456 language_fragments
="Make-lang"
9457 language_hooks
="Make-hooks"
9460 for s
in ..
$subdirs
9472 .
${srcdir}/$s/config-lang.
in
9473 if test "x$language" = x
9475 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9478 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9479 all_languages
="$all_languages $language"
9480 if test "x$boot_language" = xyes
9482 all_boot_languages
="$all_boot_languages $language"
9484 all_compilers
="$all_compilers $compilers"
9485 all_stagestuff
="$all_stagestuff $stagestuff"
9486 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9487 all_headers
="$all_headers $headers"
9488 all_outputs
="$all_outputs $outputs"
9489 if test x
$outputs = x
9491 oldstyle_subdirs
="$oldstyle_subdirs $s"
9493 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9497 # Since we can't use `::' targets, we link each language in
9498 # with a set of hooks, reached indirectly via lang.${target}.
9502 target_list
="all.build all.cross start.encap rest.encap \
9504 install-normal install-common install-info install-man \
9506 mostlyclean clean distclean extraclean maintainer-clean \
9507 stage1 stage2 stage3 stage4"
9508 for t
in $target_list
9511 for lang
in ..
$all_languages
9513 if test $lang != ".."; then
9517 echo "lang.$t: $x" >> Make-hooks
9520 # If we're not building in srcdir, create .gdbinit.
9522 if test ! -f Makefile.
in; then
9523 echo "dir ." > .gdbinit
9524 echo "dir ${srcdir}" >> .gdbinit
9525 if test x
$gdb_needs_out_file_path = xyes
9527 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9529 if test "x$subdirs" != x
; then
9532 echo "dir ${srcdir}/$s" >> .gdbinit
9535 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9538 # Define variables host_canonical and build_canonical
9539 # because some Cygnus local changes in the Makefile depend on them.
9540 build_canonical
=${build}
9541 host_canonical
=${host}
9543 if test "${host}" != "${target}" ; then
9544 target_subdir
=${target}/
9550 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9551 # absolute path for gcc_tooldir based on inserting the number of up-directory
9552 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9553 # $(libsubdir)/@(unlibsubdir) based path.
9554 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9555 # make and thus we'd get different behavior depending on where we built the
9557 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9558 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9560 # An explanation of the sed strings:
9561 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9562 # -e 's|/$||' match a trailing forward slash and eliminates it
9563 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9564 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9566 # (*) Note this pattern overwrites the first character of the string
9567 # with a forward slash if one is not already present. This is not a
9568 # problem because the exact names of the sub-directories concerned is
9569 # unimportant, just the number of them matters.
9571 # The practical upshot of these patterns is like this:
9573 # prefix exec_prefix result
9574 # ------ ----------- ------
9576 # /foo/ /foo/bar ../
9577 # /foo /foo/bar/ ../
9578 # /foo/ /foo/bar/ ../
9579 # /foo /foo/bar/ugg ../../
9582 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9587 # Nothing to do for FLOAT_H, float_format already handled.
9591 # Process the language and host/target makefile fragments.
9592 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9594 # Substitute configuration variables
9653 # Echo that links are built
9654 if test x
$host = x
$target
9662 if test x
$host != x
$build
9664 str3
=" on a $build system"
9667 if test "x$str2" != x ||
test "x$str3" != x
9672 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9674 if test "x$str2" != x ||
test "x$str3" != x
9676 echo " ${str2}${str3}." 1>&2
9679 # Truncate the target if necessary
9680 if test x
$host_truncate_target != x
; then
9681 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9684 # Configure the subdirectories
9685 # AC_CONFIG_SUBDIRS($subdirs)
9687 # Create the Makefile
9688 # and configure language subdirectories
9690 cat > confcache
<<\EOF
9691 # This file is a shell script that caches the results of configure
9692 # tests run on this system so they can be shared between configure
9693 # scripts and configure runs. It is not useful on other systems.
9694 # If it contains results you don't want to keep, you may remove or edit it.
9696 # By default, configure uses ./config.cache as the cache file,
9697 # creating it if it does not exist already. You can give configure
9698 # the --cache-file=FILE option to use a different cache file; that is
9699 # what configure does when it calls configure scripts in
9700 # subdirectories, so they share the cache.
9701 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9702 # config.status only pays attention to the cache file if you give it the
9703 # --recheck option to rerun configure.
9706 # The following way of writing the cache mishandles newlines in values,
9707 # but we know of no workaround that is simple, portable, and efficient.
9708 # So, don't put newlines in cache variables' values.
9709 # Ultrix sh set writes to stderr and can't be redirected directly,
9710 # and sets the high bit in the cache file unless we assign to the vars.
9712 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9714 # `set' does not quote correctly, so add quotes (double-quote substitution
9715 # turns \\\\ into \\, and sed turns \\ into \).
9717 -e "s/'/'\\\\''/g" \
9718 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9721 # `set' quotes correctly as required by POSIX, so do not add quotes.
9722 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9725 if cmp -s $cache_file confcache
; then
9728 if test -w $cache_file; then
9729 echo "updating cache $cache_file"
9730 cat confcache
> $cache_file
9732 echo "not updating unwritable cache $cache_file"
9737 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9739 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9740 # Let make expand exec_prefix.
9741 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9743 # Any assignment to VPATH causes Sun make to only execute
9744 # the first set of double-colon rules, so remove it if not needed.
9745 # If there is a colon in the path, we need to keep it.
9746 if test "x$srcdir" = x.
; then
9747 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9750 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9752 DEFS
=-DHAVE_CONFIG_H
9754 # Without the "./", some shells look in PATH for config.status.
9755 : ${CONFIG_STATUS=./config.status}
9757 echo creating
$CONFIG_STATUS
9758 rm -f $CONFIG_STATUS
9759 cat > $CONFIG_STATUS <<EOF
9761 # Generated automatically by configure.
9762 # Run this file to recreate the current configuration.
9763 # This directory was configured as follows,
9764 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9766 # $0 $ac_configure_args
9768 # Compiler output produced by configure, useful for debugging
9769 # configure, is in ./config.log if it exists.
9771 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9774 case "\$ac_option" in
9775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9776 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9777 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9778 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9779 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9781 -help | --help | --hel | --he | --h)
9782 echo "\$ac_cs_usage"; exit 0 ;;
9783 *) echo "\$ac_cs_usage"; exit 1 ;;
9787 ac_given_srcdir=$srcdir
9789 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9791 cat >> $CONFIG_STATUS <<EOF
9793 # Protect against being on the right side of a sed subst in config.status.
9794 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9795 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9799 s%@CFLAGS@%$CFLAGS%g
9800 s%@CPPFLAGS@%$CPPFLAGS%g
9801 s%@CXXFLAGS@%$CXXFLAGS%g
9802 s%@FFLAGS@%$FFLAGS%g
9804 s%@LDFLAGS@%$LDFLAGS%g
9806 s%@exec_prefix@%$exec_prefix%g
9807 s%@prefix@%$prefix%g
9808 s%@program_transform_name@%$program_transform_name%g
9809 s%@bindir@%$bindir%g
9810 s%@sbindir@%$sbindir%g
9811 s%@libexecdir@%$libexecdir%g
9812 s%@datadir@%$datadir%g
9813 s%@sysconfdir@%$sysconfdir%g
9814 s%@sharedstatedir@%$sharedstatedir%g
9815 s%@localstatedir@%$localstatedir%g
9816 s%@libdir@%$libdir%g
9817 s%@includedir@%$includedir%g
9818 s%@oldincludedir@%$oldincludedir%g
9819 s%@infodir@%$infodir%g
9820 s%@mandir@%$mandir%g
9822 s%@host_alias@%$host_alias%g
9823 s%@host_cpu@%$host_cpu%g
9824 s%@host_vendor@%$host_vendor%g
9825 s%@host_os@%$host_os%g
9826 s%@target@%$target%g
9827 s%@target_alias@%$target_alias%g
9828 s%@target_cpu@%$target_cpu%g
9829 s%@target_vendor@%$target_vendor%g
9830 s%@target_os@%$target_os%g
9832 s%@build_alias@%$build_alias%g
9833 s%@build_cpu@%$build_cpu%g
9834 s%@build_vendor@%$build_vendor%g
9835 s%@build_os@%$build_os%g
9837 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9838 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9839 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9840 s%@SET_MAKE@%$SET_MAKE%g
9843 s%@LEXLIB@%$LEXLIB%g
9846 s%@RANLIB@%$RANLIB%g
9848 s%@INSTALL@%$INSTALL%g
9849 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9850 s%@INSTALL_DATA@%$INSTALL_DATA%g
9853 s%@MAKEINFO@%$MAKEINFO%g
9854 s%@BUILD_INFO@%$BUILD_INFO%g
9855 s%@INSTALL_INFO@%$INSTALL_INFO%g
9856 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9857 s%@vfprintf@%$vfprintf%g
9858 s%@doprint@%$doprint%g
9859 s%@manext@%$manext%g
9860 s%@objext@%$objext%g
9861 s%@PACKAGE@%$PACKAGE%g
9862 s%@VERSION@%$VERSION%g
9863 s%@ALLOCA@%$ALLOCA%g
9864 s%@USE_NLS@%$USE_NLS%g
9865 s%@MSGFMT@%$MSGFMT%g
9866 s%@GMSGFMT@%$GMSGFMT%g
9867 s%@XGETTEXT@%$XGETTEXT%g
9868 s%@GENCAT@%$GENCAT%g
9869 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9870 s%@CATALOGS@%$CATALOGS%g
9871 s%@CATOBJEXT@%$CATOBJEXT%g
9872 s%@DATADIRNAME@%$DATADIRNAME%g
9873 s%@GMOFILES@%$GMOFILES%g
9874 s%@INSTOBJEXT@%$INSTOBJEXT%g
9875 s%@INTLDEPS@%$INTLDEPS%g
9876 s%@INTLLIBS@%$INTLLIBS%g
9877 s%@INTLOBJS@%$INTLOBJS%g
9878 s%@POFILES@%$POFILES%g
9880 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9882 s%@GT_YES@%$GT_YES%g
9883 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9885 s%@inhibit_libc@%$inhibit_libc%g
9886 s%@gthread_flags@%$gthread_flags%g
9888 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9890 s%@build_canonical@%$build_canonical%g
9891 s%@host_canonical@%$host_canonical%g
9892 s%@target_subdir@%$target_subdir%g
9893 s%@gcc_tooldir@%$gcc_tooldir%g
9894 s%@dollar@%$dollar%g
9895 s%@objdir@%$objdir%g
9896 s%@subdirs@%$subdirs%g
9897 s%@all_boot_languages@%$all_boot_languages%g
9898 s%@all_compilers@%$all_compilers%g
9899 s%@all_diff_excludes@%$all_diff_excludes%g
9900 s%@all_headers@%$all_headers%g
9901 s%@all_lang_makefiles@%$all_lang_makefiles%g
9902 s%@all_languages@%$all_languages%g
9903 s%@all_lib2funcs@%$all_lib2funcs%g
9904 s%@all_stagestuff@%$all_stagestuff%g
9905 s%@build_exeext@%$build_exeext%g
9906 s%@build_install_headers_dir@%$build_install_headers_dir%g
9907 s%@build_xm_file_list@%$build_xm_file_list%g
9908 s%@cc_set_by_configure@%$cc_set_by_configure%g
9909 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9910 s%@cpp_install_dir@%$cpp_install_dir%g
9911 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9912 s%@dep_tmake_file@%$dep_tmake_file%g
9913 s%@extra_c_flags@%$extra_c_flags%g
9914 s%@extra_c_objs@%$extra_c_objs%g
9915 s%@extra_cpp_objs@%$extra_cpp_objs%g
9916 s%@extra_cxx_objs@%$extra_cxx_objs%g
9917 s%@extra_headers_list@%$extra_headers_list%g
9918 s%@extra_objs@%$extra_objs%g
9919 s%@extra_parts@%$extra_parts%g
9920 s%@extra_passes@%$extra_passes%g
9921 s%@extra_programs@%$extra_programs%g
9922 s%@float_h_file@%$float_h_file%g
9923 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9924 s%@gcc_version@%$gcc_version%g
9925 s%@gcc_version_trigger@%$gcc_version_trigger%g
9926 s%@host_exeext@%$host_exeext%g
9927 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9928 s%@host_xm_file_list@%$host_xm_file_list%g
9929 s%@install@%$install%g
9930 s%@lang_options_files@%$lang_options_files%g
9931 s%@lang_specs_files@%$lang_specs_files%g
9932 s%@lang_tree_files@%$lang_tree_files%g
9933 s%@local_prefix@%$local_prefix%g
9934 s%@maybe_use_collect2@%$maybe_use_collect2%g
9935 s%@md_file@%$md_file%g
9936 s%@objc_boehm_gc@%$objc_boehm_gc%g
9937 s%@out_file@%$out_file%g
9938 s%@out_object_file@%$out_object_file%g
9939 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9940 s%@symbolic_link@%$symbolic_link%g
9941 s%@thread_file@%$thread_file%g
9942 s%@tm_file_list@%$tm_file_list%g
9943 s%@will_use_collect2@%$will_use_collect2%g
9944 /@target_overrides@/r $target_overrides
9945 s%@target_overrides@%%g
9946 /@host_overrides@/r $host_overrides
9947 s%@host_overrides@%%g
9948 s%@cross_defines@%$cross_defines%g
9949 /@cross_overrides@/r $cross_overrides
9950 s%@cross_overrides@%%g
9951 /@build_overrides@/r $build_overrides
9952 s%@build_overrides@%%g
9953 /@language_fragments@/r $language_fragments
9954 s%@language_fragments@%%g
9955 /@language_hooks@/r $language_hooks
9956 s%@language_hooks@%%g
9961 cat >> $CONFIG_STATUS <<\EOF
9963 # Split the substitutions into bite-sized pieces for seds with
9964 # small command number limits, like on Digital OSF/1 and HP-UX.
9965 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9966 ac_file
=1 # Number of current file.
9967 ac_beg
=1 # First line for current file.
9968 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9971 while $ac_more_lines; do
9972 if test $ac_beg -gt 1; then
9973 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9975 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9977 if test ! -s conftest.s
$ac_file; then
9979 rm -f conftest.s
$ac_file
9981 if test -z "$ac_sed_cmds"; then
9982 ac_sed_cmds
="sed -f conftest.s$ac_file"
9984 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9986 ac_file
=`expr $ac_file + 1`
9988 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9991 if test -z "$ac_sed_cmds"; then
9996 cat >> $CONFIG_STATUS <<EOF
9998 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
10000 cat >> $CONFIG_STATUS <<\EOF
10001 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10004 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10005 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10006 *) ac_file_in
="${ac_file}.in" ;;
10009 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10011 # Remove last slash and all that follows it. Not all systems have dirname.
10012 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10013 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10014 # The file is in a subdirectory.
10015 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10016 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10017 # A "../" for each directory in $ac_dir_suffix.
10018 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10020 ac_dir_suffix
= ac_dots
=
10023 case "$ac_given_srcdir" in
10025 if test -z "$ac_dots"; then top_srcdir
=.
10026 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10027 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10028 *) # Relative path.
10029 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10030 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10034 echo creating
"$ac_file"
10036 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10038 *Makefile
*) ac_comsub
="1i\\
10039 # $configure_input" ;;
10043 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10045 s%@configure_input@%$configure_input%g
10046 s%@srcdir@%$srcdir%g
10047 s%@top_srcdir@%$top_srcdir%g
10048 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10052 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10053 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10055 # ac_d sets the value in "#define NAME VALUE" lines.
10056 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10057 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10060 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10061 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10062 ac_uB
='\([ ]\)%\1#\2define\3'
10065 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10066 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10067 ac_eB
='$%\1#\2define\3'
10071 if test "${CONFIG_HEADERS+set}" != set; then
10073 cat >> $CONFIG_STATUS <<EOF
10074 CONFIG_HEADERS="auto-host.h:config.in"
10076 cat >> $CONFIG_STATUS <<\EOF
10078 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10081 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10082 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10083 *) ac_file_in
="${ac_file}.in" ;;
10086 echo creating
$ac_file
10088 rm -f conftest.frag conftest.
in conftest.out
10089 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10090 cat $ac_file_inputs > conftest.
in
10094 # Transform confdefs.h into a sed script conftest.vals that substitutes
10095 # the proper values into config.h.in to produce config.h. And first:
10096 # Protect against being on the right side of a sed subst in config.status.
10097 # Protect against being in an unquoted here document in config.status.
10098 rm -f conftest.vals
10099 cat > conftest.hdr
<<\EOF
10102 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10106 sed -n -f conftest.hdr confdefs.h > conftest.vals
10109 # This sed command replaces #undef with comments. This is necessary, for
10110 # example, in the case of _POSIX_SOURCE, which is predefined and required
10111 # on some systems where configure will not decide to define it.
10112 cat >> conftest.vals <<\EOF
10113 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10116 # Break up conftest.vals because some shells have a limit on
10117 # the size of here documents, and old seds have small limits too.
10119 rm -f conftest.tail
10122 ac_lines=`grep -c . conftest.vals
`
10123 # grep -c gives empty output for an empty file on some AIX systems.
10124 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10125 # Write a limited-size here document to conftest.frag.
10126 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10127 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10129 sed -f conftest.frag conftest.in > conftest.out
10131 mv conftest.out conftest.in
10132 ' >> $CONFIG_STATUS
10133 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10134 rm -f conftest.vals
10135 mv conftest.tail conftest.vals
10137 rm -f conftest.vals
10139 cat >> $CONFIG_STATUS <<\EOF
10140 rm -f conftest.frag conftest.h
10141 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10142 cat conftest.in >> conftest.h
10144 if cmp -s $ac_file conftest.h 2>/dev/null; then
10145 echo "$ac_file is unchanged"
10148 # Remove last slash and all that follows it. Not all systems have dirname.
10149 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10150 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10151 # The file is in a subdirectory.
10152 test ! -d "$ac_dir" && mkdir "$ac_dir"
10155 mv conftest.h $ac_file
10161 cat >> $CONFIG_STATUS <<EOF
10162 ac_sources="$nls_cv_header_libgt"
10163 ac_dests="$nls_cv_header_intl"
10166 cat >> $CONFIG_STATUS <<\EOF
10167 srcdir=$ac_given_srcdir
10168 while test -n "$ac_sources"; do
10169 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10170 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10172 echo "linking $srcdir/$ac_source to $ac_dest"
10174 if test ! -r $srcdir/$ac_source; then
10175 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10179 # Make relative symlinks.
10180 # Remove last slash and all that follows it. Not all systems have dirname.
10181 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10182 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10183 # The dest file is in a subdirectory.
10184 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10185 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10186 # A "../" for each directory in $ac_dest_dir_suffix.
10187 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10189 ac_dest_dir_suffix= ac_dots=
10193 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10194 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10197 # Make a symlink if possible; otherwise try a hard link.
10198 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10199 ln $srcdir/$ac_source $ac_dest; then :
10201 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10205 cat >> $CONFIG_STATUS <<EOF
10211 target_alias='${target_alias}'
10213 subdirs='${subdirs}'
10214 oldstyle_subdirs='${oldstyle_subdirs}'
10215 symbolic_link='${symbolic_link}'
10216 program_transform_set='${program_transform_set}'
10217 program_transform_name='${program_transform_name}'
10218 dep_host_xmake_file='${dep_host_xmake_file}'
10219 host_xmake_file='${host_xmake_file}'
10220 dep_tmake_file='${dep_tmake_file}'
10221 tmake_file='${tmake_file}'
10222 thread_file='${thread_file}'
10223 gcc_version='${gcc_version}'
10224 gcc_version_trigger='${gcc_version_trigger}'
10225 local_prefix='${local_prefix}'
10226 build_install_headers_dir='${build_install_headers_dir}'
10227 build_exeext='${build_exeext}'
10228 host_exeext='${host_exeext}'
10229 out_file='${out_file}'
10230 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10231 SET_MAKE='${SET_MAKE}'
10232 target_list='${target_list}'
10233 target_overrides='${target_overrides}'
10234 host_overrides='${host_overrides}'
10235 cross_defines='${cross_defines}'
10236 cross_overrides='${cross_overrides}'
10237 build_overrides='${build_overrides}'
10238 cpp_install_dir='${cpp_install_dir}'
10241 cat >> $CONFIG_STATUS <<\EOF
10242 case "$CONFIG_FILES" in *po/Makefile.in*)
10243 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10246 . $srcdir/configure.lang
10247 case x$CONFIG_HEADERS in
10248 xauto-host.h:config.in)
10251 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10252 # bootstrapping and the installation procedure can still use
10253 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10254 # FLAGS_TO_PASS has been modified to solve the problem there.
10255 # This is virtually a duplicate of what happens in configure.lang; we do
10256 # an extra check to make sure this only happens if ln -s can be used.
10257 if test "$symbolic_link" = "ln -s"; then
10258 for d in .. ${subdirs} ; do
10259 if test $d != ..; then
10262 for t in stage1 stage2 stage3 stage4 include
10265 $symbolic_link ../$t $t 2>/dev/null
10271 # Avoid having to add intl to our include paths.
10272 if test -f intl/libintl.h; then
10273 echo creating libintl.h
10274 echo '#include "intl/libintl.h"' >libintl.h
10279 chmod +x $CONFIG_STATUS
10280 rm -fr confdefs* $ac_clean_files
10281 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1