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 --disable-shared don't provide a shared libgcc."
59 --enable-nls use Native Language Support (default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 --with-gc={simple,page} Choose the garbage collection mechanism to use
78 --with-system-zlib use installed libz"
81 select the new abi for g++. You must select an ABI
82 at configuration time, so that the correct runtime
83 support is built. You cannot mix ABIs."
86 enable libstdc++-v3 for building and installation"
88 --enable-maintainer-mode enable make rules and dependencies not useful
89 (and sometimes confusing) to the casual installer"
91 # Initialize some variables set by options.
92 # The variables have the same names as the options, with
93 # dashes changed to underlines.
95 cache_file
=.
/config.cache
104 program_transform_name
=s
,x
,x
,
112 bindir
='${exec_prefix}/bin'
113 sbindir
='${exec_prefix}/sbin'
114 libexecdir
='${exec_prefix}/libexec'
115 datadir
='${prefix}/share'
116 sysconfdir
='${prefix}/etc'
117 sharedstatedir
='${prefix}/com'
118 localstatedir
='${prefix}/var'
119 libdir
='${exec_prefix}/lib'
120 includedir
='${prefix}/include'
121 oldincludedir
='/usr/include'
122 infodir
='${prefix}/info'
123 mandir
='${prefix}/man'
125 # Initialize some other variables.
128 SHELL
=${CONFIG_SHELL-/bin/sh}
129 # Maximum number of lines to put in a shell here document.
136 # If the previous option needs an argument, assign it.
137 if test -n "$ac_prev"; then
138 eval "$ac_prev=\$ac_option"
144 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
148 # Accept the important Cygnus configure options, so we can diagnose typos.
152 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
154 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
155 bindir
="$ac_optarg" ;;
157 -build |
--build |
--buil |
--bui |
--bu)
159 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
160 build
="$ac_optarg" ;;
162 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
163 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
164 ac_prev
=cache_file
;;
165 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
166 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
167 cache_file
="$ac_optarg" ;;
169 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
171 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
173 datadir
="$ac_optarg" ;;
175 -disable-* |
--disable-*)
176 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}=no" ;;
184 -enable-* |
--enable-*)
185 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
195 eval "enable_${ac_feature}='$ac_optarg'" ;;
197 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
198 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
199 |
--exec |
--exe |
--ex)
200 ac_prev
=exec_prefix
;;
201 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
202 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
203 |
--exec=* |
--exe=* |
--ex=*)
204 exec_prefix
="$ac_optarg" ;;
206 -gas |
--gas |
--ga |
--g)
207 # Obsolete; use --with-gas.
210 -help |
--help |
--hel |
--he)
211 # Omit some internal or obsolete options to make the list less imposing.
212 # This message is too long to be a string in the A/UX 3.1 sh.
214 Usage: configure [options] [host]
215 Options: [defaults in brackets after descriptions]
217 --cache-file=FILE cache test results in FILE
218 --help print this message
219 --no-create do not create output files
220 --quiet, --silent do not print \`checking...' messages
221 --version print the version of autoconf that created configure
222 Directory and file names:
223 --prefix=PREFIX install architecture-independent files in PREFIX
225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 --bindir=DIR user executables in DIR [EPREFIX/bin]
228 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
229 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
230 --datadir=DIR read-only architecture-independent data in DIR
232 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
233 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
236 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
237 --includedir=DIR C header files in DIR [PREFIX/include]
238 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
239 --infodir=DIR info documentation in DIR [PREFIX/info]
240 --mandir=DIR man documentation in DIR [PREFIX/man]
241 --srcdir=DIR find the sources in DIR [configure dir or ..]
242 --program-prefix=PREFIX prepend PREFIX to installed program names
243 --program-suffix=SUFFIX append SUFFIX to installed program names
244 --program-transform-name=PROGRAM
245 run sed PROGRAM on installed program names
249 --build=BUILD configure for building on BUILD [BUILD=HOST]
250 --host=HOST configure for HOST [guessed]
251 --target=TARGET configure for TARGET [TARGET=HOST]
252 Features and packages:
253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
255 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
256 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
257 --x-includes=DIR X include files are in DIR
258 --x-libraries=DIR X library files are in DIR
260 if test -n "$ac_help"; then
261 echo "--enable and --with options recognized:$ac_help"
265 -host |
--host |
--hos |
--ho)
267 -host=* |
--host=* |
--hos=* |
--ho=*)
270 -includedir |
--includedir |
--includedi |
--included |
--include \
271 |
--includ |
--inclu |
--incl |
--inc)
272 ac_prev
=includedir
;;
273 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
274 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
275 includedir
="$ac_optarg" ;;
277 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
279 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
280 infodir
="$ac_optarg" ;;
282 -libdir |
--libdir |
--libdi |
--libd)
284 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
285 libdir
="$ac_optarg" ;;
287 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
288 |
--libexe |
--libex |
--libe)
289 ac_prev
=libexecdir
;;
290 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
291 |
--libexe=* |
--libex=* |
--libe=*)
292 libexecdir
="$ac_optarg" ;;
294 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
295 |
--localstate |
--localstat |
--localsta |
--localst \
296 |
--locals |
--local |
--loca |
--loc |
--lo)
297 ac_prev
=localstatedir
;;
298 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
299 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
300 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
301 localstatedir
="$ac_optarg" ;;
303 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
305 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
306 mandir
="$ac_optarg" ;;
309 # Obsolete; use --without-fp.
312 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
316 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
317 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
320 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
321 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
322 |
--oldin |
--oldi |
--old |
--ol |
--o)
323 ac_prev
=oldincludedir
;;
324 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
325 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
326 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
327 oldincludedir
="$ac_optarg" ;;
329 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
331 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
332 prefix
="$ac_optarg" ;;
334 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
335 |
--program-pre |
--program-pr |
--program-p)
336 ac_prev
=program_prefix
;;
337 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
338 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
339 program_prefix
="$ac_optarg" ;;
341 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
342 |
--program-suf |
--program-su |
--program-s)
343 ac_prev
=program_suffix
;;
344 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
345 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
346 program_suffix
="$ac_optarg" ;;
348 -program-transform-name |
--program-transform-name \
349 |
--program-transform-nam |
--program-transform-na \
350 |
--program-transform-n |
--program-transform- \
351 |
--program-transform |
--program-transfor \
352 |
--program-transfo |
--program-transf \
353 |
--program-trans |
--program-tran \
354 |
--progr-tra |
--program-tr |
--program-t)
355 ac_prev
=program_transform_name
;;
356 -program-transform-name=* |
--program-transform-name=* \
357 |
--program-transform-nam=* |
--program-transform-na=* \
358 |
--program-transform-n=* |
--program-transform-=* \
359 |
--program-transform=* |
--program-transfor=* \
360 |
--program-transfo=* |
--program-transf=* \
361 |
--program-trans=* |
--program-tran=* \
362 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
363 program_transform_name
="$ac_optarg" ;;
365 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
366 |
-silent |
--silent |
--silen |
--sile |
--sil)
369 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
371 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
373 sbindir
="$ac_optarg" ;;
375 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
376 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
377 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
379 ac_prev
=sharedstatedir
;;
380 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
381 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
382 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
384 sharedstatedir
="$ac_optarg" ;;
386 -site |
--site |
--sit)
388 -site=* |
--site=* |
--sit=*)
391 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
393 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
394 srcdir
="$ac_optarg" ;;
396 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
397 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
398 ac_prev
=sysconfdir
;;
399 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
400 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
401 sysconfdir
="$ac_optarg" ;;
403 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
405 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
406 target
="$ac_optarg" ;;
408 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
411 -version |
--version |
--versio |
--versi |
--vers)
412 echo "configure generated by autoconf version 2.13"
416 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package
=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}='$ac_optarg'" ;;
428 -without-* |
--without-*)
429 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package
=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}=no" ;;
438 # Obsolete; use --with-x.
441 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
442 |
--x-incl |
--x-inc |
--x-in |
--x-i)
443 ac_prev
=x_includes
;;
444 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
445 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
446 x_includes
="$ac_optarg" ;;
448 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
449 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
450 ac_prev
=x_libraries
;;
451 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
452 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
453 x_libraries
="$ac_optarg" ;;
455 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
459 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
460 echo "configure: warning: $ac_option: invalid host type" 1>&2
462 if test "x$nonopt" != xNONE
; then
463 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
471 if test -n "$ac_prev"; then
472 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477 # File descriptor usage:
480 # 2 errors and warnings
481 # 3 some systems may open it to /dev/tty
482 # 4 used on the Kubota Titan
483 # 6 checking for... messages and results
484 # 5 compiler messages saved in config.log
485 if test "$silent" = yes; then
493 This file contains any messages produced by compilers while
494 running configure, to aid debugging if configure makes a mistake.
497 # Strip out --no-create and --no-recursion so they do not pile up.
498 # Also quote any args containing shell metacharacters.
503 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
504 |
--no-cr |
--no-c) ;;
505 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
506 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
507 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
508 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
509 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
514 # Only set these to C if already set. These must not be set unconditionally
515 # because not all systems understand e.g. LANG=C (notably SCO).
516 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
517 # Non-C LC_CTYPE values break the ctype check.
518 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
519 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
520 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
521 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
524 rm -rf conftest
* confdefs.h
525 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
528 # A filename unique to this package, relative to the directory that
529 # configure is in, which we can look for to find out if srcdir is correct.
530 ac_unique_file
=tree.c
532 # Find the source files, if location was not specified.
533 if test -z "$srcdir"; then
534 ac_srcdir_defaulted
=yes
535 # Try the directory containing this script, then its parent.
537 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
540 if test ! -r $srcdir/$ac_unique_file; then
544 ac_srcdir_defaulted
=no
546 if test ! -r $srcdir/$ac_unique_file; then
547 if test "$ac_srcdir_defaulted" = yes; then
548 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
553 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555 # Prefer explicitly selected file to automatically selected ones.
556 if test -z "$CONFIG_SITE"; then
557 if test "x$prefix" != xNONE
; then
558 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
560 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
563 for ac_site_file
in $CONFIG_SITE; do
564 if test -r "$ac_site_file"; then
565 echo "loading site script $ac_site_file"
570 if test -r "$cache_file"; then
571 echo "loading cache $cache_file"
574 echo "creating cache $cache_file"
579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
580 ac_cpp
='$CPP $CPPFLAGS'
581 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
582 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
583 cross_compiling
=$ac_cv_prog_cc_cross
587 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
588 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
589 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
596 ac_n
= ac_c
='\c' ac_t
=
604 symbolic_link
='ln -s'
607 # Check for bogus environment variables.
608 # Test if LIBRARY_PATH contains the notation for the current directory
609 # since this would lead to problems installing/building glibc.
610 # LIBRARY_PATH contains the current directory if one of the following
612 # - one of the terminals (":" and ";") is the first or last sign
613 # - two terminals occur directly after each other
614 # - the path contains an element with a dot in it
615 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
616 echo "configure:617: checking LIBRARY_PATH variable" >&5
617 case ${LIBRARY_PATH} in
618 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
619 library_path_setting
="contains current directory"
622 library_path_setting
="ok"
625 echo "$ac_t""$library_path_setting" 1>&6
626 if test "$library_path_setting" != "ok"; then
627 { echo "configure: error:
628 *** LIBRARY_PATH shouldn't contain the current directory when
629 *** building gcc. Please change the environment variable
630 *** and run configure again." 1>&2; exit 1; }
633 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
634 # since this would lead to problems installing/building glibc.
635 # GCC_EXEC_PREFIX contains the current directory if one of the following
637 # - one of the terminals (":" and ";") is the first or last sign
638 # - two terminals occur directly after each other
639 # - the path contains an element with a dot in it
640 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
641 echo "configure:642: checking GCC_EXEC_PREFIX variable" >&5
642 case ${GCC_EXEC_PREFIX} in
643 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
644 gcc_exec_prefix_setting
="contains current directory"
647 gcc_exec_prefix_setting
="ok"
650 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
651 if test "$gcc_exec_prefix_setting" != "ok"; then
652 { echo "configure: error:
653 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
654 *** building gcc. Please change the environment variable
655 *** and run configure again." 1>&2; exit 1; }
658 # Check for additional parameters
661 # Check whether --with-gnu-ld or --without-gnu-ld was given.
662 if test "${with_gnu_ld+set}" = set; then
663 withval
="$with_gnu_ld"
664 gnu_ld_flag
="$with_gnu_ld"
670 # With pre-defined ld
671 # Check whether --with-ld or --without-ld was given.
672 if test "${with_ld+set}" = set; then
674 DEFAULT_LINKER
="$with_ld"
677 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
678 if test ! -x "$DEFAULT_LINKER"; then
679 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
680 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
683 cat >> confdefs.h
<<EOF
684 #define DEFAULT_LINKER "$DEFAULT_LINKER"
690 # Check whether --with-gnu-as or --without-gnu-as was given.
691 if test "${with_gnu_as+set}" = set; then
692 withval
="$with_gnu_as"
693 gas_flag
="$with_gnu_as"
699 # Check whether --with-as or --without-as was given.
700 if test "${with_as+set}" = set; then
702 DEFAULT_ASSEMBLER
="$with_as"
705 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
706 if test ! -x "$DEFAULT_ASSEMBLER"; then
707 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
708 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
711 cat >> confdefs.h
<<EOF
712 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
718 # Check whether --with-stabs or --without-stabs was given.
719 if test "${with_stabs+set}" = set; then
720 withval
="$with_stabs"
728 # Check whether --with-elf or --without-elf was given.
729 if test "${with_elf+set}" = set; then
737 # Specify the local prefix
739 # Check whether --with-local-prefix or --without-local-prefix was given.
740 if test "${with_local_prefix+set}" = set; then
741 withval
="$with_local_prefix"
743 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
745 *) local_prefix
=$with_local_prefix ;;
750 # Default local prefix if it is empty
751 if test x
$local_prefix = x
; then
752 local_prefix
=/usr
/local
755 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
756 # passed in by the toplevel make and thus we'd get different behavior
757 # depending on where we built the sources.
759 # Specify the g++ header file directory
760 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
761 if test "${with_gxx_include_dir+set}" = set; then
762 withval
="$with_gxx_include_dir"
764 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
766 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
771 if test x
${gcc_gxx_include_dir} = x
; then
772 if test x
${enable_version_specific_runtime_libs} = xyes
; then
773 gcc_gxx_include_dir
='${libsubdir}/include/g++'
775 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
776 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
780 # Enable expensive internal checks
781 # Check whether --enable-checking or --disable-checking was given.
782 if test "${enable_checking+set}" = set; then
783 enableval
="$enable_checking"
788 ac_gc_always_collect
=
789 case "${enableval}" in
790 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
792 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
793 set fnord
$enableval; shift
798 misc
) ac_checking
=1 ;;
799 tree
) ac_tree_checking
=1 ;;
800 rtl
) ac_rtl_checking
=1 ;;
801 gc
) ac_gc_checking
=1 ;;
802 gcac
) ac_gc_always_collect
=1 ;;
803 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
810 # Enable some checks by default for development versions of GCC
811 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
814 if test x
$ac_checking != x
; then
815 cat >> confdefs.h
<<\EOF
816 #define ENABLE_CHECKING 1
820 if test x
$ac_tree_checking != x
; then
821 cat >> confdefs.h
<<\EOF
822 #define ENABLE_TREE_CHECKING 1
826 if test x
$ac_rtl_checking != x
; then
827 cat >> confdefs.h
<<\EOF
828 #define ENABLE_RTL_CHECKING 1
832 if test x
$ac_gc_checking != x
; then
833 cat >> confdefs.h
<<\EOF
834 #define ENABLE_GC_CHECKING 1
838 if test x
$ac_gc_always_collect != x
; then
839 cat >> confdefs.h
<<\EOF
840 #define ENABLE_GC_ALWAYS_COLLECT 1
846 # Check whether --enable-cpp or --disable-cpp was given.
847 if test "${enable_cpp+set}" = set; then
848 enableval
="$enable_cpp"
855 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
856 if test "${with_cpp_install_dir+set}" = set; then
857 withval
="$with_cpp_install_dir"
858 if test x
$withval = xyes
; then
859 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
860 elif test x
$withval != xno
; then
861 cpp_install_dir
=$withval
866 # Link cpplib into the compiler proper, for C/C++/ObjC.
868 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
869 if test "${enable_c_cpplib+set}" = set; then
870 enableval
="$enable_c_cpplib"
871 if test x
$enable_c_cpplib != xno
; then
872 maybe_cpplib
=libcpp.a
873 cat >> confdefs.h
<<\EOF
882 # Enable Multibyte Characters for C/C++
883 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
884 if test "${enable_c_mbchar+set}" = set; then
885 enableval
="$enable_c_mbchar"
886 if test x
$enable_c_mbchar != xno
; then
887 cat >> confdefs.h
<<\EOF
888 #define MULTIBYTE_CHARS 1
896 # Pass with no value to take the default
897 # Pass with a value to specify a thread package
898 # Check whether --enable-threads or --disable-threads was given.
899 if test "${enable_threads+set}" = set; then
900 enableval
="$enable_threads"
907 enable_threads_flag
=$enable_threads
908 # Check if a valid thread package
909 case x
${enable_threads_flag} in
912 target_thread_file
='single'
916 target_thread_file
=''
918 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
919 xsolaris | xwin32 | xdce | xvxworks | xaix
)
920 target_thread_file
=$enable_threads_flag
923 echo "$enable_threads is an unknown thread package" 1>&2
928 # Check whether --enable-objc-gc or --disable-objc-gc was given.
929 if test "${enable_objc_gc+set}" = set; then
930 enableval
="$enable_objc_gc"
931 if test x
$enable_objc_gc = xno
; then
941 # Check whether --with-dwarf2 or --without-dwarf2 was given.
942 if test "${with_dwarf2+set}" = set; then
943 withval
="$with_dwarf2"
944 dwarf2
="$with_dwarf2"
950 # Check whether --enable-shared or --disable-shared was given.
951 if test "${enable_shared+set}" = set; then
952 enableval
="$enable_shared"
960 # Determine the host, build, and target systems
962 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
963 if test -f $ac_dir/install-sh
; then
965 ac_install_sh
="$ac_aux_dir/install-sh -c"
967 elif test -f $ac_dir/install.sh
; then
969 ac_install_sh
="$ac_aux_dir/install.sh -c"
973 if test -z "$ac_aux_dir"; then
974 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
976 ac_config_guess
=$ac_aux_dir/config.guess
977 ac_config_sub
=$ac_aux_dir/config.sub
978 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
981 # Do some error checking and defaulting for the host and target type.
983 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
986 # 1. You are not allowed to specify --host, --target, and nonopt at the
988 # 2. Host defaults to nonopt.
989 # 3. If nonopt is not specified, then host defaults to the current host,
990 # as determined by config.guess.
991 # 4. Target and build default to nonopt.
992 # 5. If nonopt is not specified, then target and build default to host.
994 # The aliases save the names the user supplied, while $host etc.
995 # will get canonicalized.
996 case $host---$target---$nonopt in
997 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
998 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1002 # Make sure we can run config.sub.
1003 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1004 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1007 echo $ac_n "checking host system type""... $ac_c" 1>&6
1008 echo "configure:1009: checking host system type" >&5
1011 case "$host_alias" in
1015 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1016 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1018 *) host_alias
=$nonopt ;;
1022 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1023 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1024 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1025 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1026 echo "$ac_t""$host" 1>&6
1028 echo $ac_n "checking target system type""... $ac_c" 1>&6
1029 echo "configure:1030: checking target system type" >&5
1031 target_alias
=$target
1032 case "$target_alias" in
1035 NONE
) target_alias
=$host_alias ;;
1036 *) target_alias
=$nonopt ;;
1040 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1041 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1042 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1043 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1044 echo "$ac_t""$target" 1>&6
1046 echo $ac_n "checking build system type""... $ac_c" 1>&6
1047 echo "configure:1048: checking build system type" >&5
1050 case "$build_alias" in
1053 NONE
) build_alias
=$host_alias ;;
1054 *) build_alias
=$nonopt ;;
1058 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1059 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062 echo "$ac_t""$build" 1>&6
1064 test "$host_alias" != "$target_alias" &&
1065 test "$program_prefix$program_suffix$program_transform_name" = \
1067 program_prefix
=${target_alias}-
1070 # Find the native compiler
1071 # Extract the first word of "gcc", so it can be a program name with args.
1072 set dummy gcc
; ac_word
=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$CC"; then
1079 ac_cv_prog_CC
="$CC" # Let the user override the test.
1081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1083 for ac_dir
in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir
=.
1085 if test -f $ac_dir/$ac_word; then
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1097 echo "$ac_t""no" 1>&6
1100 if test -z "$CC"; then
1101 # Extract the first word of "cc", so it can be a program name with args.
1102 set dummy cc
; ac_word
=$2
1103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1104 echo "configure:1105: checking for $ac_word" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1108 if test -n "$CC"; then
1109 ac_cv_prog_CC
="$CC" # Let the user override the test.
1111 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1114 for ac_dir
in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir
=.
1116 if test -f $ac_dir/$ac_word; then
1117 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1118 ac_prog_rejected
=yes
1126 if test $ac_prog_rejected = yes; then
1127 # We found a bogon in the path, so make sure we never use it.
1128 set dummy
$ac_cv_prog_CC
1130 if test $# -gt 0; then
1131 # We chose a different compiler from the bogus one.
1132 # However, it has the same basename, so the bogon will be chosen
1133 # first if we set CC to just the basename; use the full file name.
1135 set dummy
"$ac_dir/$ac_word" "$@"
1143 if test -n "$CC"; then
1144 echo "$ac_t""$CC" 1>&6
1146 echo "$ac_t""no" 1>&6
1149 if test -z "$CC"; then
1150 case "`uname -s`" in
1152 # Extract the first word of "cl", so it can be a program name with args.
1153 set dummy cl
; ac_word
=$2
1154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1155 echo "configure:1156: checking for $ac_word" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 if test -n "$CC"; then
1160 ac_cv_prog_CC
="$CC" # Let the user override the test.
1162 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1164 for ac_dir
in $ac_dummy; do
1165 test -z "$ac_dir" && ac_dir
=.
1166 if test -f $ac_dir/$ac_word; then
1175 if test -n "$CC"; then
1176 echo "$ac_t""$CC" 1>&6
1178 echo "$ac_t""no" 1>&6
1183 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1186 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1191 ac_cpp
='$CPP $CPPFLAGS'
1192 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1193 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1194 cross_compiling
=$ac_cv_prog_cc_cross
1196 cat > conftest.
$ac_ext << EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1203 if { (eval echo configure
:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1204 ac_cv_prog_cc_works
=yes
1205 # If we can't run a trivial program, we are probably using a cross compiler.
1206 if (.
/conftest
; exit) 2>/dev
/null
; then
1207 ac_cv_prog_cc_cross
=no
1209 ac_cv_prog_cc_cross
=yes
1212 echo "configure: failed program was:" >&5
1213 cat conftest.
$ac_ext >&5
1214 ac_cv_prog_cc_works
=no
1218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1219 ac_cpp
='$CPP $CPPFLAGS'
1220 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1221 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1222 cross_compiling
=$ac_cv_prog_cc_cross
1224 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1225 if test $ac_cv_prog_cc_works = no
; then
1226 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1228 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1230 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1231 cross_compiling
=$ac_cv_prog_cc_cross
1233 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1234 echo "configure:1235: checking whether we are using GNU C" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 cat > conftest.c
<<EOF
1243 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1250 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1252 if test $ac_cv_prog_gcc = yes; then
1258 ac_test_CFLAGS
="${CFLAGS+set}"
1259 ac_save_CFLAGS
="$CFLAGS"
1261 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether ${CC-cc} accepts -g" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 echo 'void f(){}' > conftest.c
1267 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1276 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1277 if test "$ac_test_CFLAGS" = set; then
1278 CFLAGS
="$ac_save_CFLAGS"
1279 elif test $ac_cv_prog_cc_g = yes; then
1280 if test "$GCC" = yes; then
1286 if test "$GCC" = yes; then
1293 if test "x$CC" != xcc
; then
1294 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1295 echo "configure:1296: checking whether $CC and cc understand -c and -o together" >&5
1297 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether cc understands -c and -o together" >&5
1300 set dummy
$CC; ac_cc
="`echo $2 |
1301 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1302 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 echo 'foo(){}' > conftest.c
1306 # Make sure it works both with $CC and with simple cc.
1307 # We do the test twice because some compilers refuse to overwrite an
1308 # existing .o file with -o, though they will create one.
1309 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1310 if { (eval echo configure
:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1311 test -f conftest.o
&& { (eval echo configure
:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1313 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1314 if test "x$CC" != xcc
; then
1315 # Test first that cc exists at all.
1316 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1317 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1318 if { (eval echo configure
:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1319 test -f conftest.o
&& { (eval echo configure
:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1324 # cc exists but doesn't like -o.
1325 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1330 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1335 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1336 echo "$ac_t""yes" 1>&6
1338 echo "$ac_t""no" 1>&6
1339 cat >> confdefs.h
<<\EOF
1340 #define NO_MINUS_C_MINUS_O 1
1345 # autoconf is lame and doesn't give us any substitution variable for this.
1346 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1347 NO_MINUS_C_MINUS_O
=yes
1349 OUTPUT_OPTION
='-o $@'
1354 echo $ac_n "checking for long double""... $ac_c" 1>&6
1355 echo "configure:1356: checking for long double" >&5
1356 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 if test "$GCC" = yes; then
1360 gcc_cv_c_long_double
=yes
1362 cat > conftest.
$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1367 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1368 long double foo = 0.0;
1369 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1370 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1373 if { (eval echo configure
:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 gcc_cv_c_long_double
=yes
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 gcc_cv_c_long_double
=no
1386 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1387 if test $gcc_cv_c_long_double = yes; then
1388 cat >> confdefs.h
<<\EOF
1389 #define HAVE_LONG_DOUBLE 1
1395 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 save_CFLAGS
="$CFLAGS"
1401 CFLAGS
="-Wno-long-long"
1402 cat > conftest.
$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1410 if { (eval echo configure
:1411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1412 ac_cv_prog_cc_no_long_long
=yes
1414 echo "configure: failed program was:" >&5
1415 cat conftest.
$ac_ext >&5
1417 ac_cv_prog_cc_no_long_long
=no
1420 CFLAGS
="$save_CFLAGS"
1423 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1425 if test $ac_cv_prog_cc_no_long_long = yes; then
1426 strict1_warn
="-pedantic -Wno-long-long"
1430 # If the native compiler is GCC, we can enable warnings even in stage1.
1431 # That's useful for people building cross-compilers, or just running a
1434 if test "x$GCC" = "xyes"; then
1435 warn_cflags
='$(GCC_WARN_CFLAGS)'
1439 # Stage specific cflags for build.
1443 if test x
$GCC = xyes
1445 stage1_cflags
="-Wa,-J"
1453 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1454 echo "configure:1455: checking whether ${MAKE-make} sets \${MAKE}" >&5
1455 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1456 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftestmake
<<\EOF
1461 @
echo 'ac_maketemp="${MAKE}"'
1463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1464 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1465 if test -n "$ac_maketemp"; then
1466 eval ac_cv_prog_make_
${ac_make}_set
=yes
1468 eval ac_cv_prog_make_
${ac_make}_set
=no
1472 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1473 echo "$ac_t""yes" 1>&6
1476 echo "$ac_t""no" 1>&6
1477 SET_MAKE
="MAKE=${MAKE-make}"
1481 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether a default assembler was specified" >&5
1483 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1484 if test x
"$gas_flag" = x
"no"; then
1485 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1487 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1490 echo "$ac_t""no" 1>&6
1493 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1494 echo "configure:1495: checking whether a default linker was specified" >&5
1495 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1496 if test x
"$gnu_ld_flag" = x
"no"; then
1497 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1499 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1506 echo "configure:1507: checking for GNU C library" >&5
1507 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 cat > conftest.
$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513 #include <features.h>
1516 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1517 #error Not a GNU C library system
1521 if { (eval echo configure
:1522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1525 echo "configure: failed program was:" >&5
1526 cat conftest.
$ac_ext >&5
1533 echo "$ac_t""$gcc_cv_glibc" 1>&6
1534 if test $gcc_cv_glibc = yes; then
1535 cat >> confdefs.h
<<\EOF
1536 #define _GNU_SOURCE 1
1541 echo $ac_n "checking for inline""... $ac_c" 1>&6
1542 echo "configure:1543: checking for inline" >&5
1543 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1547 for ac_kw
in inline __inline__ __inline
; do
1548 cat > conftest.
$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1553 } int $ac_kw foo() {
1556 if { (eval echo configure
:1557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1558 ac_cv_c_inline
=$ac_kw; break
1560 echo "configure: failed program was:" >&5
1561 cat conftest.
$ac_ext >&5
1568 echo "$ac_t""$ac_cv_c_inline" 1>&6
1569 case "$ac_cv_c_inline" in
1571 no
) cat >> confdefs.h
<<\EOF
1575 *) cat >> confdefs.h
<<EOF
1576 #define inline $ac_cv_c_inline
1582 # Find some useful tools
1583 for ac_prog
in mawk gawk nawk
awk
1585 # Extract the first word of "$ac_prog", so it can be a program name with args.
1586 set dummy
$ac_prog; ac_word
=$2
1587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_word" >&5
1589 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 if test -n "$AWK"; then
1593 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1595 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1597 for ac_dir
in $ac_dummy; do
1598 test -z "$ac_dir" && ac_dir
=.
1599 if test -f $ac_dir/$ac_word; then
1600 ac_cv_prog_AWK
="$ac_prog"
1607 AWK
="$ac_cv_prog_AWK"
1608 if test -n "$AWK"; then
1609 echo "$ac_t""$AWK" 1>&6
1611 echo "$ac_t""no" 1>&6
1614 test -n "$AWK" && break
1617 # Extract the first word of "flex", so it can be a program name with args.
1618 set dummy flex
; ac_word
=$2
1619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1620 echo "configure:1621: checking for $ac_word" >&5
1621 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 if test -n "$LEX"; then
1625 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1627 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1629 for ac_dir
in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir
=.
1631 if test -f $ac_dir/$ac_word; then
1632 ac_cv_prog_LEX
="flex"
1637 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1640 LEX
="$ac_cv_prog_LEX"
1641 if test -n "$LEX"; then
1642 echo "$ac_t""$LEX" 1>&6
1644 echo "$ac_t""no" 1>&6
1647 if test -z "$LEXLIB"
1653 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1654 echo "configure:1655: checking for yywrap in -l$ac_lib" >&5
1655 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 ac_save_LIBS
="$LIBS"
1660 LIBS
="-l$ac_lib $LIBS"
1661 cat > conftest.
$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 /* Override any gcc2 internal prototype to avoid an error. */
1665 /* We use char because int might match the return type of a gcc2
1666 builtin and then its argument prototype would still apply. */
1673 if { (eval echo configure
:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1675 eval "ac_cv_lib_$ac_lib_var=yes"
1677 echo "configure: failed program was:" >&5
1678 cat conftest.
$ac_ext >&5
1680 eval "ac_cv_lib_$ac_lib_var=no"
1683 LIBS
="$ac_save_LIBS"
1686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1687 echo "$ac_t""yes" 1>&6
1690 echo "$ac_t""no" 1>&6
1695 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1696 echo "configure:1697: checking whether ln works" >&5
1697 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 rm -f conftestdata_t
1701 echo >conftestdata_f
1702 if ln conftestdata_f conftestdata_t
2>/dev
/null
1706 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1708 gcc_cv_prog_LN
="ln -s"
1713 rm -f conftestdata_f conftestdata_t
1716 LN
="$gcc_cv_prog_LN"
1717 if test "$gcc_cv_prog_LN" = "ln"; then
1718 echo "$ac_t""yes" 1>&6
1720 if test "$gcc_cv_prog_LN" = "ln -s"; then
1721 echo "$ac_t""no, using ln -s" 1>&6
1723 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1727 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1728 echo "configure:1729: checking whether ln -s works" >&5
1729 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 rm -f conftestdata_t
1733 echo >conftestdata_f
1734 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1736 gcc_cv_prog_LN_S
="ln -s"
1738 if ln conftestdata_f conftestdata_t
2>/dev
/null
1745 rm -f conftestdata_f conftestdata_t
1748 LN_S
="$gcc_cv_prog_LN_S"
1749 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1750 echo "$ac_t""yes" 1>&6
1752 if test "$gcc_cv_prog_LN_S" = "ln"; then
1753 echo "$ac_t""no, using ln" 1>&6
1755 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1759 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1760 echo "configure:1761: checking for volatile" >&5
1761 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 cat > conftest.
$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1772 if { (eval echo configure
:1773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1774 gcc_cv_c_volatile
=yes
1776 echo "configure: failed program was:" >&5
1777 cat conftest.
$ac_ext >&5
1779 gcc_cv_c_volatile
=no
1784 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1785 if test $gcc_cv_c_volatile = yes ; then
1786 cat >> confdefs.h
<<\EOF
1787 #define HAVE_VOLATILE 1
1792 # Extract the first word of "ranlib", so it can be a program name with args.
1793 set dummy ranlib
; ac_word
=$2
1794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1795 echo "configure:1796: checking for $ac_word" >&5
1796 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 if test -n "$RANLIB"; then
1800 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1804 for ac_dir
in $ac_dummy; do
1805 test -z "$ac_dir" && ac_dir
=.
1806 if test -f $ac_dir/$ac_word; then
1807 ac_cv_prog_RANLIB
="ranlib"
1812 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1815 RANLIB
="$ac_cv_prog_RANLIB"
1816 if test -n "$RANLIB"; then
1817 echo "$ac_t""$RANLIB" 1>&6
1819 echo "$ac_t""no" 1>&6
1822 for ac_prog
in 'bison -y' byacc
1824 # Extract the first word of "$ac_prog", so it can be a program name with args.
1825 set dummy
$ac_prog; ac_word
=$2
1826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1827 echo "configure:1828: checking for $ac_word" >&5
1828 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 if test -n "$YACC"; then
1832 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1836 for ac_dir
in $ac_dummy; do
1837 test -z "$ac_dir" && ac_dir
=.
1838 if test -f $ac_dir/$ac_word; then
1839 ac_cv_prog_YACC
="$ac_prog"
1846 YACC
="$ac_cv_prog_YACC"
1847 if test -n "$YACC"; then
1848 echo "$ac_t""$YACC" 1>&6
1850 echo "$ac_t""no" 1>&6
1853 test -n "$YACC" && break
1855 test -n "$YACC" || YACC
="yacc"
1857 # Find a good install program. We prefer a C program (faster),
1858 # so one script is as good as another. But avoid the broken or
1859 # incompatible versions:
1860 # SysV /etc/install, /usr/sbin/install
1861 # SunOS /usr/etc/install
1862 # IRIX /sbin/install
1864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1866 # ./install, which can be erroneously created by make from ./install.sh.
1867 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1868 echo "configure:1869: checking for a BSD compatible install" >&5
1869 if test -z "$INSTALL"; then
1870 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1874 for ac_dir
in $PATH; do
1875 # Account for people who put trailing slashes in PATH elements.
1877 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1879 # OSF1 and SCO ODT 3.0 have their own names for install.
1880 for ac_prog
in ginstall scoinst
install; do
1881 if test -f $ac_dir/$ac_prog; then
1882 if test $ac_prog = install &&
1883 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1884 # AIX install. It has an incompatible calling convention.
1885 # OSF/1 installbsd also uses dspmsg, but is usable.
1888 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1899 if test "${ac_cv_path_install+set}" = set; then
1900 INSTALL
="$ac_cv_path_install"
1902 # As a last resort, use the slow shell script. We don't cache a
1903 # path for INSTALL within a source directory, because that will
1904 # break other packages using the cache if that directory is
1905 # removed, or if the path is relative.
1906 INSTALL
="$ac_install_sh"
1909 echo "$ac_t""$INSTALL" 1>&6
1911 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1912 # It thinks the first close brace ends the variable substitution.
1913 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1915 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1918 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1919 echo "configure:1920: checking how to run the C preprocessor" >&5
1920 # On Suns, sometimes $CPP names a directory.
1921 if test -n "$CPP" && test -d "$CPP"; then
1924 if test -z "$CPP"; then
1925 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 # This must be in double quotes, not single quotes, because CPP may get
1929 # substituted into the Makefile and "${CC-cc}" will confuse make.
1931 # On the NeXT, cc -E runs the code through the compiler's parser,
1932 # not just through cpp.
1933 cat > conftest.
$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1939 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1940 { (eval echo configure
:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1941 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1942 if test -z "$ac_err"; then
1946 echo "configure: failed program was:" >&5
1947 cat conftest.
$ac_ext >&5
1949 CPP
="${CC-cc} -E -traditional-cpp"
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1956 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure
:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1963 echo "configure: failed program was:" >&5
1964 cat conftest.
$ac_ext >&5
1966 CPP
="${CC-cc} -nologo -E"
1967 cat > conftest.
$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1973 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1974 { (eval echo configure
:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1975 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1976 if test -z "$ac_err"; then
1980 echo "configure: failed program was:" >&5
1981 cat conftest.
$ac_ext >&5
1990 ac_cv_prog_CPP
="$CPP"
1992 CPP
="$ac_cv_prog_CPP"
1994 ac_cv_prog_CPP
="$CPP"
1996 echo "$ac_t""$CPP" 1>&6
1998 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1999 echo "configure:2000: checking for ANSI C header files" >&5
2000 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 cat > conftest.
$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2011 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2012 { (eval echo configure
:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2013 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2014 if test -z "$ac_err"; then
2016 ac_cv_header_stdc
=yes
2019 echo "configure: failed program was:" >&5
2020 cat conftest.
$ac_ext >&5
2022 ac_cv_header_stdc
=no
2026 if test $ac_cv_header_stdc = yes; then
2027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2034 egrep "memchr" >/dev
/null
2>&1; then
2038 ac_cv_header_stdc
=no
2044 if test $ac_cv_header_stdc = yes; then
2045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2046 cat > conftest.
$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2052 egrep "free" >/dev
/null
2>&1; then
2056 ac_cv_header_stdc
=no
2062 if test $ac_cv_header_stdc = yes; then
2063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2064 if test "$cross_compiling" = yes; then
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2071 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2072 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2074 int main () { int i; for (i = 0; i < 256; i++)
2075 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2079 if { (eval echo configure
:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2083 echo "configure: failed program was:" >&5
2084 cat conftest.
$ac_ext >&5
2086 ac_cv_header_stdc
=no
2094 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2095 if test $ac_cv_header_stdc = yes; then
2096 cat >> confdefs.h
<<\EOF
2097 #define STDC_HEADERS 1
2102 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2103 echo "configure:2104: checking whether time.h and sys/time.h may both be included" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2111 #include <sys/time.h>
2117 if { (eval echo configure
:2118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2119 ac_cv_header_time
=yes
2121 echo "configure: failed program was:" >&5
2122 cat conftest.
$ac_ext >&5
2124 ac_cv_header_time
=no
2129 echo "$ac_t""$ac_cv_header_time" 1>&6
2130 if test $ac_cv_header_time = yes; then
2131 cat >> confdefs.h
<<\EOF
2132 #define TIME_WITH_SYS_TIME 1
2137 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2138 echo "configure:2139: checking whether string.h and strings.h may both be included" >&5
2139 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2146 #include <strings.h>
2151 if { (eval echo configure
:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2153 gcc_cv_header_string
=yes
2155 echo "configure: failed program was:" >&5
2156 cat conftest.
$ac_ext >&5
2158 gcc_cv_header_string
=no
2163 echo "$ac_t""$gcc_cv_header_string" 1>&6
2164 if test $gcc_cv_header_string = yes; then
2165 cat >> confdefs.h
<<\EOF
2166 #define STRING_WITH_STRINGS 1
2171 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2172 echo "configure:2173: checking for sys/wait.h that is POSIX.1 compatible" >&5
2173 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 cat > conftest.
$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 #include <sys/types.h>
2180 #include <sys/wait.h>
2182 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2185 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2190 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2193 if { (eval echo configure
:2194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2195 ac_cv_header_sys_wait_h
=yes
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 ac_cv_header_sys_wait_h
=no
2205 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2206 if test $ac_cv_header_sys_wait_h = yes; then
2207 cat >> confdefs.h
<<\EOF
2208 #define HAVE_SYS_WAIT_H 1
2213 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2214 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2215 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2216 direct.h malloc.h langinfo.h
iconv.h
2218 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_hdr" >&5
2221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2229 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2230 { (eval echo configure
:2231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2231 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2232 if test -z "$ac_err"; then
2234 eval "ac_cv_header_$ac_safe=yes"
2237 echo "configure: failed program was:" >&5
2238 cat conftest.
$ac_ext >&5
2240 eval "ac_cv_header_$ac_safe=no"
2244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2247 cat >> confdefs.h
<<EOF
2248 #define $ac_tr_hdr 1
2252 echo "$ac_t""no" 1>&6
2257 # Check for thread headers.
2258 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2259 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2260 echo "configure:2261: checking for thread.h" >&5
2261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 cat > conftest.
$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2269 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2270 { (eval echo configure
:2271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2271 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2272 if test -z "$ac_err"; then
2274 eval "ac_cv_header_$ac_safe=yes"
2277 echo "configure: failed program was:" >&5
2278 cat conftest.
$ac_ext >&5
2280 eval "ac_cv_header_$ac_safe=no"
2284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2285 echo "$ac_t""yes" 1>&6
2288 echo "$ac_t""no" 1>&6
2292 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2293 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2294 echo "configure:2295: checking for pthread.h" >&5
2295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 cat > conftest.
$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 #include <pthread.h>
2303 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2304 { (eval echo configure
:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2305 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2306 if test -z "$ac_err"; then
2308 eval "ac_cv_header_$ac_safe=yes"
2311 echo "configure: failed program was:" >&5
2312 cat conftest.
$ac_ext >&5
2314 eval "ac_cv_header_$ac_safe=no"
2318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2319 echo "$ac_t""yes" 1>&6
2322 echo "$ac_t""no" 1>&6
2327 # See if GNAT has been installed
2328 # Extract the first word of "gnatbind", so it can be a program name with args.
2329 set dummy gnatbind
; ac_word
=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test -n "$gnat"; then
2336 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2338 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2340 for ac_dir
in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir
=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_prog_gnat
="yes"
2348 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2351 gnat
="$ac_cv_prog_gnat"
2352 if test -n "$gnat"; then
2353 echo "$ac_t""$gnat" 1>&6
2355 echo "$ac_t""no" 1>&6
2359 # Do we have a single-tree copy of texinfo?
2360 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2361 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2362 gcc_cv_prog_makeinfo_modern
=yes
2363 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2365 # See if makeinfo has been installed and is modern enough
2366 # that we can use it.
2367 # Extract the first word of "makeinfo", so it can be a program name with args.
2368 set dummy makeinfo
; ac_word
=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 if test -n "$MAKEINFO"; then
2375 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2377 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2379 for ac_dir
in $ac_dummy; do
2380 test -z "$ac_dir" && ac_dir
=.
2381 if test -f $ac_dir/$ac_word; then
2382 ac_cv_prog_MAKEINFO
="makeinfo"
2389 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2390 if test -n "$MAKEINFO"; then
2391 echo "$ac_t""$MAKEINFO" 1>&6
2393 echo "$ac_t""no" 1>&6
2396 if test -n "$MAKEINFO"; then
2397 # Found it, now check the version.
2398 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2399 echo "configure:2400: checking for modern makeinfo" >&5
2400 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2404 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2405 echo "configure:2406: version of makeinfo is $ac_prog_version" >&5
2406 case $ac_prog_version in
2407 '') gcc_cv_prog_makeinfo_modern
=no
;;
2408 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2409 gcc_cv_prog_makeinfo_modern
=yes;;
2410 *) gcc_cv_prog_makeinfo_modern
=no
;;
2415 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2417 gcc_cv_prog_makeinfo_modern
=no
2422 if test $gcc_cv_prog_makeinfo_modern = no
; then
2423 echo "configure: warning:
2424 *** Makeinfo is missing or too old.
2425 *** Info documentation will not be built or installed." 1>&2
2430 INSTALL_INFO
=install-info
2433 # See if the stage1 system preprocessor understands the ANSI C
2434 # preprocessor stringification operator.
2437 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2438 echo "configure:2439: checking for preprocessor stringizing operator" >&5
2439 if eval "test \"`echo '$''{'ac_cv_c_stringize'+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"
2448 char *s = x(teststring);
2451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2452 egrep "#teststring" >/dev
/null
2>&1; then
2454 ac_cv_c_stringize
=no
2457 ac_cv_c_stringize
=yes
2463 if test "${ac_cv_c_stringize}" = yes
2465 cat >> confdefs.h
<<\EOF
2466 #define HAVE_STRINGIZE 1
2470 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2473 # Use <inttypes.h> only if it exists,
2474 # doesn't clash with <sys/types.h>, and declares intmax_t.
2475 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2476 echo "configure:2477: checking for inttypes.h" >&5
2477 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 cat > conftest.
$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <sys/types.h>
2484 #include <inttypes.h>
2489 if { (eval echo configure
:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2491 gcc_cv_header_inttypes_h
=yes
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2496 gcc_cv_header_inttypes_h
=no
2501 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2502 if test $gcc_cv_header_inttypes_h = yes; then
2503 cat >> confdefs.h
<<\EOF
2504 #define HAVE_INTTYPES_H 1
2510 # Determine if enumerated bitfields are unsigned. ISO C says they can
2511 # be either signed or unsigned.
2513 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2514 echo "configure:2515: checking for unsigned enumerated bitfields" >&5
2515 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 if test "$cross_compiling" = yes; then
2519 gcc_cv_enum_bf_unsigned
=yes
2521 cat > conftest.
$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2525 enum t { BLAH = 128 } ;
2526 struct s_t { enum t member : 8; } s ;
2530 if (s.member < 0) exit(1);
2535 if { (eval echo configure
:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2537 gcc_cv_enum_bf_unsigned
=yes
2539 echo "configure: failed program was:" >&5
2540 cat conftest.
$ac_ext >&5
2542 gcc_cv_enum_bf_unsigned
=no
2549 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2550 if test $gcc_cv_enum_bf_unsigned = yes; then
2551 cat >> confdefs.h
<<\EOF
2552 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2557 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2558 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2559 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2560 fputs_unlocked getrusage valloc
iconv nl_langinfo
2562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2563 echo "configure:2564: checking for $ac_func" >&5
2564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 cat > conftest.
$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 /* System header to define __stub macros and hopefully few prototypes,
2571 which can conflict with char $ac_func(); below. */
2573 /* Override any gcc2 internal prototype to avoid an error. */
2574 /* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2591 if { (eval echo configure
:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2593 eval "ac_cv_func_$ac_func=yes"
2595 echo "configure: failed program was:" >&5
2596 cat conftest.
$ac_ext >&5
2598 eval "ac_cv_func_$ac_func=no"
2603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2606 cat >> confdefs.h
<<EOF
2607 #define $ac_tr_func 1
2611 echo "$ac_t""no" 1>&6
2616 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2617 echo "configure:2618: checking for ssize_t" >&5
2618 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.
$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <sys/types.h>
2630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2631 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2633 ac_cv_type_ssize_t
=yes
2636 ac_cv_type_ssize_t
=no
2641 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2642 if test $ac_cv_type_ssize_t = no
; then
2643 cat >> confdefs.h
<<\EOF
2650 # Try to determine the array type of the second argument of getgroups
2651 # for the target system (int or gid_t).
2652 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2653 echo "configure:2654: checking for uid_t in sys/types.h" >&5
2654 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 cat > conftest.
$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2660 #include <sys/types.h>
2662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2663 egrep "uid_t" >/dev
/null
2>&1; then
2665 ac_cv_type_uid_t
=yes
2674 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2675 if test $ac_cv_type_uid_t = no
; then
2676 cat >> confdefs.h
<<\EOF
2680 cat >> confdefs.h
<<\EOF
2686 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2687 echo "configure:2688: checking type of array argument to getgroups" >&5
2688 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 if test "$cross_compiling" = yes; then
2692 ac_cv_type_getgroups
=cross
2694 cat > conftest.
$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2698 /* Thanks to Mike Rendell for this test. */
2699 #include <sys/types.h>
2702 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2707 union { gid_t gval; long lval; } val;
2710 for (i = 0; i < NGID; i++)
2711 gidset[i] = val.gval;
2712 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2714 /* Exit non-zero if getgroups seems to require an array of ints. This
2715 happens when gid_t is short but getgroups modifies an array of ints. */
2716 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2720 if { (eval echo configure
:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2722 ac_cv_type_getgroups
=gid_t
2724 echo "configure: failed program was:" >&5
2725 cat conftest.
$ac_ext >&5
2727 ac_cv_type_getgroups
=int
2732 if test $ac_cv_type_getgroups = cross
; then
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2739 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2741 ac_cv_type_getgroups
=gid_t
2744 ac_cv_type_getgroups
=int
2751 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2752 cat >> confdefs.h
<<EOF
2753 #define GETGROUPS_T $ac_cv_type_getgroups
2757 if test "${target}" = "${build}"; then
2758 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2761 # This condition may need some tweaking. It should include all
2762 # targets where the array type of the second argument of getgroups
2763 # is int and the type of gid_t is not equivalent to int.
2764 *-*-sunos* |
*-*-ultrix*)
2765 TARGET_GETGROUPS_T
=int
2768 TARGET_GETGROUPS_T
=gid_t
2774 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2775 echo "configure:2776: checking for vprintf" >&5
2776 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* System header to define __stub macros and hopefully few prototypes,
2783 which can conflict with char vprintf(); below. */
2785 /* Override any gcc2 internal prototype to avoid an error. */
2786 /* We use char because int might match the return type of a gcc2
2787 builtin and then its argument prototype would still apply. */
2792 /* The GNU C library defines this for functions which it implements
2793 to always fail with ENOSYS. Some functions are actually named
2794 something starting with __ and the normal name is an alias. */
2795 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2803 if { (eval echo configure
:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2805 eval "ac_cv_func_vprintf=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.
$ac_ext >&5
2810 eval "ac_cv_func_vprintf=no"
2815 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 cat >> confdefs.h
<<\EOF
2818 #define HAVE_VPRINTF 1
2822 echo "$ac_t""no" 1>&6
2825 if test "$ac_cv_func_vprintf" != yes; then
2826 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2827 echo "configure:2828: checking for _doprnt" >&5
2828 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 /* System header to define __stub macros and hopefully few prototypes,
2835 which can conflict with char _doprnt(); below. */
2837 /* Override any gcc2 internal prototype to avoid an error. */
2838 /* We use char because int might match the return type of a gcc2
2839 builtin and then its argument prototype would still apply. */
2844 /* The GNU C library defines this for functions which it implements
2845 to always fail with ENOSYS. Some functions are actually named
2846 something starting with __ and the normal name is an alias. */
2847 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2855 if { (eval echo configure
:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2857 eval "ac_cv_func__doprnt=yes"
2859 echo "configure: failed program was:" >&5
2860 cat conftest.
$ac_ext >&5
2862 eval "ac_cv_func__doprnt=no"
2867 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2868 echo "$ac_t""yes" 1>&6
2869 cat >> confdefs.h
<<\EOF
2870 #define HAVE_DOPRNT 1
2874 echo "$ac_t""no" 1>&6
2881 if test $ac_cv_func_vprintf != yes ; then
2883 if test $ac_cv_func__doprnt != yes ; then
2890 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2891 echo "configure:2892: checking whether the printf functions support %p" >&5
2892 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 if test "$cross_compiling" = yes; then
2896 gcc_cv_func_printf_ptr
=no
2898 cat > conftest.
$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2906 char *p = buf, *q = NULL;
2907 sprintf(buf, "%p", p);
2908 sscanf(buf, "%p", &q);
2912 if { (eval echo configure
:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2914 gcc_cv_func_printf_ptr
=yes
2916 echo "configure: failed program was:" >&5
2917 cat conftest.
$ac_ext >&5
2919 gcc_cv_func_printf_ptr
=no
2924 rm -f core core.
* *.core
2927 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2928 if test $gcc_cv_func_printf_ptr = yes ; then
2929 cat >> confdefs.h
<<\EOF
2930 #define HAVE_PRINTF_PTR 1
2938 # Under some versions of uwin, vfork is notoriously buggy and the test
2939 # can hang configure; on other versions, vfork exists just as a stub.
2940 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2941 ac_cv_func_vfork_works
=no
2944 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2945 echo "configure:2946: checking for pid_t" >&5
2946 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.
$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 #include <sys/types.h>
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2961 ac_cv_type_pid_t
=yes
2969 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2970 if test $ac_cv_type_pid_t = no
; then
2971 cat >> confdefs.h
<<\EOF
2977 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2978 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2979 echo "configure:2980: checking for vfork.h" >&5
2980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 cat > conftest.
$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2988 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2989 { (eval echo configure
:2990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2990 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2991 if test -z "$ac_err"; then
2993 eval "ac_cv_header_$ac_safe=yes"
2996 echo "configure: failed program was:" >&5
2997 cat conftest.
$ac_ext >&5
2999 eval "ac_cv_header_$ac_safe=no"
3003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3004 echo "$ac_t""yes" 1>&6
3005 cat >> confdefs.h
<<\EOF
3006 #define HAVE_VFORK_H 1
3010 echo "$ac_t""no" 1>&6
3013 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3014 echo "configure:3015: checking for working vfork" >&5
3015 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 if test "$cross_compiling" = yes; then
3019 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3020 echo "configure:3021: checking for vfork" >&5
3021 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.
$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 /* System header to define __stub macros and hopefully few prototypes,
3028 which can conflict with char vfork(); below. */
3030 /* Override any gcc2 internal prototype to avoid an error. */
3031 /* We use char because int might match the return type of a gcc2
3032 builtin and then its argument prototype would still apply. */
3037 /* The GNU C library defines this for functions which it implements
3038 to always fail with ENOSYS. Some functions are actually named
3039 something starting with __ and the normal name is an alias. */
3040 #if defined (__stub_vfork) || defined (__stub___vfork)
3048 if { (eval echo configure
:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3050 eval "ac_cv_func_vfork=yes"
3052 echo "configure: failed program was:" >&5
3053 cat conftest.
$ac_ext >&5
3055 eval "ac_cv_func_vfork=no"
3060 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3061 echo "$ac_t""yes" 1>&6
3064 echo "$ac_t""no" 1>&6
3067 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3069 cat > conftest.
$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 /* Thanks to Paul Eggert for this test. */
3074 #include <sys/types.h>
3075 #include <sys/stat.h>
3076 #ifdef HAVE_UNISTD_H
3082 /* On some sparc systems, changes by the child to local and incoming
3083 argument registers are propagated back to the parent.
3084 The compiler is told about this with #include <vfork.h>,
3085 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3086 Test for this by using a static variable whose address
3087 is put into a register that is clobbered by the vfork. */
3090 sparc_address_test (int arg)
3092 sparc_address_test (arg) int arg;
3110 pid_t parent = getpid ();
3113 sparc_address_test ();
3118 /* Here is another test for sparc vfork register problems.
3119 This test uses lots of local variables, at least
3120 as many local variables as main has allocated so far
3121 including compiler temporaries. 4 locals are enough for
3122 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3123 A buggy compiler should reuse the register of parent
3124 for one of the local variables, since it will think that
3125 parent can't possibly be used any more in this routine.
3126 Assigning to the local variable will thus munge parent
3127 in the parent process. */
3129 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3130 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3131 /* Convince the compiler that p..p7 are live; otherwise, it might
3132 use the same hardware register for all 8 local variables. */
3133 if (p != p1 || p != p2 || p != p3 || p != p4
3134 || p != p5 || p != p6 || p != p7)
3137 /* On some systems (e.g. IRIX 3.3),
3138 vfork doesn't separate parent from child file descriptors.
3139 If the child closes a descriptor before it execs or exits,
3140 this munges the parent's descriptor as well.
3141 Test for this by closing stdout in the child. */
3142 _exit(close(fileno(stdout)) != 0);
3147 while (wait(&status) != child)
3150 /* Was there some problem with vforking? */
3153 /* Did the child fail? (This shouldn't happen.) */
3156 /* Did the vfork/compiler bug occur? */
3157 || parent != getpid()
3159 /* Did the file descriptor bug occur? */
3160 || fstat(fileno(stdout), &st) != 0
3165 if { (eval echo configure
:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3167 ac_cv_func_vfork_works
=yes
3169 echo "configure: failed program was:" >&5
3170 cat conftest.
$ac_ext >&5
3172 ac_cv_func_vfork_works
=no
3179 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3180 if test $ac_cv_func_vfork_works = no
; then
3181 cat >> confdefs.h
<<\EOF
3187 for ac_hdr
in unistd.h
3189 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3191 echo "configure:3192: checking for $ac_hdr" >&5
3192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3200 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3201 { (eval echo configure
:3202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3202 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3203 if test -z "$ac_err"; then
3205 eval "ac_cv_header_$ac_safe=yes"
3208 echo "configure: failed program was:" >&5
3209 cat conftest.
$ac_ext >&5
3211 eval "ac_cv_header_$ac_safe=no"
3215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3216 echo "$ac_t""yes" 1>&6
3217 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3218 cat >> confdefs.h
<<EOF
3219 #define $ac_tr_hdr 1
3223 echo "$ac_t""no" 1>&6
3227 for ac_func
in getpagesize
3229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_func" >&5
3231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 cat > conftest.
$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 /* System header to define __stub macros and hopefully few prototypes,
3238 which can conflict with char $ac_func(); below. */
3240 /* Override any gcc2 internal prototype to avoid an error. */
3241 /* We use char because int might match the return type of a gcc2
3242 builtin and then its argument prototype would still apply. */
3247 /* The GNU C library defines this for functions which it implements
3248 to always fail with ENOSYS. Some functions are actually named
3249 something starting with __ and the normal name is an alias. */
3250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3258 if { (eval echo configure
:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3260 eval "ac_cv_func_$ac_func=yes"
3262 echo "configure: failed program was:" >&5
3263 cat conftest.
$ac_ext >&5
3265 eval "ac_cv_func_$ac_func=no"
3270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3271 echo "$ac_t""yes" 1>&6
3272 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3273 cat >> confdefs.h
<<EOF
3274 #define $ac_tr_func 1
3278 echo "$ac_t""no" 1>&6
3282 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3283 echo "configure:3284: checking for working mmap which provides zeroed pages anywhere" >&5
3284 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 if test "$cross_compiling" = yes; then
3288 ac_cv_func_mmap_anywhere
=no
3290 cat > conftest.
$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3294 /* Test by Richard Henderson and Alexandre Oliva.
3295 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3296 #include <sys/types.h>
3298 #include <sys/mman.h>
3300 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3301 # define MAP_ANONYMOUS MAP_ANON
3304 /* This mess was copied from the GNU getpagesize.h. */
3305 #ifndef HAVE_GETPAGESIZE
3306 # ifdef HAVE_UNISTD_H
3307 # include <unistd.h>
3310 /* Assume that all systems that can run configure have sys/param.h. */
3311 # ifndef HAVE_SYS_PARAM_H
3312 # define HAVE_SYS_PARAM_H 1
3315 # ifdef _SC_PAGESIZE
3316 # define getpagesize() sysconf(_SC_PAGESIZE)
3317 # else /* no _SC_PAGESIZE */
3318 # ifdef HAVE_SYS_PARAM_H
3319 # include <sys/param.h>
3320 # ifdef EXEC_PAGESIZE
3321 # define getpagesize() EXEC_PAGESIZE
3322 # else /* no EXEC_PAGESIZE */
3324 # define getpagesize() NBPG * CLSIZE
3327 # endif /* no CLSIZE */
3328 # else /* no NBPG */
3330 # define getpagesize() NBPC
3331 # else /* no NBPC */
3333 # define getpagesize() PAGESIZE
3334 # endif /* PAGESIZE */
3335 # endif /* no NBPC */
3336 # endif /* no NBPG */
3337 # endif /* no EXEC_PAGESIZE */
3338 # else /* no HAVE_SYS_PARAM_H */
3339 # define getpagesize() 8192 /* punt totally */
3340 # endif /* no HAVE_SYS_PARAM_H */
3341 # endif /* no _SC_PAGESIZE */
3343 #endif /* no HAVE_GETPAGESIZE */
3350 #ifndef MAP_ANONYMOUS
3351 fd = open("/dev/zero", O_RDWR);
3357 #ifdef MAP_ANONYMOUS
3358 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3359 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3361 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3363 if (x == (char *) -1)
3368 if (munmap(x, pg) < 0)
3374 if { (eval echo configure
:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3376 ac_cv_func_mmap_anywhere
=yes
3378 echo "configure: failed program was:" >&5
3379 cat conftest.
$ac_ext >&5
3381 ac_cv_func_mmap_anywhere
=no
3388 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3389 if test $ac_cv_func_mmap_anywhere = yes; then
3390 cat >> confdefs.h
<<\EOF
3391 #define HAVE_MMAP_ANYWHERE 1
3396 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3397 echo "configure:3398: checking for working mmap of a file" >&5
3398 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 # Create a file one thousand bytes long.
3402 for i
in 1 2 3 4 5 6 7 8 9 0
3403 do for j
in 1 2 3 4 5 6 7 8 9 0
3406 done > conftestdata$$
3408 if test "$cross_compiling" = yes; then
3409 ac_cv_func_mmap_file
=no
3411 cat > conftest.
$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3415 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3416 Richard Henderson and Alexandre Oliva.
3417 Check whether read-only mmap of a plain file works. */
3418 #include <sys/types.h>
3419 #include <sys/stat.h>
3421 #include <sys/mman.h>
3429 fd = open("conftestdata$$", O_RDONLY);
3433 if (fstat (fd, &st))
3436 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3437 if (x == (char *) -1)
3440 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3443 if (munmap(x, st.st_size) < 0)
3449 if { (eval echo configure
:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3451 ac_cv_func_mmap_file
=yes
3453 echo "configure: failed program was:" >&5
3454 cat conftest.
$ac_ext >&5
3456 ac_cv_func_mmap_file
=no
3463 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3464 if test $ac_cv_func_mmap_file = yes; then
3465 cat >> confdefs.h
<<\EOF
3466 #define HAVE_MMAP_FILE 1
3472 # We will need to find libiberty.h and ansidecl.h
3473 saved_CFLAGS
="$CFLAGS"
3474 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3475 for ac_func
in bcopy bzero bcmp \
3476 index rindex getenv atol sbrk abort atof getcwd getwd \
3477 strsignal putc_unlocked fputs_unlocked strstr environ \
3478 malloc realloc calloc free
basename getopt
3480 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3481 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3482 echo "configure:3483: checking whether $ac_func is declared" >&5
3483 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 cat > conftest.
$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 #include "gansidecl.h"
3494 char *(*pfn) = (char *(*)) $ac_func ;
3498 if { (eval echo configure
:3499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500 eval "gcc_cv_have_decl_$ac_func=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.
$ac_ext >&5
3505 eval "gcc_cv_have_decl_$ac_func=no"
3510 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3512 #define $ac_tr_decl 1
3516 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3517 #define $ac_tr_decl 0
3523 if test x
= y
; then
3524 cat >> confdefs.h
<<EOF
3525 #define HAVE_DECL_BCOPY 1
3527 cat >> confdefs.h
<<EOF
3528 #define HAVE_DECL_BZERO 1
3530 cat >> confdefs.h
<<EOF
3531 #define HAVE_DECL_BCMP 1
3534 cat >> confdefs.h
<<EOF
3535 #define HAVE_DECL_INDEX 1
3537 cat >> confdefs.h
<<EOF
3538 #define HAVE_DECL_RINDEX 1
3540 cat >> confdefs.h
<<EOF
3541 #define HAVE_DECL_GETENV 1
3543 cat >> confdefs.h
<<EOF
3544 #define HAVE_DECL_ATOL 1
3546 cat >> confdefs.h
<<EOF
3547 #define HAVE_DECL_SBRK 1
3549 cat >> confdefs.h
<<EOF
3550 #define HAVE_DECL_ABORT 1
3552 cat >> confdefs.h
<<EOF
3553 #define HAVE_DECL_ATOF 1
3555 cat >> confdefs.h
<<EOF
3556 #define HAVE_DECL_GETCWD 1
3558 cat >> confdefs.h
<<EOF
3559 #define HAVE_DECL_GETWD 1
3562 cat >> confdefs.h
<<EOF
3563 #define HAVE_DECL_STRSIGNAL 1
3565 cat >> confdefs.h
<<EOF
3566 #define HAVE_DECL_PUTC_UNLOCKED 1
3568 cat >> confdefs.h
<<EOF
3569 #define HAVE_DECL_FPUTS_UNLOCKED 1
3571 cat >> confdefs.h
<<EOF
3572 #define HAVE_DECL_STRSTR 1
3574 cat >> confdefs.h
<<EOF
3575 #define HAVE_DECL_ENVIRON 1
3578 cat >> confdefs.h
<<EOF
3579 #define HAVE_DECL_MALLOC 1
3581 cat >> confdefs.h
<<EOF
3582 #define HAVE_DECL_REALLOC 1
3584 cat >> confdefs.h
<<EOF
3585 #define HAVE_DECL_CALLOC 1
3587 cat >> confdefs.h
<<EOF
3588 #define HAVE_DECL_FREE 1
3590 cat >> confdefs.h
<<EOF
3591 #define HAVE_DECL_BASENAME 1
3593 cat >> confdefs.h
<<EOF
3594 #define HAVE_DECL_GETOPT 1
3599 for ac_func
in getrlimit setrlimit getrusage
3601 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3602 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3603 echo "configure:3604: checking whether $ac_func is declared" >&5
3604 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 cat > conftest.
$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 #include "gansidecl.h"
3612 #ifdef HAVE_SYS_RESOURCE_H
3613 #include <sys/resource.h>
3619 char *(*pfn) = (char *(*)) $ac_func ;
3623 if { (eval echo configure
:3624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3625 eval "gcc_cv_have_decl_$ac_func=yes"
3627 echo "configure: failed program was:" >&5
3628 cat conftest.
$ac_ext >&5
3630 eval "gcc_cv_have_decl_$ac_func=no"
3635 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3637 #define $ac_tr_decl 1
3641 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3642 #define $ac_tr_decl 0
3648 if test x
= y
; then
3649 cat >> confdefs.h
<<EOF
3650 #define HAVE_DECL_GETRLIMIT 1
3652 cat >> confdefs.h
<<EOF
3653 #define HAVE_DECL_SETRLIMIT 1
3655 cat >> confdefs.h
<<EOF
3656 #define HAVE_DECL_GETRUSAGE 1
3661 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3662 CFLAGS
="$saved_CFLAGS"
3664 # mkdir takes a single argument on some systems.
3665 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3666 echo "configure:3667: checking if mkdir takes one argument" >&5
3667 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 cat > conftest.
$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3674 #include <sys/types.h>
3675 #ifdef HAVE_SYS_STAT_H
3676 # include <sys/stat.h>
3678 #ifdef HAVE_UNISTD_H
3679 # include <unistd.h>
3681 #ifdef HAVE_DIRECT_H
3682 # include <direct.h>
3688 if { (eval echo configure
:3689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3690 gcc_cv_mkdir_takes_one_arg
=no
3692 echo "configure: failed program was:" >&5
3693 cat conftest.
$ac_ext >&5
3695 gcc_cv_mkdir_takes_one_arg
=yes
3700 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3701 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3702 cat >> confdefs.h
<<\EOF
3703 #define MKDIR_TAKES_ONE_ARG 1
3717 build_install_headers_dir
=install-headers-tar
3722 host_truncate_target
=
3725 # Decode the host machine, then the target machine.
3726 # For the host machine, we save the xm_file variable as host_xm_file;
3727 # then we decode the target machine and forget everything else
3728 # that came from the host machine.
3729 for machine
in $build $host $target; do
3743 # Set this to force installation and use of collect2.
3745 # Set this to override the default target model.
3747 # Set this to control how the header file directory is installed.
3748 install_headers_dir
=install-headers-tar
3749 # Set this to a non-empty list of args to pass to cpp if the target
3750 # wants its .md file passed through cpp.
3752 # Set this if directory names should be truncated to 14 characters.
3754 # Set this if gdb needs a dir command with `dirname $out_file`
3755 gdb_needs_out_file_path
=
3756 # Set this if the build machine requires executables to have a
3759 # Set this to control which thread package will be used.
3761 # Reinitialize these from the flag values every loop pass, since some
3762 # configure entries modify them.
3764 gnu_ld
="$gnu_ld_flag"
3765 enable_threads
=$enable_threads_flag
3767 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3768 # updated in each machine entry.
3770 cpu_type
=`echo $machine | sed 's/-.*$//'`
3810 tm_file
=${cpu_type}/${cpu_type}.h
3811 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3812 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3814 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3816 # On a.out targets, we need to use collect2.
3823 # Common parts for linux and openbsd systems
3826 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3829 tm_file
=${cpu_type}/openbsd.h
3830 tmake_file
="t-libc-ok t-openbsd"
3831 # avoid surprises, always provide an xm-openbsd file
3832 xm_file
=${cpu_type}/xm-openbsd.h
3833 # don't depend on processor x-fragments as well
3835 if test x
$enable_threads = xyes
; then
3837 tmake_file
="${tmake_file} t-openbsd-thread"
3843 # Support site-specific machine types.
3845 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3846 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3847 xm_file
=${cpu_type}/xm-
$rest.h
3848 tm_file
=${cpu_type}/$rest.h
3849 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3850 then xmake_file
=${cpu_type}/x-
$rest; \
3853 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3854 then tmake_file
=${cpu_type}/t-
$rest; \
3860 a29k-
*-bsd* | a29k-
*-sym1*)
3861 tm_file
="${tm_file} a29k/unix.h"
3863 xmake_file
=a29k
/x-unix
3866 a29k-
*-udi | a29k-
*-coff)
3867 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3868 tmake_file
=a29k
/t-a29kbare
3871 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3872 tmake_file
=a29k
/t-vx29k
3873 extra_parts
="crtbegin.o crtend.o"
3874 thread_file
='vxworks'
3876 a29k-
*-*) # Default a29k environment.
3880 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3882 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3883 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3885 # GAS + IEEE_CONFORMANT
3886 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3888 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3889 xmake_file
="x-interix alpha/t-pe"
3890 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3891 if test x
$enable_threads = xyes
; then
3894 if test x
$stabs = xyes
; then
3895 tm_file
="${tm_file} dbxcoff.h"
3897 #prefix='$$INTERIX_ROOT'/usr/contrib
3898 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3900 alpha
*-*-linux*ecoff
*)
3901 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3902 target_cpu_default
="MASK_GAS"
3903 tmake_file
="alpha/t-alpha alpha/t-ieee"
3908 alpha
*-*-linux*libc1
*)
3909 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3910 target_cpu_default
="MASK_GAS"
3911 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3912 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3915 if test x
$enable_threads = xyes
; then
3920 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3921 target_cpu_default
="MASK_GAS"
3922 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3923 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3926 if test x
$enable_threads = xyes
; then
3931 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3932 target_cpu_default
="MASK_GAS"
3933 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3934 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3940 # default x-alpha is only appropriate for dec-osf.
3941 target_cpu_default
="MASK_GAS"
3942 tmake_file
="alpha/t-alpha alpha/t-ieee"
3946 if test x
$stabs = xyes
3948 tm_file
="${tm_file} dbx.h"
3950 if test x
$gas != xyes
3952 extra_passes
="mips-tfile mips-tdump"
3955 tmake_file
="alpha/t-alpha alpha/t-ieee alpha/t-osf"
3956 xmake_file
=alpha
/x-osf
3959 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3962 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3965 tm_file
="${tm_file} alpha/osf.h"
3966 tmake_file
="$tmake_file alpha/t-osf4"
3967 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3968 # a broken tar, so we use cpio instead.
3969 install_headers_dir
=install-headers-cpio
3972 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3973 tmake_file
="$tmake_file alpha/t-osf4"
3977 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3978 target_cpu_default
=MASK_SUPPORT_ARCH
3983 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3984 tmake_file
="alpha/t-alpha alpha/t-ieee"
3987 extra_passes
="mips-tfile mips-tdump"
3990 thread_file
='vxworks'
3993 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3994 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3995 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3996 xmake_file
=winnt
/x-winnt
3997 extra_host_objs
=oldnames.o
3998 extra_gcc_objs
="spawnv.o oldnames.o"
3999 if test x
$gnu_ld != xyes
4001 extra_programs
=ld.exe
4003 if test x
$enable_threads = xyes
; then
4009 xm_file
="${xm_file} alpha/xm-vms.h"
4010 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
4013 extra_parts
="crtinit.o crtfini.o"
4015 arm-
*-coff* | armel-
*-coff*)
4017 tmake_file
=arm
/t-arm-coff
4021 tmake_file
=arm
/t-arm-coff
4022 thread_file
='vxworks'
4024 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
4025 tm_file
=arm
/riscix1-1.h
4028 arm-
*-riscix*) # Acorn RISC machine
4029 if test x
$gas = xyes
4031 tm_file
=arm
/rix-gas.h
4033 tm_file
=arm
/riscix.h
4035 xmake_file
=arm
/x-riscix
4036 tmake_file
=arm
/t-riscix
4039 arm-semi-aout | armel-semi-aout
)
4041 tmake_file
=arm
/t-semi
4043 arm-semi-aof | armel-semi-aof
)
4044 tm_file
=arm
/semiaof.h
4045 tmake_file
=arm
/t-semiaof
4048 tm_file
=arm
/netbsd.h
4049 tmake_file
="t-netbsd arm/t-netbsd"
4052 arm
*-*-linux*aout
*) # ARM GNU/Linux with a.out
4055 tm_file
=arm
/linux-aout.h
4056 tmake_file
=arm
/t-linux
4059 arm
*-*-linux*oldld
*) # ARM GNU/Linux with old ELF linker
4060 xm_file
=arm
/xm-linux.h
4062 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
4065 tm_file
="arm/linux-elf26.h $tm_file"
4068 tmake_file
="t-linux arm/t-linux"
4069 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4071 case x
${enable_threads} in
4072 x | xyes | xpthreads | xposix
)
4077 arm
*-*-linux*) # ARM GNU/Linux with ELF
4078 xm_file
=arm
/xm-linux.h
4080 tm_file
="arm/linux-elf.h"
4083 tm_file
="arm/linux-elf26.h $tm_file"
4086 tmake_file
="t-linux arm/t-linux"
4087 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4089 case x
${enable_threads} in
4090 x | xyes | xpthreads | xposix
)
4095 arm
*-*-uclinux*) # ARM ucLinux
4096 tm_file
=arm
/uclinux-elf.h
4097 tmake_file
=arm
/t-arm-elf
4101 tmake_file
=arm
/t-arm-aout
4104 tm_file
=arm
/ecos-elf.h
4105 tmake_file
=arm
/t-arm-elf
4108 tm_file
=arm
/unknown-elf.h
4109 tmake_file
=arm
/t-arm-elf
4112 tm_file
=arm
/conix-elf.h
4113 tmake_file
=arm
/t-arm-elf
4116 tm_file
=arm
/unknown-elf-oabi.h
4117 tmake_file
=arm
/t-arm-elf
4126 c1-convex-
*) # Convex C1
4127 target_cpu_default
=1
4130 c2-convex-
*) # Convex C2
4131 target_cpu_default
=2
4135 target_cpu_default
=4
4139 target_cpu_default
=8
4143 target_cpu_default
=16
4149 tmake_file
=c4x
/t-c4x
4151 clipper-intergraph-clix
*)
4152 tm_file
="${tm_file} svr3.h clipper/clix.h"
4153 xm_file
=clipper
/xm-clix.h
4154 xmake_file
=clipper
/x-clix
4155 extra_headers
=va-clipper.h
4156 extra_parts
="crtbegin.o crtend.o"
4157 install_headers_dir
=install-headers-cpio
4168 tm_file
="fr30/fr30.h"
4169 tmake_file
=fr30
/t-fr30
4170 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4176 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4177 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4178 tmake_file
="t-linux pa/t-linux"
4179 extra_parts
="crtbegin.o crtend.o"
4182 if test x
$enable_threads = xyes
; then
4187 target_cpu_default
="MASK_PA_11"
4188 tmake_file
=pa
/t-openbsd
4191 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4192 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4193 xm_file
=pa
/xm-papro.h
4197 target_cpu_default
="MASK_PA_11"
4198 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4202 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4203 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4204 xm_file
=pa
/xm-papro.h
4208 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4212 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4213 target_cpu_default
="MASK_PA_11"
4217 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4221 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.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/gas.h"
4228 install_headers_dir
=install-headers-cpio
4231 hppa1.0
-*-hpux8.0
[0-2]*)
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 tm_file
="pa/pa-oldas.h ${tm_file}"
4241 install_headers_dir
=install-headers-cpio
4244 hppa1.1
-*-hpux8.0
[0-2]*)
4245 target_cpu_default
="MASK_PA_11"
4246 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4247 xm_file
=pa
/xm-pahpux.h
4248 xmake_file
=pa
/x-pa-hpux
4249 if test x
$gas = xyes
4251 tm_file
="${tm_file} pa/pa-gas.h"
4253 tm_file
="pa/pa-oldas.h ${tm_file}"
4255 install_headers_dir
=install-headers-cpio
4259 target_cpu_default
="MASK_PA_11"
4260 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4261 xm_file
=pa
/xm-pahpux.h
4262 xmake_file
=pa
/x-pa-hpux
4263 if test x
$gas = xyes
4265 tm_file
="${tm_file} pa/pa-gas.h"
4267 install_headers_dir
=install-headers-cpio
4271 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4272 xm_file
=pa
/xm-pahpux.h
4273 xmake_file
=pa
/x-pa-hpux
4274 if test x
$gas = xyes
4276 tm_file
="${tm_file} pa/pa-gas.h"
4278 install_headers_dir
=install-headers-cpio
4281 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4282 target_cpu_default
="MASK_PA_11"
4283 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4285 xm_file
=pa
/xm-pahpux.h
4286 xmake_file
=pa
/x-pa-hpux
4288 if test x
$gas = xyes
4290 tm_file
="${tm_file} pa/pa-gas.h"
4292 if test x
$enable_threads = x
; then
4293 enable_threads
=$have_pthread_h
4295 case x
${enable_threads} in
4297 tmake_file
="${tmake_file} pa/t-dce-thr"
4300 install_headers_dir
=install-headers-cpio
4304 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4306 xm_file
=pa
/xm-pahpux.h
4307 xmake_file
=pa
/x-pa-hpux
4309 if test x
$gas = xyes
4311 tm_file
="${tm_file} pa/pa-gas.h"
4313 if test x
$enable_threads = x
; then
4314 enable_threads
=$have_pthread_h
4316 case x
${enable_threads} in
4318 tmake_file
="${tmake_file} pa/t-dce-thr"
4321 install_headers_dir
=install-headers-cpio
4325 target_cpu_default
="MASK_PA_11"
4326 xm_file
=pa
/xm-pa64hpux.h
4327 xmake_file
=pa
/x-pa-hpux
4329 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"
4331 tmake_file
=pa
/t-pa64
4332 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4336 tm_file
="${tm_file} pa/pa-gas.h"
4338 # if [[ x$enable_threads = x ]]; then
4339 # enable_threads=$have_pthread_h
4341 # if [[ x$enable_threads = xyes ]]; then
4343 # tmake_file="${tmake_file} pa/t-dce-thr"
4345 install_headers_dir
=install-headers-cpio
4348 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4349 target_cpu_default
="MASK_PA_11"
4350 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4352 xm_file
=pa
/xm-pahpux.h
4353 xmake_file
=pa
/x-pa-hpux
4355 if test x
$gas = xyes
4357 tm_file
="${tm_file} pa/pa-gas.h"
4359 # if test x$enable_threads = x; then
4360 # enable_threads=$have_pthread_h
4362 # if test x$enable_threads = xyes; then
4364 # tmake_file="${tmake_file} pa/t-dce-thr"
4366 install_headers_dir
=install-headers-cpio
4370 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4372 xm_file
=pa
/xm-pahpux.h
4373 xmake_file
=pa
/x-pa-hpux
4374 if test x
$gas = xyes
4376 tm_file
="${tm_file} pa/pa-gas.h"
4378 # if test x$enable_threads = x; then
4379 # enable_threads=$have_pthread_h
4381 # if test x$enable_threads = xyes; then
4383 # tmake_file="${tmake_file} pa/t-dce-thr"
4385 install_headers_dir
=install-headers-cpio
4388 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4389 target_cpu_default
="MASK_PA_11"
4390 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4391 xm_file
=pa
/xm-pahpux.h
4392 xmake_file
=pa
/x-pa-hpux
4393 if test x
$gas = xyes
4395 tm_file
="${tm_file} pa/pa-gas.h"
4397 install_headers_dir
=install-headers-cpio
4401 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4402 xm_file
=pa
/xm-pahpux.h
4403 xmake_file
=pa
/x-pa-hpux
4404 if test x
$gas = xyes
4406 tm_file
="${tm_file} pa/pa-gas.h"
4408 install_headers_dir
=install-headers-cpio
4411 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4412 target_cpu_default
="MASK_PA_11"
4413 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4414 xm_file
=pa
/xm-pahpux.h
4415 xmake_file
=pa
/x-pa-hpux
4416 if test x
$gas = xyes
4418 tm_file
="${tm_file} pa/pa-gas.h"
4420 install_headers_dir
=install-headers-cpio
4424 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4425 xm_file
=pa
/xm-pahpux.h
4426 xmake_file
=pa
/x-pa-hpux
4427 if test x
$gas = xyes
4429 tm_file
="${tm_file} pa/pa-gas.h"
4431 install_headers_dir
=install-headers-cpio
4435 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4436 target_cpu_default
="MASK_PA_11"
4440 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4441 xm_file
=pa
/xm-pampeix.h
4442 xmake_file
=pa
/x-pa-mpeix
4443 echo "You must use gas. Assuming it is already installed."
4444 install_headers_dir
=install-headers-tar
4447 i370-
*-opened*) # IBM 360/370/390 Architecture
4448 xm_file
=i370
/xm-oe.h
4450 xmake_file
=i370
/x-oe
4451 tmake_file
=i370
/t-oe
4454 xm_file
=i370
/xm-mvs.h
4456 tmake_file
=i370
/t-mvs
4459 xm_file
="xm-linux.h i370/xm-linux.h"
4461 tm_file
="i370/linux.h ${tm_file}"
4462 tmake_file
="t-linux i370/t-linux"
4463 # broken_install=yes
4464 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4465 # extra_parts="crtbegin.o crtend.o"
4469 if test x
$enable_threads = xyes
; then
4474 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4475 tm_file
=i386
/i386elf.h
4476 tmake_file
=i386
/t-i386elf
4479 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4480 if test x
$gas = xyes
4482 tm_file
=i386
/aix386.h
4483 extra_parts
="crtbegin.o crtend.o"
4484 tmake_file
=i386
/t-crtstuff
4486 tm_file
=i386
/aix386ng.h
4489 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4491 xmake_file
=i386
/x-aix
4493 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4494 xm_file
="xm-alloca.h ${xm_file}"
4495 xm_defines
="USG POSIX SMALL_ARG_MAX"
4496 xmake_file
=i386
/x-ncr3000
4497 if test x
$stabs = xyes
-a x
$gas = xyes
4499 tm_file
=i386
/sysv4gdb.h
4501 tm_file
=i386
/sysv4.h
4503 extra_parts
="crtbegin.o crtend.o"
4504 tmake_file
=i386
/t-crtpic
4508 xm_file
=i386
/xm-next.h
4509 tmake_file
=i386
/t-next
4510 xmake_file
=i386
/x-next
4511 extra_objs
=nextstep.o
4512 extra_parts
="crtbegin.o crtend.o"
4513 if test x
$enable_threads = xyes
; then
4517 i
[34567]86-*-netware) # Intel 80386's running netware
4518 tm_file
=i386
/netware.h
4519 tmake_file
=i386
/t-netware
4521 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4523 if test x
$gas = xyes
4525 tm_file
=i386
/seq-gas.h
4527 tm_file
=i386
/sequent.h
4530 i
[34567]86-sequent-ptx1*)
4531 xm_defines
="USG SVR3"
4532 xmake_file
=i386
/x-sysv3
4533 tm_file
=i386
/seq-sysv3.h
4534 tmake_file
=i386
/t-crtstuff
4535 extra_parts
="crtbegin.o crtend.o"
4536 install_headers_dir
=install-headers-cpio
4538 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4539 xm_defines
="USG SVR3"
4540 xmake_file
=i386
/x-sysv3
4541 tm_file
=i386
/seq2-sysv3.h
4542 tmake_file
=i386
/t-crtstuff
4543 extra_parts
="crtbegin.o crtend.o"
4544 install_headers_dir
=install-headers-cpio
4546 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4547 xm_file
="xm-alloca.h ${xm_file}"
4548 xm_defines
="USG POSIX SMALL_ARG_MAX"
4550 tm_file
=i386
/ptx4-i.h
4552 extra_parts
="crtbegin.o crtend.o"
4553 install_headers_dir
=install-headers-cpio
4555 i386-sun-sunos
*) # Sun i386 roadrunner
4560 i
[34567]86-wrs-vxworks*)
4561 tm_file
=i386
/vxi386.h
4562 tmake_file
=i386
/t-i386bare
4563 thread_file
='vxworks'
4566 tm_file
=i386
/i386-aout.h
4567 tmake_file
=i386
/t-i386bare
4569 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4570 xm_file
=i386
/xm-beos.h
4571 tmake_file
='i386/t-beos i386/t-crtpic'
4572 tm_file
=i386
/beos-elf.h
4573 xmake_file
=i386
/x-beos
4574 extra_parts
='crtbegin.o crtend.o'
4576 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4577 tm_file
=i386
/bsd386.h
4578 # tmake_file=t-libc-ok
4581 tm_file
=i386
/386bsd.h
4582 # tmake_file=t-libc-ok
4583 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4586 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4587 tm_file
="i386/freebsd-aout.h i386/perform.h"
4588 tmake_file
=t-freebsd
4590 i
[34567]86-*-freebsd*)
4591 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
4592 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4593 tmake_file
=t-freebsd
4597 case x
${enable_threads} in
4598 xyes | xpthreads | xposix
)
4600 tmake_file
="${tmake_file} t-freebsd-thread"
4604 i
[34567]86-*-netbsd*)
4605 tm_file
=i386
/netbsd.h
4609 i
[34567]86-*-openbsd*)
4610 # we need collect2 until our bug is fixed...
4614 tm_file
=i386
/i386-coff.h
4615 tmake_file
=i386
/t-i386bare
4617 i
[34567]86-*-isc*) # 80386 running ISC system
4618 xm_file
="${xm_file} i386/xm-isc.h"
4619 xm_defines
="USG SVR3"
4621 i
[34567]86-*-isc[34]*)
4622 xmake_file
=i386
/x-isc3
4625 xmake_file
=i386
/x-isc
4628 if test x
$gas = xyes
-a x
$stabs = xyes
4630 tm_file
=i386
/iscdbx.h
4631 tmake_file
=i386
/t-svr3dbx
4632 extra_parts
="svr3.ifile svr3z.ifile"
4634 tm_file
=i386
/isccoff.h
4635 tmake_file
=i386
/t-crtstuff
4636 extra_parts
="crtbegin.o crtend.o"
4638 tmake_file
="$tmake_file i386/t-i386bare"
4639 install_headers_dir
=install-headers-cpio
4641 i
[34567]86-*-linux*oldld
*) # Intel 80386's running GNU/Linux
4643 xmake_file
=x-linux-aout
4644 tmake_file
="t-linux-aout i386/t-crtstuff"
4645 tm_file
=i386
/linux-oldld.h
4649 i
[34567]86-*-linux*aout
*) # Intel 80386's running GNU/Linux
4650 xmake_file
=x-linux-aout
4651 tmake_file
="t-linux-aout i386/t-crtstuff"
4652 tm_file
=i386
/linux-aout.h
4656 i
[34567]86-*-linux*libc1
) # Intel 80386's running GNU/Linux
4657 # GNU/Linux C library 5
4659 tm_file
=i386
/linux.h
4660 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4661 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4664 if test x
$enable_threads = xyes
; then
4665 thread_file
='single'
4668 i
[34567]86-*-linux*) # Intel 80386's running GNU/Linux
4669 # aka GNU/Linux C library 6
4671 tm_file
=i386
/linux.h
4672 tmake_file
="t-linux i386/t-crtstuff"
4673 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4676 if test x
$enable_threads = xyes
; then
4683 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4684 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4687 i
[34567]86-pc-msdosdjgpp*)
4688 xm_file
=i386
/xm-djgpp.h
4689 tm_file
=i386
/djgpp.h
4690 tmake_file
=i386
/t-djgpp
4691 xmake_file
=i386
/x-djgpp
4696 case $host in *pc-msdosdjgpp
*)
4701 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4703 tmake_file
=t-libc-ok
4707 i
[34567]86-*-lynxos*)
4708 if test x
$gas = xyes
4712 tm_file
=i386
/lynx-ng.h
4714 xm_file
=i386
/xm-lynx.h
4715 tmake_file
=i386
/t-i386bare
4720 # tmake_file=t-libc-ok
4723 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4724 if test x
$elf = xyes
4726 tm_file
=i386
/osfelf.h
4729 tm_file
=i386
/osfrose.h
4732 xm_file
="i386/xm-osf.h ${xm_file}"
4733 xmake_file
=i386
/x-osfrose
4734 tmake_file
=i386
/t-osf
4735 extra_objs
=halfpic.o
4737 i
[34567]86-go32-rtems*)
4739 xm_file
=i386
/xm-go32.h
4740 tm_file
=i386
/go32-rtems.h
4741 tmake_file
="i386/t-go32 t-rtems"
4743 i
[34567]86-*-rtemscoff*)
4745 tm_file
=i386
/rtems.h
4746 tmake_file
="i386/t-i386bare t-rtems"
4748 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4750 tm_file
=i386
/rtemself.h
4751 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4752 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4754 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4755 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4756 xm_defines
="USG SVR3"
4757 xmake_file
=i386
/x-sco5
4758 install_headers_dir
=install-headers-cpio
4760 if test x
$gas = xyes
4762 tm_file
="i386/sco5gas.h ${tm_file}"
4763 tmake_file
=i386
/t-sco5gas
4765 tmake_file
=i386
/t-sco5
4767 tmake_file
="$tmake_file i386/t-i386bare"
4768 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4770 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4771 xm_file
="${xm_file} i386/xm-sco.h"
4772 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4773 xmake_file
=i386
/x-sco4
4774 install_headers_dir
=install-headers-cpio
4775 if test x
$stabs = xyes
4777 tm_file
=i386
/sco4dbx.h
4778 tmake_file
=i386
/t-svr3dbx
4779 extra_parts
="svr3.ifile svr3z.rfile"
4782 tmake_file
=i386
/t-crtstuff
4783 extra_parts
="crtbegin.o crtend.o"
4785 tmake_file
="$tmake_file i386/t-i386bare"
4786 # The default EAFS filesystem supports long file names.
4787 # Truncating the target makes $host != $target which
4788 # makes gcc think it is doing a cross-compile.
4789 # truncate_target=yes
4791 i
[34567]86-*-sco*) # 80386 running SCO system
4792 xm_file
=i386
/xm-sco.h
4793 xmake_file
=i386
/x-sco
4794 install_headers_dir
=install-headers-cpio
4795 if test x
$stabs = xyes
4797 tm_file
=i386
/scodbx.h
4798 tmake_file
=i386
/t-svr3dbx
4799 extra_parts
="svr3.ifile svr3z.rfile"
4802 extra_parts
="crtbegin.o crtend.o"
4803 tmake_file
=i386
/t-crtstuff
4805 tmake_file
="$tmake_file i386/t-i386bare"
4808 i
[34567]86-*-solaris2*)
4809 xm_file
="xm-alloca.h ${xm_file}"
4810 xm_defines
="USG POSIX SMALL_ARG_MAX"
4812 if test x
$gas = xyes
; then
4813 # Only needed if gas does not support -s
4814 tm_file
="i386/sol2gas.h ${tm_file}"
4816 tmake_file
="i386/t-i386bare i386/t-sol2"
4817 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4819 if test x
${enable_threads} = x
; then
4820 enable_threads
=$have_pthread_h
4821 if test x
${enable_threads} = x
; then
4822 enable_threads
=$have_thread_h
4825 if test x
${enable_threads} = xyes
; then
4826 if test x
${have_pthread_h} = xyes
; then
4829 thread_file
='solaris'
4833 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4834 xm_file
="xm-alloca.h ${xm_file}"
4835 xm_defines
="USG POSIX"
4836 tm_file
=i386
/sysv5.h
4837 if test x
$stabs = xyes
4839 tm_file
="${tm_file} dbx.h"
4841 tmake_file
="i386/t-i386bare i386/t-crtpic"
4843 extra_parts
="crtbegin.o crtend.o"
4844 if test x
$enable_threads = xyes
; then
4848 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4849 xm_file
="xm-alloca.h ${xm_file}"
4850 xm_defines
="USG POSIX SMALL_ARG_MAX"
4851 tm_file
=i386
/sysv4.h
4852 if test x
$stabs = xyes
4854 tm_file
="${tm_file} dbx.h"
4856 tmake_file
="i386/t-i386bare i386/t-crtpic"
4858 extra_parts
="crtbegin.o crtend.o"
4860 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4861 xm_file
="xm-alloca.h ${xm_file}"
4862 xm_defines
="USG POSIX"
4864 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4866 extra_parts
="crtbegin.o crtend.o"
4867 install_headers_dir
=install-headers-cpio
4869 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4871 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4872 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4873 if test x
$stabs = xyes
4875 tm_file
=i386
/osf1elfgdb.h
4877 tm_file
=i386
/osf1elf.h
4879 tmake_file
=i386
/t-osf1elf
4880 xmake_file
=i386
/x-osf1elf
4881 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4883 i
[34567]86-*-sysv*) # Intel 80386's running system V
4884 xm_defines
="USG SVR3"
4885 xmake_file
=i386
/x-sysv3
4886 if test x
$gas = xyes
4888 if test x
$stabs = xyes
4890 tm_file
=i386
/svr3dbx.h
4891 tmake_file
=i386
/t-svr3dbx
4892 extra_parts
="svr3.ifile svr3z.rfile"
4894 tm_file
=i386
/svr3gas.h
4895 extra_parts
="crtbegin.o crtend.o"
4896 tmake_file
=i386
/t-crtstuff
4899 tm_file
=i386
/sysv3.h
4900 extra_parts
="crtbegin.o crtend.o"
4901 tmake_file
=i386
/t-crtstuff
4903 tmake_file
="$tmake_file i386/t-crtpic"
4905 i386-
*-vsta) # Intel 80386's running VSTa kernel
4906 xm_file
="${xm_file} i386/xm-vsta.h"
4908 tmake_file
=i386
/t-vsta
4909 xmake_file
=i386
/x-vsta
4912 xm_file
="${xm_file} i386/xm-cygwin.h"
4913 tmake_file
=i386
/t-cygwin
4914 tm_file
=i386
/win32.h
4915 xmake_file
=i386
/x-cygwin
4917 if test x
$enable_threads = xyes
; then
4922 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4923 xm_file
="${xm_file} i386/xm-cygwin.h"
4924 tmake_file
=i386
/t-cygwin
4925 tm_file
=i386
/cygwin.h
4926 xmake_file
=i386
/x-cygwin
4928 if test x
$enable_threads = xyes
; then
4933 i
[34567]86-*-mingw32*)
4934 tm_file
=i386
/mingw32.h
4935 xm_file
="${xm_file} i386/xm-mingw32.h"
4936 tmake_file
="i386/t-cygwin i386/t-mingw32"
4938 xmake_file
=i386
/x-cygwin
4939 if test x
$enable_threads = xyes
; then
4946 *minwg32crt
* |
*mingw32
*)
4947 tm_file
="${tm_file} i386/crtdll.h"
4953 xm_file
="${xm_file} i386/xm-uwin.h"
4954 xm_defines
="USG NO_STAB_H"
4955 tmake_file
="i386/t-cygwin i386/t-uwin"
4957 xmake_file
=i386
/x-cygwin
4958 if test x
$enable_threads = xyes
; then
4963 i
[34567]86-*-interix*)
4964 tm_file
="i386/i386-interix.h interix.h"
4965 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4967 tmake_file
="i386/t-interix"
4968 extra_objs
=interix.o
4969 xmake_file
=x-interix
4970 if test x
$enable_threads = xyes
; then
4973 if test x
$stabs = xyes
; then
4974 tm_file
="${tm_file} dbxcoff.h"
4977 i
[34567]86-*-winnt3*)
4978 tm_file
=i386
/win-nt.h
4979 out_file
=i386
/i386.c
4980 xm_file
="xm-winnt.h ${xm_file}"
4981 xmake_file
=winnt
/x-winnt
4982 tmake_file
=i386
/t-winnt
4983 extra_host_objs
="winnt.o oldnames.o"
4984 extra_gcc_objs
="spawnv.o oldnames.o"
4985 if test x
$gnu_ld != xyes
4987 extra_programs
=ld.exe
4989 if test x
$enable_threads = xyes
; then
4993 i
[34567]86-dg-dgux*)
4994 xm_file
="xm-alloca.h ${xm_file}"
4995 xm_defines
="USG POSIX"
4996 out_file
=i386
/dgux.c
4998 tmake_file
=i386
/t-dgux
4999 xmake_file
=i386
/x-dgux
5000 install_headers_dir
=install-headers-cpio
5002 i860-alliant-
*) # Alliant FX/2800
5003 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
5004 xm_file
="${xm_file}"
5005 xmake_file
=i860
/x-fx2800
5006 tmake_file
=i860
/t-fx2800
5007 extra_parts
="crtbegin.o crtend.o"
5010 tm_file
="${tm_file} i860/bsd.h"
5011 if test x
$gas = xyes
5013 tm_file
="${tm_file} i860/bsd-gas.h"
5018 tm_file
="${tm_file} i860/mach.h"
5019 tmake_file
=t-libc-ok
5021 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
5022 tm_file
="${tm_file} svr3.h i860/paragon.h"
5023 xm_defines
="USG SVR3"
5027 tm_file
="${tm_file} svr3.h i860/sysv3.h"
5028 xm_defines
="USG SVR3"
5029 xmake_file
=i860
/x-sysv3
5030 extra_parts
="crtbegin.o crtend.o"
5033 tm_file
="${tm_file} svr4.h i860/sysv4.h"
5034 xm_defines
="USG SVR3"
5035 xmake_file
=i860
/x-sysv4
5037 extra_parts
="crtbegin.o crtend.o"
5039 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
5040 tm_file
="${tm_file} i960/vx960.h"
5041 tmake_file
=i960
/t-vxworks960
5043 thread_file
='vxworks'
5045 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
5046 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
5047 tmake_file
=i960
/t-vxworks960
5049 thread_file
='vxworks'
5052 tm_file
="${tm_file} i960/vx960.h"
5053 tmake_file
=i960
/t-vxworks960
5055 thread_file
='vxworks'
5058 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
5059 tmake_file
=i960
/t-960bare
5063 tmake_file
="i960/t-960bare t-rtems"
5064 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
5067 i960-
*-*) # Default i960 environment.
5072 tmake_file
="ia64/t-ia64"
5073 target_cpu_default
="0"
5074 if test x
$gas = xyes
5076 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
5078 if test x
$gnu_ld = xyes
5080 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
5085 tm_file
=ia64
/linux.h
5086 tmake_file
="t-linux ia64/t-ia64 ia64/t-glibc"
5087 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
5088 if test x
$enable_threads = xyes
; then
5094 extra_parts
="crtinit.o crtfini.o"
5096 # m68hc11 and m68hc12 share the same machine description.
5097 m68hc11-
*-*|m6811-
*-*)
5098 tm_file
="m68hc11/m68hc11.h"
5099 xm_file
="m68hc11/xm-m68hc11.h"
5100 tm_p_file
="m68hc11/m68hc11-protos.h"
5101 md_file
="m68hc11/m68hc11.md"
5102 out_file
="m68hc11/m68hc11.c"
5103 tmake_file
="m68hc11/t-m68hc11-gas"
5105 m68hc12-
*-*|m6812-
*-*)
5106 tm_file
="m68hc11/m68hc12.h"
5107 tm_p_file
="m68hc11/m68hc11-protos.h"
5108 xm_file
="m68hc11/xm-m68hc11.h"
5109 md_file
="m68hc11/m68hc11.md"
5110 out_file
="m68hc11/m68hc11.c"
5111 tmake_file
="m68hc11/t-m68hc11-gas"
5113 m68000-convergent-sysv
*)
5115 xm_file
="m68k/xm-3b1.h ${xm_file}"
5118 extra_headers
=math-68881.h
5120 m68000-hp-bsd
*) # HP 9000/200 running BSD
5121 tm_file
=m68k
/hp2bsd.h
5122 xmake_file
=m68k
/x-hp2bsd
5124 extra_headers
=math-68881.h
5126 m68000-hp-hpux
*) # HP 9000 series 300
5127 xm_file
="xm-alloca.h ${xm_file}"
5129 if test x
$gas = xyes
5131 xmake_file
=m68k
/x-hp320g
5132 tm_file
=m68k
/hp310g.h
5134 xmake_file
=m68k
/x-hp320
5135 tm_file
=m68k
/hp310.h
5137 install_headers_dir
=install-headers-cpio
5139 extra_headers
=math-68881.h
5144 extra_headers
=math-68881.h
5147 tm_file
=m68k
/sun2o4.h
5149 extra_headers
=math-68881.h
5152 xm_file
="m68k/xm-3b1.h ${xm_file}"
5154 if test x
$gas = xyes
5161 extra_headers
=math-68881.h
5163 m68k-apple-aux
*) # Apple Macintosh running A/UX
5164 xm_defines
="USG AUX"
5165 tmake_file
=m68k
/t-aux
5166 install_headers_dir
=install-headers-cpio
5167 extra_headers
=math-68881.h
5168 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5170 if test "$gnu_ld" = yes
5172 tm_file
="${tm_file} m68k/auxgld.h"
5174 tm_file
="${tm_file} m68k/auxld.h"
5176 if test "$gas" = yes
5178 tm_file
="${tm_file} m68k/auxgas.h"
5180 tm_file
="${tm_file} m68k/auxas.h"
5182 tm_file
="${tm_file} m68k/a-ux.h"
5186 tm_file
=m68k
/apollo68.h
5187 xmake_file
=m68k
/x-apollo68
5189 extra_headers
=math-68881.h
5192 m68k-altos-sysv
*) # Altos 3068
5193 if test x
$gas = xyes
5195 tm_file
=m68k
/altos3068.h
5198 echo "The Altos is supported only with the GNU assembler" 1>&2
5201 extra_headers
=math-68881.h
5203 m68k-bull-sysv
*) # Bull DPX/2
5204 if test x
$gas = xyes
5206 if test x
$stabs = xyes
5208 tm_file
=m68k
/dpx2cdbx.h
5210 tm_file
=m68k
/dpx2g.h
5215 xm_file
="xm-alloca.h ${xm_file}"
5217 xmake_file
=m68k
/x-dpx2
5219 extra_headers
=math-68881.h
5221 m68k-atari-sysv4
*) # Atari variant of V.4.
5222 tm_file
=m68k
/atari.h
5223 xm_file
="xm-alloca.h ${xm_file}"
5224 xm_defines
="USG FULL_PROTOTYPES"
5226 extra_parts
="crtbegin.o crtend.o"
5227 extra_headers
=math-68881.h
5230 m68k-motorola-sysv
*)
5231 tm_file
=m68k
/mot3300.h
5232 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5233 if test x
$gas = xyes
5235 xmake_file
=m68k
/x-mot3300-gas
5236 if test x
$gnu_ld = xyes
5238 tmake_file
=m68k
/t-mot3300-gald
5240 tmake_file
=m68k
/t-mot3300-gas
5244 xmake_file
=m68k
/x-mot3300
5245 if test x
$gnu_ld = xyes
5247 tmake_file
=m68k
/t-mot3300-gld
5249 tmake_file
=m68k
/t-mot3300
5253 gdb_needs_out_file_path
=yes
5254 extra_parts
="crt0.o mcrt0.o"
5255 extra_headers
=math-68881.h
5258 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5259 tm_file
=m68k
/tower-as.h
5260 xm_defines
="USG SVR3"
5261 xmake_file
=m68k
/x-tower
5262 extra_parts
="crtbegin.o crtend.o"
5263 extra_headers
=math-68881.h
5266 tm_file
=m68k
/plexus.h
5267 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5270 extra_headers
=math-68881.h
5274 xm_file
="xm-alloca.h ${xm_file}"
5276 extra_headers
=math-68881.h
5279 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5280 xm_defines
="USG unos"
5281 xmake_file
=m68k
/x-crds
5284 extra_headers
=math-68881.h
5286 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5288 xm_file
="xm-alloca.h ${xm_file}"
5289 xm_defines
="USG FULL_PROTOTYPES"
5290 xmake_file
=m68k
/x-amix
5292 extra_parts
="crtbegin.o crtend.o"
5293 extra_headers
=math-68881.h
5297 tm_file
=m68k
/ccur-GAS.h
5298 xmake_file
=m68k
/x-ccur
5299 extra_headers
=math-68881.h
5303 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5304 tm_file
=m68k
/hp3bsd44.h
5305 xmake_file
=m68k
/x-hp3bsd44
5307 extra_headers
=math-68881.h
5310 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5311 tm_file
=m68k
/hp3bsd.h
5313 extra_headers
=math-68881.h
5317 if test x
$with_fp = xno
5319 tm_file
=m68k
/isi-nfp.h
5325 extra_headers
=math-68881.h
5327 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5328 xm_file
="xm-alloca.h ${xm_file}"
5330 if test x
$gas = xyes
5332 xmake_file
=m68k
/x-hp320g
5333 tm_file
=m68k
/hp320g.h
5335 xmake_file
=m68k
/x-hp320
5336 tm_file
=m68k
/hpux7.h
5338 install_headers_dir
=install-headers-cpio
5340 extra_headers
=math-68881.h
5343 m68k-hp-hpux
*) # HP 9000 series 300
5344 xm_file
="xm-alloca.h ${xm_file}"
5346 if test x
$gas = xyes
5348 xmake_file
=m68k
/x-hp320g
5349 tm_file
=m68k
/hp320g.h
5351 xmake_file
=m68k
/x-hp320
5352 tm_file
=m68k
/hp320.h
5354 install_headers_dir
=install-headers-cpio
5356 extra_headers
=math-68881.h
5360 tm_file
=m68k
/sun3mach.h
5362 extra_headers
=math-68881.h
5366 if test x
$gas = xyes
5368 tm_file
=m68k
/news3gas.h
5370 tm_file
=m68k
/news3.h
5373 extra_headers
=math-68881.h
5376 m68k-sony-bsd
* | m68k-sony-newsos
*)
5377 if test x
$gas = xyes
5379 tm_file
=m68k
/newsgas.h
5384 extra_headers
=math-68881.h
5387 m68k-next-nextstep2
*)
5388 tm_file
=m68k
/next21.h
5389 xm_file
="m68k/xm-next.h ${xm_file}"
5390 tmake_file
=m68k
/t-next
5391 xmake_file
=m68k
/x-next
5392 extra_objs
=nextstep.o
5393 extra_headers
=math-68881.h
5397 m68k-next-nextstep
[34]*)
5399 xm_file
="m68k/xm-next.h ${xm_file}"
5400 tmake_file
=m68k
/t-next
5401 xmake_file
=m68k
/x-next
5402 extra_objs
=nextstep.o
5403 extra_parts
="crtbegin.o crtend.o"
5404 extra_headers
=math-68881.h
5406 if test x
$enable_threads = xyes
; then
5411 if test x
$with_fp = xno
5413 tm_file
=m68k
/sun3n3.h
5415 tm_file
=m68k
/sun3o3.h
5419 extra_headers
=math-68881.h
5421 m68k-sun-sunos
*) # For SunOS 4 (the default).
5422 if test x
$with_fp = xno
5424 tm_file
=m68k
/sun3n.h
5430 extra_headers
=math-68881.h
5433 tm_file
=m68k
/vxm68k.h
5434 tmake_file
=m68k
/t-vxworks68
5435 extra_headers
=math-68881.h
5436 thread_file
='vxworks'
5440 tmake_file
=m68k
/t-m68kbare
5441 tm_file
="m68k/m68k-aout.h libgloss.h"
5442 extra_headers
=math-68881.h
5446 tmake_file
=m68k
/t-m68kbare
5447 tm_file
="m68k/m68k-coff.h dbx.h"
5448 extra_headers
=math-68881.h
5451 m68020-
*-elf* | m68k-
*-elf*)
5452 tm_file
="m68k/m68020-elf.h"
5453 xm_file
=m68k
/xm-m68kv.h
5454 tmake_file
=m68k
/t-m68kelf
5455 header_files
=math-68881.h
5458 if test x
$gas = xyes
5462 tm_file
=m68k
/lynx-ng.h
5464 xm_file
=m68k
/xm-lynx.h
5466 tmake_file
=m68k
/t-lynx
5467 extra_headers
=math-68881.h
5471 tm_file
=m68k
/netbsd.h
5478 # we need collect2 until our bug is fixed...
5481 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5482 xm_file
="xm-alloca.h ${xm_file}"
5484 xmake_file
=m68k
/x-m68kv
5485 extra_parts
="crtbegin.o crtend.o"
5486 extra_headers
=math-68881.h
5489 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5490 tm_file
=m68k
/m68kv4.h
5491 xm_file
="xm-alloca.h ${xm_file}"
5494 extra_parts
="crtbegin.o crtend.o"
5495 extra_headers
=math-68881.h
5498 m68k-
*-linux*aout
*) # Motorola m68k's running GNU/Linux
5501 tm_file
=m68k
/linux-aout.h
5502 tmake_file
="t-linux-aout m68k/t-linux-aout"
5503 extra_headers
=math-68881.h
5507 m68k-
*-linux*libc1
) # Motorola m68k's running GNU/Linux
5508 # with ELF format using the
5509 # GNU/Linux C library 5
5511 tm_file
=m68k
/linux.h
5512 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5513 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5514 extra_headers
=math-68881.h
5518 m68k-
*-linux*) # Motorola m68k's running GNU/Linux
5519 # with ELF format using glibc 2
5520 # aka the GNU/Linux C library 6.
5522 tm_file
=m68k
/linux.h
5523 tmake_file
="t-linux m68k/t-linux"
5524 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5525 extra_headers
=math-68881.h
5528 if test x
$enable_threads = xyes
; then
5533 tmake_file
=m68k
/t-m68kbare
5534 tm_file
=m68k
/m68k-psos.h
5535 extra_headers
=math-68881.h
5539 tmake_file
="m68k/t-m68kbare t-rtems"
5540 tm_file
=m68k
/rtems.h
5541 extra_headers
=math-68881.h
5544 m68k-
*-rtemself*|m68k-
*-rtems*)
5545 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5546 tm_file
=m68k
/rtemself.h
5547 extra_headers
=math-68881.h
5553 tm_file
=m88k
/dguxbcs.h
5554 tmake_file
=m88k
/t-dguxbcs
5558 tmake_file
=m88k
/t-dgux
5561 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5562 xmake_file
=m88k
/x-dgux
5563 if test x
$gas = xyes
5565 tmake_file
=m88k
/t-dgux-gas
5568 m88k-dolphin-sysv3
*)
5569 tm_file
=m88k
/dolph.h
5570 extra_parts
="crtbegin.o crtend.o"
5571 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5572 xmake_file
=m88k
/x-dolph
5573 if test x
$gas = xyes
5575 tmake_file
=m88k
/t-m88k-gas
5578 m88k-tektronix-sysv3
)
5579 tm_file
=m88k
/tekXD88.h
5580 extra_parts
="crtbegin.o crtend.o"
5581 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5582 xmake_file
=m88k
/x-tekXD88
5583 if test x
$gas = xyes
5585 tmake_file
=m88k
/t-m88k-gas
5589 tm_file
=m88k
/m88k-aout.h
5592 tm_file
=m88k
/m88k-coff.h
5593 tmake_file
=m88k
/t-bug
5597 extra_parts
="crtbegin.o crtend.o"
5598 if test x
$gas = xyes
5600 tmake_file
=m88k
/t-luna-gas
5602 tmake_file
=m88k
/t-luna
5606 tmake_file
="${tmake_file} m88k/t-luna-gas"
5607 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5608 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5611 tm_file
=m88k
/sysv3.h
5612 extra_parts
="crtbegin.o crtend.o"
5613 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5614 xmake_file
=m88k
/x-sysv3
5615 if test x
$gas = xyes
5617 tmake_file
=m88k
/t-m88k-gas
5621 tm_file
=m88k
/sysv4.h
5622 extra_parts
="crtbegin.o crtend.o"
5623 xmake_file
=m88k
/x-sysv4
5624 tmake_file
=m88k
/t-sysv4
5627 tm_file
=mcore
/mcore-elf.h
5628 tmake_file
=mcore
/t-mcore
5631 tm_file
=mcore
/mcore-pe.h
5632 tmake_file
=mcore
/t-mcore-pe
5634 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5635 if test "x$gnu_ld" = xyes
5637 tm_file
="mips/iris6.h mips/iris6gld.h"
5639 tm_file
=mips
/iris6.h
5641 tmake_file
=mips
/t-iris6
5642 xm_file
=mips
/xm-iris6.h
5643 xmake_file
=mips
/x-iris6
5644 # if test x$enable_threads = xyes; then
5645 # thread_file='irix'
5649 tm_file
="mips/elf.h mips/vxworks.h"
5650 tmake_file
=mips
/t-ecoff
5653 extra_parts
="crtbegin.o crtend.o"
5654 thread_file
='vxworks'
5656 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5657 tm_file
="mips/iris6.h mips/cross64.h"
5659 xm_file
="mips/xm-iris5.h"
5660 xmake_file
=mips
/x-iris
5661 tmake_file
=mips
/t-cross64
5662 # See comment in mips/iris[56].h files.
5664 # if test x$enable_threads = xyes; then
5665 # thread_file='irix'
5669 if test x
$gas = xyes
5671 if test x
$stabs = xyes
5673 tm_file
=mips
/iris5gdb.h
5675 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5678 tm_file
=mips
/sni-svr4.h
5681 xmake_file
=mips
/x-sni-svr4
5682 tmake_file
=mips
/t-mips-gas
5683 if test x
$gnu_ld != xyes
5688 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5689 if test x
$gas = xyes
5691 tm_file
="mips/iris5.h mips/iris5gas.h"
5692 if test x
$stabs = xyes
5694 tm_file
="${tm_file} dbx.h"
5697 tm_file
=mips
/iris5.h
5700 xm_file
="mips/xm-iris5.h"
5701 xmake_file
=mips
/x-iris
5702 # mips-tfile doesn't work yet
5703 tmake_file
=mips
/t-mips-gas
5704 # See comment in mips/iris5.h file.
5706 # if test x$enable_threads = xyes; then
5707 # thread_file='irix'
5710 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5711 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5712 if test x
$stabs = xyes
; then
5713 tm_file
="${tm_file} dbx.h"
5716 xmake_file
=mips
/x-iris
5717 if test x
$gas = xyes
5719 tmake_file
=mips
/t-mips-gas
5721 extra_passes
="mips-tfile mips-tdump"
5723 if test x
$gnu_ld != xyes
5727 # if test x$enable_threads = xyes; then
5728 # thread_file='irix'
5731 mips-sgi-irix4
*) # Mostly like a MIPS.
5732 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5733 if test x
$stabs = xyes
; then
5734 tm_file
="${tm_file} dbx.h"
5737 xmake_file
=mips
/x-iris
5738 if test x
$gas = xyes
5740 tmake_file
=mips
/t-mips-gas
5742 extra_passes
="mips-tfile mips-tdump"
5744 if test x
$gnu_ld != xyes
5748 # if test x$enable_threads = xyes; then
5749 # thread_file='irix'
5752 mips-sgi-
*) # Mostly like a MIPS.
5753 tm_file
="mips/iris3.h ${tm_file}"
5754 if test x
$stabs = xyes
; then
5755 tm_file
="${tm_file} dbx.h"
5758 xmake_file
=mips
/x-iris3
5759 if test x
$gas = xyes
5761 tmake_file
=mips
/t-mips-gas
5763 extra_passes
="mips-tfile mips-tdump"
5765 if test x
$gnu_ld != xyes
5770 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5771 tm_file
="mips/osfrose.h ${tm_file}"
5772 xmake_file
=mips
/x-osfrose
5773 tmake_file
=mips
/t-osfrose
5774 extra_objs
=halfpic.o
5777 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5778 tm_file
=mips
/dec-osf1.h
5779 if test x
$stabs = xyes
; then
5780 tm_file
="${tm_file} dbx.h"
5782 xmake_file
=mips
/x-dec-osf1
5783 if test x
$gas = xyes
5785 tmake_file
=mips
/t-mips-gas
5787 tmake_file
=mips
/t-ultrix
5788 extra_passes
="mips-tfile mips-tdump"
5790 if test x
$gnu_ld != xyes
5795 mips-dec-bsd
*) # Decstation running 4.4 BSD
5796 tm_file
=mips
/dec-bsd.h
5797 if test x
$gas = xyes
5799 tmake_file
=mips
/t-mips-gas
5801 tmake_file
=mips
/t-ultrix
5802 extra_passes
="mips-tfile mips-tdump"
5804 if test x
$gnu_ld != xyes
5809 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5810 tm_file
=mips
/netbsd.h
5811 # On NetBSD, the headers are already okay, except for math.h.
5814 mips
*-*-linux*) # Linux MIPS, either endian.
5817 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5818 *) tm_file
="mips/elf.h mips/linux.h" ;;
5821 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5824 if test x
$enable_threads = xyes
; then
5828 mips
*el-
*-openbsd*) # mips little endian
5829 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5831 mips
*-*-openbsd*) # mips big endian
5832 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5833 tm_file
="mips/openbsd-be.h ${tm_file}"
5835 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5836 tm_file
="mips/news4.h ${tm_file}"
5837 if test x
$stabs = xyes
; then
5838 tm_file
="${tm_file} dbx.h"
5840 if test x
$gas = xyes
5842 tmake_file
=mips
/t-mips-gas
5844 extra_passes
="mips-tfile mips-tdump"
5846 if test x
$gnu_ld != xyes
5850 xmake_file
=mips
/x-sony
5852 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5853 # That is based on svr4.
5854 # t-svr4 is not right because this system doesn't use ELF.
5855 tm_file
="mips/news5.h ${tm_file}"
5856 if test x
$stabs = xyes
; then
5857 tm_file
="${tm_file} dbx.h"
5860 if test x
$gas = xyes
5862 tmake_file
=mips
/t-mips-gas
5864 extra_passes
="mips-tfile mips-tdump"
5866 if test x
$gnu_ld != xyes
5871 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5872 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5873 if test x
$stabs = xyes
; then
5874 tm_file
="${tm_file} dbx.h"
5877 xmake_file
=mips
/x-sysv
5878 if test x
$gas = xyes
5880 tmake_file
=mips
/t-mips-gas
5881 extra_parts
="crtbegin.o crtend.o"
5883 tmake_file
=mips
/t-mips
5884 extra_passes
="mips-tfile mips-tdump"
5886 if test x
$gnu_ld != xyes
5891 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5892 tm_file
="mips/ultrix.h ${tm_file}"
5893 if test x
$stabs = xyes
; then
5894 tm_file
="${tm_file} dbx.h"
5896 xmake_file
=mips
/x-ultrix
5897 if test x
$gas = xyes
5899 tmake_file
=mips
/t-mips-gas
5901 tmake_file
=mips
/t-ultrix
5902 extra_passes
="mips-tfile mips-tdump"
5904 if test x
$gnu_ld != xyes
5909 mips-
*-riscos[56789]bsd
*)
5910 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5911 if test x
$stabs = xyes
; then
5912 tm_file
="${tm_file} dbx.h"
5914 if test x
$gas = xyes
5916 tmake_file
=mips
/t-bsd-gas
5918 tmake_file
=mips
/t-bsd
5919 extra_passes
="mips-tfile mips-tdump"
5921 if test x
$gnu_ld != xyes
5926 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5927 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5928 if test x
$stabs = xyes
; then
5929 tm_file
="${tm_file} dbx.h"
5931 if test x
$gas = xyes
5933 tmake_file
=mips
/t-bsd-gas
5935 tmake_file
=mips
/t-bsd
5936 extra_passes
="mips-tfile mips-tdump"
5938 if test x
$gnu_ld != xyes
5943 mips-
*-riscos[56789]sysv4
*)
5944 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5945 if test x
$stabs = xyes
; then
5946 tm_file
="${tm_file} dbx.h"
5948 xmake_file
=mips
/x-sysv
5949 if test x
$gas = xyes
5951 tmake_file
=mips
/t-svr4-gas
5953 tmake_file
=mips
/t-svr4
5954 extra_passes
="mips-tfile mips-tdump"
5956 if test x
$gnu_ld != xyes
5961 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5962 tm_file
="mips/svr4-4.h ${tm_file}"
5963 if test x
$stabs = xyes
; then
5964 tm_file
="${tm_file} dbx.h"
5967 xmake_file
=mips
/x-sysv
5968 if test x
$gas = xyes
5970 tmake_file
=mips
/t-svr4-gas
5972 tmake_file
=mips
/t-svr4
5973 extra_passes
="mips-tfile mips-tdump"
5975 if test x
$gnu_ld != xyes
5980 mips-
*-riscos[56789]sysv
*)
5981 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5982 if test x
$stabs = xyes
; then
5983 tm_file
="${tm_file} dbx.h"
5986 xmake_file
=mips
/x-sysv
5987 if test x
$gas = xyes
5989 tmake_file
=mips
/t-svr3-gas
5991 tmake_file
=mips
/t-svr3
5992 extra_passes
="mips-tfile mips-tdump"
5994 if test x
$gnu_ld != xyes
5999 mips-
*-sysv* | mips-
*-riscos*sysv
*)
6000 tm_file
="mips/svr3-4.h ${tm_file}"
6001 if test x
$stabs = xyes
; then
6002 tm_file
="${tm_file} dbx.h"
6005 xmake_file
=mips
/x-sysv
6006 if test x
$gas = xyes
6008 tmake_file
=mips
/t-svr3-gas
6010 tmake_file
=mips
/t-svr3
6011 extra_passes
="mips-tfile mips-tdump"
6013 if test x
$gnu_ld != xyes
6018 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
6019 tm_file
=mips
/mips-5.h
6020 if test x
$stabs = xyes
; then
6021 tm_file
="${tm_file} dbx.h"
6023 if test x
$gas = xyes
6025 tmake_file
=mips
/t-mips-gas
6027 extra_passes
="mips-tfile mips-tdump"
6029 if test x
$gnu_ld != xyes
6037 tm_file
=mips
/ecoffl.h
6038 if test x
$stabs = xyes
; then
6039 tm_file
="${tm_file} dbx.h"
6041 tmake_file
=mips
/t-ecoff
6044 tm_file
="gofast.h mips/ecoff.h"
6045 if test x
$stabs = xyes
; then
6046 tm_file
="${tm_file} dbx.h"
6048 tmake_file
=mips
/t-ecoff
6051 tm_file
="mips/elfl.h"
6052 tmake_file
=mips
/t-elf
6055 tm_file
="mips/elf.h"
6056 tmake_file
=mips
/t-elf
6059 tm_file
="mips/elfl64.h"
6060 tmake_file
=mips
/t-elf
6062 mips64orionel-
*-elf*)
6063 tm_file
="mips/elforion.h mips/elfl64.h"
6064 tmake_file
=mips
/t-elf
6067 tm_file
="mips/elf64.h"
6068 tmake_file
=mips
/t-elf
6071 tm_file
="mips/elforion.h mips/elf64.h"
6072 tmake_file
=mips
/t-elf
6074 mips64orion-
*-rtems*)
6075 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
6076 tmake_file
="mips/t-elf t-rtems"
6079 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
6080 tmake_file
=mips
/t-r3900
6083 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
6084 tmake_file
=mips
/t-r3900
6086 mips-
*-*) # Default MIPS RISC-OS 4.0.
6087 if test x
$stabs = xyes
; then
6088 tm_file
="${tm_file} dbx.h"
6090 if test x
$gas = xyes
6092 tmake_file
=mips
/t-mips-gas
6094 extra_passes
="mips-tfile mips-tdump"
6096 if test x
$gnu_ld != xyes
6104 tm_file
="mn10200/mn10200.h"
6105 if test x
$stabs = xyes
6107 tm_file
="${tm_file} dbx.h"
6113 tm_file
="mn10300/mn10300.h"
6114 if test x
$stabs = xyes
6116 tm_file
="${tm_file} dbx.h"
6121 tm_file
=ns32k
/encore.h
6125 tm_file
=ns32k
/sequent.h
6129 tm_file
=ns32k
/tek6100.h
6133 tm_file
=ns32k
/tek6200.h
6137 tm_file
=ns32k
/merlin.h
6141 tm_file
=ns32k
/pc532-mach.h
6145 tm_file
=ns32k
/pc532-min.h
6146 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6151 tm_file
=ns32k
/netbsd.h
6152 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6153 # On NetBSD, the headers are already okay, except for math.h.
6158 tm_file
="${tm_file} pdp11/2bsd.h"
6168 tm_file
="svr4.h pj/linux.h ${tm_file}"
6173 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6180 xmake_file
=romp
/x-mach
6187 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6191 tm_file
=rs6000
/beos.h
6192 xm_file
=rs6000
/xm-beos.h
6193 tmake_file
=rs6000
/t-beos
6194 xmake_file
=rs6000
/x-beos
6197 tm_file
=rs6000
/sysv4.h
6198 xm_file
="rs6000/xm-sysv4.h"
6199 xm_defines
="USG POSIX"
6200 extra_headers
=ppc-asm.h
6201 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6202 xmake_file
=rs6000
/x-sysv4
6205 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6206 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6207 extra_headers
=ppc-asm.h
6210 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6211 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6212 extra_headers
=ppc-asm.h
6215 tm_file
="rs6000/sysv4.h"
6216 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6217 extra_headers
=ppc-asm.h
6220 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6221 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6222 extra_headers
=ppc-asm.h
6225 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6226 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6227 extra_headers
=ppc-asm.h
6229 powerpc-
*-linux*libc1
)
6230 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6231 xm_file
=rs6000
/xm-sysv4.h
6232 out_file
=rs6000
/rs6000.c
6233 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6235 extra_headers
=ppc-asm.h
6236 if test x
$enable_threads = xyes
; then
6241 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6242 xm_file
="rs6000/xm-sysv4.h"
6243 xm_defines
="USG ${xm_defines}"
6244 out_file
=rs6000
/rs6000.c
6245 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6247 extra_headers
=ppc-asm.h
6248 if test x
$enable_threads = xyes
; then
6252 powerpc-wrs-vxworks
*)
6254 xm_file
="rs6000/xm-sysv4.h"
6255 xm_defines
="USG POSIX"
6256 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6257 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6258 extra_headers
=ppc-asm.h
6259 thread_file
='vxworks'
6261 powerpcle-wrs-vxworks
*)
6263 xm_file
="rs6000/xm-sysv4.h"
6264 xm_defines
="USG POSIX"
6265 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6266 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6267 extra_headers
=ppc-asm.h
6268 thread_file
='vxworks'
6271 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6272 xm_file
="rs6000/xm-sysv4.h"
6273 xm_defines
="USG POSIX"
6274 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6275 xmake_file
=rs6000
/x-sysv4
6276 extra_headers
=ppc-asm.h
6279 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6280 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6281 extra_headers
=ppc-asm.h
6283 powerpcle-
*-eabisim*)
6284 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6285 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6286 extra_headers
=ppc-asm.h
6289 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6290 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6291 extra_headers
=ppc-asm.h
6293 powerpcle-
*-solaris2*)
6294 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6295 xm_file
="rs6000/xm-sysv4.h"
6296 xm_defines
="USG POSIX"
6297 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6298 xmake_file
=rs6000
/x-sysv4
6299 extra_headers
=ppc-asm.h
6301 rs6000-ibm-aix3.
[01]*)
6302 tm_file
=rs6000
/aix31.h
6303 xmake_file
=rs6000
/x-aix31
6307 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6308 tm_file
=rs6000
/aix3newas.h
6309 if test x
$host != x
$target
6311 tmake_file
=rs6000
/t-xnewas
6313 tmake_file
=rs6000
/t-newas
6318 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6319 tm_file
=rs6000
/aix41.h
6320 if test x
$host != x
$target
6322 tmake_file
=rs6000
/t-xnewas
6324 tmake_file
=rs6000
/t-newas
6326 if test "$gnu_ld" = yes
6328 xmake_file
=rs6000
/x-aix41-gld
6330 tmake_file
='rs6000/t-newas'
6332 xmake_file
=rs6000
/x-aix41
6336 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6337 tm_file
=rs6000
/aix43.h
6338 tmake_file
=rs6000
/t-aix43
6339 xmake_file
=rs6000
/x-aix41
6344 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6345 tm_file
=rs6000
/aix43.h
6346 tmake_file
=rs6000
/t-aix43
6347 xmake_file
=rs6000
/x-aix41
6361 tm_file
=rs6000
/mach.h
6362 xm_file
="${xm_file} rs6000/xm-mach.h"
6363 xmake_file
=rs6000
/x-mach
6367 tm_file
=rs6000
/lynx.h
6368 xm_file
=rs6000
/xm-lynx.h
6369 tmake_file
=rs6000
/t-rs6000
6370 xmake_file
=rs6000
/x-lynx
6374 tmake_file
="sh/t-sh sh/t-elf"
6375 tm_file
="sh/sh.h sh/elf.h"
6379 tmake_file
="sh/t-sh sh/t-elf t-rtems"
6380 tm_file
="sh/sh.h sh/elf.h sh/rtemself.h"
6384 tmake_file
="sh/t-sh t-rtems"
6385 tm_file
="sh/sh.h sh/rtems.h"
6389 tm_file
="sh/sh.h sh/elf.h sh/linux.h"
6390 tmake_file
="sh/t-sh sh/t-elf sh/t-linux"
6393 if test x
$enable_threads = xyes
; then
6403 xm_file
="xm-alloca.h ${xm_file}"
6406 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6407 tm_file
=sparc
/vxsparc.h
6408 tmake_file
=sparc
/t-vxsparc
6410 thread_file
='vxworks'
6413 tmake_file
=sparc
/t-sparcbare
6414 tm_file
="sparc/aout.h libgloss.h"
6417 tm_file
=sparc
/netbsd.h
6422 # we need collect2 until our bug is fixed...
6430 tmake_file
=sparc
/t-elf
6431 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6435 sparc-
*-linux*aout
*) # Sparc's running GNU/Linux, a.out
6436 xm_file
="${xm_file} sparc/xm-linux.h"
6437 tm_file
=sparc
/linux-aout.h
6441 sparc-
*-linux*libc1
*) # Sparc's running GNU/Linux, libc5
6442 xm_file
="${xm_file} sparc/xm-linux.h"
6444 tm_file
=sparc
/linux.h
6445 tmake_file
="t-linux t-linux-gnulibc1"
6446 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6450 sparc-
*-linux*) # Sparc's running GNU/Linux, libc6
6451 xm_file
="${xm_file} sparc/xm-linux.h"
6453 tm_file
=sparc
/linux.h
6454 tmake_file
="t-linux"
6455 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6457 if test x
$enable_threads = xyes
; then
6463 if test x
$gas = xyes
6465 tm_file
=sparc
/lynx.h
6467 tm_file
=sparc
/lynx-ng.h
6469 xm_file
=sparc
/xm-lynx.h
6470 tmake_file
=sparc
/t-sunos41
6474 tmake_file
="sparc/t-sparcbare t-rtems"
6475 tm_file
=sparc
/rtems.h
6477 sparc-
*-rtems*|sparc-
*-rtemself*)
6478 tm_file
="sparc/rtemself.h"
6479 tmake_file
="sparc/t-elf t-rtems"
6480 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6484 sparcv9-
*-solaris2*)
6485 if test x
$gnu_ld = xyes
6487 tm_file
=sparc
/sol2-64.h
6489 tm_file
=sparc
/sol2-sld-64.h
6491 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6492 xm_defines
="USG POSIX"
6493 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6494 if test x
$gnu_ld = xyes
; then
6495 tmake_file
="$tmake_file sparc/t-slibgcc"
6497 tmake_file
="$tmake_file sparc/t-slibgcc-sld"
6499 xmake_file
=sparc
/x-sysv4
6500 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6502 if test x
${enable_threads} = x
; then
6503 enable_threads
=$have_pthread_h
6504 if test x
${enable_threads} = x
; then
6505 enable_threads
=$have_thread_h
6508 if test x
${enable_threads} = xyes
; then
6509 if test x
${have_pthread_h} = xyes
; then
6512 thread_file
='solaris'
6516 sparc-hal-solaris2
*)
6517 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6518 xm_defines
="USG POSIX"
6519 tm_file
="sparc/sol2.h sparc/hal.h"
6520 tmake_file
="sparc/t-halos sparc/t-sol2"
6521 if test x
$gnu_ld = xyes
; then
6522 tmake_file
="$tmake_file sparc/t-slibgcc"
6524 tmake_file
="$tmake_file sparc/t-slibgcc-sld"
6526 xmake_file
=sparc
/x-sysv4
6527 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6536 thread_file
='solaris'
6539 if test x
$gnu_ld = xyes
6541 tm_file
=sparc
/sol2.h
6543 tm_file
=sparc
/sol2-sld.h
6545 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6546 xm_defines
="USG POSIX"
6547 tmake_file
=sparc
/t-sol2
6548 if test x
$gnu_ld = xyes
; then
6549 tmake_file
="$tmake_file sparc/t-slibgcc"
6551 tmake_file
="$tmake_file sparc/t-slibgcc-sld"
6553 xmake_file
=sparc
/x-sysv4
6554 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6555 # At the moment, 32-to-64 cross compilation doesn't work.
6558 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6559 #changequote([,])dnl
6561 # if test x$gnu_ld = xyes
6563 # tm_file=sparc/sol2-64.h
6565 # tm_file=sparc/sol2-sld-64.h
6567 # tmake_file="$tmake_file sparc/t-sol2-64"
6578 if test x
${enable_threads} = x
; then
6579 enable_threads
=$have_pthread_h
6580 if test x
${enable_threads} = x
; then
6581 enable_threads
=$have_thread_h
6584 if test x
${enable_threads} = xyes
; then
6585 if test x
${have_pthread_h} = xyes
; then
6588 thread_file
='solaris'
6593 tm_file
=sparc
/sunos4.h
6594 tmake_file
=sparc
/t-sunos40
6598 tm_file
=sparc
/sunos4.h
6599 tmake_file
=sparc
/t-sunos41
6601 if test x
$gas = xyes
; then
6602 tm_file
="${tm_file} sparc/sun4gas.h"
6606 tm_file
=sparc
/sun4o3.h
6610 tm_file
=sparc
/sysv4.h
6611 xm_file
="sparc/xm-sysv4.h"
6612 xm_defines
="USG POSIX"
6614 xmake_file
=sparc
/x-sysv4
6615 extra_parts
="crtbegin.o crtend.o"
6618 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6619 xm_defines
="USG POSIX"
6620 tm_file
=sparc
/vxsim.h
6621 tmake_file
=sparc
/t-vxsparc
6622 xmake_file
=sparc
/x-sysv4
6625 tm_file
="sparc/splet.h libgloss.h"
6626 tmake_file
=sparc
/t-splet
6629 tm_file
="sparc/litecoff.h libgloss.h"
6630 tmake_file
=sparc
/t-sparclite
6633 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6634 tmake_file
=sparc
/t-sparclite
6637 tm_file
="sparc/liteelf.h"
6638 tmake_file
=sparc
/t-sparclite
6639 extra_parts
="crtbegin.o crtend.o"
6642 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6643 tmake_file
=sparc
/t-sp86x
6646 tm_file
="sparc/sp86x-elf.h"
6647 tmake_file
=sparc
/t-sp86x
6648 extra_parts
="crtbegin.o crtend.o"
6651 tmake_file
=sparc
/t-sp64
6652 tm_file
=sparc
/sp64-aout.h
6655 tmake_file
=sparc
/t-sp64
6656 tm_file
=sparc
/sp64-elf.h
6657 extra_parts
="crtbegin.o crtend.o"
6659 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6660 tmake_file
="t-linux sparc/t-linux64"
6661 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6662 tm_file
=sparc
/linux64.h
6664 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6666 if test x
$enable_threads = xyes
; then
6672 { echo "configure: error:
6673 *** The Thumb targets have been depreciated. The equivalent
6674 *** ARM based toolchain can now generated Thumb instructions
6675 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6679 tm_file
="v850/rtems.h"
6680 xm_file
="v850/xm-v850.h"
6681 tmake_file
="v850/t-v850 t-rtems"
6682 if test x
$stabs = xyes
6684 tm_file
="${tm_file} dbx.h"
6689 target_cpu_default
="TARGET_CPU_generic"
6691 tm_file
="v850/v850.h"
6692 xm_file
="v850/xm-v850.h"
6693 tmake_file
=v850
/t-v850
6694 if test x
$stabs = xyes
6696 tm_file
="${tm_file} dbx.h"
6700 vax-
*-bsd*) # vaxen running BSD
6704 vax-
*-sysv*) # vaxen running system V
6705 tm_file
="${tm_file} vax/vaxv.h"
6710 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6716 tmake_file
="${tmake_file} vax/t-openbsd"
6717 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6718 xm_file
="xm-openbsd.h vax/xm-vax.h"
6722 vax-
*-ultrix*) # vaxen running ultrix
6723 tm_file
="${tm_file} vax/ultrix.h"
6726 vax-
*-vms*) # vaxen running VMS
6727 xm_file
=vax
/xm-vms.h
6731 vax-
*-*) # vax default entry
6735 xm_file
="${xm_file} xm-svr3"
6739 echo "Configuration $machine not supported" 1>&2
6746 ;; # Existing GNU/Linux systems do not use the GNU setup.
6748 # On the GNU system, the setup is just about the same on
6749 # each different CPU. The specific machines that GNU
6750 # supports are matched above and just set $cpu_type.
6751 xm_file
="xm-gnu.h ${xm_file}"
6752 tm_file
=${cpu_type}/gnu.h
6753 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6754 # GNU always uses ELF.
6756 # GNU tools are the only tools.
6759 xmake_file
=x-linux
# These details are the same as Linux.
6760 tmake_file
=t-gnu
# These are not.
6763 xmake_try_sysv
=x-sysv
6764 install_headers_dir
=install-headers-cpio
6767 install_headers_dir
=install-headers-cpio
6771 # Distinguish i[34567]86
6772 # Also, do not run mips-tfile on MIPS if using gas.
6773 # Process --with-cpu= for PowerPC/rs6000
6774 target_cpu_default2
=
6777 target_cpu_default2
=1
6780 case $target_alias in
6782 target_cpu_default2
=4
6785 target_cpu_default2
=2
6789 i686-
*-* | i786-
*-*)
6790 target_cpu_default2
=3
6795 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6798 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6801 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6804 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6807 target_cpu_default2
="MASK_CPU_EV5"
6811 if test x
$gas = xyes
6813 if test "$target_cpu_default2" = ""
6815 target_cpu_default2
="MASK_GAS"
6817 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6822 case "x$with_cpu" in
6825 target_cpu_default2
="TARGET_CPU_generic"
6828 # Distinguish cores, and major variants
6829 # arm7m doesn't exist, but D & I don't affect code
6830 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6831 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6832 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6833 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6834 target_cpu_default2
="TARGET_CPU_$with_cpu"
6838 echo "--with-cpu must be passed a value" 1>&2
6843 if test x
$pass2done = xyes
6845 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6852 mips
*-*-ecoff* | mips
*-*-elf*)
6853 if test x
$gas = xyes
6855 if test x
$gnu_ld = xyes
6857 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6859 target_cpu_default2
="MASK_GAS"
6864 if test x
$gas = xyes
6866 target_cpu_default2
="MASK_GAS"
6869 powerpc
*-*-* | rs6000-
*-*)
6870 case "x$with_cpu" in
6874 xcommon | xpower | xpower2 | xpowerpc | xrios \
6875 | xrios1 | xrios2 | xrsc | xrsc1 \
6876 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6877 | xec603e | x740 | x750 | x401 \
6878 | x403 | x505 | x801 | x821 | x823 | x860
)
6879 target_cpu_default2
="\"$with_cpu\""
6883 echo "--with-cpu must be passed a value" 1>&2
6888 if test x
$pass2done = xyes
6890 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6897 case ".$with_cpu" in
6899 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6901 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6902 target_cpu_default2
="TARGET_CPU_$with_cpu"
6905 if test x
$pass2done = xyes
6907 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6915 if test "$target_cpu_default2" != ""
6917 if test "$target_cpu_default" != ""
6919 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6921 target_cpu_default
=$target_cpu_default2
6925 # No need for collect2 if we have the GNU linker.
6926 # Actually, there is now; GNU ld doesn't handle the EH info or
6927 # collecting for shared libraries.
6934 # Save data on machine being used to compile GCC in build_xm_file.
6935 # Save data on host machine in vars host_xm_file and host_xmake_file.
6936 if test x
$pass1done = x
6938 if test x
"$xm_file" = x
6939 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6940 else build_xm_file
=$xm_file
6942 build_xm_defines
=$xm_defines
6943 build_install_headers_dir
=$install_headers_dir
6944 build_exeext
=$exeext
6947 if test x
$pass2done = x
6949 if test x
"$xm_file" = x
6950 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6951 else host_xm_file
=$xm_file
6953 host_xm_defines
=$xm_defines
6954 if test x
"$xmake_file" = x
6955 then xmake_file
=$cpu_type/x-
$cpu_type
6957 host_xmake_file
="$xmake_file"
6958 host_truncate_target
=$truncate_target
6959 host_extra_gcc_objs
=$extra_gcc_objs
6960 host_extra_objs
=$extra_host_objs
6967 extra_objs
="${host_extra_objs} ${extra_objs}"
6969 # Default the target-machine variables that were not explicitly set.
6970 if test x
"$tm_file" = x
6971 then tm_file
=$cpu_type/$cpu_type.h
; fi
6973 if test x
$extra_headers = x
6974 then extra_headers
=; fi
6976 if test x
"$xm_file" = x
6977 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6979 if test x
$md_file = x
6980 then md_file
=$cpu_type/$cpu_type.md
; fi
6982 if test x
$out_file = x
6983 then out_file
=$cpu_type/$cpu_type.c
; fi
6985 if test x
"$tmake_file" = x
6986 then tmake_file
=$cpu_type/t-
$cpu_type
6989 if test x
"$dwarf2" = xyes
6990 then tm_file
="$tm_file tm-dwarf2.h"
6993 if test x
$float_format = x
6994 then float_format
=i64
6997 if test $float_format = none
6998 then float_h_file
=Makefile.
in
6999 else float_h_file
=float-
$float_format.h
7002 # Handle cpp installation.
7003 if test x
$enable_cpp != xno
7005 tmake_file
="$tmake_file t-install-cpp"
7008 # Say what files are being used for the output code and MD file.
7009 echo "Using \`$srcdir/config/$out_file' to output insns."
7010 echo "Using \`$srcdir/config/$md_file' as machine description file."
7013 for f
in $tm_file; do
7016 if test $count = ax
; then
7017 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
7019 echo "Using the following target machine macro files:"
7020 for f
in $tm_file; do
7021 echo " $srcdir/config/$f"
7026 for f
in $host_xm_file; do
7029 if test $count = ax
; then
7030 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
7032 echo "Using the following host machine macro files:"
7033 for f
in $host_xm_file; do
7034 echo " $srcdir/config/$f"
7038 if test "$host_xm_file" != "$build_xm_file"; then
7040 for f
in $build_xm_file; do
7043 if test $count = ax
; then
7044 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
7046 echo "Using the following build machine macro files:"
7047 for f
in $build_xm_file; do
7048 echo " $srcdir/config/$f"
7053 if test x
$thread_file = x
; then
7054 if test x
$target_thread_file != x
; then
7055 thread_file
=$target_thread_file
7057 thread_file
='single'
7061 # Set up the header files.
7062 # $links is the list of header files to create.
7063 # $vars is the list of shell variables with file names to include.
7064 # auto-host.h is the file containing items generated by autoconf and is
7065 # the first file included by config.h.
7067 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
7069 # If host=build, it is correct to have hconfig include auto-host.h
7070 # as well. If host!=build, we are in error and need to do more
7071 # work to find out the build config parameters.
7072 if test x
$host = x
$build
7074 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
7076 # We create a subdir, then run autoconf in the subdir.
7077 # To prevent recursion we set host and build for the new
7078 # invocation of configure to the build for this invocation
7085 /*) realsrcdir
=${srcdir};;
7086 *) realsrcdir
=..
/${srcdir};;
7088 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
7089 --target=$target --host=$build --build=$build
7091 # We just finished tests for the build machine, so rename
7092 # the file auto-build.h in the gcc directory.
7093 mv auto-host.h ..
/auto-build.h
7096 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7099 xm_file
="gansidecl.h ${xm_file}"
7100 tm_file
="gansidecl.h ${tm_file}"
7102 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7103 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
7104 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7107 if test -f config.status
; then mv -f config.status config.bak
; fi
7110 while test -n "$vars"
7112 set $vars; var
=$1; shift; vars
=$
*
7113 set $links; link
=$1; shift; links
=$
*
7114 set $defines; define
=$1; shift; defines
=$
*
7117 # Make sure the file is created, even if it is empty.
7120 # Define TARGET_CPU_DEFAULT if the system wants one.
7121 # This substitutes for lots of *.h files.
7122 if test "$target_cpu_default" != "" -a $link = tm.h
7124 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7127 for file in `eval echo '$'$var`; do
7129 auto-host.h | auto-build.h
)
7132 echo '#ifdef IN_GCC' >>$link
7135 echo "#include \"$file\"" >>$link
7137 auto-host.h | auto-build.h
)
7140 echo '#endif' >>$link
7145 for def
in `eval echo '$'$define`; do
7146 echo "#ifndef $def" >>$link
7147 echo "#define $def" >>$link
7148 echo "#endif" >>$link
7152 # Truncate the target if necessary
7153 if test x
$host_truncate_target != x
; then
7154 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7157 # Get the version trigger filename from the toplevel
7158 if test "${with_gcc_version_trigger+set}" = set; then
7159 gcc_version_trigger
=$with_gcc_version_trigger
7161 gcc_version_trigger
=${srcdir}/version.c
7163 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7165 # Internationalization
7167 VERSION
="$gcc_version"
7168 cat >> confdefs.h
<<EOF
7169 #define PACKAGE "$PACKAGE"
7172 cat >> confdefs.h
<<EOF
7173 #define VERSION "$VERSION"
7181 # Enable NLS support by default
7182 # Check whether --enable-nls or --disable-nls was given.
7183 if test "${enable_nls+set}" = set; then
7184 enableval
="$enable_nls"
7191 # if cross compiling, disable NLS support.
7192 # It's not worth the trouble, at least for now.
7194 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7195 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7199 # if NLS is enabled, also enable check in po subdir
7200 if test $enable_nls = yes; then
7209 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7210 echo "configure:7211: checking for strerror in -lcposix" >&5
7211 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 ac_save_LIBS
="$LIBS"
7216 LIBS
="-lcposix $LIBS"
7217 cat > conftest.
$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7229 if { (eval echo configure
:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7231 eval "ac_cv_lib_$ac_lib_var=yes"
7233 echo "configure: failed program was:" >&5
7234 cat conftest.
$ac_ext >&5
7236 eval "ac_cv_lib_$ac_lib_var=no"
7239 LIBS
="$ac_save_LIBS"
7242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7244 LIBS
="$LIBS -lcposix"
7246 echo "$ac_t""no" 1>&6
7251 echo $ac_n "checking for working const""... $ac_c" 1>&6
7252 echo "configure:7253: checking for working const" >&5
7253 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7254 echo $ac_n "(cached) $ac_c" 1>&6
7256 cat > conftest.
$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7262 /* Ultrix mips cc rejects this. */
7263 typedef int charset[2]; const charset x = {0,0};
7264 /* SunOS 4.1.1 cc rejects this. */
7265 char const *const *ccp;
7267 /* NEC SVR4.0.2 mips cc rejects this. */
7268 struct point {int x, y;};
7269 static struct point const zero = {0,0};
7270 /* AIX XL C 1.02.0.0 rejects this.
7271 It does not let you subtract one const X* pointer from another in an arm
7272 of an if-expression whose if-part is not a constant expression */
7273 const char *g = "string";
7274 ccp = &g + (g ? g-g : 0);
7275 /* HPUX 7.0 cc rejects these. */
7278 ccp = (char const *const *) p;
7279 { /* SCO 3.2v4 cc rejects this. */
7281 char const *s = 0 ? (char *) 0 : (char const *) 0;
7285 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7287 const int *foo = &x[0];
7290 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7291 typedef const int *iptr;
7295 { /* AIX XL C 1.02.0.0 rejects this saying
7296 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7297 struct s { int j; const int *ap[3]; };
7298 struct s *b; b->j = 5;
7300 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7306 if { (eval echo configure
:7307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7310 echo "configure: failed program was:" >&5
7311 cat conftest.
$ac_ext >&5
7318 echo "$ac_t""$ac_cv_c_const" 1>&6
7319 if test $ac_cv_c_const = no
; then
7320 cat >> confdefs.h
<<\EOF
7326 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7327 echo "configure:7328: checking for off_t" >&5
7328 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7331 cat > conftest.
$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7334 #include <sys/types.h>
7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7343 ac_cv_type_off_t
=yes
7351 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7352 if test $ac_cv_type_off_t = no
; then
7353 cat >> confdefs.h
<<\EOF
7359 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7360 echo "configure:7361: checking for size_t" >&5
7361 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7364 cat > conftest.
$ac_ext <<EOF
7365 #line 7366 "configure"
7366 #include "confdefs.h"
7367 #include <sys/types.h>
7373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7374 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7376 ac_cv_type_size_t
=yes
7379 ac_cv_type_size_t
=no
7384 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7385 if test $ac_cv_type_size_t = no
; then
7386 cat >> confdefs.h
<<\EOF
7387 #define size_t unsigned
7392 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7393 # for constant arguments. Useless!
7394 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7395 echo "configure:7396: checking for working alloca.h" >&5
7396 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7399 cat > conftest.
$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7404 void *p = alloca(2 * sizeof(int));
7407 if { (eval echo configure
:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7409 ac_cv_header_alloca_h
=yes
7411 echo "configure: failed program was:" >&5
7412 cat conftest.
$ac_ext >&5
7414 ac_cv_header_alloca_h
=no
7419 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7420 if test $ac_cv_header_alloca_h = yes; then
7421 cat >> confdefs.h
<<\EOF
7422 #define HAVE_ALLOCA_H 1
7427 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7428 echo "configure:7429: checking for alloca" >&5
7429 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7432 cat > conftest.
$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7437 # define alloca __builtin_alloca
7440 # include <malloc.h>
7441 # define alloca _alloca
7444 # include <alloca.h>
7449 # ifndef alloca /* predefined by HP cc +Olibcalls */
7458 char *p = (char *) alloca(1);
7461 if { (eval echo configure
:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7463 ac_cv_func_alloca_works
=yes
7465 echo "configure: failed program was:" >&5
7466 cat conftest.
$ac_ext >&5
7468 ac_cv_func_alloca_works
=no
7473 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7474 if test $ac_cv_func_alloca_works = yes; then
7475 cat >> confdefs.h
<<\EOF
7476 #define HAVE_ALLOCA 1
7481 if test $ac_cv_func_alloca_works = no
; then
7482 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7483 # that cause trouble. Some versions do not even contain alloca or
7484 # contain a buggy version. If you still want to use their alloca,
7485 # use ar to extract alloca.o from them instead of compiling alloca.c.
7486 ALLOCA
=alloca.
${ac_objext}
7487 cat >> confdefs.h
<<\EOF
7492 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7493 echo "configure:7494: checking whether alloca needs Cray hooks" >&5
7494 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7497 cat > conftest.
$ac_ext <<EOF
7498 #line 7499 "configure"
7499 #include "confdefs.h"
7500 #if defined(CRAY) && ! defined(CRAY2)
7507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7508 egrep "webecray" >/dev
/null
2>&1; then
7519 echo "$ac_t""$ac_cv_os_cray" 1>&6
7520 if test $ac_cv_os_cray = yes; then
7521 for ac_func
in _getb67 GETB67 getb67
; do
7522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7523 echo "configure:7524: checking for $ac_func" >&5
7524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7525 echo $ac_n "(cached) $ac_c" 1>&6
7527 cat > conftest.
$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* System header to define __stub macros and hopefully few prototypes,
7531 which can conflict with char $ac_func(); below. */
7533 /* Override any gcc2 internal prototype to avoid an error. */
7534 /* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7540 /* The GNU C library defines this for functions which it implements
7541 to always fail with ENOSYS. Some functions are actually named
7542 something starting with __ and the normal name is an alias. */
7543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7551 if { (eval echo configure
:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7553 eval "ac_cv_func_$ac_func=yes"
7555 echo "configure: failed program was:" >&5
7556 cat conftest.
$ac_ext >&5
7558 eval "ac_cv_func_$ac_func=no"
7563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7564 echo "$ac_t""yes" 1>&6
7565 cat >> confdefs.h
<<EOF
7566 #define CRAY_STACKSEG_END $ac_func
7571 echo "$ac_t""no" 1>&6
7577 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7578 echo "configure:7579: checking stack direction for C alloca" >&5
7579 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7582 if test "$cross_compiling" = yes; then
7583 ac_cv_c_stack_direction
=0
7585 cat > conftest.
$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 find_stack_direction ()
7590 static char *addr = 0;
7595 return find_stack_direction ();
7598 return (&dummy > addr) ? 1 : -1;
7602 exit (find_stack_direction() < 0);
7605 if { (eval echo configure
:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7607 ac_cv_c_stack_direction
=1
7609 echo "configure: failed program was:" >&5
7610 cat conftest.
$ac_ext >&5
7612 ac_cv_c_stack_direction
=-1
7619 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7620 cat >> confdefs.h
<<EOF
7621 #define STACK_DIRECTION $ac_cv_c_stack_direction
7627 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7628 unistd.h sys
/param.h
7630 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7632 echo "configure:7633: checking for $ac_hdr" >&5
7633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7634 echo $ac_n "(cached) $ac_c" 1>&6
7636 cat > conftest.
$ac_ext <<EOF
7637 #line 7638 "configure"
7638 #include "confdefs.h"
7641 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7642 { (eval echo configure
:7643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7643 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7644 if test -z "$ac_err"; then
7646 eval "ac_cv_header_$ac_safe=yes"
7649 echo "configure: failed program was:" >&5
7650 cat conftest.
$ac_ext >&5
7652 eval "ac_cv_header_$ac_safe=no"
7656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7657 echo "$ac_t""yes" 1>&6
7658 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7659 cat >> confdefs.h
<<EOF
7660 #define $ac_tr_hdr 1
7664 echo "$ac_t""no" 1>&6
7668 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7669 strdup __argz_count __argz_stringify __argz_next
7671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7672 echo "configure:7673: checking for $ac_func" >&5
7673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7676 cat > conftest.
$ac_ext <<EOF
7677 #line 7678 "configure"
7678 #include "confdefs.h"
7679 /* System header to define __stub macros and hopefully few prototypes,
7680 which can conflict with char $ac_func(); below. */
7682 /* Override any gcc2 internal prototype to avoid an error. */
7683 /* We use char because int might match the return type of a gcc2
7684 builtin and then its argument prototype would still apply. */
7689 /* The GNU C library defines this for functions which it implements
7690 to always fail with ENOSYS. Some functions are actually named
7691 something starting with __ and the normal name is an alias. */
7692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7700 if { (eval echo configure
:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7702 eval "ac_cv_func_$ac_func=yes"
7704 echo "configure: failed program was:" >&5
7705 cat conftest.
$ac_ext >&5
7707 eval "ac_cv_func_$ac_func=no"
7712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7713 echo "$ac_t""yes" 1>&6
7714 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7715 cat >> confdefs.h
<<EOF
7716 #define $ac_tr_func 1
7720 echo "$ac_t""no" 1>&6
7725 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7726 for ac_func
in stpcpy
7728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7729 echo "configure:7730: checking for $ac_func" >&5
7730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7731 echo $ac_n "(cached) $ac_c" 1>&6
7733 cat > conftest.
$ac_ext <<EOF
7734 #line 7735 "configure"
7735 #include "confdefs.h"
7736 /* System header to define __stub macros and hopefully few prototypes,
7737 which can conflict with char $ac_func(); below. */
7739 /* Override any gcc2 internal prototype to avoid an error. */
7740 /* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7746 /* The GNU C library defines this for functions which it implements
7747 to always fail with ENOSYS. Some functions are actually named
7748 something starting with __ and the normal name is an alias. */
7749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7757 if { (eval echo configure
:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7759 eval "ac_cv_func_$ac_func=yes"
7761 echo "configure: failed program was:" >&5
7762 cat conftest.
$ac_ext >&5
7764 eval "ac_cv_func_$ac_func=no"
7769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7770 echo "$ac_t""yes" 1>&6
7771 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7772 cat >> confdefs.h
<<EOF
7773 #define $ac_tr_func 1
7777 echo "$ac_t""no" 1>&6
7782 if test "${ac_cv_func_stpcpy}" = "yes"; then
7783 cat >> confdefs.h
<<\EOF
7784 #define HAVE_STPCPY 1
7789 if test $ac_cv_header_locale_h = yes; then
7790 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7791 echo "configure:7792: checking for LC_MESSAGES" >&5
7792 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7795 cat > conftest.
$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7803 if { (eval echo configure
:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7805 am_cv_val_LC_MESSAGES
=yes
7807 echo "configure: failed program was:" >&5
7808 cat conftest.
$ac_ext >&5
7810 am_cv_val_LC_MESSAGES
=no
7815 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7816 if test $am_cv_val_LC_MESSAGES = yes; then
7817 cat >> confdefs.h
<<\EOF
7818 #define HAVE_LC_MESSAGES 1
7823 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7824 echo "configure:7825: checking whether NLS is requested" >&5
7825 # Check whether --enable-nls or --disable-nls was given.
7826 if test "${enable_nls+set}" = set; then
7827 enableval
="$enable_nls"
7833 echo "$ac_t""$USE_NLS" 1>&6
7836 USE_INCLUDED_LIBINTL
=no
7838 if test "$USE_NLS" = "yes"; then
7839 cat >> confdefs.h
<<\EOF
7840 #define ENABLE_NLS 1
7843 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7844 echo "configure:7845: checking whether included gettext is requested" >&5
7845 # Check whether --with-included-gettext or --without-included-gettext was given.
7846 if test "${with_included_gettext+set}" = set; then
7847 withval
="$with_included_gettext"
7848 nls_cv_force_use_gnu_gettext
=$withval
7850 nls_cv_force_use_gnu_gettext
=no
7853 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7855 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7856 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7858 nls_cv_header_libgt
=
7861 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7862 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7863 echo "configure:7864: checking for libintl.h" >&5
7864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7867 cat > conftest.
$ac_ext <<EOF
7868 #line 7869 "configure"
7869 #include "confdefs.h"
7870 #include <libintl.h>
7872 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7873 { (eval echo configure
:7874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7874 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7875 if test -z "$ac_err"; then
7877 eval "ac_cv_header_$ac_safe=yes"
7880 echo "configure: failed program was:" >&5
7881 cat conftest.
$ac_ext >&5
7883 eval "ac_cv_header_$ac_safe=no"
7887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7888 echo "$ac_t""yes" 1>&6
7889 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7890 echo "configure:7891: checking for gettext in libc" >&5
7891 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7892 echo $ac_n "(cached) $ac_c" 1>&6
7894 cat > conftest.
$ac_ext <<EOF
7895 #line 7896 "configure"
7896 #include "confdefs.h"
7897 #include <libintl.h>
7899 return (int) gettext ("")
7902 if { (eval echo configure
:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7904 gt_cv_func_gettext_libc
=yes
7906 echo "configure: failed program was:" >&5
7907 cat conftest.
$ac_ext >&5
7909 gt_cv_func_gettext_libc
=no
7914 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7916 if test "$gt_cv_func_gettext_libc" != "yes"; then
7917 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7918 echo "configure:7919: checking for bindtextdomain in -lintl" >&5
7919 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7923 ac_save_LIBS
="$LIBS"
7925 cat > conftest.
$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7928 /* Override any gcc2 internal prototype to avoid an error. */
7929 /* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7931 char bindtextdomain();
7937 if { (eval echo configure
:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7939 eval "ac_cv_lib_$ac_lib_var=yes"
7941 echo "configure: failed program was:" >&5
7942 cat conftest.
$ac_ext >&5
7944 eval "ac_cv_lib_$ac_lib_var=no"
7947 LIBS
="$ac_save_LIBS"
7950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7951 echo "$ac_t""yes" 1>&6
7952 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7953 echo "configure:7954: checking for gettext in libintl" >&5
7954 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7957 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7958 echo "configure:7959: checking for gettext in -lintl" >&5
7959 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7963 ac_save_LIBS
="$LIBS"
7965 cat > conftest.
$ac_ext <<EOF
7966 #line 7967 "configure"
7967 #include "confdefs.h"
7968 /* Override any gcc2 internal prototype to avoid an error. */
7969 /* We use char because int might match the return type of a gcc2
7970 builtin and then its argument prototype would still apply. */
7977 if { (eval echo configure
:7978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7979 eval "ac_cv_lib_$ac_lib_var=yes"
7981 echo "configure: failed program was:" >&5
7982 cat conftest.
$ac_ext >&5
7984 eval "ac_cv_lib_$ac_lib_var=no"
7987 LIBS
="$ac_save_LIBS"
7990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7991 echo "$ac_t""yes" 1>&6
7992 gt_cv_func_gettext_libintl
=yes
7994 echo "$ac_t""no" 1>&6
7995 gt_cv_func_gettext_libintl
=no
8000 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
8002 echo "$ac_t""no" 1>&6
8007 if test "$gt_cv_func_gettext_libc" = "yes" \
8008 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
8009 cat >> confdefs.h
<<\EOF
8010 #define HAVE_GETTEXT 1
8013 # Extract the first word of "msgfmt", so it can be a program name with args.
8014 set dummy msgfmt
; ac_word
=$2
8015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8016 echo "configure:8017: checking for $ac_word" >&5
8017 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8022 gcc_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8026 for ac_dir
in $PATH; do
8027 test -z "$ac_dir" && ac_dir
=.
8028 if test -f $ac_dir/$ac_word; then
8029 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8030 gcc_cv_path_MSGFMT
="$ac_dir/$ac_word"
8036 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT
="no"
8040 MSGFMT
="$gcc_cv_path_MSGFMT"
8041 if test -n "$MSGFMT"; then
8042 echo "$ac_t""$MSGFMT" 1>&6
8044 echo "$ac_t""no" 1>&6
8046 if test "$MSGFMT" != "no"; then
8047 for ac_func
in dcgettext
8049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8050 echo "configure:8051: checking for $ac_func" >&5
8051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8054 cat > conftest.
$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* System header to define __stub macros and hopefully few prototypes,
8058 which can conflict with char $ac_func(); below. */
8060 /* Override any gcc2 internal prototype to avoid an error. */
8061 /* We use char because int might match the return type of a gcc2
8062 builtin and then its argument prototype would still apply. */
8067 /* The GNU C library defines this for functions which it implements
8068 to always fail with ENOSYS. Some functions are actually named
8069 something starting with __ and the normal name is an alias. */
8070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8078 if { (eval echo configure
:8079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8080 eval "ac_cv_func_$ac_func=yes"
8082 echo "configure: failed program was:" >&5
8083 cat conftest.
$ac_ext >&5
8085 eval "ac_cv_func_$ac_func=no"
8090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8093 cat >> confdefs.h
<<EOF
8094 #define $ac_tr_func 1
8098 echo "$ac_t""no" 1>&6
8102 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8103 set dummy gmsgfmt
; ac_word
=$2
8104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8105 echo "configure:8106: checking for $ac_word" >&5
8106 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8111 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8114 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8117 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8119 for ac_dir
in $ac_dummy; do
8120 test -z "$ac_dir" && ac_dir
=.
8121 if test -f $ac_dir/$ac_word; then
8122 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8127 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="$MSGFMT"
8131 GMSGFMT
="$gcc_cv_path_GMSGFMT"
8132 if test -n "$GMSGFMT"; then
8133 echo "$ac_t""$GMSGFMT" 1>&6
8135 echo "$ac_t""no" 1>&6
8138 # Extract the first word of "xgettext", so it can be a program name with args.
8139 set dummy xgettext
; ac_word
=$2
8140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8141 echo "configure:8142: checking for $ac_word" >&5
8142 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8147 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8150 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8151 for ac_dir
in $PATH; do
8152 test -z "$ac_dir" && ac_dir
=.
8153 if test -f $ac_dir/$ac_word; then
8154 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8155 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8161 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
8165 XGETTEXT
="$gcc_cv_path_XGETTEXT"
8166 if test -n "$XGETTEXT"; then
8167 echo "$ac_t""$XGETTEXT" 1>&6
8169 echo "$ac_t""no" 1>&6
8172 cat > conftest.
$ac_ext <<EOF
8173 #line 8174 "configure"
8174 #include "confdefs.h"
8177 extern int _nl_msg_cat_cntr;
8178 return _nl_msg_cat_cntr
8181 if { (eval echo configure
:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8186 echo "configure: failed program was:" >&5
8187 cat conftest.
$ac_ext >&5
8195 create_catalogs
="no"
8200 echo "$ac_t""no" 1>&6
8204 if test "$CATOBJEXT" = "NONE"; then
8205 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8206 echo "configure:8207: checking whether catgets can be used" >&5
8207 # Check whether --with-catgets or --without-catgets was given.
8208 if test "${with_catgets+set}" = set; then
8209 withval
="$with_catgets"
8210 nls_cv_use_catgets
=$withval
8212 nls_cv_use_catgets
=no
8215 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8217 if test "$nls_cv_use_catgets" = "yes"; then
8218 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8219 echo "configure:8220: checking for main in -li" >&5
8220 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
8224 ac_save_LIBS
="$LIBS"
8226 cat > conftest.
$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8234 if { (eval echo configure
:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8236 eval "ac_cv_lib_$ac_lib_var=yes"
8238 echo "configure: failed program was:" >&5
8239 cat conftest.
$ac_ext >&5
8241 eval "ac_cv_lib_$ac_lib_var=no"
8244 LIBS
="$ac_save_LIBS"
8247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8248 echo "$ac_t""yes" 1>&6
8249 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8250 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8251 cat >> confdefs.h
<<EOF
8252 #define $ac_tr_lib 1
8258 echo "$ac_t""no" 1>&6
8261 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8262 echo "configure:8263: checking for catgets" >&5
8263 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8266 cat > conftest.
$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 /* System header to define __stub macros and hopefully few prototypes,
8270 which can conflict with char catgets(); below. */
8272 /* Override any gcc2 internal prototype to avoid an error. */
8273 /* We use char because int might match the return type of a gcc2
8274 builtin and then its argument prototype would still apply. */
8279 /* The GNU C library defines this for functions which it implements
8280 to always fail with ENOSYS. Some functions are actually named
8281 something starting with __ and the normal name is an alias. */
8282 #if defined (__stub_catgets) || defined (__stub___catgets)
8290 if { (eval echo configure
:8291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8292 eval "ac_cv_func_catgets=yes"
8294 echo "configure: failed program was:" >&5
8295 cat conftest.
$ac_ext >&5
8297 eval "ac_cv_func_catgets=no"
8302 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8303 echo "$ac_t""yes" 1>&6
8304 cat >> confdefs.h
<<\EOF
8305 #define HAVE_CATGETS 1
8308 INTLOBJS
="\$(CATOBJS)"
8309 # Extract the first word of "gencat", so it can be a program name with args.
8310 set dummy gencat
; ac_word
=$2
8311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8312 echo "configure:8313: checking for $ac_word" >&5
8313 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
8314 echo $ac_n "(cached) $ac_c" 1>&6
8318 gcc_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8321 gcc_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8324 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8326 for ac_dir
in $ac_dummy; do
8327 test -z "$ac_dir" && ac_dir
=.
8328 if test -f $ac_dir/$ac_word; then
8329 gcc_cv_path_GENCAT
="$ac_dir/$ac_word"
8334 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT
="no"
8338 GENCAT
="$gcc_cv_path_GENCAT"
8339 if test -n "$GENCAT"; then
8340 echo "$ac_t""$GENCAT" 1>&6
8342 echo "$ac_t""no" 1>&6
8344 if test "$GENCAT" != "no"; then
8345 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8346 set dummy gmsgfmt
; ac_word
=$2
8347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8348 echo "configure:8349: checking for $ac_word" >&5
8349 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
8350 echo $ac_n "(cached) $ac_c" 1>&6
8354 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8357 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8360 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8362 for ac_dir
in $ac_dummy; do
8363 test -z "$ac_dir" && ac_dir
=.
8364 if test -f $ac_dir/$ac_word; then
8365 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8370 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="no"
8374 GMSGFMT
="$gcc_cv_path_GMSGFMT"
8375 if test -n "$GMSGFMT"; then
8376 echo "$ac_t""$GMSGFMT" 1>&6
8378 echo "$ac_t""no" 1>&6
8381 if test "$GMSGFMT" = "no"; then
8382 # Extract the first word of "msgfmt", so it can be a program name with args.
8383 set dummy msgfmt
; ac_word
=$2
8384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8385 echo "configure:8386: checking for $ac_word" >&5
8386 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8391 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8394 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8395 for ac_dir
in $PATH; do
8396 test -z "$ac_dir" && ac_dir
=.
8397 if test -f $ac_dir/$ac_word; then
8398 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8399 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8405 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="msgfmt"
8409 GMSGFMT
="$gcc_cv_path_GMSGFMT"
8410 if test -n "$GMSGFMT"; then
8411 echo "$ac_t""$GMSGFMT" 1>&6
8413 echo "$ac_t""no" 1>&6
8416 if test "$GMSGFMT" = "msgfmt"; then
8417 create_catalogs
="no"
8420 # Extract the first word of "xgettext", so it can be a program name with args.
8421 set dummy xgettext
; ac_word
=$2
8422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8423 echo "configure:8424: checking for $ac_word" >&5
8424 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8429 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8432 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8433 for ac_dir
in $PATH; do
8434 test -z "$ac_dir" && ac_dir
=.
8435 if test -f $ac_dir/$ac_word; then
8436 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8437 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8443 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
8447 XGETTEXT
="$gcc_cv_path_XGETTEXT"
8448 if test -n "$XGETTEXT"; then
8449 echo "$ac_t""$XGETTEXT" 1>&6
8451 echo "$ac_t""no" 1>&6
8454 USE_INCLUDED_LIBINTL
=yes
8458 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8460 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8461 nls_cv_header_intl
=intl
/libintl.h
8462 nls_cv_header_libgt
=intl
/libgettext.h
8465 echo "$ac_t""no" 1>&6
8471 if test "$CATOBJEXT" = "NONE"; then
8472 nls_cv_use_gnu_gettext
=yes
8476 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8477 INTLOBJS
="\$(GETTOBJS)"
8478 # Extract the first word of "msgfmt", so it can be a program name with args.
8479 set dummy msgfmt
; ac_word
=$2
8480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8481 echo "configure:8482: checking for $ac_word" >&5
8482 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
8483 echo $ac_n "(cached) $ac_c" 1>&6
8487 gcc_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8490 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8491 for ac_dir
in $PATH; do
8492 test -z "$ac_dir" && ac_dir
=.
8493 if test -f $ac_dir/$ac_word; then
8494 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8495 gcc_cv_path_MSGFMT
="$ac_dir/$ac_word"
8501 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT
="msgfmt"
8505 MSGFMT
="$gcc_cv_path_MSGFMT"
8506 if test -n "$MSGFMT"; then
8507 echo "$ac_t""$MSGFMT" 1>&6
8509 echo "$ac_t""no" 1>&6
8512 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8513 set dummy gmsgfmt
; ac_word
=$2
8514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_word" >&5
8516 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8521 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8524 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8527 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8529 for ac_dir
in $ac_dummy; do
8530 test -z "$ac_dir" && ac_dir
=.
8531 if test -f $ac_dir/$ac_word; then
8532 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8537 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="$MSGFMT"
8541 GMSGFMT
="$gcc_cv_path_GMSGFMT"
8542 if test -n "$GMSGFMT"; then
8543 echo "$ac_t""$GMSGFMT" 1>&6
8545 echo "$ac_t""no" 1>&6
8548 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8549 create_catalogs
="no"
8551 # Extract the first word of "xgettext", so it can be a program name with args.
8552 set dummy xgettext
; ac_word
=$2
8553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8554 echo "configure:8555: checking for $ac_word" >&5
8555 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8560 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8563 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8564 for ac_dir
in $PATH; do
8565 test -z "$ac_dir" && ac_dir
=.
8566 if test -f $ac_dir/$ac_word; then
8567 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8568 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8574 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
8578 XGETTEXT
="$gcc_cv_path_XGETTEXT"
8579 if test -n "$XGETTEXT"; then
8580 echo "$ac_t""$XGETTEXT" 1>&6
8582 echo "$ac_t""no" 1>&6
8586 USE_INCLUDED_LIBINTL
=yes
8590 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8592 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8593 nls_cv_header_intl
=intl
/libintl.h
8594 nls_cv_header_libgt
=intl
/libgettext.h
8597 if test "$XGETTEXT" != ":"; then
8598 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8601 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8608 # We need to process the po/ directory.
8612 nls_cv_header_intl
=intl
/libintl.h
8613 nls_cv_header_libgt
=intl
/libgettext.h
8619 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8620 # because some of the sources are only built for this goal.
8621 if test "$PACKAGE" = gettext; then
8623 USE_INCLUDED_LIBINTL
=yes
8626 for lang
in $ALL_LINGUAS; do
8627 GMOFILES
="$GMOFILES $lang.gmo"
8628 POFILES
="$POFILES $lang.po"
8644 if test "x$create_catalogs" = "xno"; then
8645 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
8648 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8649 if test "x$ALL_LINGUAS" = "x"; then
8652 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8653 echo "configure:8654: checking for catalogs to be installed" >&5
8654 if test "x$LINGUAS" = "x"; then
8655 LINGUAS
=$ALL_LINGUAS
8658 for lang
in $ALL_LINGUAS; do
8659 case " $LINGUAS " in
8660 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8663 LINGUAS
=$NEW_LINGUAS
8665 echo "$ac_t""$LINGUAS" 1>&6
8668 if test -n "$LINGUAS"; then
8669 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8673 if test $ac_cv_header_locale_h = yes; then
8674 INCLUDE_LOCALE_H
="#include <locale.h>"
8677 /* The system does not provide the header <locale.h>. Take care yourself. */"
8681 test -d intl || mkdir intl
8682 if test "$CATOBJEXT" = ".cat"; then
8683 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8684 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8685 echo "configure:8686: checking for linux/version.h" >&5
8686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8687 echo $ac_n "(cached) $ac_c" 1>&6
8689 cat > conftest.
$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8692 #include <linux/version.h>
8694 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8695 { (eval echo configure
:8696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8696 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8697 if test -z "$ac_err"; then
8699 eval "ac_cv_header_$ac_safe=yes"
8702 echo "configure: failed program was:" >&5
8703 cat conftest.
$ac_ext >&5
8705 eval "ac_cv_header_$ac_safe=no"
8709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8710 echo "$ac_t""yes" 1>&6
8713 echo "$ac_t""no" 1>&6
8718 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8720 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8721 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8723 if test "$PACKAGE" = "gettext"; then
8734 if test -n "$ac_aux_dir"; then
8735 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8737 if test -z "$MKINSTALLDIRS"; then
8738 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8745 test -d po || mkdir po
8746 if test "x$srcdir" != "x."; then
8747 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8748 posrcprefix
="$srcdir/"
8750 posrcprefix
="../$srcdir/"
8756 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8757 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8759 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8761 # Windows32 Registry support for specifying GCC installation paths.
8762 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8763 if test "${enable_win32_registry+set}" = set; then
8764 enableval
="$enable_win32_registry"
8769 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8770 echo "configure:8771: checking whether windows registry support is requested" >&5
8771 if test x
$enable_win32_registry != xno
; then
8772 cat >> confdefs.h
<<\EOF
8773 #define ENABLE_WIN32_REGISTRY 1
8776 echo "$ac_t""yes" 1>&6
8778 echo "$ac_t""no" 1>&6
8781 # Check if user specified a different registry key.
8782 case x
${enable_win32_registry} in
8785 gcc_cv_win32_registry_key
="$VERSION"
8788 # no registry lookup.
8789 gcc_cv_win32_registry_key
=''
8792 # user-specified key.
8793 gcc_cv_win32_registry_key
="$enable_win32_registry"
8797 if test x
$enable_win32_registry != xno
; then
8798 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8799 echo "configure:8800: checking registry key on windows hosts" >&5
8800 cat >> confdefs.h
<<EOF
8801 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8804 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8807 # Get an absolute path to the GCC top-level source directory
8813 # Conditionalize the makefile for this host machine.
8814 # Make-host contains the concatenation of all host makefile fragments
8815 # [there can be more than one]. This file is built by configure.frag.
8816 host_overrides
=Make-host
8817 dep_host_xmake_file
=
8818 for f
in ..
${host_xmake_file}
8820 if test -f ${srcdir}/config
/$f
8822 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8826 # Conditionalize the makefile for this target machine.
8827 # Make-target contains the concatenation of all host makefile fragments
8828 # [there can be more than one]. This file is built by configure.frag.
8829 target_overrides
=Make-target
8831 for f
in ..
${tmake_file}
8833 if test -f ${srcdir}/config
/$f
8835 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8839 # If the host doesn't support symlinks, modify CC in
8840 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8841 # Otherwise, we can use "CC=$(CC)".
8843 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8845 cc_set_by_configure
="\$(CC)"
8846 quoted_cc_set_by_configure
="\$(CC)"
8847 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8850 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8852 symbolic_link
="cp -p"
8856 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8857 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8858 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8862 out_object_file
=`basename $out_file .c`.o
8865 for f
in $tm_file; do
8868 tm_file_list
="${tm_file_list} $f" ;;
8869 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8874 for f
in $host_xm_file; do
8876 auto-host.h | gansidecl.h | hwint.h
)
8877 host_xm_file_list
="${host_xm_file_list} $f" ;;
8878 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8883 for f
in $build_xm_file; do
8885 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8886 build_xm_file_list
="${build_xm_file_list} $f" ;;
8887 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8891 # Define macro CROSS_COMPILE in compilation
8892 # if this is a cross-compiler.
8893 # Also use all.cross instead of all.internal
8894 # and add cross-make to Makefile.
8895 cross_overrides
="/dev/null"
8896 if test x
$host != x
$target
8898 cross_defines
="CROSS=-DCROSS_COMPILE"
8899 cross_overrides
="${topdir}/cross-make"
8902 # If this is a cross-compiler that does not
8903 # have its own set of headers then define
8906 # If this is using newlib, then define inhibit_libc in
8907 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8908 # libgcc.a, but that's OK because newlib should have its own version of
8911 if test x
$host != x
$target && test x
$with_headers = x
; then
8912 inhibit_libc
=-Dinhibit_libc
8914 if test x
$with_newlib = xyes
; then
8915 inhibit_libc
=-Dinhibit_libc
8920 # When building gcc with a cross-compiler, we need to fix a few things.
8921 # This must come after cross-make as we want all.build to override
8923 build_overrides
="/dev/null"
8924 if test x
$build != x
$host
8926 build_overrides
="${topdir}/build-make"
8929 # Expand extra_headers to include complete path.
8930 # This substitutes for lots of t-* files.
8932 if test "x$extra_headers" = x
8935 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8936 for file in $extra_headers;
8938 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8942 if test x
$use_collect2 = xno
; then
8946 # Add a definition of USE_COLLECT2 if system wants one.
8947 # Also tell toplev.c what to do.
8948 # This substitutes for lots of t-* files.
8949 if test x
$use_collect2 = x
8954 will_use_collect2
="collect2"
8955 maybe_use_collect2
="-DUSE_COLLECT2"
8959 # Set MD_DEPS if the real md file is in md.pre-cpp.
8960 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8961 # for line oriented comments, so we must always use a GNU cpp. If
8962 # building gcc with a cross compiler, use the cross compiler just
8963 # built. Otherwise, we can use the cpp just built.
8965 if test "x$md_cppflags" = x
8967 md_file_sub
=$srcdir/config
/$md_file
8972 # If we have gas in the build tree, make a link to it.
8973 if test -f ..
/gas
/Makefile
; then
8974 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8977 # If we have nm in the build tree, make a link to it.
8978 if test -f ..
/binutils
/Makefile
; then
8979 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8982 # If we have ld in the build tree, make a link to it.
8983 if test -f ..
/ld
/Makefile
; then
8984 # if test x$use_collect2 = x; then
8985 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8987 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8991 # Figure out what assembler we will be using.
8992 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
8993 echo "configure:8994: checking what assembler to use" >&5
8995 gcc_cv_gas_major_version
=
8996 gcc_cv_gas_minor_version
=
8997 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8998 if test -x "$DEFAULT_ASSEMBLER"; then
8999 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9000 elif test -x "$AS"; then
9002 elif test -x as
$host_exeext; then
9003 # Build using assembler in the current directory.
9004 gcc_cv_as
=.
/as
$host_exeext
9005 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
9006 # Single tree build which includes gas.
9007 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
9009 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9010 if test x
$gcc_cv_gas_version != x
; then
9014 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9015 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9018 if test "x$gcc_cv_as" = x
-a x
$host = x
$target; then
9020 # Search the same directories that the installed compiler will
9021 # search. Else we may find the wrong assembler and lose. If we
9022 # do not find a suitable assembler binary, then try the user's
9025 # Also note we have to check MD_EXEC_PREFIX before checking the
9026 # user's path. Unfortunately, there is no good way to get at the
9027 # value of MD_EXEC_PREFIX here. So we do a brute force search
9028 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9029 # to be fixed as part of the make/configure rewrite too.
9031 if test "x$exec_prefix" = xNONE
; then
9032 if test "x$prefix" = xNONE
; then
9033 test_prefix
=/usr
/local
9038 test_prefix
=$exec_prefix
9041 # If the loop below does not find an assembler, then use whatever
9042 # one we can find in the users's path.
9046 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
9047 $test_prefix/lib/gcc-lib/$target \
9048 /usr/lib/gcc/$target/$gcc_version \
9049 /usr/lib/gcc/$target \
9050 $test_prefix/$target/bin/$target/$gcc_version \
9051 $test_prefix/$target/bin \
9056 /bsd43/usr/lib/cmplrs/cc \
9057 /usr/cross64/usr/bin \
9058 /usr/lib/cmplrs/cc \
9059 /sysv/usr/lib/cmplrs/cc \
9060 /svr4/usr/lib/cmplrs/cc \
9063 for dir
in $test_dirs; do
9064 if test -f $dir/as
$host_exeext; then
9065 gcc_cv_as
=$dir/as
$host_exeext
9070 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9071 echo "$ac_t"""newly built gas
"" 1>&6
9073 echo "$ac_t""$gcc_cv_as" 1>&6
9076 # Figure out what nm we will be using.
9077 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
9078 echo "configure:9079: checking what nm to use" >&5
9079 if test -x nm
$host_exeext; then
9080 gcc_cv_nm
=.
/nm
$host_exeext
9081 elif test x
$host = x
$target; then
9083 gcc_cv_nm
=nm
$host_exeext
9085 echo "$ac_t""$gcc_cv_nm" 1>&6
9087 # Figure out what assembler alignment features are present.
9088 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
9089 echo "configure:9090: checking assembler alignment features" >&5
9090 gcc_cv_as_alignment_features
=
9091 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9092 # Gas version 2.6 and later support for .balign and .p2align.
9093 # bytes to skip when using .p2align.
9094 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
9095 gcc_cv_as_alignment_features
=".balign and .p2align"
9096 cat >> confdefs.h
<<\EOF
9097 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9101 # Gas version 2.8 and later support specifying the maximum
9102 # bytes to skip when using .p2align.
9103 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
9104 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9105 cat >> confdefs.h
<<\EOF
9106 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9110 elif test x
$gcc_cv_as != x
; then
9111 # Check if we have .balign and .p2align
9112 echo ".balign 4" > conftest.s
9113 echo ".p2align 2" >> conftest.s
9114 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9115 gcc_cv_as_alignment_features
=".balign and .p2align"
9116 cat >> confdefs.h
<<\EOF
9117 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9121 rm -f conftest.s conftest.o
9122 # Check if specifying the maximum bytes to skip when
9123 # using .p2align is supported.
9124 echo ".p2align 4,,7" > conftest.s
9125 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9126 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9127 cat >> confdefs.h
<<\EOF
9128 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9132 rm -f conftest.s conftest.o
9134 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9136 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9137 echo "configure:9138: checking assembler subsection support" >&5
9138 gcc_cv_as_subsections
=
9139 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9140 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
9141 gcc_cv_as_subsections
="working .subsection -1"
9143 elif test x
$gcc_cv_as != x
; then
9144 # Check if we have .subsection
9145 echo ".subsection 1" > conftest.s
9146 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9147 gcc_cv_as_subsections
=".subsection"
9148 if test x
$gcc_cv_nm != x
; then
9149 cat > conftest.s
<<EOF
9150 conftest_label1: .word 0
9152 conftest_label2: .word 0
9155 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9156 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9157 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9158 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9161 gcc_cv_as_subsections
="working .subsection -1"
9166 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9168 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
9169 cat >> confdefs.h
<<\EOF
9170 #define HAVE_GAS_SUBSECTION_ORDERING 1
9174 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9176 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9177 echo "configure:9178: checking assembler weak support" >&5
9179 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9180 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
9181 gcc_cv_as_weak
="yes"
9183 elif test x
$gcc_cv_as != x
; then
9184 # Check if we have .weak
9185 echo " .weak foobar" > conftest.s
9186 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9187 gcc_cv_as_weak
="yes"
9189 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9191 if test x
"$gcc_cv_as_weak" = xyes
; then
9192 cat >> confdefs.h
<<\EOF
9193 #define HAVE_GAS_WEAK 1
9197 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9199 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9200 echo "configure:9201: checking assembler hidden support" >&5
9202 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9203 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
9204 gcc_cv_as_hidden
="yes"
9206 elif test x
$gcc_cv_as != x
; then
9207 # Check if we have .hidden
9208 echo " .hidden foobar" > conftest.s
9209 echo "foobar:" >> conftest.s
9210 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9211 gcc_cv_as_hidden
="yes"
9213 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9215 if test x
"$gcc_cv_as_hidden" = xyes
; then
9216 cat >> confdefs.h
<<\EOF
9217 #define HAVE_GAS_HIDDEN 1
9221 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9225 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9226 echo "configure:9227: checking assembler .register pseudo-op support" >&5
9227 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
9231 gcc_cv_as_register_pseudo_op
=unknown
9232 if test x
$gcc_cv_as != x
; then
9233 # Check if we have .register
9234 echo ".register %g2, #scratch" > conftest.s
9235 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9236 gcc_cv_as_register_pseudo_op
=yes
9238 gcc_cv_as_register_pseudo_op
=no
9240 rm -f conftest.s conftest.o
9245 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9246 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9247 cat >> confdefs.h
<<\EOF
9248 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9253 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9254 echo "configure:9255: checking assembler supports -relax" >&5
9255 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9256 echo $ac_n "(cached) $ac_c" 1>&6
9259 gcc_cv_as_relax_opt
=unknown
9260 if test x
$gcc_cv_as != x
; then
9261 # Check if gas supports -relax
9262 echo ".text" > conftest.s
9263 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9264 gcc_cv_as_relax_opt
=yes
9266 gcc_cv_as_relax_opt
=no
9268 rm -f conftest.s conftest.o
9273 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9274 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9275 cat >> confdefs.h
<<\EOF
9276 #define HAVE_AS_RELAX_OPTION 1
9283 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9284 echo "configure:9285: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9285 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9289 if test -n "$gcc_cv_as"; then
9290 echo ".xword foo" > conftest.s
9291 gcc_cv_as_flags64
=no
9292 for flag
in "-xarch=v9" "-64 -Av9"; do
9293 if $gcc_cv_as $flag -o conftest.o conftest.s \
9294 > /dev
/null
2>&1; then
9295 gcc_cv_as_flags64
=$flag
9299 rm -f conftest.s conftest.o
9301 if test "$gas" = yes; then
9302 gcc_cv_as_flags64
="-64 -Av9"
9304 gcc_cv_as_flags64
="-xarch=v9"
9310 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9311 if test "x$gcc_cv_as_flags64" = xno
; then
9313 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9314 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9317 cat >> confdefs.h
<<EOF
9318 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9323 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9327 if test "x$gcc_cv_as_flags64" != xno
; then
9328 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9329 echo "configure:9330: checking for assembler offsetable %lo() support" >&5
9330 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9334 gcc_cv_as_offsetable_lo10
=unknown
9335 if test "x$gcc_cv_as" != x
; then
9336 # Check if assembler has offsetable %lo()
9337 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9338 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9339 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9341 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9342 > /dev
/null
2>&1; then
9343 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9344 gcc_cv_as_offsetable_lo10
=no
9346 gcc_cv_as_offsetable_lo10
=yes
9349 gcc_cv_as_offsetable_lo10
=no
9351 rm -f conftest.s conftest.o conftest1.s conftest1.o
9356 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9357 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9358 cat >> confdefs.h
<<\EOF
9359 #define HAVE_AS_OFFSETABLE_LO10 1
9367 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9368 echo "configure:9369: checking assembler instructions" >&5
9369 gcc_cv_as_instructions
=
9370 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9371 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
9372 gcc_cv_as_instructions
="filds fists"
9374 elif test x
$gcc_cv_as != x
; then
9375 set "filds fists" "filds mem; fists mem"
9378 echo "$2" > conftest.s
9379 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9380 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9384 rm -f conftest.s conftest.o
9386 if test x
"$gcc_cv_as_instructions" != x
; then
9387 cat >> confdefs.h
<<EOF
9388 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | tr 'a-z ' 'A-Z_'` 1
9392 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9396 # Figure out what language subdirectories are present.
9397 # Look if the user specified --enable-languages="..."; if not, use
9398 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9400 if test x
"${enable_languages+set}" != xset
; then
9401 if test x
"${LANGUAGES+set}" = xset
; then
9402 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9404 enable_languages
=all
9407 if test x
"${enable_languages}" = x
; then
9408 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9412 for lang
in ${srcdir}/*/config-lang.
in ..
9416 # The odd quoting in the next line works around
9417 # an apparent bug in bash 1.12 on linux.
9418 ${srcdir}/[*]/config-lang.
in) ;;
9420 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9421 if test "x$lang_alias" = x
9423 echo "$lang doesn't set \$language." 1>&2
9426 if test x
"${enable_languages}" = xall
&& test x
"${lang_alias}" != xCHILL
; then
9429 case "${enable_languages}" in
9430 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9438 if test x"${add_this_lang}" = xyes; then
9440 ${srcdir}/ada/config-lang.in)
9441 if test x$gnat = xyes ; then
9442 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9446 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9454 # Make gthr-default.h if we have a thread file.
9456 if test $thread_file != single; then
9457 rm -f gthr-default.h
9458 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9459 gthread_flags
=-DHAVE_GTHR_DEFAULT
9463 # Find out what GC implementation we want, or may, use.
9464 # Check whether --with-gc or --without-gc was given.
9465 if test "${with_gc+set}" = set; then
9472 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9476 if test $ac_cv_func_mmap_anywhere = yes \
9477 ||
test $ac_cv_func_valloc = yes; then
9485 echo "Using $GGC for garbage collection."
9487 # Use the system's zlib library.
9489 zlibinc
="-I\$(srcdir)/../zlib"
9490 # Check whether --with-system-zlib or --without-system-zlib was given.
9491 if test "${with_system_zlib+set}" = set; then
9492 withval
="$with_system_zlib"
9501 # Build a new-abi (c++) system
9502 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9503 if test "${enable_new_gxx_abi+set}" = set; then
9504 enableval
="$enable_new_gxx_abi"
9505 cat >> confdefs.h
<<\EOF
9506 #define ENABLE_NEW_GXX_ABI 1
9509 GXX_ABI_FLAG
='-fnew-abi'
9510 echo "Building a new-abi g++ compiler."
9516 # Build a new-libstdc++ system (ie libstdc++-v3)
9517 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9518 echo "configure:9519: checking for libstdc++ to install" >&5
9519 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9520 if test "${enable_libstdcxx_v3+set}" = set; then
9521 enableval
="$enable_libstdcxx_v3"
9522 enable_libstdcxx_v3
="$enableval"
9524 enable_libstdcxx_v3
=no
9528 if test x
$enable_libstdcxx_v3 = xyes
; then
9529 echo "$ac_t""v3" 1>&6
9533 echo "$ac_t""v2" 1>&6
9537 cat >> confdefs.h
<<EOF
9538 #define ENABLE_STD_NAMESPACE $ac_esn
9544 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9545 echo "configure:9546: checking whether to enable maintainer-specific portions of Makefiles" >&5
9546 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9547 if test "${enable_maintainer_mode+set}" = set; then
9548 enableval
="$enable_maintainer_mode"
9549 maintainer_mode
=$enableval
9555 echo "$ac_t""$maintainer_mode" 1>&6
9557 if test "$maintainer_mode" = "yes"; then
9563 # Make empty files to contain the specs and options for each language.
9564 # Then add #include lines to for a compiler that has specs and/or options.
9569 rm -f specs.h options.h gencheck.h
9570 touch specs.h options.h gencheck.h
9571 for subdir
in .
$subdirs
9573 if test -f $srcdir/$subdir/lang-specs.h
; then
9574 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9575 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9577 if test -f $srcdir/$subdir/lang-options.h
; then
9578 echo "#include \"$subdir/lang-options.h\"" >>options.h
9579 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9581 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9582 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9583 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9587 # These (without "all_") are set in each config-lang.in.
9588 # `language' must be a single word so is spelled singularly.
9594 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9595 # List of language makefile fragments.
9600 # Add the language fragments.
9601 # Languages are added via two mechanisms. Some information must be
9602 # recorded in makefile variables, these are defined in config-lang.in.
9603 # We accumulate them and plug them into the main Makefile.
9604 # The other mechanism is a set of hooks for each of the main targets
9605 # like `clean', `install', etc.
9607 language_fragments
="Make-lang"
9608 language_hooks
="Make-hooks"
9610 for s
in ..
$subdirs
9622 .
${srcdir}/$s/config-lang.
in
9623 if test "x$language" = x
9625 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9628 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in $outputs"
9629 all_languages
="$all_languages $language"
9630 if test "x$boot_language" = xyes
9632 all_boot_languages
="$all_boot_languages $language"
9634 all_compilers
="$all_compilers $compilers"
9635 all_stagestuff
="$all_stagestuff $stagestuff"
9636 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9637 all_headers
="$all_headers $headers"
9638 all_outputs
="$all_outputs $outputs"
9639 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9643 # Since we can't use `::' targets, we link each language in
9644 # with a set of hooks, reached indirectly via lang.${target}.
9648 target_list
="all.build all.cross start.encap rest.encap \
9650 install-normal install-common install-info install-man \
9652 mostlyclean clean distclean extraclean maintainer-clean \
9653 stage1 stage2 stage3 stage4"
9654 for t
in $target_list
9657 for lang
in ..
$all_languages
9659 if test $lang != ".."; then
9663 echo "lang.$t: $x" >> Make-hooks
9666 # If we're not building in srcdir, create .gdbinit.
9668 if test ! -f Makefile.
in; then
9669 echo "dir ." > .gdbinit
9670 echo "dir ${srcdir}" >> .gdbinit
9671 if test x
$gdb_needs_out_file_path = xyes
9673 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9675 if test "x$subdirs" != x
; then
9678 echo "dir ${srcdir}/$s" >> .gdbinit
9681 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9684 # Define variables host_canonical and build_canonical
9685 # because some Cygnus local changes in the Makefile depend on them.
9686 build_canonical
=${build}
9687 host_canonical
=${host}
9689 if test "${host}" != "${target}" ; then
9690 target_subdir
=${target}/
9696 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9697 # absolute path for gcc_tooldir based on inserting the number of up-directory
9698 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9699 # $(libsubdir)/@(unlibsubdir) based path.
9700 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9701 # make and thus we'd get different behavior depending on where we built the
9703 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9704 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9706 # An explanation of the sed strings:
9707 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9708 # -e 's|/$||' match a trailing forward slash and eliminates it
9709 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9710 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9712 # (*) Note this pattern overwrites the first character of the string
9713 # with a forward slash if one is not already present. This is not a
9714 # problem because the exact names of the sub-directories concerned is
9715 # unimportant, just the number of them matters.
9717 # The practical upshot of these patterns is like this:
9719 # prefix exec_prefix result
9720 # ------ ----------- ------
9722 # /foo/ /foo/bar ../
9723 # /foo /foo/bar/ ../
9724 # /foo/ /foo/bar/ ../
9725 # /foo /foo/bar/ugg ../../
9728 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9733 # Nothing to do for FLOAT_H, float_format already handled.
9737 # Process the language and host/target makefile fragments.
9738 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9740 # Substitute configuration variables
9796 # Echo that links are built
9797 if test x
$host = x
$target
9805 if test x
$host != x
$build
9807 str3
=" on a $build system"
9810 if test "x$str2" != x ||
test "x$str3" != x
9815 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9817 if test "x$str2" != x ||
test "x$str3" != x
9819 echo " ${str2}${str3}." 1>&2
9822 # Truncate the target if necessary
9823 if test x
$host_truncate_target != x
; then
9824 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9827 # Configure the subdirectories
9828 # AC_CONFIG_SUBDIRS($subdirs)
9830 # Create the Makefile
9831 # and configure language subdirectories
9833 cat > confcache
<<\EOF
9834 # This file is a shell script that caches the results of configure
9835 # tests run on this system so they can be shared between configure
9836 # scripts and configure runs. It is not useful on other systems.
9837 # If it contains results you don't want to keep, you may remove or edit it.
9839 # By default, configure uses ./config.cache as the cache file,
9840 # creating it if it does not exist already. You can give configure
9841 # the --cache-file=FILE option to use a different cache file; that is
9842 # what configure does when it calls configure scripts in
9843 # subdirectories, so they share the cache.
9844 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9845 # config.status only pays attention to the cache file if you give it the
9846 # --recheck option to rerun configure.
9849 # The following way of writing the cache mishandles newlines in values,
9850 # but we know of no workaround that is simple, portable, and efficient.
9851 # So, don't put newlines in cache variables' values.
9852 # Ultrix sh set writes to stderr and can't be redirected directly,
9853 # and sets the high bit in the cache file unless we assign to the vars.
9855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9857 # `set' does not quote correctly, so add quotes (double-quote substitution
9858 # turns \\\\ into \\, and sed turns \\ into \).
9860 -e "s/'/'\\\\''/g" \
9861 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9864 # `set' quotes correctly as required by POSIX, so do not add quotes.
9865 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9868 if cmp -s $cache_file confcache
; then
9871 if test -w $cache_file; then
9872 echo "updating cache $cache_file"
9873 cat confcache
> $cache_file
9875 echo "not updating unwritable cache $cache_file"
9880 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9882 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9883 # Let make expand exec_prefix.
9884 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9886 # Any assignment to VPATH causes Sun make to only execute
9887 # the first set of double-colon rules, so remove it if not needed.
9888 # If there is a colon in the path, we need to keep it.
9889 if test "x$srcdir" = x.
; then
9890 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9893 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9895 DEFS
=-DHAVE_CONFIG_H
9897 # Without the "./", some shells look in PATH for config.status.
9898 : ${CONFIG_STATUS=./config.status}
9900 echo creating
$CONFIG_STATUS
9901 rm -f $CONFIG_STATUS
9902 cat > $CONFIG_STATUS <<EOF
9904 # Generated automatically by configure.
9905 # Run this file to recreate the current configuration.
9906 # This directory was configured as follows,
9907 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9909 # $0 $ac_configure_args
9911 # Compiler output produced by configure, useful for debugging
9912 # configure, is in ./config.log if it exists.
9914 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9917 case "\$ac_option" in
9918 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9919 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9920 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9921 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9922 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9924 -help | --help | --hel | --he | --h)
9925 echo "\$ac_cs_usage"; exit 0 ;;
9926 *) echo "\$ac_cs_usage"; exit 1 ;;
9930 ac_given_srcdir=$srcdir
9932 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9934 cat >> $CONFIG_STATUS <<EOF
9936 # Protect against being on the right side of a sed subst in config.status.
9937 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9938 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9942 s%@CFLAGS@%$CFLAGS%g
9943 s%@CPPFLAGS@%$CPPFLAGS%g
9944 s%@CXXFLAGS@%$CXXFLAGS%g
9945 s%@FFLAGS@%$FFLAGS%g
9947 s%@LDFLAGS@%$LDFLAGS%g
9949 s%@exec_prefix@%$exec_prefix%g
9950 s%@prefix@%$prefix%g
9951 s%@program_transform_name@%$program_transform_name%g
9952 s%@bindir@%$bindir%g
9953 s%@sbindir@%$sbindir%g
9954 s%@libexecdir@%$libexecdir%g
9955 s%@datadir@%$datadir%g
9956 s%@sysconfdir@%$sysconfdir%g
9957 s%@sharedstatedir@%$sharedstatedir%g
9958 s%@localstatedir@%$localstatedir%g
9959 s%@libdir@%$libdir%g
9960 s%@includedir@%$includedir%g
9961 s%@oldincludedir@%$oldincludedir%g
9962 s%@infodir@%$infodir%g
9963 s%@mandir@%$mandir%g
9964 s%@maybe_cpplib@%$maybe_cpplib%g
9965 s%@enable_shared@%$enable_shared%g
9967 s%@host_alias@%$host_alias%g
9968 s%@host_cpu@%$host_cpu%g
9969 s%@host_vendor@%$host_vendor%g
9970 s%@host_os@%$host_os%g
9971 s%@target@%$target%g
9972 s%@target_alias@%$target_alias%g
9973 s%@target_cpu@%$target_cpu%g
9974 s%@target_vendor@%$target_vendor%g
9975 s%@target_os@%$target_os%g
9977 s%@build_alias@%$build_alias%g
9978 s%@build_cpu@%$build_cpu%g
9979 s%@build_vendor@%$build_vendor%g
9980 s%@build_os@%$build_os%g
9982 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9983 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
9984 s%@strict1_warn@%$strict1_warn%g
9985 s%@warn_cflags@%$warn_cflags%g
9986 s%@stage1_cflags@%$stage1_cflags%g
9987 s%@SET_MAKE@%$SET_MAKE%g
9990 s%@LEXLIB@%$LEXLIB%g
9993 s%@RANLIB@%$RANLIB%g
9995 s%@INSTALL@%$INSTALL%g
9996 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9997 s%@INSTALL_DATA@%$INSTALL_DATA%g
10000 s%@MAKEINFO@%$MAKEINFO%g
10001 s%@BUILD_INFO@%$BUILD_INFO%g
10002 s%@INSTALL_INFO@%$INSTALL_INFO%g
10003 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
10004 s%@vfprintf@%$vfprintf%g
10005 s%@doprint@%$doprint%g
10006 s%@manext@%$manext%g
10007 s%@objext@%$objext%g
10008 s%@PACKAGE@%$PACKAGE%g
10009 s%@VERSION@%$VERSION%g
10010 s%@CHECK_PO@%$CHECK_PO%g
10011 s%@ALLOCA@%$ALLOCA%g
10012 s%@USE_NLS@%$USE_NLS%g
10013 s%@MSGFMT@%$MSGFMT%g
10014 s%@GMSGFMT@%$GMSGFMT%g
10015 s%@XGETTEXT@%$XGETTEXT%g
10016 s%@GENCAT@%$GENCAT%g
10017 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10018 s%@CATALOGS@%$CATALOGS%g
10019 s%@CATOBJEXT@%$CATOBJEXT%g
10020 s%@DATADIRNAME@%$DATADIRNAME%g
10021 s%@GMOFILES@%$GMOFILES%g
10022 s%@INSTOBJEXT@%$INSTOBJEXT%g
10023 s%@INTLDEPS@%$INTLDEPS%g
10024 s%@INTLLIBS@%$INTLLIBS%g
10025 s%@INTLOBJS@%$INTLOBJS%g
10026 s%@POFILES@%$POFILES%g
10028 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10030 s%@GT_YES@%$GT_YES%g
10031 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10033 s%@inhibit_libc@%$inhibit_libc%g
10034 s%@gthread_flags@%$gthread_flags%g
10036 s%@zlibdir@%$zlibdir%g
10037 s%@zlibinc@%$zlibinc%g
10038 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
10039 s%@HAVE_LIBSTDCXX_V3@%$HAVE_LIBSTDCXX_V3%g
10041 s%@build_canonical@%$build_canonical%g
10042 s%@host_canonical@%$host_canonical%g
10043 s%@target_subdir@%$target_subdir%g
10044 s%@gcc_tooldir@%$gcc_tooldir%g
10045 s%@dollar@%$dollar%g
10046 s%@objdir@%$objdir%g
10047 s%@subdirs@%$subdirs%g
10048 s%@all_boot_languages@%$all_boot_languages%g
10049 s%@all_compilers@%$all_compilers%g
10050 s%@all_diff_excludes@%$all_diff_excludes%g
10051 s%@all_headers@%$all_headers%g
10052 s%@all_lang_makefiles@%$all_lang_makefiles%g
10053 s%@all_languages@%$all_languages%g
10054 s%@all_lib2funcs@%$all_lib2funcs%g
10055 s%@all_stagestuff@%$all_stagestuff%g
10056 s%@build_exeext@%$build_exeext%g
10057 s%@build_install_headers_dir@%$build_install_headers_dir%g
10058 s%@build_xm_file_list@%$build_xm_file_list%g
10059 s%@cc_set_by_configure@%$cc_set_by_configure%g
10060 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
10061 s%@cpp_install_dir@%$cpp_install_dir%g
10062 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
10063 s%@dep_tmake_file@%$dep_tmake_file%g
10064 s%@extra_c_flags@%$extra_c_flags%g
10065 s%@extra_headers_list@%$extra_headers_list%g
10066 s%@extra_objs@%$extra_objs%g
10067 s%@extra_parts@%$extra_parts%g
10068 s%@extra_passes@%$extra_passes%g
10069 s%@extra_programs@%$extra_programs%g
10070 s%@float_h_file@%$float_h_file%g
10071 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
10072 s%@gcc_version@%$gcc_version%g
10073 s%@gcc_version_trigger@%$gcc_version_trigger%g
10074 s%@host_exeext@%$host_exeext%g
10075 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
10076 s%@host_xm_file_list@%$host_xm_file_list%g
10077 s%@install@%$install%g
10078 s%@lang_options_files@%$lang_options_files%g
10079 s%@lang_specs_files@%$lang_specs_files%g
10080 s%@lang_tree_files@%$lang_tree_files%g
10081 s%@local_prefix@%$local_prefix%g
10082 s%@maybe_use_collect2@%$maybe_use_collect2%g
10083 s%@md_file@%$md_file%g
10084 s%@objc_boehm_gc@%$objc_boehm_gc%g
10085 s%@out_file@%$out_file%g
10086 s%@out_object_file@%$out_object_file%g
10087 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
10088 s%@symbolic_link@%$symbolic_link%g
10089 s%@thread_file@%$thread_file%g
10090 s%@tm_file_list@%$tm_file_list%g
10091 s%@will_use_collect2@%$will_use_collect2%g
10092 /@target_overrides@/r $target_overrides
10093 s%@target_overrides@%%g
10094 /@host_overrides@/r $host_overrides
10095 s%@host_overrides@%%g
10096 s%@cross_defines@%$cross_defines%g
10097 /@cross_overrides@/r $cross_overrides
10098 s%@cross_overrides@%%g
10099 /@build_overrides@/r $build_overrides
10100 s%@build_overrides@%%g
10101 /@language_fragments@/r $language_fragments
10102 s%@language_fragments@%%g
10103 /@language_hooks@/r $language_hooks
10104 s%@language_hooks@%%g
10109 cat >> $CONFIG_STATUS <<\EOF
10111 # Split the substitutions into bite-sized pieces for seds with
10112 # small command number limits, like on Digital OSF/1 and HP-UX.
10113 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10114 ac_file
=1 # Number of current file.
10115 ac_beg
=1 # First line for current file.
10116 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10119 while $ac_more_lines; do
10120 if test $ac_beg -gt 1; then
10121 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10123 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10125 if test ! -s conftest.s
$ac_file; then
10126 ac_more_lines
=false
10127 rm -f conftest.s
$ac_file
10129 if test -z "$ac_sed_cmds"; then
10130 ac_sed_cmds
="sed -f conftest.s$ac_file"
10132 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10134 ac_file
=`expr $ac_file + 1`
10136 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10139 if test -z "$ac_sed_cmds"; then
10144 cat >> $CONFIG_STATUS <<EOF
10146 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
10148 cat >> $CONFIG_STATUS <<\EOF
10149 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10150 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10152 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10153 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10154 *) ac_file_in
="${ac_file}.in" ;;
10157 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10159 # Remove last slash and all that follows it. Not all systems have dirname.
10160 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10161 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10162 # The file is in a subdirectory.
10163 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10164 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10165 # A "../" for each directory in $ac_dir_suffix.
10166 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10168 ac_dir_suffix
= ac_dots
=
10171 case "$ac_given_srcdir" in
10173 if test -z "$ac_dots"; then top_srcdir
=.
10174 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10175 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10176 *) # Relative path.
10177 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10178 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10182 echo creating
"$ac_file"
10184 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10186 *Makefile
*) ac_comsub
="1i\\
10187 # $configure_input" ;;
10191 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10193 s%@configure_input@%$configure_input%g
10194 s%@srcdir@%$srcdir%g
10195 s%@top_srcdir@%$top_srcdir%g
10196 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10203 # ac_d sets the value in "#define NAME VALUE" lines.
10204 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10205 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10208 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10209 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10210 ac_uB
='\([ ]\)%\1#\2define\3'
10213 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10214 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10215 ac_eB
='$%\1#\2define\3'
10219 if test "${CONFIG_HEADERS+set}" != set; then
10221 cat >> $CONFIG_STATUS <<EOF
10222 CONFIG_HEADERS="auto-host.h:config.in"
10224 cat >> $CONFIG_STATUS <<\EOF
10226 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10229 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10230 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10231 *) ac_file_in
="${ac_file}.in" ;;
10234 echo creating
$ac_file
10236 rm -f conftest.frag conftest.
in conftest.out
10237 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10238 cat $ac_file_inputs > conftest.
in
10242 # Transform confdefs.h into a sed script conftest.vals that substitutes
10243 # the proper values into config.h.in to produce config.h. And first:
10244 # Protect against being on the right side of a sed subst in config.status.
10245 # Protect against being in an unquoted here document in config.status.
10246 rm -f conftest.vals
10247 cat > conftest.hdr
<<\EOF
10250 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10254 sed -n -f conftest.hdr confdefs.h > conftest.vals
10257 # This sed command replaces #undef with comments. This is necessary, for
10258 # example, in the case of _POSIX_SOURCE, which is predefined and required
10259 # on some systems where configure will not decide to define it.
10260 cat >> conftest.vals <<\EOF
10261 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10264 # Break up conftest.vals because some shells have a limit on
10265 # the size of here documents, and old seds have small limits too.
10267 rm -f conftest.tail
10270 ac_lines=`grep -c . conftest.vals
`
10271 # grep -c gives empty output for an empty file on some AIX systems.
10272 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10273 # Write a limited-size here document to conftest.frag.
10274 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10275 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10277 sed -f conftest.frag conftest.in > conftest.out
10279 mv conftest.out conftest.in
10280 ' >> $CONFIG_STATUS
10281 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10282 rm -f conftest.vals
10283 mv conftest.tail conftest.vals
10285 rm -f conftest.vals
10287 cat >> $CONFIG_STATUS <<\EOF
10288 rm -f conftest.frag conftest.h
10289 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10290 cat conftest.in >> conftest.h
10292 if cmp -s $ac_file conftest.h 2>/dev/null; then
10293 echo "$ac_file is unchanged"
10296 # Remove last slash and all that follows it. Not all systems have dirname.
10297 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10298 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10299 # The file is in a subdirectory.
10300 test ! -d "$ac_dir" && mkdir "$ac_dir"
10303 mv conftest.h $ac_file
10309 cat >> $CONFIG_STATUS <<EOF
10310 ac_sources="$nls_cv_header_libgt"
10311 ac_dests="$nls_cv_header_intl"
10314 cat >> $CONFIG_STATUS <<\EOF
10315 srcdir=$ac_given_srcdir
10316 while test -n "$ac_sources"; do
10317 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10318 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10320 echo "linking $srcdir/$ac_source to $ac_dest"
10322 if test ! -r $srcdir/$ac_source; then
10323 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10327 # Make relative symlinks.
10328 # Remove last slash and all that follows it. Not all systems have dirname.
10329 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10330 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10331 # The dest file is in a subdirectory.
10332 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10333 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10334 # A "../" for each directory in $ac_dest_dir_suffix.
10335 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10337 ac_dest_dir_suffix= ac_dots=
10341 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10342 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10345 # Make a symlink if possible; otherwise try a hard link.
10346 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10347 ln $srcdir/$ac_source $ac_dest; then :
10349 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10353 cat >> $CONFIG_STATUS <<EOF
10359 target_alias='${target_alias}'
10361 subdirs='${subdirs}'
10362 symbolic_link='${symbolic_link}'
10363 program_transform_set='${program_transform_set}'
10364 program_transform_name='${program_transform_name}'
10365 dep_host_xmake_file='${dep_host_xmake_file}'
10366 host_xmake_file='${host_xmake_file}'
10367 dep_tmake_file='${dep_tmake_file}'
10368 tmake_file='${tmake_file}'
10369 thread_file='${thread_file}'
10370 gcc_version='${gcc_version}'
10371 gcc_version_trigger='${gcc_version_trigger}'
10372 local_prefix='${local_prefix}'
10373 build_install_headers_dir='${build_install_headers_dir}'
10374 build_exeext='${build_exeext}'
10375 host_exeext='${host_exeext}'
10376 out_file='${out_file}'
10377 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10378 SET_MAKE='${SET_MAKE}'
10379 target_list='${target_list}'
10380 target_overrides='${target_overrides}'
10381 host_overrides='${host_overrides}'
10382 cross_defines='${cross_defines}'
10383 cross_overrides='${cross_overrides}'
10384 build_overrides='${build_overrides}'
10385 cpp_install_dir='${cpp_install_dir}'
10388 cat >> $CONFIG_STATUS <<\EOF
10389 case "$CONFIG_FILES" in *po/Makefile.in*)
10390 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10393 case x$CONFIG_HEADERS in
10394 xauto-host.h:config.in)
10397 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10398 # bootstrapping and the installation procedure can still use
10399 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10400 # FLAGS_TO_PASS has been modified to solve the problem there.
10401 # This is virtually a duplicate of what happens in configure.lang; we do
10402 # an extra check to make sure this only happens if ln -s can be used.
10403 if test "$symbolic_link" = "ln -s"; then
10404 for d in .. ${subdirs} ; do
10405 if test $d != ..; then
10408 for t in stage1 stage2 stage3 stage4 include
10411 $symbolic_link ../$t $t 2>/dev/null
10417 # Avoid having to add intl to our include paths.
10418 if test -f intl/libintl.h; then
10419 echo creating libintl.h
10420 echo '#include "intl/libintl.h"' >libintl.h
10425 chmod +x $CONFIG_STATUS
10426 rm -fr confdefs* $ac_clean_files
10427 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1