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
76 --with-system-zlib use installed libz"
79 select the new abi for g++. You must select an ABI
80 at configuration time, so that the correct runtime
81 support is built. You cannot mix ABIs."
84 enable libstdc++-v3 for building and installation"
86 --enable-maintainer-mode enable make rules and dependencies not useful
87 (and sometimes confusing) to the casual installer"
89 # Initialize some variables set by options.
90 # The variables have the same names as the options, with
91 # dashes changed to underlines.
93 cache_file
=.
/config.cache
102 program_transform_name
=s
,x
,x
,
110 bindir
='${exec_prefix}/bin'
111 sbindir
='${exec_prefix}/sbin'
112 libexecdir
='${exec_prefix}/libexec'
113 datadir
='${prefix}/share'
114 sysconfdir
='${prefix}/etc'
115 sharedstatedir
='${prefix}/com'
116 localstatedir
='${prefix}/var'
117 libdir
='${exec_prefix}/lib'
118 includedir
='${prefix}/include'
119 oldincludedir
='/usr/include'
120 infodir
='${prefix}/info'
121 mandir
='${prefix}/man'
123 # Initialize some other variables.
126 SHELL
=${CONFIG_SHELL-/bin/sh}
127 # Maximum number of lines to put in a shell here document.
134 # If the previous option needs an argument, assign it.
135 if test -n "$ac_prev"; then
136 eval "$ac_prev=\$ac_option"
142 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146 # Accept the important Cygnus configure options, so we can diagnose typos.
150 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
152 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
153 bindir
="$ac_optarg" ;;
155 -build |
--build |
--buil |
--bui |
--bu)
157 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
158 build
="$ac_optarg" ;;
160 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
161 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
162 ac_prev
=cache_file
;;
163 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
164 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
165 cache_file
="$ac_optarg" ;;
167 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
169 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
171 datadir
="$ac_optarg" ;;
173 -disable-* |
--disable-*)
174 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}=no" ;;
182 -enable-* |
--enable-*)
183 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}='$ac_optarg'" ;;
195 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
196 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
197 |
--exec |
--exe |
--ex)
198 ac_prev
=exec_prefix
;;
199 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
200 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
201 |
--exec=* |
--exe=* |
--ex=*)
202 exec_prefix
="$ac_optarg" ;;
204 -gas |
--gas |
--ga |
--g)
205 # Obsolete; use --with-gas.
208 -help |
--help |
--hel |
--he)
209 # Omit some internal or obsolete options to make the list less imposing.
210 # This message is too long to be a string in the A/UX 3.1 sh.
212 Usage: configure [options] [host]
213 Options: [defaults in brackets after descriptions]
215 --cache-file=FILE cache test results in FILE
216 --help print this message
217 --no-create do not create output files
218 --quiet, --silent do not print \`checking...' messages
219 --version print the version of autoconf that created configure
220 Directory and file names:
221 --prefix=PREFIX install architecture-independent files in PREFIX
223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 --bindir=DIR user executables in DIR [EPREFIX/bin]
226 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
227 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
228 --datadir=DIR read-only architecture-independent data in DIR
230 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
231 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
234 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
235 --includedir=DIR C header files in DIR [PREFIX/include]
236 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
237 --infodir=DIR info documentation in DIR [PREFIX/info]
238 --mandir=DIR man documentation in DIR [PREFIX/man]
239 --srcdir=DIR find the sources in DIR [configure dir or ..]
240 --program-prefix=PREFIX prepend PREFIX to installed program names
241 --program-suffix=SUFFIX append SUFFIX to installed program names
242 --program-transform-name=PROGRAM
243 run sed PROGRAM on installed program names
247 --build=BUILD configure for building on BUILD [BUILD=HOST]
248 --host=HOST configure for HOST [guessed]
249 --target=TARGET configure for TARGET [TARGET=HOST]
250 Features and packages:
251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
253 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
254 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
255 --x-includes=DIR X include files are in DIR
256 --x-libraries=DIR X library files are in DIR
258 if test -n "$ac_help"; then
259 echo "--enable and --with options recognized:$ac_help"
263 -host |
--host |
--hos |
--ho)
265 -host=* |
--host=* |
--hos=* |
--ho=*)
268 -includedir |
--includedir |
--includedi |
--included |
--include \
269 |
--includ |
--inclu |
--incl |
--inc)
270 ac_prev
=includedir
;;
271 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
272 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
273 includedir
="$ac_optarg" ;;
275 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
277 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
278 infodir
="$ac_optarg" ;;
280 -libdir |
--libdir |
--libdi |
--libd)
282 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
283 libdir
="$ac_optarg" ;;
285 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
286 |
--libexe |
--libex |
--libe)
287 ac_prev
=libexecdir
;;
288 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
289 |
--libexe=* |
--libex=* |
--libe=*)
290 libexecdir
="$ac_optarg" ;;
292 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
293 |
--localstate |
--localstat |
--localsta |
--localst \
294 |
--locals |
--local |
--loca |
--loc |
--lo)
295 ac_prev
=localstatedir
;;
296 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
297 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
298 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
299 localstatedir
="$ac_optarg" ;;
301 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
303 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
304 mandir
="$ac_optarg" ;;
307 # Obsolete; use --without-fp.
310 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
314 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
315 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
318 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
319 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
320 |
--oldin |
--oldi |
--old |
--ol |
--o)
321 ac_prev
=oldincludedir
;;
322 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
323 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
324 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
325 oldincludedir
="$ac_optarg" ;;
327 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
329 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
330 prefix
="$ac_optarg" ;;
332 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
333 |
--program-pre |
--program-pr |
--program-p)
334 ac_prev
=program_prefix
;;
335 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
336 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
337 program_prefix
="$ac_optarg" ;;
339 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
340 |
--program-suf |
--program-su |
--program-s)
341 ac_prev
=program_suffix
;;
342 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
343 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
344 program_suffix
="$ac_optarg" ;;
346 -program-transform-name |
--program-transform-name \
347 |
--program-transform-nam |
--program-transform-na \
348 |
--program-transform-n |
--program-transform- \
349 |
--program-transform |
--program-transfor \
350 |
--program-transfo |
--program-transf \
351 |
--program-trans |
--program-tran \
352 |
--progr-tra |
--program-tr |
--program-t)
353 ac_prev
=program_transform_name
;;
354 -program-transform-name=* |
--program-transform-name=* \
355 |
--program-transform-nam=* |
--program-transform-na=* \
356 |
--program-transform-n=* |
--program-transform-=* \
357 |
--program-transform=* |
--program-transfor=* \
358 |
--program-transfo=* |
--program-transf=* \
359 |
--program-trans=* |
--program-tran=* \
360 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
361 program_transform_name
="$ac_optarg" ;;
363 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
364 |
-silent |
--silent |
--silen |
--sile |
--sil)
367 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
369 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
371 sbindir
="$ac_optarg" ;;
373 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
374 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
375 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
377 ac_prev
=sharedstatedir
;;
378 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
379 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
380 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
382 sharedstatedir
="$ac_optarg" ;;
384 -site |
--site |
--sit)
386 -site=* |
--site=* |
--sit=*)
389 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
391 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
392 srcdir
="$ac_optarg" ;;
394 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
395 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
396 ac_prev
=sysconfdir
;;
397 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
398 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
399 sysconfdir
="$ac_optarg" ;;
401 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
403 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
404 target
="$ac_optarg" ;;
406 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
409 -version |
--version |
--versio |
--versi |
--vers)
410 echo "configure generated by autoconf version 2.13"
414 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package
=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}='$ac_optarg'" ;;
426 -without-* |
--without-*)
427 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package
=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}=no" ;;
436 # Obsolete; use --with-x.
439 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
440 |
--x-incl |
--x-inc |
--x-in |
--x-i)
441 ac_prev
=x_includes
;;
442 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
443 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
444 x_includes
="$ac_optarg" ;;
446 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
447 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
448 ac_prev
=x_libraries
;;
449 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
450 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
451 x_libraries
="$ac_optarg" ;;
453 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458 echo "configure: warning: $ac_option: invalid host type" 1>&2
460 if test "x$nonopt" != xNONE
; then
461 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
469 if test -n "$ac_prev"; then
470 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
475 # File descriptor usage:
478 # 2 errors and warnings
479 # 3 some systems may open it to /dev/tty
480 # 4 used on the Kubota Titan
481 # 6 checking for... messages and results
482 # 5 compiler messages saved in config.log
483 if test "$silent" = yes; then
491 This file contains any messages produced by compilers while
492 running configure, to aid debugging if configure makes a mistake.
495 # Strip out --no-create and --no-recursion so they do not pile up.
496 # Also quote any args containing shell metacharacters.
501 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
502 |
--no-cr |
--no-c) ;;
503 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
504 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
505 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
507 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
512 # Only set these to C if already set. These must not be set unconditionally
513 # because not all systems understand e.g. LANG=C (notably SCO).
514 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515 # Non-C LC_CTYPE values break the ctype check.
516 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
517 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
518 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
519 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
522 rm -rf conftest
* confdefs.h
523 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
526 # A filename unique to this package, relative to the directory that
527 # configure is in, which we can look for to find out if srcdir is correct.
528 ac_unique_file
=tree.c
530 # Find the source files, if location was not specified.
531 if test -z "$srcdir"; then
532 ac_srcdir_defaulted
=yes
533 # Try the directory containing this script, then its parent.
535 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
538 if test ! -r $srcdir/$ac_unique_file; then
542 ac_srcdir_defaulted
=no
544 if test ! -r $srcdir/$ac_unique_file; then
545 if test "$ac_srcdir_defaulted" = yes; then
546 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
551 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
553 # Prefer explicitly selected file to automatically selected ones.
554 if test -z "$CONFIG_SITE"; then
555 if test "x$prefix" != xNONE
; then
556 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
558 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
561 for ac_site_file
in $CONFIG_SITE; do
562 if test -r "$ac_site_file"; then
563 echo "loading site script $ac_site_file"
568 if test -r "$cache_file"; then
569 echo "loading cache $cache_file"
572 echo "creating cache $cache_file"
577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
578 ac_cpp
='$CPP $CPPFLAGS'
579 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
580 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
581 cross_compiling
=$ac_cv_prog_cc_cross
585 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
586 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
587 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
594 ac_n
= ac_c
='\c' ac_t
=
602 symbolic_link
='ln -s'
605 # Check for bogus environment variables.
606 # Test if LIBRARY_PATH contains the notation for the current directory
607 # since this would lead to problems installing/building glibc.
608 # LIBRARY_PATH contains the current directory if one of the following
610 # - one of the terminals (":" and ";") is the first or last sign
611 # - two terminals occur directly after each other
612 # - the path contains an element with a dot in it
613 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
614 echo "configure:615: checking LIBRARY_PATH variable" >&5
615 case ${LIBRARY_PATH} in
616 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
617 library_path_setting
="contains current directory"
620 library_path_setting
="ok"
623 echo "$ac_t""$library_path_setting" 1>&6
624 if test "$library_path_setting" != "ok"; then
625 { echo "configure: error:
626 *** LIBRARY_PATH shouldn't contain the current directory when
627 *** building gcc. Please change the environment variable
628 *** and run configure again." 1>&2; exit 1; }
631 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
632 # since this would lead to problems installing/building glibc.
633 # GCC_EXEC_PREFIX contains the current directory if one of the following
635 # - one of the terminals (":" and ";") is the first or last sign
636 # - two terminals occur directly after each other
637 # - the path contains an element with a dot in it
638 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
639 echo "configure:640: checking GCC_EXEC_PREFIX variable" >&5
640 case ${GCC_EXEC_PREFIX} in
641 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
642 gcc_exec_prefix_setting
="contains current directory"
645 gcc_exec_prefix_setting
="ok"
648 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
649 if test "$gcc_exec_prefix_setting" != "ok"; then
650 { echo "configure: error:
651 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
652 *** building gcc. Please change the environment variable
653 *** and run configure again." 1>&2; exit 1; }
656 # Check for additional parameters
659 # Check whether --with-gnu-ld or --without-gnu-ld was given.
660 if test "${with_gnu_ld+set}" = set; then
661 withval
="$with_gnu_ld"
662 gnu_ld_flag
="$with_gnu_ld"
668 # With pre-defined ld
669 # Check whether --with-ld or --without-ld was given.
670 if test "${with_ld+set}" = set; then
672 DEFAULT_LINKER
="$with_ld"
675 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
676 if test ! -x "$DEFAULT_LINKER"; then
677 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
678 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
681 cat >> confdefs.h
<<EOF
682 #define DEFAULT_LINKER "$DEFAULT_LINKER"
688 # Check whether --with-gnu-as or --without-gnu-as was given.
689 if test "${with_gnu_as+set}" = set; then
690 withval
="$with_gnu_as"
691 gas_flag
="$with_gnu_as"
697 # Check whether --with-as or --without-as was given.
698 if test "${with_as+set}" = set; then
700 DEFAULT_ASSEMBLER
="$with_as"
703 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
704 if test ! -x "$DEFAULT_ASSEMBLER"; then
705 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
706 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
709 cat >> confdefs.h
<<EOF
710 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
716 # Check whether --with-stabs or --without-stabs was given.
717 if test "${with_stabs+set}" = set; then
718 withval
="$with_stabs"
726 # Check whether --with-elf or --without-elf was given.
727 if test "${with_elf+set}" = set; then
735 # Specify the local prefix
737 # Check whether --with-local-prefix or --without-local-prefix was given.
738 if test "${with_local_prefix+set}" = set; then
739 withval
="$with_local_prefix"
741 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
743 *) local_prefix
=$with_local_prefix ;;
748 # Default local prefix if it is empty
749 if test x
$local_prefix = x
; then
750 local_prefix
=/usr
/local
753 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
754 # passed in by the toplevel make and thus we'd get different behavior
755 # depending on where we built the sources.
757 # Specify the g++ header file directory
758 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
759 if test "${with_gxx_include_dir+set}" = set; then
760 withval
="$with_gxx_include_dir"
762 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
764 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
769 if test x
${gcc_gxx_include_dir} = x
; then
770 if test x
${enable_version_specific_runtime_libs} = xyes
; then
771 gcc_gxx_include_dir
='${libsubdir}/include/g++'
773 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
774 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
778 # Enable expensive internal checks
779 # Check whether --enable-checking or --disable-checking was given.
780 if test "${enable_checking+set}" = set; then
781 enableval
="$enable_checking"
786 ac_gc_always_collect
=
787 case "${enableval}" in
788 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
790 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
791 set fnord
$enableval; shift
796 misc
) ac_checking
=1 ;;
797 tree
) ac_tree_checking
=1 ;;
798 rtl
) ac_rtl_checking
=1 ;;
799 gc
) ac_gc_checking
=1 ;;
800 gcac
) ac_gc_always_collect
=1 ;;
801 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
808 # Enable some checks by default for development versions of GCC
809 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
812 if test x
$ac_checking != x
; then
813 cat >> confdefs.h
<<\EOF
814 #define ENABLE_CHECKING 1
818 if test x
$ac_tree_checking != x
; then
819 cat >> confdefs.h
<<\EOF
820 #define ENABLE_TREE_CHECKING 1
824 if test x
$ac_rtl_checking != x
; then
825 cat >> confdefs.h
<<\EOF
826 #define ENABLE_RTL_CHECKING 1
830 if test x
$ac_gc_checking != x
; then
831 cat >> confdefs.h
<<\EOF
832 #define ENABLE_GC_CHECKING 1
836 if test x
$ac_gc_always_collect != x
; then
837 cat >> confdefs.h
<<\EOF
838 #define ENABLE_GC_ALWAYS_COLLECT 1
844 # Check whether --enable-cpp or --disable-cpp was given.
845 if test "${enable_cpp+set}" = set; then
846 enableval
="$enable_cpp"
853 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
854 if test "${with_cpp_install_dir+set}" = set; then
855 withval
="$with_cpp_install_dir"
856 if test x
$withval = xyes
; then
857 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
858 elif test x
$withval != xno
; then
859 cpp_install_dir
=$withval
864 # Link cpplib into the compiler proper, for C/C++/ObjC.
865 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
866 if test "${enable_c_cpplib+set}" = set; then
867 enableval
="$enable_c_cpplib"
868 if test x
$enable_c_cpplib != xno
; then
869 extra_c_objs
="${extra_c_objs} libcpp.a"
870 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
871 cat >> confdefs.h
<<\EOF
879 # Enable Multibyte Characters for C/C++
880 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
881 if test "${enable_c_mbchar+set}" = set; then
882 enableval
="$enable_c_mbchar"
883 if test x
$enable_c_mbchar != xno
; then
884 cat >> confdefs.h
<<\EOF
885 #define MULTIBYTE_CHARS 1
893 # Pass with no value to take the default
894 # Pass with a value to specify a thread package
895 # Check whether --enable-threads or --disable-threads was given.
896 if test "${enable_threads+set}" = set; then
897 enableval
="$enable_threads"
898 if test x
$enable_threads = xno
; then
906 enable_threads_flag
=$enable_threads
907 # Check if a valid thread package
908 case x
${enable_threads_flag} in
911 target_thread_file
='single'
915 target_thread_file
=''
917 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
918 xsolaris | xwin32 | xdce | xvxworks
)
919 target_thread_file
=$enable_threads_flag
922 echo "$enable_threads is an unknown thread package" 1>&2
927 # Check whether --enable-objc-gc or --disable-objc-gc was given.
928 if test "${enable_objc_gc+set}" = set; then
929 enableval
="$enable_objc_gc"
930 if test x
$enable_objc_gc = xno
; then
940 # Check whether --with-dwarf2 or --without-dwarf2 was given.
941 if test "${with_dwarf2+set}" = set; then
942 withval
="$with_dwarf2"
943 dwarf2
="$with_dwarf2"
949 # Determine the host, build, and target systems
951 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
952 if test -f $ac_dir/install-sh
; then
954 ac_install_sh
="$ac_aux_dir/install-sh -c"
956 elif test -f $ac_dir/install.sh
; then
958 ac_install_sh
="$ac_aux_dir/install.sh -c"
962 if test -z "$ac_aux_dir"; then
963 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
965 ac_config_guess
=$ac_aux_dir/config.guess
966 ac_config_sub
=$ac_aux_dir/config.sub
967 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
970 # Do some error checking and defaulting for the host and target type.
972 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
975 # 1. You are not allowed to specify --host, --target, and nonopt at the
977 # 2. Host defaults to nonopt.
978 # 3. If nonopt is not specified, then host defaults to the current host,
979 # as determined by config.guess.
980 # 4. Target and build default to nonopt.
981 # 5. If nonopt is not specified, then target and build default to host.
983 # The aliases save the names the user supplied, while $host etc.
984 # will get canonicalized.
985 case $host---$target---$nonopt in
986 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
987 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
991 # Make sure we can run config.sub.
992 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
993 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
996 echo $ac_n "checking host system type""... $ac_c" 1>&6
997 echo "configure:998: checking host system type" >&5
1000 case "$host_alias" in
1004 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1005 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1007 *) host_alias
=$nonopt ;;
1011 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1012 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1013 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1014 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015 echo "$ac_t""$host" 1>&6
1017 echo $ac_n "checking target system type""... $ac_c" 1>&6
1018 echo "configure:1019: checking target system type" >&5
1020 target_alias
=$target
1021 case "$target_alias" in
1024 NONE
) target_alias
=$host_alias ;;
1025 *) target_alias
=$nonopt ;;
1029 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1030 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1033 echo "$ac_t""$target" 1>&6
1035 echo $ac_n "checking build system type""... $ac_c" 1>&6
1036 echo "configure:1037: checking build system type" >&5
1039 case "$build_alias" in
1042 NONE
) build_alias
=$host_alias ;;
1043 *) build_alias
=$nonopt ;;
1047 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1048 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$build" 1>&6
1053 test "$host_alias" != "$target_alias" &&
1054 test "$program_prefix$program_suffix$program_transform_name" = \
1056 program_prefix
=${target_alias}-
1059 # Find the native compiler
1060 # Extract the first word of "gcc", so it can be a program name with args.
1061 set dummy gcc
; ac_word
=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC
="$CC" # Let the user override the test.
1070 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1072 for ac_dir
in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir
=.
1074 if test -f $ac_dir/$ac_word; then
1083 if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1086 echo "$ac_t""no" 1>&6
1089 if test -z "$CC"; then
1090 # Extract the first word of "cc", so it can be a program name with args.
1091 set dummy cc
; ac_word
=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC
="$CC" # Let the user override the test.
1100 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1103 for ac_dir
in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir
=.
1105 if test -f $ac_dir/$ac_word; then
1106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107 ac_prog_rejected
=yes
1115 if test $ac_prog_rejected = yes; then
1116 # We found a bogon in the path, so make sure we never use it.
1117 set dummy
$ac_cv_prog_CC
1119 if test $# -gt 0; then
1120 # We chose a different compiler from the bogus one.
1121 # However, it has the same basename, so the bogon will be chosen
1122 # first if we set CC to just the basename; use the full file name.
1124 set dummy
"$ac_dir/$ac_word" "$@"
1132 if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 if test -z "$CC"; then
1139 case "`uname -s`" in
1141 # Extract the first word of "cl", so it can be a program name with args.
1142 set dummy cl
; ac_word
=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC
="$CC" # Let the user override the test.
1151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1153 for ac_dir
in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir
=.
1155 if test -f $ac_dir/$ac_word; then
1164 if test -n "$CC"; then
1165 echo "$ac_t""$CC" 1>&6
1167 echo "$ac_t""no" 1>&6
1172 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1175 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1176 echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1180 ac_cpp
='$CPP $CPPFLAGS'
1181 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1182 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1183 cross_compiling
=$ac_cv_prog_cc_cross
1185 cat > conftest.
$ac_ext << EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1192 if { (eval echo configure
:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1193 ac_cv_prog_cc_works
=yes
1194 # If we can't run a trivial program, we are probably using a cross compiler.
1195 if (.
/conftest
; exit) 2>/dev
/null
; then
1196 ac_cv_prog_cc_cross
=no
1198 ac_cv_prog_cc_cross
=yes
1201 echo "configure: failed program was:" >&5
1202 cat conftest.
$ac_ext >&5
1203 ac_cv_prog_cc_works
=no
1207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1208 ac_cpp
='$CPP $CPPFLAGS'
1209 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1210 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1211 cross_compiling
=$ac_cv_prog_cc_cross
1213 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1214 if test $ac_cv_prog_cc_works = no
; then
1215 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1217 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1219 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1220 cross_compiling
=$ac_cv_prog_cc_cross
1222 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether we are using GNU C" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 cat > conftest.c
<<EOF
1232 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1239 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1241 if test $ac_cv_prog_gcc = yes; then
1247 ac_test_CFLAGS
="${CFLAGS+set}"
1248 ac_save_CFLAGS
="$CFLAGS"
1250 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 echo 'void f(){}' > conftest.c
1256 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1265 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1266 if test "$ac_test_CFLAGS" = set; then
1267 CFLAGS
="$ac_save_CFLAGS"
1268 elif test $ac_cv_prog_cc_g = yes; then
1269 if test "$GCC" = yes; then
1275 if test "$GCC" = yes; then
1282 if test "x$CC" != xcc
; then
1283 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether $CC and cc understand -c and -o together" >&5
1286 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1287 echo "configure:1288: checking whether cc understands -c and -o together" >&5
1289 set dummy
$CC; ac_cc
="`echo $2 |
1290 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1291 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 echo 'foo(){}' > conftest.c
1295 # Make sure it works both with $CC and with simple cc.
1296 # We do the test twice because some compilers refuse to overwrite an
1297 # existing .o file with -o, though they will create one.
1298 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1299 if { (eval echo configure
:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1300 test -f conftest.o
&& { (eval echo configure
:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1302 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1303 if test "x$CC" != xcc
; then
1304 # Test first that cc exists at all.
1305 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1306 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1307 if { (eval echo configure
:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1308 test -f conftest.o
&& { (eval echo configure
:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1313 # cc exists but doesn't like -o.
1314 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1319 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1324 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1325 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1328 cat >> confdefs.h
<<\EOF
1329 #define NO_MINUS_C_MINUS_O 1
1334 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1335 NO_MINUS_C_MINUS_O
=yes
1339 echo $ac_n "checking for long double""... $ac_c" 1>&6
1340 echo "configure:1341: checking for long double" >&5
1341 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1344 if test "$GCC" = yes; then
1345 gcc_cv_c_long_double
=yes
1347 cat > conftest.
$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1352 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1353 long double foo = 0.0;
1354 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1355 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1358 if { (eval echo configure
:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 gcc_cv_c_long_double
=yes
1362 echo "configure: failed program was:" >&5
1363 cat conftest.
$ac_ext >&5
1365 gcc_cv_c_long_double
=no
1371 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1372 if test $gcc_cv_c_long_double = yes; then
1373 cat >> confdefs.h
<<\EOF
1374 #define HAVE_LONG_DOUBLE 1
1380 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 save_CFLAGS
="$CFLAGS"
1386 CFLAGS
="-Wno-long-long"
1387 cat > conftest.
$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1395 if { (eval echo configure
:1396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1397 ac_cv_prog_cc_no_long_long
=yes
1399 echo "configure: failed program was:" >&5
1400 cat conftest.
$ac_ext >&5
1402 ac_cv_prog_cc_no_long_long
=no
1405 CFLAGS
="$save_CFLAGS"
1408 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1410 # If the native compiler is GCC, we can enable warnings even in stage1.
1411 # That's useful for people building cross-compilers, or just running a
1413 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1414 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1415 if test "x$GCC" = "xyes"; then
1416 if test $ac_cv_prog_cc_no_long_long = yes; then
1417 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1420 stage1_warn_cflags
=""
1423 # Stage specific cflags for build.
1426 if test x
$GCC = xyes
1428 stage1_warn_cflags
="$stage1_warn_cflags -Wa,-J"
1430 stage1_warn_cflags
="$stage1_warn_cflags -J"
1438 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1439 echo "configure:1440: checking whether ${MAKE-make} sets \${MAKE}" >&5
1440 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1441 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 cat > conftestmake
<<\EOF
1446 @
echo 'ac_maketemp="${MAKE}"'
1448 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1449 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1450 if test -n "$ac_maketemp"; then
1451 eval ac_cv_prog_make_
${ac_make}_set
=yes
1453 eval ac_cv_prog_make_
${ac_make}_set
=no
1457 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1461 echo "$ac_t""no" 1>&6
1462 SET_MAKE
="MAKE=${MAKE-make}"
1466 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether a default assembler was specified" >&5
1468 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1469 if test x
"$gas_flag" = x
"no"; then
1470 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1472 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1475 echo "$ac_t""no" 1>&6
1478 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1479 echo "configure:1480: checking whether a default linker was specified" >&5
1480 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1481 if test x
"$gnu_ld_flag" = x
"no"; then
1482 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1484 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1487 echo "$ac_t""no" 1>&6
1490 echo $ac_n "checking for inline""... $ac_c" 1>&6
1491 echo "configure:1492: checking for inline" >&5
1492 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1496 for ac_kw
in inline __inline__ __inline
; do
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1505 if { (eval echo configure
:1506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1507 ac_cv_c_inline
=$ac_kw; break
1509 echo "configure: failed program was:" >&5
1510 cat conftest.
$ac_ext >&5
1517 echo "$ac_t""$ac_cv_c_inline" 1>&6
1518 case "$ac_cv_c_inline" in
1520 no
) cat >> confdefs.h
<<\EOF
1524 *) cat >> confdefs.h
<<EOF
1525 #define inline $ac_cv_c_inline
1531 # Find some useful tools
1532 for ac_prog
in gawk mawk nawk
awk
1534 # Extract the first word of "$ac_prog", so it can be a program name with args.
1535 set dummy
$ac_prog; ac_word
=$2
1536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1537 echo "configure:1538: checking for $ac_word" >&5
1538 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 if test -n "$AWK"; then
1542 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1546 for ac_dir
in $ac_dummy; do
1547 test -z "$ac_dir" && ac_dir
=.
1548 if test -f $ac_dir/$ac_word; then
1549 ac_cv_prog_AWK
="$ac_prog"
1556 AWK
="$ac_cv_prog_AWK"
1557 if test -n "$AWK"; then
1558 echo "$ac_t""$AWK" 1>&6
1560 echo "$ac_t""no" 1>&6
1563 test -n "$AWK" && break
1566 # Extract the first word of "flex", so it can be a program name with args.
1567 set dummy flex
; ac_word
=$2
1568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_word" >&5
1570 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 if test -n "$LEX"; then
1574 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1578 for ac_dir
in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir
=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_prog_LEX
="flex"
1586 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1589 LEX
="$ac_cv_prog_LEX"
1590 if test -n "$LEX"; then
1591 echo "$ac_t""$LEX" 1>&6
1593 echo "$ac_t""no" 1>&6
1596 if test -z "$LEXLIB"
1602 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1603 echo "configure:1604: checking for yywrap in -l$ac_lib" >&5
1604 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 ac_save_LIBS
="$LIBS"
1609 LIBS
="-l$ac_lib $LIBS"
1610 cat > conftest.
$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 /* Override any gcc2 internal prototype to avoid an error. */
1614 /* We use char because int might match the return type of a gcc2
1615 builtin and then its argument prototype would still apply. */
1622 if { (eval echo configure
:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1624 eval "ac_cv_lib_$ac_lib_var=yes"
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1629 eval "ac_cv_lib_$ac_lib_var=no"
1632 LIBS
="$ac_save_LIBS"
1635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1639 echo "$ac_t""no" 1>&6
1644 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1645 echo "configure:1646: checking whether ln works" >&5
1646 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 rm -f conftestdata_t
1650 echo >conftestdata_f
1651 if ln conftestdata_f conftestdata_t
2>/dev
/null
1655 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1657 gcc_cv_prog_LN
="ln -s"
1662 rm -f conftestdata_f conftestdata_t
1665 LN
="$gcc_cv_prog_LN"
1666 if test "$gcc_cv_prog_LN" = "ln"; then
1667 echo "$ac_t""yes" 1>&6
1669 if test "$gcc_cv_prog_LN" = "ln -s"; then
1670 echo "$ac_t""no, using ln -s" 1>&6
1672 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1676 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether ln -s works" >&5
1678 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 rm -f conftestdata_t
1682 echo >conftestdata_f
1683 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1685 gcc_cv_prog_LN_S
="ln -s"
1687 if ln conftestdata_f conftestdata_t
2>/dev
/null
1694 rm -f conftestdata_f conftestdata_t
1697 LN_S
="$gcc_cv_prog_LN_S"
1698 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1699 echo "$ac_t""yes" 1>&6
1701 if test "$gcc_cv_prog_LN_S" = "ln"; then
1702 echo "$ac_t""no, using ln" 1>&6
1704 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1708 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1709 echo "configure:1710: checking for volatile" >&5
1710 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1721 if { (eval echo configure
:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1723 gcc_cv_c_volatile
=yes
1725 echo "configure: failed program was:" >&5
1726 cat conftest.
$ac_ext >&5
1728 gcc_cv_c_volatile
=no
1733 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1734 if test $gcc_cv_c_volatile = yes ; then
1735 cat >> confdefs.h
<<\EOF
1736 #define HAVE_VOLATILE 1
1741 # Extract the first word of "ranlib", so it can be a program name with args.
1742 set dummy ranlib
; ac_word
=$2
1743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_word" >&5
1745 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 if test -n "$RANLIB"; then
1749 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1751 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1753 for ac_dir
in $ac_dummy; do
1754 test -z "$ac_dir" && ac_dir
=.
1755 if test -f $ac_dir/$ac_word; then
1756 ac_cv_prog_RANLIB
="ranlib"
1761 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1764 RANLIB
="$ac_cv_prog_RANLIB"
1765 if test -n "$RANLIB"; then
1766 echo "$ac_t""$RANLIB" 1>&6
1768 echo "$ac_t""no" 1>&6
1771 for ac_prog
in 'bison -y' byacc
1773 # Extract the first word of "$ac_prog", so it can be a program name with args.
1774 set dummy
$ac_prog; ac_word
=$2
1775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $ac_word" >&5
1777 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 if test -n "$YACC"; then
1781 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1783 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1785 for ac_dir
in $ac_dummy; do
1786 test -z "$ac_dir" && ac_dir
=.
1787 if test -f $ac_dir/$ac_word; then
1788 ac_cv_prog_YACC
="$ac_prog"
1795 YACC
="$ac_cv_prog_YACC"
1796 if test -n "$YACC"; then
1797 echo "$ac_t""$YACC" 1>&6
1799 echo "$ac_t""no" 1>&6
1802 test -n "$YACC" && break
1804 test -n "$YACC" || YACC
="yacc"
1806 # Find a good install program. We prefer a C program (faster),
1807 # so one script is as good as another. But avoid the broken or
1808 # incompatible versions:
1809 # SysV /etc/install, /usr/sbin/install
1810 # SunOS /usr/etc/install
1811 # IRIX /sbin/install
1813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1815 # ./install, which can be erroneously created by make from ./install.sh.
1816 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1817 echo "configure:1818: checking for a BSD compatible install" >&5
1818 if test -z "$INSTALL"; then
1819 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1823 for ac_dir
in $PATH; do
1824 # Account for people who put trailing slashes in PATH elements.
1826 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1828 # OSF1 and SCO ODT 3.0 have their own names for install.
1829 for ac_prog
in ginstall scoinst
install; do
1830 if test -f $ac_dir/$ac_prog; then
1831 if test $ac_prog = install &&
1832 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1833 # AIX install. It has an incompatible calling convention.
1834 # OSF/1 installbsd also uses dspmsg, but is usable.
1837 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1848 if test "${ac_cv_path_install+set}" = set; then
1849 INSTALL
="$ac_cv_path_install"
1851 # As a last resort, use the slow shell script. We don't cache a
1852 # path for INSTALL within a source directory, because that will
1853 # break other packages using the cache if that directory is
1854 # removed, or if the path is relative.
1855 INSTALL
="$ac_install_sh"
1858 echo "$ac_t""$INSTALL" 1>&6
1860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1861 # It thinks the first close brace ends the variable substitution.
1862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1864 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1867 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1868 echo "configure:1869: checking how to run the C preprocessor" >&5
1869 # On Suns, sometimes $CPP names a directory.
1870 if test -n "$CPP" && test -d "$CPP"; then
1873 if test -z "$CPP"; then
1874 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 # This must be in double quotes, not single quotes, because CPP may get
1878 # substituted into the Makefile and "${CC-cc}" will confuse make.
1880 # On the NeXT, cc -E runs the code through the compiler's parser,
1881 # not just through cpp.
1882 cat > conftest.
$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure
:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 CPP
="${CC-cc} -E -traditional-cpp"
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1905 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure
:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1908 if test -z "$ac_err"; then
1912 echo "configure: failed program was:" >&5
1913 cat conftest.
$ac_ext >&5
1915 CPP
="${CC-cc} -nologo -E"
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1922 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1923 { (eval echo configure
:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1924 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1925 if test -z "$ac_err"; then
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1939 ac_cv_prog_CPP
="$CPP"
1941 CPP
="$ac_cv_prog_CPP"
1943 ac_cv_prog_CPP
="$CPP"
1945 echo "$ac_t""$CPP" 1>&6
1947 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1948 echo "configure:1949: checking for ANSI C header files" >&5
1949 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1952 cat > conftest.
$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1960 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure
:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 ac_cv_header_stdc
=yes
1968 echo "configure: failed program was:" >&5
1969 cat conftest.
$ac_ext >&5
1971 ac_cv_header_stdc
=no
1975 if test $ac_cv_header_stdc = yes; then
1976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1977 cat > conftest.
$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1983 egrep "memchr" >/dev
/null
2>&1; then
1987 ac_cv_header_stdc
=no
1993 if test $ac_cv_header_stdc = yes; then
1994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1995 cat > conftest.
$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
2000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2001 egrep "free" >/dev
/null
2>&1; then
2005 ac_cv_header_stdc
=no
2011 if test $ac_cv_header_stdc = yes; then
2012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2013 if test "$cross_compiling" = yes; then
2016 cat > conftest.
$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2020 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2021 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2023 int main () { int i; for (i = 0; i < 256; i++)
2024 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2028 if { (eval echo configure
:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 ac_cv_header_stdc
=no
2043 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2044 if test $ac_cv_header_stdc = yes; then
2045 cat >> confdefs.h
<<\EOF
2046 #define STDC_HEADERS 1
2051 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether time.h and sys/time.h may both be included" >&5
2053 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 cat > conftest.
$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059 #include <sys/types.h>
2060 #include <sys/time.h>
2066 if { (eval echo configure
:2067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2068 ac_cv_header_time
=yes
2070 echo "configure: failed program was:" >&5
2071 cat conftest.
$ac_ext >&5
2073 ac_cv_header_time
=no
2078 echo "$ac_t""$ac_cv_header_time" 1>&6
2079 if test $ac_cv_header_time = yes; then
2080 cat >> confdefs.h
<<\EOF
2081 #define TIME_WITH_SYS_TIME 1
2086 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2087 echo "configure:2088: checking whether string.h and strings.h may both be included" >&5
2088 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 cat > conftest.
$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2095 #include <strings.h>
2100 if { (eval echo configure
:2101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2102 gcc_cv_header_string
=yes
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2107 gcc_cv_header_string
=no
2112 echo "$ac_t""$gcc_cv_header_string" 1>&6
2113 if test $gcc_cv_header_string = yes; then
2114 cat >> confdefs.h
<<\EOF
2115 #define STRING_WITH_STRINGS 1
2120 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2121 echo "configure:2122: checking for sys/wait.h that is POSIX.1 compatible" >&5
2122 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.
$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <sys/types.h>
2129 #include <sys/wait.h>
2131 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2134 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2139 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2142 if { (eval echo configure
:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 ac_cv_header_sys_wait_h
=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 ac_cv_header_sys_wait_h
=no
2154 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2155 if test $ac_cv_header_sys_wait_h = yes; then
2156 cat >> confdefs.h
<<\EOF
2157 #define HAVE_SYS_WAIT_H 1
2162 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2163 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2164 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2165 direct.h malloc.h langinfo.h
2167 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_hdr" >&5
2170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2178 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure
:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2181 if test -z "$ac_err"; then
2183 eval "ac_cv_header_$ac_safe=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.
$ac_ext >&5
2189 eval "ac_cv_header_$ac_safe=no"
2193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2194 echo "$ac_t""yes" 1>&6
2195 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2196 cat >> confdefs.h
<<EOF
2197 #define $ac_tr_hdr 1
2201 echo "$ac_t""no" 1>&6
2206 # Check for thread headers.
2207 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2208 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2209 echo "configure:2210: checking for thread.h" >&5
2210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 cat > conftest.
$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2218 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2219 { (eval echo configure
:2220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2220 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2221 if test -z "$ac_err"; then
2223 eval "ac_cv_header_$ac_safe=yes"
2226 echo "configure: failed program was:" >&5
2227 cat conftest.
$ac_ext >&5
2229 eval "ac_cv_header_$ac_safe=no"
2233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2234 echo "$ac_t""yes" 1>&6
2237 echo "$ac_t""no" 1>&6
2241 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2242 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2243 echo "configure:2244: checking for pthread.h" >&5
2244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 cat > conftest.
$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 #include <pthread.h>
2252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2253 { (eval echo configure
:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2254 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2255 if test -z "$ac_err"; then
2257 eval "ac_cv_header_$ac_safe=yes"
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 eval "ac_cv_header_$ac_safe=no"
2267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2271 echo "$ac_t""no" 1>&6
2276 # See if GNAT has been installed
2277 # Extract the first word of "gnatbind", so it can be a program name with args.
2278 set dummy gnatbind
; ac_word
=$2
2279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_word" >&5
2281 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 if test -n "$gnat"; then
2285 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2287 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2289 for ac_dir
in $ac_dummy; do
2290 test -z "$ac_dir" && ac_dir
=.
2291 if test -f $ac_dir/$ac_word; then
2292 ac_cv_prog_gnat
="yes"
2297 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2300 gnat
="$ac_cv_prog_gnat"
2301 if test -n "$gnat"; then
2302 echo "$ac_t""$gnat" 1>&6
2304 echo "$ac_t""no" 1>&6
2308 # Do we have a single-tree copy of texinfo?
2309 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2310 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2311 gcc_cv_prog_makeinfo_modern
=yes
2312 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2314 # See if makeinfo has been installed and is modern enough
2315 # that we can use it.
2316 # Extract the first word of "makeinfo", so it can be a program name with args.
2317 set dummy makeinfo
; ac_word
=$2
2318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2319 echo "configure:2320: checking for $ac_word" >&5
2320 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 if test -n "$MAKEINFO"; then
2324 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2326 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2328 for ac_dir
in $ac_dummy; do
2329 test -z "$ac_dir" && ac_dir
=.
2330 if test -f $ac_dir/$ac_word; then
2331 ac_cv_prog_MAKEINFO
="makeinfo"
2338 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2339 if test -n "$MAKEINFO"; then
2340 echo "$ac_t""$MAKEINFO" 1>&6
2342 echo "$ac_t""no" 1>&6
2345 if test -n "$MAKEINFO"; then
2346 # Found it, now check the version.
2347 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2348 echo "configure:2349: checking for modern makeinfo" >&5
2349 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2353 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2354 echo "configure:2355: version of makeinfo is $ac_prog_version" >&5
2355 case $ac_prog_version in
2356 '') gcc_cv_prog_makeinfo_modern
=no
;;
2357 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2358 gcc_cv_prog_makeinfo_modern
=yes;;
2359 *) gcc_cv_prog_makeinfo_modern
=no
;;
2364 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2366 gcc_cv_prog_makeinfo_modern
=no
2371 if test $gcc_cv_prog_makeinfo_modern = no
; then
2372 echo "configure: warning:
2373 *** Makeinfo is missing or too old.
2374 *** Info documentation will not be built or installed." 1>&2
2379 INSTALL_INFO
=install-info
2382 # See if the stage1 system preprocessor understands the ANSI C
2383 # preprocessor stringification operator.
2386 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2387 echo "configure:2388: checking for preprocessor stringizing operator" >&5
2388 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.
$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2397 char *s = x(teststring);
2400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2401 egrep "#teststring" >/dev
/null
2>&1; then
2403 ac_cv_c_stringize
=no
2406 ac_cv_c_stringize
=yes
2412 if test "${ac_cv_c_stringize}" = yes
2414 cat >> confdefs.h
<<\EOF
2415 #define HAVE_STRINGIZE 1
2419 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2422 # Use <inttypes.h> only if it exists,
2423 # doesn't clash with <sys/types.h>, and declares intmax_t.
2424 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2425 echo "configure:2426: checking for inttypes.h" >&5
2426 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 cat > conftest.
$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 #include <sys/types.h>
2433 #include <inttypes.h>
2438 if { (eval echo configure
:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440 gcc_cv_header_inttypes_h
=yes
2442 echo "configure: failed program was:" >&5
2443 cat conftest.
$ac_ext >&5
2445 gcc_cv_header_inttypes_h
=no
2450 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2451 if test $gcc_cv_header_inttypes_h = yes; then
2452 cat >> confdefs.h
<<\EOF
2453 #define HAVE_INTTYPES_H 1
2459 # Determine if enumerated bitfields are unsigned. ISO C says they can
2460 # be either signed or unsigned.
2462 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2463 echo "configure:2464: checking for unsigned enumerated bitfields" >&5
2464 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 if test "$cross_compiling" = yes; then
2468 gcc_cv_enum_bf_unsigned
=yes
2470 cat > conftest.
$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2474 enum t { BLAH = 128 } ;
2475 struct s_t { enum t member : 8; } s ;
2479 if (s.member < 0) exit(1);
2484 if { (eval echo configure
:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2486 gcc_cv_enum_bf_unsigned
=yes
2488 echo "configure: failed program was:" >&5
2489 cat conftest.
$ac_ext >&5
2491 gcc_cv_enum_bf_unsigned
=no
2498 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2499 if test $gcc_cv_enum_bf_unsigned = yes; then
2500 cat >> confdefs.h
<<\EOF
2501 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2506 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2507 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2508 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2509 fputs_unlocked getrusage valloc
iconv nl_langinfo
2511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2512 echo "configure:2513: checking for $ac_func" >&5
2513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.
$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 /* System header to define __stub macros and hopefully few prototypes,
2520 which can conflict with char $ac_func(); below. */
2522 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2529 /* The GNU C library defines this for functions which it implements
2530 to always fail with ENOSYS. Some functions are actually named
2531 something starting with __ and the normal name is an alias. */
2532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2540 if { (eval echo configure
:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2542 eval "ac_cv_func_$ac_func=yes"
2544 echo "configure: failed program was:" >&5
2545 cat conftest.
$ac_ext >&5
2547 eval "ac_cv_func_$ac_func=no"
2552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2553 echo "$ac_t""yes" 1>&6
2554 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2555 cat >> confdefs.h
<<EOF
2556 #define $ac_tr_func 1
2560 echo "$ac_t""no" 1>&6
2565 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2566 echo "configure:2567: checking for ssize_t" >&5
2567 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 cat > conftest.
$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 #include <sys/types.h>
2579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2580 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2582 ac_cv_type_ssize_t
=yes
2585 ac_cv_type_ssize_t
=no
2590 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2591 if test $ac_cv_type_ssize_t = no
; then
2592 cat >> confdefs.h
<<\EOF
2599 # Try to determine the array type of the second argument of getgroups
2600 # for the target system (int or gid_t).
2601 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2602 echo "configure:2603: checking for uid_t in sys/types.h" >&5
2603 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.
$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <sys/types.h>
2611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2612 egrep "uid_t" >/dev
/null
2>&1; then
2614 ac_cv_type_uid_t
=yes
2623 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2624 if test $ac_cv_type_uid_t = no
; then
2625 cat >> confdefs.h
<<\EOF
2629 cat >> confdefs.h
<<\EOF
2635 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2636 echo "configure:2637: checking type of array argument to getgroups" >&5
2637 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 if test "$cross_compiling" = yes; then
2641 ac_cv_type_getgroups
=cross
2643 cat > conftest.
$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2647 /* Thanks to Mike Rendell for this test. */
2648 #include <sys/types.h>
2651 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2656 union { gid_t gval; long lval; } val;
2659 for (i = 0; i < NGID; i++)
2660 gidset[i] = val.gval;
2661 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2663 /* Exit non-zero if getgroups seems to require an array of ints. This
2664 happens when gid_t is short but getgroups modifies an array of ints. */
2665 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2669 if { (eval echo configure
:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2671 ac_cv_type_getgroups
=gid_t
2673 echo "configure: failed program was:" >&5
2674 cat conftest.
$ac_ext >&5
2676 ac_cv_type_getgroups
=int
2681 if test $ac_cv_type_getgroups = cross
; then
2682 cat > conftest.
$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2688 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2690 ac_cv_type_getgroups
=gid_t
2693 ac_cv_type_getgroups
=int
2700 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2701 cat >> confdefs.h
<<EOF
2702 #define GETGROUPS_T $ac_cv_type_getgroups
2706 if test "${target}" = "${build}"; then
2707 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2710 # This condition may need some tweaking. It should include all
2711 # targets where the array type of the second argument of getgroups
2712 # is int and the type of gid_t is not equivalent to int.
2713 *-*-sunos* |
*-*-ultrix*)
2714 TARGET_GETGROUPS_T
=int
2717 TARGET_GETGROUPS_T
=gid_t
2723 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2724 echo "configure:2725: checking for vprintf" >&5
2725 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.
$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 /* System header to define __stub macros and hopefully few prototypes,
2732 which can conflict with char vprintf(); below. */
2734 /* Override any gcc2 internal prototype to avoid an error. */
2735 /* We use char because int might match the return type of a gcc2
2736 builtin and then its argument prototype would still apply. */
2741 /* The GNU C library defines this for functions which it implements
2742 to always fail with ENOSYS. Some functions are actually named
2743 something starting with __ and the normal name is an alias. */
2744 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2752 if { (eval echo configure
:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2754 eval "ac_cv_func_vprintf=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 eval "ac_cv_func_vprintf=no"
2764 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2766 cat >> confdefs.h
<<\EOF
2767 #define HAVE_VPRINTF 1
2771 echo "$ac_t""no" 1>&6
2774 if test "$ac_cv_func_vprintf" != yes; then
2775 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2776 echo "configure:2777: checking for _doprnt" >&5
2777 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2783 /* System header to define __stub macros and hopefully few prototypes,
2784 which can conflict with char _doprnt(); below. */
2786 /* Override any gcc2 internal prototype to avoid an error. */
2787 /* We use char because int might match the return type of a gcc2
2788 builtin and then its argument prototype would still apply. */
2793 /* The GNU C library defines this for functions which it implements
2794 to always fail with ENOSYS. Some functions are actually named
2795 something starting with __ and the normal name is an alias. */
2796 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2804 if { (eval echo configure
:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2806 eval "ac_cv_func__doprnt=yes"
2808 echo "configure: failed program was:" >&5
2809 cat conftest.
$ac_ext >&5
2811 eval "ac_cv_func__doprnt=no"
2816 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 cat >> confdefs.h
<<\EOF
2819 #define HAVE_DOPRNT 1
2823 echo "$ac_t""no" 1>&6
2830 if test $ac_cv_func_vprintf != yes ; then
2832 if test $ac_cv_func__doprnt != yes ; then
2839 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2840 echo "configure:2841: checking whether the printf functions support %p" >&5
2841 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2844 if test "$cross_compiling" = yes; then
2845 gcc_cv_func_printf_ptr
=no
2847 cat > conftest.
$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2855 char *p = buf, *q = NULL;
2856 sprintf(buf, "%p", p);
2857 sscanf(buf, "%p", &q);
2861 if { (eval echo configure
:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2863 gcc_cv_func_printf_ptr
=yes
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2868 gcc_cv_func_printf_ptr
=no
2873 rm -f core core.
* *.core
2876 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2877 if test $gcc_cv_func_printf_ptr = yes ; then
2878 cat >> confdefs.h
<<\EOF
2879 #define HAVE_PRINTF_PTR 1
2887 # Under some versions of uwin, vfork is notoriously buggy and the test
2888 # can hang configure; on other versions, vfork exists just as a stub.
2889 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2890 ac_cv_func_vfork_works
=no
2893 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2894 echo "configure:2895: checking for pid_t" >&5
2895 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.
$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2901 #include <sys/types.h>
2907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2908 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2910 ac_cv_type_pid_t
=yes
2918 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2919 if test $ac_cv_type_pid_t = no
; then
2920 cat >> confdefs.h
<<\EOF
2926 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2927 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2928 echo "configure:2929: checking for vfork.h" >&5
2929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.
$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2937 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2938 { (eval echo configure
:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2939 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2940 if test -z "$ac_err"; then
2942 eval "ac_cv_header_$ac_safe=yes"
2945 echo "configure: failed program was:" >&5
2946 cat conftest.
$ac_ext >&5
2948 eval "ac_cv_header_$ac_safe=no"
2952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2953 echo "$ac_t""yes" 1>&6
2954 cat >> confdefs.h
<<\EOF
2955 #define HAVE_VFORK_H 1
2959 echo "$ac_t""no" 1>&6
2962 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2963 echo "configure:2964: checking for working vfork" >&5
2964 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 if test "$cross_compiling" = yes; then
2968 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2969 echo "configure:2970: checking for vfork" >&5
2970 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 cat > conftest.
$ac_ext <<EOF
2974 #line 2975 "configure"
2975 #include "confdefs.h"
2976 /* System header to define __stub macros and hopefully few prototypes,
2977 which can conflict with char vfork(); below. */
2979 /* Override any gcc2 internal prototype to avoid an error. */
2980 /* We use char because int might match the return type of a gcc2
2981 builtin and then its argument prototype would still apply. */
2986 /* The GNU C library defines this for functions which it implements
2987 to always fail with ENOSYS. Some functions are actually named
2988 something starting with __ and the normal name is an alias. */
2989 #if defined (__stub_vfork) || defined (__stub___vfork)
2997 if { (eval echo configure
:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2999 eval "ac_cv_func_vfork=yes"
3001 echo "configure: failed program was:" >&5
3002 cat conftest.
$ac_ext >&5
3004 eval "ac_cv_func_vfork=no"
3009 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3010 echo "$ac_t""yes" 1>&6
3013 echo "$ac_t""no" 1>&6
3016 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3018 cat > conftest.
$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 /* Thanks to Paul Eggert for this test. */
3023 #include <sys/types.h>
3024 #include <sys/stat.h>
3025 #ifdef HAVE_UNISTD_H
3031 /* On some sparc systems, changes by the child to local and incoming
3032 argument registers are propagated back to the parent.
3033 The compiler is told about this with #include <vfork.h>,
3034 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3035 Test for this by using a static variable whose address
3036 is put into a register that is clobbered by the vfork. */
3039 sparc_address_test (int arg)
3041 sparc_address_test (arg) int arg;
3059 pid_t parent = getpid ();
3062 sparc_address_test ();
3067 /* Here is another test for sparc vfork register problems.
3068 This test uses lots of local variables, at least
3069 as many local variables as main has allocated so far
3070 including compiler temporaries. 4 locals are enough for
3071 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3072 A buggy compiler should reuse the register of parent
3073 for one of the local variables, since it will think that
3074 parent can't possibly be used any more in this routine.
3075 Assigning to the local variable will thus munge parent
3076 in the parent process. */
3078 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3079 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3080 /* Convince the compiler that p..p7 are live; otherwise, it might
3081 use the same hardware register for all 8 local variables. */
3082 if (p != p1 || p != p2 || p != p3 || p != p4
3083 || p != p5 || p != p6 || p != p7)
3086 /* On some systems (e.g. IRIX 3.3),
3087 vfork doesn't separate parent from child file descriptors.
3088 If the child closes a descriptor before it execs or exits,
3089 this munges the parent's descriptor as well.
3090 Test for this by closing stdout in the child. */
3091 _exit(close(fileno(stdout)) != 0);
3096 while (wait(&status) != child)
3099 /* Was there some problem with vforking? */
3102 /* Did the child fail? (This shouldn't happen.) */
3105 /* Did the vfork/compiler bug occur? */
3106 || parent != getpid()
3108 /* Did the file descriptor bug occur? */
3109 || fstat(fileno(stdout), &st) != 0
3114 if { (eval echo configure
:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3116 ac_cv_func_vfork_works
=yes
3118 echo "configure: failed program was:" >&5
3119 cat conftest.
$ac_ext >&5
3121 ac_cv_func_vfork_works
=no
3128 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3129 if test $ac_cv_func_vfork_works = no
; then
3130 cat >> confdefs.h
<<\EOF
3136 for ac_hdr
in unistd.h
3138 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_hdr" >&5
3141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.
$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3149 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3150 { (eval echo configure
:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3151 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3152 if test -z "$ac_err"; then
3154 eval "ac_cv_header_$ac_safe=yes"
3157 echo "configure: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3160 eval "ac_cv_header_$ac_safe=no"
3164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3167 cat >> confdefs.h
<<EOF
3168 #define $ac_tr_hdr 1
3172 echo "$ac_t""no" 1>&6
3176 for ac_func
in getpagesize
3178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3179 echo "configure:3180: checking for $ac_func" >&5
3180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 /* System header to define __stub macros and hopefully few prototypes,
3187 which can conflict with char $ac_func(); below. */
3189 /* Override any gcc2 internal prototype to avoid an error. */
3190 /* We use char because int might match the return type of a gcc2
3191 builtin and then its argument prototype would still apply. */
3196 /* The GNU C library defines this for functions which it implements
3197 to always fail with ENOSYS. Some functions are actually named
3198 something starting with __ and the normal name is an alias. */
3199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3207 if { (eval echo configure
:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3209 eval "ac_cv_func_$ac_func=yes"
3211 echo "configure: failed program was:" >&5
3212 cat conftest.
$ac_ext >&5
3214 eval "ac_cv_func_$ac_func=no"
3219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3220 echo "$ac_t""yes" 1>&6
3221 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3222 cat >> confdefs.h
<<EOF
3223 #define $ac_tr_func 1
3227 echo "$ac_t""no" 1>&6
3231 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3232 echo "configure:3233: checking for working mmap which provides zeroed pages anywhere" >&5
3233 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 if test "$cross_compiling" = yes; then
3237 ac_cv_func_mmap_anywhere
=no
3239 cat > conftest.
$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3243 /* Test by Richard Henderson and Alexandre Oliva.
3244 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3245 #include <sys/types.h>
3247 #include <sys/mman.h>
3249 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3250 # define MAP_ANONYMOUS MAP_ANON
3253 /* This mess was copied from the GNU getpagesize.h. */
3254 #ifndef HAVE_GETPAGESIZE
3255 # ifdef HAVE_UNISTD_H
3256 # include <unistd.h>
3259 /* Assume that all systems that can run configure have sys/param.h. */
3260 # ifndef HAVE_SYS_PARAM_H
3261 # define HAVE_SYS_PARAM_H 1
3264 # ifdef _SC_PAGESIZE
3265 # define getpagesize() sysconf(_SC_PAGESIZE)
3266 # else /* no _SC_PAGESIZE */
3267 # ifdef HAVE_SYS_PARAM_H
3268 # include <sys/param.h>
3269 # ifdef EXEC_PAGESIZE
3270 # define getpagesize() EXEC_PAGESIZE
3271 # else /* no EXEC_PAGESIZE */
3273 # define getpagesize() NBPG * CLSIZE
3276 # endif /* no CLSIZE */
3277 # else /* no NBPG */
3279 # define getpagesize() NBPC
3280 # else /* no NBPC */
3282 # define getpagesize() PAGESIZE
3283 # endif /* PAGESIZE */
3284 # endif /* no NBPC */
3285 # endif /* no NBPG */
3286 # endif /* no EXEC_PAGESIZE */
3287 # else /* no HAVE_SYS_PARAM_H */
3288 # define getpagesize() 8192 /* punt totally */
3289 # endif /* no HAVE_SYS_PARAM_H */
3290 # endif /* no _SC_PAGESIZE */
3292 #endif /* no HAVE_GETPAGESIZE */
3299 #ifndef MAP_ANONYMOUS
3300 fd = open("/dev/zero", O_RDWR);
3306 #ifdef MAP_ANONYMOUS
3307 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3308 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3310 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3312 if (x == (char *) -1)
3317 if (munmap(x, pg) < 0)
3323 if { (eval echo configure
:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3325 ac_cv_func_mmap_anywhere
=yes
3327 echo "configure: failed program was:" >&5
3328 cat conftest.
$ac_ext >&5
3330 ac_cv_func_mmap_anywhere
=no
3337 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3338 if test $ac_cv_func_mmap_anywhere = yes; then
3339 cat >> confdefs.h
<<\EOF
3340 #define HAVE_MMAP_ANYWHERE 1
3345 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3346 echo "configure:3347: checking for working mmap of a file" >&5
3347 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 # Create a file one thousand bytes long.
3351 for i
in 1 2 3 4 5 6 7 8 9 0
3352 do for j
in 1 2 3 4 5 6 7 8 9 0
3355 done > conftestdata$$
3357 if test "$cross_compiling" = yes; then
3358 ac_cv_func_mmap_file
=no
3360 cat > conftest.
$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3364 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3365 Richard Henderson and Alexandre Oliva.
3366 Check whether read-only mmap of a plain file works. */
3367 #include <sys/types.h>
3368 #include <sys/stat.h>
3370 #include <sys/mman.h>
3378 fd = open("conftestdata$$", O_RDONLY);
3382 if (fstat (fd, &st))
3385 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3386 if (x == (char *) -1)
3389 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3392 if (munmap(x, st.st_size) < 0)
3398 if { (eval echo configure
:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3400 ac_cv_func_mmap_file
=yes
3402 echo "configure: failed program was:" >&5
3403 cat conftest.
$ac_ext >&5
3405 ac_cv_func_mmap_file
=no
3412 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3413 if test $ac_cv_func_mmap_file = yes; then
3414 cat >> confdefs.h
<<\EOF
3415 #define HAVE_MMAP_FILE 1
3421 # We will need to find libiberty.h and ansidecl.h
3422 saved_CFLAGS
="$CFLAGS"
3423 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3424 for ac_func
in bcopy bzero bcmp \
3425 index rindex getenv atol sbrk abort atof getcwd getwd \
3426 strsignal putc_unlocked fputs_unlocked strstr environ \
3427 malloc realloc calloc free
basename getopt
3429 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3430 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3431 echo "configure:3432: checking whether $ac_func is declared" >&5
3432 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 cat > conftest.
$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include "gansidecl.h"
3443 char *(*pfn) = (char *(*)) $ac_func ;
3447 if { (eval echo configure
:3448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 eval "gcc_cv_have_decl_$ac_func=yes"
3451 echo "configure: failed program was:" >&5
3452 cat conftest.
$ac_ext >&5
3454 eval "gcc_cv_have_decl_$ac_func=no"
3459 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3461 #define $ac_tr_decl 1
3465 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3466 #define $ac_tr_decl 0
3472 if test x
= y
; then
3473 cat >> confdefs.h
<<EOF
3474 #define HAVE_DECL_BCOPY 1
3476 cat >> confdefs.h
<<EOF
3477 #define HAVE_DECL_BZERO 1
3479 cat >> confdefs.h
<<EOF
3480 #define HAVE_DECL_BCMP 1
3483 cat >> confdefs.h
<<EOF
3484 #define HAVE_DECL_INDEX 1
3486 cat >> confdefs.h
<<EOF
3487 #define HAVE_DECL_RINDEX 1
3489 cat >> confdefs.h
<<EOF
3490 #define HAVE_DECL_GETENV 1
3492 cat >> confdefs.h
<<EOF
3493 #define HAVE_DECL_ATOL 1
3495 cat >> confdefs.h
<<EOF
3496 #define HAVE_DECL_SBRK 1
3498 cat >> confdefs.h
<<EOF
3499 #define HAVE_DECL_ABORT 1
3501 cat >> confdefs.h
<<EOF
3502 #define HAVE_DECL_ATOF 1
3504 cat >> confdefs.h
<<EOF
3505 #define HAVE_DECL_GETCWD 1
3507 cat >> confdefs.h
<<EOF
3508 #define HAVE_DECL_GETWD 1
3511 cat >> confdefs.h
<<EOF
3512 #define HAVE_DECL_STRSIGNAL 1
3514 cat >> confdefs.h
<<EOF
3515 #define HAVE_DECL_PUTC_UNLOCKED 1
3517 cat >> confdefs.h
<<EOF
3518 #define HAVE_DECL_FPUTS_UNLOCKED 1
3520 cat >> confdefs.h
<<EOF
3521 #define HAVE_DECL_STRSTR 1
3523 cat >> confdefs.h
<<EOF
3524 #define HAVE_DECL_ENVIRON 1
3527 cat >> confdefs.h
<<EOF
3528 #define HAVE_DECL_MALLOC 1
3530 cat >> confdefs.h
<<EOF
3531 #define HAVE_DECL_REALLOC 1
3533 cat >> confdefs.h
<<EOF
3534 #define HAVE_DECL_CALLOC 1
3536 cat >> confdefs.h
<<EOF
3537 #define HAVE_DECL_FREE 1
3539 cat >> confdefs.h
<<EOF
3540 #define HAVE_DECL_BASENAME 1
3542 cat >> confdefs.h
<<EOF
3543 #define HAVE_DECL_GETOPT 1
3548 for ac_func
in getrlimit setrlimit getrusage
3550 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3551 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3552 echo "configure:3553: checking whether $ac_func is declared" >&5
3553 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 cat > conftest.
$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3559 #include "gansidecl.h"
3561 #ifdef HAVE_SYS_RESOURCE_H
3562 #include <sys/resource.h>
3568 char *(*pfn) = (char *(*)) $ac_func ;
3572 if { (eval echo configure
:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3574 eval "gcc_cv_have_decl_$ac_func=yes"
3576 echo "configure: failed program was:" >&5
3577 cat conftest.
$ac_ext >&5
3579 eval "gcc_cv_have_decl_$ac_func=no"
3584 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3586 #define $ac_tr_decl 1
3590 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3591 #define $ac_tr_decl 0
3597 if test x
= y
; then
3598 cat >> confdefs.h
<<EOF
3599 #define HAVE_DECL_GETRLIMIT 1
3601 cat >> confdefs.h
<<EOF
3602 #define HAVE_DECL_SETRLIMIT 1
3604 cat >> confdefs.h
<<EOF
3605 #define HAVE_DECL_GETRUSAGE 1
3610 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3611 CFLAGS
="$saved_CFLAGS"
3613 # mkdir takes a single argument on some systems.
3614 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3615 echo "configure:3616: checking if mkdir takes one argument" >&5
3616 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.
$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3623 #include <sys/types.h>
3624 #ifdef HAVE_SYS_STAT_H
3625 # include <sys/stat.h>
3627 #ifdef HAVE_UNISTD_H
3628 # include <unistd.h>
3630 #ifdef HAVE_DIRECT_H
3631 # include <direct.h>
3637 if { (eval echo configure
:3638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3639 gcc_cv_mkdir_takes_one_arg
=no
3641 echo "configure: failed program was:" >&5
3642 cat conftest.
$ac_ext >&5
3644 gcc_cv_mkdir_takes_one_arg
=yes
3649 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3650 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3651 cat >> confdefs.h
<<\EOF
3652 #define MKDIR_TAKES_ONE_ARG 1
3666 build_install_headers_dir
=install-headers-tar
3671 host_truncate_target
=
3674 # Decode the host machine, then the target machine.
3675 # For the host machine, we save the xm_file variable as host_xm_file;
3676 # then we decode the target machine and forget everything else
3677 # that came from the host machine.
3678 for machine
in $build $host $target; do
3692 # Set this to force installation and use of collect2.
3694 # Set this to override the default target model.
3696 # Set this to control how the header file directory is installed.
3697 install_headers_dir
=install-headers-tar
3698 # Set this to a non-empty list of args to pass to cpp if the target
3699 # wants its .md file passed through cpp.
3701 # Set this if directory names should be truncated to 14 characters.
3703 # Set this if gdb needs a dir command with `dirname $out_file`
3704 gdb_needs_out_file_path
=
3705 # Set this if the build machine requires executables to have a
3708 # Set this to control which thread package will be used.
3710 # Reinitialize these from the flag values every loop pass, since some
3711 # configure entries modify them.
3713 gnu_ld
="$gnu_ld_flag"
3714 enable_threads
=$enable_threads_flag
3716 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3717 # updated in each machine entry.
3719 cpu_type
=`echo $machine | sed 's/-.*$//'`
3759 tm_file
=${cpu_type}/${cpu_type}.h
3760 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3761 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3763 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3765 # On a.out targets, we need to use collect2.
3772 # Common parts for linux and openbsd systems
3775 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3778 tm_file
=${cpu_type}/openbsd.h
3779 tmake_file
="t-libc-ok t-openbsd"
3780 # avoid surprises, always provide an xm-openbsd file
3781 xm_file
=${cpu_type}/xm-openbsd.h
3782 # don't depend on processor x-fragments as well
3784 if test x
$enable_threads = xyes
; then
3786 tmake_file
="${tmake_file} t-openbsd-thread"
3792 # Support site-specific machine types.
3794 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3795 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3796 xm_file
=${cpu_type}/xm-
$rest.h
3797 tm_file
=${cpu_type}/$rest.h
3798 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3799 then xmake_file
=${cpu_type}/x-
$rest; \
3802 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3803 then tmake_file
=${cpu_type}/t-
$rest; \
3809 a29k-
*-bsd* | a29k-
*-sym1*)
3810 tm_file
="${tm_file} a29k/unix.h"
3812 xmake_file
=a29k
/x-unix
3815 a29k-
*-udi | a29k-
*-coff)
3816 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3817 tmake_file
=a29k
/t-a29kbare
3820 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3821 tmake_file
=a29k
/t-vx29k
3822 extra_parts
="crtbegin.o crtend.o"
3823 thread_file
='vxworks'
3825 a29k-
*-*) # Default a29k environment.
3829 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3831 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3832 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3834 # GAS + IEEE_CONFORMANT
3835 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3837 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3838 xmake_file
="x-interix alpha/t-pe"
3839 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3840 if test x
$enable_threads = xyes
; then
3843 if test x
$stabs = xyes
; then
3844 tm_file
="${tm_file} dbxcoff.h"
3846 #prefix='$$INTERIX_ROOT'/usr/contrib
3847 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3849 alpha
*-*-linux*ecoff
*)
3850 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3851 target_cpu_default
="MASK_GAS"
3852 tmake_file
="alpha/t-alpha alpha/t-ieee"
3857 alpha
*-*-linux*libc1
*)
3858 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3859 target_cpu_default
="MASK_GAS"
3860 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3861 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3864 if test x
$enable_threads = xyes
; then
3869 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3870 target_cpu_default
="MASK_GAS"
3871 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3872 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3875 if test x
$enable_threads = xyes
; then
3880 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3881 target_cpu_default
="MASK_GAS"
3882 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3883 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3889 # default x-alpha is only appropriate for dec-osf.
3890 target_cpu_default
="MASK_GAS"
3891 tmake_file
="alpha/t-alpha alpha/t-ieee"
3895 if test x
$stabs = xyes
3897 tm_file
="${tm_file} dbx.h"
3899 if test x
$gas != xyes
3901 extra_passes
="mips-tfile mips-tdump"
3904 tmake_file
="alpha/t-alpha alpha/t-ieee"
3907 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3910 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3913 tm_file
="${tm_file} alpha/osf.h"
3914 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3915 # a broken tar, so we use cpio instead.
3916 install_headers_dir
=install-headers-cpio
3919 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3923 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3924 target_cpu_default
=MASK_SUPPORT_ARCH
3929 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3930 tmake_file
="alpha/t-alpha alpha/t-ieee"
3933 extra_passes
="mips-tfile mips-tdump"
3936 thread_file
='vxworks'
3939 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3940 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3941 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3942 xmake_file
=winnt
/x-winnt
3943 extra_host_objs
=oldnames.o
3944 extra_gcc_objs
="spawnv.o oldnames.o"
3945 if test x
$gnu_ld != xyes
3947 extra_programs
=ld.exe
3949 if test x
$enable_threads = xyes
; then
3955 xm_file
="${xm_file} alpha/xm-vms.h"
3956 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3959 extra_parts
="crtinit.o crtfini.o"
3961 arm-
*-coff* | armel-
*-coff*)
3963 tmake_file
=arm
/t-arm-coff
3967 tmake_file
=arm
/t-arm-coff
3968 thread_file
='vxworks'
3970 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3971 tm_file
=arm
/riscix1-1.h
3974 arm-
*-riscix*) # Acorn RISC machine
3975 if test x
$gas = xyes
3977 tm_file
=arm
/rix-gas.h
3979 tm_file
=arm
/riscix.h
3981 xmake_file
=arm
/x-riscix
3982 tmake_file
=arm
/t-riscix
3985 arm-semi-aout | armel-semi-aout
)
3987 tmake_file
=arm
/t-semi
3989 arm-semi-aof | armel-semi-aof
)
3990 tm_file
=arm
/semiaof.h
3991 tmake_file
=arm
/t-semiaof
3994 tm_file
=arm
/netbsd.h
3995 tmake_file
="t-netbsd arm/t-netbsd"
3998 arm
*-*-linux*aout
*) # ARM GNU/Linux with a.out
4001 tm_file
=arm
/linux-aout.h
4002 tmake_file
=arm
/t-linux
4005 arm
*-*-linux*oldld
*) # ARM GNU/Linux with old ELF linker
4006 xm_file
=arm
/xm-linux.h
4008 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
4011 tm_file
="arm/linux-elf26.h $tm_file"
4014 tmake_file
="t-linux arm/t-linux"
4015 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4017 case x
${enable_threads} in
4018 x | xyes | xpthreads | xposix
)
4023 arm
*-*-linux*) # ARM GNU/Linux with ELF
4024 xm_file
=arm
/xm-linux.h
4026 tm_file
="arm/linux-elf.h"
4029 tm_file
="arm/linux-elf26.h $tm_file"
4032 tmake_file
="t-linux arm/t-linux"
4033 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4035 case x
${enable_threads} in
4036 x | xyes | xpthreads | xposix
)
4041 arm
*-*-uclinux*) # ARM ucLinux
4042 tm_file
=arm
/uclinux-elf.h
4043 tmake_file
=arm
/t-arm-elf
4047 tmake_file
=arm
/t-arm-aout
4050 tm_file
=arm
/ecos-elf.h
4051 tmake_file
=arm
/t-arm-elf
4054 tm_file
=arm
/unknown-elf.h
4055 tmake_file
=arm
/t-arm-elf
4058 tm_file
=arm
/conix-elf.h
4059 tmake_file
=arm
/t-arm-elf
4062 tm_file
=arm
/unknown-elf-oabi.h
4063 tmake_file
=arm
/t-arm-elf
4072 c1-convex-
*) # Convex C1
4073 target_cpu_default
=1
4076 c2-convex-
*) # Convex C2
4077 target_cpu_default
=2
4081 target_cpu_default
=4
4085 target_cpu_default
=8
4089 target_cpu_default
=16
4094 tmake_file
=c4x
/t-c4x
4096 clipper-intergraph-clix
*)
4097 tm_file
="${tm_file} svr3.h clipper/clix.h"
4098 xm_file
=clipper
/xm-clix.h
4099 xmake_file
=clipper
/x-clix
4100 extra_headers
=va-clipper.h
4101 extra_parts
="crtbegin.o crtend.o"
4102 install_headers_dir
=install-headers-cpio
4113 tm_file
="fr30/fr30.h"
4114 tmake_file
=fr30
/t-fr30
4115 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4117 # This hasn't been upgraded to GCC 2.
4118 # fx80-alliant-*) # Alliant FX/80
4124 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4125 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4126 tmake_file
="t-linux pa/t-linux"
4127 extra_parts
="crtbegin.o crtend.o"
4130 if test x
$enable_threads = xyes
; then
4135 target_cpu_default
="MASK_PA_11"
4136 tmake_file
=pa
/t-openbsd
4139 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4140 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4141 xm_file
=pa
/xm-papro.h
4145 target_cpu_default
="MASK_PA_11"
4146 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4150 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4151 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4152 xm_file
=pa
/xm-papro.h
4156 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4160 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4161 target_cpu_default
="MASK_PA_11"
4165 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4169 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4170 xm_file
=pa
/xm-pahpux.h
4171 xmake_file
=pa
/x-pa-hpux
4172 if test x
$gas = xyes
4174 tm_file
="${tm_file} pa/gas.h"
4176 install_headers_dir
=install-headers-cpio
4179 hppa1.0
-*-hpux8.0
[0-2]*)
4180 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4181 xm_file
=pa
/xm-pahpux.h
4182 xmake_file
=pa
/x-pa-hpux
4183 if test x
$gas = xyes
4185 tm_file
="${tm_file} pa/pa-gas.h"
4187 tm_file
="pa/pa-oldas.h ${tm_file}"
4189 install_headers_dir
=install-headers-cpio
4192 hppa1.1
-*-hpux8.0
[0-2]*)
4193 target_cpu_default
="MASK_PA_11"
4194 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4195 xm_file
=pa
/xm-pahpux.h
4196 xmake_file
=pa
/x-pa-hpux
4197 if test x
$gas = xyes
4199 tm_file
="${tm_file} pa/pa-gas.h"
4201 tm_file
="pa/pa-oldas.h ${tm_file}"
4203 install_headers_dir
=install-headers-cpio
4207 target_cpu_default
="MASK_PA_11"
4208 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4209 xm_file
=pa
/xm-pahpux.h
4210 xmake_file
=pa
/x-pa-hpux
4211 if test x
$gas = xyes
4213 tm_file
="${tm_file} pa/pa-gas.h"
4215 install_headers_dir
=install-headers-cpio
4219 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4220 xm_file
=pa
/xm-pahpux.h
4221 xmake_file
=pa
/x-pa-hpux
4222 if test x
$gas = xyes
4224 tm_file
="${tm_file} pa/pa-gas.h"
4226 install_headers_dir
=install-headers-cpio
4229 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4230 target_cpu_default
="MASK_PA_11"
4231 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4233 xm_file
=pa
/xm-pahpux.h
4234 xmake_file
=pa
/x-pa-hpux
4236 if test x
$gas = xyes
4238 tm_file
="${tm_file} pa/pa-gas.h"
4240 if test x
$enable_threads = x
; then
4241 enable_threads
=$have_pthread_h
4243 case x
${enable_threads} in
4245 tmake_file
="${tmake_file} pa/t-dce-thr"
4248 install_headers_dir
=install-headers-cpio
4252 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4254 xm_file
=pa
/xm-pahpux.h
4255 xmake_file
=pa
/x-pa-hpux
4257 if test x
$gas = xyes
4259 tm_file
="${tm_file} pa/pa-gas.h"
4261 if test x
$enable_threads = x
; then
4262 enable_threads
=$have_pthread_h
4264 case x
${enable_threads} in
4266 tmake_file
="${tmake_file} pa/t-dce-thr"
4269 install_headers_dir
=install-headers-cpio
4273 target_cpu_default
="MASK_PA_11"
4274 xm_file
=pa
/xm-pa64hpux.h
4275 xmake_file
=pa
/x-pa-hpux
4277 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"
4279 tmake_file
=pa
/t-pa64
4280 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4284 tm_file
="${tm_file} pa/pa-gas.h"
4286 # if [[ x$enable_threads = x ]]; then
4287 # enable_threads=$have_pthread_h
4289 # if [[ x$enable_threads = xyes ]]; then
4291 # tmake_file="${tmake_file} pa/t-dce-thr"
4293 install_headers_dir
=install-headers-cpio
4296 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4297 target_cpu_default
="MASK_PA_11"
4298 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4300 xm_file
=pa
/xm-pahpux.h
4301 xmake_file
=pa
/x-pa-hpux
4303 if test x
$gas = xyes
4305 tm_file
="${tm_file} pa/pa-gas.h"
4307 # if test x$enable_threads = x; then
4308 # enable_threads=$have_pthread_h
4310 # if test x$enable_threads = xyes; then
4312 # tmake_file="${tmake_file} pa/t-dce-thr"
4314 install_headers_dir
=install-headers-cpio
4318 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4320 xm_file
=pa
/xm-pahpux.h
4321 xmake_file
=pa
/x-pa-hpux
4322 if test x
$gas = xyes
4324 tm_file
="${tm_file} pa/pa-gas.h"
4326 # if test x$enable_threads = x; then
4327 # enable_threads=$have_pthread_h
4329 # if test x$enable_threads = xyes; then
4331 # tmake_file="${tmake_file} pa/t-dce-thr"
4333 install_headers_dir
=install-headers-cpio
4336 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4337 target_cpu_default
="MASK_PA_11"
4338 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4339 xm_file
=pa
/xm-pahpux.h
4340 xmake_file
=pa
/x-pa-hpux
4341 if test x
$gas = xyes
4343 tm_file
="${tm_file} pa/pa-gas.h"
4345 install_headers_dir
=install-headers-cpio
4349 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4350 xm_file
=pa
/xm-pahpux.h
4351 xmake_file
=pa
/x-pa-hpux
4352 if test x
$gas = xyes
4354 tm_file
="${tm_file} pa/pa-gas.h"
4356 install_headers_dir
=install-headers-cpio
4359 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4360 target_cpu_default
="MASK_PA_11"
4361 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4362 xm_file
=pa
/xm-pahpux.h
4363 xmake_file
=pa
/x-pa-hpux
4364 if test x
$gas = xyes
4366 tm_file
="${tm_file} pa/pa-gas.h"
4368 install_headers_dir
=install-headers-cpio
4372 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4373 xm_file
=pa
/xm-pahpux.h
4374 xmake_file
=pa
/x-pa-hpux
4375 if test x
$gas = xyes
4377 tm_file
="${tm_file} pa/pa-gas.h"
4379 install_headers_dir
=install-headers-cpio
4383 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4384 target_cpu_default
="MASK_PA_11"
4388 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4389 xm_file
=pa
/xm-pampeix.h
4390 xmake_file
=pa
/x-pa-mpeix
4391 echo "You must use gas. Assuming it is already installed."
4392 install_headers_dir
=install-headers-tar
4395 i370-
*-opened*) # IBM 360/370/390 Architecture
4396 xm_file
=i370
/xm-oe.h
4398 xmake_file
=i370
/x-oe
4399 tmake_file
=i370
/t-oe
4402 xm_file
=i370
/xm-mvs.h
4404 tmake_file
=i370
/t-mvs
4407 xm_file
="xm-linux.h i370/xm-linux.h"
4409 tm_file
="i370/linux.h ${tm_file}"
4410 tmake_file
="t-linux i370/t-linux"
4411 # broken_install=yes
4412 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4413 # extra_parts="crtbegin.o crtend.o"
4417 if test x
$enable_threads = xyes
; then
4422 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4423 tm_file
=i386
/i386elf.h
4424 tmake_file
=i386
/t-i386elf
4427 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4428 if test x
$gas = xyes
4430 tm_file
=i386
/aix386.h
4431 extra_parts
="crtbegin.o crtend.o"
4432 tmake_file
=i386
/t-crtstuff
4434 tm_file
=i386
/aix386ng.h
4437 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4439 xmake_file
=i386
/x-aix
4441 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4442 xm_file
="xm-alloca.h ${xm_file}"
4443 xm_defines
="USG POSIX SMALL_ARG_MAX"
4444 xmake_file
=i386
/x-ncr3000
4445 if test x
$stabs = xyes
-a x
$gas = xyes
4447 tm_file
=i386
/sysv4gdb.h
4449 tm_file
=i386
/sysv4.h
4451 extra_parts
="crtbegin.o crtend.o"
4452 tmake_file
=i386
/t-crtpic
4456 xm_file
=i386
/xm-next.h
4457 tmake_file
=i386
/t-next
4458 xmake_file
=i386
/x-next
4459 extra_objs
=nextstep.o
4460 extra_parts
="crtbegin.o crtend.o"
4461 if test x
$enable_threads = xyes
; then
4465 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4467 if test x
$gas = xyes
4469 tm_file
=i386
/seq-gas.h
4471 tm_file
=i386
/sequent.h
4474 i
[34567]86-sequent-ptx1*)
4475 xm_defines
="USG SVR3"
4476 xmake_file
=i386
/x-sysv3
4477 tm_file
=i386
/seq-sysv3.h
4478 tmake_file
=i386
/t-crtstuff
4479 extra_parts
="crtbegin.o crtend.o"
4480 install_headers_dir
=install-headers-cpio
4482 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4483 xm_defines
="USG SVR3"
4484 xmake_file
=i386
/x-sysv3
4485 tm_file
=i386
/seq2-sysv3.h
4486 tmake_file
=i386
/t-crtstuff
4487 extra_parts
="crtbegin.o crtend.o"
4488 install_headers_dir
=install-headers-cpio
4490 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4491 xm_file
="xm-alloca.h ${xm_file}"
4492 xm_defines
="USG POSIX SMALL_ARG_MAX"
4494 tm_file
=i386
/ptx4-i.h
4496 extra_parts
="crtbegin.o crtend.o"
4497 install_headers_dir
=install-headers-cpio
4499 i386-sun-sunos
*) # Sun i386 roadrunner
4504 i
[34567]86-wrs-vxworks*)
4505 tm_file
=i386
/vxi386.h
4506 tmake_file
=i386
/t-i386bare
4507 thread_file
='vxworks'
4510 tm_file
=i386
/i386-aout.h
4511 tmake_file
=i386
/t-i386bare
4513 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4514 xm_file
=i386
/xm-beos.h
4515 tmake_file
='i386/t-beos i386/t-crtpic'
4516 tm_file
=i386
/beos-elf.h
4517 xmake_file
=i386
/x-beos
4518 extra_parts
='crtbegin.o crtend.o'
4520 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4521 tm_file
=i386
/bsd386.h
4522 # tmake_file=t-libc-ok
4525 tm_file
=i386
/386bsd.h
4526 # tmake_file=t-libc-ok
4527 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4530 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4531 tm_file
="i386/freebsd.h i386/perform.h"
4532 tmake_file
=t-freebsd
4534 i
[34567]86-*-freebsd*)
4535 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4536 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4537 tmake_file
=t-freebsd
4541 case x
${enable_threads} in
4542 xyes | xpthreads | xposix
)
4544 tmake_file
="${tmake_file} t-freebsd-thread"
4548 i
[34567]86-*-netbsd*)
4549 tm_file
=i386
/netbsd.h
4553 i
[34567]86-*-openbsd*)
4554 # we need collect2 until our bug is fixed...
4558 tm_file
=i386
/i386-coff.h
4559 tmake_file
=i386
/t-i386bare
4561 i
[34567]86-*-isc*) # 80386 running ISC system
4562 xm_file
="${xm_file} i386/xm-isc.h"
4563 xm_defines
="USG SVR3"
4565 i
[34567]86-*-isc[34]*)
4566 xmake_file
=i386
/x-isc3
4569 xmake_file
=i386
/x-isc
4572 if test x
$gas = xyes
-a x
$stabs = xyes
4574 tm_file
=i386
/iscdbx.h
4575 tmake_file
=i386
/t-svr3dbx
4576 extra_parts
="svr3.ifile svr3z.ifile"
4578 tm_file
=i386
/isccoff.h
4579 tmake_file
=i386
/t-crtstuff
4580 extra_parts
="crtbegin.o crtend.o"
4582 tmake_file
="$tmake_file i386/t-i386bare"
4583 install_headers_dir
=install-headers-cpio
4585 i
[34567]86-*-linux*oldld
*) # Intel 80386's running GNU/Linux
4587 xmake_file
=x-linux-aout
4588 tmake_file
="t-linux-aout i386/t-crtstuff"
4589 tm_file
=i386
/linux-oldld.h
4593 i
[34567]86-*-linux*aout
*) # Intel 80386's running GNU/Linux
4594 xmake_file
=x-linux-aout
4595 tmake_file
="t-linux-aout i386/t-crtstuff"
4596 tm_file
=i386
/linux-aout.h
4600 i
[34567]86-*-linux*libc1
) # Intel 80386's running GNU/Linux
4601 # GNU/Linux C library 5
4603 tm_file
=i386
/linux.h
4604 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4605 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4608 if test x
$enable_threads = xyes
; then
4609 thread_file
='single'
4612 i
[34567]86-*-linux*) # Intel 80386's running GNU/Linux
4613 # aka GNU/Linux C library 6
4615 tm_file
=i386
/linux.h
4616 tmake_file
="t-linux i386/t-crtstuff"
4617 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4620 if test x
$enable_threads = xyes
; then
4627 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4628 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4631 i
[34567]86-pc-msdosdjgpp*)
4632 xm_file
=i386
/xm-djgpp.h
4633 tm_file
=i386
/djgpp.h
4634 tmake_file
=i386
/t-djgpp
4635 xmake_file
=i386
/x-djgpp
4640 case $host in *pc-msdosdjgpp
*)
4645 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4647 tmake_file
=t-libc-ok
4651 i
[34567]86-*-lynxos*)
4652 if test x
$gas = xyes
4656 tm_file
=i386
/lynx-ng.h
4658 xm_file
=i386
/xm-lynx.h
4659 tmake_file
=i386
/t-i386bare
4664 # tmake_file=t-libc-ok
4667 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4668 if test x
$elf = xyes
4670 tm_file
=i386
/osfelf.h
4673 tm_file
=i386
/osfrose.h
4676 xm_file
="i386/xm-osf.h ${xm_file}"
4677 xmake_file
=i386
/x-osfrose
4678 tmake_file
=i386
/t-osf
4679 extra_objs
=halfpic.o
4681 i
[34567]86-go32-rtems*)
4683 xm_file
=i386
/xm-go32.h
4684 tm_file
=i386
/go32-rtems.h
4685 tmake_file
="i386/t-go32 t-rtems"
4687 i
[34567]86-*-rtemscoff*)
4689 tm_file
=i386
/rtems.h
4690 tmake_file
="i386/t-i386bare t-rtems"
4692 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4694 tm_file
=i386
/rtemself.h
4695 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4696 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4698 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4699 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4700 xm_defines
="USG SVR3"
4701 xmake_file
=i386
/x-sco5
4702 install_headers_dir
=install-headers-cpio
4704 if test x
$gas = xyes
4706 tm_file
="i386/sco5gas.h ${tm_file}"
4707 tmake_file
=i386
/t-sco5gas
4709 tmake_file
=i386
/t-sco5
4711 tmake_file
="$tmake_file i386/t-i386bare"
4712 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4714 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4715 xm_file
="${xm_file} i386/xm-sco.h"
4716 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4717 xmake_file
=i386
/x-sco4
4718 install_headers_dir
=install-headers-cpio
4719 if test x
$stabs = xyes
4721 tm_file
=i386
/sco4dbx.h
4722 tmake_file
=i386
/t-svr3dbx
4723 extra_parts
="svr3.ifile svr3z.rfile"
4726 tmake_file
=i386
/t-crtstuff
4727 extra_parts
="crtbegin.o crtend.o"
4729 tmake_file
="$tmake_file i386/t-i386bare"
4730 # The default EAFS filesystem supports long file names.
4731 # Truncating the target makes $host != $target which
4732 # makes gcc think it is doing a cross-compile.
4733 # truncate_target=yes
4735 i
[34567]86-*-sco*) # 80386 running SCO system
4736 xm_file
=i386
/xm-sco.h
4737 xmake_file
=i386
/x-sco
4738 install_headers_dir
=install-headers-cpio
4739 if test x
$stabs = xyes
4741 tm_file
=i386
/scodbx.h
4742 tmake_file
=i386
/t-svr3dbx
4743 extra_parts
="svr3.ifile svr3z.rfile"
4746 extra_parts
="crtbegin.o crtend.o"
4747 tmake_file
=i386
/t-crtstuff
4749 tmake_file
="$tmake_file i386/t-i386bare"
4752 i
[34567]86-*-solaris2*)
4753 xm_file
="xm-alloca.h ${xm_file}"
4754 xm_defines
="USG POSIX SMALL_ARG_MAX"
4756 if test x
$gas = xyes
; then
4757 # Only needed if gas does not support -s
4758 tm_file
="i386/sol2gas.h ${tm_file}"
4760 tmake_file
="i386/t-i386bare i386/t-sol2"
4761 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4763 if test x
${enable_threads} = x
; then
4764 enable_threads
=$have_pthread_h
4765 if test x
${enable_threads} = x
; then
4766 enable_threads
=$have_thread_h
4769 if test x
${enable_threads} = xyes
; then
4770 if test x
${have_pthread_h} = xyes
; then
4773 thread_file
='solaris'
4777 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4778 xm_file
="xm-alloca.h ${xm_file}"
4779 xm_defines
="USG POSIX"
4780 tm_file
=i386
/sysv5.h
4781 if test x
$stabs = xyes
4783 tm_file
="${tm_file} dbx.h"
4785 tmake_file
="i386/t-i386bare i386/t-crtpic"
4787 extra_parts
="crtbegin.o crtend.o"
4788 if test x
$enable_threads = xyes
; then
4792 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4793 xm_file
="xm-alloca.h ${xm_file}"
4794 xm_defines
="USG POSIX SMALL_ARG_MAX"
4795 tm_file
=i386
/sysv4.h
4796 if test x
$stabs = xyes
4798 tm_file
="${tm_file} dbx.h"
4800 tmake_file
="i386/t-i386bare i386/t-crtpic"
4802 extra_parts
="crtbegin.o crtend.o"
4804 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4805 xm_file
="xm-alloca.h ${xm_file}"
4806 xm_defines
="USG POSIX"
4808 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4810 extra_parts
="crtbegin.o crtend.o"
4811 install_headers_dir
=install-headers-cpio
4813 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4815 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4816 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4817 if test x
$stabs = xyes
4819 tm_file
=i386
/osf1elfgdb.h
4821 tm_file
=i386
/osf1elf.h
4823 tmake_file
=i386
/t-osf1elf
4824 xmake_file
=i386
/x-osf1elf
4825 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4827 i
[34567]86-*-sysv*) # Intel 80386's running system V
4828 xm_defines
="USG SVR3"
4829 xmake_file
=i386
/x-sysv3
4830 if test x
$gas = xyes
4832 if test x
$stabs = xyes
4834 tm_file
=i386
/svr3dbx.h
4835 tmake_file
=i386
/t-svr3dbx
4836 extra_parts
="svr3.ifile svr3z.rfile"
4838 tm_file
=i386
/svr3gas.h
4839 extra_parts
="crtbegin.o crtend.o"
4840 tmake_file
=i386
/t-crtstuff
4843 tm_file
=i386
/sysv3.h
4844 extra_parts
="crtbegin.o crtend.o"
4845 tmake_file
=i386
/t-crtstuff
4847 tmake_file
="$tmake_file i386/t-crtpic"
4849 i386-
*-vsta) # Intel 80386's running VSTa kernel
4850 xm_file
="${xm_file} i386/xm-vsta.h"
4852 tmake_file
=i386
/t-vsta
4853 xmake_file
=i386
/x-vsta
4856 xm_file
="${xm_file} i386/xm-cygwin.h"
4857 tmake_file
=i386
/t-cygwin
4858 tm_file
=i386
/win32.h
4859 xmake_file
=i386
/x-cygwin
4861 if test x
$enable_threads = xyes
; then
4866 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4867 xm_file
="${xm_file} i386/xm-cygwin.h"
4868 tmake_file
=i386
/t-cygwin
4869 tm_file
=i386
/cygwin.h
4870 xmake_file
=i386
/x-cygwin
4872 if test x
$enable_threads = xyes
; then
4877 i
[34567]86-*-mingw32*)
4878 tm_file
=i386
/mingw32.h
4879 xm_file
="${xm_file} i386/xm-mingw32.h"
4880 tmake_file
="i386/t-cygwin i386/t-mingw32"
4882 xmake_file
=i386
/x-cygwin
4883 if test x
$enable_threads = xyes
; then
4890 *minwg32crt
* |
*mingw32
*)
4891 tm_file
="${tm_file} i386/crtdll.h"
4897 xm_file
="${xm_file} i386/xm-uwin.h"
4898 xm_defines
="USG NO_STAB_H"
4899 tmake_file
="i386/t-cygwin i386/t-uwin"
4901 xmake_file
=i386
/x-cygwin
4902 if test x
$enable_threads = xyes
; then
4907 i
[34567]86-*-interix*)
4908 tm_file
="i386/i386-interix.h interix.h"
4909 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4911 tmake_file
="i386/t-interix"
4912 extra_objs
=interix.o
4913 xmake_file
=x-interix
4914 if test x
$enable_threads = xyes
; then
4917 if test x
$stabs = xyes
; then
4918 tm_file
="${tm_file} dbxcoff.h"
4921 i
[34567]86-*-winnt3*)
4922 tm_file
=i386
/win-nt.h
4923 out_file
=i386
/i386.c
4924 xm_file
="xm-winnt.h ${xm_file}"
4925 xmake_file
=winnt
/x-winnt
4926 tmake_file
=i386
/t-winnt
4927 extra_host_objs
="winnt.o oldnames.o"
4928 extra_gcc_objs
="spawnv.o oldnames.o"
4929 if test x
$gnu_ld != xyes
4931 extra_programs
=ld.exe
4933 if test x
$enable_threads = xyes
; then
4937 i
[34567]86-dg-dgux*)
4938 xm_file
="xm-alloca.h ${xm_file}"
4939 xm_defines
="USG POSIX"
4940 out_file
=i386
/dgux.c
4942 tmake_file
=i386
/t-dgux
4943 xmake_file
=i386
/x-dgux
4944 install_headers_dir
=install-headers-cpio
4946 i860-alliant-
*) # Alliant FX/2800
4947 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4948 xm_file
="${xm_file}"
4949 xmake_file
=i860
/x-fx2800
4950 tmake_file
=i860
/t-fx2800
4951 extra_parts
="crtbegin.o crtend.o"
4954 tm_file
="${tm_file} i860/bsd.h"
4955 if test x
$gas = xyes
4957 tm_file
="${tm_file} i860/bsd-gas.h"
4962 tm_file
="${tm_file} i860/mach.h"
4963 tmake_file
=t-libc-ok
4965 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4966 tm_file
="${tm_file} svr3.h i860/paragon.h"
4967 xm_defines
="USG SVR3"
4971 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4972 xm_defines
="USG SVR3"
4973 xmake_file
=i860
/x-sysv3
4974 extra_parts
="crtbegin.o crtend.o"
4977 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4978 xm_defines
="USG SVR3"
4979 xmake_file
=i860
/x-sysv4
4981 extra_parts
="crtbegin.o crtend.o"
4983 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4984 tm_file
="${tm_file} i960/vx960.h"
4985 tmake_file
=i960
/t-vxworks960
4987 thread_file
='vxworks'
4989 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4990 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4991 tmake_file
=i960
/t-vxworks960
4993 thread_file
='vxworks'
4996 tm_file
="${tm_file} i960/vx960.h"
4997 tmake_file
=i960
/t-vxworks960
4999 thread_file
='vxworks'
5002 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
5003 tmake_file
=i960
/t-960bare
5007 tmake_file
="i960/t-960bare t-rtems"
5008 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
5011 i960-
*-*) # Default i960 environment.
5016 tmake_file
="ia64/t-ia64"
5017 target_cpu_default
="0"
5018 if test x
$gas = xyes
5020 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
5022 if test x
$gnu_ld = xyes
5024 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
5029 tm_file
=ia64
/linux.h
5030 tmake_file
="t-linux ia64/t-ia64"
5031 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
5032 if test x
$enable_threads = xyes
; then
5038 extra_parts
="crtinit.o crtfini.o"
5040 # m68hc11 and m68hc12 share the same machine description.
5041 m68hc11-
*-*|m6811-
*-*)
5042 tm_file
="m68hc11/m68hc11.h"
5043 xm_file
="m68hc11/xm-m68hc11.h"
5044 tm_p_file
="m68hc11/m68hc11-protos.h"
5045 md_file
="m68hc11/m68hc11.md"
5046 out_file
="m68hc11/m68hc11.c"
5047 tmake_file
="m68hc11/t-m68hc11-gas"
5049 m68hc12-
*-*|m6812-
*-*)
5050 tm_file
="m68hc11/m68hc12.h"
5051 tm_p_file
="m68hc11/m68hc11-protos.h"
5052 xm_file
="m68hc11/xm-m68hc11.h"
5053 md_file
="m68hc11/m68hc11.md"
5054 out_file
="m68hc11/m68hc11.c"
5055 tmake_file
="m68hc11/t-m68hc11-gas"
5057 m68000-convergent-sysv
*)
5059 xm_file
="m68k/xm-3b1.h ${xm_file}"
5062 extra_headers
=math-68881.h
5064 m68000-hp-bsd
*) # HP 9000/200 running BSD
5065 tm_file
=m68k
/hp2bsd.h
5066 xmake_file
=m68k
/x-hp2bsd
5068 extra_headers
=math-68881.h
5070 m68000-hp-hpux
*) # HP 9000 series 300
5071 xm_file
="xm-alloca.h ${xm_file}"
5073 if test x
$gas = xyes
5075 xmake_file
=m68k
/x-hp320g
5076 tm_file
=m68k
/hp310g.h
5078 xmake_file
=m68k
/x-hp320
5079 tm_file
=m68k
/hp310.h
5081 install_headers_dir
=install-headers-cpio
5083 extra_headers
=math-68881.h
5088 extra_headers
=math-68881.h
5091 tm_file
=m68k
/sun2o4.h
5093 extra_headers
=math-68881.h
5096 xm_file
="m68k/xm-3b1.h ${xm_file}"
5098 if test x
$gas = xyes
5105 extra_headers
=math-68881.h
5107 m68k-apple-aux
*) # Apple Macintosh running A/UX
5108 xm_defines
="USG AUX"
5109 tmake_file
=m68k
/t-aux
5110 install_headers_dir
=install-headers-cpio
5111 extra_headers
=math-68881.h
5112 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5114 if test "$gnu_ld" = yes
5116 tm_file
="${tm_file} m68k/auxgld.h"
5118 tm_file
="${tm_file} m68k/auxld.h"
5120 if test "$gas" = yes
5122 tm_file
="${tm_file} m68k/auxgas.h"
5124 tm_file
="${tm_file} m68k/auxas.h"
5126 tm_file
="${tm_file} m68k/a-ux.h"
5130 tm_file
=m68k
/apollo68.h
5131 xmake_file
=m68k
/x-apollo68
5133 extra_headers
=math-68881.h
5136 m68k-altos-sysv
*) # Altos 3068
5137 if test x
$gas = xyes
5139 tm_file
=m68k
/altos3068.h
5142 echo "The Altos is supported only with the GNU assembler" 1>&2
5145 extra_headers
=math-68881.h
5147 m68k-bull-sysv
*) # Bull DPX/2
5148 if test x
$gas = xyes
5150 if test x
$stabs = xyes
5152 tm_file
=m68k
/dpx2cdbx.h
5154 tm_file
=m68k
/dpx2g.h
5159 xm_file
="xm-alloca.h ${xm_file}"
5161 xmake_file
=m68k
/x-dpx2
5163 extra_headers
=math-68881.h
5165 m68k-atari-sysv4
*) # Atari variant of V.4.
5166 tm_file
=m68k
/atari.h
5167 xm_file
="xm-alloca.h ${xm_file}"
5168 xm_defines
="USG FULL_PROTOTYPES"
5170 extra_parts
="crtbegin.o crtend.o"
5171 extra_headers
=math-68881.h
5174 m68k-motorola-sysv
*)
5175 tm_file
=m68k
/mot3300.h
5176 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5177 if test x
$gas = xyes
5179 xmake_file
=m68k
/x-mot3300-gas
5180 if test x
$gnu_ld = xyes
5182 tmake_file
=m68k
/t-mot3300-gald
5184 tmake_file
=m68k
/t-mot3300-gas
5188 xmake_file
=m68k
/x-mot3300
5189 if test x
$gnu_ld = xyes
5191 tmake_file
=m68k
/t-mot3300-gld
5193 tmake_file
=m68k
/t-mot3300
5197 gdb_needs_out_file_path
=yes
5198 extra_parts
="crt0.o mcrt0.o"
5199 extra_headers
=math-68881.h
5202 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5203 tm_file
=m68k
/tower-as.h
5204 xm_defines
="USG SVR3"
5205 xmake_file
=m68k
/x-tower
5206 extra_parts
="crtbegin.o crtend.o"
5207 extra_headers
=math-68881.h
5210 tm_file
=m68k
/plexus.h
5211 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5214 extra_headers
=math-68881.h
5218 xm_file
="xm-alloca.h ${xm_file}"
5220 extra_headers
=math-68881.h
5223 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5224 xm_defines
="USG unos"
5225 xmake_file
=m68k
/x-crds
5228 extra_headers
=math-68881.h
5230 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5232 xm_file
="xm-alloca.h ${xm_file}"
5233 xm_defines
="USG FULL_PROTOTYPES"
5234 xmake_file
=m68k
/x-amix
5236 extra_parts
="crtbegin.o crtend.o"
5237 extra_headers
=math-68881.h
5241 tm_file
=m68k
/ccur-GAS.h
5242 xmake_file
=m68k
/x-ccur
5243 extra_headers
=math-68881.h
5247 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5248 tm_file
=m68k
/hp3bsd44.h
5249 xmake_file
=m68k
/x-hp3bsd44
5251 extra_headers
=math-68881.h
5254 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5255 tm_file
=m68k
/hp3bsd.h
5257 extra_headers
=math-68881.h
5261 if test x
$with_fp = xno
5263 tm_file
=m68k
/isi-nfp.h
5269 extra_headers
=math-68881.h
5271 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5272 xm_file
="xm-alloca.h ${xm_file}"
5274 if test x
$gas = xyes
5276 xmake_file
=m68k
/x-hp320g
5277 tm_file
=m68k
/hp320g.h
5279 xmake_file
=m68k
/x-hp320
5280 tm_file
=m68k
/hpux7.h
5282 install_headers_dir
=install-headers-cpio
5284 extra_headers
=math-68881.h
5287 m68k-hp-hpux
*) # HP 9000 series 300
5288 xm_file
="xm-alloca.h ${xm_file}"
5290 if test x
$gas = xyes
5292 xmake_file
=m68k
/x-hp320g
5293 tm_file
=m68k
/hp320g.h
5295 xmake_file
=m68k
/x-hp320
5296 tm_file
=m68k
/hp320.h
5298 install_headers_dir
=install-headers-cpio
5300 extra_headers
=math-68881.h
5304 tm_file
=m68k
/sun3mach.h
5306 extra_headers
=math-68881.h
5310 if test x
$gas = xyes
5312 tm_file
=m68k
/news3gas.h
5314 tm_file
=m68k
/news3.h
5317 extra_headers
=math-68881.h
5320 m68k-sony-bsd
* | m68k-sony-newsos
*)
5321 if test x
$gas = xyes
5323 tm_file
=m68k
/newsgas.h
5328 extra_headers
=math-68881.h
5331 m68k-next-nextstep2
*)
5332 tm_file
=m68k
/next21.h
5333 xm_file
="m68k/xm-next.h ${xm_file}"
5334 tmake_file
=m68k
/t-next
5335 xmake_file
=m68k
/x-next
5336 extra_objs
=nextstep.o
5337 extra_headers
=math-68881.h
5341 m68k-next-nextstep
[34]*)
5343 xm_file
="m68k/xm-next.h ${xm_file}"
5344 tmake_file
=m68k
/t-next
5345 xmake_file
=m68k
/x-next
5346 extra_objs
=nextstep.o
5347 extra_parts
="crtbegin.o crtend.o"
5348 extra_headers
=math-68881.h
5350 if test x
$enable_threads = xyes
; then
5355 if test x
$with_fp = xno
5357 tm_file
=m68k
/sun3n3.h
5359 tm_file
=m68k
/sun3o3.h
5363 extra_headers
=math-68881.h
5365 m68k-sun-sunos
*) # For SunOS 4 (the default).
5366 if test x
$with_fp = xno
5368 tm_file
=m68k
/sun3n.h
5374 extra_headers
=math-68881.h
5377 tm_file
=m68k
/vxm68k.h
5378 tmake_file
=m68k
/t-vxworks68
5379 extra_headers
=math-68881.h
5380 thread_file
='vxworks'
5384 tmake_file
=m68k
/t-m68kbare
5385 tm_file
="m68k/m68k-aout.h libgloss.h"
5386 extra_headers
=math-68881.h
5390 tmake_file
=m68k
/t-m68kbare
5391 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5392 extra_headers
=math-68881.h
5395 m68020-
*-elf* | m68k-
*-elf*)
5396 tm_file
="m68k/m68020-elf.h"
5397 xm_file
=m68k
/xm-m68kv.h
5398 tmake_file
=m68k
/t-m68kelf
5399 header_files
=math-68881.h
5402 if test x
$gas = xyes
5406 tm_file
=m68k
/lynx-ng.h
5408 xm_file
=m68k
/xm-lynx.h
5410 tmake_file
=m68k
/t-lynx
5411 extra_headers
=math-68881.h
5415 tm_file
=m68k
/netbsd.h
5422 # we need collect2 until our bug is fixed...
5425 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5426 xm_file
="xm-alloca.h ${xm_file}"
5428 xmake_file
=m68k
/x-m68kv
5429 extra_parts
="crtbegin.o crtend.o"
5430 extra_headers
=math-68881.h
5433 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5434 tm_file
=m68k
/m68kv4.h
5435 xm_file
="xm-alloca.h ${xm_file}"
5438 extra_parts
="crtbegin.o crtend.o"
5439 extra_headers
=math-68881.h
5442 m68k-
*-linux*aout
*) # Motorola m68k's running GNU/Linux
5445 tm_file
=m68k
/linux-aout.h
5446 tmake_file
="t-linux-aout m68k/t-linux-aout"
5447 extra_headers
=math-68881.h
5451 m68k-
*-linux*libc1
) # Motorola m68k's running GNU/Linux
5452 # with ELF format using the
5453 # GNU/Linux C library 5
5455 tm_file
=m68k
/linux.h
5456 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5457 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5458 extra_headers
=math-68881.h
5462 m68k-
*-linux*) # Motorola m68k's running GNU/Linux
5463 # with ELF format using glibc 2
5464 # aka the GNU/Linux C library 6.
5466 tm_file
=m68k
/linux.h
5467 tmake_file
="t-linux m68k/t-linux"
5468 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5469 extra_headers
=math-68881.h
5472 if test x
$enable_threads = xyes
; then
5477 tmake_file
=m68k
/t-m68kbare
5478 tm_file
=m68k
/m68k-psos.h
5479 extra_headers
=math-68881.h
5483 tmake_file
="m68k/t-m68kbare t-rtems"
5484 tm_file
=m68k
/rtems.h
5485 extra_headers
=math-68881.h
5488 m68k-
*-rtemself*|m68k-
*-rtems*)
5489 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5490 tm_file
=m68k
/rtemself.h
5491 extra_headers
=math-68881.h
5497 tm_file
=m88k
/dguxbcs.h
5498 tmake_file
=m88k
/t-dguxbcs
5502 tmake_file
=m88k
/t-dgux
5505 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5506 xmake_file
=m88k
/x-dgux
5507 if test x
$gas = xyes
5509 tmake_file
=m88k
/t-dgux-gas
5512 m88k-dolphin-sysv3
*)
5513 tm_file
=m88k
/dolph.h
5514 extra_parts
="crtbegin.o crtend.o"
5515 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5516 xmake_file
=m88k
/x-dolph
5517 if test x
$gas = xyes
5519 tmake_file
=m88k
/t-m88k-gas
5522 m88k-tektronix-sysv3
)
5523 tm_file
=m88k
/tekXD88.h
5524 extra_parts
="crtbegin.o crtend.o"
5525 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5526 xmake_file
=m88k
/x-tekXD88
5527 if test x
$gas = xyes
5529 tmake_file
=m88k
/t-m88k-gas
5533 tm_file
=m88k
/m88k-aout.h
5536 tm_file
=m88k
/m88k-coff.h
5537 tmake_file
=m88k
/t-bug
5541 extra_parts
="crtbegin.o crtend.o"
5542 if test x
$gas = xyes
5544 tmake_file
=m88k
/t-luna-gas
5546 tmake_file
=m88k
/t-luna
5550 tmake_file
="${tmake_file} m88k/t-luna-gas"
5551 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5552 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5555 tm_file
=m88k
/sysv3.h
5556 extra_parts
="crtbegin.o crtend.o"
5557 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5558 xmake_file
=m88k
/x-sysv3
5559 if test x
$gas = xyes
5561 tmake_file
=m88k
/t-m88k-gas
5565 tm_file
=m88k
/sysv4.h
5566 extra_parts
="crtbegin.o crtend.o"
5567 xmake_file
=m88k
/x-sysv4
5568 tmake_file
=m88k
/t-sysv4
5571 tm_file
=mcore
/mcore-elf.h
5572 tmake_file
=mcore
/t-mcore
5575 tm_file
=mcore
/mcore-pe.h
5576 tmake_file
=mcore
/t-mcore-pe
5578 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5579 if test "x$gnu_ld" = xyes
5581 tm_file
="mips/iris6.h mips/iris6gld.h"
5583 tm_file
=mips
/iris6.h
5585 tmake_file
=mips
/t-iris6
5586 xm_file
=mips
/xm-iris6.h
5587 xmake_file
=mips
/x-iris6
5588 # if test x$enable_threads = xyes; then
5589 # thread_file='irix'
5593 tm_file
="mips/elf.h mips/vxworks.h"
5594 tmake_file
=mips
/t-ecoff
5597 extra_parts
="crtbegin.o crtend.o"
5598 thread_file
='vxworks'
5600 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5601 tm_file
="mips/iris6.h mips/cross64.h"
5603 xm_file
="mips/xm-iris5.h"
5604 xmake_file
=mips
/x-iris
5605 tmake_file
=mips
/t-cross64
5606 # See comment in mips/iris[56].h files.
5608 # if test x$enable_threads = xyes; then
5609 # thread_file='irix'
5613 if test x
$gas = xyes
5615 if test x
$stabs = xyes
5617 tm_file
=mips
/iris5gdb.h
5619 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5622 tm_file
=mips
/sni-svr4.h
5625 xmake_file
=mips
/x-sni-svr4
5626 tmake_file
=mips
/t-mips-gas
5627 if test x
$gnu_ld != xyes
5632 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5633 if test x
$gas = xyes
5635 tm_file
="mips/iris5.h mips/iris5gas.h"
5636 if test x
$stabs = xyes
5638 tm_file
="${tm_file} dbx.h"
5641 tm_file
=mips
/iris5.h
5644 xm_file
="mips/xm-iris5.h"
5645 xmake_file
=mips
/x-iris
5646 # mips-tfile doesn't work yet
5647 tmake_file
=mips
/t-mips-gas
5648 # See comment in mips/iris5.h file.
5650 # if test x$enable_threads = xyes; then
5651 # thread_file='irix'
5654 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5655 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5656 if test x
$stabs = xyes
; then
5657 tm_file
="${tm_file} dbx.h"
5660 xmake_file
=mips
/x-iris
5661 if test x
$gas = xyes
5663 tmake_file
=mips
/t-mips-gas
5665 extra_passes
="mips-tfile mips-tdump"
5667 if test x
$gnu_ld != xyes
5671 # if test x$enable_threads = xyes; then
5672 # thread_file='irix'
5675 mips-sgi-irix4
*) # Mostly like a MIPS.
5676 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5677 if test x
$stabs = xyes
; then
5678 tm_file
="${tm_file} dbx.h"
5681 xmake_file
=mips
/x-iris
5682 if test x
$gas = xyes
5684 tmake_file
=mips
/t-mips-gas
5686 extra_passes
="mips-tfile mips-tdump"
5688 if test x
$gnu_ld != xyes
5692 # if test x$enable_threads = xyes; then
5693 # thread_file='irix'
5696 mips-sgi-
*) # Mostly like a MIPS.
5697 tm_file
="mips/iris3.h ${tm_file}"
5698 if test x
$stabs = xyes
; then
5699 tm_file
="${tm_file} dbx.h"
5702 xmake_file
=mips
/x-iris3
5703 if test x
$gas = xyes
5705 tmake_file
=mips
/t-mips-gas
5707 extra_passes
="mips-tfile mips-tdump"
5709 if test x
$gnu_ld != xyes
5714 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5715 tm_file
="mips/osfrose.h ${tm_file}"
5716 xmake_file
=mips
/x-osfrose
5717 tmake_file
=mips
/t-osfrose
5718 extra_objs
=halfpic.o
5721 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5722 tm_file
=mips
/dec-osf1.h
5723 if test x
$stabs = xyes
; then
5724 tm_file
="${tm_file} dbx.h"
5726 xmake_file
=mips
/x-dec-osf1
5727 if test x
$gas = xyes
5729 tmake_file
=mips
/t-mips-gas
5731 tmake_file
=mips
/t-ultrix
5732 extra_passes
="mips-tfile mips-tdump"
5734 if test x
$gnu_ld != xyes
5739 mips-dec-bsd
*) # Decstation running 4.4 BSD
5740 tm_file
=mips
/dec-bsd.h
5741 if test x
$gas = xyes
5743 tmake_file
=mips
/t-mips-gas
5745 tmake_file
=mips
/t-ultrix
5746 extra_passes
="mips-tfile mips-tdump"
5748 if test x
$gnu_ld != xyes
5753 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5754 tm_file
=mips
/netbsd.h
5755 # On NetBSD, the headers are already okay, except for math.h.
5758 mips
*-*-linux*) # Linux MIPS, either endian.
5761 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5762 *) tm_file
="mips/elf.h mips/linux.h" ;;
5765 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5768 if test x
$enable_threads = xyes
; then
5772 mips
*el-
*-openbsd*) # mips little endian
5773 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5775 mips
*-*-openbsd*) # mips big endian
5776 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5777 tm_file
="mips/openbsd-be.h ${tm_file}"
5779 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5780 tm_file
="mips/news4.h ${tm_file}"
5781 if test x
$stabs = xyes
; then
5782 tm_file
="${tm_file} dbx.h"
5784 if test x
$gas = xyes
5786 tmake_file
=mips
/t-mips-gas
5788 extra_passes
="mips-tfile mips-tdump"
5790 if test x
$gnu_ld != xyes
5794 xmake_file
=mips
/x-sony
5796 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5797 # That is based on svr4.
5798 # t-svr4 is not right because this system doesn't use ELF.
5799 tm_file
="mips/news5.h ${tm_file}"
5800 if test x
$stabs = xyes
; then
5801 tm_file
="${tm_file} dbx.h"
5804 if test x
$gas = xyes
5806 tmake_file
=mips
/t-mips-gas
5808 extra_passes
="mips-tfile mips-tdump"
5810 if test x
$gnu_ld != xyes
5815 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5816 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5817 if test x
$stabs = xyes
; then
5818 tm_file
="${tm_file} dbx.h"
5821 xmake_file
=mips
/x-sysv
5822 if test x
$gas = xyes
5824 tmake_file
=mips
/t-mips-gas
5825 extra_parts
="crtbegin.o crtend.o"
5827 tmake_file
=mips
/t-mips
5828 extra_passes
="mips-tfile mips-tdump"
5830 if test x
$gnu_ld != xyes
5835 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5836 tm_file
="mips/ultrix.h ${tm_file}"
5837 if test x
$stabs = xyes
; then
5838 tm_file
="${tm_file} dbx.h"
5840 xmake_file
=mips
/x-ultrix
5841 if test x
$gas = xyes
5843 tmake_file
=mips
/t-mips-gas
5845 tmake_file
=mips
/t-ultrix
5846 extra_passes
="mips-tfile mips-tdump"
5848 if test x
$gnu_ld != xyes
5853 mips-
*-riscos[56789]bsd
*)
5854 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5855 if test x
$stabs = xyes
; then
5856 tm_file
="${tm_file} dbx.h"
5858 if test x
$gas = xyes
5860 tmake_file
=mips
/t-bsd-gas
5862 tmake_file
=mips
/t-bsd
5863 extra_passes
="mips-tfile mips-tdump"
5865 if test x
$gnu_ld != xyes
5870 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5871 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5872 if test x
$stabs = xyes
; then
5873 tm_file
="${tm_file} dbx.h"
5875 if test x
$gas = xyes
5877 tmake_file
=mips
/t-bsd-gas
5879 tmake_file
=mips
/t-bsd
5880 extra_passes
="mips-tfile mips-tdump"
5882 if test x
$gnu_ld != xyes
5887 mips-
*-riscos[56789]sysv4
*)
5888 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5889 if test x
$stabs = xyes
; then
5890 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-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5906 tm_file
="mips/svr4-4.h ${tm_file}"
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-svr4-gas
5916 tmake_file
=mips
/t-svr4
5917 extra_passes
="mips-tfile mips-tdump"
5919 if test x
$gnu_ld != xyes
5924 mips-
*-riscos[56789]sysv
*)
5925 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
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-
*-sysv* | mips-
*-riscos*sysv
*)
5944 tm_file
="mips/svr3-4.h ${tm_file}"
5945 if test x
$stabs = xyes
; then
5946 tm_file
="${tm_file} dbx.h"
5949 xmake_file
=mips
/x-sysv
5950 if test x
$gas = xyes
5952 tmake_file
=mips
/t-svr3-gas
5954 tmake_file
=mips
/t-svr3
5955 extra_passes
="mips-tfile mips-tdump"
5957 if test x
$gnu_ld != xyes
5962 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5963 tm_file
=mips
/mips-5.h
5964 if test x
$stabs = xyes
; then
5965 tm_file
="${tm_file} dbx.h"
5967 if test x
$gas = xyes
5969 tmake_file
=mips
/t-mips-gas
5971 extra_passes
="mips-tfile mips-tdump"
5973 if test x
$gnu_ld != xyes
5981 tm_file
=mips
/ecoffl.h
5982 if test x
$stabs = xyes
; then
5983 tm_file
="${tm_file} dbx.h"
5985 tmake_file
=mips
/t-ecoff
5988 tm_file
="gofast.h mips/ecoff.h"
5989 if test x
$stabs = xyes
; then
5990 tm_file
="${tm_file} dbx.h"
5992 tmake_file
=mips
/t-ecoff
5995 tm_file
="mips/elfl.h"
5996 tmake_file
=mips
/t-elf
5999 tm_file
="mips/elf.h"
6000 tmake_file
=mips
/t-elf
6003 tm_file
="mips/elfl64.h"
6004 tmake_file
=mips
/t-elf
6006 mips64orionel-
*-elf*)
6007 tm_file
="mips/elforion.h mips/elfl64.h"
6008 tmake_file
=mips
/t-elf
6011 tm_file
="mips/elf64.h"
6012 tmake_file
=mips
/t-elf
6015 tm_file
="mips/elforion.h mips/elf64.h"
6016 tmake_file
=mips
/t-elf
6018 mips64orion-
*-rtems*)
6019 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
6020 tmake_file
="mips/t-elf t-rtems"
6023 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
6024 tmake_file
=mips
/t-r3900
6027 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
6028 tmake_file
=mips
/t-r3900
6030 mips-
*-*) # Default MIPS RISC-OS 4.0.
6031 if test x
$stabs = xyes
; then
6032 tm_file
="${tm_file} dbx.h"
6034 if test x
$gas = xyes
6036 tmake_file
=mips
/t-mips-gas
6038 extra_passes
="mips-tfile mips-tdump"
6040 if test x
$gnu_ld != xyes
6048 tm_file
="mn10200/mn10200.h"
6049 if test x
$stabs = xyes
6051 tm_file
="${tm_file} dbx.h"
6057 tm_file
="mn10300/mn10300.h"
6058 if test x
$stabs = xyes
6060 tm_file
="${tm_file} dbx.h"
6065 tm_file
=ns32k
/encore.h
6069 tm_file
=ns32k
/sequent.h
6073 tm_file
=ns32k
/tek6100.h
6077 tm_file
=ns32k
/tek6200.h
6080 # This has not been updated to GCC 2.
6083 # xmake_file=ns32k/x-genix
6084 # tm_file=ns32k/genix.h
6088 tm_file
=ns32k
/merlin.h
6092 tm_file
=ns32k
/pc532-mach.h
6096 tm_file
=ns32k
/pc532-min.h
6097 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6102 tm_file
=ns32k
/netbsd.h
6103 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6104 # On NetBSD, the headers are already okay, except for math.h.
6109 tm_file
="${tm_file} pdp11/2bsd.h"
6118 # This has not been updated to GCC 2.
6121 # xmake_file=pyr/x-pyr
6126 tm_file
="svr4.h pj/linux.h ${tm_file}"
6131 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6138 xmake_file
=romp
/x-mach
6145 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6149 tm_file
=rs6000
/beos.h
6150 xm_file
=rs6000
/xm-beos.h
6151 tmake_file
=rs6000
/t-beos
6152 xmake_file
=rs6000
/x-beos
6155 tm_file
=rs6000
/sysv4.h
6156 xm_file
="rs6000/xm-sysv4.h"
6157 xm_defines
="USG POSIX"
6158 extra_headers
=ppc-asm.h
6159 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6160 xmake_file
=rs6000
/x-sysv4
6163 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6164 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6165 extra_headers
=ppc-asm.h
6168 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6169 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6170 extra_headers
=ppc-asm.h
6173 tm_file
="rs6000/sysv4.h"
6174 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6175 extra_headers
=ppc-asm.h
6178 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6179 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6180 extra_headers
=ppc-asm.h
6183 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6184 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6185 extra_headers
=ppc-asm.h
6187 powerpc-
*-linux*libc1
)
6188 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6189 xm_file
=rs6000
/xm-sysv4.h
6190 out_file
=rs6000
/rs6000.c
6191 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6193 extra_headers
=ppc-asm.h
6194 if test x
$enable_threads = xyes
; then
6199 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6200 xm_file
="rs6000/xm-sysv4.h"
6201 xm_defines
="USG ${xm_defines}"
6202 out_file
=rs6000
/rs6000.c
6203 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6205 extra_headers
=ppc-asm.h
6206 if test x
$enable_threads = xyes
; then
6210 powerpc-wrs-vxworks
*)
6212 xm_file
="rs6000/xm-sysv4.h"
6213 xm_defines
="USG POSIX"
6214 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6215 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6216 extra_headers
=ppc-asm.h
6217 thread_file
='vxworks'
6219 powerpcle-wrs-vxworks
*)
6221 xm_file
="rs6000/xm-sysv4.h"
6222 xm_defines
="USG POSIX"
6223 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6224 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6225 extra_headers
=ppc-asm.h
6226 thread_file
='vxworks'
6229 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6230 xm_file
="rs6000/xm-sysv4.h"
6231 xm_defines
="USG POSIX"
6232 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6233 xmake_file
=rs6000
/x-sysv4
6234 extra_headers
=ppc-asm.h
6237 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6238 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6239 extra_headers
=ppc-asm.h
6241 powerpcle-
*-eabisim*)
6242 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6243 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6244 extra_headers
=ppc-asm.h
6247 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6248 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6249 extra_headers
=ppc-asm.h
6251 powerpcle-
*-solaris2*)
6252 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6253 xm_file
="rs6000/xm-sysv4.h"
6254 xm_defines
="USG POSIX"
6255 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6256 xmake_file
=rs6000
/x-sysv4
6257 extra_headers
=ppc-asm.h
6259 rs6000-ibm-aix3.
[01]*)
6260 tm_file
=rs6000
/aix31.h
6261 xmake_file
=rs6000
/x-aix31
6265 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6266 tm_file
=rs6000
/aix3newas.h
6267 if test x
$host != x
$target
6269 tmake_file
=rs6000
/t-xnewas
6271 tmake_file
=rs6000
/t-newas
6276 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6277 tm_file
=rs6000
/aix41.h
6278 if test x
$host != x
$target
6280 tmake_file
=rs6000
/t-xnewas
6282 tmake_file
=rs6000
/t-newas
6284 if test "$gnu_ld" = yes
6286 xmake_file
=rs6000
/x-aix41-gld
6288 tmake_file
='rs6000/t-newas rs6000/t-aix41'
6290 xmake_file
=rs6000
/x-aix41
6294 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6295 tm_file
=rs6000
/aix43.h
6296 tmake_file
=rs6000
/t-aix43
6297 xmake_file
=rs6000
/x-aix41
6301 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6302 tm_file
=rs6000
/aix43.h
6303 tmake_file
=rs6000
/t-aix43
6304 xmake_file
=rs6000
/x-aix41
6317 tm_file
=rs6000
/mach.h
6318 xm_file
="${xm_file} rs6000/xm-mach.h"
6319 xmake_file
=rs6000
/x-mach
6323 tm_file
=rs6000
/lynx.h
6324 xm_file
=rs6000
/xm-lynx.h
6325 tmake_file
=rs6000
/t-rs6000
6326 xmake_file
=rs6000
/x-lynx
6330 tmake_file
="sh/t-sh sh/t-elf"
6331 tm_file
="sh/sh.h sh/elf.h"
6335 tmake_file
="sh/t-sh sh/t-elf t-rtems"
6336 tm_file
="sh/sh.h sh/elf.h sh/rtemself.h"
6340 tmake_file
="sh/t-sh t-rtems"
6341 tm_file
="sh/sh.h sh/rtems.h"
6345 tm_file
="sh/sh.h sh/elf.h sh/linux.h"
6346 tmake_file
="sh/t-sh sh/t-elf sh/t-linux"
6349 if test x
$enable_threads = xyes
; then
6359 xm_file
="xm-alloca.h ${xm_file}"
6362 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6363 tm_file
=sparc
/vxsparc.h
6364 tmake_file
=sparc
/t-vxsparc
6366 thread_file
='vxworks'
6369 tmake_file
=sparc
/t-sparcbare
6370 tm_file
="sparc/aout.h libgloss.h"
6373 tm_file
=sparc
/netbsd.h
6378 # we need collect2 until our bug is fixed...
6386 tmake_file
=sparc
/t-elf
6387 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6391 sparc-
*-linux*aout
*) # Sparc's running GNU/Linux, a.out
6392 xm_file
="${xm_file} sparc/xm-linux.h"
6393 tm_file
=sparc
/linux-aout.h
6397 sparc-
*-linux*libc1
*) # Sparc's running GNU/Linux, libc5
6398 xm_file
="${xm_file} sparc/xm-linux.h"
6400 tm_file
=sparc
/linux.h
6401 tmake_file
="t-linux t-linux-gnulibc1"
6402 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6406 sparc-
*-linux*) # Sparc's running GNU/Linux, libc6
6407 xm_file
="${xm_file} sparc/xm-linux.h"
6409 tm_file
=sparc
/linux.h
6410 tmake_file
="t-linux"
6411 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6413 if test x
$enable_threads = xyes
; then
6419 if test x
$gas = xyes
6421 tm_file
=sparc
/lynx.h
6423 tm_file
=sparc
/lynx-ng.h
6425 xm_file
=sparc
/xm-lynx.h
6426 tmake_file
=sparc
/t-sunos41
6430 tmake_file
="sparc/t-sparcbare t-rtems"
6431 tm_file
=sparc
/rtems.h
6433 sparc-
*-rtems*|sparc-
*-rtemself*)
6434 tm_file
="sparc/rtemself.h"
6435 tmake_file
="sparc/t-elf t-rtems"
6436 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6440 sparcv9-
*-solaris2*)
6441 if test x
$gnu_ld = xyes
6443 tm_file
=sparc
/sol2-64.h
6445 tm_file
=sparc
/sol2-sld-64.h
6447 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6448 xm_defines
="USG POSIX"
6449 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6450 xmake_file
=sparc
/x-sysv4
6451 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6453 if test x
${enable_threads} = x
; then
6454 enable_threads
=$have_pthread_h
6455 if test x
${enable_threads} = x
; then
6456 enable_threads
=$have_thread_h
6459 if test x
${enable_threads} = xyes
; then
6460 if test x
${have_pthread_h} = xyes
; then
6463 thread_file
='solaris'
6467 sparc-hal-solaris2
*)
6468 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6469 xm_defines
="USG POSIX"
6470 tm_file
="sparc/sol2.h sparc/hal.h"
6471 tmake_file
="sparc/t-halos sparc/t-sol2"
6472 xmake_file
=sparc
/x-sysv4
6473 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6482 thread_file
='solaris'
6485 if test x
$gnu_ld = xyes
6487 tm_file
=sparc
/sol2.h
6489 tm_file
=sparc
/sol2-sld.h
6491 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6492 xm_defines
="USG POSIX"
6493 tmake_file
=sparc
/t-sol2
6494 xmake_file
=sparc
/x-sysv4
6495 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6497 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6499 if test x
$gnu_ld = xyes
6501 tm_file
=sparc
/sol2-64.h
6503 tm_file
=sparc
/sol2-sld-64.h
6505 tmake_file
="$tmake_file sparc/t-sol2-64"
6516 if test x
${enable_threads} = x
; then
6517 enable_threads
=$have_pthread_h
6518 if test x
${enable_threads} = x
; then
6519 enable_threads
=$have_thread_h
6522 if test x
${enable_threads} = xyes
; then
6523 if test x
${have_pthread_h} = xyes
; then
6526 thread_file
='solaris'
6531 tm_file
=sparc
/sunos4.h
6532 tmake_file
=sparc
/t-sunos40
6536 tm_file
=sparc
/sunos4.h
6537 tmake_file
=sparc
/t-sunos41
6539 if test x
$gas = xyes
; then
6540 tm_file
="${tm_file} sparc/sun4gas.h"
6544 tm_file
=sparc
/sun4o3.h
6548 tm_file
=sparc
/sysv4.h
6549 xm_file
="sparc/xm-sysv4.h"
6550 xm_defines
="USG POSIX"
6552 xmake_file
=sparc
/x-sysv4
6553 extra_parts
="crtbegin.o crtend.o"
6556 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6557 xm_defines
="USG POSIX"
6558 tm_file
=sparc
/vxsim.h
6559 tmake_file
=sparc
/t-vxsparc
6560 xmake_file
=sparc
/x-sysv4
6563 tm_file
="sparc/splet.h libgloss.h"
6564 tmake_file
=sparc
/t-splet
6567 tm_file
="sparc/litecoff.h libgloss.h"
6568 tmake_file
=sparc
/t-sparclite
6571 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6572 tmake_file
=sparc
/t-sparclite
6575 tm_file
="sparc/liteelf.h"
6576 tmake_file
=sparc
/t-sparclite
6577 extra_parts
="crtbegin.o crtend.o"
6580 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6581 tmake_file
=sparc
/t-sp86x
6584 tm_file
="sparc/sp86x-elf.h"
6585 tmake_file
=sparc
/t-sp86x
6586 extra_parts
="crtbegin.o crtend.o"
6589 tmake_file
=sparc
/t-sp64
6590 tm_file
=sparc
/sp64-aout.h
6593 tmake_file
=sparc
/t-sp64
6594 tm_file
=sparc
/sp64-elf.h
6595 extra_parts
="crtbegin.o crtend.o"
6597 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6598 tmake_file
="t-linux sparc/t-linux64"
6599 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6600 tm_file
=sparc
/linux64.h
6602 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6604 if test x
$enable_threads = xyes
; then
6609 # This hasn't been upgraded to GCC 2.
6610 # tahoe-harris-*) # Harris tahoe, using COFF.
6611 # tm_file=tahoe/harris.h
6613 # tahoe-*-bsd*) # tahoe running BSD
6617 { echo "configure: error:
6618 *** The Thumb targets have been depreciated. The equivalent
6619 *** ARM based toolchain can now generated Thumb instructions
6620 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6622 # This hasn't been upgraded to GCC 2.
6629 tm_file
="v850/rtems.h"
6630 xm_file
="v850/xm-v850.h"
6631 tmake_file
="v850/t-v850 t-rtems"
6632 if test x
$stabs = xyes
6634 tm_file
="${tm_file} dbx.h"
6639 target_cpu_default
="TARGET_CPU_generic"
6641 tm_file
="v850/v850.h"
6642 xm_file
="v850/xm-v850.h"
6643 tmake_file
=v850
/t-v850
6644 if test x
$stabs = xyes
6646 tm_file
="${tm_file} dbx.h"
6650 vax-
*-bsd*) # vaxen running BSD
6654 vax-
*-sysv*) # vaxen running system V
6655 tm_file
="${tm_file} vax/vaxv.h"
6660 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6666 tmake_file
="${tmake_file} vax/t-openbsd"
6667 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6668 xm_file
="xm-openbsd.h vax/xm-vax.h"
6672 vax-
*-ultrix*) # vaxen running ultrix
6673 tm_file
="${tm_file} vax/ultrix.h"
6676 vax-
*-vms*) # vaxen running VMS
6677 xm_file
=vax
/xm-vms.h
6681 vax-
*-*) # vax default entry
6685 xm_file
="${xm_file} xm-svr3"
6689 echo "Configuration $machine not supported" 1>&2
6696 ;; # Existing GNU/Linux systems do not use the GNU setup.
6698 # On the GNU system, the setup is just about the same on
6699 # each different CPU. The specific machines that GNU
6700 # supports are matched above and just set $cpu_type.
6701 xm_file
="xm-gnu.h ${xm_file}"
6702 tm_file
=${cpu_type}/gnu.h
6703 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6704 # GNU always uses ELF.
6706 # GNU tools are the only tools.
6709 xmake_file
=x-linux
# These details are the same as Linux.
6710 tmake_file
=t-gnu
# These are not.
6713 xmake_try_sysv
=x-sysv
6714 install_headers_dir
=install-headers-cpio
6717 install_headers_dir
=install-headers-cpio
6721 # Distinguish i[34567]86
6722 # Also, do not run mips-tfile on MIPS if using gas.
6723 # Process --with-cpu= for PowerPC/rs6000
6724 target_cpu_default2
=
6727 target_cpu_default2
=1
6730 case $target_alias in
6732 target_cpu_default2
=4
6735 target_cpu_default2
=2
6739 i686-
*-* | i786-
*-*)
6740 target_cpu_default2
=3
6745 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6748 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6751 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6754 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6757 target_cpu_default2
="MASK_CPU_EV5"
6761 if test x
$gas = xyes
6763 if test "$target_cpu_default2" = ""
6765 target_cpu_default2
="MASK_GAS"
6767 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6772 case "x$with_cpu" in
6775 target_cpu_default2
="TARGET_CPU_generic"
6778 # Distinguish cores, and major variants
6779 # arm7m doesn't exist, but D & I don't affect code
6780 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6781 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6782 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6783 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6784 target_cpu_default2
="TARGET_CPU_$with_cpu"
6788 echo "--with-cpu must be passed a value" 1>&2
6793 if test x
$pass2done = xyes
6795 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6802 mips
*-*-ecoff* | mips
*-*-elf*)
6803 if test x
$gas = xyes
6805 if test x
$gnu_ld = xyes
6807 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6809 target_cpu_default2
="MASK_GAS"
6814 if test x
$gas = xyes
6816 target_cpu_default2
="MASK_GAS"
6819 powerpc
*-*-* | rs6000-
*-*)
6820 case "x$with_cpu" in
6824 xcommon | xpower | xpower2 | xpowerpc | xrios \
6825 | xrios1 | xrios2 | xrsc | xrsc1 \
6826 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6827 | xec603e | x740 | x750 | x401 \
6828 | x403 | x505 | x801 | x821 | x823 | x860
)
6829 target_cpu_default2
="\"$with_cpu\""
6833 echo "--with-cpu must be passed a value" 1>&2
6838 if test x
$pass2done = xyes
6840 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6847 case ".$with_cpu" in
6849 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6851 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6852 target_cpu_default2
="TARGET_CPU_$with_cpu"
6855 if test x
$pass2done = xyes
6857 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6865 if test "$target_cpu_default2" != ""
6867 if test "$target_cpu_default" != ""
6869 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6871 target_cpu_default
=$target_cpu_default2
6875 # No need for collect2 if we have the GNU linker.
6876 # Actually, there is now; GNU ld doesn't handle the EH info or
6877 # collecting for shared libraries.
6884 # Save data on machine being used to compile GCC in build_xm_file.
6885 # Save data on host machine in vars host_xm_file and host_xmake_file.
6886 if test x
$pass1done = x
6888 if test x
"$xm_file" = x
6889 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6890 else build_xm_file
=$xm_file
6892 build_xm_defines
=$xm_defines
6893 build_install_headers_dir
=$install_headers_dir
6894 build_exeext
=$exeext
6897 if test x
$pass2done = x
6899 if test x
"$xm_file" = x
6900 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6901 else host_xm_file
=$xm_file
6903 host_xm_defines
=$xm_defines
6904 if test x
"$xmake_file" = x
6905 then xmake_file
=$cpu_type/x-
$cpu_type
6907 host_xmake_file
="$xmake_file"
6908 host_truncate_target
=$truncate_target
6909 host_extra_gcc_objs
=$extra_gcc_objs
6910 host_extra_objs
=$extra_host_objs
6917 extra_objs
="${host_extra_objs} ${extra_objs}"
6919 # Default the target-machine variables that were not explicitly set.
6920 if test x
"$tm_file" = x
6921 then tm_file
=$cpu_type/$cpu_type.h
; fi
6923 if test x
$extra_headers = x
6924 then extra_headers
=; fi
6926 if test x
"$xm_file" = x
6927 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6929 if test x
$md_file = x
6930 then md_file
=$cpu_type/$cpu_type.md
; fi
6932 if test x
$out_file = x
6933 then out_file
=$cpu_type/$cpu_type.c
; fi
6935 if test x
"$tmake_file" = x
6936 then tmake_file
=$cpu_type/t-
$cpu_type
6939 if test x
"$dwarf2" = xyes
6940 then tm_file
="$tm_file tm-dwarf2.h"
6943 if test x
$float_format = x
6944 then float_format
=i64
6947 if test $float_format = none
6948 then float_h_file
=Makefile.
in
6949 else float_h_file
=float-
$float_format.h
6952 # Handle cpp installation.
6953 if test x
$enable_cpp != xno
6955 tmake_file
="$tmake_file t-install-cpp"
6958 # Say what files are being used for the output code and MD file.
6959 echo "Using \`$srcdir/config/$out_file' to output insns."
6960 echo "Using \`$srcdir/config/$md_file' as machine description file."
6963 for f
in $tm_file; do
6966 if test $count = ax
; then
6967 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6969 echo "Using the following target machine macro files:"
6970 for f
in $tm_file; do
6971 echo " $srcdir/config/$f"
6976 for f
in $host_xm_file; do
6979 if test $count = ax
; then
6980 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6982 echo "Using the following host machine macro files:"
6983 for f
in $host_xm_file; do
6984 echo " $srcdir/config/$f"
6988 if test "$host_xm_file" != "$build_xm_file"; then
6990 for f
in $build_xm_file; do
6993 if test $count = ax
; then
6994 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6996 echo "Using the following build machine macro files:"
6997 for f
in $build_xm_file; do
6998 echo " $srcdir/config/$f"
7003 if test x
$thread_file = x
; then
7004 if test x
$target_thread_file != x
; then
7005 thread_file
=$target_thread_file
7007 thread_file
='single'
7011 # Set up the header files.
7012 # $links is the list of header files to create.
7013 # $vars is the list of shell variables with file names to include.
7014 # auto-host.h is the file containing items generated by autoconf and is
7015 # the first file included by config.h.
7017 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
7019 # If host=build, it is correct to have hconfig include auto-host.h
7020 # as well. If host!=build, we are in error and need to do more
7021 # work to find out the build config parameters.
7022 if test x
$host = x
$build
7024 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
7026 # We create a subdir, then run autoconf in the subdir.
7027 # To prevent recursion we set host and build for the new
7028 # invocation of configure to the build for this invocation
7035 /*) realsrcdir
=${srcdir};;
7036 *) realsrcdir
=..
/${srcdir};;
7038 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
7039 --target=$target --host=$build --build=$build
7041 # We just finished tests for the build machine, so rename
7042 # the file auto-build.h in the gcc directory.
7043 mv auto-host.h ..
/auto-build.h
7046 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7049 xm_file
="gansidecl.h ${xm_file}"
7050 tm_file
="gansidecl.h ${tm_file}"
7052 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7053 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
7054 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7057 if test -f config.status
; then mv -f config.status config.bak
; fi
7060 while test -n "$vars"
7062 set $vars; var
=$1; shift; vars
=$
*
7063 set $links; link
=$1; shift; links
=$
*
7064 set $defines; define
=$1; shift; defines
=$
*
7067 # Make sure the file is created, even if it is empty.
7070 # Define TARGET_CPU_DEFAULT if the system wants one.
7071 # This substitutes for lots of *.h files.
7072 if test "$target_cpu_default" != "" -a $link = tm.h
7074 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7077 for file in `eval echo '$'$var`; do
7079 auto-host.h | auto-build.h
)
7082 echo '#ifdef IN_GCC' >>$link
7085 echo "#include \"$file\"" >>$link
7087 auto-host.h | auto-build.h
)
7090 echo '#endif' >>$link
7095 for def
in `eval echo '$'$define`; do
7096 echo "#ifndef $def" >>$link
7097 echo "#define $def" >>$link
7098 echo "#endif" >>$link
7102 # Truncate the target if necessary
7103 if test x
$host_truncate_target != x
; then
7104 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7107 # Get the version trigger filename from the toplevel
7108 if test "${with_gcc_version_trigger+set}" = set; then
7109 gcc_version_trigger
=$with_gcc_version_trigger
7111 gcc_version_trigger
=${srcdir}/version.c
7113 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7115 # Internationalization
7117 VERSION
="$gcc_version"
7118 cat >> confdefs.h
<<EOF
7119 #define PACKAGE "$PACKAGE"
7122 cat >> confdefs.h
<<EOF
7123 #define VERSION "$VERSION"
7131 # Enable NLS support by default
7132 # Check whether --enable-nls or --disable-nls was given.
7133 if test "${enable_nls+set}" = set; then
7134 enableval
="$enable_nls"
7141 # if cross compiling, disable NLS support.
7142 # It's not worth the trouble, at least for now.
7144 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7145 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7150 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7151 echo "configure:7152: checking for strerror in -lcposix" >&5
7152 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 ac_save_LIBS
="$LIBS"
7157 LIBS
="-lcposix $LIBS"
7158 cat > conftest.
$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7170 if { (eval echo configure
:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7172 eval "ac_cv_lib_$ac_lib_var=yes"
7174 echo "configure: failed program was:" >&5
7175 cat conftest.
$ac_ext >&5
7177 eval "ac_cv_lib_$ac_lib_var=no"
7180 LIBS
="$ac_save_LIBS"
7183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 LIBS
="$LIBS -lcposix"
7187 echo "$ac_t""no" 1>&6
7192 echo $ac_n "checking for working const""... $ac_c" 1>&6
7193 echo "configure:7194: checking for working const" >&5
7194 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7197 cat > conftest.
$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7203 /* Ultrix mips cc rejects this. */
7204 typedef int charset[2]; const charset x;
7205 /* SunOS 4.1.1 cc rejects this. */
7206 char const *const *ccp;
7208 /* NEC SVR4.0.2 mips cc rejects this. */
7209 struct point {int x, y;};
7210 static struct point const zero = {0,0};
7211 /* AIX XL C 1.02.0.0 rejects this.
7212 It does not let you subtract one const X* pointer from another in an arm
7213 of an if-expression whose if-part is not a constant expression */
7214 const char *g = "string";
7215 ccp = &g + (g ? g-g : 0);
7216 /* HPUX 7.0 cc rejects these. */
7219 ccp = (char const *const *) p;
7220 { /* SCO 3.2v4 cc rejects this. */
7222 char const *s = 0 ? (char *) 0 : (char const *) 0;
7226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7228 const int *foo = &x[0];
7231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7232 typedef const int *iptr;
7236 { /* AIX XL C 1.02.0.0 rejects this saying
7237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7238 struct s { int j; const int *ap[3]; };
7239 struct s *b; b->j = 5;
7241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7247 if { (eval echo configure
:7248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7251 echo "configure: failed program was:" >&5
7252 cat conftest.
$ac_ext >&5
7259 echo "$ac_t""$ac_cv_c_const" 1>&6
7260 if test $ac_cv_c_const = no
; then
7261 cat >> confdefs.h
<<\EOF
7267 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7268 echo "configure:7269: checking for off_t" >&5
7269 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7272 cat > conftest.
$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 #include <sys/types.h>
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7284 ac_cv_type_off_t
=yes
7292 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7293 if test $ac_cv_type_off_t = no
; then
7294 cat >> confdefs.h
<<\EOF
7300 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7301 echo "configure:7302: checking for size_t" >&5
7302 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7303 echo $ac_n "(cached) $ac_c" 1>&6
7305 cat > conftest.
$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 #include <sys/types.h>
7314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7315 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7317 ac_cv_type_size_t
=yes
7320 ac_cv_type_size_t
=no
7325 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7326 if test $ac_cv_type_size_t = no
; then
7327 cat >> confdefs.h
<<\EOF
7328 #define size_t unsigned
7333 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7334 # for constant arguments. Useless!
7335 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7336 echo "configure:7337: checking for working alloca.h" >&5
7337 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7340 cat > conftest.
$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7345 char *p = alloca(2 * sizeof(int));
7348 if { (eval echo configure
:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7350 ac_cv_header_alloca_h
=yes
7352 echo "configure: failed program was:" >&5
7353 cat conftest.
$ac_ext >&5
7355 ac_cv_header_alloca_h
=no
7360 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7361 if test $ac_cv_header_alloca_h = yes; then
7362 cat >> confdefs.h
<<\EOF
7363 #define HAVE_ALLOCA_H 1
7368 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7369 echo "configure:7370: checking for alloca" >&5
7370 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7371 echo $ac_n "(cached) $ac_c" 1>&6
7373 cat > conftest.
$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7378 # define alloca __builtin_alloca
7381 # include <malloc.h>
7382 # define alloca _alloca
7385 # include <alloca.h>
7390 # ifndef alloca /* predefined by HP cc +Olibcalls */
7399 char *p = (char *) alloca(1);
7402 if { (eval echo configure
:7403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7404 ac_cv_func_alloca_works
=yes
7406 echo "configure: failed program was:" >&5
7407 cat conftest.
$ac_ext >&5
7409 ac_cv_func_alloca_works
=no
7414 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7415 if test $ac_cv_func_alloca_works = yes; then
7416 cat >> confdefs.h
<<\EOF
7417 #define HAVE_ALLOCA 1
7422 if test $ac_cv_func_alloca_works = no
; then
7423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7424 # that cause trouble. Some versions do not even contain alloca or
7425 # contain a buggy version. If you still want to use their alloca,
7426 # use ar to extract alloca.o from them instead of compiling alloca.c.
7427 ALLOCA
=alloca.
${ac_objext}
7428 cat >> confdefs.h
<<\EOF
7433 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7434 echo "configure:7435: checking whether alloca needs Cray hooks" >&5
7435 if eval "test \"`echo '$''{'ac_cv_os_cray'+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 #if defined(CRAY) && ! defined(CRAY2)
7448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449 egrep "webecray" >/dev
/null
2>&1; then
7460 echo "$ac_t""$ac_cv_os_cray" 1>&6
7461 if test $ac_cv_os_cray = yes; then
7462 for ac_func
in _getb67 GETB67 getb67
; do
7463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7464 echo "configure:7465: checking for $ac_func" >&5
7465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7468 cat > conftest.
$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* System header to define __stub macros and hopefully few prototypes,
7472 which can conflict with char $ac_func(); below. */
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 /* We use char because int might match the return type of a gcc2
7476 builtin and then its argument prototype would still apply. */
7481 /* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7492 if { (eval echo configure
:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7494 eval "ac_cv_func_$ac_func=yes"
7496 echo "configure: failed program was:" >&5
7497 cat conftest.
$ac_ext >&5
7499 eval "ac_cv_func_$ac_func=no"
7504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7505 echo "$ac_t""yes" 1>&6
7506 cat >> confdefs.h
<<EOF
7507 #define CRAY_STACKSEG_END $ac_func
7512 echo "$ac_t""no" 1>&6
7518 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7519 echo "configure:7520: checking stack direction for C alloca" >&5
7520 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7521 echo $ac_n "(cached) $ac_c" 1>&6
7523 if test "$cross_compiling" = yes; then
7524 ac_cv_c_stack_direction
=0
7526 cat > conftest.
$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7529 find_stack_direction ()
7531 static char *addr = 0;
7536 return find_stack_direction ();
7539 return (&dummy > addr) ? 1 : -1;
7543 exit (find_stack_direction() < 0);
7546 if { (eval echo configure
:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7548 ac_cv_c_stack_direction
=1
7550 echo "configure: failed program was:" >&5
7551 cat conftest.
$ac_ext >&5
7553 ac_cv_c_stack_direction
=-1
7560 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7561 cat >> confdefs.h
<<EOF
7562 #define STACK_DIRECTION $ac_cv_c_stack_direction
7568 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7569 unistd.h sys
/param.h
7571 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7573 echo "configure:7574: checking for $ac_hdr" >&5
7574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 cat > conftest.
$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7582 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7583 { (eval echo configure
:7584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7584 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7585 if test -z "$ac_err"; then
7587 eval "ac_cv_header_$ac_safe=yes"
7590 echo "configure: failed program was:" >&5
7591 cat conftest.
$ac_ext >&5
7593 eval "ac_cv_header_$ac_safe=no"
7597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7600 cat >> confdefs.h
<<EOF
7601 #define $ac_tr_hdr 1
7605 echo "$ac_t""no" 1>&6
7609 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7610 strdup __argz_count __argz_stringify __argz_next
7612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7613 echo "configure:7614: checking for $ac_func" >&5
7614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7617 cat > conftest.
$ac_ext <<EOF
7618 #line 7619 "configure"
7619 #include "confdefs.h"
7620 /* System header to define __stub macros and hopefully few prototypes,
7621 which can conflict with char $ac_func(); below. */
7623 /* Override any gcc2 internal prototype to avoid an error. */
7624 /* We use char because int might match the return type of a gcc2
7625 builtin and then its argument prototype would still apply. */
7630 /* The GNU C library defines this for functions which it implements
7631 to always fail with ENOSYS. Some functions are actually named
7632 something starting with __ and the normal name is an alias. */
7633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7641 if { (eval echo configure
:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7643 eval "ac_cv_func_$ac_func=yes"
7645 echo "configure: failed program was:" >&5
7646 cat conftest.
$ac_ext >&5
7648 eval "ac_cv_func_$ac_func=no"
7653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7654 echo "$ac_t""yes" 1>&6
7655 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7656 cat >> confdefs.h
<<EOF
7657 #define $ac_tr_func 1
7661 echo "$ac_t""no" 1>&6
7666 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7667 for ac_func
in stpcpy
7669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7670 echo "configure:7671: checking for $ac_func" >&5
7671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7672 echo $ac_n "(cached) $ac_c" 1>&6
7674 cat > conftest.
$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* System header to define __stub macros and hopefully few prototypes,
7678 which can conflict with char $ac_func(); below. */
7680 /* Override any gcc2 internal prototype to avoid an error. */
7681 /* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7687 /* The GNU C library defines this for functions which it implements
7688 to always fail with ENOSYS. Some functions are actually named
7689 something starting with __ and the normal name is an alias. */
7690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7698 if { (eval echo configure
:7699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7700 eval "ac_cv_func_$ac_func=yes"
7702 echo "configure: failed program was:" >&5
7703 cat conftest.
$ac_ext >&5
7705 eval "ac_cv_func_$ac_func=no"
7710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7711 echo "$ac_t""yes" 1>&6
7712 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7713 cat >> confdefs.h
<<EOF
7714 #define $ac_tr_func 1
7718 echo "$ac_t""no" 1>&6
7723 if test "${ac_cv_func_stpcpy}" = "yes"; then
7724 cat >> confdefs.h
<<\EOF
7725 #define HAVE_STPCPY 1
7730 if test $ac_cv_header_locale_h = yes; then
7731 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7732 echo "configure:7733: checking for LC_MESSAGES" >&5
7733 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7736 cat > conftest.
$ac_ext <<EOF
7737 #line 7738 "configure"
7738 #include "confdefs.h"
7744 if { (eval echo configure
:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7746 am_cv_val_LC_MESSAGES
=yes
7748 echo "configure: failed program was:" >&5
7749 cat conftest.
$ac_ext >&5
7751 am_cv_val_LC_MESSAGES
=no
7756 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7757 if test $am_cv_val_LC_MESSAGES = yes; then
7758 cat >> confdefs.h
<<\EOF
7759 #define HAVE_LC_MESSAGES 1
7764 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7765 echo "configure:7766: checking whether NLS is requested" >&5
7766 # Check whether --enable-nls or --disable-nls was given.
7767 if test "${enable_nls+set}" = set; then
7768 enableval
="$enable_nls"
7774 echo "$ac_t""$USE_NLS" 1>&6
7777 USE_INCLUDED_LIBINTL
=no
7779 if test "$USE_NLS" = "yes"; then
7780 cat >> confdefs.h
<<\EOF
7781 #define ENABLE_NLS 1
7784 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7785 echo "configure:7786: checking whether included gettext is requested" >&5
7786 # Check whether --with-included-gettext or --without-included-gettext was given.
7787 if test "${with_included_gettext+set}" = set; then
7788 withval
="$with_included_gettext"
7789 nls_cv_force_use_gnu_gettext
=$withval
7791 nls_cv_force_use_gnu_gettext
=no
7794 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7796 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7797 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7799 nls_cv_header_libgt
=
7802 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7803 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7804 echo "configure:7805: checking for libintl.h" >&5
7805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7808 cat > conftest.
$ac_ext <<EOF
7809 #line 7810 "configure"
7810 #include "confdefs.h"
7811 #include <libintl.h>
7813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7814 { (eval echo configure
:7815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7816 if test -z "$ac_err"; then
7818 eval "ac_cv_header_$ac_safe=yes"
7821 echo "configure: failed program was:" >&5
7822 cat conftest.
$ac_ext >&5
7824 eval "ac_cv_header_$ac_safe=no"
7828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7829 echo "$ac_t""yes" 1>&6
7830 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7831 echo "configure:7832: checking for gettext in libc" >&5
7832 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7835 cat > conftest.
$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 #include <libintl.h>
7840 return (int) gettext ("")
7843 if { (eval echo configure
:7844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7845 gt_cv_func_gettext_libc
=yes
7847 echo "configure: failed program was:" >&5
7848 cat conftest.
$ac_ext >&5
7850 gt_cv_func_gettext_libc
=no
7855 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7857 if test "$gt_cv_func_gettext_libc" != "yes"; then
7858 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7859 echo "configure:7860: checking for bindtextdomain in -lintl" >&5
7860 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7864 ac_save_LIBS
="$LIBS"
7866 cat > conftest.
$ac_ext <<EOF
7867 #line 7868 "configure"
7868 #include "confdefs.h"
7869 /* Override any gcc2 internal prototype to avoid an error. */
7870 /* We use char because int might match the return type of a gcc2
7871 builtin and then its argument prototype would still apply. */
7872 char bindtextdomain();
7878 if { (eval echo configure
:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7880 eval "ac_cv_lib_$ac_lib_var=yes"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.
$ac_ext >&5
7885 eval "ac_cv_lib_$ac_lib_var=no"
7888 LIBS
="$ac_save_LIBS"
7891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7892 echo "$ac_t""yes" 1>&6
7893 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7894 echo "configure:7895: checking for gettext in libintl" >&5
7895 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
7898 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7899 echo "configure:7900: checking for gettext in -lintl" >&5
7900 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7904 ac_save_LIBS
="$LIBS"
7906 cat > conftest.
$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 /* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7918 if { (eval echo configure
:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7920 eval "ac_cv_lib_$ac_lib_var=yes"
7922 echo "configure: failed program was:" >&5
7923 cat conftest.
$ac_ext >&5
7925 eval "ac_cv_lib_$ac_lib_var=no"
7928 LIBS
="$ac_save_LIBS"
7931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7932 echo "$ac_t""yes" 1>&6
7933 gt_cv_func_gettext_libintl
=yes
7935 echo "$ac_t""no" 1>&6
7936 gt_cv_func_gettext_libintl
=no
7941 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7943 echo "$ac_t""no" 1>&6
7948 if test "$gt_cv_func_gettext_libc" = "yes" \
7949 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7950 cat >> confdefs.h
<<\EOF
7951 #define HAVE_GETTEXT 1
7954 # Extract the first word of "msgfmt", so it can be a program name with args.
7955 set dummy msgfmt
; ac_word
=$2
7956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7957 echo "configure:7958: checking for $ac_word" >&5
7958 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7963 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7966 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7967 for ac_dir
in $PATH; do
7968 test -z "$ac_dir" && ac_dir
=.
7969 if test -f $ac_dir/$ac_word; then
7970 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7971 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7977 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7981 MSGFMT
="$ac_cv_path_MSGFMT"
7982 if test -n "$MSGFMT"; then
7983 echo "$ac_t""$MSGFMT" 1>&6
7985 echo "$ac_t""no" 1>&6
7987 if test "$MSGFMT" != "no"; then
7988 for ac_func
in dcgettext
7990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7991 echo "configure:7992: checking for $ac_func" >&5
7992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7993 echo $ac_n "(cached) $ac_c" 1>&6
7995 cat > conftest.
$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 /* System header to define __stub macros and hopefully few prototypes,
7999 which can conflict with char $ac_func(); below. */
8001 /* Override any gcc2 internal prototype to avoid an error. */
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8008 /* The GNU C library defines this for functions which it implements
8009 to always fail with ENOSYS. Some functions are actually named
8010 something starting with __ and the normal name is an alias. */
8011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8019 if { (eval echo configure
:8020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8021 eval "ac_cv_func_$ac_func=yes"
8023 echo "configure: failed program was:" >&5
8024 cat conftest.
$ac_ext >&5
8026 eval "ac_cv_func_$ac_func=no"
8031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8032 echo "$ac_t""yes" 1>&6
8033 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8034 cat >> confdefs.h
<<EOF
8035 #define $ac_tr_func 1
8039 echo "$ac_t""no" 1>&6
8043 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8044 set dummy gmsgfmt
; ac_word
=$2
8045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8046 echo "configure:8047: checking for $ac_word" >&5
8047 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8052 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8055 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8058 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8060 for ac_dir
in $ac_dummy; do
8061 test -z "$ac_dir" && ac_dir
=.
8062 if test -f $ac_dir/$ac_word; then
8063 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8068 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8072 GMSGFMT
="$ac_cv_path_GMSGFMT"
8073 if test -n "$GMSGFMT"; then
8074 echo "$ac_t""$GMSGFMT" 1>&6
8076 echo "$ac_t""no" 1>&6
8079 # Extract the first word of "xgettext", so it can be a program name with args.
8080 set dummy xgettext
; ac_word
=$2
8081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8082 echo "configure:8083: checking for $ac_word" >&5
8083 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8088 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8091 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8092 for ac_dir
in $PATH; do
8093 test -z "$ac_dir" && ac_dir
=.
8094 if test -f $ac_dir/$ac_word; then
8095 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8096 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8102 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8106 XGETTEXT
="$ac_cv_path_XGETTEXT"
8107 if test -n "$XGETTEXT"; then
8108 echo "$ac_t""$XGETTEXT" 1>&6
8110 echo "$ac_t""no" 1>&6
8113 cat > conftest.
$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8118 extern int _nl_msg_cat_cntr;
8119 return _nl_msg_cat_cntr
8122 if { (eval echo configure
:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8127 echo "configure: failed program was:" >&5
8128 cat conftest.
$ac_ext >&5
8139 echo "$ac_t""no" 1>&6
8143 if test "$CATOBJEXT" = "NONE"; then
8144 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8145 echo "configure:8146: checking whether catgets can be used" >&5
8146 # Check whether --with-catgets or --without-catgets was given.
8147 if test "${with_catgets+set}" = set; then
8148 withval
="$with_catgets"
8149 nls_cv_use_catgets
=$withval
8151 nls_cv_use_catgets
=no
8154 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8156 if test "$nls_cv_use_catgets" = "yes"; then
8157 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8158 echo "configure:8159: checking for main in -li" >&5
8159 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8161 echo $ac_n "(cached) $ac_c" 1>&6
8163 ac_save_LIBS
="$LIBS"
8165 cat > conftest.
$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8173 if { (eval echo configure
:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8175 eval "ac_cv_lib_$ac_lib_var=yes"
8177 echo "configure: failed program was:" >&5
8178 cat conftest.
$ac_ext >&5
8180 eval "ac_cv_lib_$ac_lib_var=no"
8183 LIBS
="$ac_save_LIBS"
8186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8187 echo "$ac_t""yes" 1>&6
8188 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8190 cat >> confdefs.h
<<EOF
8191 #define $ac_tr_lib 1
8197 echo "$ac_t""no" 1>&6
8200 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8201 echo "configure:8202: checking for catgets" >&5
8202 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8205 cat > conftest.
$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* System header to define __stub macros and hopefully few prototypes,
8209 which can conflict with char catgets(); below. */
8211 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8218 /* The GNU C library defines this for functions which it implements
8219 to always fail with ENOSYS. Some functions are actually named
8220 something starting with __ and the normal name is an alias. */
8221 #if defined (__stub_catgets) || defined (__stub___catgets)
8229 if { (eval echo configure
:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8231 eval "ac_cv_func_catgets=yes"
8233 echo "configure: failed program was:" >&5
8234 cat conftest.
$ac_ext >&5
8236 eval "ac_cv_func_catgets=no"
8241 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8242 echo "$ac_t""yes" 1>&6
8243 cat >> confdefs.h
<<\EOF
8244 #define HAVE_CATGETS 1
8247 INTLOBJS
="\$(CATOBJS)"
8248 # Extract the first word of "gencat", so it can be a program name with args.
8249 set dummy gencat
; ac_word
=$2
8250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8251 echo "configure:8252: checking for $ac_word" >&5
8252 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8257 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8260 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8265 for ac_dir
in $ac_dummy; do
8266 test -z "$ac_dir" && ac_dir
=.
8267 if test -f $ac_dir/$ac_word; then
8268 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8273 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8277 GENCAT
="$ac_cv_path_GENCAT"
8278 if test -n "$GENCAT"; then
8279 echo "$ac_t""$GENCAT" 1>&6
8281 echo "$ac_t""no" 1>&6
8283 if test "$GENCAT" != "no"; then
8284 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8285 set dummy gmsgfmt
; ac_word
=$2
8286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8287 echo "configure:8288: checking for $ac_word" >&5
8288 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8289 echo $ac_n "(cached) $ac_c" 1>&6
8293 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8296 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8299 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8301 for ac_dir
in $ac_dummy; do
8302 test -z "$ac_dir" && ac_dir
=.
8303 if test -f $ac_dir/$ac_word; then
8304 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8309 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8313 GMSGFMT
="$ac_cv_path_GMSGFMT"
8314 if test -n "$GMSGFMT"; then
8315 echo "$ac_t""$GMSGFMT" 1>&6
8317 echo "$ac_t""no" 1>&6
8320 if test "$GMSGFMT" = "no"; then
8321 # Extract the first word of "msgfmt", so it can be a program name with args.
8322 set dummy msgfmt
; ac_word
=$2
8323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8324 echo "configure:8325: checking for $ac_word" >&5
8325 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8330 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8333 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8334 for ac_dir
in $PATH; do
8335 test -z "$ac_dir" && ac_dir
=.
8336 if test -f $ac_dir/$ac_word; then
8337 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8338 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8344 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8348 GMSGFMT
="$ac_cv_path_GMSGFMT"
8349 if test -n "$GMSGFMT"; then
8350 echo "$ac_t""$GMSGFMT" 1>&6
8352 echo "$ac_t""no" 1>&6
8355 if test "$GMSGFMT" = "msgfmt"; then
8356 echo "configure: warning: No program for catalog building found" 1>&2
8357 create_catalogs
="no"
8360 # Extract the first word of "xgettext", so it can be a program name with args.
8361 set dummy xgettext
; ac_word
=$2
8362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8363 echo "configure:8364: checking for $ac_word" >&5
8364 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8369 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8373 for ac_dir
in $PATH; do
8374 test -z "$ac_dir" && ac_dir
=.
8375 if test -f $ac_dir/$ac_word; then
8376 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8377 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8383 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8387 XGETTEXT
="$ac_cv_path_XGETTEXT"
8388 if test -n "$XGETTEXT"; then
8389 echo "$ac_t""$XGETTEXT" 1>&6
8391 echo "$ac_t""no" 1>&6
8394 USE_INCLUDED_LIBINTL
=yes
8398 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8400 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8401 nls_cv_header_intl
=intl
/libintl.h
8402 nls_cv_header_libgt
=intl
/libgettext.h
8405 echo "$ac_t""no" 1>&6
8411 if test "$CATOBJEXT" = "NONE"; then
8412 nls_cv_use_gnu_gettext
=yes
8416 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8417 INTLOBJS
="\$(GETTOBJS)"
8418 # Extract the first word of "msgfmt", so it can be a program name with args.
8419 set dummy msgfmt
; ac_word
=$2
8420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8421 echo "configure:8422: checking for $ac_word" >&5
8422 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8423 echo $ac_n "(cached) $ac_c" 1>&6
8427 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8430 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8431 for ac_dir
in $PATH; do
8432 test -z "$ac_dir" && ac_dir
=.
8433 if test -f $ac_dir/$ac_word; then
8434 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8435 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8441 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8445 MSGFMT
="$ac_cv_path_MSGFMT"
8446 if test -n "$MSGFMT"; then
8447 echo "$ac_t""$MSGFMT" 1>&6
8449 echo "$ac_t""no" 1>&6
8452 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8453 set dummy gmsgfmt
; ac_word
=$2
8454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8455 echo "configure:8456: checking for $ac_word" >&5
8456 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8461 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8464 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8467 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8469 for ac_dir
in $ac_dummy; do
8470 test -z "$ac_dir" && ac_dir
=.
8471 if test -f $ac_dir/$ac_word; then
8472 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8477 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8481 GMSGFMT
="$ac_cv_path_GMSGFMT"
8482 if test -n "$GMSGFMT"; then
8483 echo "$ac_t""$GMSGFMT" 1>&6
8485 echo "$ac_t""no" 1>&6
8488 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8489 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8490 create_catalogs
="no"
8492 # Extract the first word of "xgettext", so it can be a program name with args.
8493 set dummy xgettext
; ac_word
=$2
8494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8495 echo "configure:8496: checking for $ac_word" >&5
8496 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8497 echo $ac_n "(cached) $ac_c" 1>&6
8501 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8504 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8505 for ac_dir
in $PATH; do
8506 test -z "$ac_dir" && ac_dir
=.
8507 if test -f $ac_dir/$ac_word; then
8508 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8509 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8515 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8519 XGETTEXT
="$ac_cv_path_XGETTEXT"
8520 if test -n "$XGETTEXT"; then
8521 echo "$ac_t""$XGETTEXT" 1>&6
8523 echo "$ac_t""no" 1>&6
8527 USE_INCLUDED_LIBINTL
=yes
8531 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8533 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8534 nls_cv_header_intl
=intl
/libintl.h
8535 nls_cv_header_libgt
=intl
/libgettext.h
8538 if test "$XGETTEXT" != ":"; then
8539 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8542 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8549 # We need to process the po/ directory.
8553 nls_cv_header_intl
=intl
/libintl.h
8554 nls_cv_header_libgt
=intl
/libgettext.h
8560 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8561 # because some of the sources are only built for this goal.
8562 if test "$PACKAGE" = gettext; then
8564 USE_INCLUDED_LIBINTL
=yes
8567 for lang
in $ALL_LINGUAS; do
8568 GMOFILES
="$GMOFILES $lang.gmo"
8569 POFILES
="$POFILES $lang.po"
8585 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8586 if test "x$ALL_LINGUAS" = "x"; then
8589 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8590 echo "configure:8591: checking for catalogs to be installed" >&5
8591 if test "x$LINGUAS" = "x"; then
8592 LINGUAS
=$ALL_LINGUAS
8595 for lang
in $ALL_LINGUAS; do
8596 case " $LINGUAS " in
8597 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8600 LINGUAS
=$NEW_LINGUAS
8602 echo "$ac_t""$LINGUAS" 1>&6
8605 if test -n "$LINGUAS"; then
8606 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8610 if test $ac_cv_header_locale_h = yes; then
8611 INCLUDE_LOCALE_H
="#include <locale.h>"
8614 /* The system does not provide the header <locale.h>. Take care yourself. */"
8618 test -d intl || mkdir intl
8619 if test "$CATOBJEXT" = ".cat"; then
8620 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8621 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8622 echo "configure:8623: checking for linux/version.h" >&5
8623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8624 echo $ac_n "(cached) $ac_c" 1>&6
8626 cat > conftest.
$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 #include <linux/version.h>
8631 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8632 { (eval echo configure
:8633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8633 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8634 if test -z "$ac_err"; then
8636 eval "ac_cv_header_$ac_safe=yes"
8639 echo "configure: failed program was:" >&5
8640 cat conftest.
$ac_ext >&5
8642 eval "ac_cv_header_$ac_safe=no"
8646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8647 echo "$ac_t""yes" 1>&6
8650 echo "$ac_t""no" 1>&6
8655 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8657 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8658 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8660 if test "$PACKAGE" = "gettext"; then
8671 if test -n "$ac_aux_dir"; then
8672 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8674 if test -z "$MKINSTALLDIRS"; then
8675 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8682 test -d po || mkdir po
8683 if test "x$srcdir" != "x."; then
8684 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8685 posrcprefix
="$srcdir/"
8687 posrcprefix
="../$srcdir/"
8693 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8694 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8696 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8698 # Windows32 Registry support for specifying GCC installation paths.
8699 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8700 if test "${enable_win32_registry+set}" = set; then
8701 enableval
="$enable_win32_registry"
8706 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8707 echo "configure:8708: checking whether windows registry support is requested" >&5
8708 if test x
$enable_win32_registry != xno
; then
8709 cat >> confdefs.h
<<\EOF
8710 #define ENABLE_WIN32_REGISTRY 1
8713 echo "$ac_t""yes" 1>&6
8715 echo "$ac_t""no" 1>&6
8718 # Check if user specified a different registry key.
8719 case x
${enable_win32_registry} in
8722 gcc_cv_win32_registry_key
="$VERSION"
8725 # no registry lookup.
8726 gcc_cv_win32_registry_key
=''
8729 # user-specified key.
8730 gcc_cv_win32_registry_key
="$enable_win32_registry"
8734 if test x
$enable_win32_registry != xno
; then
8735 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8736 echo "configure:8737: checking registry key on windows hosts" >&5
8737 cat >> confdefs.h
<<EOF
8738 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8741 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8744 # Get an absolute path to the GCC top-level source directory
8750 # Conditionalize the makefile for this host machine.
8751 # Make-host contains the concatenation of all host makefile fragments
8752 # [there can be more than one]. This file is built by configure.frag.
8753 host_overrides
=Make-host
8754 dep_host_xmake_file
=
8755 for f
in ..
${host_xmake_file}
8757 if test -f ${srcdir}/config
/$f
8759 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8763 # Conditionalize the makefile for this target machine.
8764 # Make-target contains the concatenation of all host makefile fragments
8765 # [there can be more than one]. This file is built by configure.frag.
8766 target_overrides
=Make-target
8768 for f
in ..
${tmake_file}
8770 if test -f ${srcdir}/config
/$f
8772 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8776 # If the host doesn't support symlinks, modify CC in
8777 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8778 # Otherwise, we can use "CC=$(CC)".
8780 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8782 cc_set_by_configure
="\$(CC)"
8783 quoted_cc_set_by_configure
="\$(CC)"
8784 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8787 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8789 symbolic_link
="cp -p"
8793 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8794 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8795 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8799 out_object_file
=`basename $out_file .c`.o
8802 for f
in $tm_file; do
8805 tm_file_list
="${tm_file_list} $f" ;;
8806 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8811 for f
in $host_xm_file; do
8813 auto-host.h | gansidecl.h | hwint.h
)
8814 host_xm_file_list
="${host_xm_file_list} $f" ;;
8815 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8820 for f
in $build_xm_file; do
8822 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8823 build_xm_file_list
="${build_xm_file_list} $f" ;;
8824 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8828 # Define macro CROSS_COMPILE in compilation
8829 # if this is a cross-compiler.
8830 # Also use all.cross instead of all.internal
8831 # and add cross-make to Makefile.
8832 cross_overrides
="/dev/null"
8833 if test x
$host != x
$target
8835 cross_defines
="CROSS=-DCROSS_COMPILE"
8836 cross_overrides
="${topdir}/cross-make"
8839 # If this is a cross-compiler that does not
8840 # have its own set of headers then define
8843 # If this is using newlib, then define inhibit_libc in
8844 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8845 # libgcc.a, but that's OK because newlib should have its own version of
8848 if test x
$host != x
$target && test x
$with_headers = x
; then
8849 inhibit_libc
=-Dinhibit_libc
8851 if test x
$with_newlib = xyes
; then
8852 inhibit_libc
=-Dinhibit_libc
8857 # When building gcc with a cross-compiler, we need to fix a few things.
8858 # This must come after cross-make as we want all.build to override
8860 build_overrides
="/dev/null"
8861 if test x
$build != x
$host
8863 build_overrides
="${topdir}/build-make"
8866 # Expand extra_headers to include complete path.
8867 # This substitutes for lots of t-* files.
8869 if test "x$extra_headers" = x
8872 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8873 for file in $extra_headers;
8875 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8879 if test x
$use_collect2 = xno
; then
8883 # Add a definition of USE_COLLECT2 if system wants one.
8884 # Also tell toplev.c what to do.
8885 # This substitutes for lots of t-* files.
8886 if test x
$use_collect2 = x
8891 will_use_collect2
="collect2"
8892 maybe_use_collect2
="-DUSE_COLLECT2"
8896 # Set MD_DEPS if the real md file is in md.pre-cpp.
8897 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8898 # for line oriented comments, so we must always use a GNU cpp. If
8899 # building gcc with a cross compiler, use the cross compiler just
8900 # built. Otherwise, we can use the cpp just built.
8902 if test "x$md_cppflags" = x
8904 md_file_sub
=$srcdir/config
/$md_file
8909 # If we have gas in the build tree, make a link to it.
8910 if test -f ..
/gas
/Makefile
; then
8911 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8914 # If we have nm in the build tree, make a link to it.
8915 if test -f ..
/binutils
/Makefile
; then
8916 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8919 # If we have ld in the build tree, make a link to it.
8920 if test -f ..
/ld
/Makefile
; then
8921 # if test x$use_collect2 = x; then
8922 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8924 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8928 # Figure out what assembler alignment features are present.
8929 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8930 echo "configure:8931: checking assembler alignment features" >&5
8932 gcc_cv_as_alignment_features
=
8933 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8934 if test -x "$DEFAULT_ASSEMBLER"; then
8935 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8936 elif test -x "$AS"; then
8938 elif test -x as
$host_exeext; then
8939 # Build using assembler in the current directory.
8940 gcc_cv_as
=.
/as
$host_exeext
8941 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8942 # Single tree build which includes gas.
8943 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8945 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8946 if test x
$gcc_cv_gas_version != x
; then
8950 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8951 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8952 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8953 # Gas version 2.6 and later support for .balign and .p2align.
8954 # bytes to skip when using .p2align.
8955 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
8956 gcc_cv_as_alignment_features
=".balign and .p2align"
8957 cat >> confdefs.h
<<\EOF
8958 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8962 # Gas version 2.8 and later support specifying the maximum
8963 # bytes to skip when using .p2align.
8964 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
8965 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8966 cat >> confdefs.h
<<\EOF
8967 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8972 elif test x
$host = x
$target; then
8974 # Search the same directories that the installed compiler will
8975 # search. Else we may find the wrong assembler and lose. If we
8976 # do not find a suitable assembler binary, then try the user's
8979 # Also note we have to check MD_EXEC_PREFIX before checking the
8980 # user's path. Unfortunately, there is no good way to get at the
8981 # value of MD_EXEC_PREFIX here. So we do a brute force search
8982 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8983 # to be fixed as part of the make/configure rewrite too.
8985 if test "x$exec_prefix" = xNONE
; then
8986 if test "x$prefix" = xNONE
; then
8987 test_prefix
=/usr
/local
8992 test_prefix
=$exec_prefix
8995 # If the loop below does not find an assembler, then use whatever
8996 # one we can find in the users's path.
9000 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
9001 $test_prefix/lib/gcc-lib/$target \
9002 /usr/lib/gcc/$target/$gcc_version \
9003 /usr/lib/gcc/$target \
9004 $test_prefix/$target/bin/$target/$gcc_version \
9005 $test_prefix/$target/bin \
9010 /bsd43/usr/lib/cmplrs/cc \
9011 /usr/cross64/usr/bin \
9012 /usr/lib/cmplrs/cc \
9013 /sysv/usr/lib/cmplrs/cc \
9014 /svr4/usr/lib/cmplrs/cc \
9017 for dir
in $test_dirs; do
9018 if test -f $dir/as
$host_exeext; then
9019 gcc_cv_as
=$dir/as
$host_exeext
9024 if test x
$gcc_cv_as != x
; then
9025 # Check if we have .balign and .p2align
9026 echo ".balign 4" > conftest.s
9027 echo ".p2align 2" >> conftest.s
9028 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9029 gcc_cv_as_alignment_features
=".balign and .p2align"
9030 cat >> confdefs.h
<<\EOF
9031 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9035 rm -f conftest.s conftest.o
9036 # Check if specifying the maximum bytes to skip when
9037 # using .p2align is supported.
9038 echo ".p2align 4,,7" > conftest.s
9039 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9040 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9041 cat >> confdefs.h
<<\EOF
9042 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9046 rm -f conftest.s conftest.o
9048 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9050 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9051 echo "configure:9052: checking assembler subsection support" >&5
9052 gcc_cv_as_subsections
=
9053 if test x
$gcc_cv_as != x
; then
9054 # Check if we have .subsection
9055 echo ".subsection 1" > conftest.s
9056 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9057 gcc_cv_as_subsections
=".subsection"
9058 if test -x nm
$host_exeext; then
9059 gcc_cv_nm
=.
/nm
$host_exeext
9060 elif test x
$host = x
$target; then
9062 gcc_cv_nm
=nm
$host_exeext
9064 if test x
$gcc_cv_nm != x
; then
9065 cat > conftest.s
<<EOF
9066 conftest_label1: .word 0
9068 conftest_label2: .word 0
9071 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9072 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9073 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9074 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9077 gcc_cv_as_subsections
="working .subsection -1"
9078 cat >> confdefs.h
<<\EOF
9079 #define HAVE_GAS_SUBSECTION_ORDERING 1
9086 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9088 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9090 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9091 echo "configure:9092: checking assembler weak support" >&5
9093 if test x
$gcc_cv_as != x
; then
9094 # Check if we have .weak
9095 echo " .weak foobar" > conftest.s
9096 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9097 cat >> confdefs.h
<<\EOF
9098 #define HAVE_GAS_WEAK 1
9101 gcc_cv_as_weak
="yes"
9103 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9105 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9107 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9108 echo "configure:9109: checking assembler hidden support" >&5
9110 if test x
$gcc_cv_as != x
; then
9111 # Check if we have .hidden
9112 echo " .hidden foobar" > conftest.s
9113 echo "foobar:" >> conftest.s
9114 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9115 cat >> confdefs.h
<<\EOF
9116 #define HAVE_GAS_HIDDEN 1
9119 gcc_cv_as_hidden
="yes"
9121 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9123 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9127 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9128 echo "configure:9129: checking assembler .register pseudo-op support" >&5
9129 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9133 gcc_cv_as_register_pseudo_op
=unknown
9134 if test x
$gcc_cv_as != x
; then
9135 # Check if we have .register
9136 echo ".register %g2, #scratch" > conftest.s
9137 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9138 gcc_cv_as_register_pseudo_op
=yes
9140 gcc_cv_as_register_pseudo_op
=no
9142 rm -f conftest.s conftest.o
9147 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9148 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9149 cat >> confdefs.h
<<\EOF
9150 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9155 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9156 echo "configure:9157: checking assembler supports -relax" >&5
9157 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9161 gcc_cv_as_relax_opt
=unknown
9162 if test x
$gcc_cv_as != x
; then
9163 # Check if gas supports -relax
9164 echo ".text" > conftest.s
9165 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9166 gcc_cv_as_relax_opt
=yes
9168 gcc_cv_as_relax_opt
=no
9170 rm -f conftest.s conftest.o
9175 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9176 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9177 cat >> confdefs.h
<<\EOF
9178 #define HAVE_AS_RELAX_OPTION 1
9185 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9186 echo "configure:9187: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9187 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9191 if test -n "$gcc_cv_as"; then
9192 echo ".xword foo" > conftest.s
9193 gcc_cv_as_flags64
=no
9194 for flag
in "-xarch=v9" "-64 -Av9"; do
9195 if $gcc_cv_as $flag -o conftest.o conftest.s \
9196 > /dev
/null
2>&1; then
9197 gcc_cv_as_flags64
=$flag
9201 rm -f conftest.s conftest.o
9203 if test "$gas" = yes; then
9204 gcc_cv_as_flags64
="-64 -Av9"
9206 gcc_cv_as_flags64
="-xarch=v9"
9212 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9213 if test "x$gcc_cv_as_flags64" = xno
; then
9215 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9216 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9219 cat >> confdefs.h
<<EOF
9220 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9225 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9229 if test "x$gcc_cv_as_flags64" != xno
; then
9230 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9231 echo "configure:9232: checking for assembler offsetable %lo() support" >&5
9232 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9233 echo $ac_n "(cached) $ac_c" 1>&6
9236 gcc_cv_as_offsetable_lo10
=unknown
9237 if test "x$gcc_cv_as" != x
; then
9238 # Check if assembler has offsetable %lo()
9239 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9240 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9241 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9243 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9244 > /dev
/null
2>&1; then
9245 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9246 gcc_cv_as_offsetable_lo10
=no
9248 gcc_cv_as_offsetable_lo10
=yes
9251 gcc_cv_as_offsetable_lo10
=no
9253 rm -f conftest.s conftest.o conftest1.s conftest1.o
9258 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9259 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9260 cat >> confdefs.h
<<\EOF
9261 #define HAVE_AS_OFFSETABLE_LO10 1
9269 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9270 echo "configure:9271: checking assembler instructions" >&5
9271 gcc_cv_as_instructions
=
9272 if test x
$gcc_cv_as != x
; then
9273 set "filds fists" "filds mem; fists mem"
9276 echo "$2" > conftest.s
9277 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9278 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9279 cat >> confdefs.h
<<EOF
9280 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9286 rm -f conftest.s conftest.o
9288 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9292 # Figure out what language subdirectories are present.
9293 # Look if the user specified --enable-languages="..."; if not, use
9294 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9296 if test x
"${enable_languages+set}" != xset
; then
9297 if test x
"${LANGUAGES+set}" = xset
; then
9298 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9300 enable_languages
=all
9303 if test x
"${enable_languages}" = x
; then
9304 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9308 for lang
in ${srcdir}/*/config-lang.
in ..
9312 # The odd quoting in the next line works around
9313 # an apparent bug in bash 1.12 on linux.
9314 ${srcdir}/[*]/config-lang.
in) ;;
9316 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9317 if test "x$lang_alias" = x
9319 echo "$lang doesn't set \$language." 1>&2
9322 if test x
"${enable_languages}" = xall
; then
9325 case "${enable_languages}" in
9326 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9334 if test x"${add_this_lang}" = xyes; then
9336 ${srcdir}/ada/config-lang.in)
9337 if test x$gnat = xyes ; then
9338 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9342 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9350 # Make gthr-default.h if we have a thread file.
9352 if test $thread_file != single; then
9353 rm -f gthr-default.h
9354 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9355 gthread_flags
=-DHAVE_GTHR_DEFAULT
9359 # Find out what GC implementation we want, or may, use.
9360 # Check whether --with-gc or --without-gc was given.
9361 if test "${with_gc+set}" = set; then
9368 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9372 if test $ac_cv_func_mmap_anywhere = yes \
9373 ||
test $ac_cv_func_valloc = yes; then
9381 echo "Using $GGC for garbage collection."
9383 # Use the system's zlib library.
9384 zlibdir
=-L..
/..
/zlib
9385 zlibinc
="-I\$(srcdir)/../../zlib"
9386 # Check whether --with-system-zlib or --without-system-zlib was given.
9387 if test "${with_system_zlib+set}" = set; then
9388 withval
="$with_system_zlib"
9397 # Build a new-abi (c++) system
9398 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9399 if test "${enable_new_gxx_abi+set}" = set; then
9400 enableval
="$enable_new_gxx_abi"
9401 cat >> confdefs.h
<<\EOF
9402 #define ENABLE_NEW_GXX_ABI 1
9405 GXX_ABI_FLAG
='-fnew-abi'
9406 echo "Building a new-abi g++ compiler."
9412 # Build a new-libstdc++ system (ie libstdc++-v3)
9413 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9414 echo "configure:9415: checking for libstdc++ to install" >&5
9415 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9416 if test "${enable_libstdcxx_v3+set}" = set; then
9417 enableval
="$enable_libstdcxx_v3"
9418 enable_libstdcxx_v3
="$enableval"
9420 enable_libstdcxx_v3
=no
9424 if test x
$enable_libstdcxx_v3 = xyes
; then
9425 echo "$ac_t""v3" 1>&6
9428 echo "$ac_t""v2" 1>&6
9431 cat >> confdefs.h
<<EOF
9432 #define ENABLE_STD_NAMESPACE $ac_esn
9437 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9438 echo "configure:9439: checking whether to enable maintainer-specific portions of Makefiles" >&5
9439 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9440 if test "${enable_maintainer_mode+set}" = set; then
9441 enableval
="$enable_maintainer_mode"
9442 maintainer_mode
=$enableval
9448 echo "$ac_t""$maintainer_mode" 1>&6
9450 if test "$maintainer_mode" = "yes"; then
9456 # Make empty files to contain the specs and options for each language.
9457 # Then add #include lines to for a compiler that has specs and/or options.
9462 rm -f specs.h options.h gencheck.h
9463 touch specs.h options.h gencheck.h
9464 for subdir
in .
$subdirs
9466 if test -f $srcdir/$subdir/lang-specs.h
; then
9467 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9468 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9470 if test -f $srcdir/$subdir/lang-options.h
; then
9471 echo "#include \"$subdir/lang-options.h\"" >>options.h
9472 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9474 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9475 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9476 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9480 # These (without "all_") are set in each config-lang.in.
9481 # `language' must be a single word so is spelled singularly.
9487 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9488 # List of language makefile fragments.
9493 # Add the language fragments.
9494 # Languages are added via two mechanisms. Some information must be
9495 # recorded in makefile variables, these are defined in config-lang.in.
9496 # We accumulate them and plug them into the main Makefile.
9497 # The other mechanism is a set of hooks for each of the main targets
9498 # like `clean', `install', etc.
9500 language_fragments
="Make-lang"
9501 language_hooks
="Make-hooks"
9504 for s
in ..
$subdirs
9516 .
${srcdir}/$s/config-lang.
in
9517 if test "x$language" = x
9519 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9522 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9523 all_languages
="$all_languages $language"
9524 if test "x$boot_language" = xyes
9526 all_boot_languages
="$all_boot_languages $language"
9528 all_compilers
="$all_compilers $compilers"
9529 all_stagestuff
="$all_stagestuff $stagestuff"
9530 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9531 all_headers
="$all_headers $headers"
9532 all_outputs
="$all_outputs $outputs"
9533 if test x
$outputs = x
9535 oldstyle_subdirs
="$oldstyle_subdirs $s"
9537 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9541 # Since we can't use `::' targets, we link each language in
9542 # with a set of hooks, reached indirectly via lang.${target}.
9546 target_list
="all.build all.cross start.encap rest.encap \
9548 install-normal install-common install-info install-man \
9550 mostlyclean clean distclean extraclean maintainer-clean \
9551 stage1 stage2 stage3 stage4"
9552 for t
in $target_list
9555 for lang
in ..
$all_languages
9557 if test $lang != ".."; then
9561 echo "lang.$t: $x" >> Make-hooks
9564 # If we're not building in srcdir, create .gdbinit.
9566 if test ! -f Makefile.
in; then
9567 echo "dir ." > .gdbinit
9568 echo "dir ${srcdir}" >> .gdbinit
9569 if test x
$gdb_needs_out_file_path = xyes
9571 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9573 if test "x$subdirs" != x
; then
9576 echo "dir ${srcdir}/$s" >> .gdbinit
9579 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9582 # Define variables host_canonical and build_canonical
9583 # because some Cygnus local changes in the Makefile depend on them.
9584 build_canonical
=${build}
9585 host_canonical
=${host}
9587 if test "${host}" != "${target}" ; then
9588 target_subdir
=${target}/
9594 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9595 # absolute path for gcc_tooldir based on inserting the number of up-directory
9596 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9597 # $(libsubdir)/@(unlibsubdir) based path.
9598 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9599 # make and thus we'd get different behavior depending on where we built the
9601 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9602 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9604 # An explanation of the sed strings:
9605 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9606 # -e 's|/$||' match a trailing forward slash and eliminates it
9607 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9608 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9610 # (*) Note this pattern overwrites the first character of the string
9611 # with a forward slash if one is not already present. This is not a
9612 # problem because the exact names of the sub-directories concerned is
9613 # unimportant, just the number of them matters.
9615 # The practical upshot of these patterns is like this:
9617 # prefix exec_prefix result
9618 # ------ ----------- ------
9620 # /foo/ /foo/bar ../
9621 # /foo /foo/bar/ ../
9622 # /foo/ /foo/bar/ ../
9623 # /foo /foo/bar/ugg ../../
9626 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9631 # Nothing to do for FLOAT_H, float_format already handled.
9635 # Process the language and host/target makefile fragments.
9636 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9638 # Substitute configuration variables
9697 # Echo that links are built
9698 if test x
$host = x
$target
9706 if test x
$host != x
$build
9708 str3
=" on a $build system"
9711 if test "x$str2" != x ||
test "x$str3" != x
9716 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9718 if test "x$str2" != x ||
test "x$str3" != x
9720 echo " ${str2}${str3}." 1>&2
9723 # Truncate the target if necessary
9724 if test x
$host_truncate_target != x
; then
9725 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9728 # Configure the subdirectories
9729 # AC_CONFIG_SUBDIRS($subdirs)
9731 # Create the Makefile
9732 # and configure language subdirectories
9734 cat > confcache
<<\EOF
9735 # This file is a shell script that caches the results of configure
9736 # tests run on this system so they can be shared between configure
9737 # scripts and configure runs. It is not useful on other systems.
9738 # If it contains results you don't want to keep, you may remove or edit it.
9740 # By default, configure uses ./config.cache as the cache file,
9741 # creating it if it does not exist already. You can give configure
9742 # the --cache-file=FILE option to use a different cache file; that is
9743 # what configure does when it calls configure scripts in
9744 # subdirectories, so they share the cache.
9745 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9746 # config.status only pays attention to the cache file if you give it the
9747 # --recheck option to rerun configure.
9750 # The following way of writing the cache mishandles newlines in values,
9751 # but we know of no workaround that is simple, portable, and efficient.
9752 # So, don't put newlines in cache variables' values.
9753 # Ultrix sh set writes to stderr and can't be redirected directly,
9754 # and sets the high bit in the cache file unless we assign to the vars.
9756 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9758 # `set' does not quote correctly, so add quotes (double-quote substitution
9759 # turns \\\\ into \\, and sed turns \\ into \).
9761 -e "s/'/'\\\\''/g" \
9762 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9765 # `set' quotes correctly as required by POSIX, so do not add quotes.
9766 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9769 if cmp -s $cache_file confcache
; then
9772 if test -w $cache_file; then
9773 echo "updating cache $cache_file"
9774 cat confcache
> $cache_file
9776 echo "not updating unwritable cache $cache_file"
9781 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9783 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9784 # Let make expand exec_prefix.
9785 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9787 # Any assignment to VPATH causes Sun make to only execute
9788 # the first set of double-colon rules, so remove it if not needed.
9789 # If there is a colon in the path, we need to keep it.
9790 if test "x$srcdir" = x.
; then
9791 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9794 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9796 DEFS
=-DHAVE_CONFIG_H
9798 # Without the "./", some shells look in PATH for config.status.
9799 : ${CONFIG_STATUS=./config.status}
9801 echo creating
$CONFIG_STATUS
9802 rm -f $CONFIG_STATUS
9803 cat > $CONFIG_STATUS <<EOF
9805 # Generated automatically by configure.
9806 # Run this file to recreate the current configuration.
9807 # This directory was configured as follows,
9808 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9810 # $0 $ac_configure_args
9812 # Compiler output produced by configure, useful for debugging
9813 # configure, is in ./config.log if it exists.
9815 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9818 case "\$ac_option" in
9819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9820 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9821 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9822 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9823 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9825 -help | --help | --hel | --he | --h)
9826 echo "\$ac_cs_usage"; exit 0 ;;
9827 *) echo "\$ac_cs_usage"; exit 1 ;;
9831 ac_given_srcdir=$srcdir
9833 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9835 cat >> $CONFIG_STATUS <<EOF
9837 # Protect against being on the right side of a sed subst in config.status.
9838 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9839 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9843 s%@CFLAGS@%$CFLAGS%g
9844 s%@CPPFLAGS@%$CPPFLAGS%g
9845 s%@CXXFLAGS@%$CXXFLAGS%g
9846 s%@FFLAGS@%$FFLAGS%g
9848 s%@LDFLAGS@%$LDFLAGS%g
9850 s%@exec_prefix@%$exec_prefix%g
9851 s%@prefix@%$prefix%g
9852 s%@program_transform_name@%$program_transform_name%g
9853 s%@bindir@%$bindir%g
9854 s%@sbindir@%$sbindir%g
9855 s%@libexecdir@%$libexecdir%g
9856 s%@datadir@%$datadir%g
9857 s%@sysconfdir@%$sysconfdir%g
9858 s%@sharedstatedir@%$sharedstatedir%g
9859 s%@localstatedir@%$localstatedir%g
9860 s%@libdir@%$libdir%g
9861 s%@includedir@%$includedir%g
9862 s%@oldincludedir@%$oldincludedir%g
9863 s%@infodir@%$infodir%g
9864 s%@mandir@%$mandir%g
9866 s%@host_alias@%$host_alias%g
9867 s%@host_cpu@%$host_cpu%g
9868 s%@host_vendor@%$host_vendor%g
9869 s%@host_os@%$host_os%g
9870 s%@target@%$target%g
9871 s%@target_alias@%$target_alias%g
9872 s%@target_cpu@%$target_cpu%g
9873 s%@target_vendor@%$target_vendor%g
9874 s%@target_os@%$target_os%g
9876 s%@build_alias@%$build_alias%g
9877 s%@build_cpu@%$build_cpu%g
9878 s%@build_vendor@%$build_vendor%g
9879 s%@build_os@%$build_os%g
9881 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9882 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9883 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9884 s%@SET_MAKE@%$SET_MAKE%g
9887 s%@LEXLIB@%$LEXLIB%g
9890 s%@RANLIB@%$RANLIB%g
9892 s%@INSTALL@%$INSTALL%g
9893 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9894 s%@INSTALL_DATA@%$INSTALL_DATA%g
9897 s%@MAKEINFO@%$MAKEINFO%g
9898 s%@BUILD_INFO@%$BUILD_INFO%g
9899 s%@INSTALL_INFO@%$INSTALL_INFO%g
9900 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9901 s%@vfprintf@%$vfprintf%g
9902 s%@doprint@%$doprint%g
9903 s%@manext@%$manext%g
9904 s%@objext@%$objext%g
9905 s%@PACKAGE@%$PACKAGE%g
9906 s%@VERSION@%$VERSION%g
9907 s%@ALLOCA@%$ALLOCA%g
9908 s%@USE_NLS@%$USE_NLS%g
9909 s%@MSGFMT@%$MSGFMT%g
9910 s%@GMSGFMT@%$GMSGFMT%g
9911 s%@XGETTEXT@%$XGETTEXT%g
9912 s%@GENCAT@%$GENCAT%g
9913 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9914 s%@CATALOGS@%$CATALOGS%g
9915 s%@CATOBJEXT@%$CATOBJEXT%g
9916 s%@DATADIRNAME@%$DATADIRNAME%g
9917 s%@GMOFILES@%$GMOFILES%g
9918 s%@INSTOBJEXT@%$INSTOBJEXT%g
9919 s%@INTLDEPS@%$INTLDEPS%g
9920 s%@INTLLIBS@%$INTLLIBS%g
9921 s%@INTLOBJS@%$INTLOBJS%g
9922 s%@POFILES@%$POFILES%g
9924 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9926 s%@GT_YES@%$GT_YES%g
9927 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9929 s%@inhibit_libc@%$inhibit_libc%g
9930 s%@gthread_flags@%$gthread_flags%g
9932 s%@zlibdir@%$zlibdir%g
9933 s%@zlibinc@%$zlibinc%g
9934 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9936 s%@build_canonical@%$build_canonical%g
9937 s%@host_canonical@%$host_canonical%g
9938 s%@target_subdir@%$target_subdir%g
9939 s%@gcc_tooldir@%$gcc_tooldir%g
9940 s%@dollar@%$dollar%g
9941 s%@objdir@%$objdir%g
9942 s%@subdirs@%$subdirs%g
9943 s%@all_boot_languages@%$all_boot_languages%g
9944 s%@all_compilers@%$all_compilers%g
9945 s%@all_diff_excludes@%$all_diff_excludes%g
9946 s%@all_headers@%$all_headers%g
9947 s%@all_lang_makefiles@%$all_lang_makefiles%g
9948 s%@all_languages@%$all_languages%g
9949 s%@all_lib2funcs@%$all_lib2funcs%g
9950 s%@all_stagestuff@%$all_stagestuff%g
9951 s%@build_exeext@%$build_exeext%g
9952 s%@build_install_headers_dir@%$build_install_headers_dir%g
9953 s%@build_xm_file_list@%$build_xm_file_list%g
9954 s%@cc_set_by_configure@%$cc_set_by_configure%g
9955 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9956 s%@cpp_install_dir@%$cpp_install_dir%g
9957 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9958 s%@dep_tmake_file@%$dep_tmake_file%g
9959 s%@extra_c_flags@%$extra_c_flags%g
9960 s%@extra_c_objs@%$extra_c_objs%g
9961 s%@extra_cpp_objs@%$extra_cpp_objs%g
9962 s%@extra_cxx_objs@%$extra_cxx_objs%g
9963 s%@extra_headers_list@%$extra_headers_list%g
9964 s%@extra_objs@%$extra_objs%g
9965 s%@extra_parts@%$extra_parts%g
9966 s%@extra_passes@%$extra_passes%g
9967 s%@extra_programs@%$extra_programs%g
9968 s%@float_h_file@%$float_h_file%g
9969 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9970 s%@gcc_version@%$gcc_version%g
9971 s%@gcc_version_trigger@%$gcc_version_trigger%g
9972 s%@host_exeext@%$host_exeext%g
9973 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9974 s%@host_xm_file_list@%$host_xm_file_list%g
9975 s%@install@%$install%g
9976 s%@lang_options_files@%$lang_options_files%g
9977 s%@lang_specs_files@%$lang_specs_files%g
9978 s%@lang_tree_files@%$lang_tree_files%g
9979 s%@local_prefix@%$local_prefix%g
9980 s%@maybe_use_collect2@%$maybe_use_collect2%g
9981 s%@md_file@%$md_file%g
9982 s%@objc_boehm_gc@%$objc_boehm_gc%g
9983 s%@out_file@%$out_file%g
9984 s%@out_object_file@%$out_object_file%g
9985 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9986 s%@symbolic_link@%$symbolic_link%g
9987 s%@thread_file@%$thread_file%g
9988 s%@tm_file_list@%$tm_file_list%g
9989 s%@will_use_collect2@%$will_use_collect2%g
9990 /@target_overrides@/r $target_overrides
9991 s%@target_overrides@%%g
9992 /@host_overrides@/r $host_overrides
9993 s%@host_overrides@%%g
9994 s%@cross_defines@%$cross_defines%g
9995 /@cross_overrides@/r $cross_overrides
9996 s%@cross_overrides@%%g
9997 /@build_overrides@/r $build_overrides
9998 s%@build_overrides@%%g
9999 /@language_fragments@/r $language_fragments
10000 s%@language_fragments@%%g
10001 /@language_hooks@/r $language_hooks
10002 s%@language_hooks@%%g
10007 cat >> $CONFIG_STATUS <<\EOF
10009 # Split the substitutions into bite-sized pieces for seds with
10010 # small command number limits, like on Digital OSF/1 and HP-UX.
10011 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10012 ac_file
=1 # Number of current file.
10013 ac_beg
=1 # First line for current file.
10014 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10017 while $ac_more_lines; do
10018 if test $ac_beg -gt 1; then
10019 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10021 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10023 if test ! -s conftest.s
$ac_file; then
10024 ac_more_lines
=false
10025 rm -f conftest.s
$ac_file
10027 if test -z "$ac_sed_cmds"; then
10028 ac_sed_cmds
="sed -f conftest.s$ac_file"
10030 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10032 ac_file
=`expr $ac_file + 1`
10034 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10037 if test -z "$ac_sed_cmds"; then
10042 cat >> $CONFIG_STATUS <<EOF
10044 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
10046 cat >> $CONFIG_STATUS <<\EOF
10047 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10050 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10051 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10052 *) ac_file_in
="${ac_file}.in" ;;
10055 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10057 # Remove last slash and all that follows it. Not all systems have dirname.
10058 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10059 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10060 # The file is in a subdirectory.
10061 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10062 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10063 # A "../" for each directory in $ac_dir_suffix.
10064 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10066 ac_dir_suffix
= ac_dots
=
10069 case "$ac_given_srcdir" in
10071 if test -z "$ac_dots"; then top_srcdir
=.
10072 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10073 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10074 *) # Relative path.
10075 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10076 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10080 echo creating
"$ac_file"
10082 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10084 *Makefile
*) ac_comsub
="1i\\
10085 # $configure_input" ;;
10089 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10091 s%@configure_input@%$configure_input%g
10092 s%@srcdir@%$srcdir%g
10093 s%@top_srcdir@%$top_srcdir%g
10094 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10098 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10099 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10101 # ac_d sets the value in "#define NAME VALUE" lines.
10102 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10103 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10106 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10107 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10108 ac_uB
='\([ ]\)%\1#\2define\3'
10111 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10112 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10113 ac_eB
='$%\1#\2define\3'
10117 if test "${CONFIG_HEADERS+set}" != set; then
10119 cat >> $CONFIG_STATUS <<EOF
10120 CONFIG_HEADERS="auto-host.h:config.in"
10122 cat >> $CONFIG_STATUS <<\EOF
10124 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10127 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10128 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10129 *) ac_file_in
="${ac_file}.in" ;;
10132 echo creating
$ac_file
10134 rm -f conftest.frag conftest.
in conftest.out
10135 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10136 cat $ac_file_inputs > conftest.
in
10140 # Transform confdefs.h into a sed script conftest.vals that substitutes
10141 # the proper values into config.h.in to produce config.h. And first:
10142 # Protect against being on the right side of a sed subst in config.status.
10143 # Protect against being in an unquoted here document in config.status.
10144 rm -f conftest.vals
10145 cat > conftest.hdr
<<\EOF
10148 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10152 sed -n -f conftest.hdr confdefs.h > conftest.vals
10155 # This sed command replaces #undef with comments. This is necessary, for
10156 # example, in the case of _POSIX_SOURCE, which is predefined and required
10157 # on some systems where configure will not decide to define it.
10158 cat >> conftest.vals <<\EOF
10159 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10162 # Break up conftest.vals because some shells have a limit on
10163 # the size of here documents, and old seds have small limits too.
10165 rm -f conftest.tail
10168 ac_lines=`grep -c . conftest.vals
`
10169 # grep -c gives empty output for an empty file on some AIX systems.
10170 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10171 # Write a limited-size here document to conftest.frag.
10172 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10173 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10175 sed -f conftest.frag conftest.in > conftest.out
10177 mv conftest.out conftest.in
10178 ' >> $CONFIG_STATUS
10179 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10180 rm -f conftest.vals
10181 mv conftest.tail conftest.vals
10183 rm -f conftest.vals
10185 cat >> $CONFIG_STATUS <<\EOF
10186 rm -f conftest.frag conftest.h
10187 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10188 cat conftest.in >> conftest.h
10190 if cmp -s $ac_file conftest.h 2>/dev/null; then
10191 echo "$ac_file is unchanged"
10194 # Remove last slash and all that follows it. Not all systems have dirname.
10195 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10196 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10197 # The file is in a subdirectory.
10198 test ! -d "$ac_dir" && mkdir "$ac_dir"
10201 mv conftest.h $ac_file
10207 cat >> $CONFIG_STATUS <<EOF
10208 ac_sources="$nls_cv_header_libgt"
10209 ac_dests="$nls_cv_header_intl"
10212 cat >> $CONFIG_STATUS <<\EOF
10213 srcdir=$ac_given_srcdir
10214 while test -n "$ac_sources"; do
10215 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10216 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10218 echo "linking $srcdir/$ac_source to $ac_dest"
10220 if test ! -r $srcdir/$ac_source; then
10221 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10225 # Make relative symlinks.
10226 # Remove last slash and all that follows it. Not all systems have dirname.
10227 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10228 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10229 # The dest file is in a subdirectory.
10230 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10231 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10232 # A "../" for each directory in $ac_dest_dir_suffix.
10233 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10235 ac_dest_dir_suffix= ac_dots=
10239 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10240 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10243 # Make a symlink if possible; otherwise try a hard link.
10244 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10245 ln $srcdir/$ac_source $ac_dest; then :
10247 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10251 cat >> $CONFIG_STATUS <<EOF
10257 target_alias='${target_alias}'
10259 subdirs='${subdirs}'
10260 oldstyle_subdirs='${oldstyle_subdirs}'
10261 symbolic_link='${symbolic_link}'
10262 program_transform_set='${program_transform_set}'
10263 program_transform_name='${program_transform_name}'
10264 dep_host_xmake_file='${dep_host_xmake_file}'
10265 host_xmake_file='${host_xmake_file}'
10266 dep_tmake_file='${dep_tmake_file}'
10267 tmake_file='${tmake_file}'
10268 thread_file='${thread_file}'
10269 gcc_version='${gcc_version}'
10270 gcc_version_trigger='${gcc_version_trigger}'
10271 local_prefix='${local_prefix}'
10272 build_install_headers_dir='${build_install_headers_dir}'
10273 build_exeext='${build_exeext}'
10274 host_exeext='${host_exeext}'
10275 out_file='${out_file}'
10276 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10277 SET_MAKE='${SET_MAKE}'
10278 target_list='${target_list}'
10279 target_overrides='${target_overrides}'
10280 host_overrides='${host_overrides}'
10281 cross_defines='${cross_defines}'
10282 cross_overrides='${cross_overrides}'
10283 build_overrides='${build_overrides}'
10284 cpp_install_dir='${cpp_install_dir}'
10287 cat >> $CONFIG_STATUS <<\EOF
10288 case "$CONFIG_FILES" in *po/Makefile.in*)
10289 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10292 . $srcdir/configure.lang
10293 case x$CONFIG_HEADERS in
10294 xauto-host.h:config.in)
10297 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10298 # bootstrapping and the installation procedure can still use
10299 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10300 # FLAGS_TO_PASS has been modified to solve the problem there.
10301 # This is virtually a duplicate of what happens in configure.lang; we do
10302 # an extra check to make sure this only happens if ln -s can be used.
10303 if test "$symbolic_link" = "ln -s"; then
10304 for d in .. ${subdirs} ; do
10305 if test $d != ..; then
10308 for t in stage1 stage2 stage3 stage4 include
10311 $symbolic_link ../$t $t 2>/dev/null
10317 # Avoid having to add intl to our include paths.
10318 if test -f intl/libintl.h; then
10319 echo creating libintl.h
10320 echo '#include "intl/libintl.h"' >libintl.h
10325 chmod +x $CONFIG_STATUS
10326 rm -fr confdefs* $ac_clean_files
10327 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1