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-mbchar Enable multibyte characters for C and C++."
46 --enable-threads enable thread usage for target GCC.
47 --enable-threads=LIB use LIB thread package for target GCC."
49 --enable-objc-gc enable the use of Boehm's garbage collector with
50 the GNU Objective-C runtime."
52 --with-dwarf2 force the default debug format to be DWARF2."
54 --enable-nls use Native Language Support (disabled by default)"
56 --disable-nls do not use Native Language Support"
58 --with-included-gettext use the GNU gettext library included here"
60 --with-catgets use catgets functions if available"
62 --disable-win32-registry
63 Disable lookup of installation paths in the
64 Registry on Windows hosts.
65 --enable-win32-registry Enable registry lookup (default).
66 --enable-win32-registry=KEY
67 Use KEY instead of GCC version as the last portion
70 --with-gc={simple,page} Choose the garbage collection mechanism to use
74 select the new abi for g++. You must select an ABI
75 at configuration time, so that the correct runtime
76 support is built. You cannot mix ABIs."
79 enable libstdc++-v3 for building and installation"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file
=.
/config.cache
94 program_transform_name
=s
,x
,x
,
102 bindir
='${exec_prefix}/bin'
103 sbindir
='${exec_prefix}/sbin'
104 libexecdir
='${exec_prefix}/libexec'
105 datadir
='${prefix}/share'
106 sysconfdir
='${prefix}/etc'
107 sharedstatedir
='${prefix}/com'
108 localstatedir
='${prefix}/var'
109 libdir
='${exec_prefix}/lib'
110 includedir
='${prefix}/include'
111 oldincludedir
='/usr/include'
112 infodir
='${prefix}/info'
113 mandir
='${prefix}/man'
115 # Initialize some other variables.
118 SHELL
=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
144 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
145 bindir
="$ac_optarg" ;;
147 -build |
--build |
--buil |
--bui |
--bu)
149 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
150 build
="$ac_optarg" ;;
152 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
153 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
154 ac_prev
=cache_file
;;
155 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
156 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
157 cache_file
="$ac_optarg" ;;
159 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
161 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
163 datadir
="$ac_optarg" ;;
165 -disable-* |
--disable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* |
--enable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
188 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
189 |
--exec |
--exe |
--ex)
190 ac_prev
=exec_prefix
;;
191 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
192 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
193 |
--exec=* |
--exe=* |
--ex=*)
194 exec_prefix
="$ac_optarg" ;;
196 -gas |
--gas |
--ga |
--g)
197 # Obsolete; use --with-gas.
200 -help |
--help |
--hel |
--he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host |
--host |
--hos |
--ho)
257 -host=* |
--host=* |
--hos=* |
--ho=*)
260 -includedir |
--includedir |
--includedi |
--included |
--include \
261 |
--includ |
--inclu |
--incl |
--inc)
262 ac_prev
=includedir
;;
263 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
264 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
265 includedir
="$ac_optarg" ;;
267 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
269 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
270 infodir
="$ac_optarg" ;;
272 -libdir |
--libdir |
--libdi |
--libd)
274 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
275 libdir
="$ac_optarg" ;;
277 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
278 |
--libexe |
--libex |
--libe)
279 ac_prev
=libexecdir
;;
280 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
281 |
--libexe=* |
--libex=* |
--libe=*)
282 libexecdir
="$ac_optarg" ;;
284 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
285 |
--localstate |
--localstat |
--localsta |
--localst \
286 |
--locals |
--local |
--loca |
--loc |
--lo)
287 ac_prev
=localstatedir
;;
288 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
289 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
290 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
291 localstatedir
="$ac_optarg" ;;
293 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
295 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
296 mandir
="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
306 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
307 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
310 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
311 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
312 |
--oldin |
--oldi |
--old |
--ol |
--o)
313 ac_prev
=oldincludedir
;;
314 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
315 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
316 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
317 oldincludedir
="$ac_optarg" ;;
319 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
321 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
322 prefix
="$ac_optarg" ;;
324 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
325 |
--program-pre |
--program-pr |
--program-p)
326 ac_prev
=program_prefix
;;
327 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
328 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
329 program_prefix
="$ac_optarg" ;;
331 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
332 |
--program-suf |
--program-su |
--program-s)
333 ac_prev
=program_suffix
;;
334 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
335 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
336 program_suffix
="$ac_optarg" ;;
338 -program-transform-name |
--program-transform-name \
339 |
--program-transform-nam |
--program-transform-na \
340 |
--program-transform-n |
--program-transform- \
341 |
--program-transform |
--program-transfor \
342 |
--program-transfo |
--program-transf \
343 |
--program-trans |
--program-tran \
344 |
--progr-tra |
--program-tr |
--program-t)
345 ac_prev
=program_transform_name
;;
346 -program-transform-name=* |
--program-transform-name=* \
347 |
--program-transform-nam=* |
--program-transform-na=* \
348 |
--program-transform-n=* |
--program-transform-=* \
349 |
--program-transform=* |
--program-transfor=* \
350 |
--program-transfo=* |
--program-transf=* \
351 |
--program-trans=* |
--program-tran=* \
352 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
353 program_transform_name
="$ac_optarg" ;;
355 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
356 |
-silent |
--silent |
--silen |
--sile |
--sil)
359 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
361 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
363 sbindir
="$ac_optarg" ;;
365 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
366 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
367 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
369 ac_prev
=sharedstatedir
;;
370 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
371 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
372 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
374 sharedstatedir
="$ac_optarg" ;;
376 -site |
--site |
--sit)
378 -site=* |
--site=* |
--sit=*)
381 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
383 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
384 srcdir
="$ac_optarg" ;;
386 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
387 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
388 ac_prev
=sysconfdir
;;
389 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
390 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
391 sysconfdir
="$ac_optarg" ;;
393 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
395 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
396 target
="$ac_optarg" ;;
398 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
401 -version |
--version |
--versio |
--versi |
--vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* |
--without-*)
419 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
432 |
--x-incl |
--x-inc |
--x-in |
--x-i)
433 ac_prev
=x_includes
;;
434 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
435 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
436 x_includes
="$ac_optarg" ;;
438 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
439 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
440 ac_prev
=x_libraries
;;
441 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
442 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
443 x_libraries
="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE
; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
494 |
--no-cr |
--no-c) ;;
495 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
496 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
497 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest
* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file
=tree.c
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted
=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted
=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE
; then
548 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file
in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp
='$CPP $CPPFLAGS'
571 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling
=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
586 ac_n
= ac_c
='\c' ac_t
=
594 symbolic_link
='ln -s'
597 # Check for bogus environment variables.
598 # Test if LIBRARY_PATH contains the notation for the current directory
599 # since this would lead to problems installing/building glibc.
600 # LIBRARY_PATH contains the current directory if one of the following
602 # - one of the terminals (":" and ";") is the first or last sign
603 # - two terminals occur directly after each other
604 # - the path contains an element with a dot in it
605 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
606 echo "configure:607: checking LIBRARY_PATH variable" >&5
607 case ${LIBRARY_PATH} in
608 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
609 library_path_setting
="contains current directory"
612 library_path_setting
="ok"
615 echo "$ac_t""$library_path_setting" 1>&6
616 if test "$library_path_setting" != "ok"; then
617 { echo "configure: error:
618 *** LIBRARY_PATH shouldn't contain the current directory when
619 *** building gcc. Please change the environment variable
620 *** and run configure again." 1>&2; exit 1; }
623 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
624 # since this would lead to problems installing/building glibc.
625 # GCC_EXEC_PREFIX contains the current directory if one of the following
627 # - one of the terminals (":" and ";") is the first or last sign
628 # - two terminals occur directly after each other
629 # - the path contains an element with a dot in it
630 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
631 echo "configure:632: checking GCC_EXEC_PREFIX variable" >&5
632 case ${GCC_EXEC_PREFIX} in
633 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
634 gcc_exec_prefix_setting
="contains current directory"
637 gcc_exec_prefix_setting
="ok"
640 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
641 if test "$gcc_exec_prefix_setting" != "ok"; then
642 { echo "configure: error:
643 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
644 *** building gcc. Please change the environment variable
645 *** and run configure again." 1>&2; exit 1; }
648 # Check for additional parameters
651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
652 if test "${with_gnu_ld+set}" = set; then
653 withval
="$with_gnu_ld"
654 gnu_ld_flag
="$with_gnu_ld"
660 # With pre-defined ld
661 # Check whether --with-ld or --without-ld was given.
662 if test "${with_ld+set}" = set; then
664 DEFAULT_LINKER
="$with_ld"
667 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
668 if test ! -x "$DEFAULT_LINKER"; then
669 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
670 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
673 cat >> confdefs.h
<<EOF
674 #define DEFAULT_LINKER "$DEFAULT_LINKER"
680 # Check whether --with-gnu-as or --without-gnu-as was given.
681 if test "${with_gnu_as+set}" = set; then
682 withval
="$with_gnu_as"
683 gas_flag
="$with_gnu_as"
689 # Check whether --with-as or --without-as was given.
690 if test "${with_as+set}" = set; then
692 DEFAULT_ASSEMBLER
="$with_as"
695 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
696 if test ! -x "$DEFAULT_ASSEMBLER"; then
697 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
698 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
701 cat >> confdefs.h
<<EOF
702 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
708 # Check whether --with-stabs or --without-stabs was given.
709 if test "${with_stabs+set}" = set; then
710 withval
="$with_stabs"
718 # Check whether --with-elf or --without-elf was given.
719 if test "${with_elf+set}" = set; then
727 # Specify the local prefix
729 # Check whether --with-local-prefix or --without-local-prefix was given.
730 if test "${with_local_prefix+set}" = set; then
731 withval
="$with_local_prefix"
733 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
735 *) local_prefix
=$with_local_prefix ;;
740 # Default local prefix if it is empty
741 if test x
$local_prefix = x
; then
742 local_prefix
=/usr
/local
745 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
746 # passed in by the toplevel make and thus we'd get different behavior
747 # depending on where we built the sources.
749 # Specify the g++ header file directory
750 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
751 if test "${with_gxx_include_dir+set}" = set; then
752 withval
="$with_gxx_include_dir"
754 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
756 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
761 if test x
${gcc_gxx_include_dir} = x
; then
762 if test x
${enable_version_specific_runtime_libs} = xyes
; then
763 gcc_gxx_include_dir
='${libsubdir}/include/g++'
765 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
766 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
770 # Enable expensive internal checks
771 # Check whether --enable-checking or --disable-checking was given.
772 if test "${enable_checking+set}" = set; then
773 enableval
="$enable_checking"
778 ac_gc_always_collect
=
779 case "${enableval}" in
780 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_rtl_checking
=1 ;;
782 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
783 set fnord
$enableval; shift
788 misc
) ac_checking
=1 ;;
789 tree
) ac_tree_checking
=1 ;;
790 rtl
) ac_rtl_checking
=1 ;;
791 gc
) ac_gc_checking
=1 ;;
792 gcac
) ac_gc_always_collect
=1 ;;
793 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
798 if test x
$ac_checking != x
; then
799 cat >> confdefs.h
<<\EOF
800 #define ENABLE_CHECKING 1
804 if test x
$ac_tree_checking != x
; then
805 cat >> confdefs.h
<<\EOF
806 #define ENABLE_TREE_CHECKING 1
810 if test x
$ac_rtl_checking != x
; then
811 cat >> confdefs.h
<<\EOF
812 #define ENABLE_RTL_CHECKING 1
816 if test x
$ac_gc_checking != x
; then
817 cat >> confdefs.h
<<\EOF
818 #define ENABLE_GC_CHECKING 1
822 if test x
$ac_gc_always_collect != x
; then
823 cat >> confdefs.h
<<\EOF
824 #define ENABLE_GC_ALWAYS_COLLECT 1
832 # Check whether --enable-cpp or --disable-cpp was given.
833 if test "${enable_cpp+set}" = set; then
834 enableval
="$enable_cpp"
841 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
842 if test "${with_cpp_install_dir+set}" = set; then
843 withval
="$with_cpp_install_dir"
844 if test x
$withval = xyes
; then
845 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
846 elif test x
$withval != xno
; then
847 cpp_install_dir
=$withval
853 # Enable Multibyte Characters for C/C++
854 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
855 if test "${enable_c_mbchar+set}" = set; then
856 enableval
="$enable_c_mbchar"
857 if test x
$enable_c_mbchar != xno
; then
858 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
864 # Pass with no value to take the default
865 # Pass with a value to specify a thread package
866 # Check whether --enable-threads or --disable-threads was given.
867 if test "${enable_threads+set}" = set; then
868 enableval
="$enable_threads"
869 if test x
$enable_threads = xno
; then
877 enable_threads_flag
=$enable_threads
878 # Check if a valid thread package
879 case x
${enable_threads_flag} in
882 target_thread_file
='single'
886 target_thread_file
=''
888 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
889 xsolaris | xwin32 | xdce | xvxworks
)
890 target_thread_file
=$enable_threads_flag
893 echo "$enable_threads is an unknown thread package" 1>&2
898 # Check whether --enable-objc-gc or --disable-objc-gc was given.
899 if test "${enable_objc_gc+set}" = set; then
900 enableval
="$enable_objc_gc"
901 if test x
$enable_objc_gc = xno
; then
911 # Check whether --with-dwarf2 or --without-dwarf2 was given.
912 if test "${with_dwarf2+set}" = set; then
913 withval
="$with_dwarf2"
914 dwarf2
="$with_dwarf2"
920 # Determine the host, build, and target systems
922 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
923 if test -f $ac_dir/install-sh
; then
925 ac_install_sh
="$ac_aux_dir/install-sh -c"
927 elif test -f $ac_dir/install.sh
; then
929 ac_install_sh
="$ac_aux_dir/install.sh -c"
933 if test -z "$ac_aux_dir"; then
934 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
936 ac_config_guess
=$ac_aux_dir/config.guess
937 ac_config_sub
=$ac_aux_dir/config.sub
938 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
941 # Do some error checking and defaulting for the host and target type.
943 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
946 # 1. You are not allowed to specify --host, --target, and nonopt at the
948 # 2. Host defaults to nonopt.
949 # 3. If nonopt is not specified, then host defaults to the current host,
950 # as determined by config.guess.
951 # 4. Target and build default to nonopt.
952 # 5. If nonopt is not specified, then target and build default to host.
954 # The aliases save the names the user supplied, while $host etc.
955 # will get canonicalized.
956 case $host---$target---$nonopt in
957 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
958 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
962 # Make sure we can run config.sub.
963 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
967 echo $ac_n "checking host system type""... $ac_c" 1>&6
968 echo "configure:969: checking host system type" >&5
971 case "$host_alias" in
975 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
976 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
978 *) host_alias
=$nonopt ;;
982 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
983 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$host" 1>&6
988 echo $ac_n "checking target system type""... $ac_c" 1>&6
989 echo "configure:990: checking target system type" >&5
992 case "$target_alias" in
995 NONE
) target_alias
=$host_alias ;;
996 *) target_alias
=$nonopt ;;
1000 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1001 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$target" 1>&6
1006 echo $ac_n "checking build system type""... $ac_c" 1>&6
1007 echo "configure:1008: checking build system type" >&5
1010 case "$build_alias" in
1013 NONE
) build_alias
=$host_alias ;;
1014 *) build_alias
=$nonopt ;;
1018 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1019 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$build" 1>&6
1024 test "$host_alias" != "$target_alias" &&
1025 test "$program_prefix$program_suffix$program_transform_name" = \
1027 program_prefix
=${target_alias}-
1030 # Find the native compiler
1031 # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc
; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC
="$CC" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1043 for ac_dir
in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir
=.
1045 if test -f $ac_dir/$ac_word; then
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 # Extract the first word of "cc", so it can be a program name with args.
1062 set dummy cc
; ac_word
=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$CC"; then
1069 ac_cv_prog_CC
="$CC" # Let the user override the test.
1071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1074 for ac_dir
in $ac_dummy; do
1075 test -z "$ac_dir" && ac_dir
=.
1076 if test -f $ac_dir/$ac_word; then
1077 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1078 ac_prog_rejected
=yes
1086 if test $ac_prog_rejected = yes; then
1087 # We found a bogon in the path, so make sure we never use it.
1088 set dummy
$ac_cv_prog_CC
1090 if test $# -gt 0; then
1091 # We chose a different compiler from the bogus one.
1092 # However, it has the same basename, so the bogon will be chosen
1093 # first if we set CC to just the basename; use the full file name.
1095 set dummy
"$ac_dir/$ac_word" "$@"
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1106 echo "$ac_t""no" 1>&6
1109 if test -z "$CC"; then
1110 case "`uname -s`" in
1112 # Extract the first word of "cl", so it can be a program name with args.
1113 set dummy cl
; ac_word
=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1116: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 if test -n "$CC"; then
1120 ac_cv_prog_CC
="$CC" # Let the user override the test.
1122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1124 for ac_dir
in $ac_dummy; do
1125 test -z "$ac_dir" && ac_dir
=.
1126 if test -f $ac_dir/$ac_word; then
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1138 echo "$ac_t""no" 1>&6
1143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1151 ac_cpp
='$CPP $CPPFLAGS'
1152 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1153 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1154 cross_compiling
=$ac_cv_prog_cc_cross
1156 cat > conftest.
$ac_ext << EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1163 if { (eval echo configure
:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1164 ac_cv_prog_cc_works
=yes
1165 # If we can't run a trivial program, we are probably using a cross compiler.
1166 if (.
/conftest
; exit) 2>/dev
/null
; then
1167 ac_cv_prog_cc_cross
=no
1169 ac_cv_prog_cc_cross
=yes
1172 echo "configure: failed program was:" >&5
1173 cat conftest.
$ac_ext >&5
1174 ac_cv_prog_cc_works
=no
1178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp
='$CPP $CPPFLAGS'
1180 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling
=$ac_cv_prog_cc_cross
1184 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1185 if test $ac_cv_prog_cc_works = no
; then
1186 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1190 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1191 cross_compiling
=$ac_cv_prog_cc_cross
1193 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether we are using GNU C" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.c
<<EOF
1203 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1210 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1212 if test $ac_cv_prog_gcc = yes; then
1218 ac_test_CFLAGS
="${CFLAGS+set}"
1219 ac_save_CFLAGS
="$CFLAGS"
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238 CFLAGS
="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1240 if test "$GCC" = yes; then
1246 if test "$GCC" = yes; then
1253 echo $ac_n "checking for long double""... $ac_c" 1>&6
1254 echo "configure:1255: checking for long double" >&5
1255 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test "$GCC" = yes; then
1259 gcc_cv_c_long_double
=yes
1261 cat > conftest.
$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1266 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1267 long double foo = 0.0;
1268 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1269 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1272 if { (eval echo configure
:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1274 gcc_cv_c_long_double
=yes
1276 echo "configure: failed program was:" >&5
1277 cat conftest.
$ac_ext >&5
1279 gcc_cv_c_long_double
=no
1285 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1286 if test $gcc_cv_c_long_double = yes; then
1287 cat >> confdefs.h
<<\EOF
1288 #define HAVE_LONG_DOUBLE 1
1294 # If the native compiler is GCC, we can enable warnings even in stage1.
1295 # That's useful for people building cross-compilers, or just running a
1297 if test "x$GCC" = "xyes"; then
1298 stage1_warn_cflags
='$(WARN_CFLAGS)'
1300 stage1_warn_cflags
=""
1304 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether ${MAKE-make} sets \${MAKE}" >&5
1306 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1307 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftestmake
<<\EOF
1312 @
echo 'ac_maketemp="${MAKE}"'
1314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1315 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1316 if test -n "$ac_maketemp"; then
1317 eval ac_cv_prog_make_
${ac_make}_set
=yes
1319 eval ac_cv_prog_make_
${ac_make}_set
=no
1323 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1328 SET_MAKE
="MAKE=${MAKE-make}"
1332 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1333 echo "configure:1334: checking whether a default assembler was specified" >&5
1334 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1335 if test x
"$gas_flag" = x
"no"; then
1336 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1338 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1341 echo "$ac_t""no" 1>&6
1344 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether a default linker was specified" >&5
1346 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1347 if test x
"$gnu_ld_flag" = x
"no"; then
1348 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1350 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1353 echo "$ac_t""no" 1>&6
1356 # Find some useful tools
1357 for ac_prog
in mawk gawk nawk
awk
1359 # Extract the first word of "$ac_prog", so it can be a program name with args.
1360 set dummy
$ac_prog; ac_word
=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$AWK"; then
1367 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1369 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1371 for ac_dir
in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir
=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_AWK
="$ac_prog"
1381 AWK
="$ac_cv_prog_AWK"
1382 if test -n "$AWK"; then
1383 echo "$ac_t""$AWK" 1>&6
1385 echo "$ac_t""no" 1>&6
1388 test -n "$AWK" && break
1391 # Extract the first word of "flex", so it can be a program name with args.
1392 set dummy flex
; ac_word
=$2
1393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1394 echo "configure:1395: checking for $ac_word" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test -n "$LEX"; then
1399 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1401 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1403 for ac_dir
in $ac_dummy; do
1404 test -z "$ac_dir" && ac_dir
=.
1405 if test -f $ac_dir/$ac_word; then
1406 ac_cv_prog_LEX
="flex"
1411 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1414 LEX
="$ac_cv_prog_LEX"
1415 if test -n "$LEX"; then
1416 echo "$ac_t""$LEX" 1>&6
1418 echo "$ac_t""no" 1>&6
1421 if test -z "$LEXLIB"
1427 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1428 echo "configure:1429: checking for yywrap in -l$ac_lib" >&5
1429 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_save_LIBS
="$LIBS"
1434 LIBS
="-l$ac_lib $LIBS"
1435 cat > conftest.
$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 /* Override any gcc2 internal prototype to avoid an error. */
1439 /* We use char because int might match the return type of a gcc2
1440 builtin and then its argument prototype would still apply. */
1447 if { (eval echo configure
:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1449 eval "ac_cv_lib_$ac_lib_var=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1454 eval "ac_cv_lib_$ac_lib_var=no"
1457 LIBS
="$ac_save_LIBS"
1460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1464 echo "$ac_t""no" 1>&6
1469 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1470 echo "configure:1471: checking whether ln works" >&5
1471 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 rm -f conftestdata_t
1475 echo >conftestdata_f
1476 if ln conftestdata_f conftestdata_t
2>/dev
/null
1480 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1482 gcc_cv_prog_LN
="ln -s"
1487 rm -f conftestdata_f conftestdata_t
1490 LN
="$gcc_cv_prog_LN"
1491 if test "$gcc_cv_prog_LN" = "ln"; then
1492 echo "$ac_t""yes" 1>&6
1494 if test "$gcc_cv_prog_LN" = "ln -s"; then
1495 echo "$ac_t""no, using ln -s" 1>&6
1497 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1501 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether ln -s works" >&5
1503 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 rm -f conftestdata_t
1507 echo >conftestdata_f
1508 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1510 gcc_cv_prog_LN_S
="ln -s"
1512 if ln conftestdata_f conftestdata_t
2>/dev
/null
1519 rm -f conftestdata_f conftestdata_t
1522 LN_S
="$gcc_cv_prog_LN_S"
1523 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1524 echo "$ac_t""yes" 1>&6
1526 if test "$gcc_cv_prog_LN_S" = "ln"; then
1527 echo "$ac_t""no, using ln" 1>&6
1529 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1533 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1534 echo "configure:1535: checking for volatile" >&5
1535 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1546 if { (eval echo configure
:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548 gcc_cv_c_volatile
=yes
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1553 gcc_cv_c_volatile
=no
1558 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1559 if test $gcc_cv_c_volatile = yes ; then
1560 cat >> confdefs.h
<<\EOF
1561 #define HAVE_VOLATILE 1
1566 # Extract the first word of "ranlib", so it can be a program name with args.
1567 set dummy ranlib
; ac_word
=$2
1568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_word" >&5
1570 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 if test -n "$RANLIB"; then
1574 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1578 for ac_dir
in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir
=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_prog_RANLIB
="ranlib"
1586 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1589 RANLIB
="$ac_cv_prog_RANLIB"
1590 if test -n "$RANLIB"; then
1591 echo "$ac_t""$RANLIB" 1>&6
1593 echo "$ac_t""no" 1>&6
1596 for ac_prog
in 'bison -y' byacc
1598 # Extract the first word of "$ac_prog", so it can be a program name with args.
1599 set dummy
$ac_prog; ac_word
=$2
1600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1601 echo "configure:1602: checking for $ac_word" >&5
1602 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 if test -n "$YACC"; then
1606 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1608 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1610 for ac_dir
in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir
=.
1612 if test -f $ac_dir/$ac_word; then
1613 ac_cv_prog_YACC
="$ac_prog"
1620 YACC
="$ac_cv_prog_YACC"
1621 if test -n "$YACC"; then
1622 echo "$ac_t""$YACC" 1>&6
1624 echo "$ac_t""no" 1>&6
1627 test -n "$YACC" && break
1629 test -n "$YACC" || YACC
="yacc"
1631 # Find a good install program. We prefer a C program (faster),
1632 # so one script is as good as another. But avoid the broken or
1633 # incompatible versions:
1634 # SysV /etc/install, /usr/sbin/install
1635 # SunOS /usr/etc/install
1636 # IRIX /sbin/install
1638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1640 # ./install, which can be erroneously created by make from ./install.sh.
1641 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1642 echo "configure:1643: checking for a BSD compatible install" >&5
1643 if test -z "$INSTALL"; then
1644 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1648 for ac_dir
in $PATH; do
1649 # Account for people who put trailing slashes in PATH elements.
1651 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 for ac_prog
in ginstall scoinst
install; do
1655 if test -f $ac_dir/$ac_prog; then
1656 if test $ac_prog = install &&
1657 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1658 # AIX install. It has an incompatible calling convention.
1659 # OSF/1 installbsd also uses dspmsg, but is usable.
1662 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1673 if test "${ac_cv_path_install+set}" = set; then
1674 INSTALL
="$ac_cv_path_install"
1676 # As a last resort, use the slow shell script. We don't cache a
1677 # path for INSTALL within a source directory, because that will
1678 # break other packages using the cache if that directory is
1679 # removed, or if the path is relative.
1680 INSTALL
="$ac_install_sh"
1683 echo "$ac_t""$INSTALL" 1>&6
1685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1686 # It thinks the first close brace ends the variable substitution.
1687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1689 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1692 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1693 echo "configure:1694: checking how to run the C preprocessor" >&5
1694 # On Suns, sometimes $CPP names a directory.
1695 if test -n "$CPP" && test -d "$CPP"; then
1698 if test -z "$CPP"; then
1699 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 # This must be in double quotes, not single quotes, because CPP may get
1703 # substituted into the Makefile and "${CC-cc}" will confuse make.
1705 # On the NeXT, cc -E runs the code through the compiler's parser,
1706 # not just through cpp.
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1713 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure
:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1716 if test -z "$ac_err"; then
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1723 CPP
="${CC-cc} -E -traditional-cpp"
1724 cat > conftest.
$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1730 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731 { (eval echo configure
:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733 if test -z "$ac_err"; then
1737 echo "configure: failed program was:" >&5
1738 cat conftest.
$ac_ext >&5
1740 CPP
="${CC-cc} -nologo -E"
1741 cat > conftest.
$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1748 { (eval echo configure
:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1749 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1750 if test -z "$ac_err"; then
1754 echo "configure: failed program was:" >&5
1755 cat conftest.
$ac_ext >&5
1764 ac_cv_prog_CPP
="$CPP"
1766 CPP
="$ac_cv_prog_CPP"
1768 ac_cv_prog_CPP
="$CPP"
1770 echo "$ac_t""$CPP" 1>&6
1772 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1773 echo "configure:1774: checking for ANSI C header files" >&5
1774 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 cat > conftest.
$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1786 { (eval echo configure
:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1787 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1788 if test -z "$ac_err"; then
1790 ac_cv_header_stdc
=yes
1793 echo "configure: failed program was:" >&5
1794 cat conftest.
$ac_ext >&5
1796 ac_cv_header_stdc
=no
1800 if test $ac_cv_header_stdc = yes; then
1801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1802 cat > conftest.
$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1808 egrep "memchr" >/dev
/null
2>&1; then
1812 ac_cv_header_stdc
=no
1818 if test $ac_cv_header_stdc = yes; then
1819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1826 egrep "free" >/dev
/null
2>&1; then
1830 ac_cv_header_stdc
=no
1836 if test $ac_cv_header_stdc = yes; then
1837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1838 if test "$cross_compiling" = yes; then
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1845 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1846 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1848 int main () { int i; for (i = 0; i < 256; i++)
1849 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1853 if { (eval echo configure
:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1857 echo "configure: failed program was:" >&5
1858 cat conftest.
$ac_ext >&5
1860 ac_cv_header_stdc
=no
1868 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1869 if test $ac_cv_header_stdc = yes; then
1870 cat >> confdefs.h
<<\EOF
1871 #define STDC_HEADERS 1
1876 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether time.h and sys/time.h may both be included" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <sys/types.h>
1885 #include <sys/time.h>
1891 if { (eval echo configure
:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1893 ac_cv_header_time
=yes
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 ac_cv_header_time
=no
1903 echo "$ac_t""$ac_cv_header_time" 1>&6
1904 if test $ac_cv_header_time = yes; then
1905 cat >> confdefs.h
<<\EOF
1906 #define TIME_WITH_SYS_TIME 1
1911 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether string.h and strings.h may both be included" >&5
1913 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1920 #include <strings.h>
1925 if { (eval echo configure
:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1927 gcc_cv_header_string
=yes
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1932 gcc_cv_header_string
=no
1937 echo "$ac_t""$gcc_cv_header_string" 1>&6
1938 if test $gcc_cv_header_string = yes; then
1939 cat >> confdefs.h
<<\EOF
1940 #define STRING_WITH_STRINGS 1
1945 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1946 echo "configure:1947: checking for sys/wait.h that is POSIX.1 compatible" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 #include <sys/types.h>
1954 #include <sys/wait.h>
1956 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1959 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1964 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1967 if { (eval echo configure
:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1969 ac_cv_header_sys_wait_h
=yes
1971 echo "configure: failed program was:" >&5
1972 cat conftest.
$ac_ext >&5
1974 ac_cv_header_sys_wait_h
=no
1979 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1980 if test $ac_cv_header_sys_wait_h = yes; then
1981 cat >> confdefs.h
<<\EOF
1982 #define HAVE_SYS_WAIT_H 1
1987 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1988 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1989 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1992 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_hdr" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2004 { (eval echo configure
:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2006 if test -z "$ac_err"; then
2008 eval "ac_cv_header_$ac_safe=yes"
2011 echo "configure: failed program was:" >&5
2012 cat conftest.
$ac_ext >&5
2014 eval "ac_cv_header_$ac_safe=no"
2018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2021 cat >> confdefs.h
<<EOF
2022 #define $ac_tr_hdr 1
2026 echo "$ac_t""no" 1>&6
2031 # Check for thread headers.
2032 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2033 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2034 echo "configure:2035: checking for thread.h" >&5
2035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.
$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2043 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2044 { (eval echo configure
:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2045 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2046 if test -z "$ac_err"; then
2048 eval "ac_cv_header_$ac_safe=yes"
2051 echo "configure: failed program was:" >&5
2052 cat conftest.
$ac_ext >&5
2054 eval "ac_cv_header_$ac_safe=no"
2058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2059 echo "$ac_t""yes" 1>&6
2062 echo "$ac_t""no" 1>&6
2066 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2067 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2068 echo "configure:2069: checking for pthread.h" >&5
2069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.
$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 #include <pthread.h>
2077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2078 { (eval echo configure
:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2080 if test -z "$ac_err"; then
2082 eval "ac_cv_header_$ac_safe=yes"
2085 echo "configure: failed program was:" >&5
2086 cat conftest.
$ac_ext >&5
2088 eval "ac_cv_header_$ac_safe=no"
2092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2096 echo "$ac_t""no" 1>&6
2101 # See if GNAT has been installed
2102 # Extract the first word of "gnatbind", so it can be a program name with args.
2103 set dummy gnatbind
; ac_word
=$2
2104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2105 echo "configure:2106: checking for $ac_word" >&5
2106 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 if test -n "$gnat"; then
2110 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2114 for ac_dir
in $ac_dummy; do
2115 test -z "$ac_dir" && ac_dir
=.
2116 if test -f $ac_dir/$ac_word; then
2117 ac_cv_prog_gnat
="yes"
2122 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2125 gnat
="$ac_cv_prog_gnat"
2126 if test -n "$gnat"; then
2127 echo "$ac_t""$gnat" 1>&6
2129 echo "$ac_t""no" 1>&6
2133 # Do we have a single-tree copy of texinfo?
2134 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2135 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2136 gcc_cv_prog_makeinfo_modern
=yes
2137 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2139 # See if makeinfo has been installed and is modern enough
2140 # that we can use it.
2141 # Extract the first word of "makeinfo", so it can be a program name with args.
2142 set dummy makeinfo
; ac_word
=$2
2143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_word" >&5
2145 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 if test -n "$MAKEINFO"; then
2149 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2153 for ac_dir
in $ac_dummy; do
2154 test -z "$ac_dir" && ac_dir
=.
2155 if test -f $ac_dir/$ac_word; then
2156 ac_cv_prog_MAKEINFO
="makeinfo"
2163 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2164 if test -n "$MAKEINFO"; then
2165 echo "$ac_t""$MAKEINFO" 1>&6
2167 echo "$ac_t""no" 1>&6
2170 if test -n "$MAKEINFO"; then
2171 # Found it, now check the version.
2172 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2173 echo "configure:2174: checking for modern makeinfo" >&5
2174 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2178 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2179 echo "configure:2180: version of makeinfo is $ac_prog_version" >&5
2180 case $ac_prog_version in
2181 '') gcc_cv_prog_makeinfo_modern
=no
;;
2182 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2183 gcc_cv_prog_makeinfo_modern
=yes;;
2184 *) gcc_cv_prog_makeinfo_modern
=no
;;
2189 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2191 gcc_cv_prog_makeinfo_modern
=no
2196 if test $gcc_cv_prog_makeinfo_modern = no
; then
2197 echo "configure: warning:
2198 *** Makeinfo is missing or too old.
2199 *** Info documentation will not be built or installed." 1>&2
2204 INSTALL_INFO
=install-info
2207 # See if the stage1 system preprocessor understands the ANSI C
2208 # preprocessor stringification operator.
2211 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2212 echo "configure:2213: checking for preprocessor stringizing operator" >&5
2213 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat > conftest.
$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2222 char *s = x(teststring);
2225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2226 egrep "#teststring" >/dev
/null
2>&1; then
2228 ac_cv_c_stringize
=no
2231 ac_cv_c_stringize
=yes
2237 if test "${ac_cv_c_stringize}" = yes
2239 cat >> confdefs.h
<<\EOF
2240 #define HAVE_STRINGIZE 1
2244 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2247 # Use <inttypes.h> only if it exists,
2248 # doesn't clash with <sys/types.h>, and declares intmax_t.
2249 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2250 echo "configure:2251: checking for inttypes.h" >&5
2251 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 #include <sys/types.h>
2258 #include <inttypes.h>
2263 if { (eval echo configure
:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2265 gcc_cv_header_inttypes_h
=yes
2267 echo "configure: failed program was:" >&5
2268 cat conftest.
$ac_ext >&5
2270 gcc_cv_header_inttypes_h
=no
2275 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2276 if test $gcc_cv_header_inttypes_h = yes; then
2277 cat >> confdefs.h
<<\EOF
2278 #define HAVE_INTTYPES_H 1
2284 # Determine if enumerated bitfields are unsigned. ISO C says they can
2285 # be either signed or unsigned.
2287 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2288 echo "configure:2289: checking for unsigned enumerated bitfields" >&5
2289 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 if test "$cross_compiling" = yes; then
2293 gcc_cv_enum_bf_unsigned
=yes
2295 cat > conftest.
$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2299 enum t { BLAH = 128 } ;
2300 struct s_t { enum t member : 8; } s ;
2304 if (s.member < 0) exit(1);
2309 if { (eval echo configure
:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2311 gcc_cv_enum_bf_unsigned
=yes
2313 echo "configure: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2316 gcc_cv_enum_bf_unsigned
=no
2323 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2324 if test $gcc_cv_enum_bf_unsigned = yes; then
2325 cat >> confdefs.h
<<\EOF
2326 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2331 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2332 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2333 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2334 fputs_unlocked getrusage valloc
2336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2337 echo "configure:2338: checking for $ac_func" >&5
2338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 /* System header to define __stub macros and hopefully few prototypes,
2345 which can conflict with char $ac_func(); below. */
2347 /* Override any gcc2 internal prototype to avoid an error. */
2348 /* We use char because int might match the return type of a gcc2
2349 builtin and then its argument prototype would still apply. */
2354 /* The GNU C library defines this for functions which it implements
2355 to always fail with ENOSYS. Some functions are actually named
2356 something starting with __ and the normal name is an alias. */
2357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2365 if { (eval echo configure
:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2367 eval "ac_cv_func_$ac_func=yes"
2369 echo "configure: failed program was:" >&5
2370 cat conftest.
$ac_ext >&5
2372 eval "ac_cv_func_$ac_func=no"
2377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2380 cat >> confdefs.h
<<EOF
2381 #define $ac_tr_func 1
2385 echo "$ac_t""no" 1>&6
2390 # Make sure wchar_t is available
2391 #AC_CHECK_TYPE(wchar_t, unsigned int)
2393 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2394 echo "configure:2395: checking for vprintf" >&5
2395 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.
$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 /* System header to define __stub macros and hopefully few prototypes,
2402 which can conflict with char vprintf(); below. */
2404 /* Override any gcc2 internal prototype to avoid an error. */
2405 /* We use char because int might match the return type of a gcc2
2406 builtin and then its argument prototype would still apply. */
2411 /* The GNU C library defines this for functions which it implements
2412 to always fail with ENOSYS. Some functions are actually named
2413 something starting with __ and the normal name is an alias. */
2414 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2422 if { (eval echo configure
:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2424 eval "ac_cv_func_vprintf=yes"
2426 echo "configure: failed program was:" >&5
2427 cat conftest.
$ac_ext >&5
2429 eval "ac_cv_func_vprintf=no"
2434 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 cat >> confdefs.h
<<\EOF
2437 #define HAVE_VPRINTF 1
2441 echo "$ac_t""no" 1>&6
2444 if test "$ac_cv_func_vprintf" != yes; then
2445 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2446 echo "configure:2447: checking for _doprnt" >&5
2447 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 /* System header to define __stub macros and hopefully few prototypes,
2454 which can conflict with char _doprnt(); below. */
2456 /* Override any gcc2 internal prototype to avoid an error. */
2457 /* We use char because int might match the return type of a gcc2
2458 builtin and then its argument prototype would still apply. */
2463 /* The GNU C library defines this for functions which it implements
2464 to always fail with ENOSYS. Some functions are actually named
2465 something starting with __ and the normal name is an alias. */
2466 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2474 if { (eval echo configure
:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2476 eval "ac_cv_func__doprnt=yes"
2478 echo "configure: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 eval "ac_cv_func__doprnt=no"
2486 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 cat >> confdefs.h
<<\EOF
2489 #define HAVE_DOPRNT 1
2493 echo "$ac_t""no" 1>&6
2500 if test $ac_cv_func_vprintf != yes ; then
2502 if test $ac_cv_func__doprnt != yes ; then
2509 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2510 echo "configure:2511: checking whether the printf functions support %p" >&5
2511 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 if test "$cross_compiling" = yes; then
2515 gcc_cv_func_printf_ptr
=no
2517 cat > conftest.
$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2525 char *p = buf, *q = NULL;
2526 sprintf(buf, "%p", p);
2527 sscanf(buf, "%p", &q);
2531 if { (eval echo configure
:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2533 gcc_cv_func_printf_ptr
=yes
2535 echo "configure: failed program was:" >&5
2536 cat conftest.
$ac_ext >&5
2538 gcc_cv_func_printf_ptr
=no
2543 rm -f core core.
* *.core
2546 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2547 if test $gcc_cv_func_printf_ptr = yes ; then
2548 cat >> confdefs.h
<<\EOF
2549 #define HAVE_PRINTF_PTR 1
2557 # Under some versions of uwin, vfork is notoriously buggy and the test
2558 # can hang configure; on other versions, vfork exists just as a stub.
2559 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2560 ac_cv_func_vfork_works
=no
2563 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2564 echo "configure:2565: checking for pid_t" >&5
2565 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.
$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <sys/types.h>
2577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2580 ac_cv_type_pid_t
=yes
2588 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2589 if test $ac_cv_type_pid_t = no
; then
2590 cat >> confdefs.h
<<\EOF
2596 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2597 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2598 echo "configure:2599: checking for vfork.h" >&5
2599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.
$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2607 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2608 { (eval echo configure
:2609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2609 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2610 if test -z "$ac_err"; then
2612 eval "ac_cv_header_$ac_safe=yes"
2615 echo "configure: failed program was:" >&5
2616 cat conftest.
$ac_ext >&5
2618 eval "ac_cv_header_$ac_safe=no"
2622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2623 echo "$ac_t""yes" 1>&6
2624 cat >> confdefs.h
<<\EOF
2625 #define HAVE_VFORK_H 1
2629 echo "$ac_t""no" 1>&6
2632 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2633 echo "configure:2634: checking for working vfork" >&5
2634 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 if test "$cross_compiling" = yes; then
2638 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2639 echo "configure:2640: checking for vfork" >&5
2640 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 cat > conftest.
$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2646 /* System header to define __stub macros and hopefully few prototypes,
2647 which can conflict with char vfork(); below. */
2649 /* Override any gcc2 internal prototype to avoid an error. */
2650 /* We use char because int might match the return type of a gcc2
2651 builtin and then its argument prototype would still apply. */
2656 /* The GNU C library defines this for functions which it implements
2657 to always fail with ENOSYS. Some functions are actually named
2658 something starting with __ and the normal name is an alias. */
2659 #if defined (__stub_vfork) || defined (__stub___vfork)
2667 if { (eval echo configure
:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2669 eval "ac_cv_func_vfork=yes"
2671 echo "configure: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2674 eval "ac_cv_func_vfork=no"
2679 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2683 echo "$ac_t""no" 1>&6
2686 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2688 cat > conftest.
$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2691 /* Thanks to Paul Eggert for this test. */
2693 #include <sys/types.h>
2694 #include <sys/stat.h>
2695 #ifdef HAVE_UNISTD_H
2701 /* On some sparc systems, changes by the child to local and incoming
2702 argument registers are propagated back to the parent.
2703 The compiler is told about this with #include <vfork.h>,
2704 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2705 Test for this by using a static variable whose address
2706 is put into a register that is clobbered by the vfork. */
2709 sparc_address_test (int arg)
2711 sparc_address_test (arg) int arg;
2729 pid_t parent = getpid ();
2732 sparc_address_test ();
2737 /* Here is another test for sparc vfork register problems.
2738 This test uses lots of local variables, at least
2739 as many local variables as main has allocated so far
2740 including compiler temporaries. 4 locals are enough for
2741 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2742 A buggy compiler should reuse the register of parent
2743 for one of the local variables, since it will think that
2744 parent can't possibly be used any more in this routine.
2745 Assigning to the local variable will thus munge parent
2746 in the parent process. */
2748 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2749 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2750 /* Convince the compiler that p..p7 are live; otherwise, it might
2751 use the same hardware register for all 8 local variables. */
2752 if (p != p1 || p != p2 || p != p3 || p != p4
2753 || p != p5 || p != p6 || p != p7)
2756 /* On some systems (e.g. IRIX 3.3),
2757 vfork doesn't separate parent from child file descriptors.
2758 If the child closes a descriptor before it execs or exits,
2759 this munges the parent's descriptor as well.
2760 Test for this by closing stdout in the child. */
2761 _exit(close(fileno(stdout)) != 0);
2766 while (wait(&status) != child)
2769 /* Was there some problem with vforking? */
2772 /* Did the child fail? (This shouldn't happen.) */
2775 /* Did the vfork/compiler bug occur? */
2776 || parent != getpid()
2778 /* Did the file descriptor bug occur? */
2779 || fstat(fileno(stdout), &st) != 0
2784 if { (eval echo configure
:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2786 ac_cv_func_vfork_works
=yes
2788 echo "configure: failed program was:" >&5
2789 cat conftest.
$ac_ext >&5
2791 ac_cv_func_vfork_works
=no
2798 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2799 if test $ac_cv_func_vfork_works = no
; then
2800 cat >> confdefs.h
<<\EOF
2806 for ac_hdr
in unistd.h
2808 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_hdr" >&5
2811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2819 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2820 { (eval echo configure
:2821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2821 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2822 if test -z "$ac_err"; then
2824 eval "ac_cv_header_$ac_safe=yes"
2827 echo "configure: failed program was:" >&5
2828 cat conftest.
$ac_ext >&5
2830 eval "ac_cv_header_$ac_safe=no"
2834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2835 echo "$ac_t""yes" 1>&6
2836 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2837 cat >> confdefs.h
<<EOF
2838 #define $ac_tr_hdr 1
2842 echo "$ac_t""no" 1>&6
2846 for ac_func
in getpagesize
2848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_func" >&5
2850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 cat > conftest.
$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2856 /* System header to define __stub macros and hopefully few prototypes,
2857 which can conflict with char $ac_func(); below. */
2859 /* Override any gcc2 internal prototype to avoid an error. */
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2866 /* The GNU C library defines this for functions which it implements
2867 to always fail with ENOSYS. Some functions are actually named
2868 something starting with __ and the normal name is an alias. */
2869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2877 if { (eval echo configure
:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2879 eval "ac_cv_func_$ac_func=yes"
2881 echo "configure: failed program was:" >&5
2882 cat conftest.
$ac_ext >&5
2884 eval "ac_cv_func_$ac_func=no"
2889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2890 echo "$ac_t""yes" 1>&6
2891 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2892 cat >> confdefs.h
<<EOF
2893 #define $ac_tr_func 1
2897 echo "$ac_t""no" 1>&6
2901 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2902 echo "configure:2903: checking for working mmap from /dev/zero" >&5
2903 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 if test "$cross_compiling" = yes; then
2907 ac_cv_func_mmap_anywhere
=no
2909 cat > conftest.
$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2913 /* Test by Richard Henderson and Alexandre Oliva.
2914 Check whether mmap from /dev/zero works. */
2915 #include <sys/types.h>
2917 #include <sys/mman.h>
2919 /* This mess was copied from the GNU getpagesize.h. */
2920 #ifndef HAVE_GETPAGESIZE
2921 # ifdef HAVE_UNISTD_H
2922 # include <unistd.h>
2925 /* Assume that all systems that can run configure have sys/param.h. */
2926 # ifndef HAVE_SYS_PARAM_H
2927 # define HAVE_SYS_PARAM_H 1
2930 # ifdef _SC_PAGESIZE
2931 # define getpagesize() sysconf(_SC_PAGESIZE)
2932 # else /* no _SC_PAGESIZE */
2933 # ifdef HAVE_SYS_PARAM_H
2934 # include <sys/param.h>
2935 # ifdef EXEC_PAGESIZE
2936 # define getpagesize() EXEC_PAGESIZE
2937 # else /* no EXEC_PAGESIZE */
2939 # define getpagesize() NBPG * CLSIZE
2942 # endif /* no CLSIZE */
2943 # else /* no NBPG */
2945 # define getpagesize() NBPC
2946 # else /* no NBPC */
2948 # define getpagesize() PAGESIZE
2949 # endif /* PAGESIZE */
2950 # endif /* no NBPC */
2951 # endif /* no NBPG */
2952 # endif /* no EXEC_PAGESIZE */
2953 # else /* no HAVE_SYS_PARAM_H */
2954 # define getpagesize() 8192 /* punt totally */
2955 # endif /* no HAVE_SYS_PARAM_H */
2956 # endif /* no _SC_PAGESIZE */
2958 #endif /* no HAVE_GETPAGESIZE */
2965 fd = open("/dev/zero", O_RDWR);
2970 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2971 if (x == (char *) -1)
2976 if (munmap(x, pg) < 0)
2982 if { (eval echo configure
:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2984 ac_cv_func_mmap_anywhere
=yes
2986 echo "configure: failed program was:" >&5
2987 cat conftest.
$ac_ext >&5
2989 ac_cv_func_mmap_anywhere
=no
2996 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2997 if test $ac_cv_func_mmap_anywhere = yes; then
2998 cat >> confdefs.h
<<\EOF
2999 #define HAVE_MMAP_ANYWHERE 1
3004 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3005 echo "configure:3006: checking for working mmap of a file" >&5
3006 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 # Create a file one thousand bytes long.
3010 for i
in 1 2 3 4 5 6 7 8 9 0
3011 do for j
in 1 2 3 4 5 6 7 8 9 0
3014 done > conftestdata$$
3016 if test "$cross_compiling" = yes; then
3017 ac_cv_func_mmap_file
=no
3019 cat > conftest.
$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3023 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3024 Richard Henderson and Alexandre Oliva.
3025 Check whether read-only mmap of a plain file works. */
3026 #include <sys/types.h>
3027 #include <sys/stat.h>
3029 #include <sys/mman.h>
3037 fd = open("conftestdata$$", O_RDONLY);
3041 if (fstat (fd, &st))
3044 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3045 if (x == (char *) -1)
3048 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3051 if (munmap(x, st.st_size) < 0)
3057 if { (eval echo configure
:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3059 ac_cv_func_mmap_file
=yes
3061 echo "configure: failed program was:" >&5
3062 cat conftest.
$ac_ext >&5
3064 ac_cv_func_mmap_file
=no
3071 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3072 if test $ac_cv_func_mmap_file = yes; then
3073 cat >> confdefs.h
<<\EOF
3074 #define HAVE_MMAP_FILE 1
3080 # We will need to find libiberty.h and ansidecl.h
3081 saved_CFLAGS
="$CFLAGS"
3082 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3083 for ac_func
in bcopy bzero bcmp \
3084 index rindex getenv atol sbrk abort atof getcwd getwd \
3085 strsignal putc_unlocked fputs_unlocked strstr environ \
3086 malloc realloc calloc free
3088 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3089 echo "configure:3090: checking whether $ac_func must be declared" >&5
3090 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.
$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3097 #include "gansidecl.h"
3101 char *(*pfn) = (char *(*)) $ac_func ;
3105 if { (eval echo configure
:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3107 eval "gcc_cv_decl_needed_$ac_func=no"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3112 eval "gcc_cv_decl_needed_$ac_func=yes"
3117 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6 ; ac_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3119 cat >> confdefs.h
<<EOF
3120 #define $ac_tr_decl 1
3124 echo "$ac_t""no" 1>&6 ; :
3128 if test x
= y
; then
3129 cat >> confdefs.h
<<EOF
3130 #define NEED_DECLARATION_BCOPY 1
3132 cat >> confdefs.h
<<EOF
3133 #define NEED_DECLARATION_BZERO 1
3135 cat >> confdefs.h
<<EOF
3136 #define NEED_DECLARATION_BCMP 1
3139 cat >> confdefs.h
<<EOF
3140 #define NEED_DECLARATION_INDEX 1
3142 cat >> confdefs.h
<<EOF
3143 #define NEED_DECLARATION_RINDEX 1
3145 cat >> confdefs.h
<<EOF
3146 #define NEED_DECLARATION_GETENV 1
3148 cat >> confdefs.h
<<EOF
3149 #define NEED_DECLARATION_ATOL 1
3151 cat >> confdefs.h
<<EOF
3152 #define NEED_DECLARATION_SBRK 1
3154 cat >> confdefs.h
<<EOF
3155 #define NEED_DECLARATION_ABORT 1
3157 cat >> confdefs.h
<<EOF
3158 #define NEED_DECLARATION_ATOF 1
3160 cat >> confdefs.h
<<EOF
3161 #define NEED_DECLARATION_GETCWD 1
3163 cat >> confdefs.h
<<EOF
3164 #define NEED_DECLARATION_GETWD 1
3167 cat >> confdefs.h
<<EOF
3168 #define NEED_DECLARATION_STRSIGNAL 1
3170 cat >> confdefs.h
<<EOF
3171 #define NEED_DECLARATION_PUTC_UNLOCKED 1
3173 cat >> confdefs.h
<<EOF
3174 #define NEED_DECLARATION_FPUTS_UNLOCKED 1
3176 cat >> confdefs.h
<<EOF
3177 #define NEED_DECLARATION_STRSTR 1
3179 cat >> confdefs.h
<<EOF
3180 #define NEED_DECLARATION_ENVIRON 1
3183 cat >> confdefs.h
<<EOF
3184 #define NEED_DECLARATION_MALLOC 1
3186 cat >> confdefs.h
<<EOF
3187 #define NEED_DECLARATION_REALLOC 1
3189 cat >> confdefs.h
<<EOF
3190 #define NEED_DECLARATION_CALLOC 1
3192 cat >> confdefs.h
<<EOF
3193 #define NEED_DECLARATION_FREE 1
3198 for ac_func
in getrlimit setrlimit getrusage
3200 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3201 echo "configure:3202: checking whether $ac_func must be declared" >&5
3202 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 cat > conftest.
$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3209 #include "gansidecl.h"
3211 #ifdef HAVE_SYS_RESOURCE_H
3212 #include <sys/resource.h>
3217 char *(*pfn) = (char *(*)) $ac_func ;
3221 if { (eval echo configure
:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3223 eval "gcc_cv_decl_needed_$ac_func=no"
3225 echo "configure: failed program was:" >&5
3226 cat conftest.
$ac_ext >&5
3228 eval "gcc_cv_decl_needed_$ac_func=yes"
3233 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6 ; ac_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3235 cat >> confdefs.h
<<EOF
3236 #define $ac_tr_decl 1
3240 echo "$ac_t""no" 1>&6 ; :
3244 if test x
= y
; then
3245 cat >> confdefs.h
<<EOF
3246 #define NEED_DECLARATION_GETRLIMIT 1
3248 cat >> confdefs.h
<<EOF
3249 #define NEED_DECLARATION_SETRLIMIT 1
3251 cat >> confdefs.h
<<EOF
3252 #define NEED_DECLARATION_GETRUSAGE 1
3257 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3258 CFLAGS
="$saved_CFLAGS"
3260 # mkdir takes a single argument on some systems.
3261 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3262 echo "configure:3263: checking if mkdir takes one argument" >&5
3263 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 cat > conftest.
$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3270 #include <sys/types.h>
3271 #ifdef HAVE_SYS_STAT_H
3272 # include <sys/stat.h>
3274 #ifdef HAVE_UNISTD_H
3275 # include <unistd.h>
3277 #ifdef HAVE_DIRECT_H
3278 # include <direct.h>
3284 if { (eval echo configure
:3285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3286 gcc_cv_mkdir_takes_one_arg
=no
3288 echo "configure: failed program was:" >&5
3289 cat conftest.
$ac_ext >&5
3291 gcc_cv_mkdir_takes_one_arg
=yes
3296 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3297 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3298 cat >> confdefs.h
<<\EOF
3299 #define MKDIR_TAKES_ONE_ARG 1
3313 build_install_headers_dir
=install-headers-tar
3318 host_truncate_target
=
3321 # Decode the host machine, then the target machine.
3322 # For the host machine, we save the xm_file variable as host_xm_file;
3323 # then we decode the target machine and forget everything else
3324 # that came from the host machine.
3325 for machine
in $build $host $target; do
3339 # Set this to force installation and use of collect2.
3341 # Set this to override the default target model.
3343 # Set this to control how the header file directory is installed.
3344 install_headers_dir
=install-headers-tar
3345 # Set this to a non-empty list of args to pass to cpp if the target
3346 # wants its .md file passed through cpp.
3348 # Set this if directory names should be truncated to 14 characters.
3350 # Set this if gdb needs a dir command with `dirname $out_file`
3351 gdb_needs_out_file_path
=
3352 # Set this if the build machine requires executables to have a
3355 # Set this to control which thread package will be used.
3357 # Reinitialize these from the flag values every loop pass, since some
3358 # configure entries modify them.
3360 gnu_ld
="$gnu_ld_flag"
3361 enable_threads
=$enable_threads_flag
3363 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3364 # updated in each machine entry.
3366 cpu_type
=`echo $machine | sed 's/-.*$//'`
3403 tm_file
=${cpu_type}/${cpu_type}.h
3404 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3405 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3407 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3409 # On a.out targets, we need to use collect2.
3416 # Common parts for linux-gnu and openbsd systems
3419 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3422 tm_file
=${cpu_type}/openbsd.h
3423 tmake_file
="t-libc-ok t-openbsd"
3424 # avoid surprises, always provide an xm-openbsd file
3425 xm_file
=${cpu_type}/xm-openbsd.h
3426 # don't depend on processor x-fragments as well
3428 if test x
$enable_threads = xyes
; then
3430 tmake_file
="${tmake_file} t-openbsd-thread"
3436 # Support site-specific machine types.
3438 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3439 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3440 xm_file
=${cpu_type}/xm-
$rest.h
3441 tm_file
=${cpu_type}/$rest.h
3442 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3443 then xmake_file
=${cpu_type}/x-
$rest; \
3446 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3447 then tmake_file
=${cpu_type}/t-
$rest; \
3453 a29k-
*-bsd* | a29k-
*-sym1*)
3454 tm_file
="${tm_file} a29k/unix.h"
3456 xmake_file
=a29k
/x-unix
3459 a29k-
*-udi | a29k-
*-coff)
3460 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3461 tmake_file
=a29k
/t-a29kbare
3464 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3465 tmake_file
=a29k
/t-vx29k
3466 extra_parts
="crtbegin.o crtend.o"
3467 thread_file
='vxworks'
3469 a29k-
*-*) # Default a29k environment.
3473 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3475 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3476 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3478 # GAS + IEEE_CONFORMANT
3479 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3481 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3482 xmake_file
="x-interix alpha/t-pe"
3483 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3484 if test x
$enable_threads = xyes
; then
3487 if test x
$stabs = xyes
; then
3488 tm_file
="${tm_file} dbxcoff.h"
3490 #prefix='$$INTERIX_ROOT'/usr/contrib
3491 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3493 alpha
*-*-linux-gnuecoff*)
3494 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3495 target_cpu_default
="MASK_GAS"
3496 tmake_file
="alpha/t-alpha alpha/t-ieee"
3501 alpha
*-*-linux-gnulibc1*)
3502 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3503 target_cpu_default
="MASK_GAS"
3504 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3505 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3508 if test x
$enable_threads = xyes
; then
3512 alpha
*-*-linux-gnu*)
3513 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3514 target_cpu_default
="MASK_GAS"
3515 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3516 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3519 if test x
$enable_threads = xyes
; then
3524 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3525 target_cpu_default
="MASK_GAS"
3526 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3527 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3533 # default x-alpha is only appropriate for dec-osf.
3534 target_cpu_default
="MASK_GAS"
3535 tmake_file
="alpha/t-alpha alpha/t-ieee"
3539 if test x
$stabs = xyes
3541 tm_file
="${tm_file} dbx.h"
3543 if test x
$gas != xyes
3545 extra_passes
="mips-tfile mips-tdump"
3548 tmake_file
="alpha/t-alpha alpha/t-ieee"
3551 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3554 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3557 tm_file
="${tm_file} alpha/osf.h"
3558 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3559 # a broken tar, so we use cpio instead.
3560 install_headers_dir
=install-headers-cpio
3563 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3567 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3568 target_cpu_default
=MASK_SUPPORT_ARCH
3573 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3574 tmake_file
="alpha/t-alpha alpha/t-ieee"
3577 extra_passes
="mips-tfile mips-tdump"
3580 thread_file
='vxworks'
3583 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3584 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3585 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3586 xmake_file
=winnt
/x-winnt
3587 extra_host_objs
=oldnames.o
3588 extra_gcc_objs
="spawnv.o oldnames.o"
3589 if test x
$gnu_ld != xyes
3591 extra_programs
=ld.exe
3593 if test x
$enable_threads = xyes
; then
3599 xm_file
="${xm_file} alpha/xm-vms.h"
3600 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3603 extra_parts
="crtinit.o crtfini.o"
3605 arm-
*-coff* | armel-
*-coff*)
3607 tmake_file
=arm
/t-arm-coff
3611 tmake_file
=arm
/t-arm-coff
3612 thread_file
='vxworks'
3614 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3615 tm_file
=arm
/riscix1-1.h
3618 arm-
*-riscix*) # Acorn RISC machine
3619 if test x
$gas = xyes
3621 tm_file
=arm
/rix-gas.h
3623 tm_file
=arm
/riscix.h
3625 xmake_file
=arm
/x-riscix
3626 tmake_file
=arm
/t-riscix
3629 arm-semi-aout | armel-semi-aout
)
3631 tmake_file
=arm
/t-semi
3633 arm-semi-aof | armel-semi-aof
)
3634 tm_file
=arm
/semiaof.h
3635 tmake_file
=arm
/t-semiaof
3638 tm_file
=arm
/netbsd.h
3639 tmake_file
="t-netbsd arm/t-netbsd"
3642 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3645 tm_file
=arm
/linux-aout.h
3646 tmake_file
=arm
/t-linux
3649 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3650 xm_file
=arm
/xm-linux.h
3652 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3655 tm_file
="arm/linux-elf26.h $tm_file"
3658 tmake_file
="t-linux arm/t-linux"
3659 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3661 case x
${enable_threads} in
3662 x | xyes | xpthreads | xposix
)
3667 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3668 xm_file
=arm
/xm-linux.h
3670 tm_file
="arm/linux-elf.h"
3673 tm_file
="arm/linux-elf26.h $tm_file"
3676 tmake_file
="t-linux arm/t-linux"
3677 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3679 case x
${enable_threads} in
3680 x | xyes | xpthreads | xposix
)
3685 arm
*-*-uclinux*) # ARM ucLinux
3686 tm_file
=arm
/uclinux-elf.h
3687 tmake_file
=arm
/t-arm-elf
3691 tmake_file
=arm
/t-arm-aout
3694 tm_file
=arm
/ecos-elf.h
3695 tmake_file
=arm
/t-arm-elf
3698 tm_file
=arm
/unknown-elf.h
3699 tmake_file
=arm
/t-arm-elf
3702 tm_file
=arm
/conix-elf.h
3703 tmake_file
=arm
/t-arm-elf
3706 tm_file
=arm
/unknown-elf-oabi.h
3707 tmake_file
=arm
/t-arm-elf
3716 c1-convex-
*) # Convex C1
3717 target_cpu_default
=1
3720 c2-convex-
*) # Convex C2
3721 target_cpu_default
=2
3725 target_cpu_default
=4
3729 target_cpu_default
=8
3733 target_cpu_default
=16
3738 tmake_file
=c4x
/t-c4x
3740 clipper-intergraph-clix
*)
3741 tm_file
="${tm_file} svr3.h clipper/clix.h"
3742 xm_file
=clipper
/xm-clix.h
3743 xmake_file
=clipper
/x-clix
3744 extra_headers
=va-clipper.h
3745 extra_parts
="crtbegin.o crtend.o"
3746 install_headers_dir
=install-headers-cpio
3757 tm_file
="fr30/fr30.h"
3758 tmake_file
=fr30
/t-fr30
3759 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3761 # This hasn't been upgraded to GCC 2.
3762 # fx80-alliant-*) # Alliant FX/80
3768 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3769 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3770 tmake_file
="t-linux pa/t-linux"
3771 extra_parts
="crtbegin.o crtend.o"
3774 if test x
$enable_threads = xyes
; then
3779 target_cpu_default
="MASK_PA_11"
3780 tmake_file
=pa
/t-openbsd
3783 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3784 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3785 xm_file
=pa
/xm-papro.h
3789 target_cpu_default
="MASK_PA_11"
3790 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3794 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3795 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3796 xm_file
=pa
/xm-papro.h
3800 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3804 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3805 target_cpu_default
="MASK_PA_11"
3809 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3813 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3814 xm_file
=pa
/xm-pahpux.h
3815 xmake_file
=pa
/x-pa-hpux
3816 if test x
$gas = xyes
3818 tm_file
="${tm_file} pa/gas.h"
3820 install_headers_dir
=install-headers-cpio
3823 hppa1.0
-*-hpux8.0
[0-2]*)
3824 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3825 xm_file
=pa
/xm-pahpux.h
3826 xmake_file
=pa
/x-pa-hpux
3827 if test x
$gas = xyes
3829 tm_file
="${tm_file} pa/pa-gas.h"
3831 tm_file
="pa/pa-oldas.h ${tm_file}"
3833 install_headers_dir
=install-headers-cpio
3836 hppa1.1
-*-hpux8.0
[0-2]*)
3837 target_cpu_default
="MASK_PA_11"
3838 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3839 xm_file
=pa
/xm-pahpux.h
3840 xmake_file
=pa
/x-pa-hpux
3841 if test x
$gas = xyes
3843 tm_file
="${tm_file} pa/pa-gas.h"
3845 tm_file
="pa/pa-oldas.h ${tm_file}"
3847 install_headers_dir
=install-headers-cpio
3851 target_cpu_default
="MASK_PA_11"
3852 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3853 xm_file
=pa
/xm-pahpux.h
3854 xmake_file
=pa
/x-pa-hpux
3855 if test x
$gas = xyes
3857 tm_file
="${tm_file} pa/pa-gas.h"
3859 install_headers_dir
=install-headers-cpio
3863 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3864 xm_file
=pa
/xm-pahpux.h
3865 xmake_file
=pa
/x-pa-hpux
3866 if test x
$gas = xyes
3868 tm_file
="${tm_file} pa/pa-gas.h"
3870 install_headers_dir
=install-headers-cpio
3873 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3874 target_cpu_default
="MASK_PA_11"
3875 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3877 xm_file
=pa
/xm-pahpux.h
3878 xmake_file
=pa
/x-pa-hpux
3880 if test x
$gas = xyes
3882 tm_file
="${tm_file} pa/pa-gas.h"
3884 if test x
$enable_threads = x
; then
3885 enable_threads
=$have_pthread_h
3887 if test x
$enable_threads = xyes
; then
3889 tmake_file
="${tmake_file} pa/t-dce-thr"
3891 install_headers_dir
=install-headers-cpio
3895 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3897 xm_file
=pa
/xm-pahpux.h
3898 xmake_file
=pa
/x-pa-hpux
3900 if test x
$gas = xyes
3902 tm_file
="${tm_file} pa/pa-gas.h"
3904 if test x
$enable_threads = x
; then
3905 enable_threads
=$have_pthread_h
3907 if test x
$enable_threads = xyes
; then
3909 tmake_file
="${tmake_file} pa/t-dce-thr"
3911 install_headers_dir
=install-headers-cpio
3914 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3915 target_cpu_default
="MASK_PA_11"
3916 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3918 xm_file
=pa
/xm-pahpux.h
3919 xmake_file
=pa
/x-pa-hpux
3921 if test x
$gas = xyes
3923 tm_file
="${tm_file} pa/pa-gas.h"
3925 # if test x$enable_threads = x; then
3926 # enable_threads=$have_pthread_h
3928 # if test x$enable_threads = xyes; then
3930 # tmake_file="${tmake_file} pa/t-dce-thr"
3932 install_headers_dir
=install-headers-cpio
3936 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3938 xm_file
=pa
/xm-pahpux.h
3939 xmake_file
=pa
/x-pa-hpux
3940 if test x
$gas = xyes
3942 tm_file
="${tm_file} pa/pa-gas.h"
3944 # if test x$enable_threads = x; then
3945 # enable_threads=$have_pthread_h
3947 # if test x$enable_threads = xyes; then
3949 # tmake_file="${tmake_file} pa/t-dce-thr"
3951 install_headers_dir
=install-headers-cpio
3954 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3955 target_cpu_default
="MASK_PA_11"
3956 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3957 xm_file
=pa
/xm-pahpux.h
3958 xmake_file
=pa
/x-pa-hpux
3959 if test x
$gas = xyes
3961 tm_file
="${tm_file} pa/pa-gas.h"
3963 install_headers_dir
=install-headers-cpio
3967 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3968 xm_file
=pa
/xm-pahpux.h
3969 xmake_file
=pa
/x-pa-hpux
3970 if test x
$gas = xyes
3972 tm_file
="${tm_file} pa/pa-gas.h"
3974 install_headers_dir
=install-headers-cpio
3977 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3978 target_cpu_default
="MASK_PA_11"
3979 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3980 xm_file
=pa
/xm-pahpux.h
3981 xmake_file
=pa
/x-pa-hpux
3982 if test x
$gas = xyes
3984 tm_file
="${tm_file} pa/pa-gas.h"
3986 install_headers_dir
=install-headers-cpio
3990 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3991 xm_file
=pa
/xm-pahpux.h
3992 xmake_file
=pa
/x-pa-hpux
3993 if test x
$gas = xyes
3995 tm_file
="${tm_file} pa/pa-gas.h"
3997 install_headers_dir
=install-headers-cpio
4001 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4002 target_cpu_default
="MASK_PA_11"
4006 tm_file
="${tm_file} pa/pa-mpeix.h"
4007 xm_file
=pa
/xm-pampeix.h
4008 xmake_file
=pa
/x-pa-mpeix
4009 echo "You must use gas. Assuming it is already installed."
4010 install_headers_dir
=install-headers-tar
4013 i370-
*-opened*) # IBM 360/370/390 Architecture
4014 xm_file
=i370
/xm-oe.h
4016 xmake_file
=i370
/x-oe
4017 tmake_file
=i370
/t-oe
4020 xm_file
=i370
/xm-mvs.h
4022 tmake_file
=i370
/t-mvs
4025 xm_file
="xm-linux.h i370/xm-linux.h"
4027 tm_file
="i370/linux.h ${tm_file}"
4028 tmake_file
="t-linux i370/t-linux"
4029 # broken_install=yes
4030 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4031 # extra_parts="crtbegin.o crtend.o"
4035 if test x
$enable_threads = xyes
; then
4040 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4041 tm_file
=i386
/i386elf.h
4042 tmake_file
=i386
/t-i386elf
4045 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4046 if test x
$gas = xyes
4048 tm_file
=i386
/aix386.h
4049 extra_parts
="crtbegin.o crtend.o"
4050 tmake_file
=i386
/t-crtstuff
4052 tm_file
=i386
/aix386ng.h
4055 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4057 xmake_file
=i386
/x-aix
4059 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4060 xm_file
="xm-alloca.h ${xm_file}"
4061 xm_defines
="USG POSIX SMALL_ARG_MAX"
4062 xmake_file
=i386
/x-ncr3000
4063 if test x
$stabs = xyes
-a x
$gas = xyes
4065 tm_file
=i386
/sysv4gdb.h
4067 tm_file
=i386
/sysv4.h
4069 extra_parts
="crtbegin.o crtend.o"
4070 tmake_file
=i386
/t-crtpic
4074 xm_file
=i386
/xm-next.h
4075 tmake_file
=i386
/t-next
4076 xmake_file
=i386
/x-next
4077 extra_objs
=nextstep.o
4078 extra_parts
="crtbegin.o crtend.o"
4079 if test x
$enable_threads = xyes
; then
4083 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4085 if test x
$gas = xyes
4087 tm_file
=i386
/seq-gas.h
4089 tm_file
=i386
/sequent.h
4092 i
[34567]86-sequent-ptx1*)
4093 xm_defines
="USG SVR3"
4094 xmake_file
=i386
/x-sysv3
4095 tm_file
=i386
/seq-sysv3.h
4096 tmake_file
=i386
/t-crtstuff
4097 extra_parts
="crtbegin.o crtend.o"
4098 install_headers_dir
=install-headers-cpio
4100 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4101 xm_defines
="USG SVR3"
4102 xmake_file
=i386
/x-sysv3
4103 tm_file
=i386
/seq2-sysv3.h
4104 tmake_file
=i386
/t-crtstuff
4105 extra_parts
="crtbegin.o crtend.o"
4106 install_headers_dir
=install-headers-cpio
4108 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4109 xm_file
="xm-alloca.h ${xm_file}"
4110 xm_defines
="USG POSIX SMALL_ARG_MAX"
4112 tm_file
=i386
/ptx4-i.h
4114 extra_parts
="crtbegin.o crtend.o"
4115 install_headers_dir
=install-headers-cpio
4117 i386-sun-sunos
*) # Sun i386 roadrunner
4122 i
[34567]86-wrs-vxworks*)
4123 tm_file
=i386
/vxi386.h
4124 tmake_file
=i386
/t-i386bare
4125 thread_file
='vxworks'
4128 tm_file
=i386
/i386-aout.h
4129 tmake_file
=i386
/t-i386bare
4131 i
[34567]86-*-beospe*)
4132 xm_file
=i386
/xm-beos.h
4133 xm_defines
="USE_C_ALLOCA"
4134 tmake_file
=i386
/t-beos
4135 tm_file
=i386
/beos-pe.h
4136 xmake_file
=i386
/x-beos
4139 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4140 xm_file
=i386
/xm-beos.h
4141 tmake_file
='i386/t-beos i386/t-crtpic'
4142 tm_file
=i386
/beos-elf.h
4143 xmake_file
=i386
/x-beos
4145 extra_parts
='crtbegin.o crtend.o'
4147 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4148 tm_file
=i386
/bsd386.h
4149 # tmake_file=t-libc-ok
4152 tm_file
=i386
/386bsd.h
4153 # tmake_file=t-libc-ok
4154 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4157 i
[34567]86-*-freebsdelf*)
4158 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4159 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4160 tmake_file
=t-freebsd
4164 case x
${enable_threads} in
4165 xyes | xpthreads | xposix
)
4167 tmake_file
="${tmake_file} t-freebsd-thread"
4171 i
[34567]86-*-freebsd*)
4172 tm_file
="i386/freebsd.h i386/perform.h"
4173 tmake_file
=t-freebsd
4175 i
[34567]86-*-netbsd*)
4176 tm_file
=i386
/netbsd.h
4180 i
[34567]86-*-openbsd*)
4181 # we need collect2 until our bug is fixed...
4185 tm_file
=i386
/i386-coff.h
4186 tmake_file
=i386
/t-i386bare
4188 i
[34567]86-*-isc*) # 80386 running ISC system
4189 xm_file
="${xm_file} i386/xm-isc.h"
4190 xm_defines
="USG SVR3"
4192 i
[34567]86-*-isc[34]*)
4193 xmake_file
=i386
/x-isc3
4196 xmake_file
=i386
/x-isc
4199 if test x
$gas = xyes
-a x
$stabs = xyes
4201 tm_file
=i386
/iscdbx.h
4202 tmake_file
=i386
/t-svr3dbx
4203 extra_parts
="svr3.ifile svr3z.ifile"
4205 tm_file
=i386
/isccoff.h
4206 tmake_file
=i386
/t-crtstuff
4207 extra_parts
="crtbegin.o crtend.o"
4209 install_headers_dir
=install-headers-cpio
4211 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4213 xmake_file
=x-linux-aout
4214 tmake_file
="t-linux-aout i386/t-crtstuff"
4215 tm_file
=i386
/linux-oldld.h
4219 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4220 xmake_file
=x-linux-aout
4221 tmake_file
="t-linux-aout i386/t-crtstuff"
4222 tm_file
=i386
/linux-aout.h
4226 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4227 # GNU/Linux C library 5
4229 tm_file
=i386
/linux.h
4230 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4231 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4234 if test x
$enable_threads = xyes
; then
4235 thread_file
='single'
4238 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4239 # aka GNU/Linux C library 6
4241 tm_file
=i386
/linux.h
4242 tmake_file
="t-linux i386/t-crtstuff"
4243 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4246 if test x
$enable_threads = xyes
; then
4253 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4254 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4257 i
[34567]86-pc-msdosdjgpp*)
4258 xm_file
=i386
/xm-djgpp.h
4259 tm_file
=i386
/djgpp.h
4260 tmake_file
=i386
/t-djgpp
4261 xmake_file
=i386
/x-djgpp
4265 case $host in *pc-msdosdjgpp
*)
4270 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4272 tmake_file
=t-libc-ok
4276 i
[34567]86-*-lynxos*)
4277 if test x
$gas = xyes
4281 tm_file
=i386
/lynx-ng.h
4283 xm_file
=i386
/xm-lynx.h
4284 tmake_file
=i386
/t-i386bare
4289 # tmake_file=t-libc-ok
4292 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4293 if test x
$elf = xyes
4295 tm_file
=i386
/osfelf.h
4298 tm_file
=i386
/osfrose.h
4301 xm_file
="i386/xm-osf.h ${xm_file}"
4302 xmake_file
=i386
/x-osfrose
4303 tmake_file
=i386
/t-osf
4304 extra_objs
=halfpic.o
4306 i
[34567]86-go32-rtems*)
4308 xm_file
=i386
/xm-go32.h
4309 tm_file
=i386
/go32-rtems.h
4310 tmake_file
="i386/t-go32 t-rtems"
4312 i
[34567]86-*-rtemscoff*)
4314 tm_file
=i386
/rtems.h
4315 tmake_file
="i386/t-i386bare t-rtems"
4317 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4319 tm_file
=i386
/rtemself.h
4320 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4321 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4323 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4324 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4325 xm_defines
="USG SVR3"
4326 xmake_file
=i386
/x-sco5
4327 install_headers_dir
=install-headers-cpio
4329 if test x
$gas = xyes
4331 tm_file
="i386/sco5gas.h ${tm_file}"
4332 tmake_file
=i386
/t-sco5gas
4334 tmake_file
=i386
/t-sco5
4336 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4338 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4339 xm_file
="${xm_file} i386/xm-sco.h"
4340 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4341 xmake_file
=i386
/x-sco4
4342 install_headers_dir
=install-headers-cpio
4343 if test x
$stabs = xyes
4345 tm_file
=i386
/sco4dbx.h
4346 tmake_file
=i386
/t-svr3dbx
4347 extra_parts
="svr3.ifile svr3z.rfile"
4350 tmake_file
=i386
/t-crtstuff
4351 extra_parts
="crtbegin.o crtend.o"
4353 # The default EAFS filesystem supports long file names.
4354 # Truncating the target makes $host != $target which
4355 # makes gcc think it is doing a cross-compile.
4356 # truncate_target=yes
4358 i
[34567]86-*-sco*) # 80386 running SCO system
4359 xm_file
=i386
/xm-sco.h
4360 xmake_file
=i386
/x-sco
4361 install_headers_dir
=install-headers-cpio
4362 if test x
$stabs = xyes
4364 tm_file
=i386
/scodbx.h
4365 tmake_file
=i386
/t-svr3dbx
4366 extra_parts
="svr3.ifile svr3z.rfile"
4369 extra_parts
="crtbegin.o crtend.o"
4370 tmake_file
=i386
/t-crtstuff
4374 i
[34567]86-*-solaris2*)
4375 xm_file
="xm-alloca.h ${xm_file}"
4376 xm_defines
="USG POSIX SMALL_ARG_MAX"
4378 if test x
$gas = xyes
; then
4379 # Only needed if gas does not support -s
4380 tm_file
="i386/sol2gas.h ${tm_file}"
4382 tmake_file
=i386
/t-sol2
4383 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4385 if test x
${enable_threads} = x
; then
4386 enable_threads
=$have_pthread_h
4387 if test x
${enable_threads} = x
; then
4388 enable_threads
=$have_thread_h
4391 if test x
${enable_threads} = xyes
; then
4392 if test x
${have_pthread_h} = xyes
; then
4395 thread_file
='solaris'
4399 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4400 xm_file
="xm-alloca.h ${xm_file}"
4401 xm_defines
="USG POSIX"
4402 tm_file
=i386
/sysv5.h
4403 if test x
$stabs = xyes
4405 tm_file
="${tm_file} dbx.h"
4407 tmake_file
=i386
/t-crtpic
4409 extra_parts
="crtbegin.o crtend.o"
4410 if test x
$enable_threads = xyes
; then
4414 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4415 xm_file
="xm-alloca.h ${xm_file}"
4416 xm_defines
="USG POSIX SMALL_ARG_MAX"
4417 tm_file
=i386
/sysv4.h
4418 if test x
$stabs = xyes
4420 tm_file
="${tm_file} dbx.h"
4422 tmake_file
=i386
/t-crtpic
4424 extra_parts
="crtbegin.o crtend.o"
4426 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4427 xm_file
="xm-alloca.h ${xm_file}"
4428 xm_defines
="USG POSIX"
4430 tmake_file
="i386/t-crtpic i386/t-udk"
4432 extra_parts
="crtbegin.o crtend.o"
4433 install_headers_dir
=install-headers-cpio
4435 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4437 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4438 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4439 if test x
$stabs = xyes
4441 tm_file
=i386
/osf1elfgdb.h
4443 tm_file
=i386
/osf1elf.h
4445 tmake_file
=i386
/t-osf1elf
4446 xmake_file
=i386
/x-osf1elf
4447 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4449 i
[34567]86-*-sysv*) # Intel 80386's running system V
4450 xm_defines
="USG SVR3"
4451 xmake_file
=i386
/x-sysv3
4452 if test x
$gas = xyes
4454 if test x
$stabs = xyes
4456 tm_file
=i386
/svr3dbx.h
4457 tmake_file
=i386
/t-svr3dbx
4458 extra_parts
="svr3.ifile svr3z.rfile"
4460 tm_file
=i386
/svr3gas.h
4461 extra_parts
="crtbegin.o crtend.o"
4462 tmake_file
=i386
/t-crtstuff
4465 tm_file
=i386
/sysv3.h
4466 extra_parts
="crtbegin.o crtend.o"
4467 tmake_file
=i386
/t-crtstuff
4470 i386-
*-vsta) # Intel 80386's running VSTa kernel
4471 xm_file
="${xm_file} i386/xm-vsta.h"
4473 tmake_file
=i386
/t-vsta
4474 xmake_file
=i386
/x-vsta
4477 xm_file
="${xm_file} i386/xm-cygwin.h"
4478 tmake_file
=i386
/t-cygwin
4479 tm_file
=i386
/win32.h
4480 xmake_file
=i386
/x-cygwin
4482 if test x
$enable_threads = xyes
; then
4487 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4488 xm_file
="${xm_file} i386/xm-cygwin.h"
4489 tmake_file
=i386
/t-cygwin
4490 tm_file
=i386
/cygwin.h
4491 xmake_file
=i386
/x-cygwin
4493 if test x
$enable_threads = xyes
; then
4498 i
[34567]86-*-mingw32*)
4499 tm_file
=i386
/mingw32.h
4500 xm_file
="${xm_file} i386/xm-mingw32.h"
4501 tmake_file
="i386/t-cygwin i386/t-mingw32"
4503 xmake_file
=i386
/x-cygwin
4504 if test x
$enable_threads = xyes
; then
4511 *minwg32crt
* |
*mingw32
*)
4512 tm_file
="${tm_file} i386/crtdll.h"
4518 xm_file
="${xm_file} i386/xm-uwin.h"
4519 xm_defines
="USG NO_STAB_H"
4520 tmake_file
="i386/t-cygwin i386/t-uwin"
4522 xmake_file
=i386
/x-cygwin
4523 if test x
$enable_threads = xyes
; then
4528 i
[34567]86-*-interix*)
4529 tm_file
="i386/i386-interix.h interix.h"
4530 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4532 tmake_file
="i386/t-interix"
4533 extra_objs
=interix.o
4534 xmake_file
=x-interix
4535 if test x
$enable_threads = xyes
; then
4538 if test x
$stabs = xyes
; then
4539 tm_file
="${tm_file} dbxcoff.h"
4542 i
[34567]86-*-winnt3*)
4543 tm_file
=i386
/win-nt.h
4544 out_file
=i386
/i386.c
4545 xm_file
="xm-winnt.h ${xm_file}"
4546 xmake_file
=winnt
/x-winnt
4547 tmake_file
=i386
/t-winnt
4548 extra_host_objs
="winnt.o oldnames.o"
4549 extra_gcc_objs
="spawnv.o oldnames.o"
4550 if test x
$gnu_ld != xyes
4552 extra_programs
=ld.exe
4554 if test x
$enable_threads = xyes
; then
4558 i
[34567]86-dg-dgux*)
4559 xm_file
="xm-alloca.h ${xm_file}"
4560 xm_defines
="USG POSIX"
4561 out_file
=i386
/dgux.c
4563 tmake_file
=i386
/t-dgux
4564 xmake_file
=i386
/x-dgux
4565 install_headers_dir
=install-headers-cpio
4567 i860-alliant-
*) # Alliant FX/2800
4568 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4569 xm_file
="${xm_file}"
4570 xmake_file
=i860
/x-fx2800
4571 tmake_file
=i860
/t-fx2800
4572 extra_parts
="crtbegin.o crtend.o"
4575 tm_file
="${tm_file} i860/bsd.h"
4576 if test x
$gas = xyes
4578 tm_file
="${tm_file} i860/bsd-gas.h"
4583 tm_file
="${tm_file} i860/mach.h"
4584 tmake_file
=t-libc-ok
4586 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4587 tm_file
="${tm_file} svr3.h i860/paragon.h"
4588 xm_defines
="USG SVR3"
4592 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4593 xm_defines
="USG SVR3"
4594 xmake_file
=i860
/x-sysv3
4595 extra_parts
="crtbegin.o crtend.o"
4598 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4599 xm_defines
="USG SVR3"
4600 xmake_file
=i860
/x-sysv4
4602 extra_parts
="crtbegin.o crtend.o"
4604 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4605 tm_file
="${tm_file} i960/vx960.h"
4606 tmake_file
=i960
/t-vxworks960
4608 thread_file
='vxworks'
4610 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4611 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4612 tmake_file
=i960
/t-vxworks960
4614 thread_file
='vxworks'
4617 tm_file
="${tm_file} i960/vx960.h"
4618 tmake_file
=i960
/t-vxworks960
4620 thread_file
='vxworks'
4623 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4624 tmake_file
=i960
/t-960bare
4628 tmake_file
="i960/t-960bare t-rtems"
4629 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4632 i960-
*-*) # Default i960 environment.
4637 tmake_file
="ia64/t-ia64"
4638 target_cpu_default
="0"
4639 if test x
$gas = xyes
4641 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4643 if test x
$gnu_ld = xyes
4645 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4649 tm_file
=ia64
/linux.h
4650 tmake_file
="t-linux ia64/t-ia64"
4651 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4652 if test x
$enable_threads = xyes
; then
4657 extra_parts
="crtinit.o crtfini.o"
4659 m68000-convergent-sysv
*)
4661 xm_file
="m68k/xm-3b1.h ${xm_file}"
4664 extra_headers
=math-68881.h
4666 m68000-hp-bsd
*) # HP 9000/200 running BSD
4667 tm_file
=m68k
/hp2bsd.h
4668 xmake_file
=m68k
/x-hp2bsd
4670 extra_headers
=math-68881.h
4672 m68000-hp-hpux
*) # HP 9000 series 300
4673 xm_file
="xm-alloca.h ${xm_file}"
4675 if test x
$gas = xyes
4677 xmake_file
=m68k
/x-hp320g
4678 tm_file
=m68k
/hp310g.h
4680 xmake_file
=m68k
/x-hp320
4681 tm_file
=m68k
/hp310.h
4683 install_headers_dir
=install-headers-cpio
4685 extra_headers
=math-68881.h
4690 extra_headers
=math-68881.h
4693 tm_file
=m68k
/sun2o4.h
4695 extra_headers
=math-68881.h
4698 xm_file
="m68k/xm-3b1.h ${xm_file}"
4700 if test x
$gas = xyes
4707 extra_headers
=math-68881.h
4709 m68k-apple-aux
*) # Apple Macintosh running A/UX
4710 xm_defines
="USG AUX"
4711 tmake_file
=m68k
/t-aux
4712 install_headers_dir
=install-headers-cpio
4713 extra_headers
=math-68881.h
4714 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4716 if test "$gnu_ld" = yes
4718 tm_file
="${tm_file} m68k/auxgld.h"
4720 tm_file
="${tm_file} m68k/auxld.h"
4722 if test "$gas" = yes
4724 tm_file
="${tm_file} m68k/auxgas.h"
4726 tm_file
="${tm_file} m68k/auxas.h"
4728 tm_file
="${tm_file} m68k/a-ux.h"
4732 tm_file
=m68k
/apollo68.h
4733 xmake_file
=m68k
/x-apollo68
4735 extra_headers
=math-68881.h
4738 m68k-altos-sysv
*) # Altos 3068
4739 if test x
$gas = xyes
4741 tm_file
=m68k
/altos3068.h
4744 echo "The Altos is supported only with the GNU assembler" 1>&2
4747 extra_headers
=math-68881.h
4749 m68k-bull-sysv
*) # Bull DPX/2
4750 if test x
$gas = xyes
4752 if test x
$stabs = xyes
4754 tm_file
=m68k
/dpx2cdbx.h
4756 tm_file
=m68k
/dpx2g.h
4761 xm_file
="xm-alloca.h ${xm_file}"
4763 xmake_file
=m68k
/x-dpx2
4765 extra_headers
=math-68881.h
4767 m68k-atari-sysv4
*) # Atari variant of V.4.
4768 tm_file
=m68k
/atari.h
4769 xm_file
="xm-alloca.h ${xm_file}"
4770 xm_defines
="USG FULL_PROTOTYPES"
4772 extra_parts
="crtbegin.o crtend.o"
4773 extra_headers
=math-68881.h
4776 m68k-motorola-sysv
*)
4777 tm_file
=m68k
/mot3300.h
4778 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4779 if test x
$gas = xyes
4781 xmake_file
=m68k
/x-mot3300-gas
4782 if test x
$gnu_ld = xyes
4784 tmake_file
=m68k
/t-mot3300-gald
4786 tmake_file
=m68k
/t-mot3300-gas
4790 xmake_file
=m68k
/x-mot3300
4791 if test x
$gnu_ld = xyes
4793 tmake_file
=m68k
/t-mot3300-gld
4795 tmake_file
=m68k
/t-mot3300
4799 gdb_needs_out_file_path
=yes
4800 extra_parts
="crt0.o mcrt0.o"
4801 extra_headers
=math-68881.h
4804 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4805 tm_file
=m68k
/tower-as.h
4806 xm_defines
="USG SVR3"
4807 xmake_file
=m68k
/x-tower
4808 extra_parts
="crtbegin.o crtend.o"
4809 extra_headers
=math-68881.h
4812 tm_file
=m68k
/plexus.h
4813 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4816 extra_headers
=math-68881.h
4820 xm_file
="xm-alloca.h ${xm_file}"
4822 extra_headers
=math-68881.h
4825 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4826 xm_defines
="USG unos"
4827 xmake_file
=m68k
/x-crds
4830 extra_headers
=math-68881.h
4832 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4834 xm_file
="xm-alloca.h ${xm_file}"
4835 xm_defines
="USG FULL_PROTOTYPES"
4836 xmake_file
=m68k
/x-amix
4838 extra_parts
="crtbegin.o crtend.o"
4839 extra_headers
=math-68881.h
4843 tm_file
=m68k
/ccur-GAS.h
4844 xmake_file
=m68k
/x-ccur
4845 extra_headers
=math-68881.h
4849 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4850 tm_file
=m68k
/hp3bsd44.h
4851 xmake_file
=m68k
/x-hp3bsd44
4853 extra_headers
=math-68881.h
4856 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4857 tm_file
=m68k
/hp3bsd.h
4859 extra_headers
=math-68881.h
4863 if test x
$with_fp = xno
4865 tm_file
=m68k
/isi-nfp.h
4871 extra_headers
=math-68881.h
4873 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4874 xm_file
="xm-alloca.h ${xm_file}"
4876 if test x
$gas = xyes
4878 xmake_file
=m68k
/x-hp320g
4879 tm_file
=m68k
/hp320g.h
4881 xmake_file
=m68k
/x-hp320
4882 tm_file
=m68k
/hpux7.h
4884 install_headers_dir
=install-headers-cpio
4886 extra_headers
=math-68881.h
4889 m68k-hp-hpux
*) # HP 9000 series 300
4890 xm_file
="xm-alloca.h ${xm_file}"
4892 if test x
$gas = xyes
4894 xmake_file
=m68k
/x-hp320g
4895 tm_file
=m68k
/hp320g.h
4897 xmake_file
=m68k
/x-hp320
4898 tm_file
=m68k
/hp320.h
4900 install_headers_dir
=install-headers-cpio
4902 extra_headers
=math-68881.h
4906 tm_file
=m68k
/sun3mach.h
4908 extra_headers
=math-68881.h
4912 if test x
$gas = xyes
4914 tm_file
=m68k
/news3gas.h
4916 tm_file
=m68k
/news3.h
4919 extra_headers
=math-68881.h
4922 m68k-sony-bsd
* | m68k-sony-newsos
*)
4923 if test x
$gas = xyes
4925 tm_file
=m68k
/newsgas.h
4930 extra_headers
=math-68881.h
4933 m68k-next-nextstep2
*)
4934 tm_file
=m68k
/next21.h
4935 xm_file
="m68k/xm-next.h ${xm_file}"
4936 tmake_file
=m68k
/t-next
4937 xmake_file
=m68k
/x-next
4938 extra_objs
=nextstep.o
4939 extra_headers
=math-68881.h
4943 m68k-next-nextstep
[34]*)
4945 xm_file
="m68k/xm-next.h ${xm_file}"
4946 tmake_file
=m68k
/t-next
4947 xmake_file
=m68k
/x-next
4948 extra_objs
=nextstep.o
4949 extra_parts
="crtbegin.o crtend.o"
4950 extra_headers
=math-68881.h
4952 if test x
$enable_threads = xyes
; then
4957 if test x
$with_fp = xno
4959 tm_file
=m68k
/sun3n3.h
4961 tm_file
=m68k
/sun3o3.h
4965 extra_headers
=math-68881.h
4967 m68k-sun-sunos
*) # For SunOS 4 (the default).
4968 if test x
$with_fp = xno
4970 tm_file
=m68k
/sun3n.h
4976 extra_headers
=math-68881.h
4979 tm_file
=m68k
/vxm68k.h
4980 tmake_file
=m68k
/t-vxworks68
4981 extra_headers
=math-68881.h
4982 thread_file
='vxworks'
4986 tmake_file
=m68k
/t-m68kbare
4987 tm_file
="m68k/m68k-aout.h libgloss.h"
4988 extra_headers
=math-68881.h
4992 tmake_file
=m68k
/t-m68kbare
4993 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4994 extra_headers
=math-68881.h
4997 m68020-
*-elf* | m68k-
*-elf*)
4998 tm_file
="m68k/m68020-elf.h"
4999 xm_file
=m68k
/xm-m68kv.h
5000 tmake_file
=m68k
/t-m68kelf
5001 header_files
=math-68881.h
5004 if test x
$gas = xyes
5008 tm_file
=m68k
/lynx-ng.h
5010 xm_file
=m68k
/xm-lynx.h
5012 tmake_file
=m68k
/t-lynx
5013 extra_headers
=math-68881.h
5017 tm_file
=m68k
/netbsd.h
5024 # we need collect2 until our bug is fixed...
5027 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5028 xm_file
="xm-alloca.h ${xm_file}"
5030 xmake_file
=m68k
/x-m68kv
5031 extra_parts
="crtbegin.o crtend.o"
5032 extra_headers
=math-68881.h
5035 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5036 tm_file
=m68k
/m68kv4.h
5037 xm_file
="xm-alloca.h ${xm_file}"
5040 extra_parts
="crtbegin.o crtend.o"
5041 extra_headers
=math-68881.h
5044 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5047 tm_file
=m68k
/linux-aout.h
5048 tmake_file
="t-linux-aout m68k/t-linux-aout"
5049 extra_headers
=math-68881.h
5053 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5054 # with ELF format using the
5055 # GNU/Linux C library 5
5057 tm_file
=m68k
/linux.h
5058 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5059 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5060 extra_headers
=math-68881.h
5064 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5065 # with ELF format using glibc 2
5066 # aka the GNU/Linux C library 6.
5068 tm_file
=m68k
/linux.h
5069 tmake_file
="t-linux m68k/t-linux"
5070 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5071 extra_headers
=math-68881.h
5074 if test x
$enable_threads = xyes
; then
5079 tmake_file
=m68k
/t-m68kbare
5080 tm_file
=m68k
/m68k-psos.h
5081 extra_headers
=math-68881.h
5085 tmake_file
="m68k/t-m68kbare t-rtems"
5086 tm_file
=m68k
/rtems.h
5087 extra_headers
=math-68881.h
5090 m68k-
*-rtemself*|m68k-
*-rtems*)
5091 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5092 tm_file
=m68k
/rtemself.h
5093 extra_headers
=math-68881.h
5099 tm_file
=m88k
/dguxbcs.h
5100 tmake_file
=m88k
/t-dguxbcs
5104 tmake_file
=m88k
/t-dgux
5107 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5108 xmake_file
=m88k
/x-dgux
5109 if test x
$gas = xyes
5111 tmake_file
=m88k
/t-dgux-gas
5114 m88k-dolphin-sysv3
*)
5115 tm_file
=m88k
/dolph.h
5116 extra_parts
="crtbegin.o crtend.o"
5117 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5118 xmake_file
=m88k
/x-dolph
5119 if test x
$gas = xyes
5121 tmake_file
=m88k
/t-m88k-gas
5124 m88k-tektronix-sysv3
)
5125 tm_file
=m88k
/tekXD88.h
5126 extra_parts
="crtbegin.o crtend.o"
5127 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5128 xmake_file
=m88k
/x-tekXD88
5129 if test x
$gas = xyes
5131 tmake_file
=m88k
/t-m88k-gas
5135 tm_file
=m88k
/m88k-aout.h
5138 tm_file
=m88k
/m88k-coff.h
5139 tmake_file
=m88k
/t-bug
5143 extra_parts
="crtbegin.o crtend.o"
5144 if test x
$gas = xyes
5146 tmake_file
=m88k
/t-luna-gas
5148 tmake_file
=m88k
/t-luna
5152 tmake_file
="${tmake_file} m88k/t-luna-gas"
5155 tm_file
=m88k
/sysv3.h
5156 extra_parts
="crtbegin.o crtend.o"
5157 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5158 xmake_file
=m88k
/x-sysv3
5159 if test x
$gas = xyes
5161 tmake_file
=m88k
/t-m88k-gas
5165 tm_file
=m88k
/sysv4.h
5166 extra_parts
="crtbegin.o crtend.o"
5167 xmake_file
=m88k
/x-sysv4
5168 tmake_file
=m88k
/t-sysv4
5171 tm_file
=mcore
/mcore-elf.h
5172 tmake_file
=mcore
/t-mcore
5175 tm_file
=mcore
/mcore-pe.h
5176 tmake_file
=mcore
/t-mcore-pe
5178 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5179 if test "x$gnu_ld" = xyes
5181 tm_file
="mips/iris6.h mips/iris6gld.h"
5183 tm_file
=mips
/iris6.h
5185 tmake_file
=mips
/t-iris6
5186 xm_file
=mips
/xm-iris6.h
5187 xmake_file
=mips
/x-iris6
5188 # if test x$enable_threads = xyes; then
5189 # thread_file='irix'
5193 tm_file
="mips/elf.h mips/vxworks.h"
5194 tmake_file
=mips
/t-ecoff
5197 extra_parts
="crtbegin.o crtend.o"
5198 thread_file
='vxworks'
5200 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5201 tm_file
="mips/iris6.h mips/cross64.h"
5203 xm_file
="mips/xm-iris5.h"
5204 xmake_file
=mips
/x-iris
5205 tmake_file
=mips
/t-cross64
5206 # See comment in mips/iris[56].h files.
5208 # if test x$enable_threads = xyes; then
5209 # thread_file='irix'
5213 if test x
$gas = xyes
5215 if test x
$stabs = xyes
5217 tm_file
=mips
/iris5gdb.h
5219 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5222 tm_file
=mips
/sni-svr4.h
5225 xmake_file
=mips
/x-sni-svr4
5226 tmake_file
=mips
/t-mips-gas
5227 if test x
$gnu_ld != xyes
5232 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5233 if test x
$gas = xyes
5235 tm_file
="mips/iris5.h mips/iris5gas.h"
5236 if test x
$stabs = xyes
5238 tm_file
="${tm_file} dbx.h"
5241 tm_file
=mips
/iris5.h
5244 xm_file
="mips/xm-iris5.h"
5245 xmake_file
=mips
/x-iris
5246 # mips-tfile doesn't work yet
5247 tmake_file
=mips
/t-mips-gas
5248 # See comment in mips/iris5.h file.
5250 # if test x$enable_threads = xyes; then
5251 # thread_file='irix'
5254 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5255 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5256 if test x
$stabs = xyes
; then
5257 tm_file
="${tm_file} dbx.h"
5260 xmake_file
=mips
/x-iris
5261 if test x
$gas = xyes
5263 tmake_file
=mips
/t-mips-gas
5265 extra_passes
="mips-tfile mips-tdump"
5267 if test x
$gnu_ld != xyes
5271 # if test x$enable_threads = xyes; then
5272 # thread_file='irix'
5275 mips-sgi-irix4
*) # Mostly like a MIPS.
5276 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5277 if test x
$stabs = xyes
; then
5278 tm_file
="${tm_file} dbx.h"
5281 xmake_file
=mips
/x-iris
5282 if test x
$gas = xyes
5284 tmake_file
=mips
/t-mips-gas
5286 extra_passes
="mips-tfile mips-tdump"
5288 if test x
$gnu_ld != xyes
5292 # if test x$enable_threads = xyes; then
5293 # thread_file='irix'
5296 mips-sgi-
*) # Mostly like a MIPS.
5297 tm_file
="mips/iris3.h ${tm_file}"
5298 if test x
$stabs = xyes
; then
5299 tm_file
="${tm_file} dbx.h"
5302 xmake_file
=mips
/x-iris3
5303 if test x
$gas = xyes
5305 tmake_file
=mips
/t-mips-gas
5307 extra_passes
="mips-tfile mips-tdump"
5309 if test x
$gnu_ld != xyes
5314 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5315 tm_file
="mips/osfrose.h ${tm_file}"
5316 xmake_file
=mips
/x-osfrose
5317 tmake_file
=mips
/t-osfrose
5318 extra_objs
=halfpic.o
5321 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5322 tm_file
=mips
/dec-osf1.h
5323 if test x
$stabs = xyes
; then
5324 tm_file
="${tm_file} dbx.h"
5326 xmake_file
=mips
/x-dec-osf1
5327 if test x
$gas = xyes
5329 tmake_file
=mips
/t-mips-gas
5331 tmake_file
=mips
/t-ultrix
5332 extra_passes
="mips-tfile mips-tdump"
5334 if test x
$gnu_ld != xyes
5339 mips-dec-bsd
*) # Decstation running 4.4 BSD
5340 tm_file
=mips
/dec-bsd.h
5341 if test x
$gas = xyes
5343 tmake_file
=mips
/t-mips-gas
5345 tmake_file
=mips
/t-ultrix
5346 extra_passes
="mips-tfile mips-tdump"
5348 if test x
$gnu_ld != xyes
5353 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5354 tm_file
=mips
/netbsd.h
5355 # On NetBSD, the headers are already okay, except for math.h.
5358 mips
*-*-linux*) # Linux MIPS, either endian.
5361 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5362 *) tm_file
="mips/elf.h mips/linux.h" ;;
5364 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5367 if test x
$enable_threads = xyes
; then
5371 mips
*el-
*-openbsd*) # mips little endian
5372 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5374 mips
*-*-openbsd*) # mips big endian
5375 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5376 tm_file
="mips/openbsd-be.h ${tm_file}"
5378 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5379 tm_file
="mips/news4.h ${tm_file}"
5380 if test x
$stabs = xyes
; then
5381 tm_file
="${tm_file} dbx.h"
5383 if test x
$gas = xyes
5385 tmake_file
=mips
/t-mips-gas
5387 extra_passes
="mips-tfile mips-tdump"
5389 if test x
$gnu_ld != xyes
5393 xmake_file
=mips
/x-sony
5395 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5396 # That is based on svr4.
5397 # t-svr4 is not right because this system doesn't use ELF.
5398 tm_file
="mips/news5.h ${tm_file}"
5399 if test x
$stabs = xyes
; then
5400 tm_file
="${tm_file} dbx.h"
5403 if test x
$gas = xyes
5405 tmake_file
=mips
/t-mips-gas
5407 extra_passes
="mips-tfile mips-tdump"
5409 if test x
$gnu_ld != xyes
5414 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5415 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5416 if test x
$stabs = xyes
; then
5417 tm_file
="${tm_file} dbx.h"
5420 xmake_file
=mips
/x-sysv
5421 if test x
$gas = xyes
5423 tmake_file
=mips
/t-mips-gas
5424 extra_parts
="crtbegin.o crtend.o"
5426 tmake_file
=mips
/t-mips
5427 extra_passes
="mips-tfile mips-tdump"
5429 if test x
$gnu_ld != xyes
5434 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5435 tm_file
="mips/ultrix.h ${tm_file}"
5436 if test x
$stabs = xyes
; then
5437 tm_file
="${tm_file} dbx.h"
5439 xmake_file
=mips
/x-ultrix
5440 if test x
$gas = xyes
5442 tmake_file
=mips
/t-mips-gas
5444 tmake_file
=mips
/t-ultrix
5445 extra_passes
="mips-tfile mips-tdump"
5447 if test x
$gnu_ld != xyes
5452 mips-
*-riscos[56789]bsd
*)
5453 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5454 if test x
$stabs = xyes
; then
5455 tm_file
="${tm_file} dbx.h"
5457 if test x
$gas = xyes
5459 tmake_file
=mips
/t-bsd-gas
5461 tmake_file
=mips
/t-bsd
5462 extra_passes
="mips-tfile mips-tdump"
5464 if test x
$gnu_ld != xyes
5469 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5470 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5471 if test x
$stabs = xyes
; then
5472 tm_file
="${tm_file} dbx.h"
5474 if test x
$gas = xyes
5476 tmake_file
=mips
/t-bsd-gas
5478 tmake_file
=mips
/t-bsd
5479 extra_passes
="mips-tfile mips-tdump"
5481 if test x
$gnu_ld != xyes
5486 mips-
*-riscos[56789]sysv4
*)
5487 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5488 if test x
$stabs = xyes
; then
5489 tm_file
="${tm_file} dbx.h"
5491 xmake_file
=mips
/x-sysv
5492 if test x
$gas = xyes
5494 tmake_file
=mips
/t-svr4-gas
5496 tmake_file
=mips
/t-svr4
5497 extra_passes
="mips-tfile mips-tdump"
5499 if test x
$gnu_ld != xyes
5504 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5505 tm_file
="mips/svr4-4.h ${tm_file}"
5506 if test x
$stabs = xyes
; then
5507 tm_file
="${tm_file} dbx.h"
5510 xmake_file
=mips
/x-sysv
5511 if test x
$gas = xyes
5513 tmake_file
=mips
/t-svr4-gas
5515 tmake_file
=mips
/t-svr4
5516 extra_passes
="mips-tfile mips-tdump"
5518 if test x
$gnu_ld != xyes
5523 mips-
*-riscos[56789]sysv
*)
5524 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5525 if test x
$stabs = xyes
; then
5526 tm_file
="${tm_file} dbx.h"
5529 xmake_file
=mips
/x-sysv
5530 if test x
$gas = xyes
5532 tmake_file
=mips
/t-svr3-gas
5534 tmake_file
=mips
/t-svr3
5535 extra_passes
="mips-tfile mips-tdump"
5537 if test x
$gnu_ld != xyes
5542 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5543 tm_file
="mips/svr3-4.h ${tm_file}"
5544 if test x
$stabs = xyes
; then
5545 tm_file
="${tm_file} dbx.h"
5548 xmake_file
=mips
/x-sysv
5549 if test x
$gas = xyes
5551 tmake_file
=mips
/t-svr3-gas
5553 tmake_file
=mips
/t-svr3
5554 extra_passes
="mips-tfile mips-tdump"
5556 if test x
$gnu_ld != xyes
5561 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5562 tm_file
=mips
/mips-5.h
5563 if test x
$stabs = xyes
; then
5564 tm_file
="${tm_file} dbx.h"
5566 if test x
$gas = xyes
5568 tmake_file
=mips
/t-mips-gas
5570 extra_passes
="mips-tfile mips-tdump"
5572 if test x
$gnu_ld != xyes
5580 tm_file
=mips
/ecoffl.h
5581 if test x
$stabs = xyes
; then
5582 tm_file
="${tm_file} dbx.h"
5584 tmake_file
=mips
/t-ecoff
5587 tm_file
="gofast.h mips/ecoff.h"
5588 if test x
$stabs = xyes
; then
5589 tm_file
="${tm_file} dbx.h"
5591 tmake_file
=mips
/t-ecoff
5594 tm_file
="mips/elfl.h"
5595 tmake_file
=mips
/t-elf
5598 tm_file
="mips/elf.h"
5599 tmake_file
=mips
/t-elf
5602 tm_file
="mips/elfl64.h"
5603 tmake_file
=mips
/t-elf
5605 mips64orionel-
*-elf*)
5606 tm_file
="mips/elforion.h mips/elfl64.h"
5607 tmake_file
=mips
/t-elf
5610 tm_file
="mips/elf64.h"
5611 tmake_file
=mips
/t-elf
5614 tm_file
="mips/elforion.h mips/elf64.h"
5615 tmake_file
=mips
/t-elf
5617 mips64orion-
*-rtems*)
5618 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5619 tmake_file
="mips/t-elf t-rtems"
5622 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5623 tmake_file
=mips
/t-r3900
5626 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5627 tmake_file
=mips
/t-r3900
5629 mips-
*-*) # Default MIPS RISC-OS 4.0.
5630 if test x
$stabs = xyes
; then
5631 tm_file
="${tm_file} dbx.h"
5633 if test x
$gas = xyes
5635 tmake_file
=mips
/t-mips-gas
5637 extra_passes
="mips-tfile mips-tdump"
5639 if test x
$gnu_ld != xyes
5647 tm_file
="mn10200/mn10200.h"
5648 if test x
$stabs = xyes
5650 tm_file
="${tm_file} dbx.h"
5656 tm_file
="mn10300/mn10300.h"
5657 if test x
$stabs = xyes
5659 tm_file
="${tm_file} dbx.h"
5664 tm_file
=ns32k
/encore.h
5668 tm_file
=ns32k
/sequent.h
5672 tm_file
=ns32k
/tek6100.h
5676 tm_file
=ns32k
/tek6200.h
5679 # This has not been updated to GCC 2.
5682 # xmake_file=ns32k/x-genix
5683 # tm_file=ns32k/genix.h
5687 tm_file
=ns32k
/merlin.h
5691 tm_file
=ns32k
/pc532-mach.h
5695 tm_file
=ns32k
/pc532-min.h
5696 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5701 tm_file
=ns32k
/netbsd.h
5702 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5703 # On NetBSD, the headers are already okay, except for math.h.
5708 tm_file
="${tm_file} pdp11/2bsd.h"
5717 # This has not been updated to GCC 2.
5720 # xmake_file=pyr/x-pyr
5725 tm_file
="svr4.h pj/linux.h ${tm_file}"
5730 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5737 xmake_file
=romp
/x-mach
5744 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5748 tm_file
=rs6000
/beos.h
5749 xm_file
=rs6000
/xm-beos.h
5750 tmake_file
=rs6000
/t-beos
5751 xmake_file
=rs6000
/x-beos
5754 tm_file
=rs6000
/sysv4.h
5755 xm_file
="rs6000/xm-sysv4.h"
5756 xm_defines
="USG POSIX"
5757 extra_headers
=ppc-asm.h
5758 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5759 xmake_file
=rs6000
/x-sysv4
5762 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5763 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5764 extra_headers
=ppc-asm.h
5767 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5768 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5769 extra_headers
=ppc-asm.h
5772 tm_file
="rs6000/sysv4.h"
5773 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5774 extra_headers
=ppc-asm.h
5777 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5778 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5779 extra_headers
=ppc-asm.h
5782 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5783 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5784 extra_headers
=ppc-asm.h
5786 powerpc-
*-linux-gnulibc1)
5787 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5788 xm_file
=rs6000
/xm-sysv4.h
5789 out_file
=rs6000
/rs6000.c
5790 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5792 extra_headers
=ppc-asm.h
5793 if test x
$enable_threads = xyes
; then
5797 powerpc-
*-linux-gnu*)
5798 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5799 xm_file
="rs6000/xm-sysv4.h"
5800 xm_defines
="USG ${xm_defines}"
5801 out_file
=rs6000
/rs6000.c
5802 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5804 extra_headers
=ppc-asm.h
5805 if test x
$enable_threads = xyes
; then
5809 powerpc-wrs-vxworks
*)
5811 xm_file
="rs6000/xm-sysv4.h"
5812 xm_defines
="USG POSIX"
5813 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5814 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5815 extra_headers
=ppc-asm.h
5816 thread_file
='vxworks'
5818 powerpcle-wrs-vxworks
*)
5820 xm_file
="rs6000/xm-sysv4.h"
5821 xm_defines
="USG POSIX"
5822 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5823 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5824 extra_headers
=ppc-asm.h
5825 thread_file
='vxworks'
5828 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5829 xm_file
="rs6000/xm-sysv4.h"
5830 xm_defines
="USG POSIX"
5831 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5832 xmake_file
=rs6000
/x-sysv4
5833 extra_headers
=ppc-asm.h
5836 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5837 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5838 extra_headers
=ppc-asm.h
5840 powerpcle-
*-eabisim*)
5841 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5842 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5843 extra_headers
=ppc-asm.h
5846 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5847 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5848 extra_headers
=ppc-asm.h
5850 powerpcle-
*-solaris2*)
5851 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5852 xm_file
="rs6000/xm-sysv4.h"
5853 xm_defines
="USG POSIX"
5854 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5855 xmake_file
=rs6000
/x-sysv4
5856 extra_headers
=ppc-asm.h
5858 rs6000-ibm-aix3.
[01]*)
5859 tm_file
=rs6000
/aix31.h
5860 xmake_file
=rs6000
/x-aix31
5864 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5865 tm_file
=rs6000
/aix3newas.h
5866 if test x
$host != x
$target
5868 tmake_file
=rs6000
/t-xnewas
5870 tmake_file
=rs6000
/t-newas
5875 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5876 tm_file
=rs6000
/aix41.h
5877 if test x
$host != x
$target
5879 tmake_file
=rs6000
/t-xnewas
5881 tmake_file
=rs6000
/t-newas
5883 if test "$gnu_ld" = yes
5885 xmake_file
=rs6000
/x-aix41-gld
5887 tmake_file
="rs6000/t-newas rs6000/t-aix41"
5889 xmake_file
=rs6000
/x-aix41
5893 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5894 tm_file
=rs6000
/aix43.h
5895 tmake_file
=rs6000
/t-aix43
5896 xmake_file
=rs6000
/x-aix41
5900 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5901 tm_file
=rs6000
/aix43.h
5902 tmake_file
=rs6000
/t-aix43
5903 xmake_file
=rs6000
/x-aix41
5916 tm_file
=rs6000
/mach.h
5917 xm_file
="${xm_file} rs6000/xm-mach.h"
5918 xmake_file
=rs6000
/x-mach
5922 tm_file
=rs6000
/lynx.h
5923 xm_file
=rs6000
/xm-lynx.h
5924 tmake_file
=rs6000
/t-rs6000
5925 xmake_file
=rs6000
/x-lynx
5933 tmake_file
="sh/t-sh t-rtems"
5934 tm_file
=sh
/rtemself.h
5938 tmake_file
="sh/t-sh t-rtems"
5947 xm_file
="xm-alloca.h ${xm_file}"
5950 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5951 tm_file
=sparc
/vxsparc.h
5952 tmake_file
=sparc
/t-vxsparc
5954 thread_file
='vxworks'
5957 tmake_file
=sparc
/t-sparcbare
5958 tm_file
="sparc/aout.h libgloss.h"
5961 tm_file
=sparc
/netbsd.h
5966 # we need collect2 until our bug is fixed...
5974 tmake_file
=sparc
/t-elf
5975 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5979 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5980 xm_file
="${xm_file} sparc/xm-linux.h"
5981 tm_file
=sparc
/linux-aout.h
5985 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5986 xm_file
="${xm_file} sparc/xm-linux.h"
5988 tm_file
=sparc
/linux.h
5989 tmake_file
="t-linux t-linux-gnulibc1"
5990 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5994 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5995 xm_file
="${xm_file} sparc/xm-linux.h"
5997 tm_file
=sparc
/linux.h
5998 tmake_file
="t-linux"
5999 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6001 if test x
$enable_threads = xyes
; then
6007 if test x
$gas = xyes
6009 tm_file
=sparc
/lynx.h
6011 tm_file
=sparc
/lynx-ng.h
6013 xm_file
=sparc
/xm-lynx.h
6014 tmake_file
=sparc
/t-sunos41
6018 tmake_file
="sparc/t-sparcbare t-rtems"
6019 tm_file
=sparc
/rtems.h
6021 sparc-
*-rtems*|sparc-
*-rtemself*)
6022 tm_file
="sparc/rtemself.h"
6023 tmake_file
="sparc/t-elf t-rtems"
6024 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6028 sparcv9-
*-solaris2*)
6029 if test x
$gnu_ld = xyes
6031 tm_file
=sparc
/sol2-64.h
6033 tm_file
=sparc
/sol2-sld-64.h
6035 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6036 xm_defines
="USG POSIX"
6037 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6038 xmake_file
=sparc
/x-sysv4
6039 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6041 if test x
${enable_threads} = x
; then
6042 enable_threads
=$have_pthread_h
6043 if test x
${enable_threads} = x
; then
6044 enable_threads
=$have_thread_h
6047 if test x
${enable_threads} = xyes
; then
6048 if test x
${have_pthread_h} = xyes
; then
6051 thread_file
='solaris'
6055 sparc-hal-solaris2
*)
6056 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6057 xm_defines
="USG POSIX"
6058 tm_file
="sparc/sol2.h sparc/hal.h"
6059 tmake_file
="sparc/t-halos sparc/t-sol2"
6060 xmake_file
=sparc
/x-sysv4
6061 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6070 thread_file
='solaris'
6073 if test x
$gnu_ld = xyes
6075 tm_file
=sparc
/sol2.h
6077 tm_file
=sparc
/sol2-sld.h
6079 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6080 xm_defines
="USG POSIX"
6081 tmake_file
=sparc
/t-sol2
6082 xmake_file
=sparc
/x-sysv4
6083 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6085 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6087 if test x
$gnu_ld = xyes
6089 tm_file
=sparc
/sol2-64.h
6091 tm_file
=sparc
/sol2-sld-64.h
6093 tmake_file
="$tmake_file sparc/t-sol2-64"
6104 if test x
${enable_threads} = x
; then
6105 enable_threads
=$have_pthread_h
6106 if test x
${enable_threads} = x
; then
6107 enable_threads
=$have_thread_h
6110 if test x
${enable_threads} = xyes
; then
6111 if test x
${have_pthread_h} = xyes
; then
6114 thread_file
='solaris'
6119 tm_file
=sparc
/sunos4.h
6120 tmake_file
=sparc
/t-sunos40
6124 tm_file
=sparc
/sunos4.h
6125 tmake_file
=sparc
/t-sunos41
6127 if test x
$gas = xyes
; then
6128 tm_file
="${tm_file} sparc/sun4gas.h"
6132 tm_file
=sparc
/sun4o3.h
6136 tm_file
=sparc
/sysv4.h
6137 xm_file
="sparc/xm-sysv4.h"
6138 xm_defines
="USG POSIX"
6140 xmake_file
=sparc
/x-sysv4
6141 extra_parts
="crtbegin.o crtend.o"
6144 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6145 xm_defines
="USG POSIX"
6146 tm_file
=sparc
/vxsim.h
6147 tmake_file
=sparc
/t-vxsparc
6148 xmake_file
=sparc
/x-sysv4
6151 tm_file
="sparc/splet.h libgloss.h"
6152 tmake_file
=sparc
/t-splet
6155 tm_file
="sparc/litecoff.h libgloss.h"
6156 tmake_file
=sparc
/t-sparclite
6159 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6160 tmake_file
=sparc
/t-sparclite
6163 tm_file
="sparc/liteelf.h"
6164 tmake_file
=sparc
/t-sparclite
6165 extra_parts
="crtbegin.o crtend.o"
6168 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6169 tmake_file
=sparc
/t-sp86x
6172 tm_file
="sparc/sp86x-elf.h"
6173 tmake_file
=sparc
/t-sp86x
6174 extra_parts
="crtbegin.o crtend.o"
6177 tmake_file
=sparc
/t-sp64
6178 tm_file
=sparc
/sp64-aout.h
6181 tmake_file
=sparc
/t-sp64
6182 tm_file
=sparc
/sp64-elf.h
6183 extra_parts
="crtbegin.o crtend.o"
6185 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6186 tmake_file
="t-linux sparc/t-linux64"
6187 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6188 tm_file
=sparc
/linux64.h
6190 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6192 if test x
$enable_threads = xyes
; then
6197 # This hasn't been upgraded to GCC 2.
6198 # tahoe-harris-*) # Harris tahoe, using COFF.
6199 # tm_file=tahoe/harris.h
6201 # tahoe-*-bsd*) # tahoe running BSD
6205 { echo "configure: error:
6206 *** The Thumb targets have been depreciated. The equivalent
6207 *** ARM based toolchain can now generated Thumb instructions
6208 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6210 # This hasn't been upgraded to GCC 2.
6217 tm_file
="v850/rtems.h"
6218 xm_file
="v850/xm-v850.h"
6219 tmake_file
="v850/t-v850 t-rtems"
6220 if test x
$stabs = xyes
6222 tm_file
="${tm_file} dbx.h"
6227 target_cpu_default
="TARGET_CPU_generic"
6229 tm_file
="v850/v850.h"
6230 xm_file
="v850/xm-v850.h"
6231 tmake_file
=v850
/t-v850
6232 if test x
$stabs = xyes
6234 tm_file
="${tm_file} dbx.h"
6238 vax-
*-bsd*) # vaxen running BSD
6242 vax-
*-sysv*) # vaxen running system V
6243 tm_file
="${tm_file} vax/vaxv.h"
6248 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6254 tmake_file
="${tmake_file} vax/t-openbsd"
6256 vax-
*-ultrix*) # vaxen running ultrix
6257 tm_file
="${tm_file} vax/ultrix.h"
6261 vax-
*-vms*) # vaxen running VMS
6262 xm_file
=vax
/xm-vms.h
6266 vax-
*-*) # vax default entry
6270 xm_file
="${xm_file} xm-svr3"
6274 echo "Configuration $machine not supported" 1>&2
6281 ;; # Existing GNU/Linux systems do not use the GNU setup.
6283 # On the GNU system, the setup is just about the same on
6284 # each different CPU. The specific machines that GNU
6285 # supports are matched above and just set $cpu_type.
6286 xm_file
="xm-gnu.h ${xm_file}"
6287 tm_file
=${cpu_type}/gnu.h
6288 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6289 # GNU always uses ELF.
6291 # GNU tools are the only tools.
6294 xmake_file
=x-linux
# These details are the same as Linux.
6295 tmake_file
=t-gnu
# These are not.
6298 xmake_try_sysv
=x-sysv
6299 install_headers_dir
=install-headers-cpio
6302 install_headers_dir
=install-headers-cpio
6306 # Distinguish i[34567]86
6307 # Also, do not run mips-tfile on MIPS if using gas.
6308 # Process --with-cpu= for PowerPC/rs6000
6309 target_cpu_default2
=
6312 target_cpu_default2
=1
6315 case $target_alias in
6317 target_cpu_default2
=4
6320 target_cpu_default2
=2
6324 i686-
*-* | i786-
*-*)
6325 target_cpu_default2
=3
6330 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6333 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6336 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6339 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6342 target_cpu_default2
="MASK_CPU_EV5"
6346 if test x
$gas = xyes
6348 if test "$target_cpu_default2" = ""
6350 target_cpu_default2
="MASK_GAS"
6352 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6357 case "x$with_cpu" in
6360 target_cpu_default2
="TARGET_CPU_generic"
6363 # Distinguish cores, and major variants
6364 # arm7m doesn't exist, but D & I don't affect code
6365 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6366 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6367 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6368 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6369 target_cpu_default2
="TARGET_CPU_$with_cpu"
6373 echo "--with-cpu must be passed a value" 1>&2
6378 if test x
$pass2done = xyes
6380 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6387 mips
*-*-ecoff* | mips
*-*-elf*)
6388 if test x
$gas = xyes
6390 if test x
$gnu_ld = xyes
6392 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6394 target_cpu_default2
="MASK_GAS"
6399 if test x
$gas = xyes
6401 target_cpu_default2
="MASK_GAS"
6404 powerpc
*-*-* | rs6000-
*-*)
6405 case "x$with_cpu" in
6409 xcommon | xpower | xpower2 | xpowerpc | xrios \
6410 | xrios1 | xrios2 | xrsc | xrsc1 \
6411 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6412 | xec603e | x740 | x750 | x401 \
6413 | x403 | x505 | x801 | x821 | x823 | x860
)
6414 target_cpu_default2
="\"$with_cpu\""
6418 echo "--with-cpu must be passed a value" 1>&2
6423 if test x
$pass2done = xyes
6425 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6432 case ".$with_cpu" in
6434 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6436 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6437 target_cpu_default2
="TARGET_CPU_$with_cpu"
6440 if test x
$pass2done = xyes
6442 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6450 if test "$target_cpu_default2" != ""
6452 if test "$target_cpu_default" != ""
6454 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6456 target_cpu_default
=$target_cpu_default2
6460 # No need for collect2 if we have the GNU linker.
6461 # Actually, there is now; GNU ld doesn't handle the EH info or
6462 # collecting for shared libraries.
6469 # Save data on machine being used to compile GCC in build_xm_file.
6470 # Save data on host machine in vars host_xm_file and host_xmake_file.
6471 if test x
$pass1done = x
6473 if test x
"$xm_file" = x
6474 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6475 else build_xm_file
=$xm_file
6477 build_xm_defines
=$xm_defines
6478 build_install_headers_dir
=$install_headers_dir
6479 build_exeext
=$exeext
6482 if test x
$pass2done = x
6484 if test x
"$xm_file" = x
6485 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6486 else host_xm_file
=$xm_file
6488 host_xm_defines
=$xm_defines
6489 if test x
"$xmake_file" = x
6490 then xmake_file
=$cpu_type/x-
$cpu_type
6492 host_xmake_file
="$xmake_file"
6493 host_truncate_target
=$truncate_target
6494 host_extra_gcc_objs
=$extra_gcc_objs
6495 host_extra_objs
=$extra_host_objs
6502 extra_objs
="${host_extra_objs} ${extra_objs}"
6504 # Default the target-machine variables that were not explicitly set.
6505 if test x
"$tm_file" = x
6506 then tm_file
=$cpu_type/$cpu_type.h
; fi
6508 if test x
$extra_headers = x
6509 then extra_headers
=; fi
6511 if test x
"$xm_file" = x
6512 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6514 if test x
$md_file = x
6515 then md_file
=$cpu_type/$cpu_type.md
; fi
6517 if test x
$out_file = x
6518 then out_file
=$cpu_type/$cpu_type.c
; fi
6520 if test x
"$tmake_file" = x
6521 then tmake_file
=$cpu_type/t-
$cpu_type
6524 if test x
"$dwarf2" = xyes
6525 then tm_file
="$tm_file tm-dwarf2.h"
6528 if test x
$float_format = x
6529 then float_format
=i64
6532 if test $float_format = none
6533 then float_h_file
=Makefile.
in
6534 else float_h_file
=float-
$float_format.h
6537 # Handle cpp installation.
6538 if test x
$enable_cpp != xno
6540 tmake_file
="$tmake_file t-install-cpp"
6543 # Say what files are being used for the output code and MD file.
6544 echo "Using \`$srcdir/config/$out_file' to output insns."
6545 echo "Using \`$srcdir/config/$md_file' as machine description file."
6548 for f
in $tm_file; do
6551 if test $count = ax
; then
6552 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6554 echo "Using the following target machine macro files:"
6555 for f
in $tm_file; do
6556 echo " $srcdir/config/$f"
6561 for f
in $host_xm_file; do
6564 if test $count = ax
; then
6565 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6567 echo "Using the following host machine macro files:"
6568 for f
in $host_xm_file; do
6569 echo " $srcdir/config/$f"
6573 if test "$host_xm_file" != "$build_xm_file"; then
6575 for f
in $build_xm_file; do
6578 if test $count = ax
; then
6579 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6581 echo "Using the following build machine macro files:"
6582 for f
in $build_xm_file; do
6583 echo " $srcdir/config/$f"
6588 if test x
$thread_file = x
; then
6589 if test x
$target_thread_file != x
; then
6590 thread_file
=$target_thread_file
6592 thread_file
='single'
6596 # Set up the header files.
6597 # $links is the list of header files to create.
6598 # $vars is the list of shell variables with file names to include.
6599 # auto-host.h is the file containing items generated by autoconf and is
6600 # the first file included by config.h.
6602 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6604 # If host=build, it is correct to have hconfig include auto-host.h
6605 # as well. If host!=build, we are in error and need to do more
6606 # work to find out the build config parameters.
6607 if test x
$host = x
$build
6609 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6611 # We create a subdir, then run autoconf in the subdir.
6612 # To prevent recursion we set host and build for the new
6613 # invocation of configure to the build for this invocation
6620 /*) realsrcdir
=${srcdir};;
6621 *) realsrcdir
=..
/${srcdir};;
6623 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6624 --target=$target --host=$build --build=$build
6626 # We just finished tests for the build machine, so rename
6627 # the file auto-build.h in the gcc directory.
6628 mv auto-host.h ..
/auto-build.h
6631 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6634 xm_file
="gansidecl.h ${xm_file}"
6635 tm_file
="gansidecl.h ${tm_file}"
6637 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6638 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6639 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6642 if test -f config.status
; then mv -f config.status config.bak
; fi
6645 while test -n "$vars"
6647 set $vars; var
=$1; shift; vars
=$
*
6648 set $links; link
=$1; shift; links
=$
*
6649 set $defines; define
=$1; shift; defines
=$
*
6652 # Make sure the file is created, even if it is empty.
6655 # Define TARGET_CPU_DEFAULT if the system wants one.
6656 # This substitutes for lots of *.h files.
6657 if test "$target_cpu_default" != "" -a $link = tm.h
6659 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6662 for file in `eval echo '$'$var`; do
6667 echo '#ifdef IN_GCC' >>$link
6670 echo "#include \"$file\"" >>$link
6675 echo '#endif' >>$link
6680 for def
in `eval echo '$'$define`; do
6681 echo "#ifndef $def" >>$link
6682 echo "#define $def" >>$link
6683 echo "#endif" >>$link
6687 # Truncate the target if necessary
6688 if test x
$host_truncate_target != x
; then
6689 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6692 # Get the version trigger filename from the toplevel
6693 if test "${with_gcc_version_trigger+set}" = set; then
6694 gcc_version_trigger
=$with_gcc_version_trigger
6696 gcc_version_trigger
=${srcdir}/version.c
6698 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6700 # Internationalization
6702 VERSION
="$gcc_version"
6703 cat >> confdefs.h
<<EOF
6704 #define PACKAGE "$PACKAGE"
6707 cat >> confdefs.h
<<EOF
6708 #define VERSION "$VERSION"
6716 # NLS support is still experimental, so disable it by default for now.
6717 # Check whether --enable-nls or --disable-nls was given.
6718 if test "${enable_nls+set}" = set; then
6719 enableval
="$enable_nls"
6727 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6728 echo "configure:6729: checking for strerror in -lcposix" >&5
6729 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 ac_save_LIBS
="$LIBS"
6734 LIBS
="-lcposix $LIBS"
6735 cat > conftest.
$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 /* Override any gcc2 internal prototype to avoid an error. */
6739 /* We use char because int might match the return type of a gcc2
6740 builtin and then its argument prototype would still apply. */
6747 if { (eval echo configure
:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6749 eval "ac_cv_lib_$ac_lib_var=yes"
6751 echo "configure: failed program was:" >&5
6752 cat conftest.
$ac_ext >&5
6754 eval "ac_cv_lib_$ac_lib_var=no"
6757 LIBS
="$ac_save_LIBS"
6760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6761 echo "$ac_t""yes" 1>&6
6762 LIBS
="$LIBS -lcposix"
6764 echo "$ac_t""no" 1>&6
6769 echo $ac_n "checking for working const""... $ac_c" 1>&6
6770 echo "configure:6771: checking for working const" >&5
6771 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.
$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6780 /* Ultrix mips cc rejects this. */
6781 typedef int charset[2]; const charset x = {0,0};
6782 /* SunOS 4.1.1 cc rejects this. */
6783 char const *const *ccp;
6785 /* NEC SVR4.0.2 mips cc rejects this. */
6786 struct point {int x, y;};
6787 static struct point const zero = {0,0};
6788 /* AIX XL C 1.02.0.0 rejects this.
6789 It does not let you subtract one const X* pointer from another in an arm
6790 of an if-expression whose if-part is not a constant expression */
6791 const char *g = "string";
6792 ccp = &g + (g ? g-g : 0);
6793 /* HPUX 7.0 cc rejects these. */
6796 ccp = (char const *const *) p;
6797 { /* SCO 3.2v4 cc rejects this. */
6799 char const *s = 0 ? (char *) 0 : (char const *) 0;
6803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6805 const int *foo = &x[0];
6808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6809 typedef const int *iptr;
6813 { /* AIX XL C 1.02.0.0 rejects this saying
6814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6815 struct s { int j; const int *ap[3]; };
6816 struct s *b; b->j = 5;
6818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6824 if { (eval echo configure
:6825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6828 echo "configure: failed program was:" >&5
6829 cat conftest.
$ac_ext >&5
6836 echo "$ac_t""$ac_cv_c_const" 1>&6
6837 if test $ac_cv_c_const = no
; then
6838 cat >> confdefs.h
<<\EOF
6844 echo $ac_n "checking for inline""... $ac_c" 1>&6
6845 echo "configure:6846: checking for inline" >&5
6846 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6847 echo $ac_n "(cached) $ac_c" 1>&6
6850 for ac_kw
in inline __inline__ __inline
; do
6851 cat > conftest.
$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6856 } int $ac_kw foo() {
6859 if { (eval echo configure
:6860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6861 ac_cv_c_inline
=$ac_kw; break
6863 echo "configure: failed program was:" >&5
6864 cat conftest.
$ac_ext >&5
6871 echo "$ac_t""$ac_cv_c_inline" 1>&6
6872 case "$ac_cv_c_inline" in
6874 no
) cat >> confdefs.h
<<\EOF
6878 *) cat >> confdefs.h
<<EOF
6879 #define inline $ac_cv_c_inline
6884 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6885 echo "configure:6886: checking for off_t" >&5
6886 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6889 cat > conftest.
$ac_ext <<EOF
6890 #line 6891 "configure"
6891 #include "confdefs.h"
6892 #include <sys/types.h>
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6901 ac_cv_type_off_t
=yes
6909 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6910 if test $ac_cv_type_off_t = no
; then
6911 cat >> confdefs.h
<<\EOF
6917 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6918 echo "configure:6919: checking for size_t" >&5
6919 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6922 cat > conftest.
$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 #include <sys/types.h>
6931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6934 ac_cv_type_size_t
=yes
6937 ac_cv_type_size_t
=no
6942 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6943 if test $ac_cv_type_size_t = no
; then
6944 cat >> confdefs.h
<<\EOF
6945 #define size_t unsigned
6950 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6951 # for constant arguments. Useless!
6952 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6953 echo "configure:6954: checking for working alloca.h" >&5
6954 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6955 echo $ac_n "(cached) $ac_c" 1>&6
6957 cat > conftest.
$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6962 void *p = alloca(2 * sizeof(int));
6965 if { (eval echo configure
:6966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6967 ac_cv_header_alloca_h
=yes
6969 echo "configure: failed program was:" >&5
6970 cat conftest.
$ac_ext >&5
6972 ac_cv_header_alloca_h
=no
6977 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6978 if test $ac_cv_header_alloca_h = yes; then
6979 cat >> confdefs.h
<<\EOF
6980 #define HAVE_ALLOCA_H 1
6985 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6986 echo "configure:6987: checking for alloca" >&5
6987 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6988 echo $ac_n "(cached) $ac_c" 1>&6
6990 cat > conftest.
$ac_ext <<EOF
6991 #line 6992 "configure"
6992 #include "confdefs.h"
6995 # define alloca __builtin_alloca
6998 # include <malloc.h>
6999 # define alloca _alloca
7002 # include <alloca.h>
7007 # ifndef alloca /* predefined by HP cc +Olibcalls */
7016 char *p = (char *) alloca(1);
7019 if { (eval echo configure
:7020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7021 ac_cv_func_alloca_works
=yes
7023 echo "configure: failed program was:" >&5
7024 cat conftest.
$ac_ext >&5
7026 ac_cv_func_alloca_works
=no
7031 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7032 if test $ac_cv_func_alloca_works = yes; then
7033 cat >> confdefs.h
<<\EOF
7034 #define HAVE_ALLOCA 1
7039 if test $ac_cv_func_alloca_works = no
; then
7040 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7041 # that cause trouble. Some versions do not even contain alloca or
7042 # contain a buggy version. If you still want to use their alloca,
7043 # use ar to extract alloca.o from them instead of compiling alloca.c.
7044 ALLOCA
=alloca.
${ac_objext}
7045 cat >> confdefs.h
<<\EOF
7050 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7051 echo "configure:7052: checking whether alloca needs Cray hooks" >&5
7052 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7055 cat > conftest.
$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 #if defined(CRAY) && ! defined(CRAY2)
7065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7066 egrep "webecray" >/dev
/null
2>&1; then
7077 echo "$ac_t""$ac_cv_os_cray" 1>&6
7078 if test $ac_cv_os_cray = yes; then
7079 for ac_func
in _getb67 GETB67 getb67
; do
7080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7081 echo "configure:7082: checking for $ac_func" >&5
7082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7083 echo $ac_n "(cached) $ac_c" 1>&6
7085 cat > conftest.
$ac_ext <<EOF
7086 #line 7087 "configure"
7087 #include "confdefs.h"
7088 /* System header to define __stub macros and hopefully few prototypes,
7089 which can conflict with char $ac_func(); below. */
7091 /* Override any gcc2 internal prototype to avoid an error. */
7092 /* We use char because int might match the return type of a gcc2
7093 builtin and then its argument prototype would still apply. */
7098 /* The GNU C library defines this for functions which it implements
7099 to always fail with ENOSYS. Some functions are actually named
7100 something starting with __ and the normal name is an alias. */
7101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7109 if { (eval echo configure
:7110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7111 eval "ac_cv_func_$ac_func=yes"
7113 echo "configure: failed program was:" >&5
7114 cat conftest.
$ac_ext >&5
7116 eval "ac_cv_func_$ac_func=no"
7121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7122 echo "$ac_t""yes" 1>&6
7123 cat >> confdefs.h
<<EOF
7124 #define CRAY_STACKSEG_END $ac_func
7129 echo "$ac_t""no" 1>&6
7135 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7136 echo "configure:7137: checking stack direction for C alloca" >&5
7137 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7138 echo $ac_n "(cached) $ac_c" 1>&6
7140 if test "$cross_compiling" = yes; then
7141 ac_cv_c_stack_direction
=0
7143 cat > conftest.
$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 find_stack_direction ()
7148 static char *addr = 0;
7153 return find_stack_direction ();
7156 return (&dummy > addr) ? 1 : -1;
7160 exit (find_stack_direction() < 0);
7163 if { (eval echo configure
:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7165 ac_cv_c_stack_direction
=1
7167 echo "configure: failed program was:" >&5
7168 cat conftest.
$ac_ext >&5
7170 ac_cv_c_stack_direction
=-1
7177 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7178 cat >> confdefs.h
<<EOF
7179 #define STACK_DIRECTION $ac_cv_c_stack_direction
7185 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7186 unistd.h sys
/param.h
7188 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7190 echo "configure:7191: checking for $ac_hdr" >&5
7191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7194 cat > conftest.
$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7199 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7200 { (eval echo configure
:7201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7201 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7202 if test -z "$ac_err"; then
7204 eval "ac_cv_header_$ac_safe=yes"
7207 echo "configure: failed program was:" >&5
7208 cat conftest.
$ac_ext >&5
7210 eval "ac_cv_header_$ac_safe=no"
7214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7216 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7217 cat >> confdefs.h
<<EOF
7218 #define $ac_tr_hdr 1
7222 echo "$ac_t""no" 1>&6
7226 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7227 strdup __argz_count __argz_stringify __argz_next
7229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7230 echo "configure:7231: checking for $ac_func" >&5
7231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7232 echo $ac_n "(cached) $ac_c" 1>&6
7234 cat > conftest.
$ac_ext <<EOF
7235 #line 7236 "configure"
7236 #include "confdefs.h"
7237 /* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char $ac_func(); below. */
7240 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7247 /* The GNU C library defines this for functions which it implements
7248 to always fail with ENOSYS. Some functions are actually named
7249 something starting with __ and the normal name is an alias. */
7250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7258 if { (eval echo configure
:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7260 eval "ac_cv_func_$ac_func=yes"
7262 echo "configure: failed program was:" >&5
7263 cat conftest.
$ac_ext >&5
7265 eval "ac_cv_func_$ac_func=no"
7270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7271 echo "$ac_t""yes" 1>&6
7272 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7273 cat >> confdefs.h
<<EOF
7274 #define $ac_tr_func 1
7278 echo "$ac_t""no" 1>&6
7283 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7284 for ac_func
in stpcpy
7286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_func" >&5
7288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 cat > conftest.
$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7294 /* System header to define __stub macros and hopefully few prototypes,
7295 which can conflict with char $ac_func(); below. */
7297 /* Override any gcc2 internal prototype to avoid an error. */
7298 /* We use char because int might match the return type of a gcc2
7299 builtin and then its argument prototype would still apply. */
7304 /* The GNU C library defines this for functions which it implements
7305 to always fail with ENOSYS. Some functions are actually named
7306 something starting with __ and the normal name is an alias. */
7307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7315 if { (eval echo configure
:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7317 eval "ac_cv_func_$ac_func=yes"
7319 echo "configure: failed program was:" >&5
7320 cat conftest.
$ac_ext >&5
7322 eval "ac_cv_func_$ac_func=no"
7327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7328 echo "$ac_t""yes" 1>&6
7329 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7330 cat >> confdefs.h
<<EOF
7331 #define $ac_tr_func 1
7335 echo "$ac_t""no" 1>&6
7340 if test "${ac_cv_func_stpcpy}" = "yes"; then
7341 cat >> confdefs.h
<<\EOF
7342 #define HAVE_STPCPY 1
7347 if test $ac_cv_header_locale_h = yes; then
7348 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7349 echo "configure:7350: checking for LC_MESSAGES" >&5
7350 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7351 echo $ac_n "(cached) $ac_c" 1>&6
7353 cat > conftest.
$ac_ext <<EOF
7354 #line 7355 "configure"
7355 #include "confdefs.h"
7361 if { (eval echo configure
:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7363 am_cv_val_LC_MESSAGES
=yes
7365 echo "configure: failed program was:" >&5
7366 cat conftest.
$ac_ext >&5
7368 am_cv_val_LC_MESSAGES
=no
7373 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7374 if test $am_cv_val_LC_MESSAGES = yes; then
7375 cat >> confdefs.h
<<\EOF
7376 #define HAVE_LC_MESSAGES 1
7381 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7382 echo "configure:7383: checking whether NLS is requested" >&5
7383 # Check whether --enable-nls or --disable-nls was given.
7384 if test "${enable_nls+set}" = set; then
7385 enableval
="$enable_nls"
7391 echo "$ac_t""$USE_NLS" 1>&6
7394 USE_INCLUDED_LIBINTL
=no
7396 if test "$USE_NLS" = "yes"; then
7397 cat >> confdefs.h
<<\EOF
7398 #define ENABLE_NLS 1
7401 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7402 echo "configure:7403: checking whether included gettext is requested" >&5
7403 # Check whether --with-included-gettext or --without-included-gettext was given.
7404 if test "${with_included_gettext+set}" = set; then
7405 withval
="$with_included_gettext"
7406 nls_cv_force_use_gnu_gettext
=$withval
7408 nls_cv_force_use_gnu_gettext
=no
7411 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7413 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7414 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7416 nls_cv_header_libgt
=
7419 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7420 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7421 echo "configure:7422: checking for libintl.h" >&5
7422 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6
7425 cat > conftest.
$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7428 #include <libintl.h>
7430 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7431 { (eval echo configure
:7432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7432 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7433 if test -z "$ac_err"; then
7435 eval "ac_cv_header_$ac_safe=yes"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.
$ac_ext >&5
7441 eval "ac_cv_header_$ac_safe=no"
7445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7448 echo "configure:7449: checking for gettext in libc" >&5
7449 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 cat > conftest.
$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 #include <libintl.h>
7457 return (int) gettext ("")
7460 if { (eval echo configure
:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7462 gt_cv_func_gettext_libc
=yes
7464 echo "configure: failed program was:" >&5
7465 cat conftest.
$ac_ext >&5
7467 gt_cv_func_gettext_libc
=no
7472 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7474 if test "$gt_cv_func_gettext_libc" != "yes"; then
7475 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7476 echo "configure:7477: checking for bindtextdomain in -lintl" >&5
7477 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7481 ac_save_LIBS
="$LIBS"
7483 cat > conftest.
$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7486 /* Override any gcc2 internal prototype to avoid an error. */
7487 /* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7489 char bindtextdomain();
7495 if { (eval echo configure
:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7497 eval "ac_cv_lib_$ac_lib_var=yes"
7499 echo "configure: failed program was:" >&5
7500 cat conftest.
$ac_ext >&5
7502 eval "ac_cv_lib_$ac_lib_var=no"
7505 LIBS
="$ac_save_LIBS"
7508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7511 echo "configure:7512: checking for gettext in libintl" >&5
7512 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7515 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7516 echo "configure:7517: checking for gettext in -lintl" >&5
7517 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7519 echo $ac_n "(cached) $ac_c" 1>&6
7521 ac_save_LIBS
="$LIBS"
7523 cat > conftest.
$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7526 /* Override any gcc2 internal prototype to avoid an error. */
7527 /* We use char because int might match the return type of a gcc2
7528 builtin and then its argument prototype would still apply. */
7535 if { (eval echo configure
:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7537 eval "ac_cv_lib_$ac_lib_var=yes"
7539 echo "configure: failed program was:" >&5
7540 cat conftest.
$ac_ext >&5
7542 eval "ac_cv_lib_$ac_lib_var=no"
7545 LIBS
="$ac_save_LIBS"
7548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7549 echo "$ac_t""yes" 1>&6
7550 gt_cv_func_gettext_libintl
=yes
7552 echo "$ac_t""no" 1>&6
7553 gt_cv_func_gettext_libintl
=no
7558 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7560 echo "$ac_t""no" 1>&6
7565 if test "$gt_cv_func_gettext_libc" = "yes" \
7566 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7567 cat >> confdefs.h
<<\EOF
7568 #define HAVE_GETTEXT 1
7571 # Extract the first word of "msgfmt", so it can be a program name with args.
7572 set dummy msgfmt
; ac_word
=$2
7573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7574 echo "configure:7575: checking for $ac_word" >&5
7575 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7576 echo $ac_n "(cached) $ac_c" 1>&6
7580 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7583 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7584 for ac_dir
in $PATH; do
7585 test -z "$ac_dir" && ac_dir
=.
7586 if test -f $ac_dir/$ac_word; then
7587 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7588 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7594 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7598 MSGFMT
="$ac_cv_path_MSGFMT"
7599 if test -n "$MSGFMT"; then
7600 echo "$ac_t""$MSGFMT" 1>&6
7602 echo "$ac_t""no" 1>&6
7604 if test "$MSGFMT" != "no"; then
7605 for ac_func
in dcgettext
7607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7608 echo "configure:7609: checking for $ac_func" >&5
7609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7610 echo $ac_n "(cached) $ac_c" 1>&6
7612 cat > conftest.
$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 /* System header to define __stub macros and hopefully few prototypes,
7616 which can conflict with char $ac_func(); below. */
7618 /* Override any gcc2 internal prototype to avoid an error. */
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7625 /* The GNU C library defines this for functions which it implements
7626 to always fail with ENOSYS. Some functions are actually named
7627 something starting with __ and the normal name is an alias. */
7628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7636 if { (eval echo configure
:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7638 eval "ac_cv_func_$ac_func=yes"
7640 echo "configure: failed program was:" >&5
7641 cat conftest.
$ac_ext >&5
7643 eval "ac_cv_func_$ac_func=no"
7648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7649 echo "$ac_t""yes" 1>&6
7650 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7651 cat >> confdefs.h
<<EOF
7652 #define $ac_tr_func 1
7656 echo "$ac_t""no" 1>&6
7660 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7661 set dummy gmsgfmt
; ac_word
=$2
7662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7663 echo "configure:7664: checking for $ac_word" >&5
7664 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7669 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7672 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7675 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7677 for ac_dir
in $ac_dummy; do
7678 test -z "$ac_dir" && ac_dir
=.
7679 if test -f $ac_dir/$ac_word; then
7680 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7685 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7689 GMSGFMT
="$ac_cv_path_GMSGFMT"
7690 if test -n "$GMSGFMT"; then
7691 echo "$ac_t""$GMSGFMT" 1>&6
7693 echo "$ac_t""no" 1>&6
7696 # Extract the first word of "xgettext", so it can be a program name with args.
7697 set dummy xgettext
; ac_word
=$2
7698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7699 echo "configure:7700: checking for $ac_word" >&5
7700 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7705 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7708 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7709 for ac_dir
in $PATH; do
7710 test -z "$ac_dir" && ac_dir
=.
7711 if test -f $ac_dir/$ac_word; then
7712 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7713 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7719 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7723 XGETTEXT
="$ac_cv_path_XGETTEXT"
7724 if test -n "$XGETTEXT"; then
7725 echo "$ac_t""$XGETTEXT" 1>&6
7727 echo "$ac_t""no" 1>&6
7730 cat > conftest.
$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7735 extern int _nl_msg_cat_cntr;
7736 return _nl_msg_cat_cntr
7739 if { (eval echo configure
:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7744 echo "configure: failed program was:" >&5
7745 cat conftest.
$ac_ext >&5
7756 echo "$ac_t""no" 1>&6
7760 if test "$CATOBJEXT" = "NONE"; then
7761 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7762 echo "configure:7763: checking whether catgets can be used" >&5
7763 # Check whether --with-catgets or --without-catgets was given.
7764 if test "${with_catgets+set}" = set; then
7765 withval
="$with_catgets"
7766 nls_cv_use_catgets
=$withval
7768 nls_cv_use_catgets
=no
7771 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7773 if test "$nls_cv_use_catgets" = "yes"; then
7774 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7775 echo "configure:7776: checking for main in -li" >&5
7776 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7780 ac_save_LIBS
="$LIBS"
7782 cat > conftest.
$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7790 if { (eval echo configure
:7791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7792 eval "ac_cv_lib_$ac_lib_var=yes"
7794 echo "configure: failed program was:" >&5
7795 cat conftest.
$ac_ext >&5
7797 eval "ac_cv_lib_$ac_lib_var=no"
7800 LIBS
="$ac_save_LIBS"
7803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7804 echo "$ac_t""yes" 1>&6
7805 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7807 cat >> confdefs.h
<<EOF
7808 #define $ac_tr_lib 1
7814 echo "$ac_t""no" 1>&6
7817 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7818 echo "configure:7819: checking for catgets" >&5
7819 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7822 cat > conftest.
$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* System header to define __stub macros and hopefully few prototypes,
7826 which can conflict with char catgets(); below. */
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 /* We use char because int might match the return type of a gcc2
7830 builtin and then its argument prototype would still apply. */
7835 /* The GNU C library defines this for functions which it implements
7836 to always fail with ENOSYS. Some functions are actually named
7837 something starting with __ and the normal name is an alias. */
7838 #if defined (__stub_catgets) || defined (__stub___catgets)
7846 if { (eval echo configure
:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7848 eval "ac_cv_func_catgets=yes"
7850 echo "configure: failed program was:" >&5
7851 cat conftest.
$ac_ext >&5
7853 eval "ac_cv_func_catgets=no"
7858 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7859 echo "$ac_t""yes" 1>&6
7860 cat >> confdefs.h
<<\EOF
7861 #define HAVE_CATGETS 1
7864 INTLOBJS
="\$(CATOBJS)"
7865 # Extract the first word of "gencat", so it can be a program name with args.
7866 set dummy gencat
; ac_word
=$2
7867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7868 echo "configure:7869: checking for $ac_word" >&5
7869 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7870 echo $ac_n "(cached) $ac_c" 1>&6
7874 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7877 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7880 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7882 for ac_dir
in $ac_dummy; do
7883 test -z "$ac_dir" && ac_dir
=.
7884 if test -f $ac_dir/$ac_word; then
7885 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7890 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7894 GENCAT
="$ac_cv_path_GENCAT"
7895 if test -n "$GENCAT"; then
7896 echo "$ac_t""$GENCAT" 1>&6
7898 echo "$ac_t""no" 1>&6
7900 if test "$GENCAT" != "no"; then
7901 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7902 set dummy gmsgfmt
; ac_word
=$2
7903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7904 echo "configure:7905: checking for $ac_word" >&5
7905 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7910 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7913 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7916 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7918 for ac_dir
in $ac_dummy; do
7919 test -z "$ac_dir" && ac_dir
=.
7920 if test -f $ac_dir/$ac_word; then
7921 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7926 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7930 GMSGFMT
="$ac_cv_path_GMSGFMT"
7931 if test -n "$GMSGFMT"; then
7932 echo "$ac_t""$GMSGFMT" 1>&6
7934 echo "$ac_t""no" 1>&6
7937 if test "$GMSGFMT" = "no"; then
7938 # Extract the first word of "msgfmt", so it can be a program name with args.
7939 set dummy msgfmt
; ac_word
=$2
7940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7941 echo "configure:7942: checking for $ac_word" >&5
7942 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7947 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7950 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7951 for ac_dir
in $PATH; do
7952 test -z "$ac_dir" && ac_dir
=.
7953 if test -f $ac_dir/$ac_word; then
7954 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7955 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7961 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7965 GMSGFMT
="$ac_cv_path_GMSGFMT"
7966 if test -n "$GMSGFMT"; then
7967 echo "$ac_t""$GMSGFMT" 1>&6
7969 echo "$ac_t""no" 1>&6
7973 # Extract the first word of "xgettext", so it can be a program name with args.
7974 set dummy xgettext
; ac_word
=$2
7975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7976 echo "configure:7977: checking for $ac_word" >&5
7977 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
7982 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7985 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7986 for ac_dir
in $PATH; do
7987 test -z "$ac_dir" && ac_dir
=.
7988 if test -f $ac_dir/$ac_word; then
7989 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7990 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7996 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8000 XGETTEXT
="$ac_cv_path_XGETTEXT"
8001 if test -n "$XGETTEXT"; then
8002 echo "$ac_t""$XGETTEXT" 1>&6
8004 echo "$ac_t""no" 1>&6
8007 USE_INCLUDED_LIBINTL
=yes
8011 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8013 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8014 nls_cv_header_intl
=intl
/libintl.h
8015 nls_cv_header_libgt
=intl
/libgettext.h
8018 echo "$ac_t""no" 1>&6
8024 if test "$CATOBJEXT" = "NONE"; then
8025 nls_cv_use_gnu_gettext
=yes
8029 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8030 INTLOBJS
="\$(GETTOBJS)"
8031 # Extract the first word of "msgfmt", so it can be a program name with args.
8032 set dummy msgfmt
; ac_word
=$2
8033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8034 echo "configure:8035: checking for $ac_word" >&5
8035 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8036 echo $ac_n "(cached) $ac_c" 1>&6
8040 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8043 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8044 for ac_dir
in $PATH; do
8045 test -z "$ac_dir" && ac_dir
=.
8046 if test -f $ac_dir/$ac_word; then
8047 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8048 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8054 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8058 MSGFMT
="$ac_cv_path_MSGFMT"
8059 if test -n "$MSGFMT"; then
8060 echo "$ac_t""$MSGFMT" 1>&6
8062 echo "$ac_t""no" 1>&6
8065 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8066 set dummy gmsgfmt
; ac_word
=$2
8067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8068 echo "configure:8069: checking for $ac_word" >&5
8069 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8074 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8077 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8080 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8082 for ac_dir
in $ac_dummy; do
8083 test -z "$ac_dir" && ac_dir
=.
8084 if test -f $ac_dir/$ac_word; then
8085 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8090 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8094 GMSGFMT
="$ac_cv_path_GMSGFMT"
8095 if test -n "$GMSGFMT"; then
8096 echo "$ac_t""$GMSGFMT" 1>&6
8098 echo "$ac_t""no" 1>&6
8101 # Extract the first word of "xgettext", so it can be a program name with args.
8102 set dummy xgettext
; ac_word
=$2
8103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8104 echo "configure:8105: checking for $ac_word" >&5
8105 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8110 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8114 for ac_dir
in $PATH; do
8115 test -z "$ac_dir" && ac_dir
=.
8116 if test -f $ac_dir/$ac_word; then
8117 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8118 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8124 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8128 XGETTEXT
="$ac_cv_path_XGETTEXT"
8129 if test -n "$XGETTEXT"; then
8130 echo "$ac_t""$XGETTEXT" 1>&6
8132 echo "$ac_t""no" 1>&6
8136 USE_INCLUDED_LIBINTL
=yes
8140 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8142 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8143 nls_cv_header_intl
=intl
/libintl.h
8144 nls_cv_header_libgt
=intl
/libgettext.h
8147 if test "$XGETTEXT" != ":"; then
8148 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8151 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8156 # We need to process the po/ directory.
8160 nls_cv_header_intl
=intl
/libintl.h
8161 nls_cv_header_libgt
=intl
/libgettext.h
8167 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8168 # because some of the sources are only built for this goal.
8169 if test "$PACKAGE" = gettext; then
8171 USE_INCLUDED_LIBINTL
=yes
8174 for lang
in $ALL_LINGUAS; do
8175 GMOFILES
="$GMOFILES $lang.gmo"
8176 POFILES
="$POFILES $lang.po"
8192 if test "x$CATOBJEXT" != "x"; then
8193 if test "x$ALL_LINGUAS" = "x"; then
8196 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8197 echo "configure:8198: checking for catalogs to be installed" >&5
8199 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8200 case "$ALL_LINGUAS" in
8201 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8204 LINGUAS
=$NEW_LINGUAS
8205 echo "$ac_t""$LINGUAS" 1>&6
8208 if test -n "$LINGUAS"; then
8209 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8213 if test $ac_cv_header_locale_h = yes; then
8214 INCLUDE_LOCALE_H
="#include <locale.h>"
8217 /* The system does not provide the header <locale.h>. Take care yourself. */"
8221 test -d intl || mkdir intl
8222 if test "$CATOBJEXT" = ".cat"; then
8223 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8224 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8225 echo "configure:8226: checking for linux/version.h" >&5
8226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 cat > conftest.
$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8232 #include <linux/version.h>
8234 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8235 { (eval echo configure
:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8236 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237 if test -z "$ac_err"; then
8239 eval "ac_cv_header_$ac_safe=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.
$ac_ext >&5
8245 eval "ac_cv_header_$ac_safe=no"
8249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8250 echo "$ac_t""yes" 1>&6
8253 echo "$ac_t""no" 1>&6
8258 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8260 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8261 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8263 if test "$PACKAGE" = "gettext"; then
8274 if test -n "$ac_aux_dir"; then
8275 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8277 if test -z "$MKINSTALLDIRS"; then
8278 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8285 test -d po || mkdir po
8286 if test "x$srcdir" != "x."; then
8287 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8288 posrcprefix
="$srcdir/"
8290 posrcprefix
="../$srcdir/"
8296 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8297 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8299 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8301 # Windows32 Registry support for specifying GCC installation paths.
8302 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8303 if test "${enable_win32_registry+set}" = set; then
8304 enableval
="$enable_win32_registry"
8309 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8310 echo "configure:8311: checking whether windows registry support is requested" >&5
8311 if test x
$enable_win32_registry != xno
; then
8312 cat >> confdefs.h
<<\EOF
8313 #define ENABLE_WIN32_REGISTRY 1
8316 echo "$ac_t""yes" 1>&6
8318 echo "$ac_t""no" 1>&6
8321 # Check if user specified a different registry key.
8322 case x
${enable_win32_registry} in
8325 gcc_cv_win32_registry_key
="$VERSION"
8328 # no registry lookup.
8329 gcc_cv_win32_registry_key
=''
8332 # user-specified key.
8333 gcc_cv_win32_registry_key
="$enable_win32_registry"
8337 if test x
$enable_win32_registry != xno
; then
8338 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8339 echo "configure:8340: checking registry key on windows hosts" >&5
8340 cat >> confdefs.h
<<EOF
8341 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8344 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8347 # Get an absolute path to the GCC top-level source directory
8353 # Conditionalize the makefile for this host machine.
8354 # Make-host contains the concatenation of all host makefile fragments
8355 # [there can be more than one]. This file is built by configure.frag.
8356 host_overrides
=Make-host
8357 dep_host_xmake_file
=
8358 for f
in ..
${host_xmake_file}
8360 if test -f ${srcdir}/config
/$f
8362 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8366 # Conditionalize the makefile for this target machine.
8367 # Make-target contains the concatenation of all host makefile fragments
8368 # [there can be more than one]. This file is built by configure.frag.
8369 target_overrides
=Make-target
8371 for f
in ..
${tmake_file}
8373 if test -f ${srcdir}/config
/$f
8375 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8379 # If the host doesn't support symlinks, modify CC in
8380 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8381 # Otherwise, we can use "CC=$(CC)".
8383 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8385 cc_set_by_configure
="\$(CC)"
8386 quoted_cc_set_by_configure
="\$(CC)"
8387 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8390 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8392 symbolic_link
="cp -p"
8396 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8397 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8398 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8402 out_object_file
=`basename $out_file .c`.o
8405 for f
in $tm_file; do
8408 tm_file_list
="${tm_file_list} $f" ;;
8409 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8414 for f
in $host_xm_file; do
8416 auto-host.h | gansidecl.h | hwint.h
)
8417 host_xm_file_list
="${host_xm_file_list} $f" ;;
8418 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8423 for f
in $build_xm_file; do
8425 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8426 build_xm_file_list
="${build_xm_file_list} $f" ;;
8427 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8431 # Define macro CROSS_COMPILE in compilation
8432 # if this is a cross-compiler.
8433 # Also use all.cross instead of all.internal
8434 # and add cross-make to Makefile.
8435 cross_overrides
="/dev/null"
8436 if test x
$host != x
$target
8438 cross_defines
="CROSS=-DCROSS_COMPILE"
8439 cross_overrides
="${topdir}/cross-make"
8442 # When building gcc with a cross-compiler, we need to fix a few things.
8443 # This must come after cross-make as we want all.build to override
8445 build_overrides
="/dev/null"
8446 if test x
$build != x
$host
8448 build_overrides
="${topdir}/build-make"
8451 # Expand extra_headers to include complete path.
8452 # This substitutes for lots of t-* files.
8454 if test "x$extra_headers" = x
8457 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8458 for file in $extra_headers;
8460 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8464 if test x
$use_collect2 = xno
; then
8468 # Add a definition of USE_COLLECT2 if system wants one.
8469 # Also tell toplev.c what to do.
8470 # This substitutes for lots of t-* files.
8471 if test x
$use_collect2 = x
8476 will_use_collect2
="collect2"
8477 maybe_use_collect2
="-DUSE_COLLECT2"
8481 # Set MD_DEPS if the real md file is in md.pre-cpp.
8482 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8483 # for line oriented comments, so we must always use a GNU cpp. If
8484 # building gcc with a cross compiler, use the cross compiler just
8485 # built. Otherwise, we can use the cpp just built.
8487 if test "x$md_cppflags" = x
8489 md_file_sub
=$srcdir/config
/$md_file
8494 # If we have gas in the build tree, make a link to it.
8495 if test -f ..
/gas
/Makefile
; then
8496 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8499 # If we have nm in the build tree, make a link to it.
8500 if test -f ..
/binutils
/Makefile
; then
8501 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8504 # If we have ld in the build tree, make a link to it.
8505 if test -f ..
/ld
/Makefile
; then
8506 # if test x$use_collect2 = x; then
8507 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8509 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8513 # Figure out what assembler alignment features are present.
8514 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8515 echo "configure:8516: checking assembler alignment features" >&5
8517 gcc_cv_as_alignment_features
=
8518 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8519 if test -x "$DEFAULT_ASSEMBLER"; then
8520 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8521 elif test -x "$AS"; then
8523 elif test -x as
$host_exeext; then
8524 # Build using assembler in the current directory.
8525 gcc_cv_as
=.
/as
$host_exeext
8526 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8527 # Single tree build which includes gas.
8528 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8530 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8531 if test x
$gcc_cv_gas_version != x
; then
8535 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8536 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8537 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8538 # Gas version 2.6 and later support for .balign and .p2align.
8539 # bytes to skip when using .p2align.
8540 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
8541 gcc_cv_as_alignment_features
=".balign and .p2align"
8542 cat >> confdefs.h
<<\EOF
8543 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8547 # Gas version 2.8 and later support specifying the maximum
8548 # bytes to skip when using .p2align.
8549 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
8550 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8551 cat >> confdefs.h
<<\EOF
8552 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8557 elif test x
$host = x
$target; then
8559 # Search the same directories that the installed compiler will
8560 # search. Else we may find the wrong assembler and lose. If we
8561 # do not find a suitable assembler binary, then try the user's
8564 # Also note we have to check MD_EXEC_PREFIX before checking the
8565 # user's path. Unfortunately, there is no good way to get at the
8566 # value of MD_EXEC_PREFIX here. So we do a brute force search
8567 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8568 # to be fixed as part of the make/configure rewrite too.
8570 if test "x$exec_prefix" = xNONE
; then
8571 if test "x$prefix" = xNONE
; then
8572 test_prefix
=/usr
/local
8577 test_prefix
=$exec_prefix
8580 # If the loop below does not find an assembler, then use whatever
8581 # one we can find in the users's path.
8585 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8586 $test_prefix/lib/gcc-lib/$target \
8587 /usr/lib/gcc/$target/$gcc_version \
8588 /usr/lib/gcc/$target \
8589 $test_prefix/$target/bin/$target/$gcc_version \
8590 $test_prefix/$target/bin \
8595 /bsd43/usr/lib/cmplrs/cc \
8596 /usr/cross64/usr/bin \
8597 /usr/lib/cmplrs/cc \
8598 /sysv/usr/lib/cmplrs/cc \
8599 /svr4/usr/lib/cmplrs/cc \
8602 for dir
in $test_dirs; do
8603 if test -f $dir/as
$host_exeext; then
8604 gcc_cv_as
=$dir/as
$host_exeext
8609 if test x
$gcc_cv_as != x
; then
8610 # Check if we have .balign and .p2align
8611 echo ".balign 4" > conftest.s
8612 echo ".p2align 2" >> conftest.s
8613 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8614 gcc_cv_as_alignment_features
=".balign and .p2align"
8615 cat >> confdefs.h
<<\EOF
8616 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8620 rm -f conftest.s conftest.o
8621 # Check if specifying the maximum bytes to skip when
8622 # using .p2align is supported.
8623 echo ".p2align 4,,7" > conftest.s
8624 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8625 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8626 cat >> confdefs.h
<<\EOF
8627 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8631 rm -f conftest.s conftest.o
8633 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8635 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8636 echo "configure:8637: checking assembler subsection support" >&5
8637 gcc_cv_as_subsections
=
8638 if test x
$gcc_cv_as != x
; then
8639 # Check if we have .subsection
8640 echo ".subsection 1" > conftest.s
8641 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8642 gcc_cv_as_subsections
=".subsection"
8643 if test -x nm
$host_exeext; then
8644 gcc_cv_nm
=.
/nm
$host_exeext
8645 elif test x
$host = x
$target; then
8647 gcc_cv_nm
=nm
$host_exeext
8649 if test x
$gcc_cv_nm != x
; then
8650 cat > conftest.s
<<EOF
8651 conftest_label1: .word 0
8653 conftest_label2: .word 0
8656 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8657 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8658 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8659 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8662 gcc_cv_as_subsections
="working .subsection -1"
8663 cat >> confdefs.h
<<\EOF
8664 #define HAVE_GAS_SUBSECTION_ORDERING 1
8671 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8673 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8675 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8676 echo "configure:8677: checking assembler weak support" >&5
8678 if test x
$gcc_cv_as != x
; then
8679 # Check if we have .weak
8680 echo " .weak foobar" > conftest.s
8681 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8682 cat >> confdefs.h
<<\EOF
8683 #define HAVE_GAS_WEAK 1
8686 gcc_cv_as_weak
="yes"
8688 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8690 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8692 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8693 echo "configure:8694: checking assembler hidden support" >&5
8695 if test x
$gcc_cv_as != x
; then
8696 # Check if we have .hidden
8697 echo " .hidden foobar" > conftest.s
8698 echo "foobar:" >> conftest.s
8699 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8700 cat >> confdefs.h
<<\EOF
8701 #define HAVE_GAS_HIDDEN 1
8704 gcc_cv_as_hidden
="yes"
8706 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8708 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8712 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8713 echo "configure:8714: checking assembler .register pseudo-op support" >&5
8714 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8718 gcc_cv_as_register_pseudo_op
=unknown
8719 if test x
$gcc_cv_as != x
; then
8720 # Check if we have .register
8721 echo ".register %g2, #scratch" > conftest.s
8722 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8723 gcc_cv_as_register_pseudo_op
=yes
8725 gcc_cv_as_register_pseudo_op
=no
8727 rm -f conftest.s conftest.o
8732 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8733 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8734 cat >> confdefs.h
<<\EOF
8735 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8742 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8743 echo "configure:8744: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8744 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8748 if test -n "$gcc_cv_as"; then
8749 echo ".xword foo" > conftest.s
8750 gcc_cv_as_flags64
=no
8751 for flag
in "-xarch=v9" "-64 -Av9"; do
8752 if $gcc_cv_as $flag -o conftest.o conftest.s \
8753 > /dev
/null
2>&1; then
8754 gcc_cv_as_flags64
=$flag
8758 rm -f conftest.s conftest.o
8760 if test "$gas" = yes; then
8761 gcc_cv_as_flags64
="-64 -Av9"
8763 gcc_cv_as_flags64
="-xarch=v9"
8769 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8770 if test "x$gcc_cv_as_flags64" = xno
; then
8772 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8773 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8776 cat >> confdefs.h
<<EOF
8777 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8782 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8786 if test "x$gcc_cv_as_flags64" != xno
; then
8787 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8788 echo "configure:8789: checking for assembler offsetable %lo() support" >&5
8789 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8793 gcc_cv_as_offsetable_lo10
=unknown
8794 if test "x$gcc_cv_as" != x
; then
8795 # Check if assembler has offsetable %lo()
8796 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8797 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8798 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8800 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8801 > /dev
/null
2>&1; then
8802 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8803 gcc_cv_as_offsetable_lo10
=no
8805 gcc_cv_as_offsetable_lo10
=yes
8808 gcc_cv_as_offsetable_lo10
=no
8810 rm -f conftest.s conftest.o conftest1.s conftest1.o
8815 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8816 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8817 cat >> confdefs.h
<<\EOF
8818 #define HAVE_AS_OFFSETABLE_LO10 1
8826 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8827 echo "configure:8828: checking assembler instructions" >&5
8828 gcc_cv_as_instructions
=
8829 if test x
$gcc_cv_as != x
; then
8830 set "filds fists" "filds mem; fists mem"
8833 echo "$2" > conftest.s
8834 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8835 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8836 cat >> confdefs.h
<<EOF
8837 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8843 rm -f conftest.s conftest.o
8845 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8849 # Figure out what language subdirectories are present.
8850 # Look if the user specified --enable-languages="..."; if not, use
8851 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8853 if test x
"${enable_languages+set}" != xset
; then
8854 if test x
"${LANGUAGES+set}" = xset
; then
8855 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8857 enable_languages
=all
8861 for lang
in ${srcdir}/*/config-lang.
in ..
8865 # The odd quoting in the next line works around
8866 # an apparent bug in bash 1.12 on linux.
8867 ${srcdir}/[*]/config-lang.
in) ;;
8869 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8870 if test "x$lang_alias" = x
8872 echo "$lang doesn't set \$language." 1>&2
8875 if test x
"${enable_languages}" = xall
; then
8878 case "${enable_languages}" in
8879 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8887 if test x"${add_this_lang}" = xyes; then
8889 ${srcdir}/ada/config-lang.in)
8890 if test x$gnat = xyes ; then
8891 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8895 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8903 # Make gthr-default.h if we have a thread file.
8905 if test $thread_file != single; then
8906 rm -f gthr-default.h
8907 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8908 gthread_flags
=-DHAVE_GTHR_DEFAULT
8912 # Find out what GC implementation we want, or may, use.
8913 # Check whether --with-gc or --without-gc was given.
8914 if test "${with_gc+set}" = set; then
8921 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8925 if test $ac_cv_func_mmap_anywhere = yes \
8926 ||
test $ac_cv_func_valloc = yes; then
8934 echo "Using $GGC for garbage collection."
8936 # Build a new-abi (c++) system
8937 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
8938 if test "${enable_new_gxx_abi+set}" = set; then
8939 enableval
="$enable_new_gxx_abi"
8940 cat >> confdefs.h
<<\EOF
8941 #define ENABLE_NEW_GXX_ABI 1
8944 GXX_ABI_FLAG
='-fnew-abi'
8945 echo "Building a new-abi g++ compiler."
8951 # Build a new-libstdc++ system (ie libstdc++-v3)
8952 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
8953 echo "configure:8954: checking for libstdc++ to install" >&5
8954 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
8955 if test "${enable_libstdcxx_v3+set}" = set; then
8956 enableval
="$enable_libstdcxx_v3"
8957 enable_libstdcxx_v3
=yes
8959 enable_libstdcxx_v3
=no
8963 if test x
$enable_libstdcxx_v3 = xyes
; then
8964 echo "$ac_t""v3" 1>&6
8967 echo "$ac_t""v2" 1>&6
8970 cat >> confdefs.h
<<EOF
8971 #define ENABLE_STD_NAMESPACE $ac_esn
8975 # Make empty files to contain the specs and options for each language.
8976 # Then add #include lines to for a compiler that has specs and/or options.
8981 rm -f specs.h options.h gencheck.h
8982 touch specs.h options.h gencheck.h
8983 for subdir
in .
$subdirs
8985 if test -f $srcdir/$subdir/lang-specs.h
; then
8986 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8987 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8989 if test -f $srcdir/$subdir/lang-options.h
; then
8990 echo "#include \"$subdir/lang-options.h\"" >>options.h
8991 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8993 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8994 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8995 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8999 # These (without "all_") are set in each config-lang.in.
9000 # `language' must be a single word so is spelled singularly.
9006 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
9007 # List of language makefile fragments.
9012 # Add the language fragments.
9013 # Languages are added via two mechanisms. Some information must be
9014 # recorded in makefile variables, these are defined in config-lang.in.
9015 # We accumulate them and plug them into the main Makefile.
9016 # The other mechanism is a set of hooks for each of the main targets
9017 # like `clean', `install', etc.
9019 language_fragments
="Make-lang"
9020 language_hooks
="Make-hooks"
9023 for s
in ..
$subdirs
9035 .
${srcdir}/$s/config-lang.
in
9036 if test "x$language" = x
9038 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9041 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9042 all_languages
="$all_languages $language"
9043 if test "x$boot_language" = xyes
9045 all_boot_languages
="$all_boot_languages $language"
9047 all_compilers
="$all_compilers $compilers"
9048 all_stagestuff
="$all_stagestuff $stagestuff"
9049 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9050 all_headers
="$all_headers $headers"
9051 all_outputs
="$all_outputs $outputs"
9052 if test x
$outputs = x
9054 oldstyle_subdirs
="$oldstyle_subdirs $s"
9056 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9060 # Since we can't use `::' targets, we link each language in
9061 # with a set of hooks, reached indirectly via lang.${target}.
9065 target_list
="all.build all.cross start.encap rest.encap \
9067 install-normal install-common install-info install-man \
9069 mostlyclean clean distclean extraclean maintainer-clean \
9070 stage1 stage2 stage3 stage4"
9071 for t
in $target_list
9074 for lang
in ..
$all_languages
9076 if test $lang != ".."; then
9080 echo "lang.$t: $x" >> Make-hooks
9083 # If we're not building in srcdir, create .gdbinit.
9085 if test ! -f Makefile.
in; then
9086 echo "dir ." > .gdbinit
9087 echo "dir ${srcdir}" >> .gdbinit
9088 if test x
$gdb_needs_out_file_path = xyes
9090 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9092 if test "x$subdirs" != x
; then
9095 echo "dir ${srcdir}/$s" >> .gdbinit
9098 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9101 # Define variables host_canonical and build_canonical
9102 # because some Cygnus local changes in the Makefile depend on them.
9103 build_canonical
=${build}
9104 host_canonical
=${host}
9106 if test "${host}" != "${target}" ; then
9107 target_subdir
=${target}/
9113 # If this is using newlib, then define inhibit_libc in
9114 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9115 # libgcc.a, but that's OK because newib should have its own version of
9118 if test x
$with_newlib = xyes
; then
9119 inhibit_libc
=-Dinhibit_libc
9123 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9124 # absolute path for gcc_tooldir based on inserting the number of up-directory
9125 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9126 # $(libsubdir)/@(unlibsubdir) based path.
9127 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9128 # make and thus we'd get different behavior depending on where we built the
9130 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9131 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9133 # An explanation of the sed strings:
9134 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9135 # -e 's|/$||' match a trailing forward slash and eliminates it
9136 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9137 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9139 # (*) Note this pattern overwrites the first character of the string
9140 # with a forward slash if one is not already present. This is not a
9141 # problem because the exact names of the sub-directories concerned is
9142 # unimportant, just the number of them matters.
9144 # The practical upshot of these patterns is like this:
9146 # prefix exec_prefix result
9147 # ------ ----------- ------
9149 # /foo/ /foo/bar ../
9150 # /foo /foo/bar/ ../
9151 # /foo/ /foo/bar/ ../
9152 # /foo /foo/bar/ugg ../../
9155 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9160 # Nothing to do for FLOAT_H, float_format already handled.
9164 # Process the language and host/target makefile fragments.
9165 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9167 # Substitute configuration variables
9226 # Echo that links are built
9227 if test x
$host = x
$target
9235 if test x
$host != x
$build
9237 str3
=" on a $build system"
9240 if test "x$str2" != x ||
test "x$str3" != x
9245 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9247 if test "x$str2" != x ||
test "x$str3" != x
9249 echo " ${str2}${str3}." 1>&2
9252 # Truncate the target if necessary
9253 if test x
$host_truncate_target != x
; then
9254 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9257 # Configure the subdirectories
9258 # AC_CONFIG_SUBDIRS($subdirs)
9260 # Create the Makefile
9261 # and configure language subdirectories
9263 cat > confcache
<<\EOF
9264 # This file is a shell script that caches the results of configure
9265 # tests run on this system so they can be shared between configure
9266 # scripts and configure runs. It is not useful on other systems.
9267 # If it contains results you don't want to keep, you may remove or edit it.
9269 # By default, configure uses ./config.cache as the cache file,
9270 # creating it if it does not exist already. You can give configure
9271 # the --cache-file=FILE option to use a different cache file; that is
9272 # what configure does when it calls configure scripts in
9273 # subdirectories, so they share the cache.
9274 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9275 # config.status only pays attention to the cache file if you give it the
9276 # --recheck option to rerun configure.
9279 # The following way of writing the cache mishandles newlines in values,
9280 # but we know of no workaround that is simple, portable, and efficient.
9281 # So, don't put newlines in cache variables' values.
9282 # Ultrix sh set writes to stderr and can't be redirected directly,
9283 # and sets the high bit in the cache file unless we assign to the vars.
9285 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9287 # `set' does not quote correctly, so add quotes (double-quote substitution
9288 # turns \\\\ into \\, and sed turns \\ into \).
9290 -e "s/'/'\\\\''/g" \
9291 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9294 # `set' quotes correctly as required by POSIX, so do not add quotes.
9295 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9298 if cmp -s $cache_file confcache
; then
9301 if test -w $cache_file; then
9302 echo "updating cache $cache_file"
9303 cat confcache
> $cache_file
9305 echo "not updating unwritable cache $cache_file"
9310 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9312 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9313 # Let make expand exec_prefix.
9314 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9316 # Any assignment to VPATH causes Sun make to only execute
9317 # the first set of double-colon rules, so remove it if not needed.
9318 # If there is a colon in the path, we need to keep it.
9319 if test "x$srcdir" = x.
; then
9320 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9323 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9325 DEFS
=-DHAVE_CONFIG_H
9327 # Without the "./", some shells look in PATH for config.status.
9328 : ${CONFIG_STATUS=./config.status}
9330 echo creating
$CONFIG_STATUS
9331 rm -f $CONFIG_STATUS
9332 cat > $CONFIG_STATUS <<EOF
9334 # Generated automatically by configure.
9335 # Run this file to recreate the current configuration.
9336 # This directory was configured as follows,
9337 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9339 # $0 $ac_configure_args
9341 # Compiler output produced by configure, useful for debugging
9342 # configure, is in ./config.log if it exists.
9344 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9347 case "\$ac_option" in
9348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9349 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9350 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9351 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9352 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9354 -help | --help | --hel | --he | --h)
9355 echo "\$ac_cs_usage"; exit 0 ;;
9356 *) echo "\$ac_cs_usage"; exit 1 ;;
9360 ac_given_srcdir=$srcdir
9362 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9364 cat >> $CONFIG_STATUS <<EOF
9366 # Protect against being on the right side of a sed subst in config.status.
9367 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9368 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9372 s%@CFLAGS@%$CFLAGS%g
9373 s%@CPPFLAGS@%$CPPFLAGS%g
9374 s%@CXXFLAGS@%$CXXFLAGS%g
9375 s%@FFLAGS@%$FFLAGS%g
9377 s%@LDFLAGS@%$LDFLAGS%g
9379 s%@exec_prefix@%$exec_prefix%g
9380 s%@prefix@%$prefix%g
9381 s%@program_transform_name@%$program_transform_name%g
9382 s%@bindir@%$bindir%g
9383 s%@sbindir@%$sbindir%g
9384 s%@libexecdir@%$libexecdir%g
9385 s%@datadir@%$datadir%g
9386 s%@sysconfdir@%$sysconfdir%g
9387 s%@sharedstatedir@%$sharedstatedir%g
9388 s%@localstatedir@%$localstatedir%g
9389 s%@libdir@%$libdir%g
9390 s%@includedir@%$includedir%g
9391 s%@oldincludedir@%$oldincludedir%g
9392 s%@infodir@%$infodir%g
9393 s%@mandir@%$mandir%g
9395 s%@host_alias@%$host_alias%g
9396 s%@host_cpu@%$host_cpu%g
9397 s%@host_vendor@%$host_vendor%g
9398 s%@host_os@%$host_os%g
9399 s%@target@%$target%g
9400 s%@target_alias@%$target_alias%g
9401 s%@target_cpu@%$target_cpu%g
9402 s%@target_vendor@%$target_vendor%g
9403 s%@target_os@%$target_os%g
9405 s%@build_alias@%$build_alias%g
9406 s%@build_cpu@%$build_cpu%g
9407 s%@build_vendor@%$build_vendor%g
9408 s%@build_os@%$build_os%g
9410 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9411 s%@SET_MAKE@%$SET_MAKE%g
9414 s%@LEXLIB@%$LEXLIB%g
9417 s%@RANLIB@%$RANLIB%g
9419 s%@INSTALL@%$INSTALL%g
9420 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9421 s%@INSTALL_DATA@%$INSTALL_DATA%g
9424 s%@MAKEINFO@%$MAKEINFO%g
9425 s%@BUILD_INFO@%$BUILD_INFO%g
9426 s%@INSTALL_INFO@%$INSTALL_INFO%g
9427 s%@vfprintf@%$vfprintf%g
9428 s%@doprint@%$doprint%g
9429 s%@manext@%$manext%g
9430 s%@objext@%$objext%g
9431 s%@PACKAGE@%$PACKAGE%g
9432 s%@VERSION@%$VERSION%g
9433 s%@ALLOCA@%$ALLOCA%g
9434 s%@USE_NLS@%$USE_NLS%g
9435 s%@MSGFMT@%$MSGFMT%g
9436 s%@GMSGFMT@%$GMSGFMT%g
9437 s%@XGETTEXT@%$XGETTEXT%g
9438 s%@GENCAT@%$GENCAT%g
9439 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9440 s%@CATALOGS@%$CATALOGS%g
9441 s%@CATOBJEXT@%$CATOBJEXT%g
9442 s%@DATADIRNAME@%$DATADIRNAME%g
9443 s%@GMOFILES@%$GMOFILES%g
9444 s%@INSTOBJEXT@%$INSTOBJEXT%g
9445 s%@INTLDEPS@%$INTLDEPS%g
9446 s%@INTLLIBS@%$INTLLIBS%g
9447 s%@INTLOBJS@%$INTLOBJS%g
9448 s%@POFILES@%$POFILES%g
9450 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9452 s%@GT_YES@%$GT_YES%g
9453 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9455 s%@gthread_flags@%$gthread_flags%g
9457 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9458 s%@build_canonical@%$build_canonical%g
9459 s%@host_canonical@%$host_canonical%g
9460 s%@target_subdir@%$target_subdir%g
9461 s%@inhibit_libc@%$inhibit_libc%g
9462 s%@gcc_tooldir@%$gcc_tooldir%g
9463 s%@dollar@%$dollar%g
9464 s%@objdir@%$objdir%g
9465 s%@subdirs@%$subdirs%g
9466 s%@all_boot_languages@%$all_boot_languages%g
9467 s%@all_compilers@%$all_compilers%g
9468 s%@all_diff_excludes@%$all_diff_excludes%g
9469 s%@all_headers@%$all_headers%g
9470 s%@all_lang_makefiles@%$all_lang_makefiles%g
9471 s%@all_languages@%$all_languages%g
9472 s%@all_lib2funcs@%$all_lib2funcs%g
9473 s%@all_stagestuff@%$all_stagestuff%g
9474 s%@build_exeext@%$build_exeext%g
9475 s%@build_install_headers_dir@%$build_install_headers_dir%g
9476 s%@build_xm_file_list@%$build_xm_file_list%g
9477 s%@cc_set_by_configure@%$cc_set_by_configure%g
9478 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9479 s%@cpp_install_dir@%$cpp_install_dir%g
9480 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9481 s%@dep_tmake_file@%$dep_tmake_file%g
9482 s%@extra_c_flags@%$extra_c_flags%g
9483 s%@extra_c_objs@%$extra_c_objs%g
9484 s%@extra_cpp_objs@%$extra_cpp_objs%g
9485 s%@extra_cxx_objs@%$extra_cxx_objs%g
9486 s%@extra_headers_list@%$extra_headers_list%g
9487 s%@extra_objs@%$extra_objs%g
9488 s%@extra_parts@%$extra_parts%g
9489 s%@extra_passes@%$extra_passes%g
9490 s%@extra_programs@%$extra_programs%g
9491 s%@float_h_file@%$float_h_file%g
9492 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9493 s%@gcc_version@%$gcc_version%g
9494 s%@gcc_version_trigger@%$gcc_version_trigger%g
9495 s%@host_exeext@%$host_exeext%g
9496 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9497 s%@host_xm_file_list@%$host_xm_file_list%g
9498 s%@install@%$install%g
9499 s%@lang_options_files@%$lang_options_files%g
9500 s%@lang_specs_files@%$lang_specs_files%g
9501 s%@lang_tree_files@%$lang_tree_files%g
9502 s%@local_prefix@%$local_prefix%g
9503 s%@maybe_use_collect2@%$maybe_use_collect2%g
9504 s%@md_file@%$md_file%g
9505 s%@objc_boehm_gc@%$objc_boehm_gc%g
9506 s%@out_file@%$out_file%g
9507 s%@out_object_file@%$out_object_file%g
9508 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9509 s%@symbolic_link@%$symbolic_link%g
9510 s%@thread_file@%$thread_file%g
9511 s%@tm_file_list@%$tm_file_list%g
9512 s%@will_use_collect2@%$will_use_collect2%g
9513 /@target_overrides@/r $target_overrides
9514 s%@target_overrides@%%g
9515 /@host_overrides@/r $host_overrides
9516 s%@host_overrides@%%g
9517 s%@cross_defines@%$cross_defines%g
9518 /@cross_overrides@/r $cross_overrides
9519 s%@cross_overrides@%%g
9520 /@build_overrides@/r $build_overrides
9521 s%@build_overrides@%%g
9522 /@language_fragments@/r $language_fragments
9523 s%@language_fragments@%%g
9524 /@language_hooks@/r $language_hooks
9525 s%@language_hooks@%%g
9530 cat >> $CONFIG_STATUS <<\EOF
9532 # Split the substitutions into bite-sized pieces for seds with
9533 # small command number limits, like on Digital OSF/1 and HP-UX.
9534 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9535 ac_file
=1 # Number of current file.
9536 ac_beg
=1 # First line for current file.
9537 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9540 while $ac_more_lines; do
9541 if test $ac_beg -gt 1; then
9542 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9544 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9546 if test ! -s conftest.s
$ac_file; then
9548 rm -f conftest.s
$ac_file
9550 if test -z "$ac_sed_cmds"; then
9551 ac_sed_cmds
="sed -f conftest.s$ac_file"
9553 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9555 ac_file
=`expr $ac_file + 1`
9557 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9560 if test -z "$ac_sed_cmds"; then
9565 cat >> $CONFIG_STATUS <<EOF
9567 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9569 cat >> $CONFIG_STATUS <<\EOF
9570 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9573 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9574 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9575 *) ac_file_in
="${ac_file}.in" ;;
9578 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9580 # Remove last slash and all that follows it. Not all systems have dirname.
9581 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9582 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9583 # The file is in a subdirectory.
9584 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9585 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9586 # A "../" for each directory in $ac_dir_suffix.
9587 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9589 ac_dir_suffix
= ac_dots
=
9592 case "$ac_given_srcdir" in
9594 if test -z "$ac_dots"; then top_srcdir
=.
9595 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9596 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9598 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9599 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9603 echo creating
"$ac_file"
9605 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9607 *Makefile
*) ac_comsub
="1i\\
9608 # $configure_input" ;;
9612 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9614 s%@configure_input@%$configure_input%g
9615 s%@srcdir@%$srcdir%g
9616 s%@top_srcdir@%$top_srcdir%g
9617 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9621 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9622 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9624 # ac_d sets the value in "#define NAME VALUE" lines.
9625 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9626 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9629 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9630 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9631 ac_uB
='\([ ]\)%\1#\2define\3'
9634 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9635 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9636 ac_eB
='$%\1#\2define\3'
9640 if test "${CONFIG_HEADERS+set}" != set; then
9642 cat >> $CONFIG_STATUS <<EOF
9643 CONFIG_HEADERS="auto-host.h:config.in"
9645 cat >> $CONFIG_STATUS <<\EOF
9647 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9648 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9650 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9651 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9652 *) ac_file_in
="${ac_file}.in" ;;
9655 echo creating
$ac_file
9657 rm -f conftest.frag conftest.
in conftest.out
9658 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9659 cat $ac_file_inputs > conftest.
in
9663 # Transform confdefs.h into a sed script conftest.vals that substitutes
9664 # the proper values into config.h.in to produce config.h. And first:
9665 # Protect against being on the right side of a sed subst in config.status.
9666 # Protect against being in an unquoted here document in config.status.
9668 cat > conftest.hdr
<<\EOF
9671 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9675 sed -n -f conftest.hdr confdefs.h > conftest.vals
9678 # This sed command replaces #undef with comments. This is necessary, for
9679 # example, in the case of _POSIX_SOURCE, which is predefined and required
9680 # on some systems where configure will not decide to define it.
9681 cat >> conftest.vals <<\EOF
9682 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9685 # Break up conftest.vals because some shells have a limit on
9686 # the size of here documents, and old seds have small limits too.
9691 ac_lines=`grep -c . conftest.vals
`
9692 # grep -c gives empty output for an empty file on some AIX systems.
9693 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9694 # Write a limited-size here document to conftest.frag.
9695 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9696 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9698 sed -f conftest.frag conftest.in > conftest.out
9700 mv conftest.out conftest.in
9702 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9704 mv conftest.tail conftest.vals
9708 cat >> $CONFIG_STATUS <<\EOF
9709 rm -f conftest.frag conftest.h
9710 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9711 cat conftest.in >> conftest.h
9713 if cmp -s $ac_file conftest.h 2>/dev/null; then
9714 echo "$ac_file is unchanged"
9717 # Remove last slash and all that follows it. Not all systems have dirname.
9718 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9719 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9720 # The file is in a subdirectory.
9721 test ! -d "$ac_dir" && mkdir "$ac_dir"
9724 mv conftest.h $ac_file
9730 cat >> $CONFIG_STATUS <<EOF
9731 ac_sources="$nls_cv_header_libgt"
9732 ac_dests="$nls_cv_header_intl"
9735 cat >> $CONFIG_STATUS <<\EOF
9736 srcdir=$ac_given_srcdir
9737 while test -n "$ac_sources"; do
9738 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9739 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9741 echo "linking $srcdir/$ac_source to $ac_dest"
9743 if test ! -r $srcdir/$ac_source; then
9744 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9748 # Make relative symlinks.
9749 # Remove last slash and all that follows it. Not all systems have dirname.
9750 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9751 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9752 # The dest file is in a subdirectory.
9753 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9754 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9755 # A "../" for each directory in $ac_dest_dir_suffix.
9756 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9758 ac_dest_dir_suffix= ac_dots=
9762 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9763 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9766 # Make a symlink if possible; otherwise try a hard link.
9767 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9768 ln $srcdir/$ac_source $ac_dest; then :
9770 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9774 cat >> $CONFIG_STATUS <<EOF
9780 target_alias='${target_alias}'
9782 subdirs='${subdirs}'
9783 oldstyle_subdirs='${oldstyle_subdirs}'
9784 symbolic_link='${symbolic_link}'
9785 program_transform_set='${program_transform_set}'
9786 program_transform_name='${program_transform_name}'
9787 dep_host_xmake_file='${dep_host_xmake_file}'
9788 host_xmake_file='${host_xmake_file}'
9789 dep_tmake_file='${dep_tmake_file}'
9790 tmake_file='${tmake_file}'
9791 thread_file='${thread_file}'
9792 gcc_version='${gcc_version}'
9793 gcc_version_trigger='${gcc_version_trigger}'
9794 local_prefix='${local_prefix}'
9795 build_install_headers_dir='${build_install_headers_dir}'
9796 build_exeext='${build_exeext}'
9797 host_exeext='${host_exeext}'
9798 out_file='${out_file}'
9799 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9800 SET_MAKE='${SET_MAKE}'
9801 target_list='${target_list}'
9802 target_overrides='${target_overrides}'
9803 host_overrides='${host_overrides}'
9804 cross_defines='${cross_defines}'
9805 cross_overrides='${cross_overrides}'
9806 build_overrides='${build_overrides}'
9807 cpp_install_dir='${cpp_install_dir}'
9810 cat >> $CONFIG_STATUS <<\EOF
9811 case "$CONFIG_FILES" in *po/Makefile.in*)
9812 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9815 . $srcdir/configure.lang
9816 case x$CONFIG_HEADERS in
9817 xauto-host.h:config.in)
9820 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9821 # bootstrapping and the installation procedure can still use
9822 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9823 # FLAGS_TO_PASS has been modified to solve the problem there.
9824 # This is virtually a duplicate of what happens in configure.lang; we do
9825 # an extra check to make sure this only happens if ln -s can be used.
9826 if test "$symbolic_link" = "ln -s"; then
9827 for d in .. ${subdirs} ; do
9828 if test $d != ..; then
9831 for t in stage1 stage2 stage3 stage4 include
9834 $symbolic_link ../$t $t 2>/dev/null
9840 # Avoid having to add intl to our include paths.
9841 if test -f intl/libintl.h; then
9842 echo creating libintl.h
9843 echo '#include "intl/libintl.h"' >libintl.h
9848 chmod +x $CONFIG_STATUS
9849 rm -fr confdefs* $ac_clean_files
9850 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1