3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-c-cpplib link cpplib directly into C and C++ compilers
45 (HIGHLY EXPERIMENTAL)."
47 --enable-c-mbchar Enable multibyte characters for C and C++."
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 --with-dwarf2 force the default debug format to be DWARF2."
57 --enable-nls use Native Language Support (default)"
59 --disable-nls do not use Native Language Support"
61 --with-included-gettext use the GNU gettext library included here"
63 --with-catgets use catgets functions if available"
65 --disable-win32-registry
66 Disable lookup of installation paths in the
67 Registry on Windows hosts.
68 --enable-win32-registry Enable registry lookup (default).
69 --enable-win32-registry=KEY
70 Use KEY instead of GCC version as the last portion
73 --with-gc={simple,page} Choose the garbage collection mechanism to use
76 --with-system-zlib use installed libz"
79 select the new abi for g++. You must select an ABI
80 at configuration time, so that the correct runtime
81 support is built. You cannot mix ABIs."
84 enable libstdc++-v3 for building and installation"
86 --enable-maintainer-mode enable make rules and dependencies not useful
87 (and sometimes confusing) to the casual installer"
89 # Initialize some variables set by options.
90 # The variables have the same names as the options, with
91 # dashes changed to underlines.
93 cache_file
=.
/config.cache
102 program_transform_name
=s
,x
,x
,
110 bindir
='${exec_prefix}/bin'
111 sbindir
='${exec_prefix}/sbin'
112 libexecdir
='${exec_prefix}/libexec'
113 datadir
='${prefix}/share'
114 sysconfdir
='${prefix}/etc'
115 sharedstatedir
='${prefix}/com'
116 localstatedir
='${prefix}/var'
117 libdir
='${exec_prefix}/lib'
118 includedir
='${prefix}/include'
119 oldincludedir
='/usr/include'
120 infodir
='${prefix}/info'
121 mandir
='${prefix}/man'
123 # Initialize some other variables.
126 SHELL
=${CONFIG_SHELL-/bin/sh}
127 # Maximum number of lines to put in a shell here document.
134 # If the previous option needs an argument, assign it.
135 if test -n "$ac_prev"; then
136 eval "$ac_prev=\$ac_option"
142 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146 # Accept the important Cygnus configure options, so we can diagnose typos.
150 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
152 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
153 bindir
="$ac_optarg" ;;
155 -build |
--build |
--buil |
--bui |
--bu)
157 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
158 build
="$ac_optarg" ;;
160 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
161 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
162 ac_prev
=cache_file
;;
163 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
164 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
165 cache_file
="$ac_optarg" ;;
167 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
169 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
171 datadir
="$ac_optarg" ;;
173 -disable-* |
--disable-*)
174 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}=no" ;;
182 -enable-* |
--enable-*)
183 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}='$ac_optarg'" ;;
195 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
196 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
197 |
--exec |
--exe |
--ex)
198 ac_prev
=exec_prefix
;;
199 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
200 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
201 |
--exec=* |
--exe=* |
--ex=*)
202 exec_prefix
="$ac_optarg" ;;
204 -gas |
--gas |
--ga |
--g)
205 # Obsolete; use --with-gas.
208 -help |
--help |
--hel |
--he)
209 # Omit some internal or obsolete options to make the list less imposing.
210 # This message is too long to be a string in the A/UX 3.1 sh.
212 Usage: configure [options] [host]
213 Options: [defaults in brackets after descriptions]
215 --cache-file=FILE cache test results in FILE
216 --help print this message
217 --no-create do not create output files
218 --quiet, --silent do not print \`checking...' messages
219 --version print the version of autoconf that created configure
220 Directory and file names:
221 --prefix=PREFIX install architecture-independent files in PREFIX
223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 --bindir=DIR user executables in DIR [EPREFIX/bin]
226 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
227 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
228 --datadir=DIR read-only architecture-independent data in DIR
230 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
231 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
234 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
235 --includedir=DIR C header files in DIR [PREFIX/include]
236 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
237 --infodir=DIR info documentation in DIR [PREFIX/info]
238 --mandir=DIR man documentation in DIR [PREFIX/man]
239 --srcdir=DIR find the sources in DIR [configure dir or ..]
240 --program-prefix=PREFIX prepend PREFIX to installed program names
241 --program-suffix=SUFFIX append SUFFIX to installed program names
242 --program-transform-name=PROGRAM
243 run sed PROGRAM on installed program names
247 --build=BUILD configure for building on BUILD [BUILD=HOST]
248 --host=HOST configure for HOST [guessed]
249 --target=TARGET configure for TARGET [TARGET=HOST]
250 Features and packages:
251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
253 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
254 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
255 --x-includes=DIR X include files are in DIR
256 --x-libraries=DIR X library files are in DIR
258 if test -n "$ac_help"; then
259 echo "--enable and --with options recognized:$ac_help"
263 -host |
--host |
--hos |
--ho)
265 -host=* |
--host=* |
--hos=* |
--ho=*)
268 -includedir |
--includedir |
--includedi |
--included |
--include \
269 |
--includ |
--inclu |
--incl |
--inc)
270 ac_prev
=includedir
;;
271 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
272 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
273 includedir
="$ac_optarg" ;;
275 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
277 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
278 infodir
="$ac_optarg" ;;
280 -libdir |
--libdir |
--libdi |
--libd)
282 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
283 libdir
="$ac_optarg" ;;
285 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
286 |
--libexe |
--libex |
--libe)
287 ac_prev
=libexecdir
;;
288 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
289 |
--libexe=* |
--libex=* |
--libe=*)
290 libexecdir
="$ac_optarg" ;;
292 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
293 |
--localstate |
--localstat |
--localsta |
--localst \
294 |
--locals |
--local |
--loca |
--loc |
--lo)
295 ac_prev
=localstatedir
;;
296 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
297 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
298 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
299 localstatedir
="$ac_optarg" ;;
301 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
303 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
304 mandir
="$ac_optarg" ;;
307 # Obsolete; use --without-fp.
310 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
314 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
315 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
318 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
319 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
320 |
--oldin |
--oldi |
--old |
--ol |
--o)
321 ac_prev
=oldincludedir
;;
322 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
323 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
324 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
325 oldincludedir
="$ac_optarg" ;;
327 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
329 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
330 prefix
="$ac_optarg" ;;
332 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
333 |
--program-pre |
--program-pr |
--program-p)
334 ac_prev
=program_prefix
;;
335 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
336 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
337 program_prefix
="$ac_optarg" ;;
339 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
340 |
--program-suf |
--program-su |
--program-s)
341 ac_prev
=program_suffix
;;
342 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
343 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
344 program_suffix
="$ac_optarg" ;;
346 -program-transform-name |
--program-transform-name \
347 |
--program-transform-nam |
--program-transform-na \
348 |
--program-transform-n |
--program-transform- \
349 |
--program-transform |
--program-transfor \
350 |
--program-transfo |
--program-transf \
351 |
--program-trans |
--program-tran \
352 |
--progr-tra |
--program-tr |
--program-t)
353 ac_prev
=program_transform_name
;;
354 -program-transform-name=* |
--program-transform-name=* \
355 |
--program-transform-nam=* |
--program-transform-na=* \
356 |
--program-transform-n=* |
--program-transform-=* \
357 |
--program-transform=* |
--program-transfor=* \
358 |
--program-transfo=* |
--program-transf=* \
359 |
--program-trans=* |
--program-tran=* \
360 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
361 program_transform_name
="$ac_optarg" ;;
363 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
364 |
-silent |
--silent |
--silen |
--sile |
--sil)
367 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
369 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
371 sbindir
="$ac_optarg" ;;
373 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
374 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
375 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
377 ac_prev
=sharedstatedir
;;
378 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
379 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
380 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
382 sharedstatedir
="$ac_optarg" ;;
384 -site |
--site |
--sit)
386 -site=* |
--site=* |
--sit=*)
389 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
391 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
392 srcdir
="$ac_optarg" ;;
394 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
395 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
396 ac_prev
=sysconfdir
;;
397 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
398 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
399 sysconfdir
="$ac_optarg" ;;
401 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
403 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
404 target
="$ac_optarg" ;;
406 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
409 -version |
--version |
--versio |
--versi |
--vers)
410 echo "configure generated by autoconf version 2.13"
414 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package
=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}='$ac_optarg'" ;;
426 -without-* |
--without-*)
427 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package
=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}=no" ;;
436 # Obsolete; use --with-x.
439 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
440 |
--x-incl |
--x-inc |
--x-in |
--x-i)
441 ac_prev
=x_includes
;;
442 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
443 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
444 x_includes
="$ac_optarg" ;;
446 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
447 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
448 ac_prev
=x_libraries
;;
449 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
450 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
451 x_libraries
="$ac_optarg" ;;
453 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458 echo "configure: warning: $ac_option: invalid host type" 1>&2
460 if test "x$nonopt" != xNONE
; then
461 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
469 if test -n "$ac_prev"; then
470 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
475 # File descriptor usage:
478 # 2 errors and warnings
479 # 3 some systems may open it to /dev/tty
480 # 4 used on the Kubota Titan
481 # 6 checking for... messages and results
482 # 5 compiler messages saved in config.log
483 if test "$silent" = yes; then
491 This file contains any messages produced by compilers while
492 running configure, to aid debugging if configure makes a mistake.
495 # Strip out --no-create and --no-recursion so they do not pile up.
496 # Also quote any args containing shell metacharacters.
501 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
502 |
--no-cr |
--no-c) ;;
503 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
504 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
505 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
507 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
512 # Only set these to C if already set. These must not be set unconditionally
513 # because not all systems understand e.g. LANG=C (notably SCO).
514 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515 # Non-C LC_CTYPE values break the ctype check.
516 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
517 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
518 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
519 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
522 rm -rf conftest
* confdefs.h
523 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
526 # A filename unique to this package, relative to the directory that
527 # configure is in, which we can look for to find out if srcdir is correct.
528 ac_unique_file
=tree.c
530 # Find the source files, if location was not specified.
531 if test -z "$srcdir"; then
532 ac_srcdir_defaulted
=yes
533 # Try the directory containing this script, then its parent.
535 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
538 if test ! -r $srcdir/$ac_unique_file; then
542 ac_srcdir_defaulted
=no
544 if test ! -r $srcdir/$ac_unique_file; then
545 if test "$ac_srcdir_defaulted" = yes; then
546 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
551 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
553 # Prefer explicitly selected file to automatically selected ones.
554 if test -z "$CONFIG_SITE"; then
555 if test "x$prefix" != xNONE
; then
556 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
558 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
561 for ac_site_file
in $CONFIG_SITE; do
562 if test -r "$ac_site_file"; then
563 echo "loading site script $ac_site_file"
568 if test -r "$cache_file"; then
569 echo "loading cache $cache_file"
572 echo "creating cache $cache_file"
577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
578 ac_cpp
='$CPP $CPPFLAGS'
579 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
580 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
581 cross_compiling
=$ac_cv_prog_cc_cross
585 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
586 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
587 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
594 ac_n
= ac_c
='\c' ac_t
=
602 symbolic_link
='ln -s'
605 # Check for bogus environment variables.
606 # Test if LIBRARY_PATH contains the notation for the current directory
607 # since this would lead to problems installing/building glibc.
608 # LIBRARY_PATH contains the current directory if one of the following
610 # - one of the terminals (":" and ";") is the first or last sign
611 # - two terminals occur directly after each other
612 # - the path contains an element with a dot in it
613 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
614 echo "configure:615: checking LIBRARY_PATH variable" >&5
615 case ${LIBRARY_PATH} in
616 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
617 library_path_setting
="contains current directory"
620 library_path_setting
="ok"
623 echo "$ac_t""$library_path_setting" 1>&6
624 if test "$library_path_setting" != "ok"; then
625 { echo "configure: error:
626 *** LIBRARY_PATH shouldn't contain the current directory when
627 *** building gcc. Please change the environment variable
628 *** and run configure again." 1>&2; exit 1; }
631 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
632 # since this would lead to problems installing/building glibc.
633 # GCC_EXEC_PREFIX contains the current directory if one of the following
635 # - one of the terminals (":" and ";") is the first or last sign
636 # - two terminals occur directly after each other
637 # - the path contains an element with a dot in it
638 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
639 echo "configure:640: checking GCC_EXEC_PREFIX variable" >&5
640 case ${GCC_EXEC_PREFIX} in
641 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
642 gcc_exec_prefix_setting
="contains current directory"
645 gcc_exec_prefix_setting
="ok"
648 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
649 if test "$gcc_exec_prefix_setting" != "ok"; then
650 { echo "configure: error:
651 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
652 *** building gcc. Please change the environment variable
653 *** and run configure again." 1>&2; exit 1; }
656 # Check for additional parameters
659 # Check whether --with-gnu-ld or --without-gnu-ld was given.
660 if test "${with_gnu_ld+set}" = set; then
661 withval
="$with_gnu_ld"
662 gnu_ld_flag
="$with_gnu_ld"
668 # With pre-defined ld
669 # Check whether --with-ld or --without-ld was given.
670 if test "${with_ld+set}" = set; then
672 DEFAULT_LINKER
="$with_ld"
675 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
676 if test ! -x "$DEFAULT_LINKER"; then
677 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
678 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
681 cat >> confdefs.h
<<EOF
682 #define DEFAULT_LINKER "$DEFAULT_LINKER"
688 # Check whether --with-gnu-as or --without-gnu-as was given.
689 if test "${with_gnu_as+set}" = set; then
690 withval
="$with_gnu_as"
691 gas_flag
="$with_gnu_as"
697 # Check whether --with-as or --without-as was given.
698 if test "${with_as+set}" = set; then
700 DEFAULT_ASSEMBLER
="$with_as"
703 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
704 if test ! -x "$DEFAULT_ASSEMBLER"; then
705 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
706 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
709 cat >> confdefs.h
<<EOF
710 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
716 # Check whether --with-stabs or --without-stabs was given.
717 if test "${with_stabs+set}" = set; then
718 withval
="$with_stabs"
726 # Check whether --with-elf or --without-elf was given.
727 if test "${with_elf+set}" = set; then
735 # Specify the local prefix
737 # Check whether --with-local-prefix or --without-local-prefix was given.
738 if test "${with_local_prefix+set}" = set; then
739 withval
="$with_local_prefix"
741 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
743 *) local_prefix
=$with_local_prefix ;;
748 # Default local prefix if it is empty
749 if test x
$local_prefix = x
; then
750 local_prefix
=/usr
/local
753 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
754 # passed in by the toplevel make and thus we'd get different behavior
755 # depending on where we built the sources.
757 # Specify the g++ header file directory
758 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
759 if test "${with_gxx_include_dir+set}" = set; then
760 withval
="$with_gxx_include_dir"
762 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
764 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
769 if test x
${gcc_gxx_include_dir} = x
; then
770 if test x
${enable_version_specific_runtime_libs} = xyes
; then
771 gcc_gxx_include_dir
='${libsubdir}/include/g++'
773 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
774 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
778 # Enable expensive internal checks
779 # Check whether --enable-checking or --disable-checking was given.
780 if test "${enable_checking+set}" = set; then
781 enableval
="$enable_checking"
786 ac_gc_always_collect
=
787 case "${enableval}" in
788 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
790 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
791 set fnord
$enableval; shift
796 misc
) ac_checking
=1 ;;
797 tree
) ac_tree_checking
=1 ;;
798 rtl
) ac_rtl_checking
=1 ;;
799 gc
) ac_gc_checking
=1 ;;
800 gcac
) ac_gc_always_collect
=1 ;;
801 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
808 # Enable some checks by default for development versions of GCC
809 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
812 if test x
$ac_checking != x
; then
813 cat >> confdefs.h
<<\EOF
814 #define ENABLE_CHECKING 1
818 if test x
$ac_tree_checking != x
; then
819 cat >> confdefs.h
<<\EOF
820 #define ENABLE_TREE_CHECKING 1
824 if test x
$ac_rtl_checking != x
; then
825 cat >> confdefs.h
<<\EOF
826 #define ENABLE_RTL_CHECKING 1
830 if test x
$ac_gc_checking != x
; then
831 cat >> confdefs.h
<<\EOF
832 #define ENABLE_GC_CHECKING 1
836 if test x
$ac_gc_always_collect != x
; then
837 cat >> confdefs.h
<<\EOF
838 #define ENABLE_GC_ALWAYS_COLLECT 1
844 # Check whether --enable-cpp or --disable-cpp was given.
845 if test "${enable_cpp+set}" = set; then
846 enableval
="$enable_cpp"
853 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
854 if test "${with_cpp_install_dir+set}" = set; then
855 withval
="$with_cpp_install_dir"
856 if test x
$withval = xyes
; then
857 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
858 elif test x
$withval != xno
; then
859 cpp_install_dir
=$withval
864 # Link cpplib into the compiler proper, for C/C++/ObjC.
865 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
866 if test "${enable_c_cpplib+set}" = set; then
867 enableval
="$enable_c_cpplib"
868 if test x
$enable_c_cpplib != xno
; then
869 extra_c_objs
="${extra_c_objs} libcpp.a"
870 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
871 cat >> confdefs.h
<<\EOF
879 # Enable Multibyte Characters for C/C++
880 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
881 if test "${enable_c_mbchar+set}" = set; then
882 enableval
="$enable_c_mbchar"
883 if test x
$enable_c_mbchar != xno
; then
884 cat >> confdefs.h
<<\EOF
885 #define MULTIBYTE_CHARS 1
893 # Pass with no value to take the default
894 # Pass with a value to specify a thread package
895 # Check whether --enable-threads or --disable-threads was given.
896 if test "${enable_threads+set}" = set; then
897 enableval
="$enable_threads"
898 if test x
$enable_threads = xno
; then
906 enable_threads_flag
=$enable_threads
907 # Check if a valid thread package
908 case x
${enable_threads_flag} in
911 target_thread_file
='single'
915 target_thread_file
=''
917 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
918 xsolaris | xwin32 | xdce | xvxworks
)
919 target_thread_file
=$enable_threads_flag
922 echo "$enable_threads is an unknown thread package" 1>&2
927 # Check whether --enable-objc-gc or --disable-objc-gc was given.
928 if test "${enable_objc_gc+set}" = set; then
929 enableval
="$enable_objc_gc"
930 if test x
$enable_objc_gc = xno
; then
940 # Check whether --with-dwarf2 or --without-dwarf2 was given.
941 if test "${with_dwarf2+set}" = set; then
942 withval
="$with_dwarf2"
943 dwarf2
="$with_dwarf2"
949 # Determine the host, build, and target systems
951 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
952 if test -f $ac_dir/install-sh
; then
954 ac_install_sh
="$ac_aux_dir/install-sh -c"
956 elif test -f $ac_dir/install.sh
; then
958 ac_install_sh
="$ac_aux_dir/install.sh -c"
962 if test -z "$ac_aux_dir"; then
963 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
965 ac_config_guess
=$ac_aux_dir/config.guess
966 ac_config_sub
=$ac_aux_dir/config.sub
967 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
970 # Do some error checking and defaulting for the host and target type.
972 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
975 # 1. You are not allowed to specify --host, --target, and nonopt at the
977 # 2. Host defaults to nonopt.
978 # 3. If nonopt is not specified, then host defaults to the current host,
979 # as determined by config.guess.
980 # 4. Target and build default to nonopt.
981 # 5. If nonopt is not specified, then target and build default to host.
983 # The aliases save the names the user supplied, while $host etc.
984 # will get canonicalized.
985 case $host---$target---$nonopt in
986 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
987 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
991 # Make sure we can run config.sub.
992 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
993 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
996 echo $ac_n "checking host system type""... $ac_c" 1>&6
997 echo "configure:998: checking host system type" >&5
1000 case "$host_alias" in
1004 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1005 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1007 *) host_alias
=$nonopt ;;
1011 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1012 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1013 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1014 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015 echo "$ac_t""$host" 1>&6
1017 echo $ac_n "checking target system type""... $ac_c" 1>&6
1018 echo "configure:1019: checking target system type" >&5
1020 target_alias
=$target
1021 case "$target_alias" in
1024 NONE
) target_alias
=$host_alias ;;
1025 *) target_alias
=$nonopt ;;
1029 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1030 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1033 echo "$ac_t""$target" 1>&6
1035 echo $ac_n "checking build system type""... $ac_c" 1>&6
1036 echo "configure:1037: checking build system type" >&5
1039 case "$build_alias" in
1042 NONE
) build_alias
=$host_alias ;;
1043 *) build_alias
=$nonopt ;;
1047 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1048 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1049 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1050 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1051 echo "$ac_t""$build" 1>&6
1053 test "$host_alias" != "$target_alias" &&
1054 test "$program_prefix$program_suffix$program_transform_name" = \
1056 program_prefix
=${target_alias}-
1059 # Find the native compiler
1060 # Extract the first word of "gcc", so it can be a program name with args.
1061 set dummy gcc
; ac_word
=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC
="$CC" # Let the user override the test.
1070 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1072 for ac_dir
in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir
=.
1074 if test -f $ac_dir/$ac_word; then
1083 if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1086 echo "$ac_t""no" 1>&6
1089 if test -z "$CC"; then
1090 # Extract the first word of "cc", so it can be a program name with args.
1091 set dummy cc
; ac_word
=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC
="$CC" # Let the user override the test.
1100 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1103 for ac_dir
in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir
=.
1105 if test -f $ac_dir/$ac_word; then
1106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107 ac_prog_rejected
=yes
1115 if test $ac_prog_rejected = yes; then
1116 # We found a bogon in the path, so make sure we never use it.
1117 set dummy
$ac_cv_prog_CC
1119 if test $# -gt 0; then
1120 # We chose a different compiler from the bogus one.
1121 # However, it has the same basename, so the bogon will be chosen
1122 # first if we set CC to just the basename; use the full file name.
1124 set dummy
"$ac_dir/$ac_word" "$@"
1132 if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 if test -z "$CC"; then
1139 case "`uname -s`" in
1141 # Extract the first word of "cl", so it can be a program name with args.
1142 set dummy cl
; ac_word
=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC
="$CC" # Let the user override the test.
1151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1153 for ac_dir
in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir
=.
1155 if test -f $ac_dir/$ac_word; then
1164 if test -n "$CC"; then
1165 echo "$ac_t""$CC" 1>&6
1167 echo "$ac_t""no" 1>&6
1172 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1175 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1176 echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1179 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1180 ac_cpp
='$CPP $CPPFLAGS'
1181 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1182 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1183 cross_compiling
=$ac_cv_prog_cc_cross
1185 cat > conftest.
$ac_ext << EOF
1187 #line 1188 "configure"
1188 #include "confdefs.h"
1192 if { (eval echo configure
:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1193 ac_cv_prog_cc_works
=yes
1194 # If we can't run a trivial program, we are probably using a cross compiler.
1195 if (.
/conftest
; exit) 2>/dev
/null
; then
1196 ac_cv_prog_cc_cross
=no
1198 ac_cv_prog_cc_cross
=yes
1201 echo "configure: failed program was:" >&5
1202 cat conftest.
$ac_ext >&5
1203 ac_cv_prog_cc_works
=no
1207 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1208 ac_cpp
='$CPP $CPPFLAGS'
1209 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1210 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1211 cross_compiling
=$ac_cv_prog_cc_cross
1213 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1214 if test $ac_cv_prog_cc_works = no
; then
1215 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1217 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1219 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1220 cross_compiling
=$ac_cv_prog_cc_cross
1222 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether we are using GNU C" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 cat > conftest.c
<<EOF
1232 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1239 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1241 if test $ac_cv_prog_gcc = yes; then
1247 ac_test_CFLAGS
="${CFLAGS+set}"
1248 ac_save_CFLAGS
="$CFLAGS"
1250 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 echo 'void f(){}' > conftest.c
1256 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1265 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1266 if test "$ac_test_CFLAGS" = set; then
1267 CFLAGS
="$ac_save_CFLAGS"
1268 elif test $ac_cv_prog_cc_g = yes; then
1269 if test "$GCC" = yes; then
1275 if test "$GCC" = yes; then
1282 if test "x$CC" != xcc
; then
1283 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether $CC and cc understand -c and -o together" >&5
1286 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1287 echo "configure:1288: checking whether cc understands -c and -o together" >&5
1289 set dummy
$CC; ac_cc
="`echo $2 |
1290 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1291 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 echo 'foo(){}' > conftest.c
1295 # Make sure it works both with $CC and with simple cc.
1296 # We do the test twice because some compilers refuse to overwrite an
1297 # existing .o file with -o, though they will create one.
1298 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1299 if { (eval echo configure
:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1300 test -f conftest.o
&& { (eval echo configure
:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1302 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1303 if test "x$CC" != xcc
; then
1304 # Test first that cc exists at all.
1305 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1306 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1307 if { (eval echo configure
:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1308 test -f conftest.o
&& { (eval echo configure
:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1313 # cc exists but doesn't like -o.
1314 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1319 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1324 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1325 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1328 cat >> confdefs.h
<<\EOF
1329 #define NO_MINUS_C_MINUS_O 1
1334 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1335 NO_MINUS_C_MINUS_O
=yes
1339 echo $ac_n "checking for long double""... $ac_c" 1>&6
1340 echo "configure:1341: checking for long double" >&5
1341 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1344 if test "$GCC" = yes; then
1345 gcc_cv_c_long_double
=yes
1347 cat > conftest.
$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1352 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1353 long double foo = 0.0;
1354 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1355 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1358 if { (eval echo configure
:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 gcc_cv_c_long_double
=yes
1362 echo "configure: failed program was:" >&5
1363 cat conftest.
$ac_ext >&5
1365 gcc_cv_c_long_double
=no
1371 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1372 if test $gcc_cv_c_long_double = yes; then
1373 cat >> confdefs.h
<<\EOF
1374 #define HAVE_LONG_DOUBLE 1
1380 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 save_CFLAGS
="$CFLAGS"
1386 CFLAGS
="-Wno-long-long"
1387 cat > conftest.
$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1395 if { (eval echo configure
:1396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1397 ac_cv_prog_cc_no_long_long
=yes
1399 echo "configure: failed program was:" >&5
1400 cat conftest.
$ac_ext >&5
1402 ac_cv_prog_cc_no_long_long
=no
1405 CFLAGS
="$save_CFLAGS"
1408 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1410 # If the native compiler is GCC, we can enable warnings even in stage1.
1411 # That's useful for people building cross-compilers, or just running a
1413 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1414 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1415 if test "x$GCC" = "xyes"; then
1416 if test $ac_cv_prog_cc_no_long_long = yes; then
1417 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1420 stage1_warn_cflags
=""
1423 # Stage specific cflags for build.
1426 if test x
$GCC = xyes
1428 stage1_warn_cflags
="$stage1_warn_cflags -Wa,-J"
1430 stage1_warn_cflags
="$stage1_warn_cflags -J"
1438 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1439 echo "configure:1440: checking whether ${MAKE-make} sets \${MAKE}" >&5
1440 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1441 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 cat > conftestmake
<<\EOF
1446 @
echo 'ac_maketemp="${MAKE}"'
1448 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1449 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1450 if test -n "$ac_maketemp"; then
1451 eval ac_cv_prog_make_
${ac_make}_set
=yes
1453 eval ac_cv_prog_make_
${ac_make}_set
=no
1457 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1461 echo "$ac_t""no" 1>&6
1462 SET_MAKE
="MAKE=${MAKE-make}"
1466 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether a default assembler was specified" >&5
1468 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1469 if test x
"$gas_flag" = x
"no"; then
1470 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1472 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1475 echo "$ac_t""no" 1>&6
1478 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1479 echo "configure:1480: checking whether a default linker was specified" >&5
1480 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1481 if test x
"$gnu_ld_flag" = x
"no"; then
1482 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1484 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1487 echo "$ac_t""no" 1>&6
1490 echo $ac_n "checking for inline""... $ac_c" 1>&6
1491 echo "configure:1492: checking for inline" >&5
1492 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1496 for ac_kw
in inline __inline__ __inline
; do
1497 cat > conftest.
$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1505 if { (eval echo configure
:1506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1507 ac_cv_c_inline
=$ac_kw; break
1509 echo "configure: failed program was:" >&5
1510 cat conftest.
$ac_ext >&5
1517 echo "$ac_t""$ac_cv_c_inline" 1>&6
1518 case "$ac_cv_c_inline" in
1520 no
) cat >> confdefs.h
<<\EOF
1524 *) cat >> confdefs.h
<<EOF
1525 #define inline $ac_cv_c_inline
1531 # Find some useful tools
1532 for ac_prog
in mawk gawk nawk
awk
1534 # Extract the first word of "$ac_prog", so it can be a program name with args.
1535 set dummy
$ac_prog; ac_word
=$2
1536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1537 echo "configure:1538: checking for $ac_word" >&5
1538 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 if test -n "$AWK"; then
1542 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1546 for ac_dir
in $ac_dummy; do
1547 test -z "$ac_dir" && ac_dir
=.
1548 if test -f $ac_dir/$ac_word; then
1549 ac_cv_prog_AWK
="$ac_prog"
1556 AWK
="$ac_cv_prog_AWK"
1557 if test -n "$AWK"; then
1558 echo "$ac_t""$AWK" 1>&6
1560 echo "$ac_t""no" 1>&6
1563 test -n "$AWK" && break
1566 # Extract the first word of "flex", so it can be a program name with args.
1567 set dummy flex
; ac_word
=$2
1568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_word" >&5
1570 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 if test -n "$LEX"; then
1574 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1578 for ac_dir
in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir
=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_prog_LEX
="flex"
1586 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1589 LEX
="$ac_cv_prog_LEX"
1590 if test -n "$LEX"; then
1591 echo "$ac_t""$LEX" 1>&6
1593 echo "$ac_t""no" 1>&6
1596 if test -z "$LEXLIB"
1602 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1603 echo "configure:1604: checking for yywrap in -l$ac_lib" >&5
1604 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 ac_save_LIBS
="$LIBS"
1609 LIBS
="-l$ac_lib $LIBS"
1610 cat > conftest.
$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 /* Override any gcc2 internal prototype to avoid an error. */
1614 /* We use char because int might match the return type of a gcc2
1615 builtin and then its argument prototype would still apply. */
1622 if { (eval echo configure
:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1624 eval "ac_cv_lib_$ac_lib_var=yes"
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1629 eval "ac_cv_lib_$ac_lib_var=no"
1632 LIBS
="$ac_save_LIBS"
1635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1639 echo "$ac_t""no" 1>&6
1644 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1645 echo "configure:1646: checking whether ln works" >&5
1646 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 rm -f conftestdata_t
1650 echo >conftestdata_f
1651 if ln conftestdata_f conftestdata_t
2>/dev
/null
1655 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1657 gcc_cv_prog_LN
="ln -s"
1662 rm -f conftestdata_f conftestdata_t
1665 LN
="$gcc_cv_prog_LN"
1666 if test "$gcc_cv_prog_LN" = "ln"; then
1667 echo "$ac_t""yes" 1>&6
1669 if test "$gcc_cv_prog_LN" = "ln -s"; then
1670 echo "$ac_t""no, using ln -s" 1>&6
1672 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1676 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether ln -s works" >&5
1678 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 rm -f conftestdata_t
1682 echo >conftestdata_f
1683 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1685 gcc_cv_prog_LN_S
="ln -s"
1687 if ln conftestdata_f conftestdata_t
2>/dev
/null
1694 rm -f conftestdata_f conftestdata_t
1697 LN_S
="$gcc_cv_prog_LN_S"
1698 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1699 echo "$ac_t""yes" 1>&6
1701 if test "$gcc_cv_prog_LN_S" = "ln"; then
1702 echo "$ac_t""no, using ln" 1>&6
1704 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1708 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1709 echo "configure:1710: checking for volatile" >&5
1710 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1721 if { (eval echo configure
:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1723 gcc_cv_c_volatile
=yes
1725 echo "configure: failed program was:" >&5
1726 cat conftest.
$ac_ext >&5
1728 gcc_cv_c_volatile
=no
1733 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1734 if test $gcc_cv_c_volatile = yes ; then
1735 cat >> confdefs.h
<<\EOF
1736 #define HAVE_VOLATILE 1
1741 # Extract the first word of "ranlib", so it can be a program name with args.
1742 set dummy ranlib
; ac_word
=$2
1743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_word" >&5
1745 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 if test -n "$RANLIB"; then
1749 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1751 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1753 for ac_dir
in $ac_dummy; do
1754 test -z "$ac_dir" && ac_dir
=.
1755 if test -f $ac_dir/$ac_word; then
1756 ac_cv_prog_RANLIB
="ranlib"
1761 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1764 RANLIB
="$ac_cv_prog_RANLIB"
1765 if test -n "$RANLIB"; then
1766 echo "$ac_t""$RANLIB" 1>&6
1768 echo "$ac_t""no" 1>&6
1771 for ac_prog
in 'bison -y' byacc
1773 # Extract the first word of "$ac_prog", so it can be a program name with args.
1774 set dummy
$ac_prog; ac_word
=$2
1775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $ac_word" >&5
1777 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 if test -n "$YACC"; then
1781 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1783 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1785 for ac_dir
in $ac_dummy; do
1786 test -z "$ac_dir" && ac_dir
=.
1787 if test -f $ac_dir/$ac_word; then
1788 ac_cv_prog_YACC
="$ac_prog"
1795 YACC
="$ac_cv_prog_YACC"
1796 if test -n "$YACC"; then
1797 echo "$ac_t""$YACC" 1>&6
1799 echo "$ac_t""no" 1>&6
1802 test -n "$YACC" && break
1804 test -n "$YACC" || YACC
="yacc"
1806 # Find a good install program. We prefer a C program (faster),
1807 # so one script is as good as another. But avoid the broken or
1808 # incompatible versions:
1809 # SysV /etc/install, /usr/sbin/install
1810 # SunOS /usr/etc/install
1811 # IRIX /sbin/install
1813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1815 # ./install, which can be erroneously created by make from ./install.sh.
1816 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1817 echo "configure:1818: checking for a BSD compatible install" >&5
1818 if test -z "$INSTALL"; then
1819 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1823 for ac_dir
in $PATH; do
1824 # Account for people who put trailing slashes in PATH elements.
1826 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1828 # OSF1 and SCO ODT 3.0 have their own names for install.
1829 for ac_prog
in ginstall scoinst
install; do
1830 if test -f $ac_dir/$ac_prog; then
1831 if test $ac_prog = install &&
1832 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1833 # AIX install. It has an incompatible calling convention.
1834 # OSF/1 installbsd also uses dspmsg, but is usable.
1837 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1848 if test "${ac_cv_path_install+set}" = set; then
1849 INSTALL
="$ac_cv_path_install"
1851 # As a last resort, use the slow shell script. We don't cache a
1852 # path for INSTALL within a source directory, because that will
1853 # break other packages using the cache if that directory is
1854 # removed, or if the path is relative.
1855 INSTALL
="$ac_install_sh"
1858 echo "$ac_t""$INSTALL" 1>&6
1860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1861 # It thinks the first close brace ends the variable substitution.
1862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1864 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1867 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1868 echo "configure:1869: checking how to run the C preprocessor" >&5
1869 # On Suns, sometimes $CPP names a directory.
1870 if test -n "$CPP" && test -d "$CPP"; then
1873 if test -z "$CPP"; then
1874 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 # This must be in double quotes, not single quotes, because CPP may get
1878 # substituted into the Makefile and "${CC-cc}" will confuse make.
1880 # On the NeXT, cc -E runs the code through the compiler's parser,
1881 # not just through cpp.
1882 cat > conftest.
$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure
:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 CPP
="${CC-cc} -E -traditional-cpp"
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1905 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure
:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1908 if test -z "$ac_err"; then
1912 echo "configure: failed program was:" >&5
1913 cat conftest.
$ac_ext >&5
1915 CPP
="${CC-cc} -nologo -E"
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1922 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1923 { (eval echo configure
:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1924 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1925 if test -z "$ac_err"; then
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1939 ac_cv_prog_CPP
="$CPP"
1941 CPP
="$ac_cv_prog_CPP"
1943 ac_cv_prog_CPP
="$CPP"
1945 echo "$ac_t""$CPP" 1>&6
1947 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1948 echo "configure:1949: checking for ANSI C header files" >&5
1949 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1952 cat > conftest.
$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1960 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure
:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 ac_cv_header_stdc
=yes
1968 echo "configure: failed program was:" >&5
1969 cat conftest.
$ac_ext >&5
1971 ac_cv_header_stdc
=no
1975 if test $ac_cv_header_stdc = yes; then
1976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1977 cat > conftest.
$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1983 egrep "memchr" >/dev
/null
2>&1; then
1987 ac_cv_header_stdc
=no
1993 if test $ac_cv_header_stdc = yes; then
1994 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1995 cat > conftest.
$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
2000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2001 egrep "free" >/dev
/null
2>&1; then
2005 ac_cv_header_stdc
=no
2011 if test $ac_cv_header_stdc = yes; then
2012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2013 if test "$cross_compiling" = yes; then
2016 cat > conftest.
$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2020 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2021 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2023 int main () { int i; for (i = 0; i < 256; i++)
2024 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2028 if { (eval echo configure
:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 ac_cv_header_stdc
=no
2043 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2044 if test $ac_cv_header_stdc = yes; then
2045 cat >> confdefs.h
<<\EOF
2046 #define STDC_HEADERS 1
2051 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether time.h and sys/time.h may both be included" >&5
2053 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 cat > conftest.
$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059 #include <sys/types.h>
2060 #include <sys/time.h>
2066 if { (eval echo configure
:2067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2068 ac_cv_header_time
=yes
2070 echo "configure: failed program was:" >&5
2071 cat conftest.
$ac_ext >&5
2073 ac_cv_header_time
=no
2078 echo "$ac_t""$ac_cv_header_time" 1>&6
2079 if test $ac_cv_header_time = yes; then
2080 cat >> confdefs.h
<<\EOF
2081 #define TIME_WITH_SYS_TIME 1
2086 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2087 echo "configure:2088: checking whether string.h and strings.h may both be included" >&5
2088 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 cat > conftest.
$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2095 #include <strings.h>
2100 if { (eval echo configure
:2101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2102 gcc_cv_header_string
=yes
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2107 gcc_cv_header_string
=no
2112 echo "$ac_t""$gcc_cv_header_string" 1>&6
2113 if test $gcc_cv_header_string = yes; then
2114 cat >> confdefs.h
<<\EOF
2115 #define STRING_WITH_STRINGS 1
2120 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2121 echo "configure:2122: checking for sys/wait.h that is POSIX.1 compatible" >&5
2122 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.
$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2128 #include <sys/types.h>
2129 #include <sys/wait.h>
2131 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2134 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2139 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2142 if { (eval echo configure
:2143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 ac_cv_header_sys_wait_h
=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 ac_cv_header_sys_wait_h
=no
2154 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2155 if test $ac_cv_header_sys_wait_h = yes; then
2156 cat >> confdefs.h
<<\EOF
2157 #define HAVE_SYS_WAIT_H 1
2162 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2163 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2164 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2165 direct.h malloc.h langinfo.h
iconv.h
2167 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_hdr" >&5
2170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2178 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure
:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2181 if test -z "$ac_err"; then
2183 eval "ac_cv_header_$ac_safe=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.
$ac_ext >&5
2189 eval "ac_cv_header_$ac_safe=no"
2193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2194 echo "$ac_t""yes" 1>&6
2195 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2196 cat >> confdefs.h
<<EOF
2197 #define $ac_tr_hdr 1
2201 echo "$ac_t""no" 1>&6
2206 # Check for thread headers.
2207 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2208 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2209 echo "configure:2210: checking for thread.h" >&5
2210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 cat > conftest.
$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2218 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2219 { (eval echo configure
:2220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2220 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2221 if test -z "$ac_err"; then
2223 eval "ac_cv_header_$ac_safe=yes"
2226 echo "configure: failed program was:" >&5
2227 cat conftest.
$ac_ext >&5
2229 eval "ac_cv_header_$ac_safe=no"
2233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2234 echo "$ac_t""yes" 1>&6
2237 echo "$ac_t""no" 1>&6
2241 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2242 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2243 echo "configure:2244: checking for pthread.h" >&5
2244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 cat > conftest.
$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2250 #include <pthread.h>
2252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2253 { (eval echo configure
:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2254 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2255 if test -z "$ac_err"; then
2257 eval "ac_cv_header_$ac_safe=yes"
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 eval "ac_cv_header_$ac_safe=no"
2267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2271 echo "$ac_t""no" 1>&6
2276 # Always define _XOPEN_SOURCE. It doesn't hurt, and it lets us
2277 # pick up CODESET from langinfo.h, among other things.
2278 cat >> confdefs.h
<<\EOF
2279 #define _XOPEN_SOURCE 1
2282 # If we define _XOPEN_SOURCE on a glibc2 system, it hides other
2283 # interfaces. Make them visible again with _GNU_SOURCE.
2284 cat >> confdefs.h
<<\EOF
2285 #define _GNU_SOURCE 1
2289 # See if GNAT has been installed
2290 # Extract the first word of "gnatbind", so it can be a program name with args.
2291 set dummy gnatbind
; ac_word
=$2
2292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2293 echo "configure:2294: checking for $ac_word" >&5
2294 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 if test -n "$gnat"; then
2298 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2300 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2302 for ac_dir
in $ac_dummy; do
2303 test -z "$ac_dir" && ac_dir
=.
2304 if test -f $ac_dir/$ac_word; then
2305 ac_cv_prog_gnat
="yes"
2310 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2313 gnat
="$ac_cv_prog_gnat"
2314 if test -n "$gnat"; then
2315 echo "$ac_t""$gnat" 1>&6
2317 echo "$ac_t""no" 1>&6
2321 # Do we have a single-tree copy of texinfo?
2322 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2323 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2324 gcc_cv_prog_makeinfo_modern
=yes
2325 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2327 # See if makeinfo has been installed and is modern enough
2328 # that we can use it.
2329 # Extract the first word of "makeinfo", so it can be a program name with args.
2330 set dummy makeinfo
; ac_word
=$2
2331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_word" >&5
2333 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 if test -n "$MAKEINFO"; then
2337 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2339 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2341 for ac_dir
in $ac_dummy; do
2342 test -z "$ac_dir" && ac_dir
=.
2343 if test -f $ac_dir/$ac_word; then
2344 ac_cv_prog_MAKEINFO
="makeinfo"
2351 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2352 if test -n "$MAKEINFO"; then
2353 echo "$ac_t""$MAKEINFO" 1>&6
2355 echo "$ac_t""no" 1>&6
2358 if test -n "$MAKEINFO"; then
2359 # Found it, now check the version.
2360 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2361 echo "configure:2362: checking for modern makeinfo" >&5
2362 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2366 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2367 echo "configure:2368: version of makeinfo is $ac_prog_version" >&5
2368 case $ac_prog_version in
2369 '') gcc_cv_prog_makeinfo_modern
=no
;;
2370 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2371 gcc_cv_prog_makeinfo_modern
=yes;;
2372 *) gcc_cv_prog_makeinfo_modern
=no
;;
2377 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2379 gcc_cv_prog_makeinfo_modern
=no
2384 if test $gcc_cv_prog_makeinfo_modern = no
; then
2385 echo "configure: warning:
2386 *** Makeinfo is missing or too old.
2387 *** Info documentation will not be built or installed." 1>&2
2392 INSTALL_INFO
=install-info
2395 # See if the stage1 system preprocessor understands the ANSI C
2396 # preprocessor stringification operator.
2399 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2400 echo "configure:2401: checking for preprocessor stringizing operator" >&5
2401 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.
$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2410 char *s = x(teststring);
2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2414 egrep "#teststring" >/dev
/null
2>&1; then
2416 ac_cv_c_stringize
=no
2419 ac_cv_c_stringize
=yes
2425 if test "${ac_cv_c_stringize}" = yes
2427 cat >> confdefs.h
<<\EOF
2428 #define HAVE_STRINGIZE 1
2432 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2435 # Use <inttypes.h> only if it exists,
2436 # doesn't clash with <sys/types.h>, and declares intmax_t.
2437 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2438 echo "configure:2439: checking for inttypes.h" >&5
2439 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 #include <sys/types.h>
2446 #include <inttypes.h>
2451 if { (eval echo configure
:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2453 gcc_cv_header_inttypes_h
=yes
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2458 gcc_cv_header_inttypes_h
=no
2463 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2464 if test $gcc_cv_header_inttypes_h = yes; then
2465 cat >> confdefs.h
<<\EOF
2466 #define HAVE_INTTYPES_H 1
2472 # Determine if enumerated bitfields are unsigned. ISO C says they can
2473 # be either signed or unsigned.
2475 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2476 echo "configure:2477: checking for unsigned enumerated bitfields" >&5
2477 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 if test "$cross_compiling" = yes; then
2481 gcc_cv_enum_bf_unsigned
=yes
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2487 enum t { BLAH = 128 } ;
2488 struct s_t { enum t member : 8; } s ;
2492 if (s.member < 0) exit(1);
2497 if { (eval echo configure
:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2499 gcc_cv_enum_bf_unsigned
=yes
2501 echo "configure: failed program was:" >&5
2502 cat conftest.
$ac_ext >&5
2504 gcc_cv_enum_bf_unsigned
=no
2511 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2512 if test $gcc_cv_enum_bf_unsigned = yes; then
2513 cat >> confdefs.h
<<\EOF
2514 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2519 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2520 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2521 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2522 fputs_unlocked getrusage valloc
iconv nl_langinfo
2524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_func" >&5
2526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.
$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* System header to define __stub macros and hopefully few prototypes,
2533 which can conflict with char $ac_func(); below. */
2535 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2542 /* The GNU C library defines this for functions which it implements
2543 to always fail with ENOSYS. Some functions are actually named
2544 something starting with __ and the normal name is an alias. */
2545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2553 if { (eval echo configure
:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2555 eval "ac_cv_func_$ac_func=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.
$ac_ext >&5
2560 eval "ac_cv_func_$ac_func=no"
2565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2568 cat >> confdefs.h
<<EOF
2569 #define $ac_tr_func 1
2573 echo "$ac_t""no" 1>&6
2578 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2579 echo "configure:2580: checking for ssize_t" >&5
2580 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <sys/types.h>
2592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2593 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2595 ac_cv_type_ssize_t
=yes
2598 ac_cv_type_ssize_t
=no
2603 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2604 if test $ac_cv_type_ssize_t = no
; then
2605 cat >> confdefs.h
<<\EOF
2612 # Try to determine the array type of the second argument of getgroups
2613 # for the target system (int or gid_t).
2614 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2615 echo "configure:2616: checking for uid_t in sys/types.h" >&5
2616 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <sys/types.h>
2624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2625 egrep "uid_t" >/dev
/null
2>&1; then
2627 ac_cv_type_uid_t
=yes
2636 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2637 if test $ac_cv_type_uid_t = no
; then
2638 cat >> confdefs.h
<<\EOF
2642 cat >> confdefs.h
<<\EOF
2648 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2649 echo "configure:2650: checking type of array argument to getgroups" >&5
2650 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 if test "$cross_compiling" = yes; then
2654 ac_cv_type_getgroups
=cross
2656 cat > conftest.
$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2660 /* Thanks to Mike Rendell for this test. */
2661 #include <sys/types.h>
2664 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2669 union { gid_t gval; long lval; } val;
2672 for (i = 0; i < NGID; i++)
2673 gidset[i] = val.gval;
2674 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2676 /* Exit non-zero if getgroups seems to require an array of ints. This
2677 happens when gid_t is short but getgroups modifies an array of ints. */
2678 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2682 if { (eval echo configure
:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2684 ac_cv_type_getgroups
=gid_t
2686 echo "configure: failed program was:" >&5
2687 cat conftest.
$ac_ext >&5
2689 ac_cv_type_getgroups
=int
2694 if test $ac_cv_type_getgroups = cross
; then
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2701 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2703 ac_cv_type_getgroups
=gid_t
2706 ac_cv_type_getgroups
=int
2713 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2714 cat >> confdefs.h
<<EOF
2715 #define GETGROUPS_T $ac_cv_type_getgroups
2719 if test "${target}" = "${build}"; then
2720 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2723 # This condition may need some tweaking. It should include all
2724 # targets where the array type of the second argument of getgroups
2725 # is int and the type of gid_t is not equivalent to int.
2726 *-*-sunos* |
*-*-ultrix*)
2727 TARGET_GETGROUPS_T
=int
2730 TARGET_GETGROUPS_T
=gid_t
2736 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2737 echo "configure:2738: checking for vprintf" >&5
2738 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 /* System header to define __stub macros and hopefully few prototypes,
2745 which can conflict with char vprintf(); below. */
2747 /* Override any gcc2 internal prototype to avoid an error. */
2748 /* We use char because int might match the return type of a gcc2
2749 builtin and then its argument prototype would still apply. */
2754 /* The GNU C library defines this for functions which it implements
2755 to always fail with ENOSYS. Some functions are actually named
2756 something starting with __ and the normal name is an alias. */
2757 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2765 if { (eval echo configure
:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2767 eval "ac_cv_func_vprintf=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.
$ac_ext >&5
2772 eval "ac_cv_func_vprintf=no"
2777 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2778 echo "$ac_t""yes" 1>&6
2779 cat >> confdefs.h
<<\EOF
2780 #define HAVE_VPRINTF 1
2784 echo "$ac_t""no" 1>&6
2787 if test "$ac_cv_func_vprintf" != yes; then
2788 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2789 echo "configure:2790: checking for _doprnt" >&5
2790 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.
$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char _doprnt(); below. */
2799 /* Override any gcc2 internal prototype to avoid an error. */
2800 /* We use char because int might match the return type of a gcc2
2801 builtin and then its argument prototype would still apply. */
2806 /* The GNU C library defines this for functions which it implements
2807 to always fail with ENOSYS. Some functions are actually named
2808 something starting with __ and the normal name is an alias. */
2809 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2817 if { (eval echo configure
:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2819 eval "ac_cv_func__doprnt=yes"
2821 echo "configure: failed program was:" >&5
2822 cat conftest.
$ac_ext >&5
2824 eval "ac_cv_func__doprnt=no"
2829 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2830 echo "$ac_t""yes" 1>&6
2831 cat >> confdefs.h
<<\EOF
2832 #define HAVE_DOPRNT 1
2836 echo "$ac_t""no" 1>&6
2843 if test $ac_cv_func_vprintf != yes ; then
2845 if test $ac_cv_func__doprnt != yes ; then
2852 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2853 echo "configure:2854: checking whether the printf functions support %p" >&5
2854 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 if test "$cross_compiling" = yes; then
2858 gcc_cv_func_printf_ptr
=no
2860 cat > conftest.
$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2868 char *p = buf, *q = NULL;
2869 sprintf(buf, "%p", p);
2870 sscanf(buf, "%p", &q);
2874 if { (eval echo configure
:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2876 gcc_cv_func_printf_ptr
=yes
2878 echo "configure: failed program was:" >&5
2879 cat conftest.
$ac_ext >&5
2881 gcc_cv_func_printf_ptr
=no
2886 rm -f core core.
* *.core
2889 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2890 if test $gcc_cv_func_printf_ptr = yes ; then
2891 cat >> confdefs.h
<<\EOF
2892 #define HAVE_PRINTF_PTR 1
2900 # Under some versions of uwin, vfork is notoriously buggy and the test
2901 # can hang configure; on other versions, vfork exists just as a stub.
2902 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2903 ac_cv_func_vfork_works
=no
2906 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2907 echo "configure:2908: checking for pid_t" >&5
2908 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 cat > conftest.
$ac_ext <<EOF
2912 #line 2913 "configure"
2913 #include "confdefs.h"
2914 #include <sys/types.h>
2920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2921 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2923 ac_cv_type_pid_t
=yes
2931 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2932 if test $ac_cv_type_pid_t = no
; then
2933 cat >> confdefs.h
<<\EOF
2939 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2940 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2941 echo "configure:2942: checking for vfork.h" >&5
2942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 cat > conftest.
$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2950 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2951 { (eval echo configure
:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2952 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2953 if test -z "$ac_err"; then
2955 eval "ac_cv_header_$ac_safe=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.
$ac_ext >&5
2961 eval "ac_cv_header_$ac_safe=no"
2965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 cat >> confdefs.h
<<\EOF
2968 #define HAVE_VFORK_H 1
2972 echo "$ac_t""no" 1>&6
2975 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2976 echo "configure:2977: checking for working vfork" >&5
2977 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 if test "$cross_compiling" = yes; then
2981 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2982 echo "configure:2983: checking for vfork" >&5
2983 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 cat > conftest.
$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2989 /* System header to define __stub macros and hopefully few prototypes,
2990 which can conflict with char vfork(); below. */
2992 /* Override any gcc2 internal prototype to avoid an error. */
2993 /* We use char because int might match the return type of a gcc2
2994 builtin and then its argument prototype would still apply. */
2999 /* The GNU C library defines this for functions which it implements
3000 to always fail with ENOSYS. Some functions are actually named
3001 something starting with __ and the normal name is an alias. */
3002 #if defined (__stub_vfork) || defined (__stub___vfork)
3010 if { (eval echo configure
:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3012 eval "ac_cv_func_vfork=yes"
3014 echo "configure: failed program was:" >&5
3015 cat conftest.
$ac_ext >&5
3017 eval "ac_cv_func_vfork=no"
3022 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3026 echo "$ac_t""no" 1>&6
3029 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 /* Thanks to Paul Eggert for this test. */
3036 #include <sys/types.h>
3037 #include <sys/stat.h>
3038 #ifdef HAVE_UNISTD_H
3044 /* On some sparc systems, changes by the child to local and incoming
3045 argument registers are propagated back to the parent.
3046 The compiler is told about this with #include <vfork.h>,
3047 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3048 Test for this by using a static variable whose address
3049 is put into a register that is clobbered by the vfork. */
3052 sparc_address_test (int arg)
3054 sparc_address_test (arg) int arg;
3072 pid_t parent = getpid ();
3075 sparc_address_test ();
3080 /* Here is another test for sparc vfork register problems.
3081 This test uses lots of local variables, at least
3082 as many local variables as main has allocated so far
3083 including compiler temporaries. 4 locals are enough for
3084 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3085 A buggy compiler should reuse the register of parent
3086 for one of the local variables, since it will think that
3087 parent can't possibly be used any more in this routine.
3088 Assigning to the local variable will thus munge parent
3089 in the parent process. */
3091 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3092 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3093 /* Convince the compiler that p..p7 are live; otherwise, it might
3094 use the same hardware register for all 8 local variables. */
3095 if (p != p1 || p != p2 || p != p3 || p != p4
3096 || p != p5 || p != p6 || p != p7)
3099 /* On some systems (e.g. IRIX 3.3),
3100 vfork doesn't separate parent from child file descriptors.
3101 If the child closes a descriptor before it execs or exits,
3102 this munges the parent's descriptor as well.
3103 Test for this by closing stdout in the child. */
3104 _exit(close(fileno(stdout)) != 0);
3109 while (wait(&status) != child)
3112 /* Was there some problem with vforking? */
3115 /* Did the child fail? (This shouldn't happen.) */
3118 /* Did the vfork/compiler bug occur? */
3119 || parent != getpid()
3121 /* Did the file descriptor bug occur? */
3122 || fstat(fileno(stdout), &st) != 0
3127 if { (eval echo configure
:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3129 ac_cv_func_vfork_works
=yes
3131 echo "configure: failed program was:" >&5
3132 cat conftest.
$ac_ext >&5
3134 ac_cv_func_vfork_works
=no
3141 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3142 if test $ac_cv_func_vfork_works = no
; then
3143 cat >> confdefs.h
<<\EOF
3149 for ac_hdr
in unistd.h
3151 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3153 echo "configure:3154: checking for $ac_hdr" >&5
3154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.
$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3162 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3163 { (eval echo configure
:3164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3164 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3165 if test -z "$ac_err"; then
3167 eval "ac_cv_header_$ac_safe=yes"
3170 echo "configure: failed program was:" >&5
3171 cat conftest.
$ac_ext >&5
3173 eval "ac_cv_header_$ac_safe=no"
3177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3179 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3180 cat >> confdefs.h
<<EOF
3181 #define $ac_tr_hdr 1
3185 echo "$ac_t""no" 1>&6
3189 for ac_func
in getpagesize
3191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_func" >&5
3193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 cat > conftest.
$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 /* System header to define __stub macros and hopefully few prototypes,
3200 which can conflict with char $ac_func(); below. */
3202 /* Override any gcc2 internal prototype to avoid an error. */
3203 /* We use char because int might match the return type of a gcc2
3204 builtin and then its argument prototype would still apply. */
3209 /* The GNU C library defines this for functions which it implements
3210 to always fail with ENOSYS. Some functions are actually named
3211 something starting with __ and the normal name is an alias. */
3212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3220 if { (eval echo configure
:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3222 eval "ac_cv_func_$ac_func=yes"
3224 echo "configure: failed program was:" >&5
3225 cat conftest.
$ac_ext >&5
3227 eval "ac_cv_func_$ac_func=no"
3232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3233 echo "$ac_t""yes" 1>&6
3234 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3235 cat >> confdefs.h
<<EOF
3236 #define $ac_tr_func 1
3240 echo "$ac_t""no" 1>&6
3244 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3245 echo "configure:3246: checking for working mmap which provides zeroed pages anywhere" >&5
3246 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 if test "$cross_compiling" = yes; then
3250 ac_cv_func_mmap_anywhere
=no
3252 cat > conftest.
$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3256 /* Test by Richard Henderson and Alexandre Oliva.
3257 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3258 #include <sys/types.h>
3260 #include <sys/mman.h>
3262 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3263 # define MAP_ANONYMOUS MAP_ANON
3266 /* This mess was copied from the GNU getpagesize.h. */
3267 #ifndef HAVE_GETPAGESIZE
3268 # ifdef HAVE_UNISTD_H
3269 # include <unistd.h>
3272 /* Assume that all systems that can run configure have sys/param.h. */
3273 # ifndef HAVE_SYS_PARAM_H
3274 # define HAVE_SYS_PARAM_H 1
3277 # ifdef _SC_PAGESIZE
3278 # define getpagesize() sysconf(_SC_PAGESIZE)
3279 # else /* no _SC_PAGESIZE */
3280 # ifdef HAVE_SYS_PARAM_H
3281 # include <sys/param.h>
3282 # ifdef EXEC_PAGESIZE
3283 # define getpagesize() EXEC_PAGESIZE
3284 # else /* no EXEC_PAGESIZE */
3286 # define getpagesize() NBPG * CLSIZE
3289 # endif /* no CLSIZE */
3290 # else /* no NBPG */
3292 # define getpagesize() NBPC
3293 # else /* no NBPC */
3295 # define getpagesize() PAGESIZE
3296 # endif /* PAGESIZE */
3297 # endif /* no NBPC */
3298 # endif /* no NBPG */
3299 # endif /* no EXEC_PAGESIZE */
3300 # else /* no HAVE_SYS_PARAM_H */
3301 # define getpagesize() 8192 /* punt totally */
3302 # endif /* no HAVE_SYS_PARAM_H */
3303 # endif /* no _SC_PAGESIZE */
3305 #endif /* no HAVE_GETPAGESIZE */
3312 #ifndef MAP_ANONYMOUS
3313 fd = open("/dev/zero", O_RDWR);
3319 #ifdef MAP_ANONYMOUS
3320 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3321 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3323 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3325 if (x == (char *) -1)
3330 if (munmap(x, pg) < 0)
3336 if { (eval echo configure
:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3338 ac_cv_func_mmap_anywhere
=yes
3340 echo "configure: failed program was:" >&5
3341 cat conftest.
$ac_ext >&5
3343 ac_cv_func_mmap_anywhere
=no
3350 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3351 if test $ac_cv_func_mmap_anywhere = yes; then
3352 cat >> confdefs.h
<<\EOF
3353 #define HAVE_MMAP_ANYWHERE 1
3358 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3359 echo "configure:3360: checking for working mmap of a file" >&5
3360 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 # Create a file one thousand bytes long.
3364 for i
in 1 2 3 4 5 6 7 8 9 0
3365 do for j
in 1 2 3 4 5 6 7 8 9 0
3368 done > conftestdata$$
3370 if test "$cross_compiling" = yes; then
3371 ac_cv_func_mmap_file
=no
3373 cat > conftest.
$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3377 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3378 Richard Henderson and Alexandre Oliva.
3379 Check whether read-only mmap of a plain file works. */
3380 #include <sys/types.h>
3381 #include <sys/stat.h>
3383 #include <sys/mman.h>
3391 fd = open("conftestdata$$", O_RDONLY);
3395 if (fstat (fd, &st))
3398 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3399 if (x == (char *) -1)
3402 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3405 if (munmap(x, st.st_size) < 0)
3411 if { (eval echo configure
:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3413 ac_cv_func_mmap_file
=yes
3415 echo "configure: failed program was:" >&5
3416 cat conftest.
$ac_ext >&5
3418 ac_cv_func_mmap_file
=no
3425 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3426 if test $ac_cv_func_mmap_file = yes; then
3427 cat >> confdefs.h
<<\EOF
3428 #define HAVE_MMAP_FILE 1
3434 # We will need to find libiberty.h and ansidecl.h
3435 saved_CFLAGS
="$CFLAGS"
3436 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3437 for ac_func
in bcopy bzero bcmp \
3438 index rindex getenv atol sbrk abort atof getcwd getwd \
3439 strsignal putc_unlocked fputs_unlocked strstr environ \
3440 malloc realloc calloc free
basename getopt
3442 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3443 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3444 echo "configure:3445: checking whether $ac_func is declared" >&5
3445 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 cat > conftest.
$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include "gansidecl.h"
3456 char *(*pfn) = (char *(*)) $ac_func ;
3460 if { (eval echo configure
:3461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3462 eval "gcc_cv_have_decl_$ac_func=yes"
3464 echo "configure: failed program was:" >&5
3465 cat conftest.
$ac_ext >&5
3467 eval "gcc_cv_have_decl_$ac_func=no"
3472 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3473 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3474 #define $ac_tr_decl 1
3478 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3479 #define $ac_tr_decl 0
3485 if test x
= y
; then
3486 cat >> confdefs.h
<<EOF
3487 #define HAVE_DECL_BCOPY 1
3489 cat >> confdefs.h
<<EOF
3490 #define HAVE_DECL_BZERO 1
3492 cat >> confdefs.h
<<EOF
3493 #define HAVE_DECL_BCMP 1
3496 cat >> confdefs.h
<<EOF
3497 #define HAVE_DECL_INDEX 1
3499 cat >> confdefs.h
<<EOF
3500 #define HAVE_DECL_RINDEX 1
3502 cat >> confdefs.h
<<EOF
3503 #define HAVE_DECL_GETENV 1
3505 cat >> confdefs.h
<<EOF
3506 #define HAVE_DECL_ATOL 1
3508 cat >> confdefs.h
<<EOF
3509 #define HAVE_DECL_SBRK 1
3511 cat >> confdefs.h
<<EOF
3512 #define HAVE_DECL_ABORT 1
3514 cat >> confdefs.h
<<EOF
3515 #define HAVE_DECL_ATOF 1
3517 cat >> confdefs.h
<<EOF
3518 #define HAVE_DECL_GETCWD 1
3520 cat >> confdefs.h
<<EOF
3521 #define HAVE_DECL_GETWD 1
3524 cat >> confdefs.h
<<EOF
3525 #define HAVE_DECL_STRSIGNAL 1
3527 cat >> confdefs.h
<<EOF
3528 #define HAVE_DECL_PUTC_UNLOCKED 1
3530 cat >> confdefs.h
<<EOF
3531 #define HAVE_DECL_FPUTS_UNLOCKED 1
3533 cat >> confdefs.h
<<EOF
3534 #define HAVE_DECL_STRSTR 1
3536 cat >> confdefs.h
<<EOF
3537 #define HAVE_DECL_ENVIRON 1
3540 cat >> confdefs.h
<<EOF
3541 #define HAVE_DECL_MALLOC 1
3543 cat >> confdefs.h
<<EOF
3544 #define HAVE_DECL_REALLOC 1
3546 cat >> confdefs.h
<<EOF
3547 #define HAVE_DECL_CALLOC 1
3549 cat >> confdefs.h
<<EOF
3550 #define HAVE_DECL_FREE 1
3552 cat >> confdefs.h
<<EOF
3553 #define HAVE_DECL_BASENAME 1
3555 cat >> confdefs.h
<<EOF
3556 #define HAVE_DECL_GETOPT 1
3561 for ac_func
in getrlimit setrlimit getrusage
3563 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3564 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3565 echo "configure:3566: checking whether $ac_func is declared" >&5
3566 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 cat > conftest.
$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 #include "gansidecl.h"
3574 #ifdef HAVE_SYS_RESOURCE_H
3575 #include <sys/resource.h>
3581 char *(*pfn) = (char *(*)) $ac_func ;
3585 if { (eval echo configure
:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 eval "gcc_cv_have_decl_$ac_func=yes"
3589 echo "configure: failed program was:" >&5
3590 cat conftest.
$ac_ext >&5
3592 eval "gcc_cv_have_decl_$ac_func=no"
3597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3598 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3599 #define $ac_tr_decl 1
3603 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3604 #define $ac_tr_decl 0
3610 if test x
= y
; then
3611 cat >> confdefs.h
<<EOF
3612 #define HAVE_DECL_GETRLIMIT 1
3614 cat >> confdefs.h
<<EOF
3615 #define HAVE_DECL_SETRLIMIT 1
3617 cat >> confdefs.h
<<EOF
3618 #define HAVE_DECL_GETRUSAGE 1
3623 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3624 CFLAGS
="$saved_CFLAGS"
3626 # mkdir takes a single argument on some systems.
3627 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3628 echo "configure:3629: checking if mkdir takes one argument" >&5
3629 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 cat > conftest.
$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3636 #include <sys/types.h>
3637 #ifdef HAVE_SYS_STAT_H
3638 # include <sys/stat.h>
3640 #ifdef HAVE_UNISTD_H
3641 # include <unistd.h>
3643 #ifdef HAVE_DIRECT_H
3644 # include <direct.h>
3650 if { (eval echo configure
:3651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3652 gcc_cv_mkdir_takes_one_arg
=no
3654 echo "configure: failed program was:" >&5
3655 cat conftest.
$ac_ext >&5
3657 gcc_cv_mkdir_takes_one_arg
=yes
3662 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3663 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3664 cat >> confdefs.h
<<\EOF
3665 #define MKDIR_TAKES_ONE_ARG 1
3679 build_install_headers_dir
=install-headers-tar
3684 host_truncate_target
=
3687 # Decode the host machine, then the target machine.
3688 # For the host machine, we save the xm_file variable as host_xm_file;
3689 # then we decode the target machine and forget everything else
3690 # that came from the host machine.
3691 for machine
in $build $host $target; do
3705 # Set this to force installation and use of collect2.
3707 # Set this to override the default target model.
3709 # Set this to control how the header file directory is installed.
3710 install_headers_dir
=install-headers-tar
3711 # Set this to a non-empty list of args to pass to cpp if the target
3712 # wants its .md file passed through cpp.
3714 # Set this if directory names should be truncated to 14 characters.
3716 # Set this if gdb needs a dir command with `dirname $out_file`
3717 gdb_needs_out_file_path
=
3718 # Set this if the build machine requires executables to have a
3721 # Set this to control which thread package will be used.
3723 # Reinitialize these from the flag values every loop pass, since some
3724 # configure entries modify them.
3726 gnu_ld
="$gnu_ld_flag"
3727 enable_threads
=$enable_threads_flag
3729 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3730 # updated in each machine entry.
3732 cpu_type
=`echo $machine | sed 's/-.*$//'`
3772 tm_file
=${cpu_type}/${cpu_type}.h
3773 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3774 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3776 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3778 # On a.out targets, we need to use collect2.
3785 # Common parts for linux and openbsd systems
3788 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3791 tm_file
=${cpu_type}/openbsd.h
3792 tmake_file
="t-libc-ok t-openbsd"
3793 # avoid surprises, always provide an xm-openbsd file
3794 xm_file
=${cpu_type}/xm-openbsd.h
3795 # don't depend on processor x-fragments as well
3797 if test x
$enable_threads = xyes
; then
3799 tmake_file
="${tmake_file} t-openbsd-thread"
3805 # Support site-specific machine types.
3807 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3808 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3809 xm_file
=${cpu_type}/xm-
$rest.h
3810 tm_file
=${cpu_type}/$rest.h
3811 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3812 then xmake_file
=${cpu_type}/x-
$rest; \
3815 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3816 then tmake_file
=${cpu_type}/t-
$rest; \
3822 a29k-
*-bsd* | a29k-
*-sym1*)
3823 tm_file
="${tm_file} a29k/unix.h"
3825 xmake_file
=a29k
/x-unix
3828 a29k-
*-udi | a29k-
*-coff)
3829 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3830 tmake_file
=a29k
/t-a29kbare
3833 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3834 tmake_file
=a29k
/t-vx29k
3835 extra_parts
="crtbegin.o crtend.o"
3836 thread_file
='vxworks'
3838 a29k-
*-*) # Default a29k environment.
3842 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3844 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3845 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3847 # GAS + IEEE_CONFORMANT
3848 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3850 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3851 xmake_file
="x-interix alpha/t-pe"
3852 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3853 if test x
$enable_threads = xyes
; then
3856 if test x
$stabs = xyes
; then
3857 tm_file
="${tm_file} dbxcoff.h"
3859 #prefix='$$INTERIX_ROOT'/usr/contrib
3860 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3862 alpha
*-*-linux*ecoff
*)
3863 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3864 target_cpu_default
="MASK_GAS"
3865 tmake_file
="alpha/t-alpha alpha/t-ieee"
3870 alpha
*-*-linux*libc1
*)
3871 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3872 target_cpu_default
="MASK_GAS"
3873 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3874 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3877 if test x
$enable_threads = xyes
; then
3882 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3883 target_cpu_default
="MASK_GAS"
3884 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3885 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3888 if test x
$enable_threads = xyes
; then
3893 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3894 target_cpu_default
="MASK_GAS"
3895 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3896 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3902 # default x-alpha is only appropriate for dec-osf.
3903 target_cpu_default
="MASK_GAS"
3904 tmake_file
="alpha/t-alpha alpha/t-ieee"
3908 if test x
$stabs = xyes
3910 tm_file
="${tm_file} dbx.h"
3912 if test x
$gas != xyes
3914 extra_passes
="mips-tfile mips-tdump"
3917 tmake_file
="alpha/t-alpha alpha/t-ieee"
3920 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3923 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3926 tm_file
="${tm_file} alpha/osf.h"
3927 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3928 # a broken tar, so we use cpio instead.
3929 install_headers_dir
=install-headers-cpio
3932 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3936 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3937 target_cpu_default
=MASK_SUPPORT_ARCH
3942 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3943 tmake_file
="alpha/t-alpha alpha/t-ieee"
3946 extra_passes
="mips-tfile mips-tdump"
3949 thread_file
='vxworks'
3952 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3953 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3954 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3955 xmake_file
=winnt
/x-winnt
3956 extra_host_objs
=oldnames.o
3957 extra_gcc_objs
="spawnv.o oldnames.o"
3958 if test x
$gnu_ld != xyes
3960 extra_programs
=ld.exe
3962 if test x
$enable_threads = xyes
; then
3968 xm_file
="${xm_file} alpha/xm-vms.h"
3969 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3972 extra_parts
="crtinit.o crtfini.o"
3974 arm-
*-coff* | armel-
*-coff*)
3976 tmake_file
=arm
/t-arm-coff
3980 tmake_file
=arm
/t-arm-coff
3981 thread_file
='vxworks'
3983 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3984 tm_file
=arm
/riscix1-1.h
3987 arm-
*-riscix*) # Acorn RISC machine
3988 if test x
$gas = xyes
3990 tm_file
=arm
/rix-gas.h
3992 tm_file
=arm
/riscix.h
3994 xmake_file
=arm
/x-riscix
3995 tmake_file
=arm
/t-riscix
3998 arm-semi-aout | armel-semi-aout
)
4000 tmake_file
=arm
/t-semi
4002 arm-semi-aof | armel-semi-aof
)
4003 tm_file
=arm
/semiaof.h
4004 tmake_file
=arm
/t-semiaof
4007 tm_file
=arm
/netbsd.h
4008 tmake_file
="t-netbsd arm/t-netbsd"
4011 arm
*-*-linux*aout
*) # ARM GNU/Linux with a.out
4014 tm_file
=arm
/linux-aout.h
4015 tmake_file
=arm
/t-linux
4018 arm
*-*-linux*oldld
*) # ARM GNU/Linux with old ELF linker
4019 xm_file
=arm
/xm-linux.h
4021 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
4024 tm_file
="arm/linux-elf26.h $tm_file"
4027 tmake_file
="t-linux arm/t-linux"
4028 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4030 case x
${enable_threads} in
4031 x | xyes | xpthreads | xposix
)
4036 arm
*-*-linux*) # ARM GNU/Linux with ELF
4037 xm_file
=arm
/xm-linux.h
4039 tm_file
="arm/linux-elf.h"
4042 tm_file
="arm/linux-elf26.h $tm_file"
4045 tmake_file
="t-linux arm/t-linux"
4046 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4048 case x
${enable_threads} in
4049 x | xyes | xpthreads | xposix
)
4054 arm
*-*-uclinux*) # ARM ucLinux
4055 tm_file
=arm
/uclinux-elf.h
4056 tmake_file
=arm
/t-arm-elf
4060 tmake_file
=arm
/t-arm-aout
4063 tm_file
=arm
/ecos-elf.h
4064 tmake_file
=arm
/t-arm-elf
4067 tm_file
=arm
/unknown-elf.h
4068 tmake_file
=arm
/t-arm-elf
4071 tm_file
=arm
/conix-elf.h
4072 tmake_file
=arm
/t-arm-elf
4075 tm_file
=arm
/unknown-elf-oabi.h
4076 tmake_file
=arm
/t-arm-elf
4085 c1-convex-
*) # Convex C1
4086 target_cpu_default
=1
4089 c2-convex-
*) # Convex C2
4090 target_cpu_default
=2
4094 target_cpu_default
=4
4098 target_cpu_default
=8
4102 target_cpu_default
=16
4107 tmake_file
=c4x
/t-c4x
4109 clipper-intergraph-clix
*)
4110 tm_file
="${tm_file} svr3.h clipper/clix.h"
4111 xm_file
=clipper
/xm-clix.h
4112 xmake_file
=clipper
/x-clix
4113 extra_headers
=va-clipper.h
4114 extra_parts
="crtbegin.o crtend.o"
4115 install_headers_dir
=install-headers-cpio
4126 tm_file
="fr30/fr30.h"
4127 tmake_file
=fr30
/t-fr30
4128 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4130 # This hasn't been upgraded to GCC 2.
4131 # fx80-alliant-*) # Alliant FX/80
4137 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4138 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4139 tmake_file
="t-linux pa/t-linux"
4140 extra_parts
="crtbegin.o crtend.o"
4143 if test x
$enable_threads = xyes
; then
4148 target_cpu_default
="MASK_PA_11"
4149 tmake_file
=pa
/t-openbsd
4152 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4153 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4154 xm_file
=pa
/xm-papro.h
4158 target_cpu_default
="MASK_PA_11"
4159 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4163 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4164 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4165 xm_file
=pa
/xm-papro.h
4169 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4173 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4174 target_cpu_default
="MASK_PA_11"
4178 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4182 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4183 xm_file
=pa
/xm-pahpux.h
4184 xmake_file
=pa
/x-pa-hpux
4185 if test x
$gas = xyes
4187 tm_file
="${tm_file} pa/gas.h"
4189 install_headers_dir
=install-headers-cpio
4192 hppa1.0
-*-hpux8.0
[0-2]*)
4193 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4194 xm_file
=pa
/xm-pahpux.h
4195 xmake_file
=pa
/x-pa-hpux
4196 if test x
$gas = xyes
4198 tm_file
="${tm_file} pa/pa-gas.h"
4200 tm_file
="pa/pa-oldas.h ${tm_file}"
4202 install_headers_dir
=install-headers-cpio
4205 hppa1.1
-*-hpux8.0
[0-2]*)
4206 target_cpu_default
="MASK_PA_11"
4207 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4208 xm_file
=pa
/xm-pahpux.h
4209 xmake_file
=pa
/x-pa-hpux
4210 if test x
$gas = xyes
4212 tm_file
="${tm_file} pa/pa-gas.h"
4214 tm_file
="pa/pa-oldas.h ${tm_file}"
4216 install_headers_dir
=install-headers-cpio
4220 target_cpu_default
="MASK_PA_11"
4221 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4222 xm_file
=pa
/xm-pahpux.h
4223 xmake_file
=pa
/x-pa-hpux
4224 if test x
$gas = xyes
4226 tm_file
="${tm_file} pa/pa-gas.h"
4228 install_headers_dir
=install-headers-cpio
4232 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4233 xm_file
=pa
/xm-pahpux.h
4234 xmake_file
=pa
/x-pa-hpux
4235 if test x
$gas = xyes
4237 tm_file
="${tm_file} pa/pa-gas.h"
4239 install_headers_dir
=install-headers-cpio
4242 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4243 target_cpu_default
="MASK_PA_11"
4244 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4246 xm_file
=pa
/xm-pahpux.h
4247 xmake_file
=pa
/x-pa-hpux
4249 if test x
$gas = xyes
4251 tm_file
="${tm_file} pa/pa-gas.h"
4253 if test x
$enable_threads = x
; then
4254 enable_threads
=$have_pthread_h
4256 case x
${enable_threads} in
4258 tmake_file
="${tmake_file} pa/t-dce-thr"
4261 install_headers_dir
=install-headers-cpio
4265 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4267 xm_file
=pa
/xm-pahpux.h
4268 xmake_file
=pa
/x-pa-hpux
4270 if test x
$gas = xyes
4272 tm_file
="${tm_file} pa/pa-gas.h"
4274 if test x
$enable_threads = x
; then
4275 enable_threads
=$have_pthread_h
4277 case x
${enable_threads} in
4279 tmake_file
="${tmake_file} pa/t-dce-thr"
4282 install_headers_dir
=install-headers-cpio
4286 target_cpu_default
="MASK_PA_11"
4287 xm_file
=pa
/xm-pa64hpux.h
4288 xmake_file
=pa
/x-pa-hpux
4290 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"
4292 tmake_file
=pa
/t-pa64
4293 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4297 tm_file
="${tm_file} pa/pa-gas.h"
4299 # if [[ x$enable_threads = x ]]; then
4300 # enable_threads=$have_pthread_h
4302 # if [[ x$enable_threads = xyes ]]; then
4304 # tmake_file="${tmake_file} pa/t-dce-thr"
4306 install_headers_dir
=install-headers-cpio
4309 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4310 target_cpu_default
="MASK_PA_11"
4311 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4313 xm_file
=pa
/xm-pahpux.h
4314 xmake_file
=pa
/x-pa-hpux
4316 if test x
$gas = xyes
4318 tm_file
="${tm_file} pa/pa-gas.h"
4320 # if test x$enable_threads = x; then
4321 # enable_threads=$have_pthread_h
4323 # if test x$enable_threads = xyes; then
4325 # tmake_file="${tmake_file} pa/t-dce-thr"
4327 install_headers_dir
=install-headers-cpio
4331 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4333 xm_file
=pa
/xm-pahpux.h
4334 xmake_file
=pa
/x-pa-hpux
4335 if test x
$gas = xyes
4337 tm_file
="${tm_file} pa/pa-gas.h"
4339 # if test x$enable_threads = x; then
4340 # enable_threads=$have_pthread_h
4342 # if test x$enable_threads = xyes; then
4344 # tmake_file="${tmake_file} pa/t-dce-thr"
4346 install_headers_dir
=install-headers-cpio
4349 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4350 target_cpu_default
="MASK_PA_11"
4351 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4352 xm_file
=pa
/xm-pahpux.h
4353 xmake_file
=pa
/x-pa-hpux
4354 if test x
$gas = xyes
4356 tm_file
="${tm_file} pa/pa-gas.h"
4358 install_headers_dir
=install-headers-cpio
4362 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4363 xm_file
=pa
/xm-pahpux.h
4364 xmake_file
=pa
/x-pa-hpux
4365 if test x
$gas = xyes
4367 tm_file
="${tm_file} pa/pa-gas.h"
4369 install_headers_dir
=install-headers-cpio
4372 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4373 target_cpu_default
="MASK_PA_11"
4374 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4375 xm_file
=pa
/xm-pahpux.h
4376 xmake_file
=pa
/x-pa-hpux
4377 if test x
$gas = xyes
4379 tm_file
="${tm_file} pa/pa-gas.h"
4381 install_headers_dir
=install-headers-cpio
4385 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4386 xm_file
=pa
/xm-pahpux.h
4387 xmake_file
=pa
/x-pa-hpux
4388 if test x
$gas = xyes
4390 tm_file
="${tm_file} pa/pa-gas.h"
4392 install_headers_dir
=install-headers-cpio
4396 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4397 target_cpu_default
="MASK_PA_11"
4401 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4402 xm_file
=pa
/xm-pampeix.h
4403 xmake_file
=pa
/x-pa-mpeix
4404 echo "You must use gas. Assuming it is already installed."
4405 install_headers_dir
=install-headers-tar
4408 i370-
*-opened*) # IBM 360/370/390 Architecture
4409 xm_file
=i370
/xm-oe.h
4411 xmake_file
=i370
/x-oe
4412 tmake_file
=i370
/t-oe
4415 xm_file
=i370
/xm-mvs.h
4417 tmake_file
=i370
/t-mvs
4420 xm_file
="xm-linux.h i370/xm-linux.h"
4422 tm_file
="i370/linux.h ${tm_file}"
4423 tmake_file
="t-linux i370/t-linux"
4424 # broken_install=yes
4425 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4426 # extra_parts="crtbegin.o crtend.o"
4430 if test x
$enable_threads = xyes
; then
4435 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4436 tm_file
=i386
/i386elf.h
4437 tmake_file
=i386
/t-i386elf
4440 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4441 if test x
$gas = xyes
4443 tm_file
=i386
/aix386.h
4444 extra_parts
="crtbegin.o crtend.o"
4445 tmake_file
=i386
/t-crtstuff
4447 tm_file
=i386
/aix386ng.h
4450 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4452 xmake_file
=i386
/x-aix
4454 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4455 xm_file
="xm-alloca.h ${xm_file}"
4456 xm_defines
="USG POSIX SMALL_ARG_MAX"
4457 xmake_file
=i386
/x-ncr3000
4458 if test x
$stabs = xyes
-a x
$gas = xyes
4460 tm_file
=i386
/sysv4gdb.h
4462 tm_file
=i386
/sysv4.h
4464 extra_parts
="crtbegin.o crtend.o"
4465 tmake_file
=i386
/t-crtpic
4469 xm_file
=i386
/xm-next.h
4470 tmake_file
=i386
/t-next
4471 xmake_file
=i386
/x-next
4472 extra_objs
=nextstep.o
4473 extra_parts
="crtbegin.o crtend.o"
4474 if test x
$enable_threads = xyes
; then
4478 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4480 if test x
$gas = xyes
4482 tm_file
=i386
/seq-gas.h
4484 tm_file
=i386
/sequent.h
4487 i
[34567]86-sequent-ptx1*)
4488 xm_defines
="USG SVR3"
4489 xmake_file
=i386
/x-sysv3
4490 tm_file
=i386
/seq-sysv3.h
4491 tmake_file
=i386
/t-crtstuff
4492 extra_parts
="crtbegin.o crtend.o"
4493 install_headers_dir
=install-headers-cpio
4495 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4496 xm_defines
="USG SVR3"
4497 xmake_file
=i386
/x-sysv3
4498 tm_file
=i386
/seq2-sysv3.h
4499 tmake_file
=i386
/t-crtstuff
4500 extra_parts
="crtbegin.o crtend.o"
4501 install_headers_dir
=install-headers-cpio
4503 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4504 xm_file
="xm-alloca.h ${xm_file}"
4505 xm_defines
="USG POSIX SMALL_ARG_MAX"
4507 tm_file
=i386
/ptx4-i.h
4509 extra_parts
="crtbegin.o crtend.o"
4510 install_headers_dir
=install-headers-cpio
4512 i386-sun-sunos
*) # Sun i386 roadrunner
4517 i
[34567]86-wrs-vxworks*)
4518 tm_file
=i386
/vxi386.h
4519 tmake_file
=i386
/t-i386bare
4520 thread_file
='vxworks'
4523 tm_file
=i386
/i386-aout.h
4524 tmake_file
=i386
/t-i386bare
4526 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4527 xm_file
=i386
/xm-beos.h
4528 tmake_file
='i386/t-beos i386/t-crtpic'
4529 tm_file
=i386
/beos-elf.h
4530 xmake_file
=i386
/x-beos
4531 extra_parts
='crtbegin.o crtend.o'
4533 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4534 tm_file
=i386
/bsd386.h
4535 # tmake_file=t-libc-ok
4538 tm_file
=i386
/386bsd.h
4539 # tmake_file=t-libc-ok
4540 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4543 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4544 tm_file
="i386/freebsd.h i386/perform.h"
4545 tmake_file
=t-freebsd
4547 i
[34567]86-*-freebsd*)
4548 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4549 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4550 tmake_file
=t-freebsd
4554 case x
${enable_threads} in
4555 xyes | xpthreads | xposix
)
4557 tmake_file
="${tmake_file} t-freebsd-thread"
4561 i
[34567]86-*-netbsd*)
4562 tm_file
=i386
/netbsd.h
4566 i
[34567]86-*-openbsd*)
4567 # we need collect2 until our bug is fixed...
4571 tm_file
=i386
/i386-coff.h
4572 tmake_file
=i386
/t-i386bare
4574 i
[34567]86-*-isc*) # 80386 running ISC system
4575 xm_file
="${xm_file} i386/xm-isc.h"
4576 xm_defines
="USG SVR3"
4578 i
[34567]86-*-isc[34]*)
4579 xmake_file
=i386
/x-isc3
4582 xmake_file
=i386
/x-isc
4585 if test x
$gas = xyes
-a x
$stabs = xyes
4587 tm_file
=i386
/iscdbx.h
4588 tmake_file
=i386
/t-svr3dbx
4589 extra_parts
="svr3.ifile svr3z.ifile"
4591 tm_file
=i386
/isccoff.h
4592 tmake_file
=i386
/t-crtstuff
4593 extra_parts
="crtbegin.o crtend.o"
4595 tmake_file
="$tmake_file i386/t-i386bare"
4596 install_headers_dir
=install-headers-cpio
4598 i
[34567]86-*-linux*oldld
*) # Intel 80386's running GNU/Linux
4600 xmake_file
=x-linux-aout
4601 tmake_file
="t-linux-aout i386/t-crtstuff"
4602 tm_file
=i386
/linux-oldld.h
4606 i
[34567]86-*-linux*aout
*) # Intel 80386's running GNU/Linux
4607 xmake_file
=x-linux-aout
4608 tmake_file
="t-linux-aout i386/t-crtstuff"
4609 tm_file
=i386
/linux-aout.h
4613 i
[34567]86-*-linux*libc1
) # Intel 80386's running GNU/Linux
4614 # GNU/Linux C library 5
4616 tm_file
=i386
/linux.h
4617 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4618 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4621 if test x
$enable_threads = xyes
; then
4622 thread_file
='single'
4625 i
[34567]86-*-linux*) # Intel 80386's running GNU/Linux
4626 # aka GNU/Linux C library 6
4628 tm_file
=i386
/linux.h
4629 tmake_file
="t-linux i386/t-crtstuff"
4630 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4633 if test x
$enable_threads = xyes
; then
4640 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4641 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4644 i
[34567]86-pc-msdosdjgpp*)
4645 xm_file
=i386
/xm-djgpp.h
4646 tm_file
=i386
/djgpp.h
4647 tmake_file
=i386
/t-djgpp
4648 xmake_file
=i386
/x-djgpp
4653 case $host in *pc-msdosdjgpp
*)
4658 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4660 tmake_file
=t-libc-ok
4664 i
[34567]86-*-lynxos*)
4665 if test x
$gas = xyes
4669 tm_file
=i386
/lynx-ng.h
4671 xm_file
=i386
/xm-lynx.h
4672 tmake_file
=i386
/t-i386bare
4677 # tmake_file=t-libc-ok
4680 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4681 if test x
$elf = xyes
4683 tm_file
=i386
/osfelf.h
4686 tm_file
=i386
/osfrose.h
4689 xm_file
="i386/xm-osf.h ${xm_file}"
4690 xmake_file
=i386
/x-osfrose
4691 tmake_file
=i386
/t-osf
4692 extra_objs
=halfpic.o
4694 i
[34567]86-go32-rtems*)
4696 xm_file
=i386
/xm-go32.h
4697 tm_file
=i386
/go32-rtems.h
4698 tmake_file
="i386/t-go32 t-rtems"
4700 i
[34567]86-*-rtemscoff*)
4702 tm_file
=i386
/rtems.h
4703 tmake_file
="i386/t-i386bare t-rtems"
4705 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4707 tm_file
=i386
/rtemself.h
4708 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4709 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4711 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4712 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4713 xm_defines
="USG SVR3"
4714 xmake_file
=i386
/x-sco5
4715 install_headers_dir
=install-headers-cpio
4717 if test x
$gas = xyes
4719 tm_file
="i386/sco5gas.h ${tm_file}"
4720 tmake_file
=i386
/t-sco5gas
4722 tmake_file
=i386
/t-sco5
4724 tmake_file
="$tmake_file i386/t-i386bare"
4725 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4727 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4728 xm_file
="${xm_file} i386/xm-sco.h"
4729 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4730 xmake_file
=i386
/x-sco4
4731 install_headers_dir
=install-headers-cpio
4732 if test x
$stabs = xyes
4734 tm_file
=i386
/sco4dbx.h
4735 tmake_file
=i386
/t-svr3dbx
4736 extra_parts
="svr3.ifile svr3z.rfile"
4739 tmake_file
=i386
/t-crtstuff
4740 extra_parts
="crtbegin.o crtend.o"
4742 tmake_file
="$tmake_file i386/t-i386bare"
4743 # The default EAFS filesystem supports long file names.
4744 # Truncating the target makes $host != $target which
4745 # makes gcc think it is doing a cross-compile.
4746 # truncate_target=yes
4748 i
[34567]86-*-sco*) # 80386 running SCO system
4749 xm_file
=i386
/xm-sco.h
4750 xmake_file
=i386
/x-sco
4751 install_headers_dir
=install-headers-cpio
4752 if test x
$stabs = xyes
4754 tm_file
=i386
/scodbx.h
4755 tmake_file
=i386
/t-svr3dbx
4756 extra_parts
="svr3.ifile svr3z.rfile"
4759 extra_parts
="crtbegin.o crtend.o"
4760 tmake_file
=i386
/t-crtstuff
4762 tmake_file
="$tmake_file i386/t-i386bare"
4765 i
[34567]86-*-solaris2*)
4766 xm_file
="xm-alloca.h ${xm_file}"
4767 xm_defines
="USG POSIX SMALL_ARG_MAX"
4769 if test x
$gas = xyes
; then
4770 # Only needed if gas does not support -s
4771 tm_file
="i386/sol2gas.h ${tm_file}"
4773 tmake_file
="i386/t-i386bare i386/t-sol2"
4774 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4776 if test x
${enable_threads} = x
; then
4777 enable_threads
=$have_pthread_h
4778 if test x
${enable_threads} = x
; then
4779 enable_threads
=$have_thread_h
4782 if test x
${enable_threads} = xyes
; then
4783 if test x
${have_pthread_h} = xyes
; then
4786 thread_file
='solaris'
4790 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4791 xm_file
="xm-alloca.h ${xm_file}"
4792 xm_defines
="USG POSIX"
4793 tm_file
=i386
/sysv5.h
4794 if test x
$stabs = xyes
4796 tm_file
="${tm_file} dbx.h"
4798 tmake_file
="i386/t-i386bare i386/t-crtpic"
4800 extra_parts
="crtbegin.o crtend.o"
4801 if test x
$enable_threads = xyes
; then
4805 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4806 xm_file
="xm-alloca.h ${xm_file}"
4807 xm_defines
="USG POSIX SMALL_ARG_MAX"
4808 tm_file
=i386
/sysv4.h
4809 if test x
$stabs = xyes
4811 tm_file
="${tm_file} dbx.h"
4813 tmake_file
="i386/t-i386bare i386/t-crtpic"
4815 extra_parts
="crtbegin.o crtend.o"
4817 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4818 xm_file
="xm-alloca.h ${xm_file}"
4819 xm_defines
="USG POSIX"
4821 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4823 extra_parts
="crtbegin.o crtend.o"
4824 install_headers_dir
=install-headers-cpio
4826 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4828 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4829 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4830 if test x
$stabs = xyes
4832 tm_file
=i386
/osf1elfgdb.h
4834 tm_file
=i386
/osf1elf.h
4836 tmake_file
=i386
/t-osf1elf
4837 xmake_file
=i386
/x-osf1elf
4838 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4840 i
[34567]86-*-sysv*) # Intel 80386's running system V
4841 xm_defines
="USG SVR3"
4842 xmake_file
=i386
/x-sysv3
4843 if test x
$gas = xyes
4845 if test x
$stabs = xyes
4847 tm_file
=i386
/svr3dbx.h
4848 tmake_file
=i386
/t-svr3dbx
4849 extra_parts
="svr3.ifile svr3z.rfile"
4851 tm_file
=i386
/svr3gas.h
4852 extra_parts
="crtbegin.o crtend.o"
4853 tmake_file
=i386
/t-crtstuff
4856 tm_file
=i386
/sysv3.h
4857 extra_parts
="crtbegin.o crtend.o"
4858 tmake_file
=i386
/t-crtstuff
4860 tmake_file
="$tmake_file i386/t-crtpic"
4862 i386-
*-vsta) # Intel 80386's running VSTa kernel
4863 xm_file
="${xm_file} i386/xm-vsta.h"
4865 tmake_file
=i386
/t-vsta
4866 xmake_file
=i386
/x-vsta
4869 xm_file
="${xm_file} i386/xm-cygwin.h"
4870 tmake_file
=i386
/t-cygwin
4871 tm_file
=i386
/win32.h
4872 xmake_file
=i386
/x-cygwin
4874 if test x
$enable_threads = xyes
; then
4879 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4880 xm_file
="${xm_file} i386/xm-cygwin.h"
4881 tmake_file
=i386
/t-cygwin
4882 tm_file
=i386
/cygwin.h
4883 xmake_file
=i386
/x-cygwin
4885 if test x
$enable_threads = xyes
; then
4890 i
[34567]86-*-mingw32*)
4891 tm_file
=i386
/mingw32.h
4892 xm_file
="${xm_file} i386/xm-mingw32.h"
4893 tmake_file
="i386/t-cygwin i386/t-mingw32"
4895 xmake_file
=i386
/x-cygwin
4896 if test x
$enable_threads = xyes
; then
4903 *minwg32crt
* |
*mingw32
*)
4904 tm_file
="${tm_file} i386/crtdll.h"
4910 xm_file
="${xm_file} i386/xm-uwin.h"
4911 xm_defines
="USG NO_STAB_H"
4912 tmake_file
="i386/t-cygwin i386/t-uwin"
4914 xmake_file
=i386
/x-cygwin
4915 if test x
$enable_threads = xyes
; then
4920 i
[34567]86-*-interix*)
4921 tm_file
="i386/i386-interix.h interix.h"
4922 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4924 tmake_file
="i386/t-interix"
4925 extra_objs
=interix.o
4926 xmake_file
=x-interix
4927 if test x
$enable_threads = xyes
; then
4930 if test x
$stabs = xyes
; then
4931 tm_file
="${tm_file} dbxcoff.h"
4934 i
[34567]86-*-winnt3*)
4935 tm_file
=i386
/win-nt.h
4936 out_file
=i386
/i386.c
4937 xm_file
="xm-winnt.h ${xm_file}"
4938 xmake_file
=winnt
/x-winnt
4939 tmake_file
=i386
/t-winnt
4940 extra_host_objs
="winnt.o oldnames.o"
4941 extra_gcc_objs
="spawnv.o oldnames.o"
4942 if test x
$gnu_ld != xyes
4944 extra_programs
=ld.exe
4946 if test x
$enable_threads = xyes
; then
4950 i
[34567]86-dg-dgux*)
4951 xm_file
="xm-alloca.h ${xm_file}"
4952 xm_defines
="USG POSIX"
4953 out_file
=i386
/dgux.c
4955 tmake_file
=i386
/t-dgux
4956 xmake_file
=i386
/x-dgux
4957 install_headers_dir
=install-headers-cpio
4959 i860-alliant-
*) # Alliant FX/2800
4960 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4961 xm_file
="${xm_file}"
4962 xmake_file
=i860
/x-fx2800
4963 tmake_file
=i860
/t-fx2800
4964 extra_parts
="crtbegin.o crtend.o"
4967 tm_file
="${tm_file} i860/bsd.h"
4968 if test x
$gas = xyes
4970 tm_file
="${tm_file} i860/bsd-gas.h"
4975 tm_file
="${tm_file} i860/mach.h"
4976 tmake_file
=t-libc-ok
4978 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4979 tm_file
="${tm_file} svr3.h i860/paragon.h"
4980 xm_defines
="USG SVR3"
4984 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4985 xm_defines
="USG SVR3"
4986 xmake_file
=i860
/x-sysv3
4987 extra_parts
="crtbegin.o crtend.o"
4990 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4991 xm_defines
="USG SVR3"
4992 xmake_file
=i860
/x-sysv4
4994 extra_parts
="crtbegin.o crtend.o"
4996 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4997 tm_file
="${tm_file} i960/vx960.h"
4998 tmake_file
=i960
/t-vxworks960
5000 thread_file
='vxworks'
5002 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
5003 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
5004 tmake_file
=i960
/t-vxworks960
5006 thread_file
='vxworks'
5009 tm_file
="${tm_file} i960/vx960.h"
5010 tmake_file
=i960
/t-vxworks960
5012 thread_file
='vxworks'
5015 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
5016 tmake_file
=i960
/t-960bare
5020 tmake_file
="i960/t-960bare t-rtems"
5021 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
5024 i960-
*-*) # Default i960 environment.
5029 tmake_file
="ia64/t-ia64"
5030 target_cpu_default
="0"
5031 if test x
$gas = xyes
5033 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
5035 if test x
$gnu_ld = xyes
5037 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
5042 tm_file
=ia64
/linux.h
5043 tmake_file
="t-linux ia64/t-ia64"
5044 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
5045 if test x
$enable_threads = xyes
; then
5051 extra_parts
="crtinit.o crtfini.o"
5053 # m68hc11 and m68hc12 share the same machine description.
5054 m68hc11-
*-*|m6811-
*-*)
5055 tm_file
="m68hc11/m68hc11.h"
5056 xm_file
="m68hc11/xm-m68hc11.h"
5057 tm_p_file
="m68hc11/m68hc11-protos.h"
5058 md_file
="m68hc11/m68hc11.md"
5059 out_file
="m68hc11/m68hc11.c"
5060 tmake_file
="m68hc11/t-m68hc11-gas"
5062 m68hc12-
*-*|m6812-
*-*)
5063 tm_file
="m68hc11/m68hc12.h"
5064 tm_p_file
="m68hc11/m68hc11-protos.h"
5065 xm_file
="m68hc11/xm-m68hc11.h"
5066 md_file
="m68hc11/m68hc11.md"
5067 out_file
="m68hc11/m68hc11.c"
5068 tmake_file
="m68hc11/t-m68hc11-gas"
5070 m68000-convergent-sysv
*)
5072 xm_file
="m68k/xm-3b1.h ${xm_file}"
5075 extra_headers
=math-68881.h
5077 m68000-hp-bsd
*) # HP 9000/200 running BSD
5078 tm_file
=m68k
/hp2bsd.h
5079 xmake_file
=m68k
/x-hp2bsd
5081 extra_headers
=math-68881.h
5083 m68000-hp-hpux
*) # HP 9000 series 300
5084 xm_file
="xm-alloca.h ${xm_file}"
5086 if test x
$gas = xyes
5088 xmake_file
=m68k
/x-hp320g
5089 tm_file
=m68k
/hp310g.h
5091 xmake_file
=m68k
/x-hp320
5092 tm_file
=m68k
/hp310.h
5094 install_headers_dir
=install-headers-cpio
5096 extra_headers
=math-68881.h
5101 extra_headers
=math-68881.h
5104 tm_file
=m68k
/sun2o4.h
5106 extra_headers
=math-68881.h
5109 xm_file
="m68k/xm-3b1.h ${xm_file}"
5111 if test x
$gas = xyes
5118 extra_headers
=math-68881.h
5120 m68k-apple-aux
*) # Apple Macintosh running A/UX
5121 xm_defines
="USG AUX"
5122 tmake_file
=m68k
/t-aux
5123 install_headers_dir
=install-headers-cpio
5124 extra_headers
=math-68881.h
5125 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5127 if test "$gnu_ld" = yes
5129 tm_file
="${tm_file} m68k/auxgld.h"
5131 tm_file
="${tm_file} m68k/auxld.h"
5133 if test "$gas" = yes
5135 tm_file
="${tm_file} m68k/auxgas.h"
5137 tm_file
="${tm_file} m68k/auxas.h"
5139 tm_file
="${tm_file} m68k/a-ux.h"
5143 tm_file
=m68k
/apollo68.h
5144 xmake_file
=m68k
/x-apollo68
5146 extra_headers
=math-68881.h
5149 m68k-altos-sysv
*) # Altos 3068
5150 if test x
$gas = xyes
5152 tm_file
=m68k
/altos3068.h
5155 echo "The Altos is supported only with the GNU assembler" 1>&2
5158 extra_headers
=math-68881.h
5160 m68k-bull-sysv
*) # Bull DPX/2
5161 if test x
$gas = xyes
5163 if test x
$stabs = xyes
5165 tm_file
=m68k
/dpx2cdbx.h
5167 tm_file
=m68k
/dpx2g.h
5172 xm_file
="xm-alloca.h ${xm_file}"
5174 xmake_file
=m68k
/x-dpx2
5176 extra_headers
=math-68881.h
5178 m68k-atari-sysv4
*) # Atari variant of V.4.
5179 tm_file
=m68k
/atari.h
5180 xm_file
="xm-alloca.h ${xm_file}"
5181 xm_defines
="USG FULL_PROTOTYPES"
5183 extra_parts
="crtbegin.o crtend.o"
5184 extra_headers
=math-68881.h
5187 m68k-motorola-sysv
*)
5188 tm_file
=m68k
/mot3300.h
5189 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5190 if test x
$gas = xyes
5192 xmake_file
=m68k
/x-mot3300-gas
5193 if test x
$gnu_ld = xyes
5195 tmake_file
=m68k
/t-mot3300-gald
5197 tmake_file
=m68k
/t-mot3300-gas
5201 xmake_file
=m68k
/x-mot3300
5202 if test x
$gnu_ld = xyes
5204 tmake_file
=m68k
/t-mot3300-gld
5206 tmake_file
=m68k
/t-mot3300
5210 gdb_needs_out_file_path
=yes
5211 extra_parts
="crt0.o mcrt0.o"
5212 extra_headers
=math-68881.h
5215 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5216 tm_file
=m68k
/tower-as.h
5217 xm_defines
="USG SVR3"
5218 xmake_file
=m68k
/x-tower
5219 extra_parts
="crtbegin.o crtend.o"
5220 extra_headers
=math-68881.h
5223 tm_file
=m68k
/plexus.h
5224 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5227 extra_headers
=math-68881.h
5231 xm_file
="xm-alloca.h ${xm_file}"
5233 extra_headers
=math-68881.h
5236 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5237 xm_defines
="USG unos"
5238 xmake_file
=m68k
/x-crds
5241 extra_headers
=math-68881.h
5243 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5245 xm_file
="xm-alloca.h ${xm_file}"
5246 xm_defines
="USG FULL_PROTOTYPES"
5247 xmake_file
=m68k
/x-amix
5249 extra_parts
="crtbegin.o crtend.o"
5250 extra_headers
=math-68881.h
5254 tm_file
=m68k
/ccur-GAS.h
5255 xmake_file
=m68k
/x-ccur
5256 extra_headers
=math-68881.h
5260 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5261 tm_file
=m68k
/hp3bsd44.h
5262 xmake_file
=m68k
/x-hp3bsd44
5264 extra_headers
=math-68881.h
5267 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5268 tm_file
=m68k
/hp3bsd.h
5270 extra_headers
=math-68881.h
5274 if test x
$with_fp = xno
5276 tm_file
=m68k
/isi-nfp.h
5282 extra_headers
=math-68881.h
5284 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5285 xm_file
="xm-alloca.h ${xm_file}"
5287 if test x
$gas = xyes
5289 xmake_file
=m68k
/x-hp320g
5290 tm_file
=m68k
/hp320g.h
5292 xmake_file
=m68k
/x-hp320
5293 tm_file
=m68k
/hpux7.h
5295 install_headers_dir
=install-headers-cpio
5297 extra_headers
=math-68881.h
5300 m68k-hp-hpux
*) # HP 9000 series 300
5301 xm_file
="xm-alloca.h ${xm_file}"
5303 if test x
$gas = xyes
5305 xmake_file
=m68k
/x-hp320g
5306 tm_file
=m68k
/hp320g.h
5308 xmake_file
=m68k
/x-hp320
5309 tm_file
=m68k
/hp320.h
5311 install_headers_dir
=install-headers-cpio
5313 extra_headers
=math-68881.h
5317 tm_file
=m68k
/sun3mach.h
5319 extra_headers
=math-68881.h
5323 if test x
$gas = xyes
5325 tm_file
=m68k
/news3gas.h
5327 tm_file
=m68k
/news3.h
5330 extra_headers
=math-68881.h
5333 m68k-sony-bsd
* | m68k-sony-newsos
*)
5334 if test x
$gas = xyes
5336 tm_file
=m68k
/newsgas.h
5341 extra_headers
=math-68881.h
5344 m68k-next-nextstep2
*)
5345 tm_file
=m68k
/next21.h
5346 xm_file
="m68k/xm-next.h ${xm_file}"
5347 tmake_file
=m68k
/t-next
5348 xmake_file
=m68k
/x-next
5349 extra_objs
=nextstep.o
5350 extra_headers
=math-68881.h
5354 m68k-next-nextstep
[34]*)
5356 xm_file
="m68k/xm-next.h ${xm_file}"
5357 tmake_file
=m68k
/t-next
5358 xmake_file
=m68k
/x-next
5359 extra_objs
=nextstep.o
5360 extra_parts
="crtbegin.o crtend.o"
5361 extra_headers
=math-68881.h
5363 if test x
$enable_threads = xyes
; then
5368 if test x
$with_fp = xno
5370 tm_file
=m68k
/sun3n3.h
5372 tm_file
=m68k
/sun3o3.h
5376 extra_headers
=math-68881.h
5378 m68k-sun-sunos
*) # For SunOS 4 (the default).
5379 if test x
$with_fp = xno
5381 tm_file
=m68k
/sun3n.h
5387 extra_headers
=math-68881.h
5390 tm_file
=m68k
/vxm68k.h
5391 tmake_file
=m68k
/t-vxworks68
5392 extra_headers
=math-68881.h
5393 thread_file
='vxworks'
5397 tmake_file
=m68k
/t-m68kbare
5398 tm_file
="m68k/m68k-aout.h libgloss.h"
5399 extra_headers
=math-68881.h
5403 tmake_file
=m68k
/t-m68kbare
5404 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5405 extra_headers
=math-68881.h
5408 m68020-
*-elf* | m68k-
*-elf*)
5409 tm_file
="m68k/m68020-elf.h"
5410 xm_file
=m68k
/xm-m68kv.h
5411 tmake_file
=m68k
/t-m68kelf
5412 header_files
=math-68881.h
5415 if test x
$gas = xyes
5419 tm_file
=m68k
/lynx-ng.h
5421 xm_file
=m68k
/xm-lynx.h
5423 tmake_file
=m68k
/t-lynx
5424 extra_headers
=math-68881.h
5428 tm_file
=m68k
/netbsd.h
5435 # we need collect2 until our bug is fixed...
5438 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5439 xm_file
="xm-alloca.h ${xm_file}"
5441 xmake_file
=m68k
/x-m68kv
5442 extra_parts
="crtbegin.o crtend.o"
5443 extra_headers
=math-68881.h
5446 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5447 tm_file
=m68k
/m68kv4.h
5448 xm_file
="xm-alloca.h ${xm_file}"
5451 extra_parts
="crtbegin.o crtend.o"
5452 extra_headers
=math-68881.h
5455 m68k-
*-linux*aout
*) # Motorola m68k's running GNU/Linux
5458 tm_file
=m68k
/linux-aout.h
5459 tmake_file
="t-linux-aout m68k/t-linux-aout"
5460 extra_headers
=math-68881.h
5464 m68k-
*-linux*libc1
) # Motorola m68k's running GNU/Linux
5465 # with ELF format using the
5466 # GNU/Linux C library 5
5468 tm_file
=m68k
/linux.h
5469 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5470 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5471 extra_headers
=math-68881.h
5475 m68k-
*-linux*) # Motorola m68k's running GNU/Linux
5476 # with ELF format using glibc 2
5477 # aka the GNU/Linux C library 6.
5479 tm_file
=m68k
/linux.h
5480 tmake_file
="t-linux m68k/t-linux"
5481 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5482 extra_headers
=math-68881.h
5485 if test x
$enable_threads = xyes
; then
5490 tmake_file
=m68k
/t-m68kbare
5491 tm_file
=m68k
/m68k-psos.h
5492 extra_headers
=math-68881.h
5496 tmake_file
="m68k/t-m68kbare t-rtems"
5497 tm_file
=m68k
/rtems.h
5498 extra_headers
=math-68881.h
5501 m68k-
*-rtemself*|m68k-
*-rtems*)
5502 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5503 tm_file
=m68k
/rtemself.h
5504 extra_headers
=math-68881.h
5510 tm_file
=m88k
/dguxbcs.h
5511 tmake_file
=m88k
/t-dguxbcs
5515 tmake_file
=m88k
/t-dgux
5518 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5519 xmake_file
=m88k
/x-dgux
5520 if test x
$gas = xyes
5522 tmake_file
=m88k
/t-dgux-gas
5525 m88k-dolphin-sysv3
*)
5526 tm_file
=m88k
/dolph.h
5527 extra_parts
="crtbegin.o crtend.o"
5528 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5529 xmake_file
=m88k
/x-dolph
5530 if test x
$gas = xyes
5532 tmake_file
=m88k
/t-m88k-gas
5535 m88k-tektronix-sysv3
)
5536 tm_file
=m88k
/tekXD88.h
5537 extra_parts
="crtbegin.o crtend.o"
5538 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5539 xmake_file
=m88k
/x-tekXD88
5540 if test x
$gas = xyes
5542 tmake_file
=m88k
/t-m88k-gas
5546 tm_file
=m88k
/m88k-aout.h
5549 tm_file
=m88k
/m88k-coff.h
5550 tmake_file
=m88k
/t-bug
5554 extra_parts
="crtbegin.o crtend.o"
5555 if test x
$gas = xyes
5557 tmake_file
=m88k
/t-luna-gas
5559 tmake_file
=m88k
/t-luna
5563 tmake_file
="${tmake_file} m88k/t-luna-gas"
5564 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5565 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5568 tm_file
=m88k
/sysv3.h
5569 extra_parts
="crtbegin.o crtend.o"
5570 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5571 xmake_file
=m88k
/x-sysv3
5572 if test x
$gas = xyes
5574 tmake_file
=m88k
/t-m88k-gas
5578 tm_file
=m88k
/sysv4.h
5579 extra_parts
="crtbegin.o crtend.o"
5580 xmake_file
=m88k
/x-sysv4
5581 tmake_file
=m88k
/t-sysv4
5584 tm_file
=mcore
/mcore-elf.h
5585 tmake_file
=mcore
/t-mcore
5588 tm_file
=mcore
/mcore-pe.h
5589 tmake_file
=mcore
/t-mcore-pe
5591 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5592 if test "x$gnu_ld" = xyes
5594 tm_file
="mips/iris6.h mips/iris6gld.h"
5596 tm_file
=mips
/iris6.h
5598 tmake_file
=mips
/t-iris6
5599 xm_file
=mips
/xm-iris6.h
5600 xmake_file
=mips
/x-iris6
5601 # if test x$enable_threads = xyes; then
5602 # thread_file='irix'
5606 tm_file
="mips/elf.h mips/vxworks.h"
5607 tmake_file
=mips
/t-ecoff
5610 extra_parts
="crtbegin.o crtend.o"
5611 thread_file
='vxworks'
5613 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5614 tm_file
="mips/iris6.h mips/cross64.h"
5616 xm_file
="mips/xm-iris5.h"
5617 xmake_file
=mips
/x-iris
5618 tmake_file
=mips
/t-cross64
5619 # See comment in mips/iris[56].h files.
5621 # if test x$enable_threads = xyes; then
5622 # thread_file='irix'
5626 if test x
$gas = xyes
5628 if test x
$stabs = xyes
5630 tm_file
=mips
/iris5gdb.h
5632 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5635 tm_file
=mips
/sni-svr4.h
5638 xmake_file
=mips
/x-sni-svr4
5639 tmake_file
=mips
/t-mips-gas
5640 if test x
$gnu_ld != xyes
5645 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5646 if test x
$gas = xyes
5648 tm_file
="mips/iris5.h mips/iris5gas.h"
5649 if test x
$stabs = xyes
5651 tm_file
="${tm_file} dbx.h"
5654 tm_file
=mips
/iris5.h
5657 xm_file
="mips/xm-iris5.h"
5658 xmake_file
=mips
/x-iris
5659 # mips-tfile doesn't work yet
5660 tmake_file
=mips
/t-mips-gas
5661 # See comment in mips/iris5.h file.
5663 # if test x$enable_threads = xyes; then
5664 # thread_file='irix'
5667 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5668 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5669 if test x
$stabs = xyes
; then
5670 tm_file
="${tm_file} dbx.h"
5673 xmake_file
=mips
/x-iris
5674 if test x
$gas = xyes
5676 tmake_file
=mips
/t-mips-gas
5678 extra_passes
="mips-tfile mips-tdump"
5680 if test x
$gnu_ld != xyes
5684 # if test x$enable_threads = xyes; then
5685 # thread_file='irix'
5688 mips-sgi-irix4
*) # Mostly like a MIPS.
5689 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5690 if test x
$stabs = xyes
; then
5691 tm_file
="${tm_file} dbx.h"
5694 xmake_file
=mips
/x-iris
5695 if test x
$gas = xyes
5697 tmake_file
=mips
/t-mips-gas
5699 extra_passes
="mips-tfile mips-tdump"
5701 if test x
$gnu_ld != xyes
5705 # if test x$enable_threads = xyes; then
5706 # thread_file='irix'
5709 mips-sgi-
*) # Mostly like a MIPS.
5710 tm_file
="mips/iris3.h ${tm_file}"
5711 if test x
$stabs = xyes
; then
5712 tm_file
="${tm_file} dbx.h"
5715 xmake_file
=mips
/x-iris3
5716 if test x
$gas = xyes
5718 tmake_file
=mips
/t-mips-gas
5720 extra_passes
="mips-tfile mips-tdump"
5722 if test x
$gnu_ld != xyes
5727 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5728 tm_file
="mips/osfrose.h ${tm_file}"
5729 xmake_file
=mips
/x-osfrose
5730 tmake_file
=mips
/t-osfrose
5731 extra_objs
=halfpic.o
5734 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5735 tm_file
=mips
/dec-osf1.h
5736 if test x
$stabs = xyes
; then
5737 tm_file
="${tm_file} dbx.h"
5739 xmake_file
=mips
/x-dec-osf1
5740 if test x
$gas = xyes
5742 tmake_file
=mips
/t-mips-gas
5744 tmake_file
=mips
/t-ultrix
5745 extra_passes
="mips-tfile mips-tdump"
5747 if test x
$gnu_ld != xyes
5752 mips-dec-bsd
*) # Decstation running 4.4 BSD
5753 tm_file
=mips
/dec-bsd.h
5754 if test x
$gas = xyes
5756 tmake_file
=mips
/t-mips-gas
5758 tmake_file
=mips
/t-ultrix
5759 extra_passes
="mips-tfile mips-tdump"
5761 if test x
$gnu_ld != xyes
5766 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5767 tm_file
=mips
/netbsd.h
5768 # On NetBSD, the headers are already okay, except for math.h.
5771 mips
*-*-linux*) # Linux MIPS, either endian.
5774 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5775 *) tm_file
="mips/elf.h mips/linux.h" ;;
5778 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5781 if test x
$enable_threads = xyes
; then
5785 mips
*el-
*-openbsd*) # mips little endian
5786 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5788 mips
*-*-openbsd*) # mips big endian
5789 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5790 tm_file
="mips/openbsd-be.h ${tm_file}"
5792 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5793 tm_file
="mips/news4.h ${tm_file}"
5794 if test x
$stabs = xyes
; then
5795 tm_file
="${tm_file} dbx.h"
5797 if test x
$gas = xyes
5799 tmake_file
=mips
/t-mips-gas
5801 extra_passes
="mips-tfile mips-tdump"
5803 if test x
$gnu_ld != xyes
5807 xmake_file
=mips
/x-sony
5809 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5810 # That is based on svr4.
5811 # t-svr4 is not right because this system doesn't use ELF.
5812 tm_file
="mips/news5.h ${tm_file}"
5813 if test x
$stabs = xyes
; then
5814 tm_file
="${tm_file} dbx.h"
5817 if test x
$gas = xyes
5819 tmake_file
=mips
/t-mips-gas
5821 extra_passes
="mips-tfile mips-tdump"
5823 if test x
$gnu_ld != xyes
5828 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5829 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5830 if test x
$stabs = xyes
; then
5831 tm_file
="${tm_file} dbx.h"
5834 xmake_file
=mips
/x-sysv
5835 if test x
$gas = xyes
5837 tmake_file
=mips
/t-mips-gas
5838 extra_parts
="crtbegin.o crtend.o"
5840 tmake_file
=mips
/t-mips
5841 extra_passes
="mips-tfile mips-tdump"
5843 if test x
$gnu_ld != xyes
5848 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5849 tm_file
="mips/ultrix.h ${tm_file}"
5850 if test x
$stabs = xyes
; then
5851 tm_file
="${tm_file} dbx.h"
5853 xmake_file
=mips
/x-ultrix
5854 if test x
$gas = xyes
5856 tmake_file
=mips
/t-mips-gas
5858 tmake_file
=mips
/t-ultrix
5859 extra_passes
="mips-tfile mips-tdump"
5861 if test x
$gnu_ld != xyes
5866 mips-
*-riscos[56789]bsd
*)
5867 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5868 if test x
$stabs = xyes
; then
5869 tm_file
="${tm_file} dbx.h"
5871 if test x
$gas = xyes
5873 tmake_file
=mips
/t-bsd-gas
5875 tmake_file
=mips
/t-bsd
5876 extra_passes
="mips-tfile mips-tdump"
5878 if test x
$gnu_ld != xyes
5883 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5884 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5885 if test x
$stabs = xyes
; then
5886 tm_file
="${tm_file} dbx.h"
5888 if test x
$gas = xyes
5890 tmake_file
=mips
/t-bsd-gas
5892 tmake_file
=mips
/t-bsd
5893 extra_passes
="mips-tfile mips-tdump"
5895 if test x
$gnu_ld != xyes
5900 mips-
*-riscos[56789]sysv4
*)
5901 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5902 if test x
$stabs = xyes
; then
5903 tm_file
="${tm_file} dbx.h"
5905 xmake_file
=mips
/x-sysv
5906 if test x
$gas = xyes
5908 tmake_file
=mips
/t-svr4-gas
5910 tmake_file
=mips
/t-svr4
5911 extra_passes
="mips-tfile mips-tdump"
5913 if test x
$gnu_ld != xyes
5918 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5919 tm_file
="mips/svr4-4.h ${tm_file}"
5920 if test x
$stabs = xyes
; then
5921 tm_file
="${tm_file} dbx.h"
5924 xmake_file
=mips
/x-sysv
5925 if test x
$gas = xyes
5927 tmake_file
=mips
/t-svr4-gas
5929 tmake_file
=mips
/t-svr4
5930 extra_passes
="mips-tfile mips-tdump"
5932 if test x
$gnu_ld != xyes
5937 mips-
*-riscos[56789]sysv
*)
5938 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5939 if test x
$stabs = xyes
; then
5940 tm_file
="${tm_file} dbx.h"
5943 xmake_file
=mips
/x-sysv
5944 if test x
$gas = xyes
5946 tmake_file
=mips
/t-svr3-gas
5948 tmake_file
=mips
/t-svr3
5949 extra_passes
="mips-tfile mips-tdump"
5951 if test x
$gnu_ld != xyes
5956 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5957 tm_file
="mips/svr3-4.h ${tm_file}"
5958 if test x
$stabs = xyes
; then
5959 tm_file
="${tm_file} dbx.h"
5962 xmake_file
=mips
/x-sysv
5963 if test x
$gas = xyes
5965 tmake_file
=mips
/t-svr3-gas
5967 tmake_file
=mips
/t-svr3
5968 extra_passes
="mips-tfile mips-tdump"
5970 if test x
$gnu_ld != xyes
5975 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5976 tm_file
=mips
/mips-5.h
5977 if test x
$stabs = xyes
; then
5978 tm_file
="${tm_file} dbx.h"
5980 if test x
$gas = xyes
5982 tmake_file
=mips
/t-mips-gas
5984 extra_passes
="mips-tfile mips-tdump"
5986 if test x
$gnu_ld != xyes
5994 tm_file
=mips
/ecoffl.h
5995 if test x
$stabs = xyes
; then
5996 tm_file
="${tm_file} dbx.h"
5998 tmake_file
=mips
/t-ecoff
6001 tm_file
="gofast.h mips/ecoff.h"
6002 if test x
$stabs = xyes
; then
6003 tm_file
="${tm_file} dbx.h"
6005 tmake_file
=mips
/t-ecoff
6008 tm_file
="mips/elfl.h"
6009 tmake_file
=mips
/t-elf
6012 tm_file
="mips/elf.h"
6013 tmake_file
=mips
/t-elf
6016 tm_file
="mips/elfl64.h"
6017 tmake_file
=mips
/t-elf
6019 mips64orionel-
*-elf*)
6020 tm_file
="mips/elforion.h mips/elfl64.h"
6021 tmake_file
=mips
/t-elf
6024 tm_file
="mips/elf64.h"
6025 tmake_file
=mips
/t-elf
6028 tm_file
="mips/elforion.h mips/elf64.h"
6029 tmake_file
=mips
/t-elf
6031 mips64orion-
*-rtems*)
6032 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
6033 tmake_file
="mips/t-elf t-rtems"
6036 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
6037 tmake_file
=mips
/t-r3900
6040 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
6041 tmake_file
=mips
/t-r3900
6043 mips-
*-*) # Default MIPS RISC-OS 4.0.
6044 if test x
$stabs = xyes
; then
6045 tm_file
="${tm_file} dbx.h"
6047 if test x
$gas = xyes
6049 tmake_file
=mips
/t-mips-gas
6051 extra_passes
="mips-tfile mips-tdump"
6053 if test x
$gnu_ld != xyes
6061 tm_file
="mn10200/mn10200.h"
6062 if test x
$stabs = xyes
6064 tm_file
="${tm_file} dbx.h"
6070 tm_file
="mn10300/mn10300.h"
6071 if test x
$stabs = xyes
6073 tm_file
="${tm_file} dbx.h"
6078 tm_file
=ns32k
/encore.h
6082 tm_file
=ns32k
/sequent.h
6086 tm_file
=ns32k
/tek6100.h
6090 tm_file
=ns32k
/tek6200.h
6093 # This has not been updated to GCC 2.
6096 # xmake_file=ns32k/x-genix
6097 # tm_file=ns32k/genix.h
6101 tm_file
=ns32k
/merlin.h
6105 tm_file
=ns32k
/pc532-mach.h
6109 tm_file
=ns32k
/pc532-min.h
6110 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6115 tm_file
=ns32k
/netbsd.h
6116 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6117 # On NetBSD, the headers are already okay, except for math.h.
6122 tm_file
="${tm_file} pdp11/2bsd.h"
6131 # This has not been updated to GCC 2.
6134 # xmake_file=pyr/x-pyr
6139 tm_file
="svr4.h pj/linux.h ${tm_file}"
6144 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6151 xmake_file
=romp
/x-mach
6158 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6162 tm_file
=rs6000
/beos.h
6163 xm_file
=rs6000
/xm-beos.h
6164 tmake_file
=rs6000
/t-beos
6165 xmake_file
=rs6000
/x-beos
6168 tm_file
=rs6000
/sysv4.h
6169 xm_file
="rs6000/xm-sysv4.h"
6170 xm_defines
="USG POSIX"
6171 extra_headers
=ppc-asm.h
6172 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6173 xmake_file
=rs6000
/x-sysv4
6176 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6177 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6178 extra_headers
=ppc-asm.h
6181 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6182 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6183 extra_headers
=ppc-asm.h
6186 tm_file
="rs6000/sysv4.h"
6187 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6188 extra_headers
=ppc-asm.h
6191 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6192 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6193 extra_headers
=ppc-asm.h
6196 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6197 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6198 extra_headers
=ppc-asm.h
6200 powerpc-
*-linux*libc1
)
6201 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6202 xm_file
=rs6000
/xm-sysv4.h
6203 out_file
=rs6000
/rs6000.c
6204 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6206 extra_headers
=ppc-asm.h
6207 if test x
$enable_threads = xyes
; then
6212 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6213 xm_file
="rs6000/xm-sysv4.h"
6214 xm_defines
="USG ${xm_defines}"
6215 out_file
=rs6000
/rs6000.c
6216 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6218 extra_headers
=ppc-asm.h
6219 if test x
$enable_threads = xyes
; then
6223 powerpc-wrs-vxworks
*)
6225 xm_file
="rs6000/xm-sysv4.h"
6226 xm_defines
="USG POSIX"
6227 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6228 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6229 extra_headers
=ppc-asm.h
6230 thread_file
='vxworks'
6232 powerpcle-wrs-vxworks
*)
6234 xm_file
="rs6000/xm-sysv4.h"
6235 xm_defines
="USG POSIX"
6236 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6237 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6238 extra_headers
=ppc-asm.h
6239 thread_file
='vxworks'
6242 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6243 xm_file
="rs6000/xm-sysv4.h"
6244 xm_defines
="USG POSIX"
6245 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6246 xmake_file
=rs6000
/x-sysv4
6247 extra_headers
=ppc-asm.h
6250 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6251 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6252 extra_headers
=ppc-asm.h
6254 powerpcle-
*-eabisim*)
6255 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6256 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6257 extra_headers
=ppc-asm.h
6260 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6261 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6262 extra_headers
=ppc-asm.h
6264 powerpcle-
*-solaris2*)
6265 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6266 xm_file
="rs6000/xm-sysv4.h"
6267 xm_defines
="USG POSIX"
6268 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6269 xmake_file
=rs6000
/x-sysv4
6270 extra_headers
=ppc-asm.h
6272 rs6000-ibm-aix3.
[01]*)
6273 tm_file
=rs6000
/aix31.h
6274 xmake_file
=rs6000
/x-aix31
6278 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6279 tm_file
=rs6000
/aix3newas.h
6280 if test x
$host != x
$target
6282 tmake_file
=rs6000
/t-xnewas
6284 tmake_file
=rs6000
/t-newas
6289 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6290 tm_file
=rs6000
/aix41.h
6291 if test x
$host != x
$target
6293 tmake_file
=rs6000
/t-xnewas
6295 tmake_file
=rs6000
/t-newas
6297 if test "$gnu_ld" = yes
6299 xmake_file
=rs6000
/x-aix41-gld
6301 tmake_file
='rs6000/t-newas rs6000/t-aix41'
6303 xmake_file
=rs6000
/x-aix41
6307 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6308 tm_file
=rs6000
/aix43.h
6309 tmake_file
=rs6000
/t-aix43
6310 xmake_file
=rs6000
/x-aix41
6314 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6315 tm_file
=rs6000
/aix43.h
6316 tmake_file
=rs6000
/t-aix43
6317 xmake_file
=rs6000
/x-aix41
6330 tm_file
=rs6000
/mach.h
6331 xm_file
="${xm_file} rs6000/xm-mach.h"
6332 xmake_file
=rs6000
/x-mach
6336 tm_file
=rs6000
/lynx.h
6337 xm_file
=rs6000
/xm-lynx.h
6338 tmake_file
=rs6000
/t-rs6000
6339 xmake_file
=rs6000
/x-lynx
6343 tmake_file
="sh/t-sh sh/t-elf"
6344 tm_file
="sh/sh.h sh/elf.h"
6348 tmake_file
="sh/t-sh sh/t-elf t-rtems"
6349 tm_file
="sh/sh.h sh/elf.h sh/rtemself.h"
6353 tmake_file
="sh/t-sh t-rtems"
6354 tm_file
="sh/sh.h sh/rtems.h"
6358 tm_file
="sh/sh.h sh/elf.h sh/linux.h"
6359 tmake_file
="sh/t-sh sh/t-elf sh/t-linux"
6362 if test x
$enable_threads = xyes
; then
6372 xm_file
="xm-alloca.h ${xm_file}"
6375 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6376 tm_file
=sparc
/vxsparc.h
6377 tmake_file
=sparc
/t-vxsparc
6379 thread_file
='vxworks'
6382 tmake_file
=sparc
/t-sparcbare
6383 tm_file
="sparc/aout.h libgloss.h"
6386 tm_file
=sparc
/netbsd.h
6391 # we need collect2 until our bug is fixed...
6399 tmake_file
=sparc
/t-elf
6400 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6404 sparc-
*-linux*aout
*) # Sparc's running GNU/Linux, a.out
6405 xm_file
="${xm_file} sparc/xm-linux.h"
6406 tm_file
=sparc
/linux-aout.h
6410 sparc-
*-linux*libc1
*) # Sparc's running GNU/Linux, libc5
6411 xm_file
="${xm_file} sparc/xm-linux.h"
6413 tm_file
=sparc
/linux.h
6414 tmake_file
="t-linux t-linux-gnulibc1"
6415 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6419 sparc-
*-linux*) # Sparc's running GNU/Linux, libc6
6420 xm_file
="${xm_file} sparc/xm-linux.h"
6422 tm_file
=sparc
/linux.h
6423 tmake_file
="t-linux"
6424 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6426 if test x
$enable_threads = xyes
; then
6432 if test x
$gas = xyes
6434 tm_file
=sparc
/lynx.h
6436 tm_file
=sparc
/lynx-ng.h
6438 xm_file
=sparc
/xm-lynx.h
6439 tmake_file
=sparc
/t-sunos41
6443 tmake_file
="sparc/t-sparcbare t-rtems"
6444 tm_file
=sparc
/rtems.h
6446 sparc-
*-rtems*|sparc-
*-rtemself*)
6447 tm_file
="sparc/rtemself.h"
6448 tmake_file
="sparc/t-elf t-rtems"
6449 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6453 sparcv9-
*-solaris2*)
6454 if test x
$gnu_ld = xyes
6456 tm_file
=sparc
/sol2-64.h
6458 tm_file
=sparc
/sol2-sld-64.h
6460 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6461 xm_defines
="USG POSIX"
6462 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6463 xmake_file
=sparc
/x-sysv4
6464 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6466 if test x
${enable_threads} = x
; then
6467 enable_threads
=$have_pthread_h
6468 if test x
${enable_threads} = x
; then
6469 enable_threads
=$have_thread_h
6472 if test x
${enable_threads} = xyes
; then
6473 if test x
${have_pthread_h} = xyes
; then
6476 thread_file
='solaris'
6480 sparc-hal-solaris2
*)
6481 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6482 xm_defines
="USG POSIX"
6483 tm_file
="sparc/sol2.h sparc/hal.h"
6484 tmake_file
="sparc/t-halos sparc/t-sol2"
6485 xmake_file
=sparc
/x-sysv4
6486 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6495 thread_file
='solaris'
6498 if test x
$gnu_ld = xyes
6500 tm_file
=sparc
/sol2.h
6502 tm_file
=sparc
/sol2-sld.h
6504 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6505 xm_defines
="USG POSIX"
6506 tmake_file
=sparc
/t-sol2
6507 xmake_file
=sparc
/x-sysv4
6508 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6510 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6512 if test x
$gnu_ld = xyes
6514 tm_file
=sparc
/sol2-64.h
6516 tm_file
=sparc
/sol2-sld-64.h
6518 tmake_file
="$tmake_file sparc/t-sol2-64"
6529 if test x
${enable_threads} = x
; then
6530 enable_threads
=$have_pthread_h
6531 if test x
${enable_threads} = x
; then
6532 enable_threads
=$have_thread_h
6535 if test x
${enable_threads} = xyes
; then
6536 if test x
${have_pthread_h} = xyes
; then
6539 thread_file
='solaris'
6544 tm_file
=sparc
/sunos4.h
6545 tmake_file
=sparc
/t-sunos40
6549 tm_file
=sparc
/sunos4.h
6550 tmake_file
=sparc
/t-sunos41
6552 if test x
$gas = xyes
; then
6553 tm_file
="${tm_file} sparc/sun4gas.h"
6557 tm_file
=sparc
/sun4o3.h
6561 tm_file
=sparc
/sysv4.h
6562 xm_file
="sparc/xm-sysv4.h"
6563 xm_defines
="USG POSIX"
6565 xmake_file
=sparc
/x-sysv4
6566 extra_parts
="crtbegin.o crtend.o"
6569 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6570 xm_defines
="USG POSIX"
6571 tm_file
=sparc
/vxsim.h
6572 tmake_file
=sparc
/t-vxsparc
6573 xmake_file
=sparc
/x-sysv4
6576 tm_file
="sparc/splet.h libgloss.h"
6577 tmake_file
=sparc
/t-splet
6580 tm_file
="sparc/litecoff.h libgloss.h"
6581 tmake_file
=sparc
/t-sparclite
6584 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6585 tmake_file
=sparc
/t-sparclite
6588 tm_file
="sparc/liteelf.h"
6589 tmake_file
=sparc
/t-sparclite
6590 extra_parts
="crtbegin.o crtend.o"
6593 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6594 tmake_file
=sparc
/t-sp86x
6597 tm_file
="sparc/sp86x-elf.h"
6598 tmake_file
=sparc
/t-sp86x
6599 extra_parts
="crtbegin.o crtend.o"
6602 tmake_file
=sparc
/t-sp64
6603 tm_file
=sparc
/sp64-aout.h
6606 tmake_file
=sparc
/t-sp64
6607 tm_file
=sparc
/sp64-elf.h
6608 extra_parts
="crtbegin.o crtend.o"
6610 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6611 tmake_file
="t-linux sparc/t-linux64"
6612 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6613 tm_file
=sparc
/linux64.h
6615 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6617 if test x
$enable_threads = xyes
; then
6622 # This hasn't been upgraded to GCC 2.
6623 # tahoe-harris-*) # Harris tahoe, using COFF.
6624 # tm_file=tahoe/harris.h
6626 # tahoe-*-bsd*) # tahoe running BSD
6630 { echo "configure: error:
6631 *** The Thumb targets have been depreciated. The equivalent
6632 *** ARM based toolchain can now generated Thumb instructions
6633 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6635 # This hasn't been upgraded to GCC 2.
6642 tm_file
="v850/rtems.h"
6643 xm_file
="v850/xm-v850.h"
6644 tmake_file
="v850/t-v850 t-rtems"
6645 if test x
$stabs = xyes
6647 tm_file
="${tm_file} dbx.h"
6652 target_cpu_default
="TARGET_CPU_generic"
6654 tm_file
="v850/v850.h"
6655 xm_file
="v850/xm-v850.h"
6656 tmake_file
=v850
/t-v850
6657 if test x
$stabs = xyes
6659 tm_file
="${tm_file} dbx.h"
6663 vax-
*-bsd*) # vaxen running BSD
6667 vax-
*-sysv*) # vaxen running system V
6668 tm_file
="${tm_file} vax/vaxv.h"
6673 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6679 tmake_file
="${tmake_file} vax/t-openbsd"
6680 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6681 xm_file
="xm-openbsd.h vax/xm-vax.h"
6685 vax-
*-ultrix*) # vaxen running ultrix
6686 tm_file
="${tm_file} vax/ultrix.h"
6689 vax-
*-vms*) # vaxen running VMS
6690 xm_file
=vax
/xm-vms.h
6694 vax-
*-*) # vax default entry
6698 xm_file
="${xm_file} xm-svr3"
6702 echo "Configuration $machine not supported" 1>&2
6709 ;; # Existing GNU/Linux systems do not use the GNU setup.
6711 # On the GNU system, the setup is just about the same on
6712 # each different CPU. The specific machines that GNU
6713 # supports are matched above and just set $cpu_type.
6714 xm_file
="xm-gnu.h ${xm_file}"
6715 tm_file
=${cpu_type}/gnu.h
6716 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6717 # GNU always uses ELF.
6719 # GNU tools are the only tools.
6722 xmake_file
=x-linux
# These details are the same as Linux.
6723 tmake_file
=t-gnu
# These are not.
6726 xmake_try_sysv
=x-sysv
6727 install_headers_dir
=install-headers-cpio
6730 install_headers_dir
=install-headers-cpio
6734 # Distinguish i[34567]86
6735 # Also, do not run mips-tfile on MIPS if using gas.
6736 # Process --with-cpu= for PowerPC/rs6000
6737 target_cpu_default2
=
6740 target_cpu_default2
=1
6743 case $target_alias in
6745 target_cpu_default2
=4
6748 target_cpu_default2
=2
6752 i686-
*-* | i786-
*-*)
6753 target_cpu_default2
=3
6758 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6761 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6764 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6767 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6770 target_cpu_default2
="MASK_CPU_EV5"
6774 if test x
$gas = xyes
6776 if test "$target_cpu_default2" = ""
6778 target_cpu_default2
="MASK_GAS"
6780 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6785 case "x$with_cpu" in
6788 target_cpu_default2
="TARGET_CPU_generic"
6791 # Distinguish cores, and major variants
6792 # arm7m doesn't exist, but D & I don't affect code
6793 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6794 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6795 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6796 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6797 target_cpu_default2
="TARGET_CPU_$with_cpu"
6801 echo "--with-cpu must be passed a value" 1>&2
6806 if test x
$pass2done = xyes
6808 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6815 mips
*-*-ecoff* | mips
*-*-elf*)
6816 if test x
$gas = xyes
6818 if test x
$gnu_ld = xyes
6820 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6822 target_cpu_default2
="MASK_GAS"
6827 if test x
$gas = xyes
6829 target_cpu_default2
="MASK_GAS"
6832 powerpc
*-*-* | rs6000-
*-*)
6833 case "x$with_cpu" in
6837 xcommon | xpower | xpower2 | xpowerpc | xrios \
6838 | xrios1 | xrios2 | xrsc | xrsc1 \
6839 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6840 | xec603e | x740 | x750 | x401 \
6841 | x403 | x505 | x801 | x821 | x823 | x860
)
6842 target_cpu_default2
="\"$with_cpu\""
6846 echo "--with-cpu must be passed a value" 1>&2
6851 if test x
$pass2done = xyes
6853 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6860 case ".$with_cpu" in
6862 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6864 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6865 target_cpu_default2
="TARGET_CPU_$with_cpu"
6868 if test x
$pass2done = xyes
6870 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6878 if test "$target_cpu_default2" != ""
6880 if test "$target_cpu_default" != ""
6882 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6884 target_cpu_default
=$target_cpu_default2
6888 # No need for collect2 if we have the GNU linker.
6889 # Actually, there is now; GNU ld doesn't handle the EH info or
6890 # collecting for shared libraries.
6897 # Save data on machine being used to compile GCC in build_xm_file.
6898 # Save data on host machine in vars host_xm_file and host_xmake_file.
6899 if test x
$pass1done = x
6901 if test x
"$xm_file" = x
6902 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6903 else build_xm_file
=$xm_file
6905 build_xm_defines
=$xm_defines
6906 build_install_headers_dir
=$install_headers_dir
6907 build_exeext
=$exeext
6910 if test x
$pass2done = x
6912 if test x
"$xm_file" = x
6913 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6914 else host_xm_file
=$xm_file
6916 host_xm_defines
=$xm_defines
6917 if test x
"$xmake_file" = x
6918 then xmake_file
=$cpu_type/x-
$cpu_type
6920 host_xmake_file
="$xmake_file"
6921 host_truncate_target
=$truncate_target
6922 host_extra_gcc_objs
=$extra_gcc_objs
6923 host_extra_objs
=$extra_host_objs
6930 extra_objs
="${host_extra_objs} ${extra_objs}"
6932 # Default the target-machine variables that were not explicitly set.
6933 if test x
"$tm_file" = x
6934 then tm_file
=$cpu_type/$cpu_type.h
; fi
6936 if test x
$extra_headers = x
6937 then extra_headers
=; fi
6939 if test x
"$xm_file" = x
6940 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6942 if test x
$md_file = x
6943 then md_file
=$cpu_type/$cpu_type.md
; fi
6945 if test x
$out_file = x
6946 then out_file
=$cpu_type/$cpu_type.c
; fi
6948 if test x
"$tmake_file" = x
6949 then tmake_file
=$cpu_type/t-
$cpu_type
6952 if test x
"$dwarf2" = xyes
6953 then tm_file
="$tm_file tm-dwarf2.h"
6956 if test x
$float_format = x
6957 then float_format
=i64
6960 if test $float_format = none
6961 then float_h_file
=Makefile.
in
6962 else float_h_file
=float-
$float_format.h
6965 # Handle cpp installation.
6966 if test x
$enable_cpp != xno
6968 tmake_file
="$tmake_file t-install-cpp"
6971 # Say what files are being used for the output code and MD file.
6972 echo "Using \`$srcdir/config/$out_file' to output insns."
6973 echo "Using \`$srcdir/config/$md_file' as machine description file."
6976 for f
in $tm_file; do
6979 if test $count = ax
; then
6980 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6982 echo "Using the following target machine macro files:"
6983 for f
in $tm_file; do
6984 echo " $srcdir/config/$f"
6989 for f
in $host_xm_file; do
6992 if test $count = ax
; then
6993 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6995 echo "Using the following host machine macro files:"
6996 for f
in $host_xm_file; do
6997 echo " $srcdir/config/$f"
7001 if test "$host_xm_file" != "$build_xm_file"; then
7003 for f
in $build_xm_file; do
7006 if test $count = ax
; then
7007 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
7009 echo "Using the following build machine macro files:"
7010 for f
in $build_xm_file; do
7011 echo " $srcdir/config/$f"
7016 if test x
$thread_file = x
; then
7017 if test x
$target_thread_file != x
; then
7018 thread_file
=$target_thread_file
7020 thread_file
='single'
7024 # Set up the header files.
7025 # $links is the list of header files to create.
7026 # $vars is the list of shell variables with file names to include.
7027 # auto-host.h is the file containing items generated by autoconf and is
7028 # the first file included by config.h.
7030 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
7032 # If host=build, it is correct to have hconfig include auto-host.h
7033 # as well. If host!=build, we are in error and need to do more
7034 # work to find out the build config parameters.
7035 if test x
$host = x
$build
7037 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
7039 # We create a subdir, then run autoconf in the subdir.
7040 # To prevent recursion we set host and build for the new
7041 # invocation of configure to the build for this invocation
7048 /*) realsrcdir
=${srcdir};;
7049 *) realsrcdir
=..
/${srcdir};;
7051 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
7052 --target=$target --host=$build --build=$build
7054 # We just finished tests for the build machine, so rename
7055 # the file auto-build.h in the gcc directory.
7056 mv auto-host.h ..
/auto-build.h
7059 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7062 xm_file
="gansidecl.h ${xm_file}"
7063 tm_file
="gansidecl.h ${tm_file}"
7065 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7066 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
7067 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7070 if test -f config.status
; then mv -f config.status config.bak
; fi
7073 while test -n "$vars"
7075 set $vars; var
=$1; shift; vars
=$
*
7076 set $links; link
=$1; shift; links
=$
*
7077 set $defines; define
=$1; shift; defines
=$
*
7080 # Make sure the file is created, even if it is empty.
7083 # Define TARGET_CPU_DEFAULT if the system wants one.
7084 # This substitutes for lots of *.h files.
7085 if test "$target_cpu_default" != "" -a $link = tm.h
7087 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7090 for file in `eval echo '$'$var`; do
7092 auto-host.h | auto-build.h
)
7095 echo '#ifdef IN_GCC' >>$link
7098 echo "#include \"$file\"" >>$link
7100 auto-host.h | auto-build.h
)
7103 echo '#endif' >>$link
7108 for def
in `eval echo '$'$define`; do
7109 echo "#ifndef $def" >>$link
7110 echo "#define $def" >>$link
7111 echo "#endif" >>$link
7115 # Truncate the target if necessary
7116 if test x
$host_truncate_target != x
; then
7117 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7120 # Get the version trigger filename from the toplevel
7121 if test "${with_gcc_version_trigger+set}" = set; then
7122 gcc_version_trigger
=$with_gcc_version_trigger
7124 gcc_version_trigger
=${srcdir}/version.c
7126 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7128 # Internationalization
7130 VERSION
="$gcc_version"
7131 cat >> confdefs.h
<<EOF
7132 #define PACKAGE "$PACKAGE"
7135 cat >> confdefs.h
<<EOF
7136 #define VERSION "$VERSION"
7144 # Enable NLS support by default
7145 # Check whether --enable-nls or --disable-nls was given.
7146 if test "${enable_nls+set}" = set; then
7147 enableval
="$enable_nls"
7154 # if cross compiling, disable NLS support.
7155 # It's not worth the trouble, at least for now.
7157 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7158 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7163 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7164 echo "configure:7165: checking for strerror in -lcposix" >&5
7165 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7167 echo $ac_n "(cached) $ac_c" 1>&6
7169 ac_save_LIBS
="$LIBS"
7170 LIBS
="-lcposix $LIBS"
7171 cat > conftest.
$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7174 /* Override any gcc2 internal prototype to avoid an error. */
7175 /* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7183 if { (eval echo configure
:7184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7185 eval "ac_cv_lib_$ac_lib_var=yes"
7187 echo "configure: failed program was:" >&5
7188 cat conftest.
$ac_ext >&5
7190 eval "ac_cv_lib_$ac_lib_var=no"
7193 LIBS
="$ac_save_LIBS"
7196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7197 echo "$ac_t""yes" 1>&6
7198 LIBS
="$LIBS -lcposix"
7200 echo "$ac_t""no" 1>&6
7205 echo $ac_n "checking for working const""... $ac_c" 1>&6
7206 echo "configure:7207: checking for working const" >&5
7207 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7210 cat > conftest.
$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7216 /* Ultrix mips cc rejects this. */
7217 typedef int charset[2]; const charset x;
7218 /* SunOS 4.1.1 cc rejects this. */
7219 char const *const *ccp;
7221 /* NEC SVR4.0.2 mips cc rejects this. */
7222 struct point {int x, y;};
7223 static struct point const zero = {0,0};
7224 /* AIX XL C 1.02.0.0 rejects this.
7225 It does not let you subtract one const X* pointer from another in an arm
7226 of an if-expression whose if-part is not a constant expression */
7227 const char *g = "string";
7228 ccp = &g + (g ? g-g : 0);
7229 /* HPUX 7.0 cc rejects these. */
7232 ccp = (char const *const *) p;
7233 { /* SCO 3.2v4 cc rejects this. */
7235 char const *s = 0 ? (char *) 0 : (char const *) 0;
7239 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7241 const int *foo = &x[0];
7244 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7245 typedef const int *iptr;
7249 { /* AIX XL C 1.02.0.0 rejects this saying
7250 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7251 struct s { int j; const int *ap[3]; };
7252 struct s *b; b->j = 5;
7254 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7260 if { (eval echo configure
:7261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7264 echo "configure: failed program was:" >&5
7265 cat conftest.
$ac_ext >&5
7272 echo "$ac_t""$ac_cv_c_const" 1>&6
7273 if test $ac_cv_c_const = no
; then
7274 cat >> confdefs.h
<<\EOF
7280 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7281 echo "configure:7282: checking for off_t" >&5
7282 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7283 echo $ac_n "(cached) $ac_c" 1>&6
7285 cat > conftest.
$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7288 #include <sys/types.h>
7294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7295 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7297 ac_cv_type_off_t
=yes
7305 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7306 if test $ac_cv_type_off_t = no
; then
7307 cat >> confdefs.h
<<\EOF
7313 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7314 echo "configure:7315: checking for size_t" >&5
7315 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7316 echo $ac_n "(cached) $ac_c" 1>&6
7318 cat > conftest.
$ac_ext <<EOF
7319 #line 7320 "configure"
7320 #include "confdefs.h"
7321 #include <sys/types.h>
7327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7328 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7330 ac_cv_type_size_t
=yes
7333 ac_cv_type_size_t
=no
7338 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7339 if test $ac_cv_type_size_t = no
; then
7340 cat >> confdefs.h
<<\EOF
7341 #define size_t unsigned
7346 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7347 # for constant arguments. Useless!
7348 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7349 echo "configure:7350: checking for working alloca.h" >&5
7350 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7353 cat > conftest.
$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7358 char *p = alloca(2 * sizeof(int));
7361 if { (eval echo configure
:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7363 ac_cv_header_alloca_h
=yes
7365 echo "configure: failed program was:" >&5
7366 cat conftest.
$ac_ext >&5
7368 ac_cv_header_alloca_h
=no
7373 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7374 if test $ac_cv_header_alloca_h = yes; then
7375 cat >> confdefs.h
<<\EOF
7376 #define HAVE_ALLOCA_H 1
7381 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7382 echo "configure:7383: checking for alloca" >&5
7383 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7386 cat > conftest.
$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7391 # define alloca __builtin_alloca
7394 # include <malloc.h>
7395 # define alloca _alloca
7398 # include <alloca.h>
7403 # ifndef alloca /* predefined by HP cc +Olibcalls */
7412 char *p = (char *) alloca(1);
7415 if { (eval echo configure
:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7417 ac_cv_func_alloca_works
=yes
7419 echo "configure: failed program was:" >&5
7420 cat conftest.
$ac_ext >&5
7422 ac_cv_func_alloca_works
=no
7427 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7428 if test $ac_cv_func_alloca_works = yes; then
7429 cat >> confdefs.h
<<\EOF
7430 #define HAVE_ALLOCA 1
7435 if test $ac_cv_func_alloca_works = no
; then
7436 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7437 # that cause trouble. Some versions do not even contain alloca or
7438 # contain a buggy version. If you still want to use their alloca,
7439 # use ar to extract alloca.o from them instead of compiling alloca.c.
7440 ALLOCA
=alloca.
${ac_objext}
7441 cat >> confdefs.h
<<\EOF
7446 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7447 echo "configure:7448: checking whether alloca needs Cray hooks" >&5
7448 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 cat > conftest.
$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 #if defined(CRAY) && ! defined(CRAY2)
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462 egrep "webecray" >/dev
/null
2>&1; then
7473 echo "$ac_t""$ac_cv_os_cray" 1>&6
7474 if test $ac_cv_os_cray = yes; then
7475 for ac_func
in _getb67 GETB67 getb67
; do
7476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_func" >&5
7478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7481 cat > conftest.
$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char $ac_func(); below. */
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 /* We use char because int might match the return type of a gcc2
7489 builtin and then its argument prototype would still apply. */
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7505 if { (eval echo configure
:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7507 eval "ac_cv_func_$ac_func=yes"
7509 echo "configure: failed program was:" >&5
7510 cat conftest.
$ac_ext >&5
7512 eval "ac_cv_func_$ac_func=no"
7517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7518 echo "$ac_t""yes" 1>&6
7519 cat >> confdefs.h
<<EOF
7520 #define CRAY_STACKSEG_END $ac_func
7525 echo "$ac_t""no" 1>&6
7531 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7532 echo "configure:7533: checking stack direction for C alloca" >&5
7533 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7536 if test "$cross_compiling" = yes; then
7537 ac_cv_c_stack_direction
=0
7539 cat > conftest.
$ac_ext <<EOF
7540 #line 7541 "configure"
7541 #include "confdefs.h"
7542 find_stack_direction ()
7544 static char *addr = 0;
7549 return find_stack_direction ();
7552 return (&dummy > addr) ? 1 : -1;
7556 exit (find_stack_direction() < 0);
7559 if { (eval echo configure
:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7561 ac_cv_c_stack_direction
=1
7563 echo "configure: failed program was:" >&5
7564 cat conftest.
$ac_ext >&5
7566 ac_cv_c_stack_direction
=-1
7573 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7574 cat >> confdefs.h
<<EOF
7575 #define STACK_DIRECTION $ac_cv_c_stack_direction
7581 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7582 unistd.h sys
/param.h
7584 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7586 echo "configure:7587: checking for $ac_hdr" >&5
7587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7590 cat > conftest.
$ac_ext <<EOF
7591 #line 7592 "configure"
7592 #include "confdefs.h"
7595 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7596 { (eval echo configure
:7597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7597 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7598 if test -z "$ac_err"; then
7600 eval "ac_cv_header_$ac_safe=yes"
7603 echo "configure: failed program was:" >&5
7604 cat conftest.
$ac_ext >&5
7606 eval "ac_cv_header_$ac_safe=no"
7610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7613 cat >> confdefs.h
<<EOF
7614 #define $ac_tr_hdr 1
7618 echo "$ac_t""no" 1>&6
7622 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7623 strdup __argz_count __argz_stringify __argz_next
7625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7626 echo "configure:7627: checking for $ac_func" >&5
7627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 cat > conftest.
$ac_ext <<EOF
7631 #line 7632 "configure"
7632 #include "confdefs.h"
7633 /* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char $ac_func(); below. */
7636 /* Override any gcc2 internal prototype to avoid an error. */
7637 /* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7643 /* The GNU C library defines this for functions which it implements
7644 to always fail with ENOSYS. Some functions are actually named
7645 something starting with __ and the normal name is an alias. */
7646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7654 if { (eval echo configure
:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7656 eval "ac_cv_func_$ac_func=yes"
7658 echo "configure: failed program was:" >&5
7659 cat conftest.
$ac_ext >&5
7661 eval "ac_cv_func_$ac_func=no"
7666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7667 echo "$ac_t""yes" 1>&6
7668 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7669 cat >> confdefs.h
<<EOF
7670 #define $ac_tr_func 1
7674 echo "$ac_t""no" 1>&6
7679 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7680 for ac_func
in stpcpy
7682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7683 echo "configure:7684: checking for $ac_func" >&5
7684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7687 cat > conftest.
$ac_ext <<EOF
7688 #line 7689 "configure"
7689 #include "confdefs.h"
7690 /* System header to define __stub macros and hopefully few prototypes,
7691 which can conflict with char $ac_func(); below. */
7693 /* Override any gcc2 internal prototype to avoid an error. */
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7700 /* The GNU C library defines this for functions which it implements
7701 to always fail with ENOSYS. Some functions are actually named
7702 something starting with __ and the normal name is an alias. */
7703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7711 if { (eval echo configure
:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7713 eval "ac_cv_func_$ac_func=yes"
7715 echo "configure: failed program was:" >&5
7716 cat conftest.
$ac_ext >&5
7718 eval "ac_cv_func_$ac_func=no"
7723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6
7725 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7726 cat >> confdefs.h
<<EOF
7727 #define $ac_tr_func 1
7731 echo "$ac_t""no" 1>&6
7736 if test "${ac_cv_func_stpcpy}" = "yes"; then
7737 cat >> confdefs.h
<<\EOF
7738 #define HAVE_STPCPY 1
7743 if test $ac_cv_header_locale_h = yes; then
7744 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7745 echo "configure:7746: checking for LC_MESSAGES" >&5
7746 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7749 cat > conftest.
$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7757 if { (eval echo configure
:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7759 am_cv_val_LC_MESSAGES
=yes
7761 echo "configure: failed program was:" >&5
7762 cat conftest.
$ac_ext >&5
7764 am_cv_val_LC_MESSAGES
=no
7769 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7770 if test $am_cv_val_LC_MESSAGES = yes; then
7771 cat >> confdefs.h
<<\EOF
7772 #define HAVE_LC_MESSAGES 1
7777 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7778 echo "configure:7779: checking whether NLS is requested" >&5
7779 # Check whether --enable-nls or --disable-nls was given.
7780 if test "${enable_nls+set}" = set; then
7781 enableval
="$enable_nls"
7787 echo "$ac_t""$USE_NLS" 1>&6
7790 USE_INCLUDED_LIBINTL
=no
7792 if test "$USE_NLS" = "yes"; then
7793 cat >> confdefs.h
<<\EOF
7794 #define ENABLE_NLS 1
7797 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7798 echo "configure:7799: checking whether included gettext is requested" >&5
7799 # Check whether --with-included-gettext or --without-included-gettext was given.
7800 if test "${with_included_gettext+set}" = set; then
7801 withval
="$with_included_gettext"
7802 nls_cv_force_use_gnu_gettext
=$withval
7804 nls_cv_force_use_gnu_gettext
=no
7807 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7809 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7810 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7812 nls_cv_header_libgt
=
7815 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7816 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7817 echo "configure:7818: checking for libintl.h" >&5
7818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 cat > conftest.
$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7824 #include <libintl.h>
7826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7827 { (eval echo configure
:7828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7829 if test -z "$ac_err"; then
7831 eval "ac_cv_header_$ac_safe=yes"
7834 echo "configure: failed program was:" >&5
7835 cat conftest.
$ac_ext >&5
7837 eval "ac_cv_header_$ac_safe=no"
7841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7842 echo "$ac_t""yes" 1>&6
7843 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7844 echo "configure:7845: checking for gettext in libc" >&5
7845 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7848 cat > conftest.
$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 #include <libintl.h>
7853 return (int) gettext ("")
7856 if { (eval echo configure
:7857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7858 gt_cv_func_gettext_libc
=yes
7860 echo "configure: failed program was:" >&5
7861 cat conftest.
$ac_ext >&5
7863 gt_cv_func_gettext_libc
=no
7868 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7870 if test "$gt_cv_func_gettext_libc" != "yes"; then
7871 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7872 echo "configure:7873: checking for bindtextdomain in -lintl" >&5
7873 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7875 echo $ac_n "(cached) $ac_c" 1>&6
7877 ac_save_LIBS
="$LIBS"
7879 cat > conftest.
$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 /* We use char because int might match the return type of a gcc2
7884 builtin and then its argument prototype would still apply. */
7885 char bindtextdomain();
7891 if { (eval echo configure
:7892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7893 eval "ac_cv_lib_$ac_lib_var=yes"
7895 echo "configure: failed program was:" >&5
7896 cat conftest.
$ac_ext >&5
7898 eval "ac_cv_lib_$ac_lib_var=no"
7901 LIBS
="$ac_save_LIBS"
7904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7905 echo "$ac_t""yes" 1>&6
7906 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7907 echo "configure:7908: checking for gettext in libintl" >&5
7908 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7911 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7912 echo "configure:7913: checking for gettext in -lintl" >&5
7913 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7917 ac_save_LIBS
="$LIBS"
7919 cat > conftest.
$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* Override any gcc2 internal prototype to avoid an error. */
7923 /* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */
7931 if { (eval echo configure
:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7933 eval "ac_cv_lib_$ac_lib_var=yes"
7935 echo "configure: failed program was:" >&5
7936 cat conftest.
$ac_ext >&5
7938 eval "ac_cv_lib_$ac_lib_var=no"
7941 LIBS
="$ac_save_LIBS"
7944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7945 echo "$ac_t""yes" 1>&6
7946 gt_cv_func_gettext_libintl
=yes
7948 echo "$ac_t""no" 1>&6
7949 gt_cv_func_gettext_libintl
=no
7954 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7956 echo "$ac_t""no" 1>&6
7961 if test "$gt_cv_func_gettext_libc" = "yes" \
7962 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7963 cat >> confdefs.h
<<\EOF
7964 #define HAVE_GETTEXT 1
7967 # Extract the first word of "msgfmt", so it can be a program name with args.
7968 set dummy msgfmt
; ac_word
=$2
7969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7970 echo "configure:7971: checking for $ac_word" >&5
7971 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7976 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7979 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7980 for ac_dir
in $PATH; do
7981 test -z "$ac_dir" && ac_dir
=.
7982 if test -f $ac_dir/$ac_word; then
7983 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7984 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7990 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7994 MSGFMT
="$ac_cv_path_MSGFMT"
7995 if test -n "$MSGFMT"; then
7996 echo "$ac_t""$MSGFMT" 1>&6
7998 echo "$ac_t""no" 1>&6
8000 if test "$MSGFMT" != "no"; then
8001 for ac_func
in dcgettext
8003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8004 echo "configure:8005: checking for $ac_func" >&5
8005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8008 cat > conftest.
$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8011 /* System header to define __stub macros and hopefully few prototypes,
8012 which can conflict with char $ac_func(); below. */
8014 /* Override any gcc2 internal prototype to avoid an error. */
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8021 /* The GNU C library defines this for functions which it implements
8022 to always fail with ENOSYS. Some functions are actually named
8023 something starting with __ and the normal name is an alias. */
8024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8032 if { (eval echo configure
:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8034 eval "ac_cv_func_$ac_func=yes"
8036 echo "configure: failed program was:" >&5
8037 cat conftest.
$ac_ext >&5
8039 eval "ac_cv_func_$ac_func=no"
8044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8045 echo "$ac_t""yes" 1>&6
8046 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8047 cat >> confdefs.h
<<EOF
8048 #define $ac_tr_func 1
8052 echo "$ac_t""no" 1>&6
8056 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8057 set dummy gmsgfmt
; ac_word
=$2
8058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8059 echo "configure:8060: checking for $ac_word" >&5
8060 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8065 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8068 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8073 for ac_dir
in $ac_dummy; do
8074 test -z "$ac_dir" && ac_dir
=.
8075 if test -f $ac_dir/$ac_word; then
8076 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8081 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8085 GMSGFMT
="$ac_cv_path_GMSGFMT"
8086 if test -n "$GMSGFMT"; then
8087 echo "$ac_t""$GMSGFMT" 1>&6
8089 echo "$ac_t""no" 1>&6
8092 # Extract the first word of "xgettext", so it can be a program name with args.
8093 set dummy xgettext
; ac_word
=$2
8094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8095 echo "configure:8096: checking for $ac_word" >&5
8096 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8101 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8104 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8105 for ac_dir
in $PATH; do
8106 test -z "$ac_dir" && ac_dir
=.
8107 if test -f $ac_dir/$ac_word; then
8108 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8109 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8115 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8119 XGETTEXT
="$ac_cv_path_XGETTEXT"
8120 if test -n "$XGETTEXT"; then
8121 echo "$ac_t""$XGETTEXT" 1>&6
8123 echo "$ac_t""no" 1>&6
8126 cat > conftest.
$ac_ext <<EOF
8127 #line 8128 "configure"
8128 #include "confdefs.h"
8131 extern int _nl_msg_cat_cntr;
8132 return _nl_msg_cat_cntr
8135 if { (eval echo configure
:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8140 echo "configure: failed program was:" >&5
8141 cat conftest.
$ac_ext >&5
8152 echo "$ac_t""no" 1>&6
8156 if test "$CATOBJEXT" = "NONE"; then
8157 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8158 echo "configure:8159: checking whether catgets can be used" >&5
8159 # Check whether --with-catgets or --without-catgets was given.
8160 if test "${with_catgets+set}" = set; then
8161 withval
="$with_catgets"
8162 nls_cv_use_catgets
=$withval
8164 nls_cv_use_catgets
=no
8167 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8169 if test "$nls_cv_use_catgets" = "yes"; then
8170 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8171 echo "configure:8172: checking for main in -li" >&5
8172 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8174 echo $ac_n "(cached) $ac_c" 1>&6
8176 ac_save_LIBS
="$LIBS"
8178 cat > conftest.
$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8186 if { (eval echo configure
:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8188 eval "ac_cv_lib_$ac_lib_var=yes"
8190 echo "configure: failed program was:" >&5
8191 cat conftest.
$ac_ext >&5
8193 eval "ac_cv_lib_$ac_lib_var=no"
8196 LIBS
="$ac_save_LIBS"
8199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8200 echo "$ac_t""yes" 1>&6
8201 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8203 cat >> confdefs.h
<<EOF
8204 #define $ac_tr_lib 1
8210 echo "$ac_t""no" 1>&6
8213 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8214 echo "configure:8215: checking for catgets" >&5
8215 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8216 echo $ac_n "(cached) $ac_c" 1>&6
8218 cat > conftest.
$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8221 /* System header to define __stub macros and hopefully few prototypes,
8222 which can conflict with char catgets(); below. */
8224 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8231 /* The GNU C library defines this for functions which it implements
8232 to always fail with ENOSYS. Some functions are actually named
8233 something starting with __ and the normal name is an alias. */
8234 #if defined (__stub_catgets) || defined (__stub___catgets)
8242 if { (eval echo configure
:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8244 eval "ac_cv_func_catgets=yes"
8246 echo "configure: failed program was:" >&5
8247 cat conftest.
$ac_ext >&5
8249 eval "ac_cv_func_catgets=no"
8254 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8255 echo "$ac_t""yes" 1>&6
8256 cat >> confdefs.h
<<\EOF
8257 #define HAVE_CATGETS 1
8260 INTLOBJS
="\$(CATOBJS)"
8261 # Extract the first word of "gencat", so it can be a program name with args.
8262 set dummy gencat
; ac_word
=$2
8263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8264 echo "configure:8265: checking for $ac_word" >&5
8265 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8266 echo $ac_n "(cached) $ac_c" 1>&6
8270 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8273 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8276 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8278 for ac_dir
in $ac_dummy; do
8279 test -z "$ac_dir" && ac_dir
=.
8280 if test -f $ac_dir/$ac_word; then
8281 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8286 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8290 GENCAT
="$ac_cv_path_GENCAT"
8291 if test -n "$GENCAT"; then
8292 echo "$ac_t""$GENCAT" 1>&6
8294 echo "$ac_t""no" 1>&6
8296 if test "$GENCAT" != "no"; then
8297 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8298 set dummy gmsgfmt
; ac_word
=$2
8299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8300 echo "configure:8301: checking for $ac_word" >&5
8301 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8306 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8309 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8312 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8314 for ac_dir
in $ac_dummy; do
8315 test -z "$ac_dir" && ac_dir
=.
8316 if test -f $ac_dir/$ac_word; then
8317 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8322 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8326 GMSGFMT
="$ac_cv_path_GMSGFMT"
8327 if test -n "$GMSGFMT"; then
8328 echo "$ac_t""$GMSGFMT" 1>&6
8330 echo "$ac_t""no" 1>&6
8333 if test "$GMSGFMT" = "no"; then
8334 # Extract the first word of "msgfmt", so it can be a program name with args.
8335 set dummy msgfmt
; ac_word
=$2
8336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8337 echo "configure:8338: checking for $ac_word" >&5
8338 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8339 echo $ac_n "(cached) $ac_c" 1>&6
8343 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8346 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8347 for ac_dir
in $PATH; do
8348 test -z "$ac_dir" && ac_dir
=.
8349 if test -f $ac_dir/$ac_word; then
8350 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8351 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8357 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8361 GMSGFMT
="$ac_cv_path_GMSGFMT"
8362 if test -n "$GMSGFMT"; then
8363 echo "$ac_t""$GMSGFMT" 1>&6
8365 echo "$ac_t""no" 1>&6
8368 if test "$GMSGFMT" = "msgfmt"; then
8369 echo "configure: warning: No program for catalog building found" 1>&2
8370 create_catalogs
="no"
8373 # Extract the first word of "xgettext", so it can be a program name with args.
8374 set dummy xgettext
; ac_word
=$2
8375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8376 echo "configure:8377: checking for $ac_word" >&5
8377 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8378 echo $ac_n "(cached) $ac_c" 1>&6
8382 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8385 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8386 for ac_dir
in $PATH; do
8387 test -z "$ac_dir" && ac_dir
=.
8388 if test -f $ac_dir/$ac_word; then
8389 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8390 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8396 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8400 XGETTEXT
="$ac_cv_path_XGETTEXT"
8401 if test -n "$XGETTEXT"; then
8402 echo "$ac_t""$XGETTEXT" 1>&6
8404 echo "$ac_t""no" 1>&6
8407 USE_INCLUDED_LIBINTL
=yes
8411 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8413 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8414 nls_cv_header_intl
=intl
/libintl.h
8415 nls_cv_header_libgt
=intl
/libgettext.h
8418 echo "$ac_t""no" 1>&6
8424 if test "$CATOBJEXT" = "NONE"; then
8425 nls_cv_use_gnu_gettext
=yes
8429 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8430 INTLOBJS
="\$(GETTOBJS)"
8431 # Extract the first word of "msgfmt", so it can be a program name with args.
8432 set dummy msgfmt
; ac_word
=$2
8433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8434 echo "configure:8435: checking for $ac_word" >&5
8435 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8436 echo $ac_n "(cached) $ac_c" 1>&6
8440 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8443 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8444 for ac_dir
in $PATH; do
8445 test -z "$ac_dir" && ac_dir
=.
8446 if test -f $ac_dir/$ac_word; then
8447 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8448 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8454 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8458 MSGFMT
="$ac_cv_path_MSGFMT"
8459 if test -n "$MSGFMT"; then
8460 echo "$ac_t""$MSGFMT" 1>&6
8462 echo "$ac_t""no" 1>&6
8465 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8466 set dummy gmsgfmt
; ac_word
=$2
8467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8468 echo "configure:8469: checking for $ac_word" >&5
8469 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8474 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8477 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8480 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8482 for ac_dir
in $ac_dummy; do
8483 test -z "$ac_dir" && ac_dir
=.
8484 if test -f $ac_dir/$ac_word; then
8485 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8490 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8494 GMSGFMT
="$ac_cv_path_GMSGFMT"
8495 if test -n "$GMSGFMT"; then
8496 echo "$ac_t""$GMSGFMT" 1>&6
8498 echo "$ac_t""no" 1>&6
8501 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8502 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8503 create_catalogs
="no"
8505 # Extract the first word of "xgettext", so it can be a program name with args.
8506 set dummy xgettext
; ac_word
=$2
8507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8508 echo "configure:8509: checking for $ac_word" >&5
8509 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8514 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8517 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8518 for ac_dir
in $PATH; do
8519 test -z "$ac_dir" && ac_dir
=.
8520 if test -f $ac_dir/$ac_word; then
8521 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8522 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8528 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8532 XGETTEXT
="$ac_cv_path_XGETTEXT"
8533 if test -n "$XGETTEXT"; then
8534 echo "$ac_t""$XGETTEXT" 1>&6
8536 echo "$ac_t""no" 1>&6
8540 USE_INCLUDED_LIBINTL
=yes
8544 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8546 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8547 nls_cv_header_intl
=intl
/libintl.h
8548 nls_cv_header_libgt
=intl
/libgettext.h
8551 if test "$XGETTEXT" != ":"; then
8552 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8555 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8562 # We need to process the po/ directory.
8566 nls_cv_header_intl
=intl
/libintl.h
8567 nls_cv_header_libgt
=intl
/libgettext.h
8573 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8574 # because some of the sources are only built for this goal.
8575 if test "$PACKAGE" = gettext; then
8577 USE_INCLUDED_LIBINTL
=yes
8580 for lang
in $ALL_LINGUAS; do
8581 GMOFILES
="$GMOFILES $lang.gmo"
8582 POFILES
="$POFILES $lang.po"
8598 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8599 if test "x$ALL_LINGUAS" = "x"; then
8602 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8603 echo "configure:8604: checking for catalogs to be installed" >&5
8604 if test "x$LINGUAS" = "x"; then
8605 LINGUAS
=$ALL_LINGUAS
8608 for lang
in $ALL_LINGUAS; do
8609 case " $LINGUAS " in
8610 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8613 LINGUAS
=$NEW_LINGUAS
8615 echo "$ac_t""$LINGUAS" 1>&6
8618 if test -n "$LINGUAS"; then
8619 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8623 if test $ac_cv_header_locale_h = yes; then
8624 INCLUDE_LOCALE_H
="#include <locale.h>"
8627 /* The system does not provide the header <locale.h>. Take care yourself. */"
8631 test -d intl || mkdir intl
8632 if test "$CATOBJEXT" = ".cat"; then
8633 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8634 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8635 echo "configure:8636: checking for linux/version.h" >&5
8636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8637 echo $ac_n "(cached) $ac_c" 1>&6
8639 cat > conftest.
$ac_ext <<EOF
8640 #line 8641 "configure"
8641 #include "confdefs.h"
8642 #include <linux/version.h>
8644 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8645 { (eval echo configure
:8646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8646 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8647 if test -z "$ac_err"; then
8649 eval "ac_cv_header_$ac_safe=yes"
8652 echo "configure: failed program was:" >&5
8653 cat conftest.
$ac_ext >&5
8655 eval "ac_cv_header_$ac_safe=no"
8659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8660 echo "$ac_t""yes" 1>&6
8663 echo "$ac_t""no" 1>&6
8668 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8670 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8671 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8673 if test "$PACKAGE" = "gettext"; then
8684 if test -n "$ac_aux_dir"; then
8685 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8687 if test -z "$MKINSTALLDIRS"; then
8688 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8695 test -d po || mkdir po
8696 if test "x$srcdir" != "x."; then
8697 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8698 posrcprefix
="$srcdir/"
8700 posrcprefix
="../$srcdir/"
8706 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8707 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8709 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8711 # Windows32 Registry support for specifying GCC installation paths.
8712 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8713 if test "${enable_win32_registry+set}" = set; then
8714 enableval
="$enable_win32_registry"
8719 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8720 echo "configure:8721: checking whether windows registry support is requested" >&5
8721 if test x
$enable_win32_registry != xno
; then
8722 cat >> confdefs.h
<<\EOF
8723 #define ENABLE_WIN32_REGISTRY 1
8726 echo "$ac_t""yes" 1>&6
8728 echo "$ac_t""no" 1>&6
8731 # Check if user specified a different registry key.
8732 case x
${enable_win32_registry} in
8735 gcc_cv_win32_registry_key
="$VERSION"
8738 # no registry lookup.
8739 gcc_cv_win32_registry_key
=''
8742 # user-specified key.
8743 gcc_cv_win32_registry_key
="$enable_win32_registry"
8747 if test x
$enable_win32_registry != xno
; then
8748 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8749 echo "configure:8750: checking registry key on windows hosts" >&5
8750 cat >> confdefs.h
<<EOF
8751 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8754 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8757 # Get an absolute path to the GCC top-level source directory
8763 # Conditionalize the makefile for this host machine.
8764 # Make-host contains the concatenation of all host makefile fragments
8765 # [there can be more than one]. This file is built by configure.frag.
8766 host_overrides
=Make-host
8767 dep_host_xmake_file
=
8768 for f
in ..
${host_xmake_file}
8770 if test -f ${srcdir}/config
/$f
8772 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8776 # Conditionalize the makefile for this target machine.
8777 # Make-target contains the concatenation of all host makefile fragments
8778 # [there can be more than one]. This file is built by configure.frag.
8779 target_overrides
=Make-target
8781 for f
in ..
${tmake_file}
8783 if test -f ${srcdir}/config
/$f
8785 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8789 # If the host doesn't support symlinks, modify CC in
8790 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8791 # Otherwise, we can use "CC=$(CC)".
8793 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8795 cc_set_by_configure
="\$(CC)"
8796 quoted_cc_set_by_configure
="\$(CC)"
8797 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8800 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8802 symbolic_link
="cp -p"
8806 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8807 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8808 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8812 out_object_file
=`basename $out_file .c`.o
8815 for f
in $tm_file; do
8818 tm_file_list
="${tm_file_list} $f" ;;
8819 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8824 for f
in $host_xm_file; do
8826 auto-host.h | gansidecl.h | hwint.h
)
8827 host_xm_file_list
="${host_xm_file_list} $f" ;;
8828 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8833 for f
in $build_xm_file; do
8835 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8836 build_xm_file_list
="${build_xm_file_list} $f" ;;
8837 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8841 # Define macro CROSS_COMPILE in compilation
8842 # if this is a cross-compiler.
8843 # Also use all.cross instead of all.internal
8844 # and add cross-make to Makefile.
8845 cross_overrides
="/dev/null"
8846 if test x
$host != x
$target
8848 cross_defines
="CROSS=-DCROSS_COMPILE"
8849 cross_overrides
="${topdir}/cross-make"
8852 # If this is a cross-compiler that does not
8853 # have its own set of headers then define
8856 # If this is using newlib, then define inhibit_libc in
8857 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8858 # libgcc.a, but that's OK because newlib should have its own version of
8861 if test x
$host != x
$target && test x
$with_headers = x
; then
8862 inhibit_libc
=-Dinhibit_libc
8864 if test x
$with_newlib = xyes
; then
8865 inhibit_libc
=-Dinhibit_libc
8870 # When building gcc with a cross-compiler, we need to fix a few things.
8871 # This must come after cross-make as we want all.build to override
8873 build_overrides
="/dev/null"
8874 if test x
$build != x
$host
8876 build_overrides
="${topdir}/build-make"
8879 # Expand extra_headers to include complete path.
8880 # This substitutes for lots of t-* files.
8882 if test "x$extra_headers" = x
8885 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8886 for file in $extra_headers;
8888 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8892 if test x
$use_collect2 = xno
; then
8896 # Add a definition of USE_COLLECT2 if system wants one.
8897 # Also tell toplev.c what to do.
8898 # This substitutes for lots of t-* files.
8899 if test x
$use_collect2 = x
8904 will_use_collect2
="collect2"
8905 maybe_use_collect2
="-DUSE_COLLECT2"
8909 # Set MD_DEPS if the real md file is in md.pre-cpp.
8910 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8911 # for line oriented comments, so we must always use a GNU cpp. If
8912 # building gcc with a cross compiler, use the cross compiler just
8913 # built. Otherwise, we can use the cpp just built.
8915 if test "x$md_cppflags" = x
8917 md_file_sub
=$srcdir/config
/$md_file
8922 # If we have gas in the build tree, make a link to it.
8923 if test -f ..
/gas
/Makefile
; then
8924 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8927 # If we have nm in the build tree, make a link to it.
8928 if test -f ..
/binutils
/Makefile
; then
8929 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8932 # If we have ld in the build tree, make a link to it.
8933 if test -f ..
/ld
/Makefile
; then
8934 # if test x$use_collect2 = x; then
8935 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8937 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8941 # Figure out what assembler alignment features are present.
8942 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8943 echo "configure:8944: checking assembler alignment features" >&5
8945 gcc_cv_as_alignment_features
=
8946 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8947 if test -x "$DEFAULT_ASSEMBLER"; then
8948 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8949 elif test -x "$AS"; then
8951 elif test -x as
$host_exeext; then
8952 # Build using assembler in the current directory.
8953 gcc_cv_as
=.
/as
$host_exeext
8954 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8955 # Single tree build which includes gas.
8956 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8958 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8959 if test x
$gcc_cv_gas_version != x
; then
8963 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8964 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8965 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8966 # Gas version 2.6 and later support for .balign and .p2align.
8967 # bytes to skip when using .p2align.
8968 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
8969 gcc_cv_as_alignment_features
=".balign and .p2align"
8970 cat >> confdefs.h
<<\EOF
8971 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8975 # Gas version 2.8 and later support specifying the maximum
8976 # bytes to skip when using .p2align.
8977 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
8978 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8979 cat >> confdefs.h
<<\EOF
8980 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8985 elif test x
$host = x
$target; then
8987 # Search the same directories that the installed compiler will
8988 # search. Else we may find the wrong assembler and lose. If we
8989 # do not find a suitable assembler binary, then try the user's
8992 # Also note we have to check MD_EXEC_PREFIX before checking the
8993 # user's path. Unfortunately, there is no good way to get at the
8994 # value of MD_EXEC_PREFIX here. So we do a brute force search
8995 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8996 # to be fixed as part of the make/configure rewrite too.
8998 if test "x$exec_prefix" = xNONE
; then
8999 if test "x$prefix" = xNONE
; then
9000 test_prefix
=/usr
/local
9005 test_prefix
=$exec_prefix
9008 # If the loop below does not find an assembler, then use whatever
9009 # one we can find in the users's path.
9013 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
9014 $test_prefix/lib/gcc-lib/$target \
9015 /usr/lib/gcc/$target/$gcc_version \
9016 /usr/lib/gcc/$target \
9017 $test_prefix/$target/bin/$target/$gcc_version \
9018 $test_prefix/$target/bin \
9023 /bsd43/usr/lib/cmplrs/cc \
9024 /usr/cross64/usr/bin \
9025 /usr/lib/cmplrs/cc \
9026 /sysv/usr/lib/cmplrs/cc \
9027 /svr4/usr/lib/cmplrs/cc \
9030 for dir
in $test_dirs; do
9031 if test -f $dir/as
$host_exeext; then
9032 gcc_cv_as
=$dir/as
$host_exeext
9037 if test x
$gcc_cv_as != x
; then
9038 # Check if we have .balign and .p2align
9039 echo ".balign 4" > conftest.s
9040 echo ".p2align 2" >> conftest.s
9041 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9042 gcc_cv_as_alignment_features
=".balign and .p2align"
9043 cat >> confdefs.h
<<\EOF
9044 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9048 rm -f conftest.s conftest.o
9049 # Check if specifying the maximum bytes to skip when
9050 # using .p2align is supported.
9051 echo ".p2align 4,,7" > conftest.s
9052 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9053 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9054 cat >> confdefs.h
<<\EOF
9055 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9059 rm -f conftest.s conftest.o
9061 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9063 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9064 echo "configure:9065: checking assembler subsection support" >&5
9065 gcc_cv_as_subsections
=
9066 if test x
$gcc_cv_as != x
; then
9067 # Check if we have .subsection
9068 echo ".subsection 1" > conftest.s
9069 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9070 gcc_cv_as_subsections
=".subsection"
9071 if test -x nm
$host_exeext; then
9072 gcc_cv_nm
=.
/nm
$host_exeext
9073 elif test x
$host = x
$target; then
9075 gcc_cv_nm
=nm
$host_exeext
9077 if test x
$gcc_cv_nm != x
; then
9078 cat > conftest.s
<<EOF
9079 conftest_label1: .word 0
9081 conftest_label2: .word 0
9084 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9085 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9086 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9087 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9090 gcc_cv_as_subsections
="working .subsection -1"
9091 cat >> confdefs.h
<<\EOF
9092 #define HAVE_GAS_SUBSECTION_ORDERING 1
9099 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9101 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9103 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9104 echo "configure:9105: checking assembler weak support" >&5
9106 if test x
$gcc_cv_as != x
; then
9107 # Check if we have .weak
9108 echo " .weak foobar" > conftest.s
9109 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9110 cat >> confdefs.h
<<\EOF
9111 #define HAVE_GAS_WEAK 1
9114 gcc_cv_as_weak
="yes"
9116 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9118 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9120 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9121 echo "configure:9122: checking assembler hidden support" >&5
9123 if test x
$gcc_cv_as != x
; then
9124 # Check if we have .hidden
9125 echo " .hidden foobar" > conftest.s
9126 echo "foobar:" >> conftest.s
9127 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9128 cat >> confdefs.h
<<\EOF
9129 #define HAVE_GAS_HIDDEN 1
9132 gcc_cv_as_hidden
="yes"
9134 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9136 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9140 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9141 echo "configure:9142: checking assembler .register pseudo-op support" >&5
9142 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9143 echo $ac_n "(cached) $ac_c" 1>&6
9146 gcc_cv_as_register_pseudo_op
=unknown
9147 if test x
$gcc_cv_as != x
; then
9148 # Check if we have .register
9149 echo ".register %g2, #scratch" > conftest.s
9150 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9151 gcc_cv_as_register_pseudo_op
=yes
9153 gcc_cv_as_register_pseudo_op
=no
9155 rm -f conftest.s conftest.o
9160 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9161 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9162 cat >> confdefs.h
<<\EOF
9163 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9168 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9169 echo "configure:9170: checking assembler supports -relax" >&5
9170 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9171 echo $ac_n "(cached) $ac_c" 1>&6
9174 gcc_cv_as_relax_opt
=unknown
9175 if test x
$gcc_cv_as != x
; then
9176 # Check if gas supports -relax
9177 echo ".text" > conftest.s
9178 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9179 gcc_cv_as_relax_opt
=yes
9181 gcc_cv_as_relax_opt
=no
9183 rm -f conftest.s conftest.o
9188 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9189 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9190 cat >> confdefs.h
<<\EOF
9191 #define HAVE_AS_RELAX_OPTION 1
9198 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9199 echo "configure:9200: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9200 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9204 if test -n "$gcc_cv_as"; then
9205 echo ".xword foo" > conftest.s
9206 gcc_cv_as_flags64
=no
9207 for flag
in "-xarch=v9" "-64 -Av9"; do
9208 if $gcc_cv_as $flag -o conftest.o conftest.s \
9209 > /dev
/null
2>&1; then
9210 gcc_cv_as_flags64
=$flag
9214 rm -f conftest.s conftest.o
9216 if test "$gas" = yes; then
9217 gcc_cv_as_flags64
="-64 -Av9"
9219 gcc_cv_as_flags64
="-xarch=v9"
9225 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9226 if test "x$gcc_cv_as_flags64" = xno
; then
9228 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9229 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9232 cat >> confdefs.h
<<EOF
9233 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9238 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9242 if test "x$gcc_cv_as_flags64" != xno
; then
9243 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9244 echo "configure:9245: checking for assembler offsetable %lo() support" >&5
9245 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
9249 gcc_cv_as_offsetable_lo10
=unknown
9250 if test "x$gcc_cv_as" != x
; then
9251 # Check if assembler has offsetable %lo()
9252 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9253 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9254 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9256 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9257 > /dev
/null
2>&1; then
9258 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9259 gcc_cv_as_offsetable_lo10
=no
9261 gcc_cv_as_offsetable_lo10
=yes
9264 gcc_cv_as_offsetable_lo10
=no
9266 rm -f conftest.s conftest.o conftest1.s conftest1.o
9271 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9272 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9273 cat >> confdefs.h
<<\EOF
9274 #define HAVE_AS_OFFSETABLE_LO10 1
9282 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9283 echo "configure:9284: checking assembler instructions" >&5
9284 gcc_cv_as_instructions
=
9285 if test x
$gcc_cv_as != x
; then
9286 set "filds fists" "filds mem; fists mem"
9289 echo "$2" > conftest.s
9290 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9291 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9292 cat >> confdefs.h
<<EOF
9293 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9299 rm -f conftest.s conftest.o
9301 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9305 # Figure out what language subdirectories are present.
9306 # Look if the user specified --enable-languages="..."; if not, use
9307 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9309 if test x
"${enable_languages+set}" != xset
; then
9310 if test x
"${LANGUAGES+set}" = xset
; then
9311 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9313 enable_languages
=all
9316 if test x
"${enable_languages}" = x
; then
9317 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9321 for lang
in ${srcdir}/*/config-lang.
in ..
9325 # The odd quoting in the next line works around
9326 # an apparent bug in bash 1.12 on linux.
9327 ${srcdir}/[*]/config-lang.
in) ;;
9329 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9330 if test "x$lang_alias" = x
9332 echo "$lang doesn't set \$language." 1>&2
9335 if test x
"${enable_languages}" = xall
; then
9338 case "${enable_languages}" in
9339 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9347 if test x"${add_this_lang}" = xyes; then
9349 ${srcdir}/ada/config-lang.in)
9350 if test x$gnat = xyes ; then
9351 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9355 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9363 # Make gthr-default.h if we have a thread file.
9365 if test $thread_file != single; then
9366 rm -f gthr-default.h
9367 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9368 gthread_flags
=-DHAVE_GTHR_DEFAULT
9372 # Find out what GC implementation we want, or may, use.
9373 # Check whether --with-gc or --without-gc was given.
9374 if test "${with_gc+set}" = set; then
9381 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9385 if test $ac_cv_func_mmap_anywhere = yes \
9386 ||
test $ac_cv_func_valloc = yes; then
9394 echo "Using $GGC for garbage collection."
9396 # Use the system's zlib library.
9397 zlibdir
=-L..
/..
/zlib
9398 zlibinc
="-I\$(srcdir)/../../zlib"
9399 # Check whether --with-system-zlib or --without-system-zlib was given.
9400 if test "${with_system_zlib+set}" = set; then
9401 withval
="$with_system_zlib"
9410 # Build a new-abi (c++) system
9411 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9412 if test "${enable_new_gxx_abi+set}" = set; then
9413 enableval
="$enable_new_gxx_abi"
9414 cat >> confdefs.h
<<\EOF
9415 #define ENABLE_NEW_GXX_ABI 1
9418 GXX_ABI_FLAG
='-fnew-abi'
9419 echo "Building a new-abi g++ compiler."
9425 # Build a new-libstdc++ system (ie libstdc++-v3)
9426 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9427 echo "configure:9428: checking for libstdc++ to install" >&5
9428 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9429 if test "${enable_libstdcxx_v3+set}" = set; then
9430 enableval
="$enable_libstdcxx_v3"
9431 enable_libstdcxx_v3
="$enableval"
9433 enable_libstdcxx_v3
=no
9437 if test x
$enable_libstdcxx_v3 = xyes
; then
9438 echo "$ac_t""v3" 1>&6
9441 echo "$ac_t""v2" 1>&6
9444 cat >> confdefs.h
<<EOF
9445 #define ENABLE_STD_NAMESPACE $ac_esn
9450 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9451 echo "configure:9452: checking whether to enable maintainer-specific portions of Makefiles" >&5
9452 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9453 if test "${enable_maintainer_mode+set}" = set; then
9454 enableval
="$enable_maintainer_mode"
9455 maintainer_mode
=$enableval
9461 echo "$ac_t""$maintainer_mode" 1>&6
9463 if test "$maintainer_mode" = "yes"; then
9469 # Make empty files to contain the specs and options for each language.
9470 # Then add #include lines to for a compiler that has specs and/or options.
9475 rm -f specs.h options.h gencheck.h
9476 touch specs.h options.h gencheck.h
9477 for subdir
in .
$subdirs
9479 if test -f $srcdir/$subdir/lang-specs.h
; then
9480 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9481 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9483 if test -f $srcdir/$subdir/lang-options.h
; then
9484 echo "#include \"$subdir/lang-options.h\"" >>options.h
9485 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9487 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9488 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9489 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9493 # These (without "all_") are set in each config-lang.in.
9494 # `language' must be a single word so is spelled singularly.
9500 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9501 # List of language makefile fragments.
9506 # Add the language fragments.
9507 # Languages are added via two mechanisms. Some information must be
9508 # recorded in makefile variables, these are defined in config-lang.in.
9509 # We accumulate them and plug them into the main Makefile.
9510 # The other mechanism is a set of hooks for each of the main targets
9511 # like `clean', `install', etc.
9513 language_fragments
="Make-lang"
9514 language_hooks
="Make-hooks"
9517 for s
in ..
$subdirs
9529 .
${srcdir}/$s/config-lang.
in
9530 if test "x$language" = x
9532 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9535 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9536 all_languages
="$all_languages $language"
9537 if test "x$boot_language" = xyes
9539 all_boot_languages
="$all_boot_languages $language"
9541 all_compilers
="$all_compilers $compilers"
9542 all_stagestuff
="$all_stagestuff $stagestuff"
9543 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9544 all_headers
="$all_headers $headers"
9545 all_outputs
="$all_outputs $outputs"
9546 if test x
$outputs = x
9548 oldstyle_subdirs
="$oldstyle_subdirs $s"
9550 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9554 # Since we can't use `::' targets, we link each language in
9555 # with a set of hooks, reached indirectly via lang.${target}.
9559 target_list
="all.build all.cross start.encap rest.encap \
9561 install-normal install-common install-info install-man \
9563 mostlyclean clean distclean extraclean maintainer-clean \
9564 stage1 stage2 stage3 stage4"
9565 for t
in $target_list
9568 for lang
in ..
$all_languages
9570 if test $lang != ".."; then
9574 echo "lang.$t: $x" >> Make-hooks
9577 # If we're not building in srcdir, create .gdbinit.
9579 if test ! -f Makefile.
in; then
9580 echo "dir ." > .gdbinit
9581 echo "dir ${srcdir}" >> .gdbinit
9582 if test x
$gdb_needs_out_file_path = xyes
9584 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9586 if test "x$subdirs" != x
; then
9589 echo "dir ${srcdir}/$s" >> .gdbinit
9592 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9595 # Define variables host_canonical and build_canonical
9596 # because some Cygnus local changes in the Makefile depend on them.
9597 build_canonical
=${build}
9598 host_canonical
=${host}
9600 if test "${host}" != "${target}" ; then
9601 target_subdir
=${target}/
9607 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9608 # absolute path for gcc_tooldir based on inserting the number of up-directory
9609 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9610 # $(libsubdir)/@(unlibsubdir) based path.
9611 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9612 # make and thus we'd get different behavior depending on where we built the
9614 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9615 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9617 # An explanation of the sed strings:
9618 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9619 # -e 's|/$||' match a trailing forward slash and eliminates it
9620 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9621 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9623 # (*) Note this pattern overwrites the first character of the string
9624 # with a forward slash if one is not already present. This is not a
9625 # problem because the exact names of the sub-directories concerned is
9626 # unimportant, just the number of them matters.
9628 # The practical upshot of these patterns is like this:
9630 # prefix exec_prefix result
9631 # ------ ----------- ------
9633 # /foo/ /foo/bar ../
9634 # /foo /foo/bar/ ../
9635 # /foo/ /foo/bar/ ../
9636 # /foo /foo/bar/ugg ../../
9639 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9644 # Nothing to do for FLOAT_H, float_format already handled.
9648 # Process the language and host/target makefile fragments.
9649 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9651 # Substitute configuration variables
9710 # Echo that links are built
9711 if test x
$host = x
$target
9719 if test x
$host != x
$build
9721 str3
=" on a $build system"
9724 if test "x$str2" != x ||
test "x$str3" != x
9729 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9731 if test "x$str2" != x ||
test "x$str3" != x
9733 echo " ${str2}${str3}." 1>&2
9736 # Truncate the target if necessary
9737 if test x
$host_truncate_target != x
; then
9738 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9741 # Configure the subdirectories
9742 # AC_CONFIG_SUBDIRS($subdirs)
9744 # Create the Makefile
9745 # and configure language subdirectories
9747 cat > confcache
<<\EOF
9748 # This file is a shell script that caches the results of configure
9749 # tests run on this system so they can be shared between configure
9750 # scripts and configure runs. It is not useful on other systems.
9751 # If it contains results you don't want to keep, you may remove or edit it.
9753 # By default, configure uses ./config.cache as the cache file,
9754 # creating it if it does not exist already. You can give configure
9755 # the --cache-file=FILE option to use a different cache file; that is
9756 # what configure does when it calls configure scripts in
9757 # subdirectories, so they share the cache.
9758 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9759 # config.status only pays attention to the cache file if you give it the
9760 # --recheck option to rerun configure.
9763 # The following way of writing the cache mishandles newlines in values,
9764 # but we know of no workaround that is simple, portable, and efficient.
9765 # So, don't put newlines in cache variables' values.
9766 # Ultrix sh set writes to stderr and can't be redirected directly,
9767 # and sets the high bit in the cache file unless we assign to the vars.
9769 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9771 # `set' does not quote correctly, so add quotes (double-quote substitution
9772 # turns \\\\ into \\, and sed turns \\ into \).
9774 -e "s/'/'\\\\''/g" \
9775 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9778 # `set' quotes correctly as required by POSIX, so do not add quotes.
9779 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9782 if cmp -s $cache_file confcache
; then
9785 if test -w $cache_file; then
9786 echo "updating cache $cache_file"
9787 cat confcache
> $cache_file
9789 echo "not updating unwritable cache $cache_file"
9794 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9796 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9797 # Let make expand exec_prefix.
9798 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9800 # Any assignment to VPATH causes Sun make to only execute
9801 # the first set of double-colon rules, so remove it if not needed.
9802 # If there is a colon in the path, we need to keep it.
9803 if test "x$srcdir" = x.
; then
9804 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9807 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9809 DEFS
=-DHAVE_CONFIG_H
9811 # Without the "./", some shells look in PATH for config.status.
9812 : ${CONFIG_STATUS=./config.status}
9814 echo creating
$CONFIG_STATUS
9815 rm -f $CONFIG_STATUS
9816 cat > $CONFIG_STATUS <<EOF
9818 # Generated automatically by configure.
9819 # Run this file to recreate the current configuration.
9820 # This directory was configured as follows,
9821 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9823 # $0 $ac_configure_args
9825 # Compiler output produced by configure, useful for debugging
9826 # configure, is in ./config.log if it exists.
9828 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9831 case "\$ac_option" in
9832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9833 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9834 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9835 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9836 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9838 -help | --help | --hel | --he | --h)
9839 echo "\$ac_cs_usage"; exit 0 ;;
9840 *) echo "\$ac_cs_usage"; exit 1 ;;
9844 ac_given_srcdir=$srcdir
9846 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9848 cat >> $CONFIG_STATUS <<EOF
9850 # Protect against being on the right side of a sed subst in config.status.
9851 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9852 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9856 s%@CFLAGS@%$CFLAGS%g
9857 s%@CPPFLAGS@%$CPPFLAGS%g
9858 s%@CXXFLAGS@%$CXXFLAGS%g
9859 s%@FFLAGS@%$FFLAGS%g
9861 s%@LDFLAGS@%$LDFLAGS%g
9863 s%@exec_prefix@%$exec_prefix%g
9864 s%@prefix@%$prefix%g
9865 s%@program_transform_name@%$program_transform_name%g
9866 s%@bindir@%$bindir%g
9867 s%@sbindir@%$sbindir%g
9868 s%@libexecdir@%$libexecdir%g
9869 s%@datadir@%$datadir%g
9870 s%@sysconfdir@%$sysconfdir%g
9871 s%@sharedstatedir@%$sharedstatedir%g
9872 s%@localstatedir@%$localstatedir%g
9873 s%@libdir@%$libdir%g
9874 s%@includedir@%$includedir%g
9875 s%@oldincludedir@%$oldincludedir%g
9876 s%@infodir@%$infodir%g
9877 s%@mandir@%$mandir%g
9879 s%@host_alias@%$host_alias%g
9880 s%@host_cpu@%$host_cpu%g
9881 s%@host_vendor@%$host_vendor%g
9882 s%@host_os@%$host_os%g
9883 s%@target@%$target%g
9884 s%@target_alias@%$target_alias%g
9885 s%@target_cpu@%$target_cpu%g
9886 s%@target_vendor@%$target_vendor%g
9887 s%@target_os@%$target_os%g
9889 s%@build_alias@%$build_alias%g
9890 s%@build_cpu@%$build_cpu%g
9891 s%@build_vendor@%$build_vendor%g
9892 s%@build_os@%$build_os%g
9894 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9895 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9896 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9897 s%@SET_MAKE@%$SET_MAKE%g
9900 s%@LEXLIB@%$LEXLIB%g
9903 s%@RANLIB@%$RANLIB%g
9905 s%@INSTALL@%$INSTALL%g
9906 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9907 s%@INSTALL_DATA@%$INSTALL_DATA%g
9910 s%@MAKEINFO@%$MAKEINFO%g
9911 s%@BUILD_INFO@%$BUILD_INFO%g
9912 s%@INSTALL_INFO@%$INSTALL_INFO%g
9913 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9914 s%@vfprintf@%$vfprintf%g
9915 s%@doprint@%$doprint%g
9916 s%@manext@%$manext%g
9917 s%@objext@%$objext%g
9918 s%@PACKAGE@%$PACKAGE%g
9919 s%@VERSION@%$VERSION%g
9920 s%@ALLOCA@%$ALLOCA%g
9921 s%@USE_NLS@%$USE_NLS%g
9922 s%@MSGFMT@%$MSGFMT%g
9923 s%@GMSGFMT@%$GMSGFMT%g
9924 s%@XGETTEXT@%$XGETTEXT%g
9925 s%@GENCAT@%$GENCAT%g
9926 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9927 s%@CATALOGS@%$CATALOGS%g
9928 s%@CATOBJEXT@%$CATOBJEXT%g
9929 s%@DATADIRNAME@%$DATADIRNAME%g
9930 s%@GMOFILES@%$GMOFILES%g
9931 s%@INSTOBJEXT@%$INSTOBJEXT%g
9932 s%@INTLDEPS@%$INTLDEPS%g
9933 s%@INTLLIBS@%$INTLLIBS%g
9934 s%@INTLOBJS@%$INTLOBJS%g
9935 s%@POFILES@%$POFILES%g
9937 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9939 s%@GT_YES@%$GT_YES%g
9940 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9942 s%@inhibit_libc@%$inhibit_libc%g
9943 s%@gthread_flags@%$gthread_flags%g
9945 s%@zlibdir@%$zlibdir%g
9946 s%@zlibinc@%$zlibinc%g
9947 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9949 s%@build_canonical@%$build_canonical%g
9950 s%@host_canonical@%$host_canonical%g
9951 s%@target_subdir@%$target_subdir%g
9952 s%@gcc_tooldir@%$gcc_tooldir%g
9953 s%@dollar@%$dollar%g
9954 s%@objdir@%$objdir%g
9955 s%@subdirs@%$subdirs%g
9956 s%@all_boot_languages@%$all_boot_languages%g
9957 s%@all_compilers@%$all_compilers%g
9958 s%@all_diff_excludes@%$all_diff_excludes%g
9959 s%@all_headers@%$all_headers%g
9960 s%@all_lang_makefiles@%$all_lang_makefiles%g
9961 s%@all_languages@%$all_languages%g
9962 s%@all_lib2funcs@%$all_lib2funcs%g
9963 s%@all_stagestuff@%$all_stagestuff%g
9964 s%@build_exeext@%$build_exeext%g
9965 s%@build_install_headers_dir@%$build_install_headers_dir%g
9966 s%@build_xm_file_list@%$build_xm_file_list%g
9967 s%@cc_set_by_configure@%$cc_set_by_configure%g
9968 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9969 s%@cpp_install_dir@%$cpp_install_dir%g
9970 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9971 s%@dep_tmake_file@%$dep_tmake_file%g
9972 s%@extra_c_flags@%$extra_c_flags%g
9973 s%@extra_c_objs@%$extra_c_objs%g
9974 s%@extra_cpp_objs@%$extra_cpp_objs%g
9975 s%@extra_cxx_objs@%$extra_cxx_objs%g
9976 s%@extra_headers_list@%$extra_headers_list%g
9977 s%@extra_objs@%$extra_objs%g
9978 s%@extra_parts@%$extra_parts%g
9979 s%@extra_passes@%$extra_passes%g
9980 s%@extra_programs@%$extra_programs%g
9981 s%@float_h_file@%$float_h_file%g
9982 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9983 s%@gcc_version@%$gcc_version%g
9984 s%@gcc_version_trigger@%$gcc_version_trigger%g
9985 s%@host_exeext@%$host_exeext%g
9986 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9987 s%@host_xm_file_list@%$host_xm_file_list%g
9988 s%@install@%$install%g
9989 s%@lang_options_files@%$lang_options_files%g
9990 s%@lang_specs_files@%$lang_specs_files%g
9991 s%@lang_tree_files@%$lang_tree_files%g
9992 s%@local_prefix@%$local_prefix%g
9993 s%@maybe_use_collect2@%$maybe_use_collect2%g
9994 s%@md_file@%$md_file%g
9995 s%@objc_boehm_gc@%$objc_boehm_gc%g
9996 s%@out_file@%$out_file%g
9997 s%@out_object_file@%$out_object_file%g
9998 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9999 s%@symbolic_link@%$symbolic_link%g
10000 s%@thread_file@%$thread_file%g
10001 s%@tm_file_list@%$tm_file_list%g
10002 s%@will_use_collect2@%$will_use_collect2%g
10003 /@target_overrides@/r $target_overrides
10004 s%@target_overrides@%%g
10005 /@host_overrides@/r $host_overrides
10006 s%@host_overrides@%%g
10007 s%@cross_defines@%$cross_defines%g
10008 /@cross_overrides@/r $cross_overrides
10009 s%@cross_overrides@%%g
10010 /@build_overrides@/r $build_overrides
10011 s%@build_overrides@%%g
10012 /@language_fragments@/r $language_fragments
10013 s%@language_fragments@%%g
10014 /@language_hooks@/r $language_hooks
10015 s%@language_hooks@%%g
10020 cat >> $CONFIG_STATUS <<\EOF
10022 # Split the substitutions into bite-sized pieces for seds with
10023 # small command number limits, like on Digital OSF/1 and HP-UX.
10024 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10025 ac_file
=1 # Number of current file.
10026 ac_beg
=1 # First line for current file.
10027 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10030 while $ac_more_lines; do
10031 if test $ac_beg -gt 1; then
10032 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10034 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10036 if test ! -s conftest.s
$ac_file; then
10037 ac_more_lines
=false
10038 rm -f conftest.s
$ac_file
10040 if test -z "$ac_sed_cmds"; then
10041 ac_sed_cmds
="sed -f conftest.s$ac_file"
10043 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10045 ac_file
=`expr $ac_file + 1`
10047 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10050 if test -z "$ac_sed_cmds"; then
10055 cat >> $CONFIG_STATUS <<EOF
10057 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
10059 cat >> $CONFIG_STATUS <<\EOF
10060 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10061 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10063 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10064 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10065 *) ac_file_in
="${ac_file}.in" ;;
10068 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10070 # Remove last slash and all that follows it. Not all systems have dirname.
10071 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10072 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10073 # The file is in a subdirectory.
10074 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10075 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10076 # A "../" for each directory in $ac_dir_suffix.
10077 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10079 ac_dir_suffix
= ac_dots
=
10082 case "$ac_given_srcdir" in
10084 if test -z "$ac_dots"; then top_srcdir
=.
10085 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10086 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10087 *) # Relative path.
10088 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10089 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10093 echo creating
"$ac_file"
10095 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10097 *Makefile
*) ac_comsub
="1i\\
10098 # $configure_input" ;;
10102 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10104 s%@configure_input@%$configure_input%g
10105 s%@srcdir@%$srcdir%g
10106 s%@top_srcdir@%$top_srcdir%g
10107 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10111 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10112 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10114 # ac_d sets the value in "#define NAME VALUE" lines.
10115 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10116 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10119 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10120 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10121 ac_uB
='\([ ]\)%\1#\2define\3'
10124 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10125 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10126 ac_eB
='$%\1#\2define\3'
10130 if test "${CONFIG_HEADERS+set}" != set; then
10132 cat >> $CONFIG_STATUS <<EOF
10133 CONFIG_HEADERS="auto-host.h:config.in"
10135 cat >> $CONFIG_STATUS <<\EOF
10137 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10138 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10140 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10141 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10142 *) ac_file_in
="${ac_file}.in" ;;
10145 echo creating
$ac_file
10147 rm -f conftest.frag conftest.
in conftest.out
10148 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10149 cat $ac_file_inputs > conftest.
in
10153 # Transform confdefs.h into a sed script conftest.vals that substitutes
10154 # the proper values into config.h.in to produce config.h. And first:
10155 # Protect against being on the right side of a sed subst in config.status.
10156 # Protect against being in an unquoted here document in config.status.
10157 rm -f conftest.vals
10158 cat > conftest.hdr
<<\EOF
10161 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10165 sed -n -f conftest.hdr confdefs.h > conftest.vals
10168 # This sed command replaces #undef with comments. This is necessary, for
10169 # example, in the case of _POSIX_SOURCE, which is predefined and required
10170 # on some systems where configure will not decide to define it.
10171 cat >> conftest.vals <<\EOF
10172 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10175 # Break up conftest.vals because some shells have a limit on
10176 # the size of here documents, and old seds have small limits too.
10178 rm -f conftest.tail
10181 ac_lines=`grep -c . conftest.vals
`
10182 # grep -c gives empty output for an empty file on some AIX systems.
10183 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10184 # Write a limited-size here document to conftest.frag.
10185 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10186 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10188 sed -f conftest.frag conftest.in > conftest.out
10190 mv conftest.out conftest.in
10191 ' >> $CONFIG_STATUS
10192 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10193 rm -f conftest.vals
10194 mv conftest.tail conftest.vals
10196 rm -f conftest.vals
10198 cat >> $CONFIG_STATUS <<\EOF
10199 rm -f conftest.frag conftest.h
10200 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10201 cat conftest.in >> conftest.h
10203 if cmp -s $ac_file conftest.h 2>/dev/null; then
10204 echo "$ac_file is unchanged"
10207 # Remove last slash and all that follows it. Not all systems have dirname.
10208 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10209 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10210 # The file is in a subdirectory.
10211 test ! -d "$ac_dir" && mkdir "$ac_dir"
10214 mv conftest.h $ac_file
10220 cat >> $CONFIG_STATUS <<EOF
10221 ac_sources="$nls_cv_header_libgt"
10222 ac_dests="$nls_cv_header_intl"
10225 cat >> $CONFIG_STATUS <<\EOF
10226 srcdir=$ac_given_srcdir
10227 while test -n "$ac_sources"; do
10228 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10229 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10231 echo "linking $srcdir/$ac_source to $ac_dest"
10233 if test ! -r $srcdir/$ac_source; then
10234 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10238 # Make relative symlinks.
10239 # Remove last slash and all that follows it. Not all systems have dirname.
10240 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10241 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10242 # The dest file is in a subdirectory.
10243 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10244 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10245 # A "../" for each directory in $ac_dest_dir_suffix.
10246 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10248 ac_dest_dir_suffix= ac_dots=
10252 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10253 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10256 # Make a symlink if possible; otherwise try a hard link.
10257 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10258 ln $srcdir/$ac_source $ac_dest; then :
10260 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10264 cat >> $CONFIG_STATUS <<EOF
10270 target_alias='${target_alias}'
10272 subdirs='${subdirs}'
10273 oldstyle_subdirs='${oldstyle_subdirs}'
10274 symbolic_link='${symbolic_link}'
10275 program_transform_set='${program_transform_set}'
10276 program_transform_name='${program_transform_name}'
10277 dep_host_xmake_file='${dep_host_xmake_file}'
10278 host_xmake_file='${host_xmake_file}'
10279 dep_tmake_file='${dep_tmake_file}'
10280 tmake_file='${tmake_file}'
10281 thread_file='${thread_file}'
10282 gcc_version='${gcc_version}'
10283 gcc_version_trigger='${gcc_version_trigger}'
10284 local_prefix='${local_prefix}'
10285 build_install_headers_dir='${build_install_headers_dir}'
10286 build_exeext='${build_exeext}'
10287 host_exeext='${host_exeext}'
10288 out_file='${out_file}'
10289 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10290 SET_MAKE='${SET_MAKE}'
10291 target_list='${target_list}'
10292 target_overrides='${target_overrides}'
10293 host_overrides='${host_overrides}'
10294 cross_defines='${cross_defines}'
10295 cross_overrides='${cross_overrides}'
10296 build_overrides='${build_overrides}'
10297 cpp_install_dir='${cpp_install_dir}'
10300 cat >> $CONFIG_STATUS <<\EOF
10301 case "$CONFIG_FILES" in *po/Makefile.in*)
10302 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10305 . $srcdir/configure.lang
10306 case x$CONFIG_HEADERS in
10307 xauto-host.h:config.in)
10310 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10311 # bootstrapping and the installation procedure can still use
10312 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10313 # FLAGS_TO_PASS has been modified to solve the problem there.
10314 # This is virtually a duplicate of what happens in configure.lang; we do
10315 # an extra check to make sure this only happens if ln -s can be used.
10316 if test "$symbolic_link" = "ln -s"; then
10317 for d in .. ${subdirs} ; do
10318 if test $d != ..; then
10321 for t in stage1 stage2 stage3 stage4 include
10324 $symbolic_link ../$t $t 2>/dev/null
10330 # Avoid having to add intl to our include paths.
10331 if test -f intl/libintl.h; then
10332 echo creating libintl.h
10333 echo '#include "intl/libintl.h"' >libintl.h
10338 chmod +x $CONFIG_STATUS
10339 rm -fr confdefs* $ac_clean_files
10340 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1