3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-c-cpplib link cpplib directly into C and C++ compilers
45 (HIGHLY EXPERIMENTAL)."
47 --enable-c-mbchar Enable multibyte characters for C and C++."
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 --with-dwarf2 force the default debug format to be DWARF2."
57 --enable-nls use Native Language Support (default)"
59 --disable-nls do not use Native Language Support"
61 --with-included-gettext use the GNU gettext library included here"
63 --with-catgets use catgets functions if available"
65 --disable-win32-registry
66 Disable lookup of installation paths in the
67 Registry on Windows hosts.
68 --enable-win32-registry Enable registry lookup (default).
69 --enable-win32-registry=KEY
70 Use KEY instead of GCC version as the last portion
73 --with-gc={simple,page} Choose the garbage collection mechanism to use
77 select the new abi for g++. You must select an ABI
78 at configuration time, so that the correct runtime
79 support is built. You cannot mix ABIs."
82 enable libstdc++-v3 for building and installation"
84 --enable-maintainer-mode enable make rules and dependencies not useful
85 (and sometimes confusing) to the casual installer"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
109 bindir
='${exec_prefix}/bin'
110 sbindir
='${exec_prefix}/sbin'
111 libexecdir
='${exec_prefix}/libexec'
112 datadir
='${prefix}/share'
113 sysconfdir
='${prefix}/etc'
114 sharedstatedir
='${prefix}/com'
115 localstatedir
='${prefix}/var'
116 libdir
='${exec_prefix}/lib'
117 includedir
='${prefix}/include'
118 oldincludedir
='/usr/include'
119 infodir
='${prefix}/info'
120 mandir
='${prefix}/man'
122 # Initialize some other variables.
125 SHELL
=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
151 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
152 bindir
="$ac_optarg" ;;
154 -build |
--build |
--buil |
--bui |
--bu)
156 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
157 build
="$ac_optarg" ;;
159 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
160 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
161 ac_prev
=cache_file
;;
162 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
163 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
164 cache_file
="$ac_optarg" ;;
166 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
168 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
170 datadir
="$ac_optarg" ;;
172 -disable-* |
--disable-*)
173 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* |
--enable-*)
182 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
195 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
196 |
--exec |
--exe |
--ex)
197 ac_prev
=exec_prefix
;;
198 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
199 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
200 |
--exec=* |
--exe=* |
--ex=*)
201 exec_prefix
="$ac_optarg" ;;
203 -gas |
--gas |
--ga |
--g)
204 # Obsolete; use --with-gas.
207 -help |
--help |
--hel |
--he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --site-file=FILE use FILE as the site file
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 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
391 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
392 sitefile
="$ac_optarg" ;;
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$sitefile"; then
560 if test -z "$CONFIG_SITE"; then
561 if test "x$prefix" != xNONE
; then
562 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
564 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 CONFIG_SITE
="$sitefile"
570 for ac_site_file
in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp
='$CPP $CPPFLAGS'
588 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling
=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
603 ac_n
= ac_c
='\c' ac_t
=
611 symbolic_link
='ln -s'
614 # Check for bogus environment variables.
615 # Test if LIBRARY_PATH contains the notation for the current directory
616 # since this would lead to problems installing/building glibc.
617 # LIBRARY_PATH contains the current directory if one of the following
619 # - one of the terminals (":" and ";") is the first or last sign
620 # - two terminals occur directly after each other
621 # - the path contains an element with a dot in it
622 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
623 echo "configure:624: checking LIBRARY_PATH variable" >&5
624 case ${LIBRARY_PATH} in
625 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
626 library_path_setting
="contains current directory"
629 library_path_setting
="ok"
632 echo "$ac_t""$library_path_setting" 1>&6
633 if test "$library_path_setting" != "ok"; then
634 { echo "configure: error:
635 *** LIBRARY_PATH shouldn't contain the current directory when
636 *** building gcc. Please change the environment variable
637 *** and run configure again." 1>&2; exit 1; }
640 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
641 # since this would lead to problems installing/building glibc.
642 # GCC_EXEC_PREFIX contains the current directory if one of the following
644 # - one of the terminals (":" and ";") is the first or last sign
645 # - two terminals occur directly after each other
646 # - the path contains an element with a dot in it
647 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
648 echo "configure:649: checking GCC_EXEC_PREFIX variable" >&5
649 case ${GCC_EXEC_PREFIX} in
650 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
651 gcc_exec_prefix_setting
="contains current directory"
654 gcc_exec_prefix_setting
="ok"
657 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
658 if test "$gcc_exec_prefix_setting" != "ok"; then
659 { echo "configure: error:
660 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
661 *** building gcc. Please change the environment variable
662 *** and run configure again." 1>&2; exit 1; }
665 # Check for additional parameters
668 # Check whether --with-gnu-ld or --without-gnu-ld was given.
669 if test "${with_gnu_ld+set}" = set; then
670 withval
="$with_gnu_ld"
671 gnu_ld_flag
="$with_gnu_ld"
677 # With pre-defined ld
678 # Check whether --with-ld or --without-ld was given.
679 if test "${with_ld+set}" = set; then
681 DEFAULT_LINKER
="$with_ld"
684 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
685 if test ! -x "$DEFAULT_LINKER"; then
686 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
687 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
690 cat >> confdefs.h
<<EOF
691 #define DEFAULT_LINKER "$DEFAULT_LINKER"
697 # Check whether --with-gnu-as or --without-gnu-as was given.
698 if test "${with_gnu_as+set}" = set; then
699 withval
="$with_gnu_as"
700 gas_flag
="$with_gnu_as"
706 # Check whether --with-as or --without-as was given.
707 if test "${with_as+set}" = set; then
709 DEFAULT_ASSEMBLER
="$with_as"
712 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
713 if test ! -x "$DEFAULT_ASSEMBLER"; then
714 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
715 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
718 cat >> confdefs.h
<<EOF
719 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
725 # Check whether --with-stabs or --without-stabs was given.
726 if test "${with_stabs+set}" = set; then
727 withval
="$with_stabs"
735 # Check whether --with-elf or --without-elf was given.
736 if test "${with_elf+set}" = set; then
744 # Specify the local prefix
746 # Check whether --with-local-prefix or --without-local-prefix was given.
747 if test "${with_local_prefix+set}" = set; then
748 withval
="$with_local_prefix"
750 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
752 *) local_prefix
=$with_local_prefix ;;
757 # Default local prefix if it is empty
758 if test x
$local_prefix = x
; then
759 local_prefix
=/usr
/local
762 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
763 # passed in by the toplevel make and thus we'd get different behavior
764 # depending on where we built the sources.
766 # Specify the g++ header file directory
767 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
768 if test "${with_gxx_include_dir+set}" = set; then
769 withval
="$with_gxx_include_dir"
771 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
773 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
778 if test x
${gcc_gxx_include_dir} = x
; then
779 if test x
${enable_version_specific_runtime_libs} = xyes
; then
780 gcc_gxx_include_dir
='${libsubdir}/include/g++'
782 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
783 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
787 # Enable expensive internal checks
788 # Check whether --enable-checking or --disable-checking was given.
789 if test "${enable_checking+set}" = set; then
790 enableval
="$enable_checking"
795 ac_gc_always_collect
=
796 case "${enableval}" in
797 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
799 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
800 set fnord
$enableval; shift
805 misc
) ac_checking
=1 ;;
806 tree
) ac_tree_checking
=1 ;;
807 rtl
) ac_rtl_checking
=1 ;;
808 gc
) ac_gc_checking
=1 ;;
809 gcac
) ac_gc_always_collect
=1 ;;
810 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
817 # Enable some checks by default for development versions of GCC
818 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
821 if test x
$ac_checking != x
; then
822 cat >> confdefs.h
<<\EOF
823 #define ENABLE_CHECKING 1
827 if test x
$ac_tree_checking != x
; then
828 cat >> confdefs.h
<<\EOF
829 #define ENABLE_TREE_CHECKING 1
833 if test x
$ac_rtl_checking != x
; then
834 cat >> confdefs.h
<<\EOF
835 #define ENABLE_RTL_CHECKING 1
839 if test x
$ac_gc_checking != x
; then
840 cat >> confdefs.h
<<\EOF
841 #define ENABLE_GC_CHECKING 1
845 if test x
$ac_gc_always_collect != x
; then
846 cat >> confdefs.h
<<\EOF
847 #define ENABLE_GC_ALWAYS_COLLECT 1
853 # Check whether --enable-cpp or --disable-cpp was given.
854 if test "${enable_cpp+set}" = set; then
855 enableval
="$enable_cpp"
862 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
863 if test "${with_cpp_install_dir+set}" = set; then
864 withval
="$with_cpp_install_dir"
865 if test x
$withval = xyes
; then
866 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
867 elif test x
$withval != xno
; then
868 cpp_install_dir
=$withval
873 # Link cpplib into the compiler proper, for C/C++/ObjC.
874 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
875 if test "${enable_c_cpplib+set}" = set; then
876 enableval
="$enable_c_cpplib"
877 if test x
$enable_c_cpplib != xno
; then
878 extra_c_objs
="${extra_c_objs} libcpp.a"
879 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
880 cat >> confdefs.h
<<\EOF
888 # Enable Multibyte Characters for C/C++
889 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
890 if test "${enable_c_mbchar+set}" = set; then
891 enableval
="$enable_c_mbchar"
892 if test x
$enable_c_mbchar != xno
; then
893 cat >> confdefs.h
<<\EOF
894 #define MULTIBYTE_CHARS 1
902 # Pass with no value to take the default
903 # Pass with a value to specify a thread package
904 # Check whether --enable-threads or --disable-threads was given.
905 if test "${enable_threads+set}" = set; then
906 enableval
="$enable_threads"
907 if test x
$enable_threads = xno
; then
915 enable_threads_flag
=$enable_threads
916 # Check if a valid thread package
917 case x
${enable_threads_flag} in
920 target_thread_file
='single'
924 target_thread_file
=''
926 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
927 xsolaris | xwin32 | xdce | xvxworks
)
928 target_thread_file
=$enable_threads_flag
931 echo "$enable_threads is an unknown thread package" 1>&2
936 # Check whether --enable-objc-gc or --disable-objc-gc was given.
937 if test "${enable_objc_gc+set}" = set; then
938 enableval
="$enable_objc_gc"
939 if test x
$enable_objc_gc = xno
; then
949 # Check whether --with-dwarf2 or --without-dwarf2 was given.
950 if test "${with_dwarf2+set}" = set; then
951 withval
="$with_dwarf2"
952 dwarf2
="$with_dwarf2"
958 # Determine the host, build, and target systems
960 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
961 if test -f $ac_dir/install-sh
; then
963 ac_install_sh
="$ac_aux_dir/install-sh -c"
965 elif test -f $ac_dir/install.sh
; then
967 ac_install_sh
="$ac_aux_dir/install.sh -c"
971 if test -z "$ac_aux_dir"; then
972 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
974 ac_config_guess
=$ac_aux_dir/config.guess
975 ac_config_sub
=$ac_aux_dir/config.sub
976 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
979 # Do some error checking and defaulting for the host and target type.
981 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
984 # 1. You are not allowed to specify --host, --target, and nonopt at the
986 # 2. Host defaults to nonopt.
987 # 3. If nonopt is not specified, then host defaults to the current host,
988 # as determined by config.guess.
989 # 4. Target and build default to nonopt.
990 # 5. If nonopt is not specified, then target and build default to host.
992 # The aliases save the names the user supplied, while $host etc.
993 # will get canonicalized.
994 case $host---$target---$nonopt in
995 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
996 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1000 # Make sure we can run config.sub.
1001 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1002 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1005 echo $ac_n "checking host system type""... $ac_c" 1>&6
1006 echo "configure:1007: checking host system type" >&5
1009 case "$host_alias" in
1013 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1016 *) host_alias
=$nonopt ;;
1020 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024 echo "$ac_t""$host" 1>&6
1026 echo $ac_n "checking target system type""... $ac_c" 1>&6
1027 echo "configure:1028: checking target system type" >&5
1029 target_alias
=$target
1030 case "$target_alias" in
1033 NONE
) target_alias
=$host_alias ;;
1034 *) target_alias
=$nonopt ;;
1038 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1039 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042 echo "$ac_t""$target" 1>&6
1044 echo $ac_n "checking build system type""... $ac_c" 1>&6
1045 echo "configure:1046: checking build system type" >&5
1048 case "$build_alias" in
1051 NONE
) build_alias
=$host_alias ;;
1052 *) build_alias
=$nonopt ;;
1056 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1057 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 echo "$ac_t""$build" 1>&6
1062 test "$host_alias" != "$target_alias" &&
1063 test "$program_prefix$program_suffix$program_transform_name" = \
1065 program_prefix
=${target_alias}-
1068 # Find the native compiler
1069 # Extract the first word of "gcc", so it can be a program name with args.
1070 set dummy gcc
; ac_word
=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC
="$CC" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1081 for ac_dir
in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir
=.
1083 if test -f $ac_dir/$ac_word; then
1092 if test -n "$CC"; then
1093 echo "$ac_t""$CC" 1>&6
1095 echo "$ac_t""no" 1>&6
1098 if test -z "$CC"; then
1099 # Extract the first word of "cc", so it can be a program name with args.
1100 set dummy cc
; ac_word
=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 if test -n "$CC"; then
1107 ac_cv_prog_CC
="$CC" # Let the user override the test.
1109 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1112 for ac_dir
in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir
=.
1114 if test -f $ac_dir/$ac_word; then
1115 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1116 ac_prog_rejected
=yes
1124 if test $ac_prog_rejected = yes; then
1125 # We found a bogon in the path, so make sure we never use it.
1126 set dummy
$ac_cv_prog_CC
1128 if test $# -gt 0; then
1129 # We chose a different compiler from the bogus one.
1130 # However, it has the same basename, so the bogon will be chosen
1131 # first if we set CC to just the basename; use the full file name.
1133 set dummy
"$ac_dir/$ac_word" "$@"
1141 if test -n "$CC"; then
1142 echo "$ac_t""$CC" 1>&6
1144 echo "$ac_t""no" 1>&6
1147 if test -z "$CC"; then
1148 case "`uname -s`" in
1150 # Extract the first word of "cl", so it can be a program name with args.
1151 set dummy cl
; ac_word
=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$CC"; then
1158 ac_cv_prog_CC
="$CC" # Let the user override the test.
1160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1162 for ac_dir
in $ac_dummy; do
1163 test -z "$ac_dir" && ac_dir
=.
1164 if test -f $ac_dir/$ac_word; then
1173 if test -n "$CC"; then
1174 echo "$ac_t""$CC" 1>&6
1176 echo "$ac_t""no" 1>&6
1181 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1184 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1189 ac_cpp
='$CPP $CPPFLAGS'
1190 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1191 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1192 cross_compiling
=$ac_cv_prog_cc_cross
1194 cat > conftest.
$ac_ext << EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1201 if { (eval echo configure
:1202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1202 ac_cv_prog_cc_works
=yes
1203 # If we can't run a trivial program, we are probably using a cross compiler.
1204 if (.
/conftest
; exit) 2>/dev
/null
; then
1205 ac_cv_prog_cc_cross
=no
1207 ac_cv_prog_cc_cross
=yes
1210 echo "configure: failed program was:" >&5
1211 cat conftest.
$ac_ext >&5
1212 ac_cv_prog_cc_works
=no
1216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1217 ac_cpp
='$CPP $CPPFLAGS'
1218 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1219 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1220 cross_compiling
=$ac_cv_prog_cc_cross
1222 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1223 if test $ac_cv_prog_cc_works = no
; then
1224 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1226 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1228 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1229 cross_compiling
=$ac_cv_prog_cc_cross
1231 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether we are using GNU C" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 cat > conftest.c
<<EOF
1241 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1248 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1250 if test $ac_cv_prog_gcc = yes; then
1256 ac_test_CFLAGS
="${CFLAGS+set}"
1257 ac_save_CFLAGS
="$CFLAGS"
1259 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether ${CC-cc} accepts -g" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 echo 'void f(){}' > conftest.c
1265 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1274 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1275 if test "$ac_test_CFLAGS" = set; then
1276 CFLAGS
="$ac_save_CFLAGS"
1277 elif test $ac_cv_prog_cc_g = yes; then
1278 if test "$GCC" = yes; then
1284 if test "$GCC" = yes; then
1291 if test "x$CC" != xcc
; then
1292 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1293 echo "configure:1294: checking whether $CC and cc understand -c and -o together" >&5
1295 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether cc understands -c and -o together" >&5
1298 set dummy
$CC; ac_cc
="`echo $2 |
1299 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1300 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1303 echo 'foo(){}' > conftest.c
1304 # Make sure it works both with $CC and with simple cc.
1305 # We do the test twice because some compilers refuse to overwrite an
1306 # existing .o file with -o, though they will create one.
1307 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1308 if { (eval echo configure
:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1309 test -f conftest.o
&& { (eval echo configure
:1310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1311 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1312 if test "x$CC" != xcc
; then
1313 # Test first that cc exists at all.
1314 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1315 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1316 if { (eval echo configure
:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1317 test -f conftest.o
&& { (eval echo configure
:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1322 # cc exists but doesn't like -o.
1323 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1328 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1333 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1336 echo "$ac_t""no" 1>&6
1337 cat >> confdefs.h
<<\EOF
1338 #define NO_MINUS_C_MINUS_O 1
1343 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1344 NO_MINUS_C_MINUS_O
=yes
1348 echo $ac_n "checking for long double""... $ac_c" 1>&6
1349 echo "configure:1350: checking for long double" >&5
1350 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 if test "$GCC" = yes; then
1354 gcc_cv_c_long_double
=yes
1356 cat > conftest.
$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1361 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1362 long double foo = 0.0;
1363 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1364 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1367 if { (eval echo configure
:1368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1369 gcc_cv_c_long_double
=yes
1371 echo "configure: failed program was:" >&5
1372 cat conftest.
$ac_ext >&5
1374 gcc_cv_c_long_double
=no
1380 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1381 if test $gcc_cv_c_long_double = yes; then
1382 cat >> confdefs.h
<<\EOF
1383 #define HAVE_LONG_DOUBLE 1
1389 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1390 echo "configure:1391: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1391 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 save_CFLAGS
="$CFLAGS"
1395 CFLAGS
="-Wno-long-long"
1396 cat > conftest.
$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1404 if { (eval echo configure
:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1406 ac_cv_prog_cc_no_long_long
=yes
1408 echo "configure: failed program was:" >&5
1409 cat conftest.
$ac_ext >&5
1411 ac_cv_prog_cc_no_long_long
=no
1414 CFLAGS
="$save_CFLAGS"
1417 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1419 # If the native compiler is GCC, we can enable warnings even in stage1.
1420 # That's useful for people building cross-compilers, or just running a
1422 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1423 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1424 if test "x$GCC" = "xyes"; then
1425 if test $ac_cv_prog_cc_no_long_long = yes; then
1426 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1429 stage1_warn_cflags
=""
1434 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1435 echo "configure:1436: checking whether ${MAKE-make} sets \${MAKE}" >&5
1436 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1437 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 cat > conftestmake
<<\EOF
1442 @
echo 'ac_maketemp="${MAKE}"'
1444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1445 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1446 if test -n "$ac_maketemp"; then
1447 eval ac_cv_prog_make_
${ac_make}_set
=yes
1449 eval ac_cv_prog_make_
${ac_make}_set
=no
1453 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1457 echo "$ac_t""no" 1>&6
1458 SET_MAKE
="MAKE=${MAKE-make}"
1462 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1463 echo "configure:1464: checking whether a default assembler was specified" >&5
1464 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1465 if test x
"$gas_flag" = x
"no"; then
1466 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1468 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1471 echo "$ac_t""no" 1>&6
1474 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1475 echo "configure:1476: checking whether a default linker was specified" >&5
1476 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1477 if test x
"$gnu_ld_flag" = x
"no"; then
1478 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1480 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1483 echo "$ac_t""no" 1>&6
1486 echo $ac_n "checking for inline""... $ac_c" 1>&6
1487 echo "configure:1488: checking for inline" >&5
1488 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1492 for ac_kw
in inline __inline__ __inline
; do
1493 cat > conftest.
$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1501 if { (eval echo configure
:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1503 ac_cv_c_inline
=$ac_kw; break
1505 echo "configure: failed program was:" >&5
1506 cat conftest.
$ac_ext >&5
1513 echo "$ac_t""$ac_cv_c_inline" 1>&6
1514 case "$ac_cv_c_inline" in
1516 no
) cat >> confdefs.h
<<\EOF
1520 *) cat >> confdefs.h
<<EOF
1521 #define inline $ac_cv_c_inline
1527 # Find some useful tools
1528 for ac_prog
in mawk gawk nawk
awk
1530 # Extract the first word of "$ac_prog", so it can be a program name with args.
1531 set dummy
$ac_prog; ac_word
=$2
1532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1533 echo "configure:1534: checking for $ac_word" >&5
1534 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 if test -n "$AWK"; then
1538 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1540 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1542 for ac_dir
in $ac_dummy; do
1543 test -z "$ac_dir" && ac_dir
=.
1544 if test -f $ac_dir/$ac_word; then
1545 ac_cv_prog_AWK
="$ac_prog"
1552 AWK
="$ac_cv_prog_AWK"
1553 if test -n "$AWK"; then
1554 echo "$ac_t""$AWK" 1>&6
1556 echo "$ac_t""no" 1>&6
1559 test -n "$AWK" && break
1562 # Extract the first word of "flex", so it can be a program name with args.
1563 set dummy flex
; ac_word
=$2
1564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1565 echo "configure:1566: checking for $ac_word" >&5
1566 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 if test -n "$LEX"; then
1570 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1572 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1574 for ac_dir
in $ac_dummy; do
1575 test -z "$ac_dir" && ac_dir
=.
1576 if test -f $ac_dir/$ac_word; then
1577 ac_cv_prog_LEX
="flex"
1582 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1585 LEX
="$ac_cv_prog_LEX"
1586 if test -n "$LEX"; then
1587 echo "$ac_t""$LEX" 1>&6
1589 echo "$ac_t""no" 1>&6
1592 if test -z "$LEXLIB"
1598 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1599 echo "configure:1600: checking for yywrap in -l$ac_lib" >&5
1600 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 ac_save_LIBS
="$LIBS"
1605 LIBS
="-l$ac_lib $LIBS"
1606 cat > conftest.
$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 /* Override any gcc2 internal prototype to avoid an error. */
1610 /* We use char because int might match the return type of a gcc2
1611 builtin and then its argument prototype would still apply. */
1618 if { (eval echo configure
:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1620 eval "ac_cv_lib_$ac_lib_var=yes"
1622 echo "configure: failed program was:" >&5
1623 cat conftest.
$ac_ext >&5
1625 eval "ac_cv_lib_$ac_lib_var=no"
1628 LIBS
="$ac_save_LIBS"
1631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1635 echo "$ac_t""no" 1>&6
1640 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1641 echo "configure:1642: checking whether ln works" >&5
1642 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 rm -f conftestdata_t
1646 echo >conftestdata_f
1647 if ln conftestdata_f conftestdata_t
2>/dev
/null
1651 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1653 gcc_cv_prog_LN
="ln -s"
1658 rm -f conftestdata_f conftestdata_t
1661 LN
="$gcc_cv_prog_LN"
1662 if test "$gcc_cv_prog_LN" = "ln"; then
1663 echo "$ac_t""yes" 1>&6
1665 if test "$gcc_cv_prog_LN" = "ln -s"; then
1666 echo "$ac_t""no, using ln -s" 1>&6
1668 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1672 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether ln -s works" >&5
1674 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 rm -f conftestdata_t
1678 echo >conftestdata_f
1679 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1681 gcc_cv_prog_LN_S
="ln -s"
1683 if ln conftestdata_f conftestdata_t
2>/dev
/null
1690 rm -f conftestdata_f conftestdata_t
1693 LN_S
="$gcc_cv_prog_LN_S"
1694 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1695 echo "$ac_t""yes" 1>&6
1697 if test "$gcc_cv_prog_LN_S" = "ln"; then
1698 echo "$ac_t""no, using ln" 1>&6
1700 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1704 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1705 echo "configure:1706: checking for volatile" >&5
1706 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 cat > conftest.
$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1717 if { (eval echo configure
:1718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1719 gcc_cv_c_volatile
=yes
1721 echo "configure: failed program was:" >&5
1722 cat conftest.
$ac_ext >&5
1724 gcc_cv_c_volatile
=no
1729 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1730 if test $gcc_cv_c_volatile = yes ; then
1731 cat >> confdefs.h
<<\EOF
1732 #define HAVE_VOLATILE 1
1737 # Extract the first word of "ranlib", so it can be a program name with args.
1738 set dummy ranlib
; ac_word
=$2
1739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_word" >&5
1741 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 if test -n "$RANLIB"; then
1745 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1749 for ac_dir
in $ac_dummy; do
1750 test -z "$ac_dir" && ac_dir
=.
1751 if test -f $ac_dir/$ac_word; then
1752 ac_cv_prog_RANLIB
="ranlib"
1757 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1760 RANLIB
="$ac_cv_prog_RANLIB"
1761 if test -n "$RANLIB"; then
1762 echo "$ac_t""$RANLIB" 1>&6
1764 echo "$ac_t""no" 1>&6
1767 for ac_prog
in 'bison -y' byacc
1769 # Extract the first word of "$ac_prog", so it can be a program name with args.
1770 set dummy
$ac_prog; ac_word
=$2
1771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_word" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 if test -n "$YACC"; then
1777 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1779 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1781 for ac_dir
in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir
=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_prog_YACC
="$ac_prog"
1791 YACC
="$ac_cv_prog_YACC"
1792 if test -n "$YACC"; then
1793 echo "$ac_t""$YACC" 1>&6
1795 echo "$ac_t""no" 1>&6
1798 test -n "$YACC" && break
1800 test -n "$YACC" || YACC
="yacc"
1802 # Find a good install program. We prefer a C program (faster),
1803 # so one script is as good as another. But avoid the broken or
1804 # incompatible versions:
1805 # SysV /etc/install, /usr/sbin/install
1806 # SunOS /usr/etc/install
1807 # IRIX /sbin/install
1809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1811 # ./install, which can be erroneously created by make from ./install.sh.
1812 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1813 echo "configure:1814: checking for a BSD compatible install" >&5
1814 if test -z "$INSTALL"; then
1815 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1819 for ac_dir
in $PATH; do
1820 # Account for people who put trailing slashes in PATH elements.
1822 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1824 # OSF1 and SCO ODT 3.0 have their own names for install.
1825 for ac_prog
in ginstall scoinst
install; do
1826 if test -f $ac_dir/$ac_prog; then
1827 if test $ac_prog = install &&
1828 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1829 # AIX install. It has an incompatible calling convention.
1830 # OSF/1 installbsd also uses dspmsg, but is usable.
1833 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1844 if test "${ac_cv_path_install+set}" = set; then
1845 INSTALL
="$ac_cv_path_install"
1847 # As a last resort, use the slow shell script. We don't cache a
1848 # path for INSTALL within a source directory, because that will
1849 # break other packages using the cache if that directory is
1850 # removed, or if the path is relative.
1851 INSTALL
="$ac_install_sh"
1854 echo "$ac_t""$INSTALL" 1>&6
1856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1857 # It thinks the first close brace ends the variable substitution.
1858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1860 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1863 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1864 echo "configure:1865: checking how to run the C preprocessor" >&5
1865 # On Suns, sometimes $CPP names a directory.
1866 if test -n "$CPP" && test -d "$CPP"; then
1869 if test -z "$CPP"; then
1870 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 # This must be in double quotes, not single quotes, because CPP may get
1874 # substituted into the Makefile and "${CC-cc}" will confuse make.
1876 # On the NeXT, cc -E runs the code through the compiler's parser,
1877 # not just through cpp.
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1884 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1885 { (eval echo configure
:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1886 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1887 if test -z "$ac_err"; then
1891 echo "configure: failed program was:" >&5
1892 cat conftest.
$ac_ext >&5
1894 CPP
="${CC-cc} -E -traditional-cpp"
1895 cat > conftest.
$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1901 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1902 { (eval echo configure
:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1903 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1904 if test -z "$ac_err"; then
1908 echo "configure: failed program was:" >&5
1909 cat conftest.
$ac_ext >&5
1911 CPP
="${CC-cc} -nologo -E"
1912 cat > conftest.
$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1918 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1919 { (eval echo configure
:1920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1920 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1921 if test -z "$ac_err"; then
1925 echo "configure: failed program was:" >&5
1926 cat conftest.
$ac_ext >&5
1935 ac_cv_prog_CPP
="$CPP"
1937 CPP
="$ac_cv_prog_CPP"
1939 ac_cv_prog_CPP
="$CPP"
1941 echo "$ac_t""$CPP" 1>&6
1943 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1944 echo "configure:1945: checking for ANSI C header files" >&5
1945 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 cat > conftest.
$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1956 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure
:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1961 ac_cv_header_stdc
=yes
1964 echo "configure: failed program was:" >&5
1965 cat conftest.
$ac_ext >&5
1967 ac_cv_header_stdc
=no
1971 if test $ac_cv_header_stdc = yes; then
1972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1973 cat > conftest.
$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1979 egrep "memchr" >/dev
/null
2>&1; then
1983 ac_cv_header_stdc
=no
1989 if test $ac_cv_header_stdc = yes; then
1990 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1991 cat > conftest.
$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1997 egrep "free" >/dev
/null
2>&1; then
2001 ac_cv_header_stdc
=no
2007 if test $ac_cv_header_stdc = yes; then
2008 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2009 if test "$cross_compiling" = yes; then
2012 cat > conftest.
$ac_ext <<EOF
2013 #line 2014 "configure"
2014 #include "confdefs.h"
2016 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2017 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2019 int main () { int i; for (i = 0; i < 256; i++)
2020 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2024 if { (eval echo configure
:2025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2028 echo "configure: failed program was:" >&5
2029 cat conftest.
$ac_ext >&5
2031 ac_cv_header_stdc
=no
2039 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2040 if test $ac_cv_header_stdc = yes; then
2041 cat >> confdefs.h
<<\EOF
2042 #define STDC_HEADERS 1
2047 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2048 echo "configure:2049: checking whether time.h and sys/time.h may both be included" >&5
2049 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 cat > conftest.
$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 #include <sys/types.h>
2056 #include <sys/time.h>
2062 if { (eval echo configure
:2063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 ac_cv_header_time
=yes
2066 echo "configure: failed program was:" >&5
2067 cat conftest.
$ac_ext >&5
2069 ac_cv_header_time
=no
2074 echo "$ac_t""$ac_cv_header_time" 1>&6
2075 if test $ac_cv_header_time = yes; then
2076 cat >> confdefs.h
<<\EOF
2077 #define TIME_WITH_SYS_TIME 1
2082 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2083 echo "configure:2084: checking whether string.h and strings.h may both be included" >&5
2084 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.
$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2091 #include <strings.h>
2096 if { (eval echo configure
:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2098 gcc_cv_header_string
=yes
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 gcc_cv_header_string
=no
2108 echo "$ac_t""$gcc_cv_header_string" 1>&6
2109 if test $gcc_cv_header_string = yes; then
2110 cat >> confdefs.h
<<\EOF
2111 #define STRING_WITH_STRINGS 1
2116 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2117 echo "configure:2118: checking for sys/wait.h that is POSIX.1 compatible" >&5
2118 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 #include <sys/types.h>
2125 #include <sys/wait.h>
2127 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2130 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2135 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2138 if { (eval echo configure
:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2140 ac_cv_header_sys_wait_h
=yes
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2145 ac_cv_header_sys_wait_h
=no
2150 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2151 if test $ac_cv_header_sys_wait_h = yes; then
2152 cat >> confdefs.h
<<\EOF
2153 #define HAVE_SYS_WAIT_H 1
2158 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2159 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2160 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2163 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_hdr" >&5
2166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2174 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2175 { (eval echo configure
:2176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2176 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2177 if test -z "$ac_err"; then
2179 eval "ac_cv_header_$ac_safe=yes"
2182 echo "configure: failed program was:" >&5
2183 cat conftest.
$ac_ext >&5
2185 eval "ac_cv_header_$ac_safe=no"
2189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2190 echo "$ac_t""yes" 1>&6
2191 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2192 cat >> confdefs.h
<<EOF
2193 #define $ac_tr_hdr 1
2197 echo "$ac_t""no" 1>&6
2202 # Check for thread headers.
2203 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2204 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2205 echo "configure:2206: checking for thread.h" >&5
2206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.
$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2214 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2215 { (eval echo configure
:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2216 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2217 if test -z "$ac_err"; then
2219 eval "ac_cv_header_$ac_safe=yes"
2222 echo "configure: failed program was:" >&5
2223 cat conftest.
$ac_ext >&5
2225 eval "ac_cv_header_$ac_safe=no"
2229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2233 echo "$ac_t""no" 1>&6
2237 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2238 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2239 echo "configure:2240: checking for pthread.h" >&5
2240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <pthread.h>
2248 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2249 { (eval echo configure
:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2250 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2251 if test -z "$ac_err"; then
2253 eval "ac_cv_header_$ac_safe=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.
$ac_ext >&5
2259 eval "ac_cv_header_$ac_safe=no"
2263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2267 echo "$ac_t""no" 1>&6
2272 # See if GNAT has been installed
2273 # Extract the first word of "gnatbind", so it can be a program name with args.
2274 set dummy gnatbind
; ac_word
=$2
2275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_word" >&5
2277 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 if test -n "$gnat"; then
2281 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2283 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2285 for ac_dir
in $ac_dummy; do
2286 test -z "$ac_dir" && ac_dir
=.
2287 if test -f $ac_dir/$ac_word; then
2288 ac_cv_prog_gnat
="yes"
2293 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2296 gnat
="$ac_cv_prog_gnat"
2297 if test -n "$gnat"; then
2298 echo "$ac_t""$gnat" 1>&6
2300 echo "$ac_t""no" 1>&6
2304 # Do we have a single-tree copy of texinfo?
2305 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2306 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2307 gcc_cv_prog_makeinfo_modern
=yes
2308 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2310 # See if makeinfo has been installed and is modern enough
2311 # that we can use it.
2312 # Extract the first word of "makeinfo", so it can be a program name with args.
2313 set dummy makeinfo
; ac_word
=$2
2314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_word" >&5
2316 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 if test -n "$MAKEINFO"; then
2320 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2322 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2324 for ac_dir
in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir
=.
2326 if test -f $ac_dir/$ac_word; then
2327 ac_cv_prog_MAKEINFO
="makeinfo"
2334 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2335 if test -n "$MAKEINFO"; then
2336 echo "$ac_t""$MAKEINFO" 1>&6
2338 echo "$ac_t""no" 1>&6
2341 if test -n "$MAKEINFO"; then
2342 # Found it, now check the version.
2343 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2344 echo "configure:2345: checking for modern makeinfo" >&5
2345 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2349 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2350 echo "configure:2351: version of makeinfo is $ac_prog_version" >&5
2351 case $ac_prog_version in
2352 '') gcc_cv_prog_makeinfo_modern
=no
;;
2353 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2354 gcc_cv_prog_makeinfo_modern
=yes;;
2355 *) gcc_cv_prog_makeinfo_modern
=no
;;
2360 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2362 gcc_cv_prog_makeinfo_modern
=no
2367 if test $gcc_cv_prog_makeinfo_modern = no
; then
2368 echo "configure: warning:
2369 *** Makeinfo is missing or too old.
2370 *** Info documentation will not be built or installed." 1>&2
2375 INSTALL_INFO
=install-info
2378 # See if the stage1 system preprocessor understands the ANSI C
2379 # preprocessor stringification operator.
2382 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2383 echo "configure:2384: checking for preprocessor stringizing operator" >&5
2384 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2393 char *s = x(teststring);
2396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2397 egrep "#teststring" >/dev
/null
2>&1; then
2399 ac_cv_c_stringize
=no
2402 ac_cv_c_stringize
=yes
2408 if test "${ac_cv_c_stringize}" = yes
2410 cat >> confdefs.h
<<\EOF
2411 #define HAVE_STRINGIZE 1
2415 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2418 # Use <inttypes.h> only if it exists,
2419 # doesn't clash with <sys/types.h>, and declares intmax_t.
2420 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2421 echo "configure:2422: checking for inttypes.h" >&5
2422 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 #include <sys/types.h>
2429 #include <inttypes.h>
2434 if { (eval echo configure
:2435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2436 gcc_cv_header_inttypes_h
=yes
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2441 gcc_cv_header_inttypes_h
=no
2446 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2447 if test $gcc_cv_header_inttypes_h = yes; then
2448 cat >> confdefs.h
<<\EOF
2449 #define HAVE_INTTYPES_H 1
2455 # Determine if enumerated bitfields are unsigned. ISO C says they can
2456 # be either signed or unsigned.
2458 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2459 echo "configure:2460: checking for unsigned enumerated bitfields" >&5
2460 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 if test "$cross_compiling" = yes; then
2464 gcc_cv_enum_bf_unsigned
=yes
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2470 enum t { BLAH = 128 } ;
2471 struct s_t { enum t member : 8; } s ;
2475 if (s.member < 0) exit(1);
2480 if { (eval echo configure
:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2482 gcc_cv_enum_bf_unsigned
=yes
2484 echo "configure: failed program was:" >&5
2485 cat conftest.
$ac_ext >&5
2487 gcc_cv_enum_bf_unsigned
=no
2494 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2495 if test $gcc_cv_enum_bf_unsigned = yes; then
2496 cat >> confdefs.h
<<\EOF
2497 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2502 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2503 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2504 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2505 fputs_unlocked getrusage valloc
2507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_func" >&5
2509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.
$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 /* System header to define __stub macros and hopefully few prototypes,
2516 which can conflict with char $ac_func(); below. */
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2525 /* The GNU C library defines this for functions which it implements
2526 to always fail with ENOSYS. Some functions are actually named
2527 something starting with __ and the normal name is an alias. */
2528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2536 if { (eval echo configure
:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2538 eval "ac_cv_func_$ac_func=yes"
2540 echo "configure: failed program was:" >&5
2541 cat conftest.
$ac_ext >&5
2543 eval "ac_cv_func_$ac_func=no"
2548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2549 echo "$ac_t""yes" 1>&6
2550 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2551 cat >> confdefs.h
<<EOF
2552 #define $ac_tr_func 1
2556 echo "$ac_t""no" 1>&6
2561 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2562 echo "configure:2563: checking for ssize_t" >&5
2563 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.
$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 #include <sys/types.h>
2575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2576 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2578 ac_cv_type_ssize_t
=yes
2581 ac_cv_type_ssize_t
=no
2586 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2587 if test $ac_cv_type_ssize_t = no
; then
2588 cat >> confdefs.h
<<\EOF
2595 # Try to determine the array type of the second argument of getgroups
2596 # for the target system (int or gid_t).
2597 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2598 echo "configure:2599: checking for uid_t in sys/types.h" >&5
2599 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.
$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 #include <sys/types.h>
2607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608 egrep "uid_t" >/dev
/null
2>&1; then
2610 ac_cv_type_uid_t
=yes
2619 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2620 if test $ac_cv_type_uid_t = no
; then
2621 cat >> confdefs.h
<<\EOF
2625 cat >> confdefs.h
<<\EOF
2631 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2632 echo "configure:2633: checking type of array argument to getgroups" >&5
2633 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 if test "$cross_compiling" = yes; then
2637 ac_cv_type_getgroups
=cross
2639 cat > conftest.
$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2643 /* Thanks to Mike Rendell for this test. */
2644 #include <sys/types.h>
2647 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2652 union { gid_t gval; long lval; } val;
2655 for (i = 0; i < NGID; i++)
2656 gidset[i] = val.gval;
2657 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2659 /* Exit non-zero if getgroups seems to require an array of ints. This
2660 happens when gid_t is short but getgroups modifies an array of ints. */
2661 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2665 if { (eval echo configure
:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2667 ac_cv_type_getgroups
=gid_t
2669 echo "configure: failed program was:" >&5
2670 cat conftest.
$ac_ext >&5
2672 ac_cv_type_getgroups
=int
2677 if test $ac_cv_type_getgroups = cross
; then
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2684 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2686 ac_cv_type_getgroups
=gid_t
2689 ac_cv_type_getgroups
=int
2696 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2697 cat >> confdefs.h
<<EOF
2698 #define GETGROUPS_T $ac_cv_type_getgroups
2702 if test "${target}" = "${build}"; then
2703 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2706 # This condition may need some tweaking. It should include all
2707 # targets where the array type of the second argument of getgroups
2708 # is int and the type of gid_t is not equivalent to int.
2709 *-*-sunos* |
*-*-ultrix*)
2710 TARGET_GETGROUPS_T
=int
2713 TARGET_GETGROUPS_T
=gid_t
2719 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2720 echo "configure:2721: checking for vprintf" >&5
2721 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 cat > conftest.
$ac_ext <<EOF
2725 #line 2726 "configure"
2726 #include "confdefs.h"
2727 /* System header to define __stub macros and hopefully few prototypes,
2728 which can conflict with char vprintf(); below. */
2730 /* Override any gcc2 internal prototype to avoid an error. */
2731 /* We use char because int might match the return type of a gcc2
2732 builtin and then its argument prototype would still apply. */
2737 /* The GNU C library defines this for functions which it implements
2738 to always fail with ENOSYS. Some functions are actually named
2739 something starting with __ and the normal name is an alias. */
2740 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2748 if { (eval echo configure
:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2750 eval "ac_cv_func_vprintf=yes"
2752 echo "configure: failed program was:" >&5
2753 cat conftest.
$ac_ext >&5
2755 eval "ac_cv_func_vprintf=no"
2760 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 cat >> confdefs.h
<<\EOF
2763 #define HAVE_VPRINTF 1
2767 echo "$ac_t""no" 1>&6
2770 if test "$ac_cv_func_vprintf" != yes; then
2771 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2772 echo "configure:2773: checking for _doprnt" >&5
2773 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2776 cat > conftest.
$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2779 /* System header to define __stub macros and hopefully few prototypes,
2780 which can conflict with char _doprnt(); below. */
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2789 /* The GNU C library defines this for functions which it implements
2790 to always fail with ENOSYS. Some functions are actually named
2791 something starting with __ and the normal name is an alias. */
2792 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2800 if { (eval echo configure
:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2802 eval "ac_cv_func__doprnt=yes"
2804 echo "configure: failed program was:" >&5
2805 cat conftest.
$ac_ext >&5
2807 eval "ac_cv_func__doprnt=no"
2812 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 cat >> confdefs.h
<<\EOF
2815 #define HAVE_DOPRNT 1
2819 echo "$ac_t""no" 1>&6
2826 if test $ac_cv_func_vprintf != yes ; then
2828 if test $ac_cv_func__doprnt != yes ; then
2835 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2836 echo "configure:2837: checking whether the printf functions support %p" >&5
2837 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2840 if test "$cross_compiling" = yes; then
2841 gcc_cv_func_printf_ptr
=no
2843 cat > conftest.
$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2851 char *p = buf, *q = NULL;
2852 sprintf(buf, "%p", p);
2853 sscanf(buf, "%p", &q);
2857 if { (eval echo configure
:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2859 gcc_cv_func_printf_ptr
=yes
2861 echo "configure: failed program was:" >&5
2862 cat conftest.
$ac_ext >&5
2864 gcc_cv_func_printf_ptr
=no
2869 rm -f core core.
* *.core
2872 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2873 if test $gcc_cv_func_printf_ptr = yes ; then
2874 cat >> confdefs.h
<<\EOF
2875 #define HAVE_PRINTF_PTR 1
2883 # Under some versions of uwin, vfork is notoriously buggy and the test
2884 # can hang configure; on other versions, vfork exists just as a stub.
2885 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2886 ac_cv_func_vfork_works
=no
2889 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2890 echo "configure:2891: checking for pid_t" >&5
2891 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #include <sys/types.h>
2903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2904 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2906 ac_cv_type_pid_t
=yes
2914 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2915 if test $ac_cv_type_pid_t = no
; then
2916 cat >> confdefs.h
<<\EOF
2922 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2923 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2924 echo "configure:2925: checking for vfork.h" >&5
2925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 cat > conftest.
$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2933 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2934 { (eval echo configure
:2935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2935 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2936 if test -z "$ac_err"; then
2938 eval "ac_cv_header_$ac_safe=yes"
2941 echo "configure: failed program was:" >&5
2942 cat conftest.
$ac_ext >&5
2944 eval "ac_cv_header_$ac_safe=no"
2948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2949 echo "$ac_t""yes" 1>&6
2950 cat >> confdefs.h
<<\EOF
2951 #define HAVE_VFORK_H 1
2955 echo "$ac_t""no" 1>&6
2958 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2959 echo "configure:2960: checking for working vfork" >&5
2960 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 if test "$cross_compiling" = yes; then
2964 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2965 echo "configure:2966: checking for vfork" >&5
2966 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 cat > conftest.
$ac_ext <<EOF
2970 #line 2971 "configure"
2971 #include "confdefs.h"
2972 /* System header to define __stub macros and hopefully few prototypes,
2973 which can conflict with char vfork(); below. */
2975 /* Override any gcc2 internal prototype to avoid an error. */
2976 /* We use char because int might match the return type of a gcc2
2977 builtin and then its argument prototype would still apply. */
2982 /* The GNU C library defines this for functions which it implements
2983 to always fail with ENOSYS. Some functions are actually named
2984 something starting with __ and the normal name is an alias. */
2985 #if defined (__stub_vfork) || defined (__stub___vfork)
2993 if { (eval echo configure
:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2995 eval "ac_cv_func_vfork=yes"
2997 echo "configure: failed program was:" >&5
2998 cat conftest.
$ac_ext >&5
3000 eval "ac_cv_func_vfork=no"
3005 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3006 echo "$ac_t""yes" 1>&6
3009 echo "$ac_t""no" 1>&6
3012 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3014 cat > conftest.
$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 /* Thanks to Paul Eggert for this test. */
3019 #include <sys/types.h>
3020 #include <sys/stat.h>
3021 #ifdef HAVE_UNISTD_H
3027 /* On some sparc systems, changes by the child to local and incoming
3028 argument registers are propagated back to the parent.
3029 The compiler is told about this with #include <vfork.h>,
3030 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3031 Test for this by using a static variable whose address
3032 is put into a register that is clobbered by the vfork. */
3035 sparc_address_test (int arg)
3037 sparc_address_test (arg) int arg;
3055 pid_t parent = getpid ();
3058 sparc_address_test ();
3063 /* Here is another test for sparc vfork register problems.
3064 This test uses lots of local variables, at least
3065 as many local variables as main has allocated so far
3066 including compiler temporaries. 4 locals are enough for
3067 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3068 A buggy compiler should reuse the register of parent
3069 for one of the local variables, since it will think that
3070 parent can't possibly be used any more in this routine.
3071 Assigning to the local variable will thus munge parent
3072 in the parent process. */
3074 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3075 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3076 /* Convince the compiler that p..p7 are live; otherwise, it might
3077 use the same hardware register for all 8 local variables. */
3078 if (p != p1 || p != p2 || p != p3 || p != p4
3079 || p != p5 || p != p6 || p != p7)
3082 /* On some systems (e.g. IRIX 3.3),
3083 vfork doesn't separate parent from child file descriptors.
3084 If the child closes a descriptor before it execs or exits,
3085 this munges the parent's descriptor as well.
3086 Test for this by closing stdout in the child. */
3087 _exit(close(fileno(stdout)) != 0);
3092 while (wait(&status) != child)
3095 /* Was there some problem with vforking? */
3098 /* Did the child fail? (This shouldn't happen.) */
3101 /* Did the vfork/compiler bug occur? */
3102 || parent != getpid()
3104 /* Did the file descriptor bug occur? */
3105 || fstat(fileno(stdout), &st) != 0
3110 if { (eval echo configure
:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3112 ac_cv_func_vfork_works
=yes
3114 echo "configure: failed program was:" >&5
3115 cat conftest.
$ac_ext >&5
3117 ac_cv_func_vfork_works
=no
3124 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3125 if test $ac_cv_func_vfork_works = no
; then
3126 cat >> confdefs.h
<<\EOF
3132 for ac_hdr
in unistd.h
3134 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_hdr" >&5
3137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3145 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3146 { (eval echo configure
:3147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3147 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3148 if test -z "$ac_err"; then
3150 eval "ac_cv_header_$ac_safe=yes"
3153 echo "configure: failed program was:" >&5
3154 cat conftest.
$ac_ext >&5
3156 eval "ac_cv_header_$ac_safe=no"
3160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3163 cat >> confdefs.h
<<EOF
3164 #define $ac_tr_hdr 1
3168 echo "$ac_t""no" 1>&6
3172 for ac_func
in getpagesize
3174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3175 echo "configure:3176: checking for $ac_func" >&5
3176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 cat > conftest.
$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 /* System header to define __stub macros and hopefully few prototypes,
3183 which can conflict with char $ac_func(); below. */
3185 /* Override any gcc2 internal prototype to avoid an error. */
3186 /* We use char because int might match the return type of a gcc2
3187 builtin and then its argument prototype would still apply. */
3192 /* The GNU C library defines this for functions which it implements
3193 to always fail with ENOSYS. Some functions are actually named
3194 something starting with __ and the normal name is an alias. */
3195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3203 if { (eval echo configure
:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3205 eval "ac_cv_func_$ac_func=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 eval "ac_cv_func_$ac_func=no"
3215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3216 echo "$ac_t""yes" 1>&6
3217 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3218 cat >> confdefs.h
<<EOF
3219 #define $ac_tr_func 1
3223 echo "$ac_t""no" 1>&6
3227 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3228 echo "configure:3229: checking for working mmap which provides zeroed pages anywhere" >&5
3229 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 if test "$cross_compiling" = yes; then
3233 ac_cv_func_mmap_anywhere
=no
3235 cat > conftest.
$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3239 /* Test by Richard Henderson and Alexandre Oliva.
3240 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3241 #include <sys/types.h>
3243 #include <sys/mman.h>
3245 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3246 # define MAP_ANONYMOUS MAP_ANON
3249 /* This mess was copied from the GNU getpagesize.h. */
3250 #ifndef HAVE_GETPAGESIZE
3251 # ifdef HAVE_UNISTD_H
3252 # include <unistd.h>
3255 /* Assume that all systems that can run configure have sys/param.h. */
3256 # ifndef HAVE_SYS_PARAM_H
3257 # define HAVE_SYS_PARAM_H 1
3260 # ifdef _SC_PAGESIZE
3261 # define getpagesize() sysconf(_SC_PAGESIZE)
3262 # else /* no _SC_PAGESIZE */
3263 # ifdef HAVE_SYS_PARAM_H
3264 # include <sys/param.h>
3265 # ifdef EXEC_PAGESIZE
3266 # define getpagesize() EXEC_PAGESIZE
3267 # else /* no EXEC_PAGESIZE */
3269 # define getpagesize() NBPG * CLSIZE
3272 # endif /* no CLSIZE */
3273 # else /* no NBPG */
3275 # define getpagesize() NBPC
3276 # else /* no NBPC */
3278 # define getpagesize() PAGESIZE
3279 # endif /* PAGESIZE */
3280 # endif /* no NBPC */
3281 # endif /* no NBPG */
3282 # endif /* no EXEC_PAGESIZE */
3283 # else /* no HAVE_SYS_PARAM_H */
3284 # define getpagesize() 8192 /* punt totally */
3285 # endif /* no HAVE_SYS_PARAM_H */
3286 # endif /* no _SC_PAGESIZE */
3288 #endif /* no HAVE_GETPAGESIZE */
3295 #ifndef MAP_ANONYMOUS
3296 fd = open("/dev/zero", O_RDWR);
3302 #ifdef MAP_ANONYMOUS
3303 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3304 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3306 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3308 if (x == (char *) -1)
3313 if (munmap(x, pg) < 0)
3319 if { (eval echo configure
:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3321 ac_cv_func_mmap_anywhere
=yes
3323 echo "configure: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3326 ac_cv_func_mmap_anywhere
=no
3333 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3334 if test $ac_cv_func_mmap_anywhere = yes; then
3335 cat >> confdefs.h
<<\EOF
3336 #define HAVE_MMAP_ANYWHERE 1
3341 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3342 echo "configure:3343: checking for working mmap of a file" >&5
3343 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 # Create a file one thousand bytes long.
3347 for i
in 1 2 3 4 5 6 7 8 9 0
3348 do for j
in 1 2 3 4 5 6 7 8 9 0
3351 done > conftestdata$$
3353 if test "$cross_compiling" = yes; then
3354 ac_cv_func_mmap_file
=no
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3360 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3361 Richard Henderson and Alexandre Oliva.
3362 Check whether read-only mmap of a plain file works. */
3363 #include <sys/types.h>
3364 #include <sys/stat.h>
3366 #include <sys/mman.h>
3374 fd = open("conftestdata$$", O_RDONLY);
3378 if (fstat (fd, &st))
3381 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3382 if (x == (char *) -1)
3385 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3388 if (munmap(x, st.st_size) < 0)
3394 if { (eval echo configure
:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3396 ac_cv_func_mmap_file
=yes
3398 echo "configure: failed program was:" >&5
3399 cat conftest.
$ac_ext >&5
3401 ac_cv_func_mmap_file
=no
3408 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3409 if test $ac_cv_func_mmap_file = yes; then
3410 cat >> confdefs.h
<<\EOF
3411 #define HAVE_MMAP_FILE 1
3417 # We will need to find libiberty.h and ansidecl.h
3418 saved_CFLAGS
="$CFLAGS"
3419 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3420 for ac_func
in bcopy bzero bcmp \
3421 index rindex getenv atol sbrk abort atof getcwd getwd \
3422 strsignal putc_unlocked fputs_unlocked strstr environ \
3423 malloc realloc calloc free
basename getopt
3425 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3426 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3427 echo "configure:3428: checking whether $ac_func is declared" >&5
3428 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 cat > conftest.
$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 #include "gansidecl.h"
3439 char *(*pfn) = (char *(*)) $ac_func ;
3443 if { (eval echo configure
:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445 eval "gcc_cv_have_decl_$ac_func=yes"
3447 echo "configure: failed program was:" >&5
3448 cat conftest.
$ac_ext >&5
3450 eval "gcc_cv_have_decl_$ac_func=no"
3455 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3456 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3457 #define $ac_tr_decl 1
3461 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3462 #define $ac_tr_decl 0
3468 if test x
= y
; then
3469 cat >> confdefs.h
<<EOF
3470 #define HAVE_DECL_BCOPY 1
3472 cat >> confdefs.h
<<EOF
3473 #define HAVE_DECL_BZERO 1
3475 cat >> confdefs.h
<<EOF
3476 #define HAVE_DECL_BCMP 1
3479 cat >> confdefs.h
<<EOF
3480 #define HAVE_DECL_INDEX 1
3482 cat >> confdefs.h
<<EOF
3483 #define HAVE_DECL_RINDEX 1
3485 cat >> confdefs.h
<<EOF
3486 #define HAVE_DECL_GETENV 1
3488 cat >> confdefs.h
<<EOF
3489 #define HAVE_DECL_ATOL 1
3491 cat >> confdefs.h
<<EOF
3492 #define HAVE_DECL_SBRK 1
3494 cat >> confdefs.h
<<EOF
3495 #define HAVE_DECL_ABORT 1
3497 cat >> confdefs.h
<<EOF
3498 #define HAVE_DECL_ATOF 1
3500 cat >> confdefs.h
<<EOF
3501 #define HAVE_DECL_GETCWD 1
3503 cat >> confdefs.h
<<EOF
3504 #define HAVE_DECL_GETWD 1
3507 cat >> confdefs.h
<<EOF
3508 #define HAVE_DECL_STRSIGNAL 1
3510 cat >> confdefs.h
<<EOF
3511 #define HAVE_DECL_PUTC_UNLOCKED 1
3513 cat >> confdefs.h
<<EOF
3514 #define HAVE_DECL_FPUTS_UNLOCKED 1
3516 cat >> confdefs.h
<<EOF
3517 #define HAVE_DECL_STRSTR 1
3519 cat >> confdefs.h
<<EOF
3520 #define HAVE_DECL_ENVIRON 1
3523 cat >> confdefs.h
<<EOF
3524 #define HAVE_DECL_MALLOC 1
3526 cat >> confdefs.h
<<EOF
3527 #define HAVE_DECL_REALLOC 1
3529 cat >> confdefs.h
<<EOF
3530 #define HAVE_DECL_CALLOC 1
3532 cat >> confdefs.h
<<EOF
3533 #define HAVE_DECL_FREE 1
3535 cat >> confdefs.h
<<EOF
3536 #define HAVE_DECL_BASENAME 1
3538 cat >> confdefs.h
<<EOF
3539 #define HAVE_DECL_GETOPT 1
3544 for ac_func
in getrlimit setrlimit getrusage
3546 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3547 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3548 echo "configure:3549: checking whether $ac_func is declared" >&5
3549 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 cat > conftest.
$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include "gansidecl.h"
3557 #ifdef HAVE_SYS_RESOURCE_H
3558 #include <sys/resource.h>
3564 char *(*pfn) = (char *(*)) $ac_func ;
3568 if { (eval echo configure
:3569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3570 eval "gcc_cv_have_decl_$ac_func=yes"
3572 echo "configure: failed program was:" >&5
3573 cat conftest.
$ac_ext >&5
3575 eval "gcc_cv_have_decl_$ac_func=no"
3580 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3582 #define $ac_tr_decl 1
3586 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3587 #define $ac_tr_decl 0
3593 if test x
= y
; then
3594 cat >> confdefs.h
<<EOF
3595 #define HAVE_DECL_GETRLIMIT 1
3597 cat >> confdefs.h
<<EOF
3598 #define HAVE_DECL_SETRLIMIT 1
3600 cat >> confdefs.h
<<EOF
3601 #define HAVE_DECL_GETRUSAGE 1
3606 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3607 CFLAGS
="$saved_CFLAGS"
3609 # mkdir takes a single argument on some systems.
3610 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3611 echo "configure:3612: checking if mkdir takes one argument" >&5
3612 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 cat > conftest.
$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3619 #include <sys/types.h>
3620 #ifdef HAVE_SYS_STAT_H
3621 # include <sys/stat.h>
3623 #ifdef HAVE_UNISTD_H
3624 # include <unistd.h>
3626 #ifdef HAVE_DIRECT_H
3627 # include <direct.h>
3633 if { (eval echo configure
:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635 gcc_cv_mkdir_takes_one_arg
=no
3637 echo "configure: failed program was:" >&5
3638 cat conftest.
$ac_ext >&5
3640 gcc_cv_mkdir_takes_one_arg
=yes
3645 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3646 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3647 cat >> confdefs.h
<<\EOF
3648 #define MKDIR_TAKES_ONE_ARG 1
3662 build_install_headers_dir
=install-headers-tar
3667 host_truncate_target
=
3670 # Decode the host machine, then the target machine.
3671 # For the host machine, we save the xm_file variable as host_xm_file;
3672 # then we decode the target machine and forget everything else
3673 # that came from the host machine.
3674 for machine
in $build $host $target; do
3688 # Set this to force installation and use of collect2.
3690 # Set this to override the default target model.
3692 # Set this to control how the header file directory is installed.
3693 install_headers_dir
=install-headers-tar
3694 # Set this to a non-empty list of args to pass to cpp if the target
3695 # wants its .md file passed through cpp.
3697 # Set this if directory names should be truncated to 14 characters.
3699 # Set this if gdb needs a dir command with `dirname $out_file`
3700 gdb_needs_out_file_path
=
3701 # Set this if the build machine requires executables to have a
3704 # Set this to control which thread package will be used.
3706 # Reinitialize these from the flag values every loop pass, since some
3707 # configure entries modify them.
3709 gnu_ld
="$gnu_ld_flag"
3710 enable_threads
=$enable_threads_flag
3712 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3713 # updated in each machine entry.
3715 cpu_type
=`echo $machine | sed 's/-.*$//'`
3755 tm_file
=${cpu_type}/${cpu_type}.h
3756 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3757 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3759 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3761 # On a.out targets, we need to use collect2.
3768 # Common parts for linux and openbsd systems
3771 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3774 tm_file
=${cpu_type}/openbsd.h
3775 tmake_file
="t-libc-ok t-openbsd"
3776 # avoid surprises, always provide an xm-openbsd file
3777 xm_file
=${cpu_type}/xm-openbsd.h
3778 # don't depend on processor x-fragments as well
3780 if test x
$enable_threads = xyes
; then
3782 tmake_file
="${tmake_file} t-openbsd-thread"
3788 # Support site-specific machine types.
3790 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3791 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3792 xm_file
=${cpu_type}/xm-
$rest.h
3793 tm_file
=${cpu_type}/$rest.h
3794 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3795 then xmake_file
=${cpu_type}/x-
$rest; \
3798 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3799 then tmake_file
=${cpu_type}/t-
$rest; \
3805 a29k-
*-bsd* | a29k-
*-sym1*)
3806 tm_file
="${tm_file} a29k/unix.h"
3808 xmake_file
=a29k
/x-unix
3811 a29k-
*-udi | a29k-
*-coff)
3812 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3813 tmake_file
=a29k
/t-a29kbare
3816 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3817 tmake_file
=a29k
/t-vx29k
3818 extra_parts
="crtbegin.o crtend.o"
3819 thread_file
='vxworks'
3821 a29k-
*-*) # Default a29k environment.
3825 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3827 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3828 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3830 # GAS + IEEE_CONFORMANT
3831 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3833 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3834 xmake_file
="x-interix alpha/t-pe"
3835 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3836 if test x
$enable_threads = xyes
; then
3839 if test x
$stabs = xyes
; then
3840 tm_file
="${tm_file} dbxcoff.h"
3842 #prefix='$$INTERIX_ROOT'/usr/contrib
3843 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3845 alpha
*-*-linux*ecoff
*)
3846 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3847 target_cpu_default
="MASK_GAS"
3848 tmake_file
="alpha/t-alpha alpha/t-ieee"
3853 alpha
*-*-linux*libc1
*)
3854 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3855 target_cpu_default
="MASK_GAS"
3856 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3857 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3860 if test x
$enable_threads = xyes
; then
3865 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3866 target_cpu_default
="MASK_GAS"
3867 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3868 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3871 if test x
$enable_threads = xyes
; then
3876 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3877 target_cpu_default
="MASK_GAS"
3878 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3879 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3885 # default x-alpha is only appropriate for dec-osf.
3886 target_cpu_default
="MASK_GAS"
3887 tmake_file
="alpha/t-alpha alpha/t-ieee"
3891 if test x
$stabs = xyes
3893 tm_file
="${tm_file} dbx.h"
3895 if test x
$gas != xyes
3897 extra_passes
="mips-tfile mips-tdump"
3900 tmake_file
="alpha/t-alpha alpha/t-ieee"
3903 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3906 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3909 tm_file
="${tm_file} alpha/osf.h"
3910 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3911 # a broken tar, so we use cpio instead.
3912 install_headers_dir
=install-headers-cpio
3915 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3919 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3920 target_cpu_default
=MASK_SUPPORT_ARCH
3925 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3926 tmake_file
="alpha/t-alpha alpha/t-ieee"
3929 extra_passes
="mips-tfile mips-tdump"
3932 thread_file
='vxworks'
3935 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3936 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3937 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3938 xmake_file
=winnt
/x-winnt
3939 extra_host_objs
=oldnames.o
3940 extra_gcc_objs
="spawnv.o oldnames.o"
3941 if test x
$gnu_ld != xyes
3943 extra_programs
=ld.exe
3945 if test x
$enable_threads = xyes
; then
3951 xm_file
="${xm_file} alpha/xm-vms.h"
3952 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3955 extra_parts
="crtinit.o crtfini.o"
3957 arm-
*-coff* | armel-
*-coff*)
3959 tmake_file
=arm
/t-arm-coff
3963 tmake_file
=arm
/t-arm-coff
3964 thread_file
='vxworks'
3966 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3967 tm_file
=arm
/riscix1-1.h
3970 arm-
*-riscix*) # Acorn RISC machine
3971 if test x
$gas = xyes
3973 tm_file
=arm
/rix-gas.h
3975 tm_file
=arm
/riscix.h
3977 xmake_file
=arm
/x-riscix
3978 tmake_file
=arm
/t-riscix
3981 arm-semi-aout | armel-semi-aout
)
3983 tmake_file
=arm
/t-semi
3985 arm-semi-aof | armel-semi-aof
)
3986 tm_file
=arm
/semiaof.h
3987 tmake_file
=arm
/t-semiaof
3990 tm_file
=arm
/netbsd.h
3991 tmake_file
="t-netbsd arm/t-netbsd"
3994 arm
*-*-linux*aout
*) # ARM GNU/Linux with a.out
3997 tm_file
=arm
/linux-aout.h
3998 tmake_file
=arm
/t-linux
4001 arm
*-*-linux*oldld
*) # ARM GNU/Linux with old ELF linker
4002 xm_file
=arm
/xm-linux.h
4004 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
4007 tm_file
="arm/linux-elf26.h $tm_file"
4010 tmake_file
="t-linux arm/t-linux"
4011 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4013 case x
${enable_threads} in
4014 x | xyes | xpthreads | xposix
)
4019 arm
*-*-linux*) # ARM GNU/Linux with ELF
4020 xm_file
=arm
/xm-linux.h
4022 tm_file
="arm/linux-elf.h"
4025 tm_file
="arm/linux-elf26.h $tm_file"
4028 tmake_file
="t-linux arm/t-linux"
4029 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4031 case x
${enable_threads} in
4032 x | xyes | xpthreads | xposix
)
4037 arm
*-*-uclinux*) # ARM ucLinux
4038 tm_file
=arm
/uclinux-elf.h
4039 tmake_file
=arm
/t-arm-elf
4043 tmake_file
=arm
/t-arm-aout
4046 tm_file
=arm
/ecos-elf.h
4047 tmake_file
=arm
/t-arm-elf
4050 tm_file
=arm
/unknown-elf.h
4051 tmake_file
=arm
/t-arm-elf
4054 tm_file
=arm
/conix-elf.h
4055 tmake_file
=arm
/t-arm-elf
4058 tm_file
=arm
/unknown-elf-oabi.h
4059 tmake_file
=arm
/t-arm-elf
4068 c1-convex-
*) # Convex C1
4069 target_cpu_default
=1
4072 c2-convex-
*) # Convex C2
4073 target_cpu_default
=2
4077 target_cpu_default
=4
4081 target_cpu_default
=8
4085 target_cpu_default
=16
4090 tmake_file
=c4x
/t-c4x
4092 clipper-intergraph-clix
*)
4093 tm_file
="${tm_file} svr3.h clipper/clix.h"
4094 xm_file
=clipper
/xm-clix.h
4095 xmake_file
=clipper
/x-clix
4096 extra_headers
=va-clipper.h
4097 extra_parts
="crtbegin.o crtend.o"
4098 install_headers_dir
=install-headers-cpio
4109 tm_file
="fr30/fr30.h"
4110 tmake_file
=fr30
/t-fr30
4111 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4113 # This hasn't been upgraded to GCC 2.
4114 # fx80-alliant-*) # Alliant FX/80
4120 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4121 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4122 tmake_file
="t-linux pa/t-linux"
4123 extra_parts
="crtbegin.o crtend.o"
4126 if test x
$enable_threads = xyes
; then
4131 target_cpu_default
="MASK_PA_11"
4132 tmake_file
=pa
/t-openbsd
4135 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4136 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4137 xm_file
=pa
/xm-papro.h
4141 target_cpu_default
="MASK_PA_11"
4142 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4146 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4147 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4148 xm_file
=pa
/xm-papro.h
4152 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4156 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4157 target_cpu_default
="MASK_PA_11"
4161 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4165 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4166 xm_file
=pa
/xm-pahpux.h
4167 xmake_file
=pa
/x-pa-hpux
4168 if test x
$gas = xyes
4170 tm_file
="${tm_file} pa/gas.h"
4172 install_headers_dir
=install-headers-cpio
4175 hppa1.0
-*-hpux8.0
[0-2]*)
4176 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4177 xm_file
=pa
/xm-pahpux.h
4178 xmake_file
=pa
/x-pa-hpux
4179 if test x
$gas = xyes
4181 tm_file
="${tm_file} pa/pa-gas.h"
4183 tm_file
="pa/pa-oldas.h ${tm_file}"
4185 install_headers_dir
=install-headers-cpio
4188 hppa1.1
-*-hpux8.0
[0-2]*)
4189 target_cpu_default
="MASK_PA_11"
4190 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4191 xm_file
=pa
/xm-pahpux.h
4192 xmake_file
=pa
/x-pa-hpux
4193 if test x
$gas = xyes
4195 tm_file
="${tm_file} pa/pa-gas.h"
4197 tm_file
="pa/pa-oldas.h ${tm_file}"
4199 install_headers_dir
=install-headers-cpio
4203 target_cpu_default
="MASK_PA_11"
4204 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4205 xm_file
=pa
/xm-pahpux.h
4206 xmake_file
=pa
/x-pa-hpux
4207 if test x
$gas = xyes
4209 tm_file
="${tm_file} pa/pa-gas.h"
4211 install_headers_dir
=install-headers-cpio
4215 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4216 xm_file
=pa
/xm-pahpux.h
4217 xmake_file
=pa
/x-pa-hpux
4218 if test x
$gas = xyes
4220 tm_file
="${tm_file} pa/pa-gas.h"
4222 install_headers_dir
=install-headers-cpio
4225 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4226 target_cpu_default
="MASK_PA_11"
4227 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4229 xm_file
=pa
/xm-pahpux.h
4230 xmake_file
=pa
/x-pa-hpux
4232 if test x
$gas = xyes
4234 tm_file
="${tm_file} pa/pa-gas.h"
4236 if test x
$enable_threads = x
; then
4237 enable_threads
=$have_pthread_h
4239 case x
${enable_threads} in
4241 tmake_file
="${tmake_file} pa/t-dce-thr"
4244 install_headers_dir
=install-headers-cpio
4248 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4250 xm_file
=pa
/xm-pahpux.h
4251 xmake_file
=pa
/x-pa-hpux
4253 if test x
$gas = xyes
4255 tm_file
="${tm_file} pa/pa-gas.h"
4257 if test x
$enable_threads = x
; then
4258 enable_threads
=$have_pthread_h
4260 case x
${enable_threads} in
4262 tmake_file
="${tmake_file} pa/t-dce-thr"
4265 install_headers_dir
=install-headers-cpio
4269 target_cpu_default
="MASK_PA_11"
4270 xm_file
=pa
/xm-pa64hpux.h
4271 xmake_file
=pa
/x-pa-hpux
4273 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"
4275 tmake_file
=pa
/t-pa64
4276 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4280 tm_file
="${tm_file} pa/pa-gas.h"
4282 # if [[ x$enable_threads = x ]]; then
4283 # enable_threads=$have_pthread_h
4285 # if [[ x$enable_threads = xyes ]]; then
4287 # tmake_file="${tmake_file} pa/t-dce-thr"
4289 install_headers_dir
=install-headers-cpio
4292 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4293 target_cpu_default
="MASK_PA_11"
4294 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4296 xm_file
=pa
/xm-pahpux.h
4297 xmake_file
=pa
/x-pa-hpux
4299 if test x
$gas = xyes
4301 tm_file
="${tm_file} pa/pa-gas.h"
4303 # if test x$enable_threads = x; then
4304 # enable_threads=$have_pthread_h
4306 # if test x$enable_threads = xyes; then
4308 # tmake_file="${tmake_file} pa/t-dce-thr"
4310 install_headers_dir
=install-headers-cpio
4314 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4316 xm_file
=pa
/xm-pahpux.h
4317 xmake_file
=pa
/x-pa-hpux
4318 if test x
$gas = xyes
4320 tm_file
="${tm_file} pa/pa-gas.h"
4322 # if test x$enable_threads = x; then
4323 # enable_threads=$have_pthread_h
4325 # if test x$enable_threads = xyes; then
4327 # tmake_file="${tmake_file} pa/t-dce-thr"
4329 install_headers_dir
=install-headers-cpio
4332 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4333 target_cpu_default
="MASK_PA_11"
4334 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4335 xm_file
=pa
/xm-pahpux.h
4336 xmake_file
=pa
/x-pa-hpux
4337 if test x
$gas = xyes
4339 tm_file
="${tm_file} pa/pa-gas.h"
4341 install_headers_dir
=install-headers-cpio
4345 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4346 xm_file
=pa
/xm-pahpux.h
4347 xmake_file
=pa
/x-pa-hpux
4348 if test x
$gas = xyes
4350 tm_file
="${tm_file} pa/pa-gas.h"
4352 install_headers_dir
=install-headers-cpio
4355 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4356 target_cpu_default
="MASK_PA_11"
4357 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4358 xm_file
=pa
/xm-pahpux.h
4359 xmake_file
=pa
/x-pa-hpux
4360 if test x
$gas = xyes
4362 tm_file
="${tm_file} pa/pa-gas.h"
4364 install_headers_dir
=install-headers-cpio
4368 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4369 xm_file
=pa
/xm-pahpux.h
4370 xmake_file
=pa
/x-pa-hpux
4371 if test x
$gas = xyes
4373 tm_file
="${tm_file} pa/pa-gas.h"
4375 install_headers_dir
=install-headers-cpio
4379 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4380 target_cpu_default
="MASK_PA_11"
4384 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4385 xm_file
=pa
/xm-pampeix.h
4386 xmake_file
=pa
/x-pa-mpeix
4387 echo "You must use gas. Assuming it is already installed."
4388 install_headers_dir
=install-headers-tar
4391 i370-
*-opened*) # IBM 360/370/390 Architecture
4392 xm_file
=i370
/xm-oe.h
4394 xmake_file
=i370
/x-oe
4395 tmake_file
=i370
/t-oe
4398 xm_file
=i370
/xm-mvs.h
4400 tmake_file
=i370
/t-mvs
4403 xm_file
="xm-linux.h i370/xm-linux.h"
4405 tm_file
="i370/linux.h ${tm_file}"
4406 tmake_file
="t-linux i370/t-linux"
4407 # broken_install=yes
4408 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4409 # extra_parts="crtbegin.o crtend.o"
4413 if test x
$enable_threads = xyes
; then
4418 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4419 tm_file
=i386
/i386elf.h
4420 tmake_file
=i386
/t-i386elf
4423 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4424 if test x
$gas = xyes
4426 tm_file
=i386
/aix386.h
4427 extra_parts
="crtbegin.o crtend.o"
4428 tmake_file
=i386
/t-crtstuff
4430 tm_file
=i386
/aix386ng.h
4433 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4435 xmake_file
=i386
/x-aix
4437 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4438 xm_file
="xm-alloca.h ${xm_file}"
4439 xm_defines
="USG POSIX SMALL_ARG_MAX"
4440 xmake_file
=i386
/x-ncr3000
4441 if test x
$stabs = xyes
-a x
$gas = xyes
4443 tm_file
=i386
/sysv4gdb.h
4445 tm_file
=i386
/sysv4.h
4447 extra_parts
="crtbegin.o crtend.o"
4448 tmake_file
=i386
/t-crtpic
4452 xm_file
=i386
/xm-next.h
4453 tmake_file
=i386
/t-next
4454 xmake_file
=i386
/x-next
4455 extra_objs
=nextstep.o
4456 extra_parts
="crtbegin.o crtend.o"
4457 if test x
$enable_threads = xyes
; then
4461 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4463 if test x
$gas = xyes
4465 tm_file
=i386
/seq-gas.h
4467 tm_file
=i386
/sequent.h
4470 i
[34567]86-sequent-ptx1*)
4471 xm_defines
="USG SVR3"
4472 xmake_file
=i386
/x-sysv3
4473 tm_file
=i386
/seq-sysv3.h
4474 tmake_file
=i386
/t-crtstuff
4475 extra_parts
="crtbegin.o crtend.o"
4476 install_headers_dir
=install-headers-cpio
4478 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4479 xm_defines
="USG SVR3"
4480 xmake_file
=i386
/x-sysv3
4481 tm_file
=i386
/seq2-sysv3.h
4482 tmake_file
=i386
/t-crtstuff
4483 extra_parts
="crtbegin.o crtend.o"
4484 install_headers_dir
=install-headers-cpio
4486 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4487 xm_file
="xm-alloca.h ${xm_file}"
4488 xm_defines
="USG POSIX SMALL_ARG_MAX"
4490 tm_file
=i386
/ptx4-i.h
4492 extra_parts
="crtbegin.o crtend.o"
4493 install_headers_dir
=install-headers-cpio
4495 i386-sun-sunos
*) # Sun i386 roadrunner
4500 i
[34567]86-wrs-vxworks*)
4501 tm_file
=i386
/vxi386.h
4502 tmake_file
=i386
/t-i386bare
4503 thread_file
='vxworks'
4506 tm_file
=i386
/i386-aout.h
4507 tmake_file
=i386
/t-i386bare
4509 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4510 xm_file
=i386
/xm-beos.h
4511 tmake_file
='i386/t-beos i386/t-crtpic'
4512 tm_file
=i386
/beos-elf.h
4513 xmake_file
=i386
/x-beos
4514 extra_parts
='crtbegin.o crtend.o'
4516 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4517 tm_file
=i386
/bsd386.h
4518 # tmake_file=t-libc-ok
4521 tm_file
=i386
/386bsd.h
4522 # tmake_file=t-libc-ok
4523 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4526 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4527 tm_file
="i386/freebsd.h i386/perform.h"
4528 tmake_file
=t-freebsd
4530 i
[34567]86-*-freebsd*)
4531 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4532 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4533 tmake_file
=t-freebsd
4537 case x
${enable_threads} in
4538 xyes | xpthreads | xposix
)
4540 tmake_file
="${tmake_file} t-freebsd-thread"
4544 i
[34567]86-*-netbsd*)
4545 tm_file
=i386
/netbsd.h
4549 i
[34567]86-*-openbsd*)
4550 # we need collect2 until our bug is fixed...
4554 tm_file
=i386
/i386-coff.h
4555 tmake_file
=i386
/t-i386bare
4557 i
[34567]86-*-isc*) # 80386 running ISC system
4558 xm_file
="${xm_file} i386/xm-isc.h"
4559 xm_defines
="USG SVR3"
4561 i
[34567]86-*-isc[34]*)
4562 xmake_file
=i386
/x-isc3
4565 xmake_file
=i386
/x-isc
4568 if test x
$gas = xyes
-a x
$stabs = xyes
4570 tm_file
=i386
/iscdbx.h
4571 tmake_file
=i386
/t-svr3dbx
4572 extra_parts
="svr3.ifile svr3z.ifile"
4574 tm_file
=i386
/isccoff.h
4575 tmake_file
=i386
/t-crtstuff
4576 extra_parts
="crtbegin.o crtend.o"
4578 tmake_file
="$tmake_file i386/t-i386bare"
4579 install_headers_dir
=install-headers-cpio
4581 i
[34567]86-*-linux*oldld
*) # Intel 80386's running GNU/Linux
4583 xmake_file
=x-linux-aout
4584 tmake_file
="t-linux-aout i386/t-crtstuff"
4585 tm_file
=i386
/linux-oldld.h
4589 i
[34567]86-*-linux*aout
*) # Intel 80386's running GNU/Linux
4590 xmake_file
=x-linux-aout
4591 tmake_file
="t-linux-aout i386/t-crtstuff"
4592 tm_file
=i386
/linux-aout.h
4596 i
[34567]86-*-linux*libc1
) # Intel 80386's running GNU/Linux
4597 # GNU/Linux C library 5
4599 tm_file
=i386
/linux.h
4600 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4601 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4604 if test x
$enable_threads = xyes
; then
4605 thread_file
='single'
4608 i
[34567]86-*-linux*) # Intel 80386's running GNU/Linux
4609 # aka GNU/Linux C library 6
4611 tm_file
=i386
/linux.h
4612 tmake_file
="t-linux i386/t-crtstuff"
4613 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4616 if test x
$enable_threads = xyes
; then
4623 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4624 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4627 i
[34567]86-pc-msdosdjgpp*)
4628 xm_file
=i386
/xm-djgpp.h
4629 tm_file
=i386
/djgpp.h
4630 tmake_file
=i386
/t-djgpp
4631 xmake_file
=i386
/x-djgpp
4636 case $host in *pc-msdosdjgpp
*)
4641 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4643 tmake_file
=t-libc-ok
4647 i
[34567]86-*-lynxos*)
4648 if test x
$gas = xyes
4652 tm_file
=i386
/lynx-ng.h
4654 xm_file
=i386
/xm-lynx.h
4655 tmake_file
=i386
/t-i386bare
4660 # tmake_file=t-libc-ok
4663 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4664 if test x
$elf = xyes
4666 tm_file
=i386
/osfelf.h
4669 tm_file
=i386
/osfrose.h
4672 xm_file
="i386/xm-osf.h ${xm_file}"
4673 xmake_file
=i386
/x-osfrose
4674 tmake_file
=i386
/t-osf
4675 extra_objs
=halfpic.o
4677 i
[34567]86-go32-rtems*)
4679 xm_file
=i386
/xm-go32.h
4680 tm_file
=i386
/go32-rtems.h
4681 tmake_file
="i386/t-go32 t-rtems"
4683 i
[34567]86-*-rtemscoff*)
4685 tm_file
=i386
/rtems.h
4686 tmake_file
="i386/t-i386bare t-rtems"
4688 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4690 tm_file
=i386
/rtemself.h
4691 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4692 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4694 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4695 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4696 xm_defines
="USG SVR3"
4697 xmake_file
=i386
/x-sco5
4698 install_headers_dir
=install-headers-cpio
4700 if test x
$gas = xyes
4702 tm_file
="i386/sco5gas.h ${tm_file}"
4703 tmake_file
=i386
/t-sco5gas
4705 tmake_file
=i386
/t-sco5
4707 tmake_file
="$tmake_file i386/t-i386bare"
4708 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4710 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4711 xm_file
="${xm_file} i386/xm-sco.h"
4712 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4713 xmake_file
=i386
/x-sco4
4714 install_headers_dir
=install-headers-cpio
4715 if test x
$stabs = xyes
4717 tm_file
=i386
/sco4dbx.h
4718 tmake_file
=i386
/t-svr3dbx
4719 extra_parts
="svr3.ifile svr3z.rfile"
4722 tmake_file
=i386
/t-crtstuff
4723 extra_parts
="crtbegin.o crtend.o"
4725 tmake_file
="$tmake_file i386/t-i386bare"
4726 # The default EAFS filesystem supports long file names.
4727 # Truncating the target makes $host != $target which
4728 # makes gcc think it is doing a cross-compile.
4729 # truncate_target=yes
4731 i
[34567]86-*-sco*) # 80386 running SCO system
4732 xm_file
=i386
/xm-sco.h
4733 xmake_file
=i386
/x-sco
4734 install_headers_dir
=install-headers-cpio
4735 if test x
$stabs = xyes
4737 tm_file
=i386
/scodbx.h
4738 tmake_file
=i386
/t-svr3dbx
4739 extra_parts
="svr3.ifile svr3z.rfile"
4742 extra_parts
="crtbegin.o crtend.o"
4743 tmake_file
=i386
/t-crtstuff
4745 tmake_file
="$tmake_file i386/t-i386bare"
4748 i
[34567]86-*-solaris2*)
4749 xm_file
="xm-alloca.h ${xm_file}"
4750 xm_defines
="USG POSIX SMALL_ARG_MAX"
4752 if test x
$gas = xyes
; then
4753 # Only needed if gas does not support -s
4754 tm_file
="i386/sol2gas.h ${tm_file}"
4756 tmake_file
="i386/t-i386bare i386/t-sol2"
4757 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4759 if test x
${enable_threads} = x
; then
4760 enable_threads
=$have_pthread_h
4761 if test x
${enable_threads} = x
; then
4762 enable_threads
=$have_thread_h
4765 if test x
${enable_threads} = xyes
; then
4766 if test x
${have_pthread_h} = xyes
; then
4769 thread_file
='solaris'
4773 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4774 xm_file
="xm-alloca.h ${xm_file}"
4775 xm_defines
="USG POSIX"
4776 tm_file
=i386
/sysv5.h
4777 if test x
$stabs = xyes
4779 tm_file
="${tm_file} dbx.h"
4781 tmake_file
="i386/t-i386bare i386/t-crtpic"
4783 extra_parts
="crtbegin.o crtend.o"
4784 if test x
$enable_threads = xyes
; then
4788 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4789 xm_file
="xm-alloca.h ${xm_file}"
4790 xm_defines
="USG POSIX SMALL_ARG_MAX"
4791 tm_file
=i386
/sysv4.h
4792 if test x
$stabs = xyes
4794 tm_file
="${tm_file} dbx.h"
4796 tmake_file
="i386/t-i386bare i386/t-crtpic"
4798 extra_parts
="crtbegin.o crtend.o"
4800 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4801 xm_file
="xm-alloca.h ${xm_file}"
4802 xm_defines
="USG POSIX"
4804 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4806 extra_parts
="crtbegin.o crtend.o"
4807 install_headers_dir
=install-headers-cpio
4809 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4811 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4812 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4813 if test x
$stabs = xyes
4815 tm_file
=i386
/osf1elfgdb.h
4817 tm_file
=i386
/osf1elf.h
4819 tmake_file
=i386
/t-osf1elf
4820 xmake_file
=i386
/x-osf1elf
4821 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4823 i
[34567]86-*-sysv*) # Intel 80386's running system V
4824 xm_defines
="USG SVR3"
4825 xmake_file
=i386
/x-sysv3
4826 if test x
$gas = xyes
4828 if test x
$stabs = xyes
4830 tm_file
=i386
/svr3dbx.h
4831 tmake_file
=i386
/t-svr3dbx
4832 extra_parts
="svr3.ifile svr3z.rfile"
4834 tm_file
=i386
/svr3gas.h
4835 extra_parts
="crtbegin.o crtend.o"
4836 tmake_file
=i386
/t-crtstuff
4839 tm_file
=i386
/sysv3.h
4840 extra_parts
="crtbegin.o crtend.o"
4841 tmake_file
=i386
/t-crtstuff
4843 tmake_file
="$tmake_file i386/t-crtpic"
4845 i386-
*-vsta) # Intel 80386's running VSTa kernel
4846 xm_file
="${xm_file} i386/xm-vsta.h"
4848 tmake_file
=i386
/t-vsta
4849 xmake_file
=i386
/x-vsta
4852 xm_file
="${xm_file} i386/xm-cygwin.h"
4853 tmake_file
=i386
/t-cygwin
4854 tm_file
=i386
/win32.h
4855 xmake_file
=i386
/x-cygwin
4857 if test x
$enable_threads = xyes
; then
4862 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4863 xm_file
="${xm_file} i386/xm-cygwin.h"
4864 tmake_file
=i386
/t-cygwin
4865 tm_file
=i386
/cygwin.h
4866 xmake_file
=i386
/x-cygwin
4868 if test x
$enable_threads = xyes
; then
4873 i
[34567]86-*-mingw32*)
4874 tm_file
=i386
/mingw32.h
4875 xm_file
="${xm_file} i386/xm-mingw32.h"
4876 tmake_file
="i386/t-cygwin i386/t-mingw32"
4878 xmake_file
=i386
/x-cygwin
4879 if test x
$enable_threads = xyes
; then
4886 *minwg32crt
* |
*mingw32
*)
4887 tm_file
="${tm_file} i386/crtdll.h"
4893 xm_file
="${xm_file} i386/xm-uwin.h"
4894 xm_defines
="USG NO_STAB_H"
4895 tmake_file
="i386/t-cygwin i386/t-uwin"
4897 xmake_file
=i386
/x-cygwin
4898 if test x
$enable_threads = xyes
; then
4903 i
[34567]86-*-interix*)
4904 tm_file
="i386/i386-interix.h interix.h"
4905 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4907 tmake_file
="i386/t-interix"
4908 extra_objs
=interix.o
4909 xmake_file
=x-interix
4910 if test x
$enable_threads = xyes
; then
4913 if test x
$stabs = xyes
; then
4914 tm_file
="${tm_file} dbxcoff.h"
4917 i
[34567]86-*-winnt3*)
4918 tm_file
=i386
/win-nt.h
4919 out_file
=i386
/i386.c
4920 xm_file
="xm-winnt.h ${xm_file}"
4921 xmake_file
=winnt
/x-winnt
4922 tmake_file
=i386
/t-winnt
4923 extra_host_objs
="winnt.o oldnames.o"
4924 extra_gcc_objs
="spawnv.o oldnames.o"
4925 if test x
$gnu_ld != xyes
4927 extra_programs
=ld.exe
4929 if test x
$enable_threads = xyes
; then
4933 i
[34567]86-dg-dgux*)
4934 xm_file
="xm-alloca.h ${xm_file}"
4935 xm_defines
="USG POSIX"
4936 out_file
=i386
/dgux.c
4938 tmake_file
=i386
/t-dgux
4939 xmake_file
=i386
/x-dgux
4940 install_headers_dir
=install-headers-cpio
4942 i860-alliant-
*) # Alliant FX/2800
4943 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4944 xm_file
="${xm_file}"
4945 xmake_file
=i860
/x-fx2800
4946 tmake_file
=i860
/t-fx2800
4947 extra_parts
="crtbegin.o crtend.o"
4950 tm_file
="${tm_file} i860/bsd.h"
4951 if test x
$gas = xyes
4953 tm_file
="${tm_file} i860/bsd-gas.h"
4958 tm_file
="${tm_file} i860/mach.h"
4959 tmake_file
=t-libc-ok
4961 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4962 tm_file
="${tm_file} svr3.h i860/paragon.h"
4963 xm_defines
="USG SVR3"
4967 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4968 xm_defines
="USG SVR3"
4969 xmake_file
=i860
/x-sysv3
4970 extra_parts
="crtbegin.o crtend.o"
4973 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4974 xm_defines
="USG SVR3"
4975 xmake_file
=i860
/x-sysv4
4977 extra_parts
="crtbegin.o crtend.o"
4979 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4980 tm_file
="${tm_file} i960/vx960.h"
4981 tmake_file
=i960
/t-vxworks960
4983 thread_file
='vxworks'
4985 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4986 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4987 tmake_file
=i960
/t-vxworks960
4989 thread_file
='vxworks'
4992 tm_file
="${tm_file} i960/vx960.h"
4993 tmake_file
=i960
/t-vxworks960
4995 thread_file
='vxworks'
4998 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4999 tmake_file
=i960
/t-960bare
5003 tmake_file
="i960/t-960bare t-rtems"
5004 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
5007 i960-
*-*) # Default i960 environment.
5012 tmake_file
="ia64/t-ia64"
5013 target_cpu_default
="0"
5014 if test x
$gas = xyes
5016 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
5018 if test x
$gnu_ld = xyes
5020 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
5025 tm_file
=ia64
/linux.h
5026 tmake_file
="t-linux ia64/t-ia64"
5027 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
5028 if test x
$enable_threads = xyes
; then
5034 extra_parts
="crtinit.o crtfini.o"
5036 m68000-convergent-sysv
*)
5038 xm_file
="m68k/xm-3b1.h ${xm_file}"
5041 extra_headers
=math-68881.h
5043 m68000-hp-bsd
*) # HP 9000/200 running BSD
5044 tm_file
=m68k
/hp2bsd.h
5045 xmake_file
=m68k
/x-hp2bsd
5047 extra_headers
=math-68881.h
5049 m68000-hp-hpux
*) # HP 9000 series 300
5050 xm_file
="xm-alloca.h ${xm_file}"
5052 if test x
$gas = xyes
5054 xmake_file
=m68k
/x-hp320g
5055 tm_file
=m68k
/hp310g.h
5057 xmake_file
=m68k
/x-hp320
5058 tm_file
=m68k
/hp310.h
5060 install_headers_dir
=install-headers-cpio
5062 extra_headers
=math-68881.h
5067 extra_headers
=math-68881.h
5070 tm_file
=m68k
/sun2o4.h
5072 extra_headers
=math-68881.h
5075 xm_file
="m68k/xm-3b1.h ${xm_file}"
5077 if test x
$gas = xyes
5084 extra_headers
=math-68881.h
5086 m68k-apple-aux
*) # Apple Macintosh running A/UX
5087 xm_defines
="USG AUX"
5088 tmake_file
=m68k
/t-aux
5089 install_headers_dir
=install-headers-cpio
5090 extra_headers
=math-68881.h
5091 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5093 if test "$gnu_ld" = yes
5095 tm_file
="${tm_file} m68k/auxgld.h"
5097 tm_file
="${tm_file} m68k/auxld.h"
5099 if test "$gas" = yes
5101 tm_file
="${tm_file} m68k/auxgas.h"
5103 tm_file
="${tm_file} m68k/auxas.h"
5105 tm_file
="${tm_file} m68k/a-ux.h"
5109 tm_file
=m68k
/apollo68.h
5110 xmake_file
=m68k
/x-apollo68
5112 extra_headers
=math-68881.h
5115 m68k-altos-sysv
*) # Altos 3068
5116 if test x
$gas = xyes
5118 tm_file
=m68k
/altos3068.h
5121 echo "The Altos is supported only with the GNU assembler" 1>&2
5124 extra_headers
=math-68881.h
5126 m68k-bull-sysv
*) # Bull DPX/2
5127 if test x
$gas = xyes
5129 if test x
$stabs = xyes
5131 tm_file
=m68k
/dpx2cdbx.h
5133 tm_file
=m68k
/dpx2g.h
5138 xm_file
="xm-alloca.h ${xm_file}"
5140 xmake_file
=m68k
/x-dpx2
5142 extra_headers
=math-68881.h
5144 m68k-atari-sysv4
*) # Atari variant of V.4.
5145 tm_file
=m68k
/atari.h
5146 xm_file
="xm-alloca.h ${xm_file}"
5147 xm_defines
="USG FULL_PROTOTYPES"
5149 extra_parts
="crtbegin.o crtend.o"
5150 extra_headers
=math-68881.h
5153 m68k-motorola-sysv
*)
5154 tm_file
=m68k
/mot3300.h
5155 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5156 if test x
$gas = xyes
5158 xmake_file
=m68k
/x-mot3300-gas
5159 if test x
$gnu_ld = xyes
5161 tmake_file
=m68k
/t-mot3300-gald
5163 tmake_file
=m68k
/t-mot3300-gas
5167 xmake_file
=m68k
/x-mot3300
5168 if test x
$gnu_ld = xyes
5170 tmake_file
=m68k
/t-mot3300-gld
5172 tmake_file
=m68k
/t-mot3300
5176 gdb_needs_out_file_path
=yes
5177 extra_parts
="crt0.o mcrt0.o"
5178 extra_headers
=math-68881.h
5181 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5182 tm_file
=m68k
/tower-as.h
5183 xm_defines
="USG SVR3"
5184 xmake_file
=m68k
/x-tower
5185 extra_parts
="crtbegin.o crtend.o"
5186 extra_headers
=math-68881.h
5189 tm_file
=m68k
/plexus.h
5190 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5193 extra_headers
=math-68881.h
5197 xm_file
="xm-alloca.h ${xm_file}"
5199 extra_headers
=math-68881.h
5202 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5203 xm_defines
="USG unos"
5204 xmake_file
=m68k
/x-crds
5207 extra_headers
=math-68881.h
5209 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5211 xm_file
="xm-alloca.h ${xm_file}"
5212 xm_defines
="USG FULL_PROTOTYPES"
5213 xmake_file
=m68k
/x-amix
5215 extra_parts
="crtbegin.o crtend.o"
5216 extra_headers
=math-68881.h
5220 tm_file
=m68k
/ccur-GAS.h
5221 xmake_file
=m68k
/x-ccur
5222 extra_headers
=math-68881.h
5226 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5227 tm_file
=m68k
/hp3bsd44.h
5228 xmake_file
=m68k
/x-hp3bsd44
5230 extra_headers
=math-68881.h
5233 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5234 tm_file
=m68k
/hp3bsd.h
5236 extra_headers
=math-68881.h
5240 if test x
$with_fp = xno
5242 tm_file
=m68k
/isi-nfp.h
5248 extra_headers
=math-68881.h
5250 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5251 xm_file
="xm-alloca.h ${xm_file}"
5253 if test x
$gas = xyes
5255 xmake_file
=m68k
/x-hp320g
5256 tm_file
=m68k
/hp320g.h
5258 xmake_file
=m68k
/x-hp320
5259 tm_file
=m68k
/hpux7.h
5261 install_headers_dir
=install-headers-cpio
5263 extra_headers
=math-68881.h
5266 m68k-hp-hpux
*) # HP 9000 series 300
5267 xm_file
="xm-alloca.h ${xm_file}"
5269 if test x
$gas = xyes
5271 xmake_file
=m68k
/x-hp320g
5272 tm_file
=m68k
/hp320g.h
5274 xmake_file
=m68k
/x-hp320
5275 tm_file
=m68k
/hp320.h
5277 install_headers_dir
=install-headers-cpio
5279 extra_headers
=math-68881.h
5283 tm_file
=m68k
/sun3mach.h
5285 extra_headers
=math-68881.h
5289 if test x
$gas = xyes
5291 tm_file
=m68k
/news3gas.h
5293 tm_file
=m68k
/news3.h
5296 extra_headers
=math-68881.h
5299 m68k-sony-bsd
* | m68k-sony-newsos
*)
5300 if test x
$gas = xyes
5302 tm_file
=m68k
/newsgas.h
5307 extra_headers
=math-68881.h
5310 m68k-next-nextstep2
*)
5311 tm_file
=m68k
/next21.h
5312 xm_file
="m68k/xm-next.h ${xm_file}"
5313 tmake_file
=m68k
/t-next
5314 xmake_file
=m68k
/x-next
5315 extra_objs
=nextstep.o
5316 extra_headers
=math-68881.h
5320 m68k-next-nextstep
[34]*)
5322 xm_file
="m68k/xm-next.h ${xm_file}"
5323 tmake_file
=m68k
/t-next
5324 xmake_file
=m68k
/x-next
5325 extra_objs
=nextstep.o
5326 extra_parts
="crtbegin.o crtend.o"
5327 extra_headers
=math-68881.h
5329 if test x
$enable_threads = xyes
; then
5334 if test x
$with_fp = xno
5336 tm_file
=m68k
/sun3n3.h
5338 tm_file
=m68k
/sun3o3.h
5342 extra_headers
=math-68881.h
5344 m68k-sun-sunos
*) # For SunOS 4 (the default).
5345 if test x
$with_fp = xno
5347 tm_file
=m68k
/sun3n.h
5353 extra_headers
=math-68881.h
5356 tm_file
=m68k
/vxm68k.h
5357 tmake_file
=m68k
/t-vxworks68
5358 extra_headers
=math-68881.h
5359 thread_file
='vxworks'
5363 tmake_file
=m68k
/t-m68kbare
5364 tm_file
="m68k/m68k-aout.h libgloss.h"
5365 extra_headers
=math-68881.h
5369 tmake_file
=m68k
/t-m68kbare
5370 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5371 extra_headers
=math-68881.h
5374 m68020-
*-elf* | m68k-
*-elf*)
5375 tm_file
="m68k/m68020-elf.h"
5376 xm_file
=m68k
/xm-m68kv.h
5377 tmake_file
=m68k
/t-m68kelf
5378 header_files
=math-68881.h
5381 if test x
$gas = xyes
5385 tm_file
=m68k
/lynx-ng.h
5387 xm_file
=m68k
/xm-lynx.h
5389 tmake_file
=m68k
/t-lynx
5390 extra_headers
=math-68881.h
5394 tm_file
=m68k
/netbsd.h
5401 # we need collect2 until our bug is fixed...
5404 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5405 xm_file
="xm-alloca.h ${xm_file}"
5407 xmake_file
=m68k
/x-m68kv
5408 extra_parts
="crtbegin.o crtend.o"
5409 extra_headers
=math-68881.h
5412 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5413 tm_file
=m68k
/m68kv4.h
5414 xm_file
="xm-alloca.h ${xm_file}"
5417 extra_parts
="crtbegin.o crtend.o"
5418 extra_headers
=math-68881.h
5421 m68k-
*-linux*aout
*) # Motorola m68k's running GNU/Linux
5424 tm_file
=m68k
/linux-aout.h
5425 tmake_file
="t-linux-aout m68k/t-linux-aout"
5426 extra_headers
=math-68881.h
5430 m68k-
*-linux*libc1
) # Motorola m68k's running GNU/Linux
5431 # with ELF format using the
5432 # GNU/Linux C library 5
5434 tm_file
=m68k
/linux.h
5435 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5436 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5437 extra_headers
=math-68881.h
5441 m68k-
*-linux*) # Motorola m68k's running GNU/Linux
5442 # with ELF format using glibc 2
5443 # aka the GNU/Linux C library 6.
5445 tm_file
=m68k
/linux.h
5446 tmake_file
="t-linux m68k/t-linux"
5447 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5448 extra_headers
=math-68881.h
5451 if test x
$enable_threads = xyes
; then
5456 tmake_file
=m68k
/t-m68kbare
5457 tm_file
=m68k
/m68k-psos.h
5458 extra_headers
=math-68881.h
5462 tmake_file
="m68k/t-m68kbare t-rtems"
5463 tm_file
=m68k
/rtems.h
5464 extra_headers
=math-68881.h
5467 m68k-
*-rtemself*|m68k-
*-rtems*)
5468 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5469 tm_file
=m68k
/rtemself.h
5470 extra_headers
=math-68881.h
5476 tm_file
=m88k
/dguxbcs.h
5477 tmake_file
=m88k
/t-dguxbcs
5481 tmake_file
=m88k
/t-dgux
5484 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5485 xmake_file
=m88k
/x-dgux
5486 if test x
$gas = xyes
5488 tmake_file
=m88k
/t-dgux-gas
5491 m88k-dolphin-sysv3
*)
5492 tm_file
=m88k
/dolph.h
5493 extra_parts
="crtbegin.o crtend.o"
5494 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5495 xmake_file
=m88k
/x-dolph
5496 if test x
$gas = xyes
5498 tmake_file
=m88k
/t-m88k-gas
5501 m88k-tektronix-sysv3
)
5502 tm_file
=m88k
/tekXD88.h
5503 extra_parts
="crtbegin.o crtend.o"
5504 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5505 xmake_file
=m88k
/x-tekXD88
5506 if test x
$gas = xyes
5508 tmake_file
=m88k
/t-m88k-gas
5512 tm_file
=m88k
/m88k-aout.h
5515 tm_file
=m88k
/m88k-coff.h
5516 tmake_file
=m88k
/t-bug
5520 extra_parts
="crtbegin.o crtend.o"
5521 if test x
$gas = xyes
5523 tmake_file
=m88k
/t-luna-gas
5525 tmake_file
=m88k
/t-luna
5529 tmake_file
="${tmake_file} m88k/t-luna-gas"
5530 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5531 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5534 tm_file
=m88k
/sysv3.h
5535 extra_parts
="crtbegin.o crtend.o"
5536 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5537 xmake_file
=m88k
/x-sysv3
5538 if test x
$gas = xyes
5540 tmake_file
=m88k
/t-m88k-gas
5544 tm_file
=m88k
/sysv4.h
5545 extra_parts
="crtbegin.o crtend.o"
5546 xmake_file
=m88k
/x-sysv4
5547 tmake_file
=m88k
/t-sysv4
5550 tm_file
=mcore
/mcore-elf.h
5551 tmake_file
=mcore
/t-mcore
5554 tm_file
=mcore
/mcore-pe.h
5555 tmake_file
=mcore
/t-mcore-pe
5557 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5558 if test "x$gnu_ld" = xyes
5560 tm_file
="mips/iris6.h mips/iris6gld.h"
5562 tm_file
=mips
/iris6.h
5564 tmake_file
=mips
/t-iris6
5565 xm_file
=mips
/xm-iris6.h
5566 xmake_file
=mips
/x-iris6
5567 # if test x$enable_threads = xyes; then
5568 # thread_file='irix'
5572 tm_file
="mips/elf.h mips/vxworks.h"
5573 tmake_file
=mips
/t-ecoff
5576 extra_parts
="crtbegin.o crtend.o"
5577 thread_file
='vxworks'
5579 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5580 tm_file
="mips/iris6.h mips/cross64.h"
5582 xm_file
="mips/xm-iris5.h"
5583 xmake_file
=mips
/x-iris
5584 tmake_file
=mips
/t-cross64
5585 # See comment in mips/iris[56].h files.
5587 # if test x$enable_threads = xyes; then
5588 # thread_file='irix'
5592 if test x
$gas = xyes
5594 if test x
$stabs = xyes
5596 tm_file
=mips
/iris5gdb.h
5598 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5601 tm_file
=mips
/sni-svr4.h
5604 xmake_file
=mips
/x-sni-svr4
5605 tmake_file
=mips
/t-mips-gas
5606 if test x
$gnu_ld != xyes
5611 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5612 if test x
$gas = xyes
5614 tm_file
="mips/iris5.h mips/iris5gas.h"
5615 if test x
$stabs = xyes
5617 tm_file
="${tm_file} dbx.h"
5620 tm_file
=mips
/iris5.h
5623 xm_file
="mips/xm-iris5.h"
5624 xmake_file
=mips
/x-iris
5625 # mips-tfile doesn't work yet
5626 tmake_file
=mips
/t-mips-gas
5627 # See comment in mips/iris5.h file.
5629 # if test x$enable_threads = xyes; then
5630 # thread_file='irix'
5633 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5634 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5635 if test x
$stabs = xyes
; then
5636 tm_file
="${tm_file} dbx.h"
5639 xmake_file
=mips
/x-iris
5640 if test x
$gas = xyes
5642 tmake_file
=mips
/t-mips-gas
5644 extra_passes
="mips-tfile mips-tdump"
5646 if test x
$gnu_ld != xyes
5650 # if test x$enable_threads = xyes; then
5651 # thread_file='irix'
5654 mips-sgi-irix4
*) # Mostly like a MIPS.
5655 tm_file
="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-
*) # Mostly like a MIPS.
5676 tm_file
="mips/iris3.h ${tm_file}"
5677 if test x
$stabs = xyes
; then
5678 tm_file
="${tm_file} dbx.h"
5681 xmake_file
=mips
/x-iris3
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
5693 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5694 tm_file
="mips/osfrose.h ${tm_file}"
5695 xmake_file
=mips
/x-osfrose
5696 tmake_file
=mips
/t-osfrose
5697 extra_objs
=halfpic.o
5700 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5701 tm_file
=mips
/dec-osf1.h
5702 if test x
$stabs = xyes
; then
5703 tm_file
="${tm_file} dbx.h"
5705 xmake_file
=mips
/x-dec-osf1
5706 if test x
$gas = xyes
5708 tmake_file
=mips
/t-mips-gas
5710 tmake_file
=mips
/t-ultrix
5711 extra_passes
="mips-tfile mips-tdump"
5713 if test x
$gnu_ld != xyes
5718 mips-dec-bsd
*) # Decstation running 4.4 BSD
5719 tm_file
=mips
/dec-bsd.h
5720 if test x
$gas = xyes
5722 tmake_file
=mips
/t-mips-gas
5724 tmake_file
=mips
/t-ultrix
5725 extra_passes
="mips-tfile mips-tdump"
5727 if test x
$gnu_ld != xyes
5732 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5733 tm_file
=mips
/netbsd.h
5734 # On NetBSD, the headers are already okay, except for math.h.
5737 mips
*-*-linux*) # Linux MIPS, either endian.
5740 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5741 *) tm_file
="mips/elf.h mips/linux.h" ;;
5744 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5747 if test x
$enable_threads = xyes
; then
5751 mips
*el-
*-openbsd*) # mips little endian
5752 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5754 mips
*-*-openbsd*) # mips big endian
5755 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5756 tm_file
="mips/openbsd-be.h ${tm_file}"
5758 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5759 tm_file
="mips/news4.h ${tm_file}"
5760 if test x
$stabs = xyes
; then
5761 tm_file
="${tm_file} dbx.h"
5763 if test x
$gas = xyes
5765 tmake_file
=mips
/t-mips-gas
5767 extra_passes
="mips-tfile mips-tdump"
5769 if test x
$gnu_ld != xyes
5773 xmake_file
=mips
/x-sony
5775 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5776 # That is based on svr4.
5777 # t-svr4 is not right because this system doesn't use ELF.
5778 tm_file
="mips/news5.h ${tm_file}"
5779 if test x
$stabs = xyes
; then
5780 tm_file
="${tm_file} dbx.h"
5783 if test x
$gas = xyes
5785 tmake_file
=mips
/t-mips-gas
5787 extra_passes
="mips-tfile mips-tdump"
5789 if test x
$gnu_ld != xyes
5794 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5795 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5796 if test x
$stabs = xyes
; then
5797 tm_file
="${tm_file} dbx.h"
5800 xmake_file
=mips
/x-sysv
5801 if test x
$gas = xyes
5803 tmake_file
=mips
/t-mips-gas
5804 extra_parts
="crtbegin.o crtend.o"
5806 tmake_file
=mips
/t-mips
5807 extra_passes
="mips-tfile mips-tdump"
5809 if test x
$gnu_ld != xyes
5814 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5815 tm_file
="mips/ultrix.h ${tm_file}"
5816 if test x
$stabs = xyes
; then
5817 tm_file
="${tm_file} dbx.h"
5819 xmake_file
=mips
/x-ultrix
5820 if test x
$gas = xyes
5822 tmake_file
=mips
/t-mips-gas
5824 tmake_file
=mips
/t-ultrix
5825 extra_passes
="mips-tfile mips-tdump"
5827 if test x
$gnu_ld != xyes
5832 mips-
*-riscos[56789]bsd
*)
5833 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5834 if test x
$stabs = xyes
; then
5835 tm_file
="${tm_file} dbx.h"
5837 if test x
$gas = xyes
5839 tmake_file
=mips
/t-bsd-gas
5841 tmake_file
=mips
/t-bsd
5842 extra_passes
="mips-tfile mips-tdump"
5844 if test x
$gnu_ld != xyes
5849 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5850 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5851 if test x
$stabs = xyes
; then
5852 tm_file
="${tm_file} dbx.h"
5854 if test x
$gas = xyes
5856 tmake_file
=mips
/t-bsd-gas
5858 tmake_file
=mips
/t-bsd
5859 extra_passes
="mips-tfile mips-tdump"
5861 if test x
$gnu_ld != xyes
5866 mips-
*-riscos[56789]sysv4
*)
5867 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5868 if test x
$stabs = xyes
; then
5869 tm_file
="${tm_file} dbx.h"
5871 xmake_file
=mips
/x-sysv
5872 if test x
$gas = xyes
5874 tmake_file
=mips
/t-svr4-gas
5876 tmake_file
=mips
/t-svr4
5877 extra_passes
="mips-tfile mips-tdump"
5879 if test x
$gnu_ld != xyes
5884 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5885 tm_file
="mips/svr4-4.h ${tm_file}"
5886 if test x
$stabs = xyes
; then
5887 tm_file
="${tm_file} dbx.h"
5890 xmake_file
=mips
/x-sysv
5891 if test x
$gas = xyes
5893 tmake_file
=mips
/t-svr4-gas
5895 tmake_file
=mips
/t-svr4
5896 extra_passes
="mips-tfile mips-tdump"
5898 if test x
$gnu_ld != xyes
5903 mips-
*-riscos[56789]sysv
*)
5904 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5905 if test x
$stabs = xyes
; then
5906 tm_file
="${tm_file} dbx.h"
5909 xmake_file
=mips
/x-sysv
5910 if test x
$gas = xyes
5912 tmake_file
=mips
/t-svr3-gas
5914 tmake_file
=mips
/t-svr3
5915 extra_passes
="mips-tfile mips-tdump"
5917 if test x
$gnu_ld != xyes
5922 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5923 tm_file
="mips/svr3-4.h ${tm_file}"
5924 if test x
$stabs = xyes
; then
5925 tm_file
="${tm_file} dbx.h"
5928 xmake_file
=mips
/x-sysv
5929 if test x
$gas = xyes
5931 tmake_file
=mips
/t-svr3-gas
5933 tmake_file
=mips
/t-svr3
5934 extra_passes
="mips-tfile mips-tdump"
5936 if test x
$gnu_ld != xyes
5941 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5942 tm_file
=mips
/mips-5.h
5943 if test x
$stabs = xyes
; then
5944 tm_file
="${tm_file} dbx.h"
5946 if test x
$gas = xyes
5948 tmake_file
=mips
/t-mips-gas
5950 extra_passes
="mips-tfile mips-tdump"
5952 if test x
$gnu_ld != xyes
5960 tm_file
=mips
/ecoffl.h
5961 if test x
$stabs = xyes
; then
5962 tm_file
="${tm_file} dbx.h"
5964 tmake_file
=mips
/t-ecoff
5967 tm_file
="gofast.h mips/ecoff.h"
5968 if test x
$stabs = xyes
; then
5969 tm_file
="${tm_file} dbx.h"
5971 tmake_file
=mips
/t-ecoff
5974 tm_file
="mips/elfl.h"
5975 tmake_file
=mips
/t-elf
5978 tm_file
="mips/elf.h"
5979 tmake_file
=mips
/t-elf
5982 tm_file
="mips/elfl64.h"
5983 tmake_file
=mips
/t-elf
5985 mips64orionel-
*-elf*)
5986 tm_file
="mips/elforion.h mips/elfl64.h"
5987 tmake_file
=mips
/t-elf
5990 tm_file
="mips/elf64.h"
5991 tmake_file
=mips
/t-elf
5994 tm_file
="mips/elforion.h mips/elf64.h"
5995 tmake_file
=mips
/t-elf
5997 mips64orion-
*-rtems*)
5998 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5999 tmake_file
="mips/t-elf t-rtems"
6002 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
6003 tmake_file
=mips
/t-r3900
6006 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
6007 tmake_file
=mips
/t-r3900
6009 mips-
*-*) # Default MIPS RISC-OS 4.0.
6010 if test x
$stabs = xyes
; then
6011 tm_file
="${tm_file} dbx.h"
6013 if test x
$gas = xyes
6015 tmake_file
=mips
/t-mips-gas
6017 extra_passes
="mips-tfile mips-tdump"
6019 if test x
$gnu_ld != xyes
6027 tm_file
="mn10200/mn10200.h"
6028 if test x
$stabs = xyes
6030 tm_file
="${tm_file} dbx.h"
6036 tm_file
="mn10300/mn10300.h"
6037 if test x
$stabs = xyes
6039 tm_file
="${tm_file} dbx.h"
6044 tm_file
=ns32k
/encore.h
6048 tm_file
=ns32k
/sequent.h
6052 tm_file
=ns32k
/tek6100.h
6056 tm_file
=ns32k
/tek6200.h
6059 # This has not been updated to GCC 2.
6062 # xmake_file=ns32k/x-genix
6063 # tm_file=ns32k/genix.h
6067 tm_file
=ns32k
/merlin.h
6071 tm_file
=ns32k
/pc532-mach.h
6075 tm_file
=ns32k
/pc532-min.h
6076 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6081 tm_file
=ns32k
/netbsd.h
6082 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6083 # On NetBSD, the headers are already okay, except for math.h.
6088 tm_file
="${tm_file} pdp11/2bsd.h"
6097 # This has not been updated to GCC 2.
6100 # xmake_file=pyr/x-pyr
6105 tm_file
="svr4.h pj/linux.h ${tm_file}"
6110 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6117 xmake_file
=romp
/x-mach
6124 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6128 tm_file
=rs6000
/beos.h
6129 xm_file
=rs6000
/xm-beos.h
6130 tmake_file
=rs6000
/t-beos
6131 xmake_file
=rs6000
/x-beos
6134 tm_file
=rs6000
/sysv4.h
6135 xm_file
="rs6000/xm-sysv4.h"
6136 xm_defines
="USG POSIX"
6137 extra_headers
=ppc-asm.h
6138 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6139 xmake_file
=rs6000
/x-sysv4
6142 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6143 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6144 extra_headers
=ppc-asm.h
6147 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6148 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6149 extra_headers
=ppc-asm.h
6152 tm_file
="rs6000/sysv4.h"
6153 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6154 extra_headers
=ppc-asm.h
6157 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6158 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6159 extra_headers
=ppc-asm.h
6162 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6163 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6164 extra_headers
=ppc-asm.h
6166 powerpc-
*-linux*libc1
)
6167 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6168 xm_file
=rs6000
/xm-sysv4.h
6169 out_file
=rs6000
/rs6000.c
6170 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6172 extra_headers
=ppc-asm.h
6173 if test x
$enable_threads = xyes
; then
6178 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6179 xm_file
="rs6000/xm-sysv4.h"
6180 xm_defines
="USG ${xm_defines}"
6181 out_file
=rs6000
/rs6000.c
6182 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6184 extra_headers
=ppc-asm.h
6185 if test x
$enable_threads = xyes
; then
6189 powerpc-wrs-vxworks
*)
6191 xm_file
="rs6000/xm-sysv4.h"
6192 xm_defines
="USG POSIX"
6193 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6194 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6195 extra_headers
=ppc-asm.h
6196 thread_file
='vxworks'
6198 powerpcle-wrs-vxworks
*)
6200 xm_file
="rs6000/xm-sysv4.h"
6201 xm_defines
="USG POSIX"
6202 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6203 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6204 extra_headers
=ppc-asm.h
6205 thread_file
='vxworks'
6208 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6209 xm_file
="rs6000/xm-sysv4.h"
6210 xm_defines
="USG POSIX"
6211 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6212 xmake_file
=rs6000
/x-sysv4
6213 extra_headers
=ppc-asm.h
6216 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6217 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6218 extra_headers
=ppc-asm.h
6220 powerpcle-
*-eabisim*)
6221 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6222 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6223 extra_headers
=ppc-asm.h
6226 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6227 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6228 extra_headers
=ppc-asm.h
6230 powerpcle-
*-solaris2*)
6231 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6232 xm_file
="rs6000/xm-sysv4.h"
6233 xm_defines
="USG POSIX"
6234 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6235 xmake_file
=rs6000
/x-sysv4
6236 extra_headers
=ppc-asm.h
6238 rs6000-ibm-aix3.
[01]*)
6239 tm_file
=rs6000
/aix31.h
6240 xmake_file
=rs6000
/x-aix31
6244 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6245 tm_file
=rs6000
/aix3newas.h
6246 if test x
$host != x
$target
6248 tmake_file
=rs6000
/t-xnewas
6250 tmake_file
=rs6000
/t-newas
6255 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6256 tm_file
=rs6000
/aix41.h
6257 if test x
$host != x
$target
6259 tmake_file
=rs6000
/t-xnewas
6261 tmake_file
=rs6000
/t-newas
6263 if test "$gnu_ld" = yes
6265 xmake_file
=rs6000
/x-aix41-gld
6267 tmake_file
="rs6000/t-newas rs6000/t-aix41"
6269 xmake_file
=rs6000
/x-aix41
6273 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6274 tm_file
=rs6000
/aix43.h
6275 tmake_file
=rs6000
/t-aix43
6276 xmake_file
=rs6000
/x-aix41
6280 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6281 tm_file
=rs6000
/aix43.h
6282 tmake_file
=rs6000
/t-aix43
6283 xmake_file
=rs6000
/x-aix41
6296 tm_file
=rs6000
/mach.h
6297 xm_file
="${xm_file} rs6000/xm-mach.h"
6298 xmake_file
=rs6000
/x-mach
6302 tm_file
=rs6000
/lynx.h
6303 xm_file
=rs6000
/xm-lynx.h
6304 tmake_file
=rs6000
/t-rs6000
6305 xmake_file
=rs6000
/x-lynx
6313 tmake_file
="sh/t-sh t-rtems"
6314 tm_file
=sh
/rtemself.h
6318 tmake_file
="sh/t-sh t-rtems"
6327 xm_file
="xm-alloca.h ${xm_file}"
6330 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6331 tm_file
=sparc
/vxsparc.h
6332 tmake_file
=sparc
/t-vxsparc
6334 thread_file
='vxworks'
6337 tmake_file
=sparc
/t-sparcbare
6338 tm_file
="sparc/aout.h libgloss.h"
6341 tm_file
=sparc
/netbsd.h
6346 # we need collect2 until our bug is fixed...
6354 tmake_file
=sparc
/t-elf
6355 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6359 sparc-
*-linux*aout
*) # Sparc's running GNU/Linux, a.out
6360 xm_file
="${xm_file} sparc/xm-linux.h"
6361 tm_file
=sparc
/linux-aout.h
6365 sparc-
*-linux*libc1
*) # Sparc's running GNU/Linux, libc5
6366 xm_file
="${xm_file} sparc/xm-linux.h"
6368 tm_file
=sparc
/linux.h
6369 tmake_file
="t-linux t-linux-gnulibc1"
6370 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6374 sparc-
*-linux*) # Sparc's running GNU/Linux, libc6
6375 xm_file
="${xm_file} sparc/xm-linux.h"
6377 tm_file
=sparc
/linux.h
6378 tmake_file
="t-linux"
6379 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6381 if test x
$enable_threads = xyes
; then
6387 if test x
$gas = xyes
6389 tm_file
=sparc
/lynx.h
6391 tm_file
=sparc
/lynx-ng.h
6393 xm_file
=sparc
/xm-lynx.h
6394 tmake_file
=sparc
/t-sunos41
6398 tmake_file
="sparc/t-sparcbare t-rtems"
6399 tm_file
=sparc
/rtems.h
6401 sparc-
*-rtems*|sparc-
*-rtemself*)
6402 tm_file
="sparc/rtemself.h"
6403 tmake_file
="sparc/t-elf t-rtems"
6404 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6408 sparcv9-
*-solaris2*)
6409 if test x
$gnu_ld = xyes
6411 tm_file
=sparc
/sol2-64.h
6413 tm_file
=sparc
/sol2-sld-64.h
6415 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6416 xm_defines
="USG POSIX"
6417 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6418 xmake_file
=sparc
/x-sysv4
6419 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6421 if test x
${enable_threads} = x
; then
6422 enable_threads
=$have_pthread_h
6423 if test x
${enable_threads} = x
; then
6424 enable_threads
=$have_thread_h
6427 if test x
${enable_threads} = xyes
; then
6428 if test x
${have_pthread_h} = xyes
; then
6431 thread_file
='solaris'
6435 sparc-hal-solaris2
*)
6436 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6437 xm_defines
="USG POSIX"
6438 tm_file
="sparc/sol2.h sparc/hal.h"
6439 tmake_file
="sparc/t-halos sparc/t-sol2"
6440 xmake_file
=sparc
/x-sysv4
6441 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6450 thread_file
='solaris'
6453 if test x
$gnu_ld = xyes
6455 tm_file
=sparc
/sol2.h
6457 tm_file
=sparc
/sol2-sld.h
6459 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6460 xm_defines
="USG POSIX"
6461 tmake_file
=sparc
/t-sol2
6462 xmake_file
=sparc
/x-sysv4
6463 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6465 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6467 if test x
$gnu_ld = xyes
6469 tm_file
=sparc
/sol2-64.h
6471 tm_file
=sparc
/sol2-sld-64.h
6473 tmake_file
="$tmake_file sparc/t-sol2-64"
6484 if test x
${enable_threads} = x
; then
6485 enable_threads
=$have_pthread_h
6486 if test x
${enable_threads} = x
; then
6487 enable_threads
=$have_thread_h
6490 if test x
${enable_threads} = xyes
; then
6491 if test x
${have_pthread_h} = xyes
; then
6494 thread_file
='solaris'
6499 tm_file
=sparc
/sunos4.h
6500 tmake_file
=sparc
/t-sunos40
6504 tm_file
=sparc
/sunos4.h
6505 tmake_file
=sparc
/t-sunos41
6507 if test x
$gas = xyes
; then
6508 tm_file
="${tm_file} sparc/sun4gas.h"
6512 tm_file
=sparc
/sun4o3.h
6516 tm_file
=sparc
/sysv4.h
6517 xm_file
="sparc/xm-sysv4.h"
6518 xm_defines
="USG POSIX"
6520 xmake_file
=sparc
/x-sysv4
6521 extra_parts
="crtbegin.o crtend.o"
6524 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6525 xm_defines
="USG POSIX"
6526 tm_file
=sparc
/vxsim.h
6527 tmake_file
=sparc
/t-vxsparc
6528 xmake_file
=sparc
/x-sysv4
6531 tm_file
="sparc/splet.h libgloss.h"
6532 tmake_file
=sparc
/t-splet
6535 tm_file
="sparc/litecoff.h libgloss.h"
6536 tmake_file
=sparc
/t-sparclite
6539 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6540 tmake_file
=sparc
/t-sparclite
6543 tm_file
="sparc/liteelf.h"
6544 tmake_file
=sparc
/t-sparclite
6545 extra_parts
="crtbegin.o crtend.o"
6548 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6549 tmake_file
=sparc
/t-sp86x
6552 tm_file
="sparc/sp86x-elf.h"
6553 tmake_file
=sparc
/t-sp86x
6554 extra_parts
="crtbegin.o crtend.o"
6557 tmake_file
=sparc
/t-sp64
6558 tm_file
=sparc
/sp64-aout.h
6561 tmake_file
=sparc
/t-sp64
6562 tm_file
=sparc
/sp64-elf.h
6563 extra_parts
="crtbegin.o crtend.o"
6565 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6566 tmake_file
="t-linux sparc/t-linux64"
6567 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6568 tm_file
=sparc
/linux64.h
6570 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6572 if test x
$enable_threads = xyes
; then
6577 # This hasn't been upgraded to GCC 2.
6578 # tahoe-harris-*) # Harris tahoe, using COFF.
6579 # tm_file=tahoe/harris.h
6581 # tahoe-*-bsd*) # tahoe running BSD
6585 { echo "configure: error:
6586 *** The Thumb targets have been depreciated. The equivalent
6587 *** ARM based toolchain can now generated Thumb instructions
6588 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6590 # This hasn't been upgraded to GCC 2.
6597 tm_file
="v850/rtems.h"
6598 xm_file
="v850/xm-v850.h"
6599 tmake_file
="v850/t-v850 t-rtems"
6600 if test x
$stabs = xyes
6602 tm_file
="${tm_file} dbx.h"
6607 target_cpu_default
="TARGET_CPU_generic"
6609 tm_file
="v850/v850.h"
6610 xm_file
="v850/xm-v850.h"
6611 tmake_file
=v850
/t-v850
6612 if test x
$stabs = xyes
6614 tm_file
="${tm_file} dbx.h"
6618 vax-
*-bsd*) # vaxen running BSD
6622 vax-
*-sysv*) # vaxen running system V
6623 tm_file
="${tm_file} vax/vaxv.h"
6628 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6634 tmake_file
="${tmake_file} vax/t-openbsd"
6635 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6636 xm_file
="xm-openbsd.h vax/xm-vax.h"
6640 vax-
*-ultrix*) # vaxen running ultrix
6641 tm_file
="${tm_file} vax/ultrix.h"
6645 vax-
*-vms*) # vaxen running VMS
6646 xm_file
=vax
/xm-vms.h
6650 vax-
*-*) # vax default entry
6654 xm_file
="${xm_file} xm-svr3"
6658 echo "Configuration $machine not supported" 1>&2
6665 ;; # Existing GNU/Linux systems do not use the GNU setup.
6667 # On the GNU system, the setup is just about the same on
6668 # each different CPU. The specific machines that GNU
6669 # supports are matched above and just set $cpu_type.
6670 xm_file
="xm-gnu.h ${xm_file}"
6671 tm_file
=${cpu_type}/gnu.h
6672 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6673 # GNU always uses ELF.
6675 # GNU tools are the only tools.
6678 xmake_file
=x-linux
# These details are the same as Linux.
6679 tmake_file
=t-gnu
# These are not.
6682 xmake_try_sysv
=x-sysv
6683 install_headers_dir
=install-headers-cpio
6686 install_headers_dir
=install-headers-cpio
6690 # Distinguish i[34567]86
6691 # Also, do not run mips-tfile on MIPS if using gas.
6692 # Process --with-cpu= for PowerPC/rs6000
6693 target_cpu_default2
=
6696 target_cpu_default2
=1
6699 case $target_alias in
6701 target_cpu_default2
=4
6704 target_cpu_default2
=2
6708 i686-
*-* | i786-
*-*)
6709 target_cpu_default2
=3
6714 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6717 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6720 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6723 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6726 target_cpu_default2
="MASK_CPU_EV5"
6730 if test x
$gas = xyes
6732 if test "$target_cpu_default2" = ""
6734 target_cpu_default2
="MASK_GAS"
6736 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6741 case "x$with_cpu" in
6744 target_cpu_default2
="TARGET_CPU_generic"
6747 # Distinguish cores, and major variants
6748 # arm7m doesn't exist, but D & I don't affect code
6749 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6750 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6751 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6752 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6753 target_cpu_default2
="TARGET_CPU_$with_cpu"
6757 echo "--with-cpu must be passed a value" 1>&2
6762 if test x
$pass2done = xyes
6764 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6771 mips
*-*-ecoff* | mips
*-*-elf*)
6772 if test x
$gas = xyes
6774 if test x
$gnu_ld = xyes
6776 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6778 target_cpu_default2
="MASK_GAS"
6783 if test x
$gas = xyes
6785 target_cpu_default2
="MASK_GAS"
6788 powerpc
*-*-* | rs6000-
*-*)
6789 case "x$with_cpu" in
6793 xcommon | xpower | xpower2 | xpowerpc | xrios \
6794 | xrios1 | xrios2 | xrsc | xrsc1 \
6795 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6796 | xec603e | x740 | x750 | x401 \
6797 | x403 | x505 | x801 | x821 | x823 | x860
)
6798 target_cpu_default2
="\"$with_cpu\""
6802 echo "--with-cpu must be passed a value" 1>&2
6807 if test x
$pass2done = xyes
6809 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6816 case ".$with_cpu" in
6818 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6820 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6821 target_cpu_default2
="TARGET_CPU_$with_cpu"
6824 if test x
$pass2done = xyes
6826 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6834 if test "$target_cpu_default2" != ""
6836 if test "$target_cpu_default" != ""
6838 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6840 target_cpu_default
=$target_cpu_default2
6844 # No need for collect2 if we have the GNU linker.
6845 # Actually, there is now; GNU ld doesn't handle the EH info or
6846 # collecting for shared libraries.
6853 # Save data on machine being used to compile GCC in build_xm_file.
6854 # Save data on host machine in vars host_xm_file and host_xmake_file.
6855 if test x
$pass1done = x
6857 if test x
"$xm_file" = x
6858 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6859 else build_xm_file
=$xm_file
6861 build_xm_defines
=$xm_defines
6862 build_install_headers_dir
=$install_headers_dir
6863 build_exeext
=$exeext
6866 if test x
$pass2done = x
6868 if test x
"$xm_file" = x
6869 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6870 else host_xm_file
=$xm_file
6872 host_xm_defines
=$xm_defines
6873 if test x
"$xmake_file" = x
6874 then xmake_file
=$cpu_type/x-
$cpu_type
6876 host_xmake_file
="$xmake_file"
6877 host_truncate_target
=$truncate_target
6878 host_extra_gcc_objs
=$extra_gcc_objs
6879 host_extra_objs
=$extra_host_objs
6886 extra_objs
="${host_extra_objs} ${extra_objs}"
6888 # Default the target-machine variables that were not explicitly set.
6889 if test x
"$tm_file" = x
6890 then tm_file
=$cpu_type/$cpu_type.h
; fi
6892 if test x
$extra_headers = x
6893 then extra_headers
=; fi
6895 if test x
"$xm_file" = x
6896 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6898 if test x
$md_file = x
6899 then md_file
=$cpu_type/$cpu_type.md
; fi
6901 if test x
$out_file = x
6902 then out_file
=$cpu_type/$cpu_type.c
; fi
6904 if test x
"$tmake_file" = x
6905 then tmake_file
=$cpu_type/t-
$cpu_type
6908 if test x
"$dwarf2" = xyes
6909 then tm_file
="$tm_file tm-dwarf2.h"
6912 if test x
$float_format = x
6913 then float_format
=i64
6916 if test $float_format = none
6917 then float_h_file
=Makefile.
in
6918 else float_h_file
=float-
$float_format.h
6921 # Handle cpp installation.
6922 if test x
$enable_cpp != xno
6924 tmake_file
="$tmake_file t-install-cpp"
6927 # Say what files are being used for the output code and MD file.
6928 echo "Using \`$srcdir/config/$out_file' to output insns."
6929 echo "Using \`$srcdir/config/$md_file' as machine description file."
6932 for f
in $tm_file; do
6935 if test $count = ax
; then
6936 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6938 echo "Using the following target machine macro files:"
6939 for f
in $tm_file; do
6940 echo " $srcdir/config/$f"
6945 for f
in $host_xm_file; do
6948 if test $count = ax
; then
6949 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6951 echo "Using the following host machine macro files:"
6952 for f
in $host_xm_file; do
6953 echo " $srcdir/config/$f"
6957 if test "$host_xm_file" != "$build_xm_file"; then
6959 for f
in $build_xm_file; do
6962 if test $count = ax
; then
6963 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6965 echo "Using the following build machine macro files:"
6966 for f
in $build_xm_file; do
6967 echo " $srcdir/config/$f"
6972 if test x
$thread_file = x
; then
6973 if test x
$target_thread_file != x
; then
6974 thread_file
=$target_thread_file
6976 thread_file
='single'
6980 # Set up the header files.
6981 # $links is the list of header files to create.
6982 # $vars is the list of shell variables with file names to include.
6983 # auto-host.h is the file containing items generated by autoconf and is
6984 # the first file included by config.h.
6986 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6988 # If host=build, it is correct to have hconfig include auto-host.h
6989 # as well. If host!=build, we are in error and need to do more
6990 # work to find out the build config parameters.
6991 if test x
$host = x
$build
6993 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6995 # We create a subdir, then run autoconf in the subdir.
6996 # To prevent recursion we set host and build for the new
6997 # invocation of configure to the build for this invocation
7004 /*) realsrcdir
=${srcdir};;
7005 *) realsrcdir
=..
/${srcdir};;
7007 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
7008 --target=$target --host=$build --build=$build
7010 # We just finished tests for the build machine, so rename
7011 # the file auto-build.h in the gcc directory.
7012 mv auto-host.h ..
/auto-build.h
7015 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7018 xm_file
="gansidecl.h ${xm_file}"
7019 tm_file
="gansidecl.h ${tm_file}"
7021 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7022 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
7023 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7026 if test -f config.status
; then mv -f config.status config.bak
; fi
7029 while test -n "$vars"
7031 set $vars; var
=$1; shift; vars
=$
*
7032 set $links; link
=$1; shift; links
=$
*
7033 set $defines; define
=$1; shift; defines
=$
*
7036 # Make sure the file is created, even if it is empty.
7039 # Define TARGET_CPU_DEFAULT if the system wants one.
7040 # This substitutes for lots of *.h files.
7041 if test "$target_cpu_default" != "" -a $link = tm.h
7043 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7046 for file in `eval echo '$'$var`; do
7048 auto-host.h | auto-build.h
)
7051 echo '#ifdef IN_GCC' >>$link
7054 echo "#include \"$file\"" >>$link
7056 auto-host.h | auto-build.h
)
7059 echo '#endif' >>$link
7064 for def
in `eval echo '$'$define`; do
7065 echo "#ifndef $def" >>$link
7066 echo "#define $def" >>$link
7067 echo "#endif" >>$link
7071 # Truncate the target if necessary
7072 if test x
$host_truncate_target != x
; then
7073 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7076 # Get the version trigger filename from the toplevel
7077 if test "${with_gcc_version_trigger+set}" = set; then
7078 gcc_version_trigger
=$with_gcc_version_trigger
7080 gcc_version_trigger
=${srcdir}/version.c
7082 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7084 # Internationalization
7086 VERSION
="$gcc_version"
7087 cat >> confdefs.h
<<EOF
7088 #define PACKAGE "$PACKAGE"
7091 cat >> confdefs.h
<<EOF
7092 #define VERSION "$VERSION"
7100 # Enable NLS support by default
7101 # Check whether --enable-nls or --disable-nls was given.
7102 if test "${enable_nls+set}" = set; then
7103 enableval
="$enable_nls"
7110 # if cross compiling, disable NLS support.
7111 # It's not worth the trouble, at least for now.
7113 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7114 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7119 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7120 echo "configure:7121: checking for strerror in -lcposix" >&5
7121 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7123 echo $ac_n "(cached) $ac_c" 1>&6
7125 ac_save_LIBS
="$LIBS"
7126 LIBS
="-lcposix $LIBS"
7127 cat > conftest.
$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 /* Override any gcc2 internal prototype to avoid an error. */
7131 /* We use char because int might match the return type of a gcc2
7132 builtin and then its argument prototype would still apply. */
7139 if { (eval echo configure
:7140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7141 eval "ac_cv_lib_$ac_lib_var=yes"
7143 echo "configure: failed program was:" >&5
7144 cat conftest.
$ac_ext >&5
7146 eval "ac_cv_lib_$ac_lib_var=no"
7149 LIBS
="$ac_save_LIBS"
7152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7153 echo "$ac_t""yes" 1>&6
7154 LIBS
="$LIBS -lcposix"
7156 echo "$ac_t""no" 1>&6
7161 echo $ac_n "checking for working const""... $ac_c" 1>&6
7162 echo "configure:7163: checking for working const" >&5
7163 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7164 echo $ac_n "(cached) $ac_c" 1>&6
7166 cat > conftest.
$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7172 /* Ultrix mips cc rejects this. */
7173 typedef int charset[2]; const charset x;
7174 /* SunOS 4.1.1 cc rejects this. */
7175 char const *const *ccp;
7177 /* NEC SVR4.0.2 mips cc rejects this. */
7178 struct point {int x, y;};
7179 static struct point const zero = {0,0};
7180 /* AIX XL C 1.02.0.0 rejects this.
7181 It does not let you subtract one const X* pointer from another in an arm
7182 of an if-expression whose if-part is not a constant expression */
7183 const char *g = "string";
7184 ccp = &g + (g ? g-g : 0);
7185 /* HPUX 7.0 cc rejects these. */
7188 ccp = (char const *const *) p;
7189 { /* SCO 3.2v4 cc rejects this. */
7191 char const *s = 0 ? (char *) 0 : (char const *) 0;
7195 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7197 const int *foo = &x[0];
7200 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7201 typedef const int *iptr;
7205 { /* AIX XL C 1.02.0.0 rejects this saying
7206 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7207 struct s { int j; const int *ap[3]; };
7208 struct s *b; b->j = 5;
7210 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7216 if { (eval echo configure
:7217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7220 echo "configure: failed program was:" >&5
7221 cat conftest.
$ac_ext >&5
7228 echo "$ac_t""$ac_cv_c_const" 1>&6
7229 if test $ac_cv_c_const = no
; then
7230 cat >> confdefs.h
<<\EOF
7236 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7237 echo "configure:7238: checking for off_t" >&5
7238 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7241 cat > conftest.
$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 #include <sys/types.h>
7250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7253 ac_cv_type_off_t
=yes
7261 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7262 if test $ac_cv_type_off_t = no
; then
7263 cat >> confdefs.h
<<\EOF
7269 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7270 echo "configure:7271: checking for size_t" >&5
7271 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6
7274 cat > conftest.
$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7277 #include <sys/types.h>
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7286 ac_cv_type_size_t
=yes
7289 ac_cv_type_size_t
=no
7294 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7295 if test $ac_cv_type_size_t = no
; then
7296 cat >> confdefs.h
<<\EOF
7297 #define size_t unsigned
7302 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7303 # for constant arguments. Useless!
7304 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7305 echo "configure:7306: checking for working alloca.h" >&5
7306 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7309 cat > conftest.
$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7314 char *p = alloca(2 * sizeof(int));
7317 if { (eval echo configure
:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7319 ac_cv_header_alloca_h
=yes
7321 echo "configure: failed program was:" >&5
7322 cat conftest.
$ac_ext >&5
7324 ac_cv_header_alloca_h
=no
7329 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7330 if test $ac_cv_header_alloca_h = yes; then
7331 cat >> confdefs.h
<<\EOF
7332 #define HAVE_ALLOCA_H 1
7337 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7338 echo "configure:7339: checking for alloca" >&5
7339 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7342 cat > conftest.
$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7347 # define alloca __builtin_alloca
7350 # include <malloc.h>
7351 # define alloca _alloca
7354 # include <alloca.h>
7359 # ifndef alloca /* predefined by HP cc +Olibcalls */
7368 char *p = (char *) alloca(1);
7371 if { (eval echo configure
:7372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7373 ac_cv_func_alloca_works
=yes
7375 echo "configure: failed program was:" >&5
7376 cat conftest.
$ac_ext >&5
7378 ac_cv_func_alloca_works
=no
7383 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7384 if test $ac_cv_func_alloca_works = yes; then
7385 cat >> confdefs.h
<<\EOF
7386 #define HAVE_ALLOCA 1
7391 if test $ac_cv_func_alloca_works = no
; then
7392 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7393 # that cause trouble. Some versions do not even contain alloca or
7394 # contain a buggy version. If you still want to use their alloca,
7395 # use ar to extract alloca.o from them instead of compiling alloca.c.
7396 ALLOCA
=alloca.
${ac_objext}
7397 cat >> confdefs.h
<<\EOF
7402 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7403 echo "configure:7404: checking whether alloca needs Cray hooks" >&5
7404 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7407 cat > conftest.
$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 #if defined(CRAY) && ! defined(CRAY2)
7417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7418 egrep "webecray" >/dev
/null
2>&1; then
7429 echo "$ac_t""$ac_cv_os_cray" 1>&6
7430 if test $ac_cv_os_cray = yes; then
7431 for ac_func
in _getb67 GETB67 getb67
; do
7432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7433 echo "configure:7434: checking for $ac_func" >&5
7434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7435 echo $ac_n "(cached) $ac_c" 1>&6
7437 cat > conftest.
$ac_ext <<EOF
7438 #line 7439 "configure"
7439 #include "confdefs.h"
7440 /* System header to define __stub macros and hopefully few prototypes,
7441 which can conflict with char $ac_func(); below. */
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 /* We use char because int might match the return type of a gcc2
7445 builtin and then its argument prototype would still apply. */
7450 /* The GNU C library defines this for functions which it implements
7451 to always fail with ENOSYS. Some functions are actually named
7452 something starting with __ and the normal name is an alias. */
7453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7461 if { (eval echo configure
:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7463 eval "ac_cv_func_$ac_func=yes"
7465 echo "configure: failed program was:" >&5
7466 cat conftest.
$ac_ext >&5
7468 eval "ac_cv_func_$ac_func=no"
7473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7474 echo "$ac_t""yes" 1>&6
7475 cat >> confdefs.h
<<EOF
7476 #define CRAY_STACKSEG_END $ac_func
7481 echo "$ac_t""no" 1>&6
7487 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7488 echo "configure:7489: checking stack direction for C alloca" >&5
7489 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7492 if test "$cross_compiling" = yes; then
7493 ac_cv_c_stack_direction
=0
7495 cat > conftest.
$ac_ext <<EOF
7496 #line 7497 "configure"
7497 #include "confdefs.h"
7498 find_stack_direction ()
7500 static char *addr = 0;
7505 return find_stack_direction ();
7508 return (&dummy > addr) ? 1 : -1;
7512 exit (find_stack_direction() < 0);
7515 if { (eval echo configure
:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7517 ac_cv_c_stack_direction
=1
7519 echo "configure: failed program was:" >&5
7520 cat conftest.
$ac_ext >&5
7522 ac_cv_c_stack_direction
=-1
7529 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7530 cat >> confdefs.h
<<EOF
7531 #define STACK_DIRECTION $ac_cv_c_stack_direction
7537 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7538 unistd.h sys
/param.h
7540 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7542 echo "configure:7543: checking for $ac_hdr" >&5
7543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7544 echo $ac_n "(cached) $ac_c" 1>&6
7546 cat > conftest.
$ac_ext <<EOF
7547 #line 7548 "configure"
7548 #include "confdefs.h"
7551 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7552 { (eval echo configure
:7553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7553 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7554 if test -z "$ac_err"; then
7556 eval "ac_cv_header_$ac_safe=yes"
7559 echo "configure: failed program was:" >&5
7560 cat conftest.
$ac_ext >&5
7562 eval "ac_cv_header_$ac_safe=no"
7566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7567 echo "$ac_t""yes" 1>&6
7568 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7569 cat >> confdefs.h
<<EOF
7570 #define $ac_tr_hdr 1
7574 echo "$ac_t""no" 1>&6
7578 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7579 strdup __argz_count __argz_stringify __argz_next
7581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7582 echo "configure:7583: checking for $ac_func" >&5
7583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7586 cat > conftest.
$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 /* System header to define __stub macros and hopefully few prototypes,
7590 which can conflict with char $ac_func(); below. */
7592 /* Override any gcc2 internal prototype to avoid an error. */
7593 /* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7610 if { (eval echo configure
:7611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7612 eval "ac_cv_func_$ac_func=yes"
7614 echo "configure: failed program was:" >&5
7615 cat conftest.
$ac_ext >&5
7617 eval "ac_cv_func_$ac_func=no"
7622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7623 echo "$ac_t""yes" 1>&6
7624 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7625 cat >> confdefs.h
<<EOF
7626 #define $ac_tr_func 1
7630 echo "$ac_t""no" 1>&6
7635 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7636 for ac_func
in stpcpy
7638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7639 echo "configure:7640: checking for $ac_func" >&5
7640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 cat > conftest.
$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 /* System header to define __stub macros and hopefully few prototypes,
7647 which can conflict with char $ac_func(); below. */
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7656 /* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7667 if { (eval echo configure
:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7669 eval "ac_cv_func_$ac_func=yes"
7671 echo "configure: failed program was:" >&5
7672 cat conftest.
$ac_ext >&5
7674 eval "ac_cv_func_$ac_func=no"
7679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7682 cat >> confdefs.h
<<EOF
7683 #define $ac_tr_func 1
7687 echo "$ac_t""no" 1>&6
7692 if test "${ac_cv_func_stpcpy}" = "yes"; then
7693 cat >> confdefs.h
<<\EOF
7694 #define HAVE_STPCPY 1
7699 if test $ac_cv_header_locale_h = yes; then
7700 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7701 echo "configure:7702: checking for LC_MESSAGES" >&5
7702 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7703 echo $ac_n "(cached) $ac_c" 1>&6
7705 cat > conftest.
$ac_ext <<EOF
7706 #line 7707 "configure"
7707 #include "confdefs.h"
7713 if { (eval echo configure
:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7715 am_cv_val_LC_MESSAGES
=yes
7717 echo "configure: failed program was:" >&5
7718 cat conftest.
$ac_ext >&5
7720 am_cv_val_LC_MESSAGES
=no
7725 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7726 if test $am_cv_val_LC_MESSAGES = yes; then
7727 cat >> confdefs.h
<<\EOF
7728 #define HAVE_LC_MESSAGES 1
7733 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7734 echo "configure:7735: checking whether NLS is requested" >&5
7735 # Check whether --enable-nls or --disable-nls was given.
7736 if test "${enable_nls+set}" = set; then
7737 enableval
="$enable_nls"
7743 echo "$ac_t""$USE_NLS" 1>&6
7746 USE_INCLUDED_LIBINTL
=no
7748 if test "$USE_NLS" = "yes"; then
7749 cat >> confdefs.h
<<\EOF
7750 #define ENABLE_NLS 1
7753 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7754 echo "configure:7755: checking whether included gettext is requested" >&5
7755 # Check whether --with-included-gettext or --without-included-gettext was given.
7756 if test "${with_included_gettext+set}" = set; then
7757 withval
="$with_included_gettext"
7758 nls_cv_force_use_gnu_gettext
=$withval
7760 nls_cv_force_use_gnu_gettext
=yes
7763 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7765 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7766 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7768 nls_cv_header_libgt
=
7771 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7772 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7773 echo "configure:7774: checking for libintl.h" >&5
7774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7777 cat > conftest.
$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 #include <libintl.h>
7782 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7783 { (eval echo configure
:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7784 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7785 if test -z "$ac_err"; then
7787 eval "ac_cv_header_$ac_safe=yes"
7790 echo "configure: failed program was:" >&5
7791 cat conftest.
$ac_ext >&5
7793 eval "ac_cv_header_$ac_safe=no"
7797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7798 echo "$ac_t""yes" 1>&6
7799 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7800 echo "configure:7801: checking for gettext in libc" >&5
7801 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 cat > conftest.
$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 #include <libintl.h>
7809 return (int) gettext ("")
7812 if { (eval echo configure
:7813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7814 gt_cv_func_gettext_libc
=yes
7816 echo "configure: failed program was:" >&5
7817 cat conftest.
$ac_ext >&5
7819 gt_cv_func_gettext_libc
=no
7824 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7826 if test "$gt_cv_func_gettext_libc" != "yes"; then
7827 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7828 echo "configure:7829: checking for bindtextdomain in -lintl" >&5
7829 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7833 ac_save_LIBS
="$LIBS"
7835 cat > conftest.
$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841 char bindtextdomain();
7847 if { (eval echo configure
:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7849 eval "ac_cv_lib_$ac_lib_var=yes"
7851 echo "configure: failed program was:" >&5
7852 cat conftest.
$ac_ext >&5
7854 eval "ac_cv_lib_$ac_lib_var=no"
7857 LIBS
="$ac_save_LIBS"
7860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7861 echo "$ac_t""yes" 1>&6
7862 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7863 echo "configure:7864: checking for gettext in libintl" >&5
7864 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7867 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7868 echo "configure:7869: checking for gettext in -lintl" >&5
7869 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7870 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7873 ac_save_LIBS
="$LIBS"
7875 cat > conftest.
$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7887 if { (eval echo configure
:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7889 eval "ac_cv_lib_$ac_lib_var=yes"
7891 echo "configure: failed program was:" >&5
7892 cat conftest.
$ac_ext >&5
7894 eval "ac_cv_lib_$ac_lib_var=no"
7897 LIBS
="$ac_save_LIBS"
7900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7901 echo "$ac_t""yes" 1>&6
7902 gt_cv_func_gettext_libintl
=yes
7904 echo "$ac_t""no" 1>&6
7905 gt_cv_func_gettext_libintl
=no
7910 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7912 echo "$ac_t""no" 1>&6
7917 if test "$gt_cv_func_gettext_libc" = "yes" \
7918 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7919 cat >> confdefs.h
<<\EOF
7920 #define HAVE_GETTEXT 1
7923 # Extract the first word of "msgfmt", so it can be a program name with args.
7924 set dummy msgfmt
; ac_word
=$2
7925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7926 echo "configure:7927: checking for $ac_word" >&5
7927 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7932 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7936 for ac_dir
in $PATH; do
7937 test -z "$ac_dir" && ac_dir
=.
7938 if test -f $ac_dir/$ac_word; then
7939 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7940 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7946 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7950 MSGFMT
="$ac_cv_path_MSGFMT"
7951 if test -n "$MSGFMT"; then
7952 echo "$ac_t""$MSGFMT" 1>&6
7954 echo "$ac_t""no" 1>&6
7956 if test "$MSGFMT" != "no"; then
7957 for ac_func
in dcgettext
7959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7960 echo "configure:7961: checking for $ac_func" >&5
7961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7964 cat > conftest.
$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7967 /* System header to define __stub macros and hopefully few prototypes,
7968 which can conflict with char $ac_func(); below. */
7970 /* Override any gcc2 internal prototype to avoid an error. */
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7977 /* The GNU C library defines this for functions which it implements
7978 to always fail with ENOSYS. Some functions are actually named
7979 something starting with __ and the normal name is an alias. */
7980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7988 if { (eval echo configure
:7989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7990 eval "ac_cv_func_$ac_func=yes"
7992 echo "configure: failed program was:" >&5
7993 cat conftest.
$ac_ext >&5
7995 eval "ac_cv_func_$ac_func=no"
8000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8001 echo "$ac_t""yes" 1>&6
8002 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8003 cat >> confdefs.h
<<EOF
8004 #define $ac_tr_func 1
8008 echo "$ac_t""no" 1>&6
8012 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8013 set dummy gmsgfmt
; ac_word
=$2
8014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8015 echo "configure:8016: checking for $ac_word" >&5
8016 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8021 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8024 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8027 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8029 for ac_dir
in $ac_dummy; do
8030 test -z "$ac_dir" && ac_dir
=.
8031 if test -f $ac_dir/$ac_word; then
8032 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8037 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8041 GMSGFMT
="$ac_cv_path_GMSGFMT"
8042 if test -n "$GMSGFMT"; then
8043 echo "$ac_t""$GMSGFMT" 1>&6
8045 echo "$ac_t""no" 1>&6
8048 # Extract the first word of "xgettext", so it can be a program name with args.
8049 set dummy xgettext
; ac_word
=$2
8050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8051 echo "configure:8052: checking for $ac_word" >&5
8052 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8057 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8060 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8061 for ac_dir
in $PATH; do
8062 test -z "$ac_dir" && ac_dir
=.
8063 if test -f $ac_dir/$ac_word; then
8064 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8065 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8071 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8075 XGETTEXT
="$ac_cv_path_XGETTEXT"
8076 if test -n "$XGETTEXT"; then
8077 echo "$ac_t""$XGETTEXT" 1>&6
8079 echo "$ac_t""no" 1>&6
8082 cat > conftest.
$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8087 extern int _nl_msg_cat_cntr;
8088 return _nl_msg_cat_cntr
8091 if { (eval echo configure
:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8096 echo "configure: failed program was:" >&5
8097 cat conftest.
$ac_ext >&5
8108 echo "$ac_t""no" 1>&6
8112 if test "$CATOBJEXT" = "NONE"; then
8113 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8114 echo "configure:8115: checking whether catgets can be used" >&5
8115 # Check whether --with-catgets or --without-catgets was given.
8116 if test "${with_catgets+set}" = set; then
8117 withval
="$with_catgets"
8118 nls_cv_use_catgets
=$withval
8120 nls_cv_use_catgets
=no
8123 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8125 if test "$nls_cv_use_catgets" = "yes"; then
8126 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8127 echo "configure:8128: checking for main in -li" >&5
8128 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8130 echo $ac_n "(cached) $ac_c" 1>&6
8132 ac_save_LIBS
="$LIBS"
8134 cat > conftest.
$ac_ext <<EOF
8135 #line 8136 "configure"
8136 #include "confdefs.h"
8142 if { (eval echo configure
:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8144 eval "ac_cv_lib_$ac_lib_var=yes"
8146 echo "configure: failed program was:" >&5
8147 cat conftest.
$ac_ext >&5
8149 eval "ac_cv_lib_$ac_lib_var=no"
8152 LIBS
="$ac_save_LIBS"
8155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8156 echo "$ac_t""yes" 1>&6
8157 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8158 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8159 cat >> confdefs.h
<<EOF
8160 #define $ac_tr_lib 1
8166 echo "$ac_t""no" 1>&6
8169 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8170 echo "configure:8171: checking for catgets" >&5
8171 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 cat > conftest.
$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 /* System header to define __stub macros and hopefully few prototypes,
8178 which can conflict with char catgets(); below. */
8180 /* Override any gcc2 internal prototype to avoid an error. */
8181 /* We use char because int might match the return type of a gcc2
8182 builtin and then its argument prototype would still apply. */
8187 /* The GNU C library defines this for functions which it implements
8188 to always fail with ENOSYS. Some functions are actually named
8189 something starting with __ and the normal name is an alias. */
8190 #if defined (__stub_catgets) || defined (__stub___catgets)
8198 if { (eval echo configure
:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8200 eval "ac_cv_func_catgets=yes"
8202 echo "configure: failed program was:" >&5
8203 cat conftest.
$ac_ext >&5
8205 eval "ac_cv_func_catgets=no"
8210 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8212 cat >> confdefs.h
<<\EOF
8213 #define HAVE_CATGETS 1
8216 INTLOBJS
="\$(CATOBJS)"
8217 # Extract the first word of "gencat", so it can be a program name with args.
8218 set dummy gencat
; ac_word
=$2
8219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8220 echo "configure:8221: checking for $ac_word" >&5
8221 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
8226 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8229 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8234 for ac_dir
in $ac_dummy; do
8235 test -z "$ac_dir" && ac_dir
=.
8236 if test -f $ac_dir/$ac_word; then
8237 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8242 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8246 GENCAT
="$ac_cv_path_GENCAT"
8247 if test -n "$GENCAT"; then
8248 echo "$ac_t""$GENCAT" 1>&6
8250 echo "$ac_t""no" 1>&6
8252 if test "$GENCAT" != "no"; then
8253 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8254 set dummy gmsgfmt
; ac_word
=$2
8255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8256 echo "configure:8257: checking for $ac_word" >&5
8257 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8258 echo $ac_n "(cached) $ac_c" 1>&6
8262 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8265 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8268 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8270 for ac_dir
in $ac_dummy; do
8271 test -z "$ac_dir" && ac_dir
=.
8272 if test -f $ac_dir/$ac_word; then
8273 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8278 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8282 GMSGFMT
="$ac_cv_path_GMSGFMT"
8283 if test -n "$GMSGFMT"; then
8284 echo "$ac_t""$GMSGFMT" 1>&6
8286 echo "$ac_t""no" 1>&6
8289 if test "$GMSGFMT" = "no"; then
8290 # Extract the first word of "msgfmt", so it can be a program name with args.
8291 set dummy msgfmt
; ac_word
=$2
8292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8293 echo "configure:8294: checking for $ac_word" >&5
8294 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8299 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8302 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8303 for ac_dir
in $PATH; do
8304 test -z "$ac_dir" && ac_dir
=.
8305 if test -f $ac_dir/$ac_word; then
8306 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8307 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8313 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8317 GMSGFMT
="$ac_cv_path_GMSGFMT"
8318 if test -n "$GMSGFMT"; then
8319 echo "$ac_t""$GMSGFMT" 1>&6
8321 echo "$ac_t""no" 1>&6
8324 if test "$GMSGFMT" = "msgfmt"; then
8325 echo "configure: warning: No program for catalog building found" 1>&2
8326 create_catalogs
="no"
8329 # Extract the first word of "xgettext", so it can be a program name with args.
8330 set dummy xgettext
; ac_word
=$2
8331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8332 echo "configure:8333: checking for $ac_word" >&5
8333 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8334 echo $ac_n "(cached) $ac_c" 1>&6
8338 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8341 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8342 for ac_dir
in $PATH; do
8343 test -z "$ac_dir" && ac_dir
=.
8344 if test -f $ac_dir/$ac_word; then
8345 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8346 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8352 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8356 XGETTEXT
="$ac_cv_path_XGETTEXT"
8357 if test -n "$XGETTEXT"; then
8358 echo "$ac_t""$XGETTEXT" 1>&6
8360 echo "$ac_t""no" 1>&6
8363 USE_INCLUDED_LIBINTL
=yes
8367 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8369 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8370 nls_cv_header_intl
=intl
/libintl.h
8371 nls_cv_header_libgt
=intl
/libgettext.h
8374 echo "$ac_t""no" 1>&6
8380 if test "$CATOBJEXT" = "NONE"; then
8381 nls_cv_use_gnu_gettext
=yes
8385 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8386 INTLOBJS
="\$(GETTOBJS)"
8387 # Extract the first word of "msgfmt", so it can be a program name with args.
8388 set dummy msgfmt
; ac_word
=$2
8389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8390 echo "configure:8391: checking for $ac_word" >&5
8391 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8392 echo $ac_n "(cached) $ac_c" 1>&6
8396 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8399 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8400 for ac_dir
in $PATH; do
8401 test -z "$ac_dir" && ac_dir
=.
8402 if test -f $ac_dir/$ac_word; then
8403 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8404 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8410 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8414 MSGFMT
="$ac_cv_path_MSGFMT"
8415 if test -n "$MSGFMT"; then
8416 echo "$ac_t""$MSGFMT" 1>&6
8418 echo "$ac_t""no" 1>&6
8421 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8422 set dummy gmsgfmt
; ac_word
=$2
8423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8424 echo "configure:8425: checking for $ac_word" >&5
8425 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8430 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8433 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8436 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8438 for ac_dir
in $ac_dummy; do
8439 test -z "$ac_dir" && ac_dir
=.
8440 if test -f $ac_dir/$ac_word; then
8441 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8446 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8450 GMSGFMT
="$ac_cv_path_GMSGFMT"
8451 if test -n "$GMSGFMT"; then
8452 echo "$ac_t""$GMSGFMT" 1>&6
8454 echo "$ac_t""no" 1>&6
8457 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8458 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8459 create_catalogs
="no"
8461 # Extract the first word of "xgettext", so it can be a program name with args.
8462 set dummy xgettext
; ac_word
=$2
8463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8464 echo "configure:8465: checking for $ac_word" >&5
8465 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8470 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8473 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8474 for ac_dir
in $PATH; do
8475 test -z "$ac_dir" && ac_dir
=.
8476 if test -f $ac_dir/$ac_word; then
8477 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8478 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8484 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8488 XGETTEXT
="$ac_cv_path_XGETTEXT"
8489 if test -n "$XGETTEXT"; then
8490 echo "$ac_t""$XGETTEXT" 1>&6
8492 echo "$ac_t""no" 1>&6
8496 USE_INCLUDED_LIBINTL
=yes
8500 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8502 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8503 nls_cv_header_intl
=intl
/libintl.h
8504 nls_cv_header_libgt
=intl
/libgettext.h
8507 if test "$XGETTEXT" != ":"; then
8508 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8511 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8518 # We need to process the po/ directory.
8522 nls_cv_header_intl
=intl
/libintl.h
8523 nls_cv_header_libgt
=intl
/libgettext.h
8529 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8530 # because some of the sources are only built for this goal.
8531 if test "$PACKAGE" = gettext; then
8533 USE_INCLUDED_LIBINTL
=yes
8536 for lang
in $ALL_LINGUAS; do
8537 GMOFILES
="$GMOFILES $lang.gmo"
8538 POFILES
="$POFILES $lang.po"
8554 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8555 if test "x$ALL_LINGUAS" = "x"; then
8558 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8559 echo "configure:8560: checking for catalogs to be installed" >&5
8560 if test "x$LINGUAS" = "x"; then
8561 LINGUAS
=$ALL_LINGUAS
8564 for lang
in $ALL_LINGUAS; do
8565 case " $LINGUAS " in
8566 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8569 LINGUAS
=$NEW_LINGUAS
8571 echo "$ac_t""$LINGUAS" 1>&6
8574 if test -n "$LINGUAS"; then
8575 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8579 if test $ac_cv_header_locale_h = yes; then
8580 INCLUDE_LOCALE_H
="#include <locale.h>"
8583 /* The system does not provide the header <locale.h>. Take care yourself. */"
8587 test -d intl || mkdir intl
8588 if test "$CATOBJEXT" = ".cat"; then
8589 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8590 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8591 echo "configure:8592: checking for linux/version.h" >&5
8592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8593 echo $ac_n "(cached) $ac_c" 1>&6
8595 cat > conftest.
$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8598 #include <linux/version.h>
8600 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8601 { (eval echo configure
:8602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8602 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8603 if test -z "$ac_err"; then
8605 eval "ac_cv_header_$ac_safe=yes"
8608 echo "configure: failed program was:" >&5
8609 cat conftest.
$ac_ext >&5
8611 eval "ac_cv_header_$ac_safe=no"
8615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8616 echo "$ac_t""yes" 1>&6
8619 echo "$ac_t""no" 1>&6
8624 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8626 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8627 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8629 if test "$PACKAGE" = "gettext"; then
8640 if test -n "$ac_aux_dir"; then
8641 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8643 if test -z "$MKINSTALLDIRS"; then
8644 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8651 test -d po || mkdir po
8652 if test "x$srcdir" != "x."; then
8653 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8654 posrcprefix
="$srcdir/"
8656 posrcprefix
="../$srcdir/"
8662 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8663 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8665 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8667 # Windows32 Registry support for specifying GCC installation paths.
8668 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8669 if test "${enable_win32_registry+set}" = set; then
8670 enableval
="$enable_win32_registry"
8675 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8676 echo "configure:8677: checking whether windows registry support is requested" >&5
8677 if test x
$enable_win32_registry != xno
; then
8678 cat >> confdefs.h
<<\EOF
8679 #define ENABLE_WIN32_REGISTRY 1
8682 echo "$ac_t""yes" 1>&6
8684 echo "$ac_t""no" 1>&6
8687 # Check if user specified a different registry key.
8688 case x
${enable_win32_registry} in
8691 gcc_cv_win32_registry_key
="$VERSION"
8694 # no registry lookup.
8695 gcc_cv_win32_registry_key
=''
8698 # user-specified key.
8699 gcc_cv_win32_registry_key
="$enable_win32_registry"
8703 if test x
$enable_win32_registry != xno
; then
8704 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8705 echo "configure:8706: checking registry key on windows hosts" >&5
8706 cat >> confdefs.h
<<EOF
8707 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8710 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8713 # Get an absolute path to the GCC top-level source directory
8719 # Conditionalize the makefile for this host machine.
8720 # Make-host contains the concatenation of all host makefile fragments
8721 # [there can be more than one]. This file is built by configure.frag.
8722 host_overrides
=Make-host
8723 dep_host_xmake_file
=
8724 for f
in ..
${host_xmake_file}
8726 if test -f ${srcdir}/config
/$f
8728 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8732 # Conditionalize the makefile for this target machine.
8733 # Make-target contains the concatenation of all host makefile fragments
8734 # [there can be more than one]. This file is built by configure.frag.
8735 target_overrides
=Make-target
8737 for f
in ..
${tmake_file}
8739 if test -f ${srcdir}/config
/$f
8741 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8745 # If the host doesn't support symlinks, modify CC in
8746 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8747 # Otherwise, we can use "CC=$(CC)".
8749 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8751 cc_set_by_configure
="\$(CC)"
8752 quoted_cc_set_by_configure
="\$(CC)"
8753 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8756 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8758 symbolic_link
="cp -p"
8762 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8763 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8764 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8768 out_object_file
=`basename $out_file .c`.o
8771 for f
in $tm_file; do
8774 tm_file_list
="${tm_file_list} $f" ;;
8775 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8780 for f
in $host_xm_file; do
8782 auto-host.h | gansidecl.h | hwint.h
)
8783 host_xm_file_list
="${host_xm_file_list} $f" ;;
8784 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8789 for f
in $build_xm_file; do
8791 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8792 build_xm_file_list
="${build_xm_file_list} $f" ;;
8793 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8797 # Define macro CROSS_COMPILE in compilation
8798 # if this is a cross-compiler.
8799 # Also use all.cross instead of all.internal
8800 # and add cross-make to Makefile.
8801 cross_overrides
="/dev/null"
8802 if test x
$host != x
$target
8804 cross_defines
="CROSS=-DCROSS_COMPILE"
8805 cross_overrides
="${topdir}/cross-make"
8808 # If this is a cross-compiler that does not
8809 # have its own set of headers then define
8812 # If this is using newlib, then define inhibit_libc in
8813 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8814 # libgcc.a, but that's OK because newlib should have its own version of
8817 if test x
$host != x
$target && test x
$with_headers = x
; then
8818 inhibit_libc
=-Dinhibit_libc
8820 if test x
$with_newlib = xyes
; then
8821 inhibit_libc
=-Dinhibit_libc
8826 # When building gcc with a cross-compiler, we need to fix a few things.
8827 # This must come after cross-make as we want all.build to override
8829 build_overrides
="/dev/null"
8830 if test x
$build != x
$host
8832 build_overrides
="${topdir}/build-make"
8835 # Expand extra_headers to include complete path.
8836 # This substitutes for lots of t-* files.
8838 if test "x$extra_headers" = x
8841 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8842 for file in $extra_headers;
8844 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8848 if test x
$use_collect2 = xno
; then
8852 # Add a definition of USE_COLLECT2 if system wants one.
8853 # Also tell toplev.c what to do.
8854 # This substitutes for lots of t-* files.
8855 if test x
$use_collect2 = x
8860 will_use_collect2
="collect2"
8861 maybe_use_collect2
="-DUSE_COLLECT2"
8865 # Set MD_DEPS if the real md file is in md.pre-cpp.
8866 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8867 # for line oriented comments, so we must always use a GNU cpp. If
8868 # building gcc with a cross compiler, use the cross compiler just
8869 # built. Otherwise, we can use the cpp just built.
8871 if test "x$md_cppflags" = x
8873 md_file_sub
=$srcdir/config
/$md_file
8878 # If we have gas in the build tree, make a link to it.
8879 if test -f ..
/gas
/Makefile
; then
8880 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8883 # If we have nm in the build tree, make a link to it.
8884 if test -f ..
/binutils
/Makefile
; then
8885 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8888 # If we have ld in the build tree, make a link to it.
8889 if test -f ..
/ld
/Makefile
; then
8890 # if test x$use_collect2 = x; then
8891 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8893 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8897 # Figure out what assembler alignment features are present.
8898 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8899 echo "configure:8900: checking assembler alignment features" >&5
8901 gcc_cv_as_alignment_features
=
8902 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8903 if test -x "$DEFAULT_ASSEMBLER"; then
8904 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8905 elif test -x "$AS"; then
8907 elif test -x as
$host_exeext; then
8908 # Build using assembler in the current directory.
8909 gcc_cv_as
=.
/as
$host_exeext
8910 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8911 # Single tree build which includes gas.
8912 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8914 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8915 if test x
$gcc_cv_gas_version != x
; then
8919 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8920 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8921 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8922 # Gas version 2.6 and later support for .balign and .p2align.
8923 # bytes to skip when using .p2align.
8924 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
8925 gcc_cv_as_alignment_features
=".balign and .p2align"
8926 cat >> confdefs.h
<<\EOF
8927 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8931 # Gas version 2.8 and later support specifying the maximum
8932 # bytes to skip when using .p2align.
8933 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
8934 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8935 cat >> confdefs.h
<<\EOF
8936 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8941 elif test x
$host = x
$target; then
8943 # Search the same directories that the installed compiler will
8944 # search. Else we may find the wrong assembler and lose. If we
8945 # do not find a suitable assembler binary, then try the user's
8948 # Also note we have to check MD_EXEC_PREFIX before checking the
8949 # user's path. Unfortunately, there is no good way to get at the
8950 # value of MD_EXEC_PREFIX here. So we do a brute force search
8951 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8952 # to be fixed as part of the make/configure rewrite too.
8954 if test "x$exec_prefix" = xNONE
; then
8955 if test "x$prefix" = xNONE
; then
8956 test_prefix
=/usr
/local
8961 test_prefix
=$exec_prefix
8964 # If the loop below does not find an assembler, then use whatever
8965 # one we can find in the users's path.
8969 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8970 $test_prefix/lib/gcc-lib/$target \
8971 /usr/lib/gcc/$target/$gcc_version \
8972 /usr/lib/gcc/$target \
8973 $test_prefix/$target/bin/$target/$gcc_version \
8974 $test_prefix/$target/bin \
8979 /bsd43/usr/lib/cmplrs/cc \
8980 /usr/cross64/usr/bin \
8981 /usr/lib/cmplrs/cc \
8982 /sysv/usr/lib/cmplrs/cc \
8983 /svr4/usr/lib/cmplrs/cc \
8986 for dir
in $test_dirs; do
8987 if test -f $dir/as
$host_exeext; then
8988 gcc_cv_as
=$dir/as
$host_exeext
8993 if test x
$gcc_cv_as != x
; then
8994 # Check if we have .balign and .p2align
8995 echo ".balign 4" > conftest.s
8996 echo ".p2align 2" >> conftest.s
8997 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8998 gcc_cv_as_alignment_features
=".balign and .p2align"
8999 cat >> confdefs.h
<<\EOF
9000 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9004 rm -f conftest.s conftest.o
9005 # Check if specifying the maximum bytes to skip when
9006 # using .p2align is supported.
9007 echo ".p2align 4,,7" > conftest.s
9008 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9009 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9010 cat >> confdefs.h
<<\EOF
9011 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9015 rm -f conftest.s conftest.o
9017 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9019 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9020 echo "configure:9021: checking assembler subsection support" >&5
9021 gcc_cv_as_subsections
=
9022 if test x
$gcc_cv_as != x
; then
9023 # Check if we have .subsection
9024 echo ".subsection 1" > conftest.s
9025 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9026 gcc_cv_as_subsections
=".subsection"
9027 if test -x nm
$host_exeext; then
9028 gcc_cv_nm
=.
/nm
$host_exeext
9029 elif test x
$host = x
$target; then
9031 gcc_cv_nm
=nm
$host_exeext
9033 if test x
$gcc_cv_nm != x
; then
9034 cat > conftest.s
<<EOF
9035 conftest_label1: .word 0
9037 conftest_label2: .word 0
9040 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9041 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9042 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9043 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9046 gcc_cv_as_subsections
="working .subsection -1"
9047 cat >> confdefs.h
<<\EOF
9048 #define HAVE_GAS_SUBSECTION_ORDERING 1
9055 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9057 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9059 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9060 echo "configure:9061: checking assembler weak support" >&5
9062 if test x
$gcc_cv_as != x
; then
9063 # Check if we have .weak
9064 echo " .weak foobar" > conftest.s
9065 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9066 cat >> confdefs.h
<<\EOF
9067 #define HAVE_GAS_WEAK 1
9070 gcc_cv_as_weak
="yes"
9072 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9074 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9076 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9077 echo "configure:9078: checking assembler hidden support" >&5
9079 if test x
$gcc_cv_as != x
; then
9080 # Check if we have .hidden
9081 echo " .hidden foobar" > conftest.s
9082 echo "foobar:" >> conftest.s
9083 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9084 cat >> confdefs.h
<<\EOF
9085 #define HAVE_GAS_HIDDEN 1
9088 gcc_cv_as_hidden
="yes"
9090 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9092 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9096 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9097 echo "configure:9098: checking assembler .register pseudo-op support" >&5
9098 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9102 gcc_cv_as_register_pseudo_op
=unknown
9103 if test x
$gcc_cv_as != x
; then
9104 # Check if we have .register
9105 echo ".register %g2, #scratch" > conftest.s
9106 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9107 gcc_cv_as_register_pseudo_op
=yes
9109 gcc_cv_as_register_pseudo_op
=no
9111 rm -f conftest.s conftest.o
9116 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9117 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9118 cat >> confdefs.h
<<\EOF
9119 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9124 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9125 echo "configure:9126: checking assembler supports -relax" >&5
9126 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9130 gcc_cv_as_relax_opt
=unknown
9131 if test x
$gcc_cv_as != x
; then
9132 # Check if gas supports -relax
9133 echo ".text" > conftest.s
9134 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9135 gcc_cv_as_relax_opt
=yes
9137 gcc_cv_as_relax_opt
=no
9139 rm -f conftest.s conftest.o
9144 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9145 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9146 cat >> confdefs.h
<<\EOF
9147 #define HAVE_AS_RELAX_OPTION 1
9154 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9155 echo "configure:9156: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9156 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9157 echo $ac_n "(cached) $ac_c" 1>&6
9160 if test -n "$gcc_cv_as"; then
9161 echo ".xword foo" > conftest.s
9162 gcc_cv_as_flags64
=no
9163 for flag
in "-xarch=v9" "-64 -Av9"; do
9164 if $gcc_cv_as $flag -o conftest.o conftest.s \
9165 > /dev
/null
2>&1; then
9166 gcc_cv_as_flags64
=$flag
9170 rm -f conftest.s conftest.o
9172 if test "$gas" = yes; then
9173 gcc_cv_as_flags64
="-64 -Av9"
9175 gcc_cv_as_flags64
="-xarch=v9"
9181 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9182 if test "x$gcc_cv_as_flags64" = xno
; then
9184 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9185 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9188 cat >> confdefs.h
<<EOF
9189 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9194 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9198 if test "x$gcc_cv_as_flags64" != xno
; then
9199 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9200 echo "configure:9201: checking for assembler offsetable %lo() support" >&5
9201 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9205 gcc_cv_as_offsetable_lo10
=unknown
9206 if test "x$gcc_cv_as" != x
; then
9207 # Check if assembler has offsetable %lo()
9208 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9209 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9210 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9212 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9213 > /dev
/null
2>&1; then
9214 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9215 gcc_cv_as_offsetable_lo10
=no
9217 gcc_cv_as_offsetable_lo10
=yes
9220 gcc_cv_as_offsetable_lo10
=no
9222 rm -f conftest.s conftest.o conftest1.s conftest1.o
9227 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9228 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9229 cat >> confdefs.h
<<\EOF
9230 #define HAVE_AS_OFFSETABLE_LO10 1
9238 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9239 echo "configure:9240: checking assembler instructions" >&5
9240 gcc_cv_as_instructions
=
9241 if test x
$gcc_cv_as != x
; then
9242 set "filds fists" "filds mem; fists mem"
9245 echo "$2" > conftest.s
9246 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9247 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9248 cat >> confdefs.h
<<EOF
9249 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9255 rm -f conftest.s conftest.o
9257 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9261 # Figure out what language subdirectories are present.
9262 # Look if the user specified --enable-languages="..."; if not, use
9263 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9265 if test x
"${enable_languages+set}" != xset
; then
9266 if test x
"${LANGUAGES+set}" = xset
; then
9267 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9269 enable_languages
=all
9272 if test x
"${enable_languages}" = x
; then
9273 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9277 for lang
in ${srcdir}/*/config-lang.
in ..
9281 # The odd quoting in the next line works around
9282 # an apparent bug in bash 1.12 on linux.
9283 ${srcdir}/[*]/config-lang.
in) ;;
9285 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9286 if test "x$lang_alias" = x
9288 echo "$lang doesn't set \$language." 1>&2
9291 if test x
"${enable_languages}" = xall
; then
9294 case "${enable_languages}" in
9295 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9303 if test x"${add_this_lang}" = xyes; then
9305 ${srcdir}/ada/config-lang.in)
9306 if test x$gnat = xyes ; then
9307 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9311 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9319 # Make gthr-default.h if we have a thread file.
9321 if test $thread_file != single; then
9322 rm -f gthr-default.h
9323 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9324 gthread_flags
=-DHAVE_GTHR_DEFAULT
9328 # Find out what GC implementation we want, or may, use.
9329 # Check whether --with-gc or --without-gc was given.
9330 if test "${with_gc+set}" = set; then
9337 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9341 if test $ac_cv_func_mmap_anywhere = yes \
9342 ||
test $ac_cv_func_valloc = yes; then
9350 echo "Using $GGC for garbage collection."
9352 # Build a new-abi (c++) system
9353 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9354 if test "${enable_new_gxx_abi+set}" = set; then
9355 enableval
="$enable_new_gxx_abi"
9356 cat >> confdefs.h
<<\EOF
9357 #define ENABLE_NEW_GXX_ABI 1
9360 GXX_ABI_FLAG
='-fnew-abi'
9361 echo "Building a new-abi g++ compiler."
9367 # Build a new-libstdc++ system (ie libstdc++-v3)
9368 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9369 echo "configure:9370: checking for libstdc++ to install" >&5
9370 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9371 if test "${enable_libstdcxx_v3+set}" = set; then
9372 enableval
="$enable_libstdcxx_v3"
9373 enable_libstdcxx_v3
=yes
9375 enable_libstdcxx_v3
=no
9379 if test x
$enable_libstdcxx_v3 = xyes
; then
9380 echo "$ac_t""v3" 1>&6
9383 echo "$ac_t""v2" 1>&6
9386 cat >> confdefs.h
<<EOF
9387 #define ENABLE_STD_NAMESPACE $ac_esn
9392 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9393 echo "configure:9394: checking whether to enable maintainer-specific portions of Makefiles" >&5
9394 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9395 if test "${enable_maintainer_mode+set}" = set; then
9396 enableval
="$enable_maintainer_mode"
9397 maintainer_mode
=$enableval
9403 echo "$ac_t""$maintainer_mode" 1>&6
9405 if test "$maintainer_mode" = "yes"; then
9411 # Make empty files to contain the specs and options for each language.
9412 # Then add #include lines to for a compiler that has specs and/or options.
9417 rm -f specs.h options.h gencheck.h
9418 touch specs.h options.h gencheck.h
9419 for subdir
in .
$subdirs
9421 if test -f $srcdir/$subdir/lang-specs.h
; then
9422 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9423 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9425 if test -f $srcdir/$subdir/lang-options.h
; then
9426 echo "#include \"$subdir/lang-options.h\"" >>options.h
9427 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9429 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9430 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9431 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9435 # These (without "all_") are set in each config-lang.in.
9436 # `language' must be a single word so is spelled singularly.
9442 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9443 # List of language makefile fragments.
9448 # Add the language fragments.
9449 # Languages are added via two mechanisms. Some information must be
9450 # recorded in makefile variables, these are defined in config-lang.in.
9451 # We accumulate them and plug them into the main Makefile.
9452 # The other mechanism is a set of hooks for each of the main targets
9453 # like `clean', `install', etc.
9455 language_fragments
="Make-lang"
9456 language_hooks
="Make-hooks"
9459 for s
in ..
$subdirs
9471 .
${srcdir}/$s/config-lang.
in
9472 if test "x$language" = x
9474 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9477 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9478 all_languages
="$all_languages $language"
9479 if test "x$boot_language" = xyes
9481 all_boot_languages
="$all_boot_languages $language"
9483 all_compilers
="$all_compilers $compilers"
9484 all_stagestuff
="$all_stagestuff $stagestuff"
9485 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9486 all_headers
="$all_headers $headers"
9487 all_outputs
="$all_outputs $outputs"
9488 if test x
$outputs = x
9490 oldstyle_subdirs
="$oldstyle_subdirs $s"
9492 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9496 # Since we can't use `::' targets, we link each language in
9497 # with a set of hooks, reached indirectly via lang.${target}.
9501 target_list
="all.build all.cross start.encap rest.encap \
9503 install-normal install-common install-info install-man \
9505 mostlyclean clean distclean extraclean maintainer-clean \
9506 stage1 stage2 stage3 stage4"
9507 for t
in $target_list
9510 for lang
in ..
$all_languages
9512 if test $lang != ".."; then
9516 echo "lang.$t: $x" >> Make-hooks
9519 # If we're not building in srcdir, create .gdbinit.
9521 if test ! -f Makefile.
in; then
9522 echo "dir ." > .gdbinit
9523 echo "dir ${srcdir}" >> .gdbinit
9524 if test x
$gdb_needs_out_file_path = xyes
9526 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9528 if test "x$subdirs" != x
; then
9531 echo "dir ${srcdir}/$s" >> .gdbinit
9534 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9537 # Define variables host_canonical and build_canonical
9538 # because some Cygnus local changes in the Makefile depend on them.
9539 build_canonical
=${build}
9540 host_canonical
=${host}
9542 if test "${host}" != "${target}" ; then
9543 target_subdir
=${target}/
9549 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9550 # absolute path for gcc_tooldir based on inserting the number of up-directory
9551 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9552 # $(libsubdir)/@(unlibsubdir) based path.
9553 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9554 # make and thus we'd get different behavior depending on where we built the
9556 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9557 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9559 # An explanation of the sed strings:
9560 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9561 # -e 's|/$||' match a trailing forward slash and eliminates it
9562 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9563 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9565 # (*) Note this pattern overwrites the first character of the string
9566 # with a forward slash if one is not already present. This is not a
9567 # problem because the exact names of the sub-directories concerned is
9568 # unimportant, just the number of them matters.
9570 # The practical upshot of these patterns is like this:
9572 # prefix exec_prefix result
9573 # ------ ----------- ------
9575 # /foo/ /foo/bar ../
9576 # /foo /foo/bar/ ../
9577 # /foo/ /foo/bar/ ../
9578 # /foo /foo/bar/ugg ../../
9581 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9586 # Nothing to do for FLOAT_H, float_format already handled.
9590 # Process the language and host/target makefile fragments.
9591 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9593 # Substitute configuration variables
9652 # Echo that links are built
9653 if test x
$host = x
$target
9661 if test x
$host != x
$build
9663 str3
=" on a $build system"
9666 if test "x$str2" != x ||
test "x$str3" != x
9671 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9673 if test "x$str2" != x ||
test "x$str3" != x
9675 echo " ${str2}${str3}." 1>&2
9678 # Truncate the target if necessary
9679 if test x
$host_truncate_target != x
; then
9680 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9683 # Configure the subdirectories
9684 # AC_CONFIG_SUBDIRS($subdirs)
9686 # Create the Makefile
9687 # and configure language subdirectories
9689 cat > confcache
<<\EOF
9690 # This file is a shell script that caches the results of configure
9691 # tests run on this system so they can be shared between configure
9692 # scripts and configure runs. It is not useful on other systems.
9693 # If it contains results you don't want to keep, you may remove or edit it.
9695 # By default, configure uses ./config.cache as the cache file,
9696 # creating it if it does not exist already. You can give configure
9697 # the --cache-file=FILE option to use a different cache file; that is
9698 # what configure does when it calls configure scripts in
9699 # subdirectories, so they share the cache.
9700 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9701 # config.status only pays attention to the cache file if you give it the
9702 # --recheck option to rerun configure.
9705 # The following way of writing the cache mishandles newlines in values,
9706 # but we know of no workaround that is simple, portable, and efficient.
9707 # So, don't put newlines in cache variables' values.
9708 # Ultrix sh set writes to stderr and can't be redirected directly,
9709 # and sets the high bit in the cache file unless we assign to the vars.
9711 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9713 # `set' does not quote correctly, so add quotes (double-quote substitution
9714 # turns \\\\ into \\, and sed turns \\ into \).
9716 -e "s/'/'\\\\''/g" \
9717 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9720 # `set' quotes correctly as required by POSIX, so do not add quotes.
9721 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9724 if cmp -s $cache_file confcache
; then
9727 if test -w $cache_file; then
9728 echo "updating cache $cache_file"
9729 cat confcache
> $cache_file
9731 echo "not updating unwritable cache $cache_file"
9736 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9738 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9739 # Let make expand exec_prefix.
9740 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9742 # Any assignment to VPATH causes Sun make to only execute
9743 # the first set of double-colon rules, so remove it if not needed.
9744 # If there is a colon in the path, we need to keep it.
9745 if test "x$srcdir" = x.
; then
9746 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9749 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9751 DEFS
=-DHAVE_CONFIG_H
9753 # Without the "./", some shells look in PATH for config.status.
9754 : ${CONFIG_STATUS=./config.status}
9756 echo creating
$CONFIG_STATUS
9757 rm -f $CONFIG_STATUS
9758 cat > $CONFIG_STATUS <<EOF
9760 # Generated automatically by configure.
9761 # Run this file to recreate the current configuration.
9762 # This directory was configured as follows,
9763 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9765 # $0 $ac_configure_args
9767 # Compiler output produced by configure, useful for debugging
9768 # configure, is in ./config.log if it exists.
9770 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9773 case "\$ac_option" in
9774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9775 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9776 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9777 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9778 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9780 -help | --help | --hel | --he | --h)
9781 echo "\$ac_cs_usage"; exit 0 ;;
9782 *) echo "\$ac_cs_usage"; exit 1 ;;
9786 ac_given_srcdir=$srcdir
9788 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9790 cat >> $CONFIG_STATUS <<EOF
9792 # Protect against being on the right side of a sed subst in config.status.
9793 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9794 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9798 s%@CFLAGS@%$CFLAGS%g
9799 s%@CPPFLAGS@%$CPPFLAGS%g
9800 s%@CXXFLAGS@%$CXXFLAGS%g
9801 s%@FFLAGS@%$FFLAGS%g
9803 s%@LDFLAGS@%$LDFLAGS%g
9805 s%@exec_prefix@%$exec_prefix%g
9806 s%@prefix@%$prefix%g
9807 s%@program_transform_name@%$program_transform_name%g
9808 s%@bindir@%$bindir%g
9809 s%@sbindir@%$sbindir%g
9810 s%@libexecdir@%$libexecdir%g
9811 s%@datadir@%$datadir%g
9812 s%@sysconfdir@%$sysconfdir%g
9813 s%@sharedstatedir@%$sharedstatedir%g
9814 s%@localstatedir@%$localstatedir%g
9815 s%@libdir@%$libdir%g
9816 s%@includedir@%$includedir%g
9817 s%@oldincludedir@%$oldincludedir%g
9818 s%@infodir@%$infodir%g
9819 s%@mandir@%$mandir%g
9821 s%@host_alias@%$host_alias%g
9822 s%@host_cpu@%$host_cpu%g
9823 s%@host_vendor@%$host_vendor%g
9824 s%@host_os@%$host_os%g
9825 s%@target@%$target%g
9826 s%@target_alias@%$target_alias%g
9827 s%@target_cpu@%$target_cpu%g
9828 s%@target_vendor@%$target_vendor%g
9829 s%@target_os@%$target_os%g
9831 s%@build_alias@%$build_alias%g
9832 s%@build_cpu@%$build_cpu%g
9833 s%@build_vendor@%$build_vendor%g
9834 s%@build_os@%$build_os%g
9836 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9837 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9838 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9839 s%@SET_MAKE@%$SET_MAKE%g
9842 s%@LEXLIB@%$LEXLIB%g
9845 s%@RANLIB@%$RANLIB%g
9847 s%@INSTALL@%$INSTALL%g
9848 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9849 s%@INSTALL_DATA@%$INSTALL_DATA%g
9852 s%@MAKEINFO@%$MAKEINFO%g
9853 s%@BUILD_INFO@%$BUILD_INFO%g
9854 s%@INSTALL_INFO@%$INSTALL_INFO%g
9855 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9856 s%@vfprintf@%$vfprintf%g
9857 s%@doprint@%$doprint%g
9858 s%@manext@%$manext%g
9859 s%@objext@%$objext%g
9860 s%@PACKAGE@%$PACKAGE%g
9861 s%@VERSION@%$VERSION%g
9862 s%@ALLOCA@%$ALLOCA%g
9863 s%@USE_NLS@%$USE_NLS%g
9864 s%@MSGFMT@%$MSGFMT%g
9865 s%@GMSGFMT@%$GMSGFMT%g
9866 s%@XGETTEXT@%$XGETTEXT%g
9867 s%@GENCAT@%$GENCAT%g
9868 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9869 s%@CATALOGS@%$CATALOGS%g
9870 s%@CATOBJEXT@%$CATOBJEXT%g
9871 s%@DATADIRNAME@%$DATADIRNAME%g
9872 s%@GMOFILES@%$GMOFILES%g
9873 s%@INSTOBJEXT@%$INSTOBJEXT%g
9874 s%@INTLDEPS@%$INTLDEPS%g
9875 s%@INTLLIBS@%$INTLLIBS%g
9876 s%@INTLOBJS@%$INTLOBJS%g
9877 s%@POFILES@%$POFILES%g
9879 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9881 s%@GT_YES@%$GT_YES%g
9882 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9884 s%@inhibit_libc@%$inhibit_libc%g
9885 s%@gthread_flags@%$gthread_flags%g
9887 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9889 s%@build_canonical@%$build_canonical%g
9890 s%@host_canonical@%$host_canonical%g
9891 s%@target_subdir@%$target_subdir%g
9892 s%@gcc_tooldir@%$gcc_tooldir%g
9893 s%@dollar@%$dollar%g
9894 s%@objdir@%$objdir%g
9895 s%@subdirs@%$subdirs%g
9896 s%@all_boot_languages@%$all_boot_languages%g
9897 s%@all_compilers@%$all_compilers%g
9898 s%@all_diff_excludes@%$all_diff_excludes%g
9899 s%@all_headers@%$all_headers%g
9900 s%@all_lang_makefiles@%$all_lang_makefiles%g
9901 s%@all_languages@%$all_languages%g
9902 s%@all_lib2funcs@%$all_lib2funcs%g
9903 s%@all_stagestuff@%$all_stagestuff%g
9904 s%@build_exeext@%$build_exeext%g
9905 s%@build_install_headers_dir@%$build_install_headers_dir%g
9906 s%@build_xm_file_list@%$build_xm_file_list%g
9907 s%@cc_set_by_configure@%$cc_set_by_configure%g
9908 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9909 s%@cpp_install_dir@%$cpp_install_dir%g
9910 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9911 s%@dep_tmake_file@%$dep_tmake_file%g
9912 s%@extra_c_flags@%$extra_c_flags%g
9913 s%@extra_c_objs@%$extra_c_objs%g
9914 s%@extra_cpp_objs@%$extra_cpp_objs%g
9915 s%@extra_cxx_objs@%$extra_cxx_objs%g
9916 s%@extra_headers_list@%$extra_headers_list%g
9917 s%@extra_objs@%$extra_objs%g
9918 s%@extra_parts@%$extra_parts%g
9919 s%@extra_passes@%$extra_passes%g
9920 s%@extra_programs@%$extra_programs%g
9921 s%@float_h_file@%$float_h_file%g
9922 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9923 s%@gcc_version@%$gcc_version%g
9924 s%@gcc_version_trigger@%$gcc_version_trigger%g
9925 s%@host_exeext@%$host_exeext%g
9926 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9927 s%@host_xm_file_list@%$host_xm_file_list%g
9928 s%@install@%$install%g
9929 s%@lang_options_files@%$lang_options_files%g
9930 s%@lang_specs_files@%$lang_specs_files%g
9931 s%@lang_tree_files@%$lang_tree_files%g
9932 s%@local_prefix@%$local_prefix%g
9933 s%@maybe_use_collect2@%$maybe_use_collect2%g
9934 s%@md_file@%$md_file%g
9935 s%@objc_boehm_gc@%$objc_boehm_gc%g
9936 s%@out_file@%$out_file%g
9937 s%@out_object_file@%$out_object_file%g
9938 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9939 s%@symbolic_link@%$symbolic_link%g
9940 s%@thread_file@%$thread_file%g
9941 s%@tm_file_list@%$tm_file_list%g
9942 s%@will_use_collect2@%$will_use_collect2%g
9943 /@target_overrides@/r $target_overrides
9944 s%@target_overrides@%%g
9945 /@host_overrides@/r $host_overrides
9946 s%@host_overrides@%%g
9947 s%@cross_defines@%$cross_defines%g
9948 /@cross_overrides@/r $cross_overrides
9949 s%@cross_overrides@%%g
9950 /@build_overrides@/r $build_overrides
9951 s%@build_overrides@%%g
9952 /@language_fragments@/r $language_fragments
9953 s%@language_fragments@%%g
9954 /@language_hooks@/r $language_hooks
9955 s%@language_hooks@%%g
9960 cat >> $CONFIG_STATUS <<\EOF
9962 # Split the substitutions into bite-sized pieces for seds with
9963 # small command number limits, like on Digital OSF/1 and HP-UX.
9964 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9965 ac_file
=1 # Number of current file.
9966 ac_beg
=1 # First line for current file.
9967 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9970 while $ac_more_lines; do
9971 if test $ac_beg -gt 1; then
9972 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9974 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9976 if test ! -s conftest.s
$ac_file; then
9978 rm -f conftest.s
$ac_file
9980 if test -z "$ac_sed_cmds"; then
9981 ac_sed_cmds
="sed -f conftest.s$ac_file"
9983 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9985 ac_file
=`expr $ac_file + 1`
9987 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9990 if test -z "$ac_sed_cmds"; then
9995 cat >> $CONFIG_STATUS <<EOF
9997 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9999 cat >> $CONFIG_STATUS <<\EOF
10000 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10003 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10004 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10005 *) ac_file_in
="${ac_file}.in" ;;
10008 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10010 # Remove last slash and all that follows it. Not all systems have dirname.
10011 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10012 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10013 # The file is in a subdirectory.
10014 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10015 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10016 # A "../" for each directory in $ac_dir_suffix.
10017 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10019 ac_dir_suffix
= ac_dots
=
10022 case "$ac_given_srcdir" in
10024 if test -z "$ac_dots"; then top_srcdir
=.
10025 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10026 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10027 *) # Relative path.
10028 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10029 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10033 echo creating
"$ac_file"
10035 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10037 *Makefile
*) ac_comsub
="1i\\
10038 # $configure_input" ;;
10042 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10044 s%@configure_input@%$configure_input%g
10045 s%@srcdir@%$srcdir%g
10046 s%@top_srcdir@%$top_srcdir%g
10047 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10051 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10052 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10054 # ac_d sets the value in "#define NAME VALUE" lines.
10055 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10056 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10059 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10060 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10061 ac_uB
='\([ ]\)%\1#\2define\3'
10064 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10065 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10066 ac_eB
='$%\1#\2define\3'
10070 if test "${CONFIG_HEADERS+set}" != set; then
10072 cat >> $CONFIG_STATUS <<EOF
10073 CONFIG_HEADERS="auto-host.h:config.in"
10075 cat >> $CONFIG_STATUS <<\EOF
10077 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10080 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10081 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10082 *) ac_file_in
="${ac_file}.in" ;;
10085 echo creating
$ac_file
10087 rm -f conftest.frag conftest.
in conftest.out
10088 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10089 cat $ac_file_inputs > conftest.
in
10093 # Transform confdefs.h into a sed script conftest.vals that substitutes
10094 # the proper values into config.h.in to produce config.h. And first:
10095 # Protect against being on the right side of a sed subst in config.status.
10096 # Protect against being in an unquoted here document in config.status.
10097 rm -f conftest.vals
10098 cat > conftest.hdr
<<\EOF
10101 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10105 sed -n -f conftest.hdr confdefs.h > conftest.vals
10108 # This sed command replaces #undef with comments. This is necessary, for
10109 # example, in the case of _POSIX_SOURCE, which is predefined and required
10110 # on some systems where configure will not decide to define it.
10111 cat >> conftest.vals <<\EOF
10112 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10115 # Break up conftest.vals because some shells have a limit on
10116 # the size of here documents, and old seds have small limits too.
10118 rm -f conftest.tail
10121 ac_lines=`grep -c . conftest.vals
`
10122 # grep -c gives empty output for an empty file on some AIX systems.
10123 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10124 # Write a limited-size here document to conftest.frag.
10125 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10126 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10128 sed -f conftest.frag conftest.in > conftest.out
10130 mv conftest.out conftest.in
10131 ' >> $CONFIG_STATUS
10132 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10133 rm -f conftest.vals
10134 mv conftest.tail conftest.vals
10136 rm -f conftest.vals
10138 cat >> $CONFIG_STATUS <<\EOF
10139 rm -f conftest.frag conftest.h
10140 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10141 cat conftest.in >> conftest.h
10143 if cmp -s $ac_file conftest.h 2>/dev/null; then
10144 echo "$ac_file is unchanged"
10147 # Remove last slash and all that follows it. Not all systems have dirname.
10148 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10149 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10150 # The file is in a subdirectory.
10151 test ! -d "$ac_dir" && mkdir "$ac_dir"
10154 mv conftest.h $ac_file
10160 cat >> $CONFIG_STATUS <<EOF
10161 ac_sources="$nls_cv_header_libgt"
10162 ac_dests="$nls_cv_header_intl"
10165 cat >> $CONFIG_STATUS <<\EOF
10166 srcdir=$ac_given_srcdir
10167 while test -n "$ac_sources"; do
10168 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10169 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10171 echo "linking $srcdir/$ac_source to $ac_dest"
10173 if test ! -r $srcdir/$ac_source; then
10174 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10178 # Make relative symlinks.
10179 # Remove last slash and all that follows it. Not all systems have dirname.
10180 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10181 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10182 # The dest file is in a subdirectory.
10183 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10184 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10185 # A "../" for each directory in $ac_dest_dir_suffix.
10186 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10188 ac_dest_dir_suffix= ac_dots=
10192 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10193 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10196 # Make a symlink if possible; otherwise try a hard link.
10197 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10198 ln $srcdir/$ac_source $ac_dest; then :
10200 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10204 cat >> $CONFIG_STATUS <<EOF
10210 target_alias='${target_alias}'
10212 subdirs='${subdirs}'
10213 oldstyle_subdirs='${oldstyle_subdirs}'
10214 symbolic_link='${symbolic_link}'
10215 program_transform_set='${program_transform_set}'
10216 program_transform_name='${program_transform_name}'
10217 dep_host_xmake_file='${dep_host_xmake_file}'
10218 host_xmake_file='${host_xmake_file}'
10219 dep_tmake_file='${dep_tmake_file}'
10220 tmake_file='${tmake_file}'
10221 thread_file='${thread_file}'
10222 gcc_version='${gcc_version}'
10223 gcc_version_trigger='${gcc_version_trigger}'
10224 local_prefix='${local_prefix}'
10225 build_install_headers_dir='${build_install_headers_dir}'
10226 build_exeext='${build_exeext}'
10227 host_exeext='${host_exeext}'
10228 out_file='${out_file}'
10229 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10230 SET_MAKE='${SET_MAKE}'
10231 target_list='${target_list}'
10232 target_overrides='${target_overrides}'
10233 host_overrides='${host_overrides}'
10234 cross_defines='${cross_defines}'
10235 cross_overrides='${cross_overrides}'
10236 build_overrides='${build_overrides}'
10237 cpp_install_dir='${cpp_install_dir}'
10240 cat >> $CONFIG_STATUS <<\EOF
10241 case "$CONFIG_FILES" in *po/Makefile.in*)
10242 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10245 . $srcdir/configure.lang
10246 case x$CONFIG_HEADERS in
10247 xauto-host.h:config.in)
10250 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10251 # bootstrapping and the installation procedure can still use
10252 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10253 # FLAGS_TO_PASS has been modified to solve the problem there.
10254 # This is virtually a duplicate of what happens in configure.lang; we do
10255 # an extra check to make sure this only happens if ln -s can be used.
10256 if test "$symbolic_link" = "ln -s"; then
10257 for d in .. ${subdirs} ; do
10258 if test $d != ..; then
10261 for t in stage1 stage2 stage3 stage4 include
10264 $symbolic_link ../$t $t 2>/dev/null
10270 # Avoid having to add intl to our include paths.
10271 if test -f intl/libintl.h; then
10272 echo creating libintl.h
10273 echo '#include "intl/libintl.h"' >libintl.h
10278 chmod +x $CONFIG_STATUS
10279 rm -fr confdefs* $ac_clean_files
10280 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1