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 if test "x$CC" != xcc
; then
1254 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether $CC and cc understand -c and -o together" >&5
1257 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether cc understands -c and -o together" >&5
1260 set dummy
$CC; ac_cc
="`echo $2 |
1261 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1262 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 echo 'foo(){}' > conftest.c
1266 # Make sure it works both with $CC and with simple cc.
1267 # We do the test twice because some compilers refuse to overwrite an
1268 # existing .o file with -o, though they will create one.
1269 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1270 if { (eval echo configure
:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1271 test -f conftest.o
&& { (eval echo configure
:1272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1273 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1274 if test "x$CC" != xcc
; then
1275 # Test first that cc exists at all.
1276 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1277 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1278 if { (eval echo configure
:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1279 test -f conftest.o
&& { (eval echo configure
:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1284 # cc exists but doesn't like -o.
1285 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1290 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1295 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1296 echo "$ac_t""yes" 1>&6
1298 echo "$ac_t""no" 1>&6
1299 cat >> confdefs.h
<<\EOF
1300 #define NO_MINUS_C_MINUS_O 1
1305 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1306 NO_MINUS_C_MINUS_O
=yes
1310 echo $ac_n "checking for long double""... $ac_c" 1>&6
1311 echo "configure:1312: checking for long double" >&5
1312 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 if test "$GCC" = yes; then
1316 gcc_cv_c_long_double
=yes
1318 cat > conftest.
$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1323 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1324 long double foo = 0.0;
1325 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1326 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1329 if { (eval echo configure
:1330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1331 gcc_cv_c_long_double
=yes
1333 echo "configure: failed program was:" >&5
1334 cat conftest.
$ac_ext >&5
1336 gcc_cv_c_long_double
=no
1342 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1343 if test $gcc_cv_c_long_double = yes; then
1344 cat >> confdefs.h
<<\EOF
1345 #define HAVE_LONG_DOUBLE 1
1351 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1352 echo "configure:1353: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1353 echo 'void f(){}' > conftest.c
1354 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
1355 ac_cv_prog_cc_no_long_long
=yes
1357 ac_cv_prog_cc_no_long_long
=no
1360 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
1362 # If the native compiler is GCC, we can enable warnings even in stage1.
1363 # That's useful for people building cross-compilers, or just running a
1365 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings"
1366 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1367 if test "x$GCC" = "xyes"; then
1368 if test $ac_cv_prog_cc_no_long_long = yes; then
1369 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1372 stage1_warn_cflags
=""
1377 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1378 echo "configure:1379: checking whether ${MAKE-make} sets \${MAKE}" >&5
1379 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1380 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftestmake
<<\EOF
1385 @
echo 'ac_maketemp="${MAKE}"'
1387 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1388 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1389 if test -n "$ac_maketemp"; then
1390 eval ac_cv_prog_make_
${ac_make}_set
=yes
1392 eval ac_cv_prog_make_
${ac_make}_set
=no
1396 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1400 echo "$ac_t""no" 1>&6
1401 SET_MAKE
="MAKE=${MAKE-make}"
1405 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1406 echo "configure:1407: checking whether a default assembler was specified" >&5
1407 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1408 if test x
"$gas_flag" = x
"no"; then
1409 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1411 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1414 echo "$ac_t""no" 1>&6
1417 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether a default linker was specified" >&5
1419 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1420 if test x
"$gnu_ld_flag" = x
"no"; then
1421 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1423 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1426 echo "$ac_t""no" 1>&6
1429 # Find some useful tools
1430 for ac_prog
in mawk gawk nawk
awk
1432 # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy
$ac_prog; ac_word
=$2
1434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1435 echo "configure:1436: checking for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 if test -n "$AWK"; then
1440 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1442 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1444 for ac_dir
in $ac_dummy; do
1445 test -z "$ac_dir" && ac_dir
=.
1446 if test -f $ac_dir/$ac_word; then
1447 ac_cv_prog_AWK
="$ac_prog"
1454 AWK
="$ac_cv_prog_AWK"
1455 if test -n "$AWK"; then
1456 echo "$ac_t""$AWK" 1>&6
1458 echo "$ac_t""no" 1>&6
1461 test -n "$AWK" && break
1464 # Extract the first word of "flex", so it can be a program name with args.
1465 set dummy flex
; ac_word
=$2
1466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1467 echo "configure:1468: checking for $ac_word" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 if test -n "$LEX"; then
1472 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1474 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1476 for ac_dir
in $ac_dummy; do
1477 test -z "$ac_dir" && ac_dir
=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_prog_LEX
="flex"
1484 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1487 LEX
="$ac_cv_prog_LEX"
1488 if test -n "$LEX"; then
1489 echo "$ac_t""$LEX" 1>&6
1491 echo "$ac_t""no" 1>&6
1494 if test -z "$LEXLIB"
1500 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1501 echo "configure:1502: checking for yywrap in -l$ac_lib" >&5
1502 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 ac_save_LIBS
="$LIBS"
1507 LIBS
="-l$ac_lib $LIBS"
1508 cat > conftest.
$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1511 /* Override any gcc2 internal prototype to avoid an error. */
1512 /* We use char because int might match the return type of a gcc2
1513 builtin and then its argument prototype would still apply. */
1520 if { (eval echo configure
:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1522 eval "ac_cv_lib_$ac_lib_var=yes"
1524 echo "configure: failed program was:" >&5
1525 cat conftest.
$ac_ext >&5
1527 eval "ac_cv_lib_$ac_lib_var=no"
1530 LIBS
="$ac_save_LIBS"
1533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1534 echo "$ac_t""yes" 1>&6
1537 echo "$ac_t""no" 1>&6
1542 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1543 echo "configure:1544: checking whether ln works" >&5
1544 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 rm -f conftestdata_t
1548 echo >conftestdata_f
1549 if ln conftestdata_f conftestdata_t
2>/dev
/null
1553 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1555 gcc_cv_prog_LN
="ln -s"
1560 rm -f conftestdata_f conftestdata_t
1563 LN
="$gcc_cv_prog_LN"
1564 if test "$gcc_cv_prog_LN" = "ln"; then
1565 echo "$ac_t""yes" 1>&6
1567 if test "$gcc_cv_prog_LN" = "ln -s"; then
1568 echo "$ac_t""no, using ln -s" 1>&6
1570 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1574 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1575 echo "configure:1576: checking whether ln -s works" >&5
1576 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 rm -f conftestdata_t
1580 echo >conftestdata_f
1581 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1583 gcc_cv_prog_LN_S
="ln -s"
1585 if ln conftestdata_f conftestdata_t
2>/dev
/null
1592 rm -f conftestdata_f conftestdata_t
1595 LN_S
="$gcc_cv_prog_LN_S"
1596 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1597 echo "$ac_t""yes" 1>&6
1599 if test "$gcc_cv_prog_LN_S" = "ln"; then
1600 echo "$ac_t""no, using ln" 1>&6
1602 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1606 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1607 echo "configure:1608: checking for volatile" >&5
1608 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 cat > conftest.
$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1619 if { (eval echo configure
:1620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1621 gcc_cv_c_volatile
=yes
1623 echo "configure: failed program was:" >&5
1624 cat conftest.
$ac_ext >&5
1626 gcc_cv_c_volatile
=no
1631 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1632 if test $gcc_cv_c_volatile = yes ; then
1633 cat >> confdefs.h
<<\EOF
1634 #define HAVE_VOLATILE 1
1639 # Extract the first word of "ranlib", so it can be a program name with args.
1640 set dummy ranlib
; ac_word
=$2
1641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $ac_word" >&5
1643 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 if test -n "$RANLIB"; then
1647 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1649 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1651 for ac_dir
in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir
=.
1653 if test -f $ac_dir/$ac_word; then
1654 ac_cv_prog_RANLIB
="ranlib"
1659 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1662 RANLIB
="$ac_cv_prog_RANLIB"
1663 if test -n "$RANLIB"; then
1664 echo "$ac_t""$RANLIB" 1>&6
1666 echo "$ac_t""no" 1>&6
1669 for ac_prog
in 'bison -y' byacc
1671 # Extract the first word of "$ac_prog", so it can be a program name with args.
1672 set dummy
$ac_prog; ac_word
=$2
1673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1674 echo "configure:1675: checking for $ac_word" >&5
1675 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 if test -n "$YACC"; then
1679 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1681 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1683 for ac_dir
in $ac_dummy; do
1684 test -z "$ac_dir" && ac_dir
=.
1685 if test -f $ac_dir/$ac_word; then
1686 ac_cv_prog_YACC
="$ac_prog"
1693 YACC
="$ac_cv_prog_YACC"
1694 if test -n "$YACC"; then
1695 echo "$ac_t""$YACC" 1>&6
1697 echo "$ac_t""no" 1>&6
1700 test -n "$YACC" && break
1702 test -n "$YACC" || YACC
="yacc"
1704 # Find a good install program. We prefer a C program (faster),
1705 # so one script is as good as another. But avoid the broken or
1706 # incompatible versions:
1707 # SysV /etc/install, /usr/sbin/install
1708 # SunOS /usr/etc/install
1709 # IRIX /sbin/install
1711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1713 # ./install, which can be erroneously created by make from ./install.sh.
1714 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1715 echo "configure:1716: checking for a BSD compatible install" >&5
1716 if test -z "$INSTALL"; then
1717 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1721 for ac_dir
in $PATH; do
1722 # Account for people who put trailing slashes in PATH elements.
1724 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 for ac_prog
in ginstall scoinst
install; do
1728 if test -f $ac_dir/$ac_prog; then
1729 if test $ac_prog = install &&
1730 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1731 # AIX install. It has an incompatible calling convention.
1732 # OSF/1 installbsd also uses dspmsg, but is usable.
1735 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1746 if test "${ac_cv_path_install+set}" = set; then
1747 INSTALL
="$ac_cv_path_install"
1749 # As a last resort, use the slow shell script. We don't cache a
1750 # path for INSTALL within a source directory, because that will
1751 # break other packages using the cache if that directory is
1752 # removed, or if the path is relative.
1753 INSTALL
="$ac_install_sh"
1756 echo "$ac_t""$INSTALL" 1>&6
1758 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1759 # It thinks the first close brace ends the variable substitution.
1760 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1762 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1765 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1766 echo "configure:1767: checking how to run the C preprocessor" >&5
1767 # On Suns, sometimes $CPP names a directory.
1768 if test -n "$CPP" && test -d "$CPP"; then
1771 if test -z "$CPP"; then
1772 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 # This must be in double quotes, not single quotes, because CPP may get
1776 # substituted into the Makefile and "${CC-cc}" will confuse make.
1778 # On the NeXT, cc -E runs the code through the compiler's parser,
1779 # not just through cpp.
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1787 { (eval echo configure
:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1788 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1789 if test -z "$ac_err"; then
1793 echo "configure: failed program was:" >&5
1794 cat conftest.
$ac_ext >&5
1796 CPP
="${CC-cc} -E -traditional-cpp"
1797 cat > conftest.
$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1803 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1804 { (eval echo configure
:1805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1805 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1806 if test -z "$ac_err"; then
1810 echo "configure: failed program was:" >&5
1811 cat conftest.
$ac_ext >&5
1813 CPP
="${CC-cc} -nologo -E"
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure
:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1827 echo "configure: failed program was:" >&5
1828 cat conftest.
$ac_ext >&5
1837 ac_cv_prog_CPP
="$CPP"
1839 CPP
="$ac_cv_prog_CPP"
1841 ac_cv_prog_CPP
="$CPP"
1843 echo "$ac_t""$CPP" 1>&6
1845 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1846 echo "configure:1847: checking for ANSI C header files" >&5
1847 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.
$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1858 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1859 { (eval echo configure
:1860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1860 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1861 if test -z "$ac_err"; then
1863 ac_cv_header_stdc
=yes
1866 echo "configure: failed program was:" >&5
1867 cat conftest.
$ac_ext >&5
1869 ac_cv_header_stdc
=no
1873 if test $ac_cv_header_stdc = yes; then
1874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1875 cat > conftest.
$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1881 egrep "memchr" >/dev
/null
2>&1; then
1885 ac_cv_header_stdc
=no
1891 if test $ac_cv_header_stdc = yes; then
1892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1893 cat > conftest.
$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1899 egrep "free" >/dev
/null
2>&1; then
1903 ac_cv_header_stdc
=no
1909 if test $ac_cv_header_stdc = yes; then
1910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1911 if test "$cross_compiling" = yes; then
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1918 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1919 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1921 int main () { int i; for (i = 0; i < 256; i++)
1922 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1926 if { (eval echo configure
:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1930 echo "configure: failed program was:" >&5
1931 cat conftest.
$ac_ext >&5
1933 ac_cv_header_stdc
=no
1941 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1942 if test $ac_cv_header_stdc = yes; then
1943 cat >> confdefs.h
<<\EOF
1944 #define STDC_HEADERS 1
1949 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1950 echo "configure:1951: checking whether time.h and sys/time.h may both be included" >&5
1951 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.
$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1957 #include <sys/types.h>
1958 #include <sys/time.h>
1964 if { (eval echo configure
:1965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1966 ac_cv_header_time
=yes
1968 echo "configure: failed program was:" >&5
1969 cat conftest.
$ac_ext >&5
1971 ac_cv_header_time
=no
1976 echo "$ac_t""$ac_cv_header_time" 1>&6
1977 if test $ac_cv_header_time = yes; then
1978 cat >> confdefs.h
<<\EOF
1979 #define TIME_WITH_SYS_TIME 1
1984 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1985 echo "configure:1986: checking whether string.h and strings.h may both be included" >&5
1986 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 cat > conftest.
$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1993 #include <strings.h>
1998 if { (eval echo configure
:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2000 gcc_cv_header_string
=yes
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2005 gcc_cv_header_string
=no
2010 echo "$ac_t""$gcc_cv_header_string" 1>&6
2011 if test $gcc_cv_header_string = yes; then
2012 cat >> confdefs.h
<<\EOF
2013 #define STRING_WITH_STRINGS 1
2018 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2019 echo "configure:2020: checking for sys/wait.h that is POSIX.1 compatible" >&5
2020 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 #include <sys/types.h>
2027 #include <sys/wait.h>
2029 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2032 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2037 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2040 if { (eval echo configure
:2041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2042 ac_cv_header_sys_wait_h
=yes
2044 echo "configure: failed program was:" >&5
2045 cat conftest.
$ac_ext >&5
2047 ac_cv_header_sys_wait_h
=no
2052 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2053 if test $ac_cv_header_sys_wait_h = yes; then
2054 cat >> confdefs.h
<<\EOF
2055 #define HAVE_SYS_WAIT_H 1
2060 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2061 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2062 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2065 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2067 echo "configure:2068: checking for $ac_hdr" >&5
2068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 cat > conftest.
$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2076 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2077 { (eval echo configure
:2078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2078 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2079 if test -z "$ac_err"; then
2081 eval "ac_cv_header_$ac_safe=yes"
2084 echo "configure: failed program was:" >&5
2085 cat conftest.
$ac_ext >&5
2087 eval "ac_cv_header_$ac_safe=no"
2091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2092 echo "$ac_t""yes" 1>&6
2093 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2094 cat >> confdefs.h
<<EOF
2095 #define $ac_tr_hdr 1
2099 echo "$ac_t""no" 1>&6
2104 # Check for thread headers.
2105 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2106 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2107 echo "configure:2108: checking for thread.h" >&5
2108 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.
$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2116 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2117 { (eval echo configure
:2118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2118 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2119 if test -z "$ac_err"; then
2121 eval "ac_cv_header_$ac_safe=yes"
2124 echo "configure: failed program was:" >&5
2125 cat conftest.
$ac_ext >&5
2127 eval "ac_cv_header_$ac_safe=no"
2131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2132 echo "$ac_t""yes" 1>&6
2135 echo "$ac_t""no" 1>&6
2139 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2140 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2141 echo "configure:2142: checking for pthread.h" >&5
2142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 #include <pthread.h>
2150 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2151 { (eval echo configure
:2152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2152 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2153 if test -z "$ac_err"; then
2155 eval "ac_cv_header_$ac_safe=yes"
2158 echo "configure: failed program was:" >&5
2159 cat conftest.
$ac_ext >&5
2161 eval "ac_cv_header_$ac_safe=no"
2165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2169 echo "$ac_t""no" 1>&6
2174 # See if GNAT has been installed
2175 # Extract the first word of "gnatbind", so it can be a program name with args.
2176 set dummy gnatbind
; ac_word
=$2
2177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_word" >&5
2179 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 if test -n "$gnat"; then
2183 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2187 for ac_dir
in $ac_dummy; do
2188 test -z "$ac_dir" && ac_dir
=.
2189 if test -f $ac_dir/$ac_word; then
2190 ac_cv_prog_gnat
="yes"
2195 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2198 gnat
="$ac_cv_prog_gnat"
2199 if test -n "$gnat"; then
2200 echo "$ac_t""$gnat" 1>&6
2202 echo "$ac_t""no" 1>&6
2206 # Do we have a single-tree copy of texinfo?
2207 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2208 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2209 gcc_cv_prog_makeinfo_modern
=yes
2210 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2212 # See if makeinfo has been installed and is modern enough
2213 # that we can use it.
2214 # Extract the first word of "makeinfo", so it can be a program name with args.
2215 set dummy makeinfo
; ac_word
=$2
2216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_word" >&5
2218 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 if test -n "$MAKEINFO"; then
2222 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2224 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2226 for ac_dir
in $ac_dummy; do
2227 test -z "$ac_dir" && ac_dir
=.
2228 if test -f $ac_dir/$ac_word; then
2229 ac_cv_prog_MAKEINFO
="makeinfo"
2236 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2237 if test -n "$MAKEINFO"; then
2238 echo "$ac_t""$MAKEINFO" 1>&6
2240 echo "$ac_t""no" 1>&6
2243 if test -n "$MAKEINFO"; then
2244 # Found it, now check the version.
2245 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2246 echo "configure:2247: checking for modern makeinfo" >&5
2247 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2251 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2252 echo "configure:2253: version of makeinfo is $ac_prog_version" >&5
2253 case $ac_prog_version in
2254 '') gcc_cv_prog_makeinfo_modern
=no
;;
2255 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2256 gcc_cv_prog_makeinfo_modern
=yes;;
2257 *) gcc_cv_prog_makeinfo_modern
=no
;;
2262 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2264 gcc_cv_prog_makeinfo_modern
=no
2269 if test $gcc_cv_prog_makeinfo_modern = no
; then
2270 echo "configure: warning:
2271 *** Makeinfo is missing or too old.
2272 *** Info documentation will not be built or installed." 1>&2
2277 INSTALL_INFO
=install-info
2280 # See if the stage1 system preprocessor understands the ANSI C
2281 # preprocessor stringification operator.
2284 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2285 echo "configure:2286: checking for preprocessor stringizing operator" >&5
2286 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.
$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2295 char *s = x(teststring);
2298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2299 egrep "#teststring" >/dev
/null
2>&1; then
2301 ac_cv_c_stringize
=no
2304 ac_cv_c_stringize
=yes
2310 if test "${ac_cv_c_stringize}" = yes
2312 cat >> confdefs.h
<<\EOF
2313 #define HAVE_STRINGIZE 1
2317 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2320 # Use <inttypes.h> only if it exists,
2321 # doesn't clash with <sys/types.h>, and declares intmax_t.
2322 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2323 echo "configure:2324: checking for inttypes.h" >&5
2324 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 cat > conftest.
$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 #include <sys/types.h>
2331 #include <inttypes.h>
2336 if { (eval echo configure
:2337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2338 gcc_cv_header_inttypes_h
=yes
2340 echo "configure: failed program was:" >&5
2341 cat conftest.
$ac_ext >&5
2343 gcc_cv_header_inttypes_h
=no
2348 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2349 if test $gcc_cv_header_inttypes_h = yes; then
2350 cat >> confdefs.h
<<\EOF
2351 #define HAVE_INTTYPES_H 1
2357 # Determine if enumerated bitfields are unsigned. ISO C says they can
2358 # be either signed or unsigned.
2360 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2361 echo "configure:2362: checking for unsigned enumerated bitfields" >&5
2362 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 if test "$cross_compiling" = yes; then
2366 gcc_cv_enum_bf_unsigned
=yes
2368 cat > conftest.
$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2372 enum t { BLAH = 128 } ;
2373 struct s_t { enum t member : 8; } s ;
2377 if (s.member < 0) exit(1);
2382 if { (eval echo configure
:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2384 gcc_cv_enum_bf_unsigned
=yes
2386 echo "configure: failed program was:" >&5
2387 cat conftest.
$ac_ext >&5
2389 gcc_cv_enum_bf_unsigned
=no
2396 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2397 if test $gcc_cv_enum_bf_unsigned = yes; then
2398 cat >> confdefs.h
<<\EOF
2399 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2404 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2405 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2406 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2407 fputs_unlocked getrusage valloc
2409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_func" >&5
2411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2417 /* System header to define __stub macros and hopefully few prototypes,
2418 which can conflict with char $ac_func(); below. */
2420 /* Override any gcc2 internal prototype to avoid an error. */
2421 /* We use char because int might match the return type of a gcc2
2422 builtin and then its argument prototype would still apply. */
2427 /* The GNU C library defines this for functions which it implements
2428 to always fail with ENOSYS. Some functions are actually named
2429 something starting with __ and the normal name is an alias. */
2430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2438 if { (eval echo configure
:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2440 eval "ac_cv_func_$ac_func=yes"
2442 echo "configure: failed program was:" >&5
2443 cat conftest.
$ac_ext >&5
2445 eval "ac_cv_func_$ac_func=no"
2450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2453 cat >> confdefs.h
<<EOF
2454 #define $ac_tr_func 1
2458 echo "$ac_t""no" 1>&6
2463 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2464 echo "configure:2465: checking for ssize_t" >&5
2465 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2471 #include <sys/types.h>
2477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2480 ac_cv_type_ssize_t
=yes
2483 ac_cv_type_ssize_t
=no
2488 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2489 if test $ac_cv_type_ssize_t = no
; then
2490 cat >> confdefs.h
<<\EOF
2497 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2498 echo "configure:2499: checking for vprintf" >&5
2499 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 cat > conftest.
$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2505 /* System header to define __stub macros and hopefully few prototypes,
2506 which can conflict with char vprintf(); below. */
2508 /* Override any gcc2 internal prototype to avoid an error. */
2509 /* We use char because int might match the return type of a gcc2
2510 builtin and then its argument prototype would still apply. */
2515 /* The GNU C library defines this for functions which it implements
2516 to always fail with ENOSYS. Some functions are actually named
2517 something starting with __ and the normal name is an alias. */
2518 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2526 if { (eval echo configure
:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2528 eval "ac_cv_func_vprintf=yes"
2530 echo "configure: failed program was:" >&5
2531 cat conftest.
$ac_ext >&5
2533 eval "ac_cv_func_vprintf=no"
2538 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2539 echo "$ac_t""yes" 1>&6
2540 cat >> confdefs.h
<<\EOF
2541 #define HAVE_VPRINTF 1
2545 echo "$ac_t""no" 1>&6
2548 if test "$ac_cv_func_vprintf" != yes; then
2549 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2550 echo "configure:2551: checking for _doprnt" >&5
2551 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.
$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 /* System header to define __stub macros and hopefully few prototypes,
2558 which can conflict with char _doprnt(); below. */
2560 /* Override any gcc2 internal prototype to avoid an error. */
2561 /* We use char because int might match the return type of a gcc2
2562 builtin and then its argument prototype would still apply. */
2567 /* The GNU C library defines this for functions which it implements
2568 to always fail with ENOSYS. Some functions are actually named
2569 something starting with __ and the normal name is an alias. */
2570 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2578 if { (eval echo configure
:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2580 eval "ac_cv_func__doprnt=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2585 eval "ac_cv_func__doprnt=no"
2590 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2591 echo "$ac_t""yes" 1>&6
2592 cat >> confdefs.h
<<\EOF
2593 #define HAVE_DOPRNT 1
2597 echo "$ac_t""no" 1>&6
2604 if test $ac_cv_func_vprintf != yes ; then
2606 if test $ac_cv_func__doprnt != yes ; then
2613 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2614 echo "configure:2615: checking whether the printf functions support %p" >&5
2615 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 if test "$cross_compiling" = yes; then
2619 gcc_cv_func_printf_ptr
=no
2621 cat > conftest.
$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2629 char *p = buf, *q = NULL;
2630 sprintf(buf, "%p", p);
2631 sscanf(buf, "%p", &q);
2635 if { (eval echo configure
:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2637 gcc_cv_func_printf_ptr
=yes
2639 echo "configure: failed program was:" >&5
2640 cat conftest.
$ac_ext >&5
2642 gcc_cv_func_printf_ptr
=no
2647 rm -f core core.
* *.core
2650 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2651 if test $gcc_cv_func_printf_ptr = yes ; then
2652 cat >> confdefs.h
<<\EOF
2653 #define HAVE_PRINTF_PTR 1
2661 # Under some versions of uwin, vfork is notoriously buggy and the test
2662 # can hang configure; on other versions, vfork exists just as a stub.
2663 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2664 ac_cv_func_vfork_works
=no
2667 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2668 echo "configure:2669: checking for pid_t" >&5
2669 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.
$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 #include <sys/types.h>
2681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2682 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2684 ac_cv_type_pid_t
=yes
2692 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2693 if test $ac_cv_type_pid_t = no
; then
2694 cat >> confdefs.h
<<\EOF
2700 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2701 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2702 echo "configure:2703: checking for vfork.h" >&5
2703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.
$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2711 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2712 { (eval echo configure
:2713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2713 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2714 if test -z "$ac_err"; then
2716 eval "ac_cv_header_$ac_safe=yes"
2719 echo "configure: failed program was:" >&5
2720 cat conftest.
$ac_ext >&5
2722 eval "ac_cv_header_$ac_safe=no"
2726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2727 echo "$ac_t""yes" 1>&6
2728 cat >> confdefs.h
<<\EOF
2729 #define HAVE_VFORK_H 1
2733 echo "$ac_t""no" 1>&6
2736 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2737 echo "configure:2738: checking for working vfork" >&5
2738 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 if test "$cross_compiling" = yes; then
2742 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2743 echo "configure:2744: checking for vfork" >&5
2744 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.
$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 /* System header to define __stub macros and hopefully few prototypes,
2751 which can conflict with char vfork(); below. */
2753 /* Override any gcc2 internal prototype to avoid an error. */
2754 /* We use char because int might match the return type of a gcc2
2755 builtin and then its argument prototype would still apply. */
2760 /* The GNU C library defines this for functions which it implements
2761 to always fail with ENOSYS. Some functions are actually named
2762 something starting with __ and the normal name is an alias. */
2763 #if defined (__stub_vfork) || defined (__stub___vfork)
2771 if { (eval echo configure
:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2773 eval "ac_cv_func_vfork=yes"
2775 echo "configure: failed program was:" >&5
2776 cat conftest.
$ac_ext >&5
2778 eval "ac_cv_func_vfork=no"
2783 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2784 echo "$ac_t""yes" 1>&6
2787 echo "$ac_t""no" 1>&6
2790 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 /* Thanks to Paul Eggert for this test. */
2797 #include <sys/types.h>
2798 #include <sys/stat.h>
2799 #ifdef HAVE_UNISTD_H
2805 /* On some sparc systems, changes by the child to local and incoming
2806 argument registers are propagated back to the parent.
2807 The compiler is told about this with #include <vfork.h>,
2808 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2809 Test for this by using a static variable whose address
2810 is put into a register that is clobbered by the vfork. */
2813 sparc_address_test (int arg)
2815 sparc_address_test (arg) int arg;
2833 pid_t parent = getpid ();
2836 sparc_address_test ();
2841 /* Here is another test for sparc vfork register problems.
2842 This test uses lots of local variables, at least
2843 as many local variables as main has allocated so far
2844 including compiler temporaries. 4 locals are enough for
2845 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2846 A buggy compiler should reuse the register of parent
2847 for one of the local variables, since it will think that
2848 parent can't possibly be used any more in this routine.
2849 Assigning to the local variable will thus munge parent
2850 in the parent process. */
2852 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2853 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2854 /* Convince the compiler that p..p7 are live; otherwise, it might
2855 use the same hardware register for all 8 local variables. */
2856 if (p != p1 || p != p2 || p != p3 || p != p4
2857 || p != p5 || p != p6 || p != p7)
2860 /* On some systems (e.g. IRIX 3.3),
2861 vfork doesn't separate parent from child file descriptors.
2862 If the child closes a descriptor before it execs or exits,
2863 this munges the parent's descriptor as well.
2864 Test for this by closing stdout in the child. */
2865 _exit(close(fileno(stdout)) != 0);
2870 while (wait(&status) != child)
2873 /* Was there some problem with vforking? */
2876 /* Did the child fail? (This shouldn't happen.) */
2879 /* Did the vfork/compiler bug occur? */
2880 || parent != getpid()
2882 /* Did the file descriptor bug occur? */
2883 || fstat(fileno(stdout), &st) != 0
2888 if { (eval echo configure
:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2890 ac_cv_func_vfork_works
=yes
2892 echo "configure: failed program was:" >&5
2893 cat conftest.
$ac_ext >&5
2895 ac_cv_func_vfork_works
=no
2902 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2903 if test $ac_cv_func_vfork_works = no
; then
2904 cat >> confdefs.h
<<\EOF
2910 for ac_hdr
in unistd.h
2912 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure
:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2928 eval "ac_cv_header_$ac_safe=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 eval "ac_cv_header_$ac_safe=no"
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h
<<EOF
2942 #define $ac_tr_hdr 1
2946 echo "$ac_t""no" 1>&6
2950 for ac_func
in getpagesize
2952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2953 echo "configure:2954: checking for $ac_func" >&5
2954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2955 echo $ac_n "(cached) $ac_c" 1>&6
2957 cat > conftest.
$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 /* System header to define __stub macros and hopefully few prototypes,
2961 which can conflict with char $ac_func(); below. */
2963 /* Override any gcc2 internal prototype to avoid an error. */
2964 /* We use char because int might match the return type of a gcc2
2965 builtin and then its argument prototype would still apply. */
2970 /* The GNU C library defines this for functions which it implements
2971 to always fail with ENOSYS. Some functions are actually named
2972 something starting with __ and the normal name is an alias. */
2973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2981 if { (eval echo configure
:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2983 eval "ac_cv_func_$ac_func=yes"
2985 echo "configure: failed program was:" >&5
2986 cat conftest.
$ac_ext >&5
2988 eval "ac_cv_func_$ac_func=no"
2993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2994 echo "$ac_t""yes" 1>&6
2995 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2996 cat >> confdefs.h
<<EOF
2997 #define $ac_tr_func 1
3001 echo "$ac_t""no" 1>&6
3005 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3006 echo "configure:3007: checking for working mmap from /dev/zero" >&5
3007 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 if test "$cross_compiling" = yes; then
3011 ac_cv_func_mmap_anywhere
=no
3013 cat > conftest.
$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3017 /* Test by Richard Henderson and Alexandre Oliva.
3018 Check whether mmap from /dev/zero works. */
3019 #include <sys/types.h>
3021 #include <sys/mman.h>
3023 /* This mess was copied from the GNU getpagesize.h. */
3024 #ifndef HAVE_GETPAGESIZE
3025 # ifdef HAVE_UNISTD_H
3026 # include <unistd.h>
3029 /* Assume that all systems that can run configure have sys/param.h. */
3030 # ifndef HAVE_SYS_PARAM_H
3031 # define HAVE_SYS_PARAM_H 1
3034 # ifdef _SC_PAGESIZE
3035 # define getpagesize() sysconf(_SC_PAGESIZE)
3036 # else /* no _SC_PAGESIZE */
3037 # ifdef HAVE_SYS_PARAM_H
3038 # include <sys/param.h>
3039 # ifdef EXEC_PAGESIZE
3040 # define getpagesize() EXEC_PAGESIZE
3041 # else /* no EXEC_PAGESIZE */
3043 # define getpagesize() NBPG * CLSIZE
3046 # endif /* no CLSIZE */
3047 # else /* no NBPG */
3049 # define getpagesize() NBPC
3050 # else /* no NBPC */
3052 # define getpagesize() PAGESIZE
3053 # endif /* PAGESIZE */
3054 # endif /* no NBPC */
3055 # endif /* no NBPG */
3056 # endif /* no EXEC_PAGESIZE */
3057 # else /* no HAVE_SYS_PARAM_H */
3058 # define getpagesize() 8192 /* punt totally */
3059 # endif /* no HAVE_SYS_PARAM_H */
3060 # endif /* no _SC_PAGESIZE */
3062 #endif /* no HAVE_GETPAGESIZE */
3069 fd = open("/dev/zero", O_RDWR);
3074 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3075 if (x == (char *) -1)
3080 if (munmap(x, pg) < 0)
3086 if { (eval echo configure
:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3088 ac_cv_func_mmap_anywhere
=yes
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3093 ac_cv_func_mmap_anywhere
=no
3100 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3101 if test $ac_cv_func_mmap_anywhere = yes; then
3102 cat >> confdefs.h
<<\EOF
3103 #define HAVE_MMAP_ANYWHERE 1
3108 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3109 echo "configure:3110: checking for working mmap of a file" >&5
3110 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 # Create a file one thousand bytes long.
3114 for i
in 1 2 3 4 5 6 7 8 9 0
3115 do for j
in 1 2 3 4 5 6 7 8 9 0
3118 done > conftestdata$$
3120 if test "$cross_compiling" = yes; then
3121 ac_cv_func_mmap_file
=no
3123 cat > conftest.
$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3127 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3128 Richard Henderson and Alexandre Oliva.
3129 Check whether read-only mmap of a plain file works. */
3130 #include <sys/types.h>
3131 #include <sys/stat.h>
3133 #include <sys/mman.h>
3141 fd = open("conftestdata$$", O_RDONLY);
3145 if (fstat (fd, &st))
3148 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3149 if (x == (char *) -1)
3152 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3155 if (munmap(x, st.st_size) < 0)
3161 if { (eval echo configure
:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3163 ac_cv_func_mmap_file
=yes
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3168 ac_cv_func_mmap_file
=no
3175 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3176 if test $ac_cv_func_mmap_file = yes; then
3177 cat >> confdefs.h
<<\EOF
3178 #define HAVE_MMAP_FILE 1
3184 # We will need to find libiberty.h and ansidecl.h
3185 saved_CFLAGS
="$CFLAGS"
3186 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3187 for ac_func
in bcopy bzero bcmp \
3188 index rindex getenv atol sbrk abort atof getcwd getwd \
3189 strsignal putc_unlocked fputs_unlocked strstr environ \
3190 malloc realloc calloc free
basename getopt
3192 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3193 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3194 echo "configure:3195: checking whether $ac_func is declared" >&5
3195 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3201 #include "gansidecl.h"
3206 char *(*pfn) = (char *(*)) $ac_func ;
3210 if { (eval echo configure
:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 eval "gcc_cv_have_decl_$ac_func=yes"
3214 echo "configure: failed program was:" >&5
3215 cat conftest.
$ac_ext >&5
3217 eval "gcc_cv_have_decl_$ac_func=no"
3222 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3223 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3224 #define $ac_tr_decl 1
3228 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3229 #define $ac_tr_decl 0
3235 if test x
= y
; then
3236 cat >> confdefs.h
<<EOF
3237 #define HAVE_DECL_BCOPY 1
3239 cat >> confdefs.h
<<EOF
3240 #define HAVE_DECL_BZERO 1
3242 cat >> confdefs.h
<<EOF
3243 #define HAVE_DECL_BCMP 1
3246 cat >> confdefs.h
<<EOF
3247 #define HAVE_DECL_INDEX 1
3249 cat >> confdefs.h
<<EOF
3250 #define HAVE_DECL_RINDEX 1
3252 cat >> confdefs.h
<<EOF
3253 #define HAVE_DECL_GETENV 1
3255 cat >> confdefs.h
<<EOF
3256 #define HAVE_DECL_ATOL 1
3258 cat >> confdefs.h
<<EOF
3259 #define HAVE_DECL_SBRK 1
3261 cat >> confdefs.h
<<EOF
3262 #define HAVE_DECL_ABORT 1
3264 cat >> confdefs.h
<<EOF
3265 #define HAVE_DECL_ATOF 1
3267 cat >> confdefs.h
<<EOF
3268 #define HAVE_DECL_GETCWD 1
3270 cat >> confdefs.h
<<EOF
3271 #define HAVE_DECL_GETWD 1
3274 cat >> confdefs.h
<<EOF
3275 #define HAVE_DECL_STRSIGNAL 1
3277 cat >> confdefs.h
<<EOF
3278 #define HAVE_DECL_PUTC_UNLOCKED 1
3280 cat >> confdefs.h
<<EOF
3281 #define HAVE_DECL_FPUTS_UNLOCKED 1
3283 cat >> confdefs.h
<<EOF
3284 #define HAVE_DECL_STRSTR 1
3286 cat >> confdefs.h
<<EOF
3287 #define HAVE_DECL_ENVIRON 1
3290 cat >> confdefs.h
<<EOF
3291 #define HAVE_DECL_MALLOC 1
3293 cat >> confdefs.h
<<EOF
3294 #define HAVE_DECL_REALLOC 1
3296 cat >> confdefs.h
<<EOF
3297 #define HAVE_DECL_CALLOC 1
3299 cat >> confdefs.h
<<EOF
3300 #define HAVE_DECL_FREE 1
3302 cat >> confdefs.h
<<EOF
3303 #define HAVE_DECL_BASENAME 1
3305 cat >> confdefs.h
<<EOF
3306 #define HAVE_DECL_GETOPT 1
3311 for ac_func
in getrlimit setrlimit getrusage
3313 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3314 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3315 echo "configure:3316: checking whether $ac_func is declared" >&5
3316 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.
$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include "gansidecl.h"
3324 #ifdef HAVE_SYS_RESOURCE_H
3325 #include <sys/resource.h>
3331 char *(*pfn) = (char *(*)) $ac_func ;
3335 if { (eval echo configure
:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3337 eval "gcc_cv_have_decl_$ac_func=yes"
3339 echo "configure: failed program was:" >&5
3340 cat conftest.
$ac_ext >&5
3342 eval "gcc_cv_have_decl_$ac_func=no"
3347 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3349 #define $ac_tr_decl 1
3353 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3354 #define $ac_tr_decl 0
3360 if test x
= y
; then
3361 cat >> confdefs.h
<<EOF
3362 #define HAVE_DECL_GETRLIMIT 1
3364 cat >> confdefs.h
<<EOF
3365 #define HAVE_DECL_SETRLIMIT 1
3367 cat >> confdefs.h
<<EOF
3368 #define HAVE_DECL_GETRUSAGE 1
3373 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3374 CFLAGS
="$saved_CFLAGS"
3376 # mkdir takes a single argument on some systems.
3377 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3378 echo "configure:3379: checking if mkdir takes one argument" >&5
3379 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 cat > conftest.
$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3386 #include <sys/types.h>
3387 #ifdef HAVE_SYS_STAT_H
3388 # include <sys/stat.h>
3390 #ifdef HAVE_UNISTD_H
3391 # include <unistd.h>
3393 #ifdef HAVE_DIRECT_H
3394 # include <direct.h>
3400 if { (eval echo configure
:3401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402 gcc_cv_mkdir_takes_one_arg
=no
3404 echo "configure: failed program was:" >&5
3405 cat conftest.
$ac_ext >&5
3407 gcc_cv_mkdir_takes_one_arg
=yes
3412 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3413 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3414 cat >> confdefs.h
<<\EOF
3415 #define MKDIR_TAKES_ONE_ARG 1
3429 build_install_headers_dir
=install-headers-tar
3434 host_truncate_target
=
3437 # Decode the host machine, then the target machine.
3438 # For the host machine, we save the xm_file variable as host_xm_file;
3439 # then we decode the target machine and forget everything else
3440 # that came from the host machine.
3441 for machine
in $build $host $target; do
3455 # Set this to force installation and use of collect2.
3457 # Set this to override the default target model.
3459 # Set this to control how the header file directory is installed.
3460 install_headers_dir
=install-headers-tar
3461 # Set this to a non-empty list of args to pass to cpp if the target
3462 # wants its .md file passed through cpp.
3464 # Set this if directory names should be truncated to 14 characters.
3466 # Set this if gdb needs a dir command with `dirname $out_file`
3467 gdb_needs_out_file_path
=
3468 # Set this if the build machine requires executables to have a
3471 # Set this to control which thread package will be used.
3473 # Reinitialize these from the flag values every loop pass, since some
3474 # configure entries modify them.
3476 gnu_ld
="$gnu_ld_flag"
3477 enable_threads
=$enable_threads_flag
3479 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3480 # updated in each machine entry.
3482 cpu_type
=`echo $machine | sed 's/-.*$//'`
3522 tm_file
=${cpu_type}/${cpu_type}.h
3523 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3524 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3526 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3528 # On a.out targets, we need to use collect2.
3535 # Common parts for linux-gnu and openbsd systems
3538 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3541 tm_file
=${cpu_type}/openbsd.h
3542 tmake_file
="t-libc-ok t-openbsd"
3543 # avoid surprises, always provide an xm-openbsd file
3544 xm_file
=${cpu_type}/xm-openbsd.h
3545 # don't depend on processor x-fragments as well
3547 if test x
$enable_threads = xyes
; then
3549 tmake_file
="${tmake_file} t-openbsd-thread"
3555 # Support site-specific machine types.
3557 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3558 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3559 xm_file
=${cpu_type}/xm-
$rest.h
3560 tm_file
=${cpu_type}/$rest.h
3561 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3562 then xmake_file
=${cpu_type}/x-
$rest; \
3565 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3566 then tmake_file
=${cpu_type}/t-
$rest; \
3572 a29k-
*-bsd* | a29k-
*-sym1*)
3573 tm_file
="${tm_file} a29k/unix.h"
3575 xmake_file
=a29k
/x-unix
3578 a29k-
*-udi | a29k-
*-coff)
3579 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3580 tmake_file
=a29k
/t-a29kbare
3583 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3584 tmake_file
=a29k
/t-vx29k
3585 extra_parts
="crtbegin.o crtend.o"
3586 thread_file
='vxworks'
3588 a29k-
*-*) # Default a29k environment.
3592 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3594 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3595 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3597 # GAS + IEEE_CONFORMANT
3598 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3600 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3601 xmake_file
="x-interix alpha/t-pe"
3602 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3603 if test x
$enable_threads = xyes
; then
3606 if test x
$stabs = xyes
; then
3607 tm_file
="${tm_file} dbxcoff.h"
3609 #prefix='$$INTERIX_ROOT'/usr/contrib
3610 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3612 alpha
*-*-linux-gnuecoff*)
3613 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3614 target_cpu_default
="MASK_GAS"
3615 tmake_file
="alpha/t-alpha alpha/t-ieee"
3620 alpha
*-*-linux-gnulibc1*)
3621 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3622 target_cpu_default
="MASK_GAS"
3623 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3624 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3627 if test x
$enable_threads = xyes
; then
3631 alpha
*-*-linux-gnu*)
3632 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3633 target_cpu_default
="MASK_GAS"
3634 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3635 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3638 if test x
$enable_threads = xyes
; then
3643 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3644 target_cpu_default
="MASK_GAS"
3645 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3646 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3652 # default x-alpha is only appropriate for dec-osf.
3653 target_cpu_default
="MASK_GAS"
3654 tmake_file
="alpha/t-alpha alpha/t-ieee"
3658 if test x
$stabs = xyes
3660 tm_file
="${tm_file} dbx.h"
3662 if test x
$gas != xyes
3664 extra_passes
="mips-tfile mips-tdump"
3667 tmake_file
="alpha/t-alpha alpha/t-ieee"
3670 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3673 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3676 tm_file
="${tm_file} alpha/osf.h"
3677 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3678 # a broken tar, so we use cpio instead.
3679 install_headers_dir
=install-headers-cpio
3682 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3686 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3687 target_cpu_default
=MASK_SUPPORT_ARCH
3692 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3693 tmake_file
="alpha/t-alpha alpha/t-ieee"
3696 extra_passes
="mips-tfile mips-tdump"
3699 thread_file
='vxworks'
3702 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3703 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3704 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3705 xmake_file
=winnt
/x-winnt
3706 extra_host_objs
=oldnames.o
3707 extra_gcc_objs
="spawnv.o oldnames.o"
3708 if test x
$gnu_ld != xyes
3710 extra_programs
=ld.exe
3712 if test x
$enable_threads = xyes
; then
3718 xm_file
="${xm_file} alpha/xm-vms.h"
3719 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3722 extra_parts
="crtinit.o crtfini.o"
3724 arm-
*-coff* | armel-
*-coff*)
3726 tmake_file
=arm
/t-arm-coff
3730 tmake_file
=arm
/t-arm-coff
3731 thread_file
='vxworks'
3733 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3734 tm_file
=arm
/riscix1-1.h
3737 arm-
*-riscix*) # Acorn RISC machine
3738 if test x
$gas = xyes
3740 tm_file
=arm
/rix-gas.h
3742 tm_file
=arm
/riscix.h
3744 xmake_file
=arm
/x-riscix
3745 tmake_file
=arm
/t-riscix
3748 arm-semi-aout | armel-semi-aout
)
3750 tmake_file
=arm
/t-semi
3752 arm-semi-aof | armel-semi-aof
)
3753 tm_file
=arm
/semiaof.h
3754 tmake_file
=arm
/t-semiaof
3757 tm_file
=arm
/netbsd.h
3758 tmake_file
="t-netbsd arm/t-netbsd"
3761 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3764 tm_file
=arm
/linux-aout.h
3765 tmake_file
=arm
/t-linux
3768 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3769 xm_file
=arm
/xm-linux.h
3771 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3774 tm_file
="arm/linux-elf26.h $tm_file"
3777 tmake_file
="t-linux arm/t-linux"
3778 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3780 case x
${enable_threads} in
3781 x | xyes | xpthreads | xposix
)
3786 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3787 xm_file
=arm
/xm-linux.h
3789 tm_file
="arm/linux-elf.h"
3792 tm_file
="arm/linux-elf26.h $tm_file"
3795 tmake_file
="t-linux arm/t-linux"
3796 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3798 case x
${enable_threads} in
3799 x | xyes | xpthreads | xposix
)
3804 arm
*-*-uclinux*) # ARM ucLinux
3805 tm_file
=arm
/uclinux-elf.h
3806 tmake_file
=arm
/t-arm-elf
3810 tmake_file
=arm
/t-arm-aout
3813 tm_file
=arm
/ecos-elf.h
3814 tmake_file
=arm
/t-arm-elf
3817 tm_file
=arm
/unknown-elf.h
3818 tmake_file
=arm
/t-arm-elf
3821 tm_file
=arm
/conix-elf.h
3822 tmake_file
=arm
/t-arm-elf
3825 tm_file
=arm
/unknown-elf-oabi.h
3826 tmake_file
=arm
/t-arm-elf
3835 c1-convex-
*) # Convex C1
3836 target_cpu_default
=1
3839 c2-convex-
*) # Convex C2
3840 target_cpu_default
=2
3844 target_cpu_default
=4
3848 target_cpu_default
=8
3852 target_cpu_default
=16
3857 tmake_file
=c4x
/t-c4x
3859 clipper-intergraph-clix
*)
3860 tm_file
="${tm_file} svr3.h clipper/clix.h"
3861 xm_file
=clipper
/xm-clix.h
3862 xmake_file
=clipper
/x-clix
3863 extra_headers
=va-clipper.h
3864 extra_parts
="crtbegin.o crtend.o"
3865 install_headers_dir
=install-headers-cpio
3876 tm_file
="fr30/fr30.h"
3877 tmake_file
=fr30
/t-fr30
3878 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3880 # This hasn't been upgraded to GCC 2.
3881 # fx80-alliant-*) # Alliant FX/80
3887 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3888 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3889 tmake_file
="t-linux pa/t-linux"
3890 extra_parts
="crtbegin.o crtend.o"
3893 if test x
$enable_threads = xyes
; then
3898 target_cpu_default
="MASK_PA_11"
3899 tmake_file
=pa
/t-openbsd
3902 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3903 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3904 xm_file
=pa
/xm-papro.h
3908 target_cpu_default
="MASK_PA_11"
3909 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3913 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3914 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3915 xm_file
=pa
/xm-papro.h
3919 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3923 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3924 target_cpu_default
="MASK_PA_11"
3928 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3932 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3933 xm_file
=pa
/xm-pahpux.h
3934 xmake_file
=pa
/x-pa-hpux
3935 if test x
$gas = xyes
3937 tm_file
="${tm_file} pa/gas.h"
3939 install_headers_dir
=install-headers-cpio
3942 hppa1.0
-*-hpux8.0
[0-2]*)
3943 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3944 xm_file
=pa
/xm-pahpux.h
3945 xmake_file
=pa
/x-pa-hpux
3946 if test x
$gas = xyes
3948 tm_file
="${tm_file} pa/pa-gas.h"
3950 tm_file
="pa/pa-oldas.h ${tm_file}"
3952 install_headers_dir
=install-headers-cpio
3955 hppa1.1
-*-hpux8.0
[0-2]*)
3956 target_cpu_default
="MASK_PA_11"
3957 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3958 xm_file
=pa
/xm-pahpux.h
3959 xmake_file
=pa
/x-pa-hpux
3960 if test x
$gas = xyes
3962 tm_file
="${tm_file} pa/pa-gas.h"
3964 tm_file
="pa/pa-oldas.h ${tm_file}"
3966 install_headers_dir
=install-headers-cpio
3970 target_cpu_default
="MASK_PA_11"
3971 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3972 xm_file
=pa
/xm-pahpux.h
3973 xmake_file
=pa
/x-pa-hpux
3974 if test x
$gas = xyes
3976 tm_file
="${tm_file} pa/pa-gas.h"
3978 install_headers_dir
=install-headers-cpio
3982 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3983 xm_file
=pa
/xm-pahpux.h
3984 xmake_file
=pa
/x-pa-hpux
3985 if test x
$gas = xyes
3987 tm_file
="${tm_file} pa/pa-gas.h"
3989 install_headers_dir
=install-headers-cpio
3992 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3993 target_cpu_default
="MASK_PA_11"
3994 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3996 xm_file
=pa
/xm-pahpux.h
3997 xmake_file
=pa
/x-pa-hpux
3999 if test x
$gas = xyes
4001 tm_file
="${tm_file} pa/pa-gas.h"
4003 if test x
$enable_threads = x
; then
4004 enable_threads
=$have_pthread_h
4006 if test x
$enable_threads = xyes
; then
4008 tmake_file
="${tmake_file} pa/t-dce-thr"
4010 install_headers_dir
=install-headers-cpio
4014 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4016 xm_file
=pa
/xm-pahpux.h
4017 xmake_file
=pa
/x-pa-hpux
4019 if test x
$gas = xyes
4021 tm_file
="${tm_file} pa/pa-gas.h"
4023 if test x
$enable_threads = x
; then
4024 enable_threads
=$have_pthread_h
4026 if test x
$enable_threads = xyes
; then
4028 tmake_file
="${tmake_file} pa/t-dce-thr"
4030 install_headers_dir
=install-headers-cpio
4034 target_cpu_default
="MASK_PA_11"
4035 xm_file
=pa
/xm-pa64hpux.h
4036 xmake_file
=pa
/x-pa-hpux
4038 tm_file
="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
4040 tmake_file
=pa
/t-pa64
4041 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4045 tm_file
="${tm_file} pa/pa-gas.h"
4047 # if [[ x$enable_threads = x ]]; then
4048 # enable_threads=$have_pthread_h
4050 # if [[ x$enable_threads = xyes ]]; then
4052 # tmake_file="${tmake_file} pa/t-dce-thr"
4054 install_headers_dir
=install-headers-cpio
4057 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4058 target_cpu_default
="MASK_PA_11"
4059 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4061 xm_file
=pa
/xm-pahpux.h
4062 xmake_file
=pa
/x-pa-hpux
4064 if test x
$gas = xyes
4066 tm_file
="${tm_file} pa/pa-gas.h"
4068 # if test x$enable_threads = x; then
4069 # enable_threads=$have_pthread_h
4071 # if test x$enable_threads = xyes; then
4073 # tmake_file="${tmake_file} pa/t-dce-thr"
4075 install_headers_dir
=install-headers-cpio
4079 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4081 xm_file
=pa
/xm-pahpux.h
4082 xmake_file
=pa
/x-pa-hpux
4083 if test x
$gas = xyes
4085 tm_file
="${tm_file} pa/pa-gas.h"
4087 # if test x$enable_threads = x; then
4088 # enable_threads=$have_pthread_h
4090 # if test x$enable_threads = xyes; then
4092 # tmake_file="${tmake_file} pa/t-dce-thr"
4094 install_headers_dir
=install-headers-cpio
4097 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4098 target_cpu_default
="MASK_PA_11"
4099 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4100 xm_file
=pa
/xm-pahpux.h
4101 xmake_file
=pa
/x-pa-hpux
4102 if test x
$gas = xyes
4104 tm_file
="${tm_file} pa/pa-gas.h"
4106 install_headers_dir
=install-headers-cpio
4110 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4111 xm_file
=pa
/xm-pahpux.h
4112 xmake_file
=pa
/x-pa-hpux
4113 if test x
$gas = xyes
4115 tm_file
="${tm_file} pa/pa-gas.h"
4117 install_headers_dir
=install-headers-cpio
4120 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4121 target_cpu_default
="MASK_PA_11"
4122 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4123 xm_file
=pa
/xm-pahpux.h
4124 xmake_file
=pa
/x-pa-hpux
4125 if test x
$gas = xyes
4127 tm_file
="${tm_file} pa/pa-gas.h"
4129 install_headers_dir
=install-headers-cpio
4133 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4134 xm_file
=pa
/xm-pahpux.h
4135 xmake_file
=pa
/x-pa-hpux
4136 if test x
$gas = xyes
4138 tm_file
="${tm_file} pa/pa-gas.h"
4140 install_headers_dir
=install-headers-cpio
4144 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4145 target_cpu_default
="MASK_PA_11"
4149 tm_file
="${tm_file} pa/pa-mpeix.h"
4150 xm_file
=pa
/xm-pampeix.h
4151 xmake_file
=pa
/x-pa-mpeix
4152 echo "You must use gas. Assuming it is already installed."
4153 install_headers_dir
=install-headers-tar
4156 i370-
*-opened*) # IBM 360/370/390 Architecture
4157 xm_file
=i370
/xm-oe.h
4159 xmake_file
=i370
/x-oe
4160 tmake_file
=i370
/t-oe
4163 xm_file
=i370
/xm-mvs.h
4165 tmake_file
=i370
/t-mvs
4168 xm_file
="xm-linux.h i370/xm-linux.h"
4170 tm_file
="i370/linux.h ${tm_file}"
4171 tmake_file
="t-linux i370/t-linux"
4172 # broken_install=yes
4173 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4174 # extra_parts="crtbegin.o crtend.o"
4178 if test x
$enable_threads = xyes
; then
4183 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4184 tm_file
=i386
/i386elf.h
4185 tmake_file
=i386
/t-i386elf
4188 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4189 if test x
$gas = xyes
4191 tm_file
=i386
/aix386.h
4192 extra_parts
="crtbegin.o crtend.o"
4193 tmake_file
=i386
/t-crtstuff
4195 tm_file
=i386
/aix386ng.h
4198 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4200 xmake_file
=i386
/x-aix
4202 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4203 xm_file
="xm-alloca.h ${xm_file}"
4204 xm_defines
="USG POSIX SMALL_ARG_MAX"
4205 xmake_file
=i386
/x-ncr3000
4206 if test x
$stabs = xyes
-a x
$gas = xyes
4208 tm_file
=i386
/sysv4gdb.h
4210 tm_file
=i386
/sysv4.h
4212 extra_parts
="crtbegin.o crtend.o"
4213 tmake_file
=i386
/t-crtpic
4217 xm_file
=i386
/xm-next.h
4218 tmake_file
=i386
/t-next
4219 xmake_file
=i386
/x-next
4220 extra_objs
=nextstep.o
4221 extra_parts
="crtbegin.o crtend.o"
4222 if test x
$enable_threads = xyes
; then
4226 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4228 if test x
$gas = xyes
4230 tm_file
=i386
/seq-gas.h
4232 tm_file
=i386
/sequent.h
4235 i
[34567]86-sequent-ptx1*)
4236 xm_defines
="USG SVR3"
4237 xmake_file
=i386
/x-sysv3
4238 tm_file
=i386
/seq-sysv3.h
4239 tmake_file
=i386
/t-crtstuff
4240 extra_parts
="crtbegin.o crtend.o"
4241 install_headers_dir
=install-headers-cpio
4243 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4244 xm_defines
="USG SVR3"
4245 xmake_file
=i386
/x-sysv3
4246 tm_file
=i386
/seq2-sysv3.h
4247 tmake_file
=i386
/t-crtstuff
4248 extra_parts
="crtbegin.o crtend.o"
4249 install_headers_dir
=install-headers-cpio
4251 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4252 xm_file
="xm-alloca.h ${xm_file}"
4253 xm_defines
="USG POSIX SMALL_ARG_MAX"
4255 tm_file
=i386
/ptx4-i.h
4257 extra_parts
="crtbegin.o crtend.o"
4258 install_headers_dir
=install-headers-cpio
4260 i386-sun-sunos
*) # Sun i386 roadrunner
4265 i
[34567]86-wrs-vxworks*)
4266 tm_file
=i386
/vxi386.h
4267 tmake_file
=i386
/t-i386bare
4268 thread_file
='vxworks'
4271 tm_file
=i386
/i386-aout.h
4272 tmake_file
=i386
/t-i386bare
4274 i
[34567]86-*-beospe*)
4275 xm_file
=i386
/xm-beos.h
4276 xm_defines
="USE_C_ALLOCA"
4277 tmake_file
=i386
/t-beos
4278 tm_file
=i386
/beos-pe.h
4279 xmake_file
=i386
/x-beos
4282 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4283 xm_file
=i386
/xm-beos.h
4284 tmake_file
='i386/t-beos i386/t-crtpic'
4285 tm_file
=i386
/beos-elf.h
4286 xmake_file
=i386
/x-beos
4288 extra_parts
='crtbegin.o crtend.o'
4290 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4291 tm_file
=i386
/bsd386.h
4292 # tmake_file=t-libc-ok
4295 tm_file
=i386
/386bsd.h
4296 # tmake_file=t-libc-ok
4297 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4300 i
[34567]86-*-freebsdelf*)
4301 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4302 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4303 tmake_file
=t-freebsd
4307 case x
${enable_threads} in
4308 xyes | xpthreads | xposix
)
4310 tmake_file
="${tmake_file} t-freebsd-thread"
4314 i
[34567]86-*-freebsd*)
4315 tm_file
="i386/freebsd.h i386/perform.h"
4316 tmake_file
=t-freebsd
4318 i
[34567]86-*-netbsd*)
4319 tm_file
=i386
/netbsd.h
4323 i
[34567]86-*-openbsd*)
4324 # we need collect2 until our bug is fixed...
4328 tm_file
=i386
/i386-coff.h
4329 tmake_file
=i386
/t-i386bare
4331 i
[34567]86-*-isc*) # 80386 running ISC system
4332 xm_file
="${xm_file} i386/xm-isc.h"
4333 xm_defines
="USG SVR3"
4335 i
[34567]86-*-isc[34]*)
4336 xmake_file
=i386
/x-isc3
4339 xmake_file
=i386
/x-isc
4342 if test x
$gas = xyes
-a x
$stabs = xyes
4344 tm_file
=i386
/iscdbx.h
4345 tmake_file
=i386
/t-svr3dbx
4346 extra_parts
="svr3.ifile svr3z.ifile"
4348 tm_file
=i386
/isccoff.h
4349 tmake_file
=i386
/t-crtstuff
4350 extra_parts
="crtbegin.o crtend.o"
4352 tmake_file
="$tmake_file i386/t-i386bare"
4353 install_headers_dir
=install-headers-cpio
4355 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4357 xmake_file
=x-linux-aout
4358 tmake_file
="t-linux-aout i386/t-crtstuff"
4359 tm_file
=i386
/linux-oldld.h
4363 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4364 xmake_file
=x-linux-aout
4365 tmake_file
="t-linux-aout i386/t-crtstuff"
4366 tm_file
=i386
/linux-aout.h
4370 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4371 # GNU/Linux C library 5
4373 tm_file
=i386
/linux.h
4374 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4375 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4378 if test x
$enable_threads = xyes
; then
4379 thread_file
='single'
4382 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4383 # aka GNU/Linux C library 6
4385 tm_file
=i386
/linux.h
4386 tmake_file
="t-linux i386/t-crtstuff"
4387 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4390 if test x
$enable_threads = xyes
; then
4397 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4398 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4401 i
[34567]86-pc-msdosdjgpp*)
4402 xm_file
=i386
/xm-djgpp.h
4403 tm_file
=i386
/djgpp.h
4404 tmake_file
=i386
/t-djgpp
4405 xmake_file
=i386
/x-djgpp
4410 case $host in *pc-msdosdjgpp
*)
4415 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4417 tmake_file
=t-libc-ok
4421 i
[34567]86-*-lynxos*)
4422 if test x
$gas = xyes
4426 tm_file
=i386
/lynx-ng.h
4428 xm_file
=i386
/xm-lynx.h
4429 tmake_file
=i386
/t-i386bare
4434 # tmake_file=t-libc-ok
4437 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4438 if test x
$elf = xyes
4440 tm_file
=i386
/osfelf.h
4443 tm_file
=i386
/osfrose.h
4446 xm_file
="i386/xm-osf.h ${xm_file}"
4447 xmake_file
=i386
/x-osfrose
4448 tmake_file
=i386
/t-osf
4449 extra_objs
=halfpic.o
4451 i
[34567]86-go32-rtems*)
4453 xm_file
=i386
/xm-go32.h
4454 tm_file
=i386
/go32-rtems.h
4455 tmake_file
="i386/t-go32 t-rtems"
4457 i
[34567]86-*-rtemscoff*)
4459 tm_file
=i386
/rtems.h
4460 tmake_file
="i386/t-i386bare t-rtems"
4462 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4464 tm_file
=i386
/rtemself.h
4465 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4466 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4468 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4469 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4470 xm_defines
="USG SVR3"
4471 xmake_file
=i386
/x-sco5
4472 install_headers_dir
=install-headers-cpio
4474 if test x
$gas = xyes
4476 tm_file
="i386/sco5gas.h ${tm_file}"
4477 tmake_file
=i386
/t-sco5gas
4479 tmake_file
=i386
/t-sco5
4481 tmake_file
="$tmake_file i386/t-i386bare"
4482 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4484 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4485 xm_file
="${xm_file} i386/xm-sco.h"
4486 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4487 xmake_file
=i386
/x-sco4
4488 install_headers_dir
=install-headers-cpio
4489 if test x
$stabs = xyes
4491 tm_file
=i386
/sco4dbx.h
4492 tmake_file
=i386
/t-svr3dbx
4493 extra_parts
="svr3.ifile svr3z.rfile"
4496 tmake_file
=i386
/t-crtstuff
4497 extra_parts
="crtbegin.o crtend.o"
4499 tmake_file
="$tmake_file i386/t-i386bare"
4500 # The default EAFS filesystem supports long file names.
4501 # Truncating the target makes $host != $target which
4502 # makes gcc think it is doing a cross-compile.
4503 # truncate_target=yes
4505 i
[34567]86-*-sco*) # 80386 running SCO system
4506 xm_file
=i386
/xm-sco.h
4507 xmake_file
=i386
/x-sco
4508 install_headers_dir
=install-headers-cpio
4509 if test x
$stabs = xyes
4511 tm_file
=i386
/scodbx.h
4512 tmake_file
=i386
/t-svr3dbx
4513 extra_parts
="svr3.ifile svr3z.rfile"
4516 extra_parts
="crtbegin.o crtend.o"
4517 tmake_file
=i386
/t-crtstuff
4519 tmake_file
="$tmake_file i386/t-i386bare"
4522 i
[34567]86-*-solaris2*)
4523 xm_file
="xm-alloca.h ${xm_file}"
4524 xm_defines
="USG POSIX SMALL_ARG_MAX"
4526 if test x
$gas = xyes
; then
4527 # Only needed if gas does not support -s
4528 tm_file
="i386/sol2gas.h ${tm_file}"
4530 tmake_file
="i386/t-i386bare i386/t-sol2"
4531 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4533 if test x
${enable_threads} = x
; then
4534 enable_threads
=$have_pthread_h
4535 if test x
${enable_threads} = x
; then
4536 enable_threads
=$have_thread_h
4539 if test x
${enable_threads} = xyes
; then
4540 if test x
${have_pthread_h} = xyes
; then
4543 thread_file
='solaris'
4547 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4548 xm_file
="xm-alloca.h ${xm_file}"
4549 xm_defines
="USG POSIX"
4550 tm_file
=i386
/sysv5.h
4551 if test x
$stabs = xyes
4553 tm_file
="${tm_file} dbx.h"
4555 tmake_file
="i386/t-i386bare i386/t-crtpic"
4557 extra_parts
="crtbegin.o crtend.o"
4558 if test x
$enable_threads = xyes
; then
4562 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4563 xm_file
="xm-alloca.h ${xm_file}"
4564 xm_defines
="USG POSIX SMALL_ARG_MAX"
4565 tm_file
=i386
/sysv4.h
4566 if test x
$stabs = xyes
4568 tm_file
="${tm_file} dbx.h"
4570 tmake_file
="i386/t-i386bare i386/t-crtpic"
4572 extra_parts
="crtbegin.o crtend.o"
4574 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4575 xm_file
="xm-alloca.h ${xm_file}"
4576 xm_defines
="USG POSIX"
4578 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4580 extra_parts
="crtbegin.o crtend.o"
4581 install_headers_dir
=install-headers-cpio
4583 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4585 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4586 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4587 if test x
$stabs = xyes
4589 tm_file
=i386
/osf1elfgdb.h
4591 tm_file
=i386
/osf1elf.h
4593 tmake_file
=i386
/t-osf1elf
4594 xmake_file
=i386
/x-osf1elf
4595 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4597 i
[34567]86-*-sysv*) # Intel 80386's running system V
4598 xm_defines
="USG SVR3"
4599 xmake_file
=i386
/x-sysv3
4600 if test x
$gas = xyes
4602 if test x
$stabs = xyes
4604 tm_file
=i386
/svr3dbx.h
4605 tmake_file
=i386
/t-svr3dbx
4606 extra_parts
="svr3.ifile svr3z.rfile"
4608 tm_file
=i386
/svr3gas.h
4609 extra_parts
="crtbegin.o crtend.o"
4610 tmake_file
=i386
/t-crtstuff
4613 tm_file
=i386
/sysv3.h
4614 extra_parts
="crtbegin.o crtend.o"
4615 tmake_file
=i386
/t-crtstuff
4617 tmake_file
="$tmake_file i386/t-crtpic"
4619 i386-
*-vsta) # Intel 80386's running VSTa kernel
4620 xm_file
="${xm_file} i386/xm-vsta.h"
4622 tmake_file
=i386
/t-vsta
4623 xmake_file
=i386
/x-vsta
4626 xm_file
="${xm_file} i386/xm-cygwin.h"
4627 tmake_file
=i386
/t-cygwin
4628 tm_file
=i386
/win32.h
4629 xmake_file
=i386
/x-cygwin
4631 if test x
$enable_threads = xyes
; then
4636 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4637 xm_file
="${xm_file} i386/xm-cygwin.h"
4638 tmake_file
=i386
/t-cygwin
4639 tm_file
=i386
/cygwin.h
4640 xmake_file
=i386
/x-cygwin
4642 if test x
$enable_threads = xyes
; then
4647 i
[34567]86-*-mingw32*)
4648 tm_file
=i386
/mingw32.h
4649 xm_file
="${xm_file} i386/xm-mingw32.h"
4650 tmake_file
="i386/t-cygwin i386/t-mingw32"
4652 xmake_file
=i386
/x-cygwin
4653 if test x
$enable_threads = xyes
; then
4660 *minwg32crt
* |
*mingw32
*)
4661 tm_file
="${tm_file} i386/crtdll.h"
4667 xm_file
="${xm_file} i386/xm-uwin.h"
4668 xm_defines
="USG NO_STAB_H"
4669 tmake_file
="i386/t-cygwin i386/t-uwin"
4671 xmake_file
=i386
/x-cygwin
4672 if test x
$enable_threads = xyes
; then
4677 i
[34567]86-*-interix*)
4678 tm_file
="i386/i386-interix.h interix.h"
4679 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4681 tmake_file
="i386/t-interix"
4682 extra_objs
=interix.o
4683 xmake_file
=x-interix
4684 if test x
$enable_threads = xyes
; then
4687 if test x
$stabs = xyes
; then
4688 tm_file
="${tm_file} dbxcoff.h"
4691 i
[34567]86-*-winnt3*)
4692 tm_file
=i386
/win-nt.h
4693 out_file
=i386
/i386.c
4694 xm_file
="xm-winnt.h ${xm_file}"
4695 xmake_file
=winnt
/x-winnt
4696 tmake_file
=i386
/t-winnt
4697 extra_host_objs
="winnt.o oldnames.o"
4698 extra_gcc_objs
="spawnv.o oldnames.o"
4699 if test x
$gnu_ld != xyes
4701 extra_programs
=ld.exe
4703 if test x
$enable_threads = xyes
; then
4707 i
[34567]86-dg-dgux*)
4708 xm_file
="xm-alloca.h ${xm_file}"
4709 xm_defines
="USG POSIX"
4710 out_file
=i386
/dgux.c
4712 tmake_file
=i386
/t-dgux
4713 xmake_file
=i386
/x-dgux
4714 install_headers_dir
=install-headers-cpio
4716 i860-alliant-
*) # Alliant FX/2800
4717 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4718 xm_file
="${xm_file}"
4719 xmake_file
=i860
/x-fx2800
4720 tmake_file
=i860
/t-fx2800
4721 extra_parts
="crtbegin.o crtend.o"
4724 tm_file
="${tm_file} i860/bsd.h"
4725 if test x
$gas = xyes
4727 tm_file
="${tm_file} i860/bsd-gas.h"
4732 tm_file
="${tm_file} i860/mach.h"
4733 tmake_file
=t-libc-ok
4735 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4736 tm_file
="${tm_file} svr3.h i860/paragon.h"
4737 xm_defines
="USG SVR3"
4741 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4742 xm_defines
="USG SVR3"
4743 xmake_file
=i860
/x-sysv3
4744 extra_parts
="crtbegin.o crtend.o"
4747 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4748 xm_defines
="USG SVR3"
4749 xmake_file
=i860
/x-sysv4
4751 extra_parts
="crtbegin.o crtend.o"
4753 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4754 tm_file
="${tm_file} i960/vx960.h"
4755 tmake_file
=i960
/t-vxworks960
4757 thread_file
='vxworks'
4759 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4760 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4761 tmake_file
=i960
/t-vxworks960
4763 thread_file
='vxworks'
4766 tm_file
="${tm_file} i960/vx960.h"
4767 tmake_file
=i960
/t-vxworks960
4769 thread_file
='vxworks'
4772 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4773 tmake_file
=i960
/t-960bare
4777 tmake_file
="i960/t-960bare t-rtems"
4778 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4781 i960-
*-*) # Default i960 environment.
4786 tmake_file
="ia64/t-ia64"
4787 target_cpu_default
="0"
4788 if test x
$gas = xyes
4790 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4792 if test x
$gnu_ld = xyes
4794 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4798 tm_file
=ia64
/linux.h
4799 tmake_file
="t-linux ia64/t-ia64"
4800 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4801 if test x
$enable_threads = xyes
; then
4806 extra_parts
="crtinit.o crtfini.o"
4808 m68000-convergent-sysv
*)
4810 xm_file
="m68k/xm-3b1.h ${xm_file}"
4813 extra_headers
=math-68881.h
4815 m68000-hp-bsd
*) # HP 9000/200 running BSD
4816 tm_file
=m68k
/hp2bsd.h
4817 xmake_file
=m68k
/x-hp2bsd
4819 extra_headers
=math-68881.h
4821 m68000-hp-hpux
*) # HP 9000 series 300
4822 xm_file
="xm-alloca.h ${xm_file}"
4824 if test x
$gas = xyes
4826 xmake_file
=m68k
/x-hp320g
4827 tm_file
=m68k
/hp310g.h
4829 xmake_file
=m68k
/x-hp320
4830 tm_file
=m68k
/hp310.h
4832 install_headers_dir
=install-headers-cpio
4834 extra_headers
=math-68881.h
4839 extra_headers
=math-68881.h
4842 tm_file
=m68k
/sun2o4.h
4844 extra_headers
=math-68881.h
4847 xm_file
="m68k/xm-3b1.h ${xm_file}"
4849 if test x
$gas = xyes
4856 extra_headers
=math-68881.h
4858 m68k-apple-aux
*) # Apple Macintosh running A/UX
4859 xm_defines
="USG AUX"
4860 tmake_file
=m68k
/t-aux
4861 install_headers_dir
=install-headers-cpio
4862 extra_headers
=math-68881.h
4863 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4865 if test "$gnu_ld" = yes
4867 tm_file
="${tm_file} m68k/auxgld.h"
4869 tm_file
="${tm_file} m68k/auxld.h"
4871 if test "$gas" = yes
4873 tm_file
="${tm_file} m68k/auxgas.h"
4875 tm_file
="${tm_file} m68k/auxas.h"
4877 tm_file
="${tm_file} m68k/a-ux.h"
4881 tm_file
=m68k
/apollo68.h
4882 xmake_file
=m68k
/x-apollo68
4884 extra_headers
=math-68881.h
4887 m68k-altos-sysv
*) # Altos 3068
4888 if test x
$gas = xyes
4890 tm_file
=m68k
/altos3068.h
4893 echo "The Altos is supported only with the GNU assembler" 1>&2
4896 extra_headers
=math-68881.h
4898 m68k-bull-sysv
*) # Bull DPX/2
4899 if test x
$gas = xyes
4901 if test x
$stabs = xyes
4903 tm_file
=m68k
/dpx2cdbx.h
4905 tm_file
=m68k
/dpx2g.h
4910 xm_file
="xm-alloca.h ${xm_file}"
4912 xmake_file
=m68k
/x-dpx2
4914 extra_headers
=math-68881.h
4916 m68k-atari-sysv4
*) # Atari variant of V.4.
4917 tm_file
=m68k
/atari.h
4918 xm_file
="xm-alloca.h ${xm_file}"
4919 xm_defines
="USG FULL_PROTOTYPES"
4921 extra_parts
="crtbegin.o crtend.o"
4922 extra_headers
=math-68881.h
4925 m68k-motorola-sysv
*)
4926 tm_file
=m68k
/mot3300.h
4927 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4928 if test x
$gas = xyes
4930 xmake_file
=m68k
/x-mot3300-gas
4931 if test x
$gnu_ld = xyes
4933 tmake_file
=m68k
/t-mot3300-gald
4935 tmake_file
=m68k
/t-mot3300-gas
4939 xmake_file
=m68k
/x-mot3300
4940 if test x
$gnu_ld = xyes
4942 tmake_file
=m68k
/t-mot3300-gld
4944 tmake_file
=m68k
/t-mot3300
4948 gdb_needs_out_file_path
=yes
4949 extra_parts
="crt0.o mcrt0.o"
4950 extra_headers
=math-68881.h
4953 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4954 tm_file
=m68k
/tower-as.h
4955 xm_defines
="USG SVR3"
4956 xmake_file
=m68k
/x-tower
4957 extra_parts
="crtbegin.o crtend.o"
4958 extra_headers
=math-68881.h
4961 tm_file
=m68k
/plexus.h
4962 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4965 extra_headers
=math-68881.h
4969 xm_file
="xm-alloca.h ${xm_file}"
4971 extra_headers
=math-68881.h
4974 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4975 xm_defines
="USG unos"
4976 xmake_file
=m68k
/x-crds
4979 extra_headers
=math-68881.h
4981 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4983 xm_file
="xm-alloca.h ${xm_file}"
4984 xm_defines
="USG FULL_PROTOTYPES"
4985 xmake_file
=m68k
/x-amix
4987 extra_parts
="crtbegin.o crtend.o"
4988 extra_headers
=math-68881.h
4992 tm_file
=m68k
/ccur-GAS.h
4993 xmake_file
=m68k
/x-ccur
4994 extra_headers
=math-68881.h
4998 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4999 tm_file
=m68k
/hp3bsd44.h
5000 xmake_file
=m68k
/x-hp3bsd44
5002 extra_headers
=math-68881.h
5005 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5006 tm_file
=m68k
/hp3bsd.h
5008 extra_headers
=math-68881.h
5012 if test x
$with_fp = xno
5014 tm_file
=m68k
/isi-nfp.h
5020 extra_headers
=math-68881.h
5022 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5023 xm_file
="xm-alloca.h ${xm_file}"
5025 if test x
$gas = xyes
5027 xmake_file
=m68k
/x-hp320g
5028 tm_file
=m68k
/hp320g.h
5030 xmake_file
=m68k
/x-hp320
5031 tm_file
=m68k
/hpux7.h
5033 install_headers_dir
=install-headers-cpio
5035 extra_headers
=math-68881.h
5038 m68k-hp-hpux
*) # HP 9000 series 300
5039 xm_file
="xm-alloca.h ${xm_file}"
5041 if test x
$gas = xyes
5043 xmake_file
=m68k
/x-hp320g
5044 tm_file
=m68k
/hp320g.h
5046 xmake_file
=m68k
/x-hp320
5047 tm_file
=m68k
/hp320.h
5049 install_headers_dir
=install-headers-cpio
5051 extra_headers
=math-68881.h
5055 tm_file
=m68k
/sun3mach.h
5057 extra_headers
=math-68881.h
5061 if test x
$gas = xyes
5063 tm_file
=m68k
/news3gas.h
5065 tm_file
=m68k
/news3.h
5068 extra_headers
=math-68881.h
5071 m68k-sony-bsd
* | m68k-sony-newsos
*)
5072 if test x
$gas = xyes
5074 tm_file
=m68k
/newsgas.h
5079 extra_headers
=math-68881.h
5082 m68k-next-nextstep2
*)
5083 tm_file
=m68k
/next21.h
5084 xm_file
="m68k/xm-next.h ${xm_file}"
5085 tmake_file
=m68k
/t-next
5086 xmake_file
=m68k
/x-next
5087 extra_objs
=nextstep.o
5088 extra_headers
=math-68881.h
5092 m68k-next-nextstep
[34]*)
5094 xm_file
="m68k/xm-next.h ${xm_file}"
5095 tmake_file
=m68k
/t-next
5096 xmake_file
=m68k
/x-next
5097 extra_objs
=nextstep.o
5098 extra_parts
="crtbegin.o crtend.o"
5099 extra_headers
=math-68881.h
5101 if test x
$enable_threads = xyes
; then
5106 if test x
$with_fp = xno
5108 tm_file
=m68k
/sun3n3.h
5110 tm_file
=m68k
/sun3o3.h
5114 extra_headers
=math-68881.h
5116 m68k-sun-sunos
*) # For SunOS 4 (the default).
5117 if test x
$with_fp = xno
5119 tm_file
=m68k
/sun3n.h
5125 extra_headers
=math-68881.h
5128 tm_file
=m68k
/vxm68k.h
5129 tmake_file
=m68k
/t-vxworks68
5130 extra_headers
=math-68881.h
5131 thread_file
='vxworks'
5135 tmake_file
=m68k
/t-m68kbare
5136 tm_file
="m68k/m68k-aout.h libgloss.h"
5137 extra_headers
=math-68881.h
5141 tmake_file
=m68k
/t-m68kbare
5142 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5143 extra_headers
=math-68881.h
5146 m68020-
*-elf* | m68k-
*-elf*)
5147 tm_file
="m68k/m68020-elf.h"
5148 xm_file
=m68k
/xm-m68kv.h
5149 tmake_file
=m68k
/t-m68kelf
5150 header_files
=math-68881.h
5153 if test x
$gas = xyes
5157 tm_file
=m68k
/lynx-ng.h
5159 xm_file
=m68k
/xm-lynx.h
5161 tmake_file
=m68k
/t-lynx
5162 extra_headers
=math-68881.h
5166 tm_file
=m68k
/netbsd.h
5173 # we need collect2 until our bug is fixed...
5176 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5177 xm_file
="xm-alloca.h ${xm_file}"
5179 xmake_file
=m68k
/x-m68kv
5180 extra_parts
="crtbegin.o crtend.o"
5181 extra_headers
=math-68881.h
5184 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5185 tm_file
=m68k
/m68kv4.h
5186 xm_file
="xm-alloca.h ${xm_file}"
5189 extra_parts
="crtbegin.o crtend.o"
5190 extra_headers
=math-68881.h
5193 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5196 tm_file
=m68k
/linux-aout.h
5197 tmake_file
="t-linux-aout m68k/t-linux-aout"
5198 extra_headers
=math-68881.h
5202 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5203 # with ELF format using the
5204 # GNU/Linux C library 5
5206 tm_file
=m68k
/linux.h
5207 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5208 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5209 extra_headers
=math-68881.h
5213 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5214 # with ELF format using glibc 2
5215 # aka the GNU/Linux C library 6.
5217 tm_file
=m68k
/linux.h
5218 tmake_file
="t-linux m68k/t-linux"
5219 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5220 extra_headers
=math-68881.h
5223 if test x
$enable_threads = xyes
; then
5228 tmake_file
=m68k
/t-m68kbare
5229 tm_file
=m68k
/m68k-psos.h
5230 extra_headers
=math-68881.h
5234 tmake_file
="m68k/t-m68kbare t-rtems"
5235 tm_file
=m68k
/rtems.h
5236 extra_headers
=math-68881.h
5239 m68k-
*-rtemself*|m68k-
*-rtems*)
5240 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5241 tm_file
=m68k
/rtemself.h
5242 extra_headers
=math-68881.h
5248 tm_file
=m88k
/dguxbcs.h
5249 tmake_file
=m88k
/t-dguxbcs
5253 tmake_file
=m88k
/t-dgux
5256 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5257 xmake_file
=m88k
/x-dgux
5258 if test x
$gas = xyes
5260 tmake_file
=m88k
/t-dgux-gas
5263 m88k-dolphin-sysv3
*)
5264 tm_file
=m88k
/dolph.h
5265 extra_parts
="crtbegin.o crtend.o"
5266 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5267 xmake_file
=m88k
/x-dolph
5268 if test x
$gas = xyes
5270 tmake_file
=m88k
/t-m88k-gas
5273 m88k-tektronix-sysv3
)
5274 tm_file
=m88k
/tekXD88.h
5275 extra_parts
="crtbegin.o crtend.o"
5276 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5277 xmake_file
=m88k
/x-tekXD88
5278 if test x
$gas = xyes
5280 tmake_file
=m88k
/t-m88k-gas
5284 tm_file
=m88k
/m88k-aout.h
5287 tm_file
=m88k
/m88k-coff.h
5288 tmake_file
=m88k
/t-bug
5292 extra_parts
="crtbegin.o crtend.o"
5293 if test x
$gas = xyes
5295 tmake_file
=m88k
/t-luna-gas
5297 tmake_file
=m88k
/t-luna
5301 tmake_file
="${tmake_file} m88k/t-luna-gas"
5304 tm_file
=m88k
/sysv3.h
5305 extra_parts
="crtbegin.o crtend.o"
5306 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5307 xmake_file
=m88k
/x-sysv3
5308 if test x
$gas = xyes
5310 tmake_file
=m88k
/t-m88k-gas
5314 tm_file
=m88k
/sysv4.h
5315 extra_parts
="crtbegin.o crtend.o"
5316 xmake_file
=m88k
/x-sysv4
5317 tmake_file
=m88k
/t-sysv4
5320 tm_file
=mcore
/mcore-elf.h
5321 tmake_file
=mcore
/t-mcore
5324 tm_file
=mcore
/mcore-pe.h
5325 tmake_file
=mcore
/t-mcore-pe
5327 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5328 if test "x$gnu_ld" = xyes
5330 tm_file
="mips/iris6.h mips/iris6gld.h"
5332 tm_file
=mips
/iris6.h
5334 tmake_file
=mips
/t-iris6
5335 xm_file
=mips
/xm-iris6.h
5336 xmake_file
=mips
/x-iris6
5337 # if test x$enable_threads = xyes; then
5338 # thread_file='irix'
5342 tm_file
="mips/elf.h mips/vxworks.h"
5343 tmake_file
=mips
/t-ecoff
5346 extra_parts
="crtbegin.o crtend.o"
5347 thread_file
='vxworks'
5349 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5350 tm_file
="mips/iris6.h mips/cross64.h"
5352 xm_file
="mips/xm-iris5.h"
5353 xmake_file
=mips
/x-iris
5354 tmake_file
=mips
/t-cross64
5355 # See comment in mips/iris[56].h files.
5357 # if test x$enable_threads = xyes; then
5358 # thread_file='irix'
5362 if test x
$gas = xyes
5364 if test x
$stabs = xyes
5366 tm_file
=mips
/iris5gdb.h
5368 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5371 tm_file
=mips
/sni-svr4.h
5374 xmake_file
=mips
/x-sni-svr4
5375 tmake_file
=mips
/t-mips-gas
5376 if test x
$gnu_ld != xyes
5381 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5382 if test x
$gas = xyes
5384 tm_file
="mips/iris5.h mips/iris5gas.h"
5385 if test x
$stabs = xyes
5387 tm_file
="${tm_file} dbx.h"
5390 tm_file
=mips
/iris5.h
5393 xm_file
="mips/xm-iris5.h"
5394 xmake_file
=mips
/x-iris
5395 # mips-tfile doesn't work yet
5396 tmake_file
=mips
/t-mips-gas
5397 # See comment in mips/iris5.h file.
5399 # if test x$enable_threads = xyes; then
5400 # thread_file='irix'
5403 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5404 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5405 if test x
$stabs = xyes
; then
5406 tm_file
="${tm_file} dbx.h"
5409 xmake_file
=mips
/x-iris
5410 if test x
$gas = xyes
5412 tmake_file
=mips
/t-mips-gas
5414 extra_passes
="mips-tfile mips-tdump"
5416 if test x
$gnu_ld != xyes
5420 # if test x$enable_threads = xyes; then
5421 # thread_file='irix'
5424 mips-sgi-irix4
*) # Mostly like a MIPS.
5425 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5426 if test x
$stabs = xyes
; then
5427 tm_file
="${tm_file} dbx.h"
5430 xmake_file
=mips
/x-iris
5431 if test x
$gas = xyes
5433 tmake_file
=mips
/t-mips-gas
5435 extra_passes
="mips-tfile mips-tdump"
5437 if test x
$gnu_ld != xyes
5441 # if test x$enable_threads = xyes; then
5442 # thread_file='irix'
5445 mips-sgi-
*) # Mostly like a MIPS.
5446 tm_file
="mips/iris3.h ${tm_file}"
5447 if test x
$stabs = xyes
; then
5448 tm_file
="${tm_file} dbx.h"
5451 xmake_file
=mips
/x-iris3
5452 if test x
$gas = xyes
5454 tmake_file
=mips
/t-mips-gas
5456 extra_passes
="mips-tfile mips-tdump"
5458 if test x
$gnu_ld != xyes
5463 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5464 tm_file
="mips/osfrose.h ${tm_file}"
5465 xmake_file
=mips
/x-osfrose
5466 tmake_file
=mips
/t-osfrose
5467 extra_objs
=halfpic.o
5470 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5471 tm_file
=mips
/dec-osf1.h
5472 if test x
$stabs = xyes
; then
5473 tm_file
="${tm_file} dbx.h"
5475 xmake_file
=mips
/x-dec-osf1
5476 if test x
$gas = xyes
5478 tmake_file
=mips
/t-mips-gas
5480 tmake_file
=mips
/t-ultrix
5481 extra_passes
="mips-tfile mips-tdump"
5483 if test x
$gnu_ld != xyes
5488 mips-dec-bsd
*) # Decstation running 4.4 BSD
5489 tm_file
=mips
/dec-bsd.h
5490 if test x
$gas = xyes
5492 tmake_file
=mips
/t-mips-gas
5494 tmake_file
=mips
/t-ultrix
5495 extra_passes
="mips-tfile mips-tdump"
5497 if test x
$gnu_ld != xyes
5502 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5503 tm_file
=mips
/netbsd.h
5504 # On NetBSD, the headers are already okay, except for math.h.
5507 mips
*-*-linux*) # Linux MIPS, either endian.
5510 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5511 *) tm_file
="mips/elf.h mips/linux.h" ;;
5513 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5516 if test x
$enable_threads = xyes
; then
5520 mips
*el-
*-openbsd*) # mips little endian
5521 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5523 mips
*-*-openbsd*) # mips big endian
5524 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5525 tm_file
="mips/openbsd-be.h ${tm_file}"
5527 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5528 tm_file
="mips/news4.h ${tm_file}"
5529 if test x
$stabs = xyes
; then
5530 tm_file
="${tm_file} dbx.h"
5532 if test x
$gas = xyes
5534 tmake_file
=mips
/t-mips-gas
5536 extra_passes
="mips-tfile mips-tdump"
5538 if test x
$gnu_ld != xyes
5542 xmake_file
=mips
/x-sony
5544 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5545 # That is based on svr4.
5546 # t-svr4 is not right because this system doesn't use ELF.
5547 tm_file
="mips/news5.h ${tm_file}"
5548 if test x
$stabs = xyes
; then
5549 tm_file
="${tm_file} dbx.h"
5552 if test x
$gas = xyes
5554 tmake_file
=mips
/t-mips-gas
5556 extra_passes
="mips-tfile mips-tdump"
5558 if test x
$gnu_ld != xyes
5563 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5564 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5565 if test x
$stabs = xyes
; then
5566 tm_file
="${tm_file} dbx.h"
5569 xmake_file
=mips
/x-sysv
5570 if test x
$gas = xyes
5572 tmake_file
=mips
/t-mips-gas
5573 extra_parts
="crtbegin.o crtend.o"
5575 tmake_file
=mips
/t-mips
5576 extra_passes
="mips-tfile mips-tdump"
5578 if test x
$gnu_ld != xyes
5583 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5584 tm_file
="mips/ultrix.h ${tm_file}"
5585 if test x
$stabs = xyes
; then
5586 tm_file
="${tm_file} dbx.h"
5588 xmake_file
=mips
/x-ultrix
5589 if test x
$gas = xyes
5591 tmake_file
=mips
/t-mips-gas
5593 tmake_file
=mips
/t-ultrix
5594 extra_passes
="mips-tfile mips-tdump"
5596 if test x
$gnu_ld != xyes
5601 mips-
*-riscos[56789]bsd
*)
5602 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5603 if test x
$stabs = xyes
; then
5604 tm_file
="${tm_file} dbx.h"
5606 if test x
$gas = xyes
5608 tmake_file
=mips
/t-bsd-gas
5610 tmake_file
=mips
/t-bsd
5611 extra_passes
="mips-tfile mips-tdump"
5613 if test x
$gnu_ld != xyes
5618 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5619 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5620 if test x
$stabs = xyes
; then
5621 tm_file
="${tm_file} dbx.h"
5623 if test x
$gas = xyes
5625 tmake_file
=mips
/t-bsd-gas
5627 tmake_file
=mips
/t-bsd
5628 extra_passes
="mips-tfile mips-tdump"
5630 if test x
$gnu_ld != xyes
5635 mips-
*-riscos[56789]sysv4
*)
5636 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5637 if test x
$stabs = xyes
; then
5638 tm_file
="${tm_file} dbx.h"
5640 xmake_file
=mips
/x-sysv
5641 if test x
$gas = xyes
5643 tmake_file
=mips
/t-svr4-gas
5645 tmake_file
=mips
/t-svr4
5646 extra_passes
="mips-tfile mips-tdump"
5648 if test x
$gnu_ld != xyes
5653 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5654 tm_file
="mips/svr4-4.h ${tm_file}"
5655 if test x
$stabs = xyes
; then
5656 tm_file
="${tm_file} dbx.h"
5659 xmake_file
=mips
/x-sysv
5660 if test x
$gas = xyes
5662 tmake_file
=mips
/t-svr4-gas
5664 tmake_file
=mips
/t-svr4
5665 extra_passes
="mips-tfile mips-tdump"
5667 if test x
$gnu_ld != xyes
5672 mips-
*-riscos[56789]sysv
*)
5673 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5674 if test x
$stabs = xyes
; then
5675 tm_file
="${tm_file} dbx.h"
5678 xmake_file
=mips
/x-sysv
5679 if test x
$gas = xyes
5681 tmake_file
=mips
/t-svr3-gas
5683 tmake_file
=mips
/t-svr3
5684 extra_passes
="mips-tfile mips-tdump"
5686 if test x
$gnu_ld != xyes
5691 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5692 tm_file
="mips/svr3-4.h ${tm_file}"
5693 if test x
$stabs = xyes
; then
5694 tm_file
="${tm_file} dbx.h"
5697 xmake_file
=mips
/x-sysv
5698 if test x
$gas = xyes
5700 tmake_file
=mips
/t-svr3-gas
5702 tmake_file
=mips
/t-svr3
5703 extra_passes
="mips-tfile mips-tdump"
5705 if test x
$gnu_ld != xyes
5710 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5711 tm_file
=mips
/mips-5.h
5712 if test x
$stabs = xyes
; then
5713 tm_file
="${tm_file} dbx.h"
5715 if test x
$gas = xyes
5717 tmake_file
=mips
/t-mips-gas
5719 extra_passes
="mips-tfile mips-tdump"
5721 if test x
$gnu_ld != xyes
5729 tm_file
=mips
/ecoffl.h
5730 if test x
$stabs = xyes
; then
5731 tm_file
="${tm_file} dbx.h"
5733 tmake_file
=mips
/t-ecoff
5736 tm_file
="gofast.h mips/ecoff.h"
5737 if test x
$stabs = xyes
; then
5738 tm_file
="${tm_file} dbx.h"
5740 tmake_file
=mips
/t-ecoff
5743 tm_file
="mips/elfl.h"
5744 tmake_file
=mips
/t-elf
5747 tm_file
="mips/elf.h"
5748 tmake_file
=mips
/t-elf
5751 tm_file
="mips/elfl64.h"
5752 tmake_file
=mips
/t-elf
5754 mips64orionel-
*-elf*)
5755 tm_file
="mips/elforion.h mips/elfl64.h"
5756 tmake_file
=mips
/t-elf
5759 tm_file
="mips/elf64.h"
5760 tmake_file
=mips
/t-elf
5763 tm_file
="mips/elforion.h mips/elf64.h"
5764 tmake_file
=mips
/t-elf
5766 mips64orion-
*-rtems*)
5767 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5768 tmake_file
="mips/t-elf t-rtems"
5771 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5772 tmake_file
=mips
/t-r3900
5775 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5776 tmake_file
=mips
/t-r3900
5778 mips-
*-*) # Default MIPS RISC-OS 4.0.
5779 if test x
$stabs = xyes
; then
5780 tm_file
="${tm_file} dbx.h"
5782 if test x
$gas = xyes
5784 tmake_file
=mips
/t-mips-gas
5786 extra_passes
="mips-tfile mips-tdump"
5788 if test x
$gnu_ld != xyes
5796 tm_file
="mn10200/mn10200.h"
5797 if test x
$stabs = xyes
5799 tm_file
="${tm_file} dbx.h"
5805 tm_file
="mn10300/mn10300.h"
5806 if test x
$stabs = xyes
5808 tm_file
="${tm_file} dbx.h"
5813 tm_file
=ns32k
/encore.h
5817 tm_file
=ns32k
/sequent.h
5821 tm_file
=ns32k
/tek6100.h
5825 tm_file
=ns32k
/tek6200.h
5828 # This has not been updated to GCC 2.
5831 # xmake_file=ns32k/x-genix
5832 # tm_file=ns32k/genix.h
5836 tm_file
=ns32k
/merlin.h
5840 tm_file
=ns32k
/pc532-mach.h
5844 tm_file
=ns32k
/pc532-min.h
5845 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5850 tm_file
=ns32k
/netbsd.h
5851 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5852 # On NetBSD, the headers are already okay, except for math.h.
5857 tm_file
="${tm_file} pdp11/2bsd.h"
5866 # This has not been updated to GCC 2.
5869 # xmake_file=pyr/x-pyr
5874 tm_file
="svr4.h pj/linux.h ${tm_file}"
5879 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5886 xmake_file
=romp
/x-mach
5893 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5897 tm_file
=rs6000
/beos.h
5898 xm_file
=rs6000
/xm-beos.h
5899 tmake_file
=rs6000
/t-beos
5900 xmake_file
=rs6000
/x-beos
5903 tm_file
=rs6000
/sysv4.h
5904 xm_file
="rs6000/xm-sysv4.h"
5905 xm_defines
="USG POSIX"
5906 extra_headers
=ppc-asm.h
5907 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5908 xmake_file
=rs6000
/x-sysv4
5911 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5912 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5913 extra_headers
=ppc-asm.h
5916 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5917 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5918 extra_headers
=ppc-asm.h
5921 tm_file
="rs6000/sysv4.h"
5922 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5923 extra_headers
=ppc-asm.h
5926 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5927 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5928 extra_headers
=ppc-asm.h
5931 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5932 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5933 extra_headers
=ppc-asm.h
5935 powerpc-
*-linux-gnulibc1)
5936 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5937 xm_file
=rs6000
/xm-sysv4.h
5938 out_file
=rs6000
/rs6000.c
5939 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5941 extra_headers
=ppc-asm.h
5942 if test x
$enable_threads = xyes
; then
5946 powerpc-
*-linux-gnu*)
5947 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5948 xm_file
="rs6000/xm-sysv4.h"
5949 xm_defines
="USG ${xm_defines}"
5950 out_file
=rs6000
/rs6000.c
5951 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5953 extra_headers
=ppc-asm.h
5954 if test x
$enable_threads = xyes
; then
5958 powerpc-wrs-vxworks
*)
5960 xm_file
="rs6000/xm-sysv4.h"
5961 xm_defines
="USG POSIX"
5962 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5963 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5964 extra_headers
=ppc-asm.h
5965 thread_file
='vxworks'
5967 powerpcle-wrs-vxworks
*)
5969 xm_file
="rs6000/xm-sysv4.h"
5970 xm_defines
="USG POSIX"
5971 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5972 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5973 extra_headers
=ppc-asm.h
5974 thread_file
='vxworks'
5977 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5978 xm_file
="rs6000/xm-sysv4.h"
5979 xm_defines
="USG POSIX"
5980 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5981 xmake_file
=rs6000
/x-sysv4
5982 extra_headers
=ppc-asm.h
5985 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5986 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5987 extra_headers
=ppc-asm.h
5989 powerpcle-
*-eabisim*)
5990 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5991 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5992 extra_headers
=ppc-asm.h
5995 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5996 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5997 extra_headers
=ppc-asm.h
5999 powerpcle-
*-solaris2*)
6000 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6001 xm_file
="rs6000/xm-sysv4.h"
6002 xm_defines
="USG POSIX"
6003 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6004 xmake_file
=rs6000
/x-sysv4
6005 extra_headers
=ppc-asm.h
6007 rs6000-ibm-aix3.
[01]*)
6008 tm_file
=rs6000
/aix31.h
6009 xmake_file
=rs6000
/x-aix31
6013 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6014 tm_file
=rs6000
/aix3newas.h
6015 if test x
$host != x
$target
6017 tmake_file
=rs6000
/t-xnewas
6019 tmake_file
=rs6000
/t-newas
6024 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6025 tm_file
=rs6000
/aix41.h
6026 if test x
$host != x
$target
6028 tmake_file
=rs6000
/t-xnewas
6030 tmake_file
=rs6000
/t-newas
6032 if test "$gnu_ld" = yes
6034 xmake_file
=rs6000
/x-aix41-gld
6036 tmake_file
="rs6000/t-newas rs6000/t-aix41"
6038 xmake_file
=rs6000
/x-aix41
6042 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6043 tm_file
=rs6000
/aix43.h
6044 tmake_file
=rs6000
/t-aix43
6045 xmake_file
=rs6000
/x-aix41
6049 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6050 tm_file
=rs6000
/aix43.h
6051 tmake_file
=rs6000
/t-aix43
6052 xmake_file
=rs6000
/x-aix41
6065 tm_file
=rs6000
/mach.h
6066 xm_file
="${xm_file} rs6000/xm-mach.h"
6067 xmake_file
=rs6000
/x-mach
6071 tm_file
=rs6000
/lynx.h
6072 xm_file
=rs6000
/xm-lynx.h
6073 tmake_file
=rs6000
/t-rs6000
6074 xmake_file
=rs6000
/x-lynx
6082 tmake_file
="sh/t-sh t-rtems"
6083 tm_file
=sh
/rtemself.h
6087 tmake_file
="sh/t-sh t-rtems"
6096 xm_file
="xm-alloca.h ${xm_file}"
6099 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6100 tm_file
=sparc
/vxsparc.h
6101 tmake_file
=sparc
/t-vxsparc
6103 thread_file
='vxworks'
6106 tmake_file
=sparc
/t-sparcbare
6107 tm_file
="sparc/aout.h libgloss.h"
6110 tm_file
=sparc
/netbsd.h
6115 # we need collect2 until our bug is fixed...
6123 tmake_file
=sparc
/t-elf
6124 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6128 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6129 xm_file
="${xm_file} sparc/xm-linux.h"
6130 tm_file
=sparc
/linux-aout.h
6134 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6135 xm_file
="${xm_file} sparc/xm-linux.h"
6137 tm_file
=sparc
/linux.h
6138 tmake_file
="t-linux t-linux-gnulibc1"
6139 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6143 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6144 xm_file
="${xm_file} sparc/xm-linux.h"
6146 tm_file
=sparc
/linux.h
6147 tmake_file
="t-linux"
6148 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6150 if test x
$enable_threads = xyes
; then
6156 if test x
$gas = xyes
6158 tm_file
=sparc
/lynx.h
6160 tm_file
=sparc
/lynx-ng.h
6162 xm_file
=sparc
/xm-lynx.h
6163 tmake_file
=sparc
/t-sunos41
6167 tmake_file
="sparc/t-sparcbare t-rtems"
6168 tm_file
=sparc
/rtems.h
6170 sparc-
*-rtems*|sparc-
*-rtemself*)
6171 tm_file
="sparc/rtemself.h"
6172 tmake_file
="sparc/t-elf t-rtems"
6173 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6177 sparcv9-
*-solaris2*)
6178 if test x
$gnu_ld = xyes
6180 tm_file
=sparc
/sol2-64.h
6182 tm_file
=sparc
/sol2-sld-64.h
6184 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6185 xm_defines
="USG POSIX"
6186 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6187 xmake_file
=sparc
/x-sysv4
6188 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6190 if test x
${enable_threads} = x
; then
6191 enable_threads
=$have_pthread_h
6192 if test x
${enable_threads} = x
; then
6193 enable_threads
=$have_thread_h
6196 if test x
${enable_threads} = xyes
; then
6197 if test x
${have_pthread_h} = xyes
; then
6200 thread_file
='solaris'
6204 sparc-hal-solaris2
*)
6205 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6206 xm_defines
="USG POSIX"
6207 tm_file
="sparc/sol2.h sparc/hal.h"
6208 tmake_file
="sparc/t-halos sparc/t-sol2"
6209 xmake_file
=sparc
/x-sysv4
6210 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6219 thread_file
='solaris'
6222 if test x
$gnu_ld = xyes
6224 tm_file
=sparc
/sol2.h
6226 tm_file
=sparc
/sol2-sld.h
6228 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6229 xm_defines
="USG POSIX"
6230 tmake_file
=sparc
/t-sol2
6231 xmake_file
=sparc
/x-sysv4
6232 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6234 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6236 if test x
$gnu_ld = xyes
6238 tm_file
=sparc
/sol2-64.h
6240 tm_file
=sparc
/sol2-sld-64.h
6242 tmake_file
="$tmake_file sparc/t-sol2-64"
6253 if test x
${enable_threads} = x
; then
6254 enable_threads
=$have_pthread_h
6255 if test x
${enable_threads} = x
; then
6256 enable_threads
=$have_thread_h
6259 if test x
${enable_threads} = xyes
; then
6260 if test x
${have_pthread_h} = xyes
; then
6263 thread_file
='solaris'
6268 tm_file
=sparc
/sunos4.h
6269 tmake_file
=sparc
/t-sunos40
6273 tm_file
=sparc
/sunos4.h
6274 tmake_file
=sparc
/t-sunos41
6276 if test x
$gas = xyes
; then
6277 tm_file
="${tm_file} sparc/sun4gas.h"
6281 tm_file
=sparc
/sun4o3.h
6285 tm_file
=sparc
/sysv4.h
6286 xm_file
="sparc/xm-sysv4.h"
6287 xm_defines
="USG POSIX"
6289 xmake_file
=sparc
/x-sysv4
6290 extra_parts
="crtbegin.o crtend.o"
6293 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6294 xm_defines
="USG POSIX"
6295 tm_file
=sparc
/vxsim.h
6296 tmake_file
=sparc
/t-vxsparc
6297 xmake_file
=sparc
/x-sysv4
6300 tm_file
="sparc/splet.h libgloss.h"
6301 tmake_file
=sparc
/t-splet
6304 tm_file
="sparc/litecoff.h libgloss.h"
6305 tmake_file
=sparc
/t-sparclite
6308 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6309 tmake_file
=sparc
/t-sparclite
6312 tm_file
="sparc/liteelf.h"
6313 tmake_file
=sparc
/t-sparclite
6314 extra_parts
="crtbegin.o crtend.o"
6317 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6318 tmake_file
=sparc
/t-sp86x
6321 tm_file
="sparc/sp86x-elf.h"
6322 tmake_file
=sparc
/t-sp86x
6323 extra_parts
="crtbegin.o crtend.o"
6326 tmake_file
=sparc
/t-sp64
6327 tm_file
=sparc
/sp64-aout.h
6330 tmake_file
=sparc
/t-sp64
6331 tm_file
=sparc
/sp64-elf.h
6332 extra_parts
="crtbegin.o crtend.o"
6334 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6335 tmake_file
="t-linux sparc/t-linux64"
6336 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6337 tm_file
=sparc
/linux64.h
6339 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6341 if test x
$enable_threads = xyes
; then
6346 # This hasn't been upgraded to GCC 2.
6347 # tahoe-harris-*) # Harris tahoe, using COFF.
6348 # tm_file=tahoe/harris.h
6350 # tahoe-*-bsd*) # tahoe running BSD
6354 { echo "configure: error:
6355 *** The Thumb targets have been depreciated. The equivalent
6356 *** ARM based toolchain can now generated Thumb instructions
6357 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6359 # This hasn't been upgraded to GCC 2.
6366 tm_file
="v850/rtems.h"
6367 xm_file
="v850/xm-v850.h"
6368 tmake_file
="v850/t-v850 t-rtems"
6369 if test x
$stabs = xyes
6371 tm_file
="${tm_file} dbx.h"
6376 target_cpu_default
="TARGET_CPU_generic"
6378 tm_file
="v850/v850.h"
6379 xm_file
="v850/xm-v850.h"
6380 tmake_file
=v850
/t-v850
6381 if test x
$stabs = xyes
6383 tm_file
="${tm_file} dbx.h"
6387 vax-
*-bsd*) # vaxen running BSD
6391 vax-
*-sysv*) # vaxen running system V
6392 tm_file
="${tm_file} vax/vaxv.h"
6397 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6403 tmake_file
="${tmake_file} vax/t-openbsd"
6405 vax-
*-ultrix*) # vaxen running ultrix
6406 tm_file
="${tm_file} vax/ultrix.h"
6410 vax-
*-vms*) # vaxen running VMS
6411 xm_file
=vax
/xm-vms.h
6415 vax-
*-*) # vax default entry
6419 xm_file
="${xm_file} xm-svr3"
6423 echo "Configuration $machine not supported" 1>&2
6430 ;; # Existing GNU/Linux systems do not use the GNU setup.
6432 # On the GNU system, the setup is just about the same on
6433 # each different CPU. The specific machines that GNU
6434 # supports are matched above and just set $cpu_type.
6435 xm_file
="xm-gnu.h ${xm_file}"
6436 tm_file
=${cpu_type}/gnu.h
6437 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6438 # GNU always uses ELF.
6440 # GNU tools are the only tools.
6443 xmake_file
=x-linux
# These details are the same as Linux.
6444 tmake_file
=t-gnu
# These are not.
6447 xmake_try_sysv
=x-sysv
6448 install_headers_dir
=install-headers-cpio
6451 install_headers_dir
=install-headers-cpio
6455 # Distinguish i[34567]86
6456 # Also, do not run mips-tfile on MIPS if using gas.
6457 # Process --with-cpu= for PowerPC/rs6000
6458 target_cpu_default2
=
6461 target_cpu_default2
=1
6464 case $target_alias in
6466 target_cpu_default2
=4
6469 target_cpu_default2
=2
6473 i686-
*-* | i786-
*-*)
6474 target_cpu_default2
=3
6479 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6482 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6485 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6488 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6491 target_cpu_default2
="MASK_CPU_EV5"
6495 if test x
$gas = xyes
6497 if test "$target_cpu_default2" = ""
6499 target_cpu_default2
="MASK_GAS"
6501 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6506 case "x$with_cpu" in
6509 target_cpu_default2
="TARGET_CPU_generic"
6512 # Distinguish cores, and major variants
6513 # arm7m doesn't exist, but D & I don't affect code
6514 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6515 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6516 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6517 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6518 target_cpu_default2
="TARGET_CPU_$with_cpu"
6522 echo "--with-cpu must be passed a value" 1>&2
6527 if test x
$pass2done = xyes
6529 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6536 mips
*-*-ecoff* | mips
*-*-elf*)
6537 if test x
$gas = xyes
6539 if test x
$gnu_ld = xyes
6541 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6543 target_cpu_default2
="MASK_GAS"
6548 if test x
$gas = xyes
6550 target_cpu_default2
="MASK_GAS"
6553 powerpc
*-*-* | rs6000-
*-*)
6554 case "x$with_cpu" in
6558 xcommon | xpower | xpower2 | xpowerpc | xrios \
6559 | xrios1 | xrios2 | xrsc | xrsc1 \
6560 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6561 | xec603e | x740 | x750 | x401 \
6562 | x403 | x505 | x801 | x821 | x823 | x860
)
6563 target_cpu_default2
="\"$with_cpu\""
6567 echo "--with-cpu must be passed a value" 1>&2
6572 if test x
$pass2done = xyes
6574 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6581 case ".$with_cpu" in
6583 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6585 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6586 target_cpu_default2
="TARGET_CPU_$with_cpu"
6589 if test x
$pass2done = xyes
6591 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6599 if test "$target_cpu_default2" != ""
6601 if test "$target_cpu_default" != ""
6603 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6605 target_cpu_default
=$target_cpu_default2
6609 # No need for collect2 if we have the GNU linker.
6610 # Actually, there is now; GNU ld doesn't handle the EH info or
6611 # collecting for shared libraries.
6618 # Save data on machine being used to compile GCC in build_xm_file.
6619 # Save data on host machine in vars host_xm_file and host_xmake_file.
6620 if test x
$pass1done = x
6622 if test x
"$xm_file" = x
6623 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6624 else build_xm_file
=$xm_file
6626 build_xm_defines
=$xm_defines
6627 build_install_headers_dir
=$install_headers_dir
6628 build_exeext
=$exeext
6631 if test x
$pass2done = x
6633 if test x
"$xm_file" = x
6634 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6635 else host_xm_file
=$xm_file
6637 host_xm_defines
=$xm_defines
6638 if test x
"$xmake_file" = x
6639 then xmake_file
=$cpu_type/x-
$cpu_type
6641 host_xmake_file
="$xmake_file"
6642 host_truncate_target
=$truncate_target
6643 host_extra_gcc_objs
=$extra_gcc_objs
6644 host_extra_objs
=$extra_host_objs
6651 extra_objs
="${host_extra_objs} ${extra_objs}"
6653 # Default the target-machine variables that were not explicitly set.
6654 if test x
"$tm_file" = x
6655 then tm_file
=$cpu_type/$cpu_type.h
; fi
6657 if test x
$extra_headers = x
6658 then extra_headers
=; fi
6660 if test x
"$xm_file" = x
6661 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6663 if test x
$md_file = x
6664 then md_file
=$cpu_type/$cpu_type.md
; fi
6666 if test x
$out_file = x
6667 then out_file
=$cpu_type/$cpu_type.c
; fi
6669 if test x
"$tmake_file" = x
6670 then tmake_file
=$cpu_type/t-
$cpu_type
6673 if test x
"$dwarf2" = xyes
6674 then tm_file
="$tm_file tm-dwarf2.h"
6677 if test x
$float_format = x
6678 then float_format
=i64
6681 if test $float_format = none
6682 then float_h_file
=Makefile.
in
6683 else float_h_file
=float-
$float_format.h
6686 # Handle cpp installation.
6687 if test x
$enable_cpp != xno
6689 tmake_file
="$tmake_file t-install-cpp"
6692 # Say what files are being used for the output code and MD file.
6693 echo "Using \`$srcdir/config/$out_file' to output insns."
6694 echo "Using \`$srcdir/config/$md_file' as machine description file."
6697 for f
in $tm_file; do
6700 if test $count = ax
; then
6701 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6703 echo "Using the following target machine macro files:"
6704 for f
in $tm_file; do
6705 echo " $srcdir/config/$f"
6710 for f
in $host_xm_file; do
6713 if test $count = ax
; then
6714 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6716 echo "Using the following host machine macro files:"
6717 for f
in $host_xm_file; do
6718 echo " $srcdir/config/$f"
6722 if test "$host_xm_file" != "$build_xm_file"; then
6724 for f
in $build_xm_file; do
6727 if test $count = ax
; then
6728 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6730 echo "Using the following build machine macro files:"
6731 for f
in $build_xm_file; do
6732 echo " $srcdir/config/$f"
6737 if test x
$thread_file = x
; then
6738 if test x
$target_thread_file != x
; then
6739 thread_file
=$target_thread_file
6741 thread_file
='single'
6745 # Set up the header files.
6746 # $links is the list of header files to create.
6747 # $vars is the list of shell variables with file names to include.
6748 # auto-host.h is the file containing items generated by autoconf and is
6749 # the first file included by config.h.
6751 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6753 # If host=build, it is correct to have hconfig include auto-host.h
6754 # as well. If host!=build, we are in error and need to do more
6755 # work to find out the build config parameters.
6756 if test x
$host = x
$build
6758 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6760 # We create a subdir, then run autoconf in the subdir.
6761 # To prevent recursion we set host and build for the new
6762 # invocation of configure to the build for this invocation
6769 /*) realsrcdir
=${srcdir};;
6770 *) realsrcdir
=..
/${srcdir};;
6772 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6773 --target=$target --host=$build --build=$build
6775 # We just finished tests for the build machine, so rename
6776 # the file auto-build.h in the gcc directory.
6777 mv auto-host.h ..
/auto-build.h
6780 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6783 xm_file
="gansidecl.h ${xm_file}"
6784 tm_file
="gansidecl.h ${tm_file}"
6786 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6787 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6788 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6791 if test -f config.status
; then mv -f config.status config.bak
; fi
6794 while test -n "$vars"
6796 set $vars; var
=$1; shift; vars
=$
*
6797 set $links; link
=$1; shift; links
=$
*
6798 set $defines; define
=$1; shift; defines
=$
*
6801 # Make sure the file is created, even if it is empty.
6804 # Define TARGET_CPU_DEFAULT if the system wants one.
6805 # This substitutes for lots of *.h files.
6806 if test "$target_cpu_default" != "" -a $link = tm.h
6808 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6811 for file in `eval echo '$'$var`; do
6816 echo '#ifdef IN_GCC' >>$link
6819 echo "#include \"$file\"" >>$link
6824 echo '#endif' >>$link
6829 for def
in `eval echo '$'$define`; do
6830 echo "#ifndef $def" >>$link
6831 echo "#define $def" >>$link
6832 echo "#endif" >>$link
6836 # Truncate the target if necessary
6837 if test x
$host_truncate_target != x
; then
6838 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6841 # Get the version trigger filename from the toplevel
6842 if test "${with_gcc_version_trigger+set}" = set; then
6843 gcc_version_trigger
=$with_gcc_version_trigger
6845 gcc_version_trigger
=${srcdir}/version.c
6847 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6849 # Internationalization
6851 VERSION
="$gcc_version"
6852 cat >> confdefs.h
<<EOF
6853 #define PACKAGE "$PACKAGE"
6856 cat >> confdefs.h
<<EOF
6857 #define VERSION "$VERSION"
6865 # NLS support is still experimental, so disable it by default for now.
6866 # Check whether --enable-nls or --disable-nls was given.
6867 if test "${enable_nls+set}" = set; then
6868 enableval
="$enable_nls"
6876 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6877 echo "configure:6878: checking for strerror in -lcposix" >&5
6878 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6882 ac_save_LIBS
="$LIBS"
6883 LIBS
="-lcposix $LIBS"
6884 cat > conftest.
$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6896 if { (eval echo configure
:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6898 eval "ac_cv_lib_$ac_lib_var=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.
$ac_ext >&5
6903 eval "ac_cv_lib_$ac_lib_var=no"
6906 LIBS
="$ac_save_LIBS"
6909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6910 echo "$ac_t""yes" 1>&6
6911 LIBS
="$LIBS -lcposix"
6913 echo "$ac_t""no" 1>&6
6918 echo $ac_n "checking for working const""... $ac_c" 1>&6
6919 echo "configure:6920: checking for working const" >&5
6920 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6921 echo $ac_n "(cached) $ac_c" 1>&6
6923 cat > conftest.
$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6929 /* Ultrix mips cc rejects this. */
6930 typedef int charset[2]; const charset x = {0,0};
6931 /* SunOS 4.1.1 cc rejects this. */
6932 char const *const *ccp;
6934 /* NEC SVR4.0.2 mips cc rejects this. */
6935 struct point {int x, y;};
6936 static struct point const zero = {0,0};
6937 /* AIX XL C 1.02.0.0 rejects this.
6938 It does not let you subtract one const X* pointer from another in an arm
6939 of an if-expression whose if-part is not a constant expression */
6940 const char *g = "string";
6941 ccp = &g + (g ? g-g : 0);
6942 /* HPUX 7.0 cc rejects these. */
6945 ccp = (char const *const *) p;
6946 { /* SCO 3.2v4 cc rejects this. */
6948 char const *s = 0 ? (char *) 0 : (char const *) 0;
6952 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6954 const int *foo = &x[0];
6957 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6958 typedef const int *iptr;
6962 { /* AIX XL C 1.02.0.0 rejects this saying
6963 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6964 struct s { int j; const int *ap[3]; };
6965 struct s *b; b->j = 5;
6967 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6973 if { (eval echo configure
:6974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6977 echo "configure: failed program was:" >&5
6978 cat conftest.
$ac_ext >&5
6985 echo "$ac_t""$ac_cv_c_const" 1>&6
6986 if test $ac_cv_c_const = no
; then
6987 cat >> confdefs.h
<<\EOF
6993 echo $ac_n "checking for inline""... $ac_c" 1>&6
6994 echo "configure:6995: checking for inline" >&5
6995 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6996 echo $ac_n "(cached) $ac_c" 1>&6
6999 for ac_kw
in inline __inline__ __inline
; do
7000 cat > conftest.
$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7005 } int $ac_kw foo() {
7008 if { (eval echo configure
:7009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7010 ac_cv_c_inline
=$ac_kw; break
7012 echo "configure: failed program was:" >&5
7013 cat conftest.
$ac_ext >&5
7020 echo "$ac_t""$ac_cv_c_inline" 1>&6
7021 case "$ac_cv_c_inline" in
7023 no
) cat >> confdefs.h
<<\EOF
7027 *) cat >> confdefs.h
<<EOF
7028 #define inline $ac_cv_c_inline
7033 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7034 echo "configure:7035: checking for off_t" >&5
7035 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7038 cat > conftest.
$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7041 #include <sys/types.h>
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7050 ac_cv_type_off_t
=yes
7058 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7059 if test $ac_cv_type_off_t = no
; then
7060 cat >> confdefs.h
<<\EOF
7066 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7067 echo "configure:7068: checking for size_t" >&5
7068 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7071 cat > conftest.
$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7074 #include <sys/types.h>
7080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7081 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7083 ac_cv_type_size_t
=yes
7086 ac_cv_type_size_t
=no
7091 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7092 if test $ac_cv_type_size_t = no
; then
7093 cat >> confdefs.h
<<\EOF
7094 #define size_t unsigned
7099 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7100 # for constant arguments. Useless!
7101 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7102 echo "configure:7103: checking for working alloca.h" >&5
7103 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7104 echo $ac_n "(cached) $ac_c" 1>&6
7106 cat > conftest.
$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7111 void *p = alloca(2 * sizeof(int));
7114 if { (eval echo configure
:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7116 ac_cv_header_alloca_h
=yes
7118 echo "configure: failed program was:" >&5
7119 cat conftest.
$ac_ext >&5
7121 ac_cv_header_alloca_h
=no
7126 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7127 if test $ac_cv_header_alloca_h = yes; then
7128 cat >> confdefs.h
<<\EOF
7129 #define HAVE_ALLOCA_H 1
7134 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7135 echo "configure:7136: checking for alloca" >&5
7136 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.
$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7144 # define alloca __builtin_alloca
7147 # include <malloc.h>
7148 # define alloca _alloca
7151 # include <alloca.h>
7156 # ifndef alloca /* predefined by HP cc +Olibcalls */
7165 char *p = (char *) alloca(1);
7168 if { (eval echo configure
:7169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7170 ac_cv_func_alloca_works
=yes
7172 echo "configure: failed program was:" >&5
7173 cat conftest.
$ac_ext >&5
7175 ac_cv_func_alloca_works
=no
7180 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7181 if test $ac_cv_func_alloca_works = yes; then
7182 cat >> confdefs.h
<<\EOF
7183 #define HAVE_ALLOCA 1
7188 if test $ac_cv_func_alloca_works = no
; then
7189 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7190 # that cause trouble. Some versions do not even contain alloca or
7191 # contain a buggy version. If you still want to use their alloca,
7192 # use ar to extract alloca.o from them instead of compiling alloca.c.
7193 ALLOCA
=alloca.
${ac_objext}
7194 cat >> confdefs.h
<<\EOF
7199 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7200 echo "configure:7201: checking whether alloca needs Cray hooks" >&5
7201 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 cat > conftest.
$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7207 #if defined(CRAY) && ! defined(CRAY2)
7214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7215 egrep "webecray" >/dev
/null
2>&1; then
7226 echo "$ac_t""$ac_cv_os_cray" 1>&6
7227 if test $ac_cv_os_cray = yes; then
7228 for ac_func
in _getb67 GETB67 getb67
; do
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 cat >> confdefs.h
<<EOF
7273 #define CRAY_STACKSEG_END $ac_func
7278 echo "$ac_t""no" 1>&6
7284 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7285 echo "configure:7286: checking stack direction for C alloca" >&5
7286 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 if test "$cross_compiling" = yes; then
7290 ac_cv_c_stack_direction
=0
7292 cat > conftest.
$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 find_stack_direction ()
7297 static char *addr = 0;
7302 return find_stack_direction ();
7305 return (&dummy > addr) ? 1 : -1;
7309 exit (find_stack_direction() < 0);
7312 if { (eval echo configure
:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7314 ac_cv_c_stack_direction
=1
7316 echo "configure: failed program was:" >&5
7317 cat conftest.
$ac_ext >&5
7319 ac_cv_c_stack_direction
=-1
7326 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7327 cat >> confdefs.h
<<EOF
7328 #define STACK_DIRECTION $ac_cv_c_stack_direction
7334 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7335 unistd.h sys
/param.h
7337 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7339 echo "configure:7340: checking for $ac_hdr" >&5
7340 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7341 echo $ac_n "(cached) $ac_c" 1>&6
7343 cat > conftest.
$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7348 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7349 { (eval echo configure
:7350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7350 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7351 if test -z "$ac_err"; then
7353 eval "ac_cv_header_$ac_safe=yes"
7356 echo "configure: failed program was:" >&5
7357 cat conftest.
$ac_ext >&5
7359 eval "ac_cv_header_$ac_safe=no"
7363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7364 echo "$ac_t""yes" 1>&6
7365 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7366 cat >> confdefs.h
<<EOF
7367 #define $ac_tr_hdr 1
7371 echo "$ac_t""no" 1>&6
7375 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7376 strdup __argz_count __argz_stringify __argz_next
7378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7379 echo "configure:7380: checking for $ac_func" >&5
7380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7383 cat > conftest.
$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7386 /* System header to define __stub macros and hopefully few prototypes,
7387 which can conflict with char $ac_func(); below. */
7389 /* Override any gcc2 internal prototype to avoid an error. */
7390 /* We use char because int might match the return type of a gcc2
7391 builtin and then its argument prototype would still apply. */
7396 /* The GNU C library defines this for functions which it implements
7397 to always fail with ENOSYS. Some functions are actually named
7398 something starting with __ and the normal name is an alias. */
7399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7407 if { (eval echo configure
:7408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7409 eval "ac_cv_func_$ac_func=yes"
7411 echo "configure: failed program was:" >&5
7412 cat conftest.
$ac_ext >&5
7414 eval "ac_cv_func_$ac_func=no"
7419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7420 echo "$ac_t""yes" 1>&6
7421 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7422 cat >> confdefs.h
<<EOF
7423 #define $ac_tr_func 1
7427 echo "$ac_t""no" 1>&6
7432 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7433 for ac_func
in stpcpy
7435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7436 echo "configure:7437: checking for $ac_func" >&5
7437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7440 cat > conftest.
$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7443 /* System header to define __stub macros and hopefully few prototypes,
7444 which can conflict with char $ac_func(); below. */
7446 /* Override any gcc2 internal prototype to avoid an error. */
7447 /* We use char because int might match the return type of a gcc2
7448 builtin and then its argument prototype would still apply. */
7453 /* The GNU C library defines this for functions which it implements
7454 to always fail with ENOSYS. Some functions are actually named
7455 something starting with __ and the normal name is an alias. */
7456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7464 if { (eval echo configure
:7465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7466 eval "ac_cv_func_$ac_func=yes"
7468 echo "configure: failed program was:" >&5
7469 cat conftest.
$ac_ext >&5
7471 eval "ac_cv_func_$ac_func=no"
7476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7477 echo "$ac_t""yes" 1>&6
7478 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7479 cat >> confdefs.h
<<EOF
7480 #define $ac_tr_func 1
7484 echo "$ac_t""no" 1>&6
7489 if test "${ac_cv_func_stpcpy}" = "yes"; then
7490 cat >> confdefs.h
<<\EOF
7491 #define HAVE_STPCPY 1
7496 if test $ac_cv_header_locale_h = yes; then
7497 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7498 echo "configure:7499: checking for LC_MESSAGES" >&5
7499 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7502 cat > conftest.
$ac_ext <<EOF
7503 #line 7504 "configure"
7504 #include "confdefs.h"
7510 if { (eval echo configure
:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7512 am_cv_val_LC_MESSAGES
=yes
7514 echo "configure: failed program was:" >&5
7515 cat conftest.
$ac_ext >&5
7517 am_cv_val_LC_MESSAGES
=no
7522 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7523 if test $am_cv_val_LC_MESSAGES = yes; then
7524 cat >> confdefs.h
<<\EOF
7525 #define HAVE_LC_MESSAGES 1
7530 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7531 echo "configure:7532: checking whether NLS is requested" >&5
7532 # Check whether --enable-nls or --disable-nls was given.
7533 if test "${enable_nls+set}" = set; then
7534 enableval
="$enable_nls"
7540 echo "$ac_t""$USE_NLS" 1>&6
7543 USE_INCLUDED_LIBINTL
=no
7545 if test "$USE_NLS" = "yes"; then
7546 cat >> confdefs.h
<<\EOF
7547 #define ENABLE_NLS 1
7550 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7551 echo "configure:7552: checking whether included gettext is requested" >&5
7552 # Check whether --with-included-gettext or --without-included-gettext was given.
7553 if test "${with_included_gettext+set}" = set; then
7554 withval
="$with_included_gettext"
7555 nls_cv_force_use_gnu_gettext
=$withval
7557 nls_cv_force_use_gnu_gettext
=no
7560 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7562 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7563 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7565 nls_cv_header_libgt
=
7568 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7569 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7570 echo "configure:7571: checking for libintl.h" >&5
7571 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7572 echo $ac_n "(cached) $ac_c" 1>&6
7574 cat > conftest.
$ac_ext <<EOF
7575 #line 7576 "configure"
7576 #include "confdefs.h"
7577 #include <libintl.h>
7579 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7580 { (eval echo configure
:7581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7581 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7582 if test -z "$ac_err"; then
7584 eval "ac_cv_header_$ac_safe=yes"
7587 echo "configure: failed program was:" >&5
7588 cat conftest.
$ac_ext >&5
7590 eval "ac_cv_header_$ac_safe=no"
7594 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7597 echo "configure:7598: checking for gettext in libc" >&5
7598 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7601 cat > conftest.
$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 #include <libintl.h>
7606 return (int) gettext ("")
7609 if { (eval echo configure
:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7611 gt_cv_func_gettext_libc
=yes
7613 echo "configure: failed program was:" >&5
7614 cat conftest.
$ac_ext >&5
7616 gt_cv_func_gettext_libc
=no
7621 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7623 if test "$gt_cv_func_gettext_libc" != "yes"; then
7624 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7625 echo "configure:7626: checking for bindtextdomain in -lintl" >&5
7626 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 ac_save_LIBS
="$LIBS"
7632 cat > conftest.
$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7635 /* Override any gcc2 internal prototype to avoid an error. */
7636 /* We use char because int might match the return type of a gcc2
7637 builtin and then its argument prototype would still apply. */
7638 char bindtextdomain();
7644 if { (eval echo configure
:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7646 eval "ac_cv_lib_$ac_lib_var=yes"
7648 echo "configure: failed program was:" >&5
7649 cat conftest.
$ac_ext >&5
7651 eval "ac_cv_lib_$ac_lib_var=no"
7654 LIBS
="$ac_save_LIBS"
7657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7658 echo "$ac_t""yes" 1>&6
7659 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7660 echo "configure:7661: checking for gettext in libintl" >&5
7661 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7662 echo $ac_n "(cached) $ac_c" 1>&6
7664 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7665 echo "configure:7666: checking for gettext in -lintl" >&5
7666 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 ac_save_LIBS
="$LIBS"
7672 cat > conftest.
$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7675 /* Override any gcc2 internal prototype to avoid an error. */
7676 /* We use char because int might match the return type of a gcc2
7677 builtin and then its argument prototype would still apply. */
7684 if { (eval echo configure
:7685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7686 eval "ac_cv_lib_$ac_lib_var=yes"
7688 echo "configure: failed program was:" >&5
7689 cat conftest.
$ac_ext >&5
7691 eval "ac_cv_lib_$ac_lib_var=no"
7694 LIBS
="$ac_save_LIBS"
7697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7698 echo "$ac_t""yes" 1>&6
7699 gt_cv_func_gettext_libintl
=yes
7701 echo "$ac_t""no" 1>&6
7702 gt_cv_func_gettext_libintl
=no
7707 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7709 echo "$ac_t""no" 1>&6
7714 if test "$gt_cv_func_gettext_libc" = "yes" \
7715 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7716 cat >> confdefs.h
<<\EOF
7717 #define HAVE_GETTEXT 1
7720 # Extract the first word of "msgfmt", so it can be a program name with args.
7721 set dummy msgfmt
; ac_word
=$2
7722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7723 echo "configure:7724: checking for $ac_word" >&5
7724 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7729 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7732 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7733 for ac_dir
in $PATH; do
7734 test -z "$ac_dir" && ac_dir
=.
7735 if test -f $ac_dir/$ac_word; then
7736 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7737 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7743 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7747 MSGFMT
="$ac_cv_path_MSGFMT"
7748 if test -n "$MSGFMT"; then
7749 echo "$ac_t""$MSGFMT" 1>&6
7751 echo "$ac_t""no" 1>&6
7753 if test "$MSGFMT" != "no"; then
7754 for ac_func
in dcgettext
7756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7757 echo "configure:7758: checking for $ac_func" >&5
7758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7759 echo $ac_n "(cached) $ac_c" 1>&6
7761 cat > conftest.
$ac_ext <<EOF
7762 #line 7763 "configure"
7763 #include "confdefs.h"
7764 /* System header to define __stub macros and hopefully few prototypes,
7765 which can conflict with char $ac_func(); below. */
7767 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7774 /* The GNU C library defines this for functions which it implements
7775 to always fail with ENOSYS. Some functions are actually named
7776 something starting with __ and the normal name is an alias. */
7777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7785 if { (eval echo configure
:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7787 eval "ac_cv_func_$ac_func=yes"
7789 echo "configure: failed program was:" >&5
7790 cat conftest.
$ac_ext >&5
7792 eval "ac_cv_func_$ac_func=no"
7797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7798 echo "$ac_t""yes" 1>&6
7799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7800 cat >> confdefs.h
<<EOF
7801 #define $ac_tr_func 1
7805 echo "$ac_t""no" 1>&6
7809 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7810 set dummy gmsgfmt
; ac_word
=$2
7811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7812 echo "configure:7813: checking for $ac_word" >&5
7813 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7818 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7821 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7824 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7826 for ac_dir
in $ac_dummy; do
7827 test -z "$ac_dir" && ac_dir
=.
7828 if test -f $ac_dir/$ac_word; then
7829 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7834 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7838 GMSGFMT
="$ac_cv_path_GMSGFMT"
7839 if test -n "$GMSGFMT"; then
7840 echo "$ac_t""$GMSGFMT" 1>&6
7842 echo "$ac_t""no" 1>&6
7845 # Extract the first word of "xgettext", so it can be a program name with args.
7846 set dummy xgettext
; ac_word
=$2
7847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_word" >&5
7849 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7854 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7857 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7858 for ac_dir
in $PATH; do
7859 test -z "$ac_dir" && ac_dir
=.
7860 if test -f $ac_dir/$ac_word; then
7861 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7862 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7868 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7872 XGETTEXT
="$ac_cv_path_XGETTEXT"
7873 if test -n "$XGETTEXT"; then
7874 echo "$ac_t""$XGETTEXT" 1>&6
7876 echo "$ac_t""no" 1>&6
7879 cat > conftest.
$ac_ext <<EOF
7880 #line 7881 "configure"
7881 #include "confdefs.h"
7884 extern int _nl_msg_cat_cntr;
7885 return _nl_msg_cat_cntr
7888 if { (eval echo configure
:7889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7893 echo "configure: failed program was:" >&5
7894 cat conftest.
$ac_ext >&5
7905 echo "$ac_t""no" 1>&6
7909 if test "$CATOBJEXT" = "NONE"; then
7910 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7911 echo "configure:7912: checking whether catgets can be used" >&5
7912 # Check whether --with-catgets or --without-catgets was given.
7913 if test "${with_catgets+set}" = set; then
7914 withval
="$with_catgets"
7915 nls_cv_use_catgets
=$withval
7917 nls_cv_use_catgets
=no
7920 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7922 if test "$nls_cv_use_catgets" = "yes"; then
7923 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7924 echo "configure:7925: checking for main in -li" >&5
7925 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7929 ac_save_LIBS
="$LIBS"
7931 cat > conftest.
$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7939 if { (eval echo configure
:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7941 eval "ac_cv_lib_$ac_lib_var=yes"
7943 echo "configure: failed program was:" >&5
7944 cat conftest.
$ac_ext >&5
7946 eval "ac_cv_lib_$ac_lib_var=no"
7949 LIBS
="$ac_save_LIBS"
7952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7953 echo "$ac_t""yes" 1>&6
7954 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7955 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7956 cat >> confdefs.h
<<EOF
7957 #define $ac_tr_lib 1
7963 echo "$ac_t""no" 1>&6
7966 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7967 echo "configure:7968: checking for catgets" >&5
7968 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7971 cat > conftest.
$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7974 /* System header to define __stub macros and hopefully few prototypes,
7975 which can conflict with char catgets(); below. */
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined (__stub_catgets) || defined (__stub___catgets)
7995 if { (eval echo configure
:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7997 eval "ac_cv_func_catgets=yes"
7999 echo "configure: failed program was:" >&5
8000 cat conftest.
$ac_ext >&5
8002 eval "ac_cv_func_catgets=no"
8007 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8008 echo "$ac_t""yes" 1>&6
8009 cat >> confdefs.h
<<\EOF
8010 #define HAVE_CATGETS 1
8013 INTLOBJS
="\$(CATOBJS)"
8014 # Extract the first word of "gencat", so it can be a program name with args.
8015 set dummy gencat
; ac_word
=$2
8016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8017 echo "configure:8018: checking for $ac_word" >&5
8018 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8023 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8026 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8031 for ac_dir
in $ac_dummy; do
8032 test -z "$ac_dir" && ac_dir
=.
8033 if test -f $ac_dir/$ac_word; then
8034 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8039 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8043 GENCAT
="$ac_cv_path_GENCAT"
8044 if test -n "$GENCAT"; then
8045 echo "$ac_t""$GENCAT" 1>&6
8047 echo "$ac_t""no" 1>&6
8049 if test "$GENCAT" != "no"; then
8050 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8051 set dummy gmsgfmt
; ac_word
=$2
8052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8053 echo "configure:8054: checking for $ac_word" >&5
8054 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8055 echo $ac_n "(cached) $ac_c" 1>&6
8059 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8062 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8065 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8067 for ac_dir
in $ac_dummy; do
8068 test -z "$ac_dir" && ac_dir
=.
8069 if test -f $ac_dir/$ac_word; then
8070 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8075 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8079 GMSGFMT
="$ac_cv_path_GMSGFMT"
8080 if test -n "$GMSGFMT"; then
8081 echo "$ac_t""$GMSGFMT" 1>&6
8083 echo "$ac_t""no" 1>&6
8086 if test "$GMSGFMT" = "no"; then
8087 # Extract the first word of "msgfmt", so it can be a program name with args.
8088 set dummy msgfmt
; ac_word
=$2
8089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8090 echo "configure:8091: checking for $ac_word" >&5
8091 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8096 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8099 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8100 for ac_dir
in $PATH; do
8101 test -z "$ac_dir" && ac_dir
=.
8102 if test -f $ac_dir/$ac_word; then
8103 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8104 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8110 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8114 GMSGFMT
="$ac_cv_path_GMSGFMT"
8115 if test -n "$GMSGFMT"; then
8116 echo "$ac_t""$GMSGFMT" 1>&6
8118 echo "$ac_t""no" 1>&6
8122 # Extract the first word of "xgettext", so it can be a program name with args.
8123 set dummy xgettext
; ac_word
=$2
8124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8125 echo "configure:8126: checking for $ac_word" >&5
8126 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8127 echo $ac_n "(cached) $ac_c" 1>&6
8131 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8134 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8135 for ac_dir
in $PATH; do
8136 test -z "$ac_dir" && ac_dir
=.
8137 if test -f $ac_dir/$ac_word; then
8138 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8139 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8145 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8149 XGETTEXT
="$ac_cv_path_XGETTEXT"
8150 if test -n "$XGETTEXT"; then
8151 echo "$ac_t""$XGETTEXT" 1>&6
8153 echo "$ac_t""no" 1>&6
8156 USE_INCLUDED_LIBINTL
=yes
8160 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8162 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8163 nls_cv_header_intl
=intl
/libintl.h
8164 nls_cv_header_libgt
=intl
/libgettext.h
8167 echo "$ac_t""no" 1>&6
8173 if test "$CATOBJEXT" = "NONE"; then
8174 nls_cv_use_gnu_gettext
=yes
8178 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8179 INTLOBJS
="\$(GETTOBJS)"
8180 # Extract the first word of "msgfmt", so it can be a program name with args.
8181 set dummy msgfmt
; ac_word
=$2
8182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8183 echo "configure:8184: checking for $ac_word" >&5
8184 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8189 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8193 for ac_dir
in $PATH; do
8194 test -z "$ac_dir" && ac_dir
=.
8195 if test -f $ac_dir/$ac_word; then
8196 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8197 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8203 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8207 MSGFMT
="$ac_cv_path_MSGFMT"
8208 if test -n "$MSGFMT"; then
8209 echo "$ac_t""$MSGFMT" 1>&6
8211 echo "$ac_t""no" 1>&6
8214 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8215 set dummy gmsgfmt
; ac_word
=$2
8216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8217 echo "configure:8218: checking for $ac_word" >&5
8218 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8219 echo $ac_n "(cached) $ac_c" 1>&6
8223 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8226 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8231 for ac_dir
in $ac_dummy; do
8232 test -z "$ac_dir" && ac_dir
=.
8233 if test -f $ac_dir/$ac_word; then
8234 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8239 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8243 GMSGFMT
="$ac_cv_path_GMSGFMT"
8244 if test -n "$GMSGFMT"; then
8245 echo "$ac_t""$GMSGFMT" 1>&6
8247 echo "$ac_t""no" 1>&6
8250 # Extract the first word of "xgettext", so it can be a program name with args.
8251 set dummy xgettext
; ac_word
=$2
8252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8253 echo "configure:8254: checking for $ac_word" >&5
8254 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8255 echo $ac_n "(cached) $ac_c" 1>&6
8259 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8262 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8263 for ac_dir
in $PATH; do
8264 test -z "$ac_dir" && ac_dir
=.
8265 if test -f $ac_dir/$ac_word; then
8266 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8267 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8273 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8277 XGETTEXT
="$ac_cv_path_XGETTEXT"
8278 if test -n "$XGETTEXT"; then
8279 echo "$ac_t""$XGETTEXT" 1>&6
8281 echo "$ac_t""no" 1>&6
8285 USE_INCLUDED_LIBINTL
=yes
8289 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8291 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8292 nls_cv_header_intl
=intl
/libintl.h
8293 nls_cv_header_libgt
=intl
/libgettext.h
8296 if test "$XGETTEXT" != ":"; then
8297 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8300 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8305 # We need to process the po/ directory.
8309 nls_cv_header_intl
=intl
/libintl.h
8310 nls_cv_header_libgt
=intl
/libgettext.h
8316 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8317 # because some of the sources are only built for this goal.
8318 if test "$PACKAGE" = gettext; then
8320 USE_INCLUDED_LIBINTL
=yes
8323 for lang
in $ALL_LINGUAS; do
8324 GMOFILES
="$GMOFILES $lang.gmo"
8325 POFILES
="$POFILES $lang.po"
8341 if test "x$CATOBJEXT" != "x"; then
8342 if test "x$ALL_LINGUAS" = "x"; then
8345 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8346 echo "configure:8347: checking for catalogs to be installed" >&5
8348 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8349 case "$ALL_LINGUAS" in
8350 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8353 LINGUAS
=$NEW_LINGUAS
8354 echo "$ac_t""$LINGUAS" 1>&6
8357 if test -n "$LINGUAS"; then
8358 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8362 if test $ac_cv_header_locale_h = yes; then
8363 INCLUDE_LOCALE_H
="#include <locale.h>"
8366 /* The system does not provide the header <locale.h>. Take care yourself. */"
8370 test -d intl || mkdir intl
8371 if test "$CATOBJEXT" = ".cat"; then
8372 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8373 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8374 echo "configure:8375: checking for linux/version.h" >&5
8375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8378 cat > conftest.
$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 #include <linux/version.h>
8383 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8384 { (eval echo configure
:8385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8385 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8386 if test -z "$ac_err"; then
8388 eval "ac_cv_header_$ac_safe=yes"
8391 echo "configure: failed program was:" >&5
8392 cat conftest.
$ac_ext >&5
8394 eval "ac_cv_header_$ac_safe=no"
8398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8399 echo "$ac_t""yes" 1>&6
8402 echo "$ac_t""no" 1>&6
8407 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8409 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8410 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8412 if test "$PACKAGE" = "gettext"; then
8423 if test -n "$ac_aux_dir"; then
8424 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8426 if test -z "$MKINSTALLDIRS"; then
8427 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8434 test -d po || mkdir po
8435 if test "x$srcdir" != "x."; then
8436 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8437 posrcprefix
="$srcdir/"
8439 posrcprefix
="../$srcdir/"
8445 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8446 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8448 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8450 # Windows32 Registry support for specifying GCC installation paths.
8451 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8452 if test "${enable_win32_registry+set}" = set; then
8453 enableval
="$enable_win32_registry"
8458 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8459 echo "configure:8460: checking whether windows registry support is requested" >&5
8460 if test x
$enable_win32_registry != xno
; then
8461 cat >> confdefs.h
<<\EOF
8462 #define ENABLE_WIN32_REGISTRY 1
8465 echo "$ac_t""yes" 1>&6
8467 echo "$ac_t""no" 1>&6
8470 # Check if user specified a different registry key.
8471 case x
${enable_win32_registry} in
8474 gcc_cv_win32_registry_key
="$VERSION"
8477 # no registry lookup.
8478 gcc_cv_win32_registry_key
=''
8481 # user-specified key.
8482 gcc_cv_win32_registry_key
="$enable_win32_registry"
8486 if test x
$enable_win32_registry != xno
; then
8487 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8488 echo "configure:8489: checking registry key on windows hosts" >&5
8489 cat >> confdefs.h
<<EOF
8490 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8493 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8496 # Get an absolute path to the GCC top-level source directory
8502 # Conditionalize the makefile for this host machine.
8503 # Make-host contains the concatenation of all host makefile fragments
8504 # [there can be more than one]. This file is built by configure.frag.
8505 host_overrides
=Make-host
8506 dep_host_xmake_file
=
8507 for f
in ..
${host_xmake_file}
8509 if test -f ${srcdir}/config
/$f
8511 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8515 # Conditionalize the makefile for this target machine.
8516 # Make-target contains the concatenation of all host makefile fragments
8517 # [there can be more than one]. This file is built by configure.frag.
8518 target_overrides
=Make-target
8520 for f
in ..
${tmake_file}
8522 if test -f ${srcdir}/config
/$f
8524 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8528 # If the host doesn't support symlinks, modify CC in
8529 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8530 # Otherwise, we can use "CC=$(CC)".
8532 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8534 cc_set_by_configure
="\$(CC)"
8535 quoted_cc_set_by_configure
="\$(CC)"
8536 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8539 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8541 symbolic_link
="cp -p"
8545 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8546 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8547 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8551 out_object_file
=`basename $out_file .c`.o
8554 for f
in $tm_file; do
8557 tm_file_list
="${tm_file_list} $f" ;;
8558 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8563 for f
in $host_xm_file; do
8565 auto-host.h | gansidecl.h | hwint.h
)
8566 host_xm_file_list
="${host_xm_file_list} $f" ;;
8567 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8572 for f
in $build_xm_file; do
8574 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8575 build_xm_file_list
="${build_xm_file_list} $f" ;;
8576 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8580 # Define macro CROSS_COMPILE in compilation
8581 # if this is a cross-compiler.
8582 # Also use all.cross instead of all.internal
8583 # and add cross-make to Makefile.
8584 cross_overrides
="/dev/null"
8585 if test x
$host != x
$target
8587 cross_defines
="CROSS=-DCROSS_COMPILE"
8588 cross_overrides
="${topdir}/cross-make"
8591 # If this is a cross-compiler that does not
8592 # have its own set of headers then define
8595 # If this is using newlib, then define inhibit_libc in
8596 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8597 # libgcc.a, but that's OK because newlib should have its own version of
8600 if test x
$host != x
$target && test x
$with_headers = x
; then
8601 inhibit_libc
=-Dinhibit_libc
8603 if test x
$with_newlib = xyes
; then
8604 inhibit_libc
=-Dinhibit_libc
8609 # When building gcc with a cross-compiler, we need to fix a few things.
8610 # This must come after cross-make as we want all.build to override
8612 build_overrides
="/dev/null"
8613 if test x
$build != x
$host
8615 build_overrides
="${topdir}/build-make"
8618 # Expand extra_headers to include complete path.
8619 # This substitutes for lots of t-* files.
8621 if test "x$extra_headers" = x
8624 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8625 for file in $extra_headers;
8627 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8631 if test x
$use_collect2 = xno
; then
8635 # Add a definition of USE_COLLECT2 if system wants one.
8636 # Also tell toplev.c what to do.
8637 # This substitutes for lots of t-* files.
8638 if test x
$use_collect2 = x
8643 will_use_collect2
="collect2"
8644 maybe_use_collect2
="-DUSE_COLLECT2"
8648 # Set MD_DEPS if the real md file is in md.pre-cpp.
8649 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8650 # for line oriented comments, so we must always use a GNU cpp. If
8651 # building gcc with a cross compiler, use the cross compiler just
8652 # built. Otherwise, we can use the cpp just built.
8654 if test "x$md_cppflags" = x
8656 md_file_sub
=$srcdir/config
/$md_file
8661 # If we have gas in the build tree, make a link to it.
8662 if test -f ..
/gas
/Makefile
; then
8663 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8666 # If we have nm in the build tree, make a link to it.
8667 if test -f ..
/binutils
/Makefile
; then
8668 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8671 # If we have ld in the build tree, make a link to it.
8672 if test -f ..
/ld
/Makefile
; then
8673 # if test x$use_collect2 = x; then
8674 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8676 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8680 # Figure out what assembler alignment features are present.
8681 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8682 echo "configure:8683: checking assembler alignment features" >&5
8684 gcc_cv_as_alignment_features
=
8685 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8686 if test -x "$DEFAULT_ASSEMBLER"; then
8687 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8688 elif test -x "$AS"; then
8690 elif test -x as
$host_exeext; then
8691 # Build using assembler in the current directory.
8692 gcc_cv_as
=.
/as
$host_exeext
8693 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8694 # Single tree build which includes gas.
8695 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8697 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8698 if test x
$gcc_cv_gas_version != x
; then
8702 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8703 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8704 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8705 # Gas version 2.6 and later support for .balign and .p2align.
8706 # bytes to skip when using .p2align.
8707 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
8708 gcc_cv_as_alignment_features
=".balign and .p2align"
8709 cat >> confdefs.h
<<\EOF
8710 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8714 # Gas version 2.8 and later support specifying the maximum
8715 # bytes to skip when using .p2align.
8716 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
8717 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8718 cat >> confdefs.h
<<\EOF
8719 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8724 elif test x
$host = x
$target; then
8726 # Search the same directories that the installed compiler will
8727 # search. Else we may find the wrong assembler and lose. If we
8728 # do not find a suitable assembler binary, then try the user's
8731 # Also note we have to check MD_EXEC_PREFIX before checking the
8732 # user's path. Unfortunately, there is no good way to get at the
8733 # value of MD_EXEC_PREFIX here. So we do a brute force search
8734 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8735 # to be fixed as part of the make/configure rewrite too.
8737 if test "x$exec_prefix" = xNONE
; then
8738 if test "x$prefix" = xNONE
; then
8739 test_prefix
=/usr
/local
8744 test_prefix
=$exec_prefix
8747 # If the loop below does not find an assembler, then use whatever
8748 # one we can find in the users's path.
8752 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8753 $test_prefix/lib/gcc-lib/$target \
8754 /usr/lib/gcc/$target/$gcc_version \
8755 /usr/lib/gcc/$target \
8756 $test_prefix/$target/bin/$target/$gcc_version \
8757 $test_prefix/$target/bin \
8762 /bsd43/usr/lib/cmplrs/cc \
8763 /usr/cross64/usr/bin \
8764 /usr/lib/cmplrs/cc \
8765 /sysv/usr/lib/cmplrs/cc \
8766 /svr4/usr/lib/cmplrs/cc \
8769 for dir
in $test_dirs; do
8770 if test -f $dir/as
$host_exeext; then
8771 gcc_cv_as
=$dir/as
$host_exeext
8776 if test x
$gcc_cv_as != x
; then
8777 # Check if we have .balign and .p2align
8778 echo ".balign 4" > conftest.s
8779 echo ".p2align 2" >> conftest.s
8780 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8781 gcc_cv_as_alignment_features
=".balign and .p2align"
8782 cat >> confdefs.h
<<\EOF
8783 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8787 rm -f conftest.s conftest.o
8788 # Check if specifying the maximum bytes to skip when
8789 # using .p2align is supported.
8790 echo ".p2align 4,,7" > conftest.s
8791 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8792 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8793 cat >> confdefs.h
<<\EOF
8794 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8798 rm -f conftest.s conftest.o
8800 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8802 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8803 echo "configure:8804: checking assembler subsection support" >&5
8804 gcc_cv_as_subsections
=
8805 if test x
$gcc_cv_as != x
; then
8806 # Check if we have .subsection
8807 echo ".subsection 1" > conftest.s
8808 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8809 gcc_cv_as_subsections
=".subsection"
8810 if test -x nm
$host_exeext; then
8811 gcc_cv_nm
=.
/nm
$host_exeext
8812 elif test x
$host = x
$target; then
8814 gcc_cv_nm
=nm
$host_exeext
8816 if test x
$gcc_cv_nm != x
; then
8817 cat > conftest.s
<<EOF
8818 conftest_label1: .word 0
8820 conftest_label2: .word 0
8823 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8824 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8825 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8826 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8829 gcc_cv_as_subsections
="working .subsection -1"
8830 cat >> confdefs.h
<<\EOF
8831 #define HAVE_GAS_SUBSECTION_ORDERING 1
8838 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8840 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8842 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8843 echo "configure:8844: checking assembler weak support" >&5
8845 if test x
$gcc_cv_as != x
; then
8846 # Check if we have .weak
8847 echo " .weak foobar" > conftest.s
8848 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8849 cat >> confdefs.h
<<\EOF
8850 #define HAVE_GAS_WEAK 1
8853 gcc_cv_as_weak
="yes"
8855 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8857 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8859 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8860 echo "configure:8861: checking assembler hidden support" >&5
8862 if test x
$gcc_cv_as != x
; then
8863 # Check if we have .hidden
8864 echo " .hidden foobar" > conftest.s
8865 echo "foobar:" >> conftest.s
8866 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8867 cat >> confdefs.h
<<\EOF
8868 #define HAVE_GAS_HIDDEN 1
8871 gcc_cv_as_hidden
="yes"
8873 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8875 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8879 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8880 echo "configure:8881: checking assembler .register pseudo-op support" >&5
8881 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8882 echo $ac_n "(cached) $ac_c" 1>&6
8885 gcc_cv_as_register_pseudo_op
=unknown
8886 if test x
$gcc_cv_as != x
; then
8887 # Check if we have .register
8888 echo ".register %g2, #scratch" > conftest.s
8889 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8890 gcc_cv_as_register_pseudo_op
=yes
8892 gcc_cv_as_register_pseudo_op
=no
8894 rm -f conftest.s conftest.o
8899 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8900 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8901 cat >> confdefs.h
<<\EOF
8902 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8909 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8910 echo "configure:8911: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8911 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8915 if test -n "$gcc_cv_as"; then
8916 echo ".xword foo" > conftest.s
8917 gcc_cv_as_flags64
=no
8918 for flag
in "-xarch=v9" "-64 -Av9"; do
8919 if $gcc_cv_as $flag -o conftest.o conftest.s \
8920 > /dev
/null
2>&1; then
8921 gcc_cv_as_flags64
=$flag
8925 rm -f conftest.s conftest.o
8927 if test "$gas" = yes; then
8928 gcc_cv_as_flags64
="-64 -Av9"
8930 gcc_cv_as_flags64
="-xarch=v9"
8936 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8937 if test "x$gcc_cv_as_flags64" = xno
; then
8939 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8940 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8943 cat >> confdefs.h
<<EOF
8944 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8949 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8953 if test "x$gcc_cv_as_flags64" != xno
; then
8954 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8955 echo "configure:8956: checking for assembler offsetable %lo() support" >&5
8956 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8960 gcc_cv_as_offsetable_lo10
=unknown
8961 if test "x$gcc_cv_as" != x
; then
8962 # Check if assembler has offsetable %lo()
8963 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8964 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8965 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8967 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8968 > /dev
/null
2>&1; then
8969 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8970 gcc_cv_as_offsetable_lo10
=no
8972 gcc_cv_as_offsetable_lo10
=yes
8975 gcc_cv_as_offsetable_lo10
=no
8977 rm -f conftest.s conftest.o conftest1.s conftest1.o
8982 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8983 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8984 cat >> confdefs.h
<<\EOF
8985 #define HAVE_AS_OFFSETABLE_LO10 1
8993 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8994 echo "configure:8995: checking assembler instructions" >&5
8995 gcc_cv_as_instructions
=
8996 if test x
$gcc_cv_as != x
; then
8997 set "filds fists" "filds mem; fists mem"
9000 echo "$2" > conftest.s
9001 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9002 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9003 cat >> confdefs.h
<<EOF
9004 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9010 rm -f conftest.s conftest.o
9012 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9016 # Figure out what language subdirectories are present.
9017 # Look if the user specified --enable-languages="..."; if not, use
9018 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9020 if test x
"${enable_languages+set}" != xset
; then
9021 if test x
"${LANGUAGES+set}" = xset
; then
9022 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9024 enable_languages
=all
9027 if test x
"${enable_languages}" = x
; then
9028 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9032 for lang
in ${srcdir}/*/config-lang.
in ..
9036 # The odd quoting in the next line works around
9037 # an apparent bug in bash 1.12 on linux.
9038 ${srcdir}/[*]/config-lang.
in) ;;
9040 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9041 if test "x$lang_alias" = x
9043 echo "$lang doesn't set \$language." 1>&2
9046 if test x
"${enable_languages}" = xall
; then
9049 case "${enable_languages}" in
9050 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9058 if test x"${add_this_lang}" = xyes; then
9060 ${srcdir}/ada/config-lang.in)
9061 if test x$gnat = xyes ; then
9062 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9066 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9074 # Make gthr-default.h if we have a thread file.
9076 if test $thread_file != single; then
9077 rm -f gthr-default.h
9078 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9079 gthread_flags
=-DHAVE_GTHR_DEFAULT
9083 # Find out what GC implementation we want, or may, use.
9084 # Check whether --with-gc or --without-gc was given.
9085 if test "${with_gc+set}" = set; then
9092 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9096 if test $ac_cv_func_mmap_anywhere = yes \
9097 ||
test $ac_cv_func_valloc = yes; then
9105 echo "Using $GGC for garbage collection."
9107 # Build a new-abi (c++) system
9108 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9109 if test "${enable_new_gxx_abi+set}" = set; then
9110 enableval
="$enable_new_gxx_abi"
9111 cat >> confdefs.h
<<\EOF
9112 #define ENABLE_NEW_GXX_ABI 1
9115 GXX_ABI_FLAG
='-fnew-abi'
9116 echo "Building a new-abi g++ compiler."
9122 # Build a new-libstdc++ system (ie libstdc++-v3)
9123 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9124 echo "configure:9125: checking for libstdc++ to install" >&5
9125 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9126 if test "${enable_libstdcxx_v3+set}" = set; then
9127 enableval
="$enable_libstdcxx_v3"
9128 enable_libstdcxx_v3
=yes
9130 enable_libstdcxx_v3
=no
9134 if test x
$enable_libstdcxx_v3 = xyes
; then
9135 echo "$ac_t""v3" 1>&6
9138 echo "$ac_t""v2" 1>&6
9141 cat >> confdefs.h
<<EOF
9142 #define ENABLE_STD_NAMESPACE $ac_esn
9146 # Make empty files to contain the specs and options for each language.
9147 # Then add #include lines to for a compiler that has specs and/or options.
9152 rm -f specs.h options.h gencheck.h
9153 touch specs.h options.h gencheck.h
9154 for subdir
in .
$subdirs
9156 if test -f $srcdir/$subdir/lang-specs.h
; then
9157 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9158 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9160 if test -f $srcdir/$subdir/lang-options.h
; then
9161 echo "#include \"$subdir/lang-options.h\"" >>options.h
9162 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9164 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9165 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9166 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9170 # These (without "all_") are set in each config-lang.in.
9171 # `language' must be a single word so is spelled singularly.
9177 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9178 # List of language makefile fragments.
9183 # Add the language fragments.
9184 # Languages are added via two mechanisms. Some information must be
9185 # recorded in makefile variables, these are defined in config-lang.in.
9186 # We accumulate them and plug them into the main Makefile.
9187 # The other mechanism is a set of hooks for each of the main targets
9188 # like `clean', `install', etc.
9190 language_fragments
="Make-lang"
9191 language_hooks
="Make-hooks"
9194 for s
in ..
$subdirs
9206 .
${srcdir}/$s/config-lang.
in
9207 if test "x$language" = x
9209 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9212 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9213 all_languages
="$all_languages $language"
9214 if test "x$boot_language" = xyes
9216 all_boot_languages
="$all_boot_languages $language"
9218 all_compilers
="$all_compilers $compilers"
9219 all_stagestuff
="$all_stagestuff $stagestuff"
9220 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9221 all_headers
="$all_headers $headers"
9222 all_outputs
="$all_outputs $outputs"
9223 if test x
$outputs = x
9225 oldstyle_subdirs
="$oldstyle_subdirs $s"
9227 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9231 # Since we can't use `::' targets, we link each language in
9232 # with a set of hooks, reached indirectly via lang.${target}.
9236 target_list
="all.build all.cross start.encap rest.encap \
9238 install-normal install-common install-info install-man \
9240 mostlyclean clean distclean extraclean maintainer-clean \
9241 stage1 stage2 stage3 stage4"
9242 for t
in $target_list
9245 for lang
in ..
$all_languages
9247 if test $lang != ".."; then
9251 echo "lang.$t: $x" >> Make-hooks
9254 # If we're not building in srcdir, create .gdbinit.
9256 if test ! -f Makefile.
in; then
9257 echo "dir ." > .gdbinit
9258 echo "dir ${srcdir}" >> .gdbinit
9259 if test x
$gdb_needs_out_file_path = xyes
9261 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9263 if test "x$subdirs" != x
; then
9266 echo "dir ${srcdir}/$s" >> .gdbinit
9269 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9272 # Define variables host_canonical and build_canonical
9273 # because some Cygnus local changes in the Makefile depend on them.
9274 build_canonical
=${build}
9275 host_canonical
=${host}
9277 if test "${host}" != "${target}" ; then
9278 target_subdir
=${target}/
9284 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9285 # absolute path for gcc_tooldir based on inserting the number of up-directory
9286 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9287 # $(libsubdir)/@(unlibsubdir) based path.
9288 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9289 # make and thus we'd get different behavior depending on where we built the
9291 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9292 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9294 # An explanation of the sed strings:
9295 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9296 # -e 's|/$||' match a trailing forward slash and eliminates it
9297 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9298 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9300 # (*) Note this pattern overwrites the first character of the string
9301 # with a forward slash if one is not already present. This is not a
9302 # problem because the exact names of the sub-directories concerned is
9303 # unimportant, just the number of them matters.
9305 # The practical upshot of these patterns is like this:
9307 # prefix exec_prefix result
9308 # ------ ----------- ------
9310 # /foo/ /foo/bar ../
9311 # /foo /foo/bar/ ../
9312 # /foo/ /foo/bar/ ../
9313 # /foo /foo/bar/ugg ../../
9316 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9321 # Nothing to do for FLOAT_H, float_format already handled.
9325 # Process the language and host/target makefile fragments.
9326 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9328 # Substitute configuration variables
9387 # Echo that links are built
9388 if test x
$host = x
$target
9396 if test x
$host != x
$build
9398 str3
=" on a $build system"
9401 if test "x$str2" != x ||
test "x$str3" != x
9406 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9408 if test "x$str2" != x ||
test "x$str3" != x
9410 echo " ${str2}${str3}." 1>&2
9413 # Truncate the target if necessary
9414 if test x
$host_truncate_target != x
; then
9415 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9418 # Configure the subdirectories
9419 # AC_CONFIG_SUBDIRS($subdirs)
9421 # Create the Makefile
9422 # and configure language subdirectories
9424 cat > confcache
<<\EOF
9425 # This file is a shell script that caches the results of configure
9426 # tests run on this system so they can be shared between configure
9427 # scripts and configure runs. It is not useful on other systems.
9428 # If it contains results you don't want to keep, you may remove or edit it.
9430 # By default, configure uses ./config.cache as the cache file,
9431 # creating it if it does not exist already. You can give configure
9432 # the --cache-file=FILE option to use a different cache file; that is
9433 # what configure does when it calls configure scripts in
9434 # subdirectories, so they share the cache.
9435 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9436 # config.status only pays attention to the cache file if you give it the
9437 # --recheck option to rerun configure.
9440 # The following way of writing the cache mishandles newlines in values,
9441 # but we know of no workaround that is simple, portable, and efficient.
9442 # So, don't put newlines in cache variables' values.
9443 # Ultrix sh set writes to stderr and can't be redirected directly,
9444 # and sets the high bit in the cache file unless we assign to the vars.
9446 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9448 # `set' does not quote correctly, so add quotes (double-quote substitution
9449 # turns \\\\ into \\, and sed turns \\ into \).
9451 -e "s/'/'\\\\''/g" \
9452 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9455 # `set' quotes correctly as required by POSIX, so do not add quotes.
9456 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9459 if cmp -s $cache_file confcache
; then
9462 if test -w $cache_file; then
9463 echo "updating cache $cache_file"
9464 cat confcache
> $cache_file
9466 echo "not updating unwritable cache $cache_file"
9471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9473 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9474 # Let make expand exec_prefix.
9475 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9477 # Any assignment to VPATH causes Sun make to only execute
9478 # the first set of double-colon rules, so remove it if not needed.
9479 # If there is a colon in the path, we need to keep it.
9480 if test "x$srcdir" = x.
; then
9481 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9484 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9486 DEFS
=-DHAVE_CONFIG_H
9488 # Without the "./", some shells look in PATH for config.status.
9489 : ${CONFIG_STATUS=./config.status}
9491 echo creating
$CONFIG_STATUS
9492 rm -f $CONFIG_STATUS
9493 cat > $CONFIG_STATUS <<EOF
9495 # Generated automatically by configure.
9496 # Run this file to recreate the current configuration.
9497 # This directory was configured as follows,
9498 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9500 # $0 $ac_configure_args
9502 # Compiler output produced by configure, useful for debugging
9503 # configure, is in ./config.log if it exists.
9505 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9508 case "\$ac_option" in
9509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9510 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9511 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9512 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9513 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9515 -help | --help | --hel | --he | --h)
9516 echo "\$ac_cs_usage"; exit 0 ;;
9517 *) echo "\$ac_cs_usage"; exit 1 ;;
9521 ac_given_srcdir=$srcdir
9523 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9525 cat >> $CONFIG_STATUS <<EOF
9527 # Protect against being on the right side of a sed subst in config.status.
9528 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9529 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9533 s%@CFLAGS@%$CFLAGS%g
9534 s%@CPPFLAGS@%$CPPFLAGS%g
9535 s%@CXXFLAGS@%$CXXFLAGS%g
9536 s%@FFLAGS@%$FFLAGS%g
9538 s%@LDFLAGS@%$LDFLAGS%g
9540 s%@exec_prefix@%$exec_prefix%g
9541 s%@prefix@%$prefix%g
9542 s%@program_transform_name@%$program_transform_name%g
9543 s%@bindir@%$bindir%g
9544 s%@sbindir@%$sbindir%g
9545 s%@libexecdir@%$libexecdir%g
9546 s%@datadir@%$datadir%g
9547 s%@sysconfdir@%$sysconfdir%g
9548 s%@sharedstatedir@%$sharedstatedir%g
9549 s%@localstatedir@%$localstatedir%g
9550 s%@libdir@%$libdir%g
9551 s%@includedir@%$includedir%g
9552 s%@oldincludedir@%$oldincludedir%g
9553 s%@infodir@%$infodir%g
9554 s%@mandir@%$mandir%g
9556 s%@host_alias@%$host_alias%g
9557 s%@host_cpu@%$host_cpu%g
9558 s%@host_vendor@%$host_vendor%g
9559 s%@host_os@%$host_os%g
9560 s%@target@%$target%g
9561 s%@target_alias@%$target_alias%g
9562 s%@target_cpu@%$target_cpu%g
9563 s%@target_vendor@%$target_vendor%g
9564 s%@target_os@%$target_os%g
9566 s%@build_alias@%$build_alias%g
9567 s%@build_cpu@%$build_cpu%g
9568 s%@build_vendor@%$build_vendor%g
9569 s%@build_os@%$build_os%g
9571 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9572 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9573 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9574 s%@SET_MAKE@%$SET_MAKE%g
9577 s%@LEXLIB@%$LEXLIB%g
9580 s%@RANLIB@%$RANLIB%g
9582 s%@INSTALL@%$INSTALL%g
9583 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9584 s%@INSTALL_DATA@%$INSTALL_DATA%g
9587 s%@MAKEINFO@%$MAKEINFO%g
9588 s%@BUILD_INFO@%$BUILD_INFO%g
9589 s%@INSTALL_INFO@%$INSTALL_INFO%g
9590 s%@vfprintf@%$vfprintf%g
9591 s%@doprint@%$doprint%g
9592 s%@manext@%$manext%g
9593 s%@objext@%$objext%g
9594 s%@PACKAGE@%$PACKAGE%g
9595 s%@VERSION@%$VERSION%g
9596 s%@ALLOCA@%$ALLOCA%g
9597 s%@USE_NLS@%$USE_NLS%g
9598 s%@MSGFMT@%$MSGFMT%g
9599 s%@GMSGFMT@%$GMSGFMT%g
9600 s%@XGETTEXT@%$XGETTEXT%g
9601 s%@GENCAT@%$GENCAT%g
9602 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9603 s%@CATALOGS@%$CATALOGS%g
9604 s%@CATOBJEXT@%$CATOBJEXT%g
9605 s%@DATADIRNAME@%$DATADIRNAME%g
9606 s%@GMOFILES@%$GMOFILES%g
9607 s%@INSTOBJEXT@%$INSTOBJEXT%g
9608 s%@INTLDEPS@%$INTLDEPS%g
9609 s%@INTLLIBS@%$INTLLIBS%g
9610 s%@INTLOBJS@%$INTLOBJS%g
9611 s%@POFILES@%$POFILES%g
9613 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9615 s%@GT_YES@%$GT_YES%g
9616 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9618 s%@inhibit_libc@%$inhibit_libc%g
9619 s%@gthread_flags@%$gthread_flags%g
9621 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9622 s%@build_canonical@%$build_canonical%g
9623 s%@host_canonical@%$host_canonical%g
9624 s%@target_subdir@%$target_subdir%g
9625 s%@gcc_tooldir@%$gcc_tooldir%g
9626 s%@dollar@%$dollar%g
9627 s%@objdir@%$objdir%g
9628 s%@subdirs@%$subdirs%g
9629 s%@all_boot_languages@%$all_boot_languages%g
9630 s%@all_compilers@%$all_compilers%g
9631 s%@all_diff_excludes@%$all_diff_excludes%g
9632 s%@all_headers@%$all_headers%g
9633 s%@all_lang_makefiles@%$all_lang_makefiles%g
9634 s%@all_languages@%$all_languages%g
9635 s%@all_lib2funcs@%$all_lib2funcs%g
9636 s%@all_stagestuff@%$all_stagestuff%g
9637 s%@build_exeext@%$build_exeext%g
9638 s%@build_install_headers_dir@%$build_install_headers_dir%g
9639 s%@build_xm_file_list@%$build_xm_file_list%g
9640 s%@cc_set_by_configure@%$cc_set_by_configure%g
9641 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9642 s%@cpp_install_dir@%$cpp_install_dir%g
9643 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9644 s%@dep_tmake_file@%$dep_tmake_file%g
9645 s%@extra_c_flags@%$extra_c_flags%g
9646 s%@extra_c_objs@%$extra_c_objs%g
9647 s%@extra_cpp_objs@%$extra_cpp_objs%g
9648 s%@extra_cxx_objs@%$extra_cxx_objs%g
9649 s%@extra_headers_list@%$extra_headers_list%g
9650 s%@extra_objs@%$extra_objs%g
9651 s%@extra_parts@%$extra_parts%g
9652 s%@extra_passes@%$extra_passes%g
9653 s%@extra_programs@%$extra_programs%g
9654 s%@float_h_file@%$float_h_file%g
9655 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9656 s%@gcc_version@%$gcc_version%g
9657 s%@gcc_version_trigger@%$gcc_version_trigger%g
9658 s%@host_exeext@%$host_exeext%g
9659 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9660 s%@host_xm_file_list@%$host_xm_file_list%g
9661 s%@install@%$install%g
9662 s%@lang_options_files@%$lang_options_files%g
9663 s%@lang_specs_files@%$lang_specs_files%g
9664 s%@lang_tree_files@%$lang_tree_files%g
9665 s%@local_prefix@%$local_prefix%g
9666 s%@maybe_use_collect2@%$maybe_use_collect2%g
9667 s%@md_file@%$md_file%g
9668 s%@objc_boehm_gc@%$objc_boehm_gc%g
9669 s%@out_file@%$out_file%g
9670 s%@out_object_file@%$out_object_file%g
9671 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9672 s%@symbolic_link@%$symbolic_link%g
9673 s%@thread_file@%$thread_file%g
9674 s%@tm_file_list@%$tm_file_list%g
9675 s%@will_use_collect2@%$will_use_collect2%g
9676 /@target_overrides@/r $target_overrides
9677 s%@target_overrides@%%g
9678 /@host_overrides@/r $host_overrides
9679 s%@host_overrides@%%g
9680 s%@cross_defines@%$cross_defines%g
9681 /@cross_overrides@/r $cross_overrides
9682 s%@cross_overrides@%%g
9683 /@build_overrides@/r $build_overrides
9684 s%@build_overrides@%%g
9685 /@language_fragments@/r $language_fragments
9686 s%@language_fragments@%%g
9687 /@language_hooks@/r $language_hooks
9688 s%@language_hooks@%%g
9693 cat >> $CONFIG_STATUS <<\EOF
9695 # Split the substitutions into bite-sized pieces for seds with
9696 # small command number limits, like on Digital OSF/1 and HP-UX.
9697 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9698 ac_file
=1 # Number of current file.
9699 ac_beg
=1 # First line for current file.
9700 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9703 while $ac_more_lines; do
9704 if test $ac_beg -gt 1; then
9705 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9707 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9709 if test ! -s conftest.s
$ac_file; then
9711 rm -f conftest.s
$ac_file
9713 if test -z "$ac_sed_cmds"; then
9714 ac_sed_cmds
="sed -f conftest.s$ac_file"
9716 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9718 ac_file
=`expr $ac_file + 1`
9720 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9723 if test -z "$ac_sed_cmds"; then
9728 cat >> $CONFIG_STATUS <<EOF
9730 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9732 cat >> $CONFIG_STATUS <<\EOF
9733 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9734 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9736 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9737 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9738 *) ac_file_in
="${ac_file}.in" ;;
9741 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9743 # Remove last slash and all that follows it. Not all systems have dirname.
9744 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9745 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9746 # The file is in a subdirectory.
9747 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9748 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9749 # A "../" for each directory in $ac_dir_suffix.
9750 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9752 ac_dir_suffix
= ac_dots
=
9755 case "$ac_given_srcdir" in
9757 if test -z "$ac_dots"; then top_srcdir
=.
9758 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9759 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9761 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9762 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9766 echo creating
"$ac_file"
9768 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9770 *Makefile
*) ac_comsub
="1i\\
9771 # $configure_input" ;;
9775 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9777 s%@configure_input@%$configure_input%g
9778 s%@srcdir@%$srcdir%g
9779 s%@top_srcdir@%$top_srcdir%g
9780 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9784 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9785 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9787 # ac_d sets the value in "#define NAME VALUE" lines.
9788 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9789 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9792 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9793 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9794 ac_uB
='\([ ]\)%\1#\2define\3'
9797 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9798 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9799 ac_eB
='$%\1#\2define\3'
9803 if test "${CONFIG_HEADERS+set}" != set; then
9805 cat >> $CONFIG_STATUS <<EOF
9806 CONFIG_HEADERS="auto-host.h:config.in"
9808 cat >> $CONFIG_STATUS <<\EOF
9810 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9811 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9813 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9814 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9815 *) ac_file_in
="${ac_file}.in" ;;
9818 echo creating
$ac_file
9820 rm -f conftest.frag conftest.
in conftest.out
9821 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9822 cat $ac_file_inputs > conftest.
in
9826 # Transform confdefs.h into a sed script conftest.vals that substitutes
9827 # the proper values into config.h.in to produce config.h. And first:
9828 # Protect against being on the right side of a sed subst in config.status.
9829 # Protect against being in an unquoted here document in config.status.
9831 cat > conftest.hdr
<<\EOF
9834 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9838 sed -n -f conftest.hdr confdefs.h > conftest.vals
9841 # This sed command replaces #undef with comments. This is necessary, for
9842 # example, in the case of _POSIX_SOURCE, which is predefined and required
9843 # on some systems where configure will not decide to define it.
9844 cat >> conftest.vals <<\EOF
9845 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9848 # Break up conftest.vals because some shells have a limit on
9849 # the size of here documents, and old seds have small limits too.
9854 ac_lines=`grep -c . conftest.vals
`
9855 # grep -c gives empty output for an empty file on some AIX systems.
9856 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9857 # Write a limited-size here document to conftest.frag.
9858 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9859 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9861 sed -f conftest.frag conftest.in > conftest.out
9863 mv conftest.out conftest.in
9865 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9867 mv conftest.tail conftest.vals
9871 cat >> $CONFIG_STATUS <<\EOF
9872 rm -f conftest.frag conftest.h
9873 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9874 cat conftest.in >> conftest.h
9876 if cmp -s $ac_file conftest.h 2>/dev/null; then
9877 echo "$ac_file is unchanged"
9880 # Remove last slash and all that follows it. Not all systems have dirname.
9881 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9882 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9883 # The file is in a subdirectory.
9884 test ! -d "$ac_dir" && mkdir "$ac_dir"
9887 mv conftest.h $ac_file
9893 cat >> $CONFIG_STATUS <<EOF
9894 ac_sources="$nls_cv_header_libgt"
9895 ac_dests="$nls_cv_header_intl"
9898 cat >> $CONFIG_STATUS <<\EOF
9899 srcdir=$ac_given_srcdir
9900 while test -n "$ac_sources"; do
9901 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9902 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9904 echo "linking $srcdir/$ac_source to $ac_dest"
9906 if test ! -r $srcdir/$ac_source; then
9907 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9911 # Make relative symlinks.
9912 # Remove last slash and all that follows it. Not all systems have dirname.
9913 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9914 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9915 # The dest file is in a subdirectory.
9916 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9917 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9918 # A "../" for each directory in $ac_dest_dir_suffix.
9919 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9921 ac_dest_dir_suffix= ac_dots=
9925 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9926 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9929 # Make a symlink if possible; otherwise try a hard link.
9930 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9931 ln $srcdir/$ac_source $ac_dest; then :
9933 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9937 cat >> $CONFIG_STATUS <<EOF
9943 target_alias='${target_alias}'
9945 subdirs='${subdirs}'
9946 oldstyle_subdirs='${oldstyle_subdirs}'
9947 symbolic_link='${symbolic_link}'
9948 program_transform_set='${program_transform_set}'
9949 program_transform_name='${program_transform_name}'
9950 dep_host_xmake_file='${dep_host_xmake_file}'
9951 host_xmake_file='${host_xmake_file}'
9952 dep_tmake_file='${dep_tmake_file}'
9953 tmake_file='${tmake_file}'
9954 thread_file='${thread_file}'
9955 gcc_version='${gcc_version}'
9956 gcc_version_trigger='${gcc_version_trigger}'
9957 local_prefix='${local_prefix}'
9958 build_install_headers_dir='${build_install_headers_dir}'
9959 build_exeext='${build_exeext}'
9960 host_exeext='${host_exeext}'
9961 out_file='${out_file}'
9962 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9963 SET_MAKE='${SET_MAKE}'
9964 target_list='${target_list}'
9965 target_overrides='${target_overrides}'
9966 host_overrides='${host_overrides}'
9967 cross_defines='${cross_defines}'
9968 cross_overrides='${cross_overrides}'
9969 build_overrides='${build_overrides}'
9970 cpp_install_dir='${cpp_install_dir}'
9973 cat >> $CONFIG_STATUS <<\EOF
9974 case "$CONFIG_FILES" in *po/Makefile.in*)
9975 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9978 . $srcdir/configure.lang
9979 case x$CONFIG_HEADERS in
9980 xauto-host.h:config.in)
9983 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9984 # bootstrapping and the installation procedure can still use
9985 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9986 # FLAGS_TO_PASS has been modified to solve the problem there.
9987 # This is virtually a duplicate of what happens in configure.lang; we do
9988 # an extra check to make sure this only happens if ln -s can be used.
9989 if test "$symbolic_link" = "ln -s"; then
9990 for d in .. ${subdirs} ; do
9991 if test $d != ..; then
9994 for t in stage1 stage2 stage3 stage4 include
9997 $symbolic_link ../$t $t 2>/dev/null
10003 # Avoid having to add intl to our include paths.
10004 if test -f intl/libintl.h; then
10005 echo creating libintl.h
10006 echo '#include "intl/libintl.h"' >libintl.h
10011 chmod +x $CONFIG_STATUS
10012 rm -fr confdefs* $ac_clean_files
10013 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1