3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-c-mbchar Enable multibyte characters for C and C++."
46 --enable-threads enable thread usage for target GCC.
47 --enable-threads=LIB use LIB thread package for target GCC."
49 --enable-objc-gc enable the use of Boehm's garbage collector with
50 the GNU Objective-C runtime."
52 --with-dwarf2 force the default debug format to be DWARF2."
54 --enable-nls use Native Language Support (disabled by default)"
56 --disable-nls do not use Native Language Support"
58 --with-included-gettext use the GNU gettext library included here"
60 --with-catgets use catgets functions if available"
62 --disable-win32-registry
63 Disable lookup of installation paths in the
64 Registry on Windows hosts.
65 --enable-win32-registry Enable registry lookup (default).
66 --enable-win32-registry=KEY
67 Use KEY instead of GCC version as the last portion
70 --with-gc={simple,page} Choose the garbage collection mechanism to use
74 select the new abi for g++. You must select an ABI
75 at configuration time, so that the correct runtime
76 support is built. You cannot mix ABIs."
79 enable libstdc++-v3 for building and installation"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file
=.
/config.cache
94 program_transform_name
=s
,x
,x
,
102 bindir
='${exec_prefix}/bin'
103 sbindir
='${exec_prefix}/sbin'
104 libexecdir
='${exec_prefix}/libexec'
105 datadir
='${prefix}/share'
106 sysconfdir
='${prefix}/etc'
107 sharedstatedir
='${prefix}/com'
108 localstatedir
='${prefix}/var'
109 libdir
='${exec_prefix}/lib'
110 includedir
='${prefix}/include'
111 oldincludedir
='/usr/include'
112 infodir
='${prefix}/info'
113 mandir
='${prefix}/man'
115 # Initialize some other variables.
118 SHELL
=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
144 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
145 bindir
="$ac_optarg" ;;
147 -build |
--build |
--buil |
--bui |
--bu)
149 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
150 build
="$ac_optarg" ;;
152 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
153 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
154 ac_prev
=cache_file
;;
155 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
156 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
157 cache_file
="$ac_optarg" ;;
159 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
161 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
163 datadir
="$ac_optarg" ;;
165 -disable-* |
--disable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* |
--enable-*)
175 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
188 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
189 |
--exec |
--exe |
--ex)
190 ac_prev
=exec_prefix
;;
191 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
192 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
193 |
--exec=* |
--exe=* |
--ex=*)
194 exec_prefix
="$ac_optarg" ;;
196 -gas |
--gas |
--ga |
--g)
197 # Obsolete; use --with-gas.
200 -help |
--help |
--hel |
--he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host |
--host |
--hos |
--ho)
257 -host=* |
--host=* |
--hos=* |
--ho=*)
260 -includedir |
--includedir |
--includedi |
--included |
--include \
261 |
--includ |
--inclu |
--incl |
--inc)
262 ac_prev
=includedir
;;
263 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
264 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
265 includedir
="$ac_optarg" ;;
267 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
269 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
270 infodir
="$ac_optarg" ;;
272 -libdir |
--libdir |
--libdi |
--libd)
274 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
275 libdir
="$ac_optarg" ;;
277 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
278 |
--libexe |
--libex |
--libe)
279 ac_prev
=libexecdir
;;
280 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
281 |
--libexe=* |
--libex=* |
--libe=*)
282 libexecdir
="$ac_optarg" ;;
284 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
285 |
--localstate |
--localstat |
--localsta |
--localst \
286 |
--locals |
--local |
--loca |
--loc |
--lo)
287 ac_prev
=localstatedir
;;
288 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
289 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
290 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
291 localstatedir
="$ac_optarg" ;;
293 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
295 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
296 mandir
="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
306 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
307 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
310 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
311 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
312 |
--oldin |
--oldi |
--old |
--ol |
--o)
313 ac_prev
=oldincludedir
;;
314 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
315 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
316 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
317 oldincludedir
="$ac_optarg" ;;
319 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
321 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
322 prefix
="$ac_optarg" ;;
324 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
325 |
--program-pre |
--program-pr |
--program-p)
326 ac_prev
=program_prefix
;;
327 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
328 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
329 program_prefix
="$ac_optarg" ;;
331 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
332 |
--program-suf |
--program-su |
--program-s)
333 ac_prev
=program_suffix
;;
334 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
335 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
336 program_suffix
="$ac_optarg" ;;
338 -program-transform-name |
--program-transform-name \
339 |
--program-transform-nam |
--program-transform-na \
340 |
--program-transform-n |
--program-transform- \
341 |
--program-transform |
--program-transfor \
342 |
--program-transfo |
--program-transf \
343 |
--program-trans |
--program-tran \
344 |
--progr-tra |
--program-tr |
--program-t)
345 ac_prev
=program_transform_name
;;
346 -program-transform-name=* |
--program-transform-name=* \
347 |
--program-transform-nam=* |
--program-transform-na=* \
348 |
--program-transform-n=* |
--program-transform-=* \
349 |
--program-transform=* |
--program-transfor=* \
350 |
--program-transfo=* |
--program-transf=* \
351 |
--program-trans=* |
--program-tran=* \
352 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
353 program_transform_name
="$ac_optarg" ;;
355 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
356 |
-silent |
--silent |
--silen |
--sile |
--sil)
359 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
361 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
363 sbindir
="$ac_optarg" ;;
365 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
366 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
367 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
369 ac_prev
=sharedstatedir
;;
370 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
371 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
372 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
374 sharedstatedir
="$ac_optarg" ;;
376 -site |
--site |
--sit)
378 -site=* |
--site=* |
--sit=*)
381 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
383 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
384 srcdir
="$ac_optarg" ;;
386 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
387 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
388 ac_prev
=sysconfdir
;;
389 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
390 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
391 sysconfdir
="$ac_optarg" ;;
393 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
395 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
396 target
="$ac_optarg" ;;
398 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
401 -version |
--version |
--versio |
--versi |
--vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* |
--without-*)
419 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
432 |
--x-incl |
--x-inc |
--x-in |
--x-i)
433 ac_prev
=x_includes
;;
434 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
435 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
436 x_includes
="$ac_optarg" ;;
438 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
439 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
440 ac_prev
=x_libraries
;;
441 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
442 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
443 x_libraries
="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE
; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
494 |
--no-cr |
--no-c) ;;
495 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
496 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
497 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest
* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file
=tree.c
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted
=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted
=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE
; then
548 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file
in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp
='$CPP $CPPFLAGS'
571 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling
=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
586 ac_n
= ac_c
='\c' ac_t
=
594 symbolic_link
='ln -s'
597 # Check for bogus environment variables.
598 # Test if LIBRARY_PATH contains the notation for the current directory
599 # since this would lead to problems installing/building glibc.
600 # LIBRARY_PATH contains the current directory if one of the following
602 # - one of the terminals (":" and ";") is the first or last sign
603 # - two terminals occur directly after each other
604 # - the path contains an element with a dot in it
605 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
606 echo "configure:607: checking LIBRARY_PATH variable" >&5
607 case ${LIBRARY_PATH} in
608 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
609 library_path_setting
="contains current directory"
612 library_path_setting
="ok"
615 echo "$ac_t""$library_path_setting" 1>&6
616 if test "$library_path_setting" != "ok"; then
617 { echo "configure: error:
618 *** LIBRARY_PATH shouldn't contain the current directory when
619 *** building gcc. Please change the environment variable
620 *** and run configure again." 1>&2; exit 1; }
623 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
624 # since this would lead to problems installing/building glibc.
625 # GCC_EXEC_PREFIX contains the current directory if one of the following
627 # - one of the terminals (":" and ";") is the first or last sign
628 # - two terminals occur directly after each other
629 # - the path contains an element with a dot in it
630 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
631 echo "configure:632: checking GCC_EXEC_PREFIX variable" >&5
632 case ${GCC_EXEC_PREFIX} in
633 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
634 gcc_exec_prefix_setting
="contains current directory"
637 gcc_exec_prefix_setting
="ok"
640 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
641 if test "$gcc_exec_prefix_setting" != "ok"; then
642 { echo "configure: error:
643 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
644 *** building gcc. Please change the environment variable
645 *** and run configure again." 1>&2; exit 1; }
648 # Check for additional parameters
651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
652 if test "${with_gnu_ld+set}" = set; then
653 withval
="$with_gnu_ld"
654 gnu_ld_flag
="$with_gnu_ld"
660 # With pre-defined ld
661 # Check whether --with-ld or --without-ld was given.
662 if test "${with_ld+set}" = set; then
664 DEFAULT_LINKER
="$with_ld"
667 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
668 if test ! -x "$DEFAULT_LINKER"; then
669 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
670 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
673 cat >> confdefs.h
<<EOF
674 #define DEFAULT_LINKER "$DEFAULT_LINKER"
680 # Check whether --with-gnu-as or --without-gnu-as was given.
681 if test "${with_gnu_as+set}" = set; then
682 withval
="$with_gnu_as"
683 gas_flag
="$with_gnu_as"
689 # Check whether --with-as or --without-as was given.
690 if test "${with_as+set}" = set; then
692 DEFAULT_ASSEMBLER
="$with_as"
695 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
696 if test ! -x "$DEFAULT_ASSEMBLER"; then
697 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
698 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
701 cat >> confdefs.h
<<EOF
702 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
708 # Check whether --with-stabs or --without-stabs was given.
709 if test "${with_stabs+set}" = set; then
710 withval
="$with_stabs"
718 # Check whether --with-elf or --without-elf was given.
719 if test "${with_elf+set}" = set; then
727 # Specify the local prefix
729 # Check whether --with-local-prefix or --without-local-prefix was given.
730 if test "${with_local_prefix+set}" = set; then
731 withval
="$with_local_prefix"
733 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
735 *) local_prefix
=$with_local_prefix ;;
740 # Default local prefix if it is empty
741 if test x
$local_prefix = x
; then
742 local_prefix
=/usr
/local
745 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
746 # passed in by the toplevel make and thus we'd get different behavior
747 # depending on where we built the sources.
749 # Specify the g++ header file directory
750 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
751 if test "${with_gxx_include_dir+set}" = set; then
752 withval
="$with_gxx_include_dir"
754 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
756 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
761 if test x
${gcc_gxx_include_dir} = x
; then
762 if test x
${enable_version_specific_runtime_libs} = xyes
; then
763 gcc_gxx_include_dir
='${libsubdir}/include/g++'
765 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
766 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
770 # Enable expensive internal checks
771 # Check whether --enable-checking or --disable-checking was given.
772 if test "${enable_checking+set}" = set; then
773 enableval
="$enable_checking"
778 ac_gc_always_collect
=
779 case "${enableval}" in
780 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_rtl_checking
=1 ;;
782 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
783 set fnord
$enableval; shift
788 misc
) ac_checking
=1 ;;
789 tree
) ac_tree_checking
=1 ;;
790 rtl
) ac_rtl_checking
=1 ;;
791 gc
) ac_gc_checking
=1 ;;
792 gcac
) ac_gc_always_collect
=1 ;;
793 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
798 if test x
$ac_checking != x
; then
799 cat >> confdefs.h
<<\EOF
800 #define ENABLE_CHECKING 1
804 if test x
$ac_tree_checking != x
; then
805 cat >> confdefs.h
<<\EOF
806 #define ENABLE_TREE_CHECKING 1
810 if test x
$ac_rtl_checking != x
; then
811 cat >> confdefs.h
<<\EOF
812 #define ENABLE_RTL_CHECKING 1
816 if test x
$ac_gc_checking != x
; then
817 cat >> confdefs.h
<<\EOF
818 #define ENABLE_GC_CHECKING 1
822 if test x
$ac_gc_always_collect != x
; then
823 cat >> confdefs.h
<<\EOF
824 #define ENABLE_GC_ALWAYS_COLLECT 1
832 # Check whether --enable-cpp or --disable-cpp was given.
833 if test "${enable_cpp+set}" = set; then
834 enableval
="$enable_cpp"
841 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
842 if test "${with_cpp_install_dir+set}" = set; then
843 withval
="$with_cpp_install_dir"
844 if test x
$withval = xyes
; then
845 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
846 elif test x
$withval != xno
; then
847 cpp_install_dir
=$withval
853 # Enable Multibyte Characters for C/C++
854 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
855 if test "${enable_c_mbchar+set}" = set; then
856 enableval
="$enable_c_mbchar"
857 if test x
$enable_c_mbchar != xno
; then
858 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
864 # Pass with no value to take the default
865 # Pass with a value to specify a thread package
866 # Check whether --enable-threads or --disable-threads was given.
867 if test "${enable_threads+set}" = set; then
868 enableval
="$enable_threads"
869 if test x
$enable_threads = xno
; then
877 enable_threads_flag
=$enable_threads
878 # Check if a valid thread package
879 case x
${enable_threads_flag} in
882 target_thread_file
='single'
886 target_thread_file
=''
888 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
889 xsolaris | xwin32 | xdce | xvxworks
)
890 target_thread_file
=$enable_threads_flag
893 echo "$enable_threads is an unknown thread package" 1>&2
898 # Check whether --enable-objc-gc or --disable-objc-gc was given.
899 if test "${enable_objc_gc+set}" = set; then
900 enableval
="$enable_objc_gc"
901 if test x
$enable_objc_gc = xno
; then
911 # Check whether --with-dwarf2 or --without-dwarf2 was given.
912 if test "${with_dwarf2+set}" = set; then
913 withval
="$with_dwarf2"
914 dwarf2
="$with_dwarf2"
920 # Determine the host, build, and target systems
922 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
923 if test -f $ac_dir/install-sh
; then
925 ac_install_sh
="$ac_aux_dir/install-sh -c"
927 elif test -f $ac_dir/install.sh
; then
929 ac_install_sh
="$ac_aux_dir/install.sh -c"
933 if test -z "$ac_aux_dir"; then
934 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
936 ac_config_guess
=$ac_aux_dir/config.guess
937 ac_config_sub
=$ac_aux_dir/config.sub
938 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
941 # Do some error checking and defaulting for the host and target type.
943 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
946 # 1. You are not allowed to specify --host, --target, and nonopt at the
948 # 2. Host defaults to nonopt.
949 # 3. If nonopt is not specified, then host defaults to the current host,
950 # as determined by config.guess.
951 # 4. Target and build default to nonopt.
952 # 5. If nonopt is not specified, then target and build default to host.
954 # The aliases save the names the user supplied, while $host etc.
955 # will get canonicalized.
956 case $host---$target---$nonopt in
957 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
958 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
962 # Make sure we can run config.sub.
963 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
967 echo $ac_n "checking host system type""... $ac_c" 1>&6
968 echo "configure:969: checking host system type" >&5
971 case "$host_alias" in
975 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
976 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
978 *) host_alias
=$nonopt ;;
982 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
983 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$host" 1>&6
988 echo $ac_n "checking target system type""... $ac_c" 1>&6
989 echo "configure:990: checking target system type" >&5
992 case "$target_alias" in
995 NONE
) target_alias
=$host_alias ;;
996 *) target_alias
=$nonopt ;;
1000 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1001 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$target" 1>&6
1006 echo $ac_n "checking build system type""... $ac_c" 1>&6
1007 echo "configure:1008: checking build system type" >&5
1010 case "$build_alias" in
1013 NONE
) build_alias
=$host_alias ;;
1014 *) build_alias
=$nonopt ;;
1018 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1019 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$build" 1>&6
1024 test "$host_alias" != "$target_alias" &&
1025 test "$program_prefix$program_suffix$program_transform_name" = \
1027 program_prefix
=${target_alias}-
1030 # Find the native compiler
1031 # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc
; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC
="$CC" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1043 for ac_dir
in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir
=.
1045 if test -f $ac_dir/$ac_word; then
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 # Extract the first word of "cc", so it can be a program name with args.
1062 set dummy cc
; ac_word
=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$CC"; then
1069 ac_cv_prog_CC
="$CC" # Let the user override the test.
1071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1074 for ac_dir
in $ac_dummy; do
1075 test -z "$ac_dir" && ac_dir
=.
1076 if test -f $ac_dir/$ac_word; then
1077 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1078 ac_prog_rejected
=yes
1086 if test $ac_prog_rejected = yes; then
1087 # We found a bogon in the path, so make sure we never use it.
1088 set dummy
$ac_cv_prog_CC
1090 if test $# -gt 0; then
1091 # We chose a different compiler from the bogus one.
1092 # However, it has the same basename, so the bogon will be chosen
1093 # first if we set CC to just the basename; use the full file name.
1095 set dummy
"$ac_dir/$ac_word" "$@"
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1106 echo "$ac_t""no" 1>&6
1109 if test -z "$CC"; then
1110 case "`uname -s`" in
1112 # Extract the first word of "cl", so it can be a program name with args.
1113 set dummy cl
; ac_word
=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1116: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 if test -n "$CC"; then
1120 ac_cv_prog_CC
="$CC" # Let the user override the test.
1122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1124 for ac_dir
in $ac_dummy; do
1125 test -z "$ac_dir" && ac_dir
=.
1126 if test -f $ac_dir/$ac_word; then
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1138 echo "$ac_t""no" 1>&6
1143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1151 ac_cpp
='$CPP $CPPFLAGS'
1152 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1153 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1154 cross_compiling
=$ac_cv_prog_cc_cross
1156 cat > conftest.
$ac_ext << EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1163 if { (eval echo configure
:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1164 ac_cv_prog_cc_works
=yes
1165 # If we can't run a trivial program, we are probably using a cross compiler.
1166 if (.
/conftest
; exit) 2>/dev
/null
; then
1167 ac_cv_prog_cc_cross
=no
1169 ac_cv_prog_cc_cross
=yes
1172 echo "configure: failed program was:" >&5
1173 cat conftest.
$ac_ext >&5
1174 ac_cv_prog_cc_works
=no
1178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp
='$CPP $CPPFLAGS'
1180 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling
=$ac_cv_prog_cc_cross
1184 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1185 if test $ac_cv_prog_cc_works = no
; then
1186 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1190 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1191 cross_compiling
=$ac_cv_prog_cc_cross
1193 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether we are using GNU C" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.c
<<EOF
1203 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1210 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1212 if test $ac_cv_prog_gcc = yes; then
1218 ac_test_CFLAGS
="${CFLAGS+set}"
1219 ac_save_CFLAGS
="$CFLAGS"
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238 CFLAGS
="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1240 if test "$GCC" = yes; then
1246 if test "$GCC" = yes; then
1253 echo $ac_n "checking for long double""... $ac_c" 1>&6
1254 echo "configure:1255: checking for long double" >&5
1255 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test "$GCC" = yes; then
1259 gcc_cv_c_long_double
=yes
1261 cat > conftest.
$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1266 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1267 long double foo = 0.0;
1268 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1269 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1272 if { (eval echo configure
:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1274 gcc_cv_c_long_double
=yes
1276 echo "configure: failed program was:" >&5
1277 cat conftest.
$ac_ext >&5
1279 gcc_cv_c_long_double
=no
1285 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1286 if test $gcc_cv_c_long_double = yes; then
1287 cat >> confdefs.h
<<\EOF
1288 #define HAVE_LONG_DOUBLE 1
1294 # If the native compiler is GCC, we can enable warnings even in stage1.
1295 # That's useful for people building cross-compilers, or just running a
1297 if test "x$GCC" = "xyes"; then
1298 stage1_warn_cflags
='$(WARN_CFLAGS)'
1300 stage1_warn_cflags
=""
1304 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether ${MAKE-make} sets \${MAKE}" >&5
1306 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1307 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftestmake
<<\EOF
1312 @
echo 'ac_maketemp="${MAKE}"'
1314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1315 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1316 if test -n "$ac_maketemp"; then
1317 eval ac_cv_prog_make_
${ac_make}_set
=yes
1319 eval ac_cv_prog_make_
${ac_make}_set
=no
1323 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1328 SET_MAKE
="MAKE=${MAKE-make}"
1332 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1333 echo "configure:1334: checking whether a default assembler was specified" >&5
1334 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1335 if test x
"$gas_flag" = x
"no"; then
1336 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1338 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1341 echo "$ac_t""no" 1>&6
1344 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether a default linker was specified" >&5
1346 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1347 if test x
"$gnu_ld_flag" = x
"no"; then
1348 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1350 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1353 echo "$ac_t""no" 1>&6
1356 # Find some useful tools
1357 for ac_prog
in gawk mawk nawk
awk
1359 # Extract the first word of "$ac_prog", so it can be a program name with args.
1360 set dummy
$ac_prog; ac_word
=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$AWK"; then
1367 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1369 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1371 for ac_dir
in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir
=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_AWK
="$ac_prog"
1381 AWK
="$ac_cv_prog_AWK"
1382 if test -n "$AWK"; then
1383 echo "$ac_t""$AWK" 1>&6
1385 echo "$ac_t""no" 1>&6
1388 test -n "$AWK" && break
1391 # Extract the first word of "flex", so it can be a program name with args.
1392 set dummy flex
; ac_word
=$2
1393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1394 echo "configure:1395: checking for $ac_word" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test -n "$LEX"; then
1399 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1401 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1403 for ac_dir
in $ac_dummy; do
1404 test -z "$ac_dir" && ac_dir
=.
1405 if test -f $ac_dir/$ac_word; then
1406 ac_cv_prog_LEX
="flex"
1411 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1414 LEX
="$ac_cv_prog_LEX"
1415 if test -n "$LEX"; then
1416 echo "$ac_t""$LEX" 1>&6
1418 echo "$ac_t""no" 1>&6
1421 if test -z "$LEXLIB"
1427 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1428 echo "configure:1429: checking for yywrap in -l$ac_lib" >&5
1429 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_save_LIBS
="$LIBS"
1434 LIBS
="-l$ac_lib $LIBS"
1435 cat > conftest.
$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 /* Override any gcc2 internal prototype to avoid an error. */
1439 /* We use char because int might match the return type of a gcc2
1440 builtin and then its argument prototype would still apply. */
1447 if { (eval echo configure
:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1449 eval "ac_cv_lib_$ac_lib_var=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.
$ac_ext >&5
1454 eval "ac_cv_lib_$ac_lib_var=no"
1457 LIBS
="$ac_save_LIBS"
1460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1464 echo "$ac_t""no" 1>&6
1469 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1470 echo "configure:1471: checking whether ln works" >&5
1471 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 rm -f conftestdata_t
1475 echo >conftestdata_f
1476 if ln conftestdata_f conftestdata_t
2>/dev
/null
1480 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1482 gcc_cv_prog_LN
="ln -s"
1487 rm -f conftestdata_f conftestdata_t
1490 LN
="$gcc_cv_prog_LN"
1491 if test "$gcc_cv_prog_LN" = "ln"; then
1492 echo "$ac_t""yes" 1>&6
1494 if test "$gcc_cv_prog_LN" = "ln -s"; then
1495 echo "$ac_t""no, using ln -s" 1>&6
1497 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1501 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether ln -s works" >&5
1503 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 rm -f conftestdata_t
1507 echo >conftestdata_f
1508 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1510 gcc_cv_prog_LN_S
="ln -s"
1512 if ln conftestdata_f conftestdata_t
2>/dev
/null
1519 rm -f conftestdata_f conftestdata_t
1522 LN_S
="$gcc_cv_prog_LN_S"
1523 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1524 echo "$ac_t""yes" 1>&6
1526 if test "$gcc_cv_prog_LN_S" = "ln"; then
1527 echo "$ac_t""no, using ln" 1>&6
1529 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1533 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1534 echo "configure:1535: checking for volatile" >&5
1535 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1546 if { (eval echo configure
:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548 gcc_cv_c_volatile
=yes
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1553 gcc_cv_c_volatile
=no
1558 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1559 if test $gcc_cv_c_volatile = yes ; then
1560 cat >> confdefs.h
<<\EOF
1561 #define HAVE_VOLATILE 1
1566 # Extract the first word of "ranlib", so it can be a program name with args.
1567 set dummy ranlib
; ac_word
=$2
1568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_word" >&5
1570 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 if test -n "$RANLIB"; then
1574 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1578 for ac_dir
in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir
=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_prog_RANLIB
="ranlib"
1586 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1589 RANLIB
="$ac_cv_prog_RANLIB"
1590 if test -n "$RANLIB"; then
1591 echo "$ac_t""$RANLIB" 1>&6
1593 echo "$ac_t""no" 1>&6
1596 for ac_prog
in 'bison -y' byacc
1598 # Extract the first word of "$ac_prog", so it can be a program name with args.
1599 set dummy
$ac_prog; ac_word
=$2
1600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1601 echo "configure:1602: checking for $ac_word" >&5
1602 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 if test -n "$YACC"; then
1606 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1608 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1610 for ac_dir
in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir
=.
1612 if test -f $ac_dir/$ac_word; then
1613 ac_cv_prog_YACC
="$ac_prog"
1620 YACC
="$ac_cv_prog_YACC"
1621 if test -n "$YACC"; then
1622 echo "$ac_t""$YACC" 1>&6
1624 echo "$ac_t""no" 1>&6
1627 test -n "$YACC" && break
1629 test -n "$YACC" || YACC
="yacc"
1631 # Find a good install program. We prefer a C program (faster),
1632 # so one script is as good as another. But avoid the broken or
1633 # incompatible versions:
1634 # SysV /etc/install, /usr/sbin/install
1635 # SunOS /usr/etc/install
1636 # IRIX /sbin/install
1638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1640 # ./install, which can be erroneously created by make from ./install.sh.
1641 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1642 echo "configure:1643: checking for a BSD compatible install" >&5
1643 if test -z "$INSTALL"; then
1644 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1648 for ac_dir
in $PATH; do
1649 # Account for people who put trailing slashes in PATH elements.
1651 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 for ac_prog
in ginstall scoinst
install; do
1655 if test -f $ac_dir/$ac_prog; then
1656 if test $ac_prog = install &&
1657 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1658 # AIX install. It has an incompatible calling convention.
1659 # OSF/1 installbsd also uses dspmsg, but is usable.
1662 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1673 if test "${ac_cv_path_install+set}" = set; then
1674 INSTALL
="$ac_cv_path_install"
1676 # As a last resort, use the slow shell script. We don't cache a
1677 # path for INSTALL within a source directory, because that will
1678 # break other packages using the cache if that directory is
1679 # removed, or if the path is relative.
1680 INSTALL
="$ac_install_sh"
1683 echo "$ac_t""$INSTALL" 1>&6
1685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1686 # It thinks the first close brace ends the variable substitution.
1687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1689 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1692 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1693 echo "configure:1694: checking how to run the C preprocessor" >&5
1694 # On Suns, sometimes $CPP names a directory.
1695 if test -n "$CPP" && test -d "$CPP"; then
1698 if test -z "$CPP"; then
1699 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 # This must be in double quotes, not single quotes, because CPP may get
1703 # substituted into the Makefile and "${CC-cc}" will confuse make.
1705 # On the NeXT, cc -E runs the code through the compiler's parser,
1706 # not just through cpp.
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1713 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure
:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1716 if test -z "$ac_err"; then
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1723 CPP
="${CC-cc} -E -traditional-cpp"
1724 cat > conftest.
$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1730 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731 { (eval echo configure
:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733 if test -z "$ac_err"; then
1737 echo "configure: failed program was:" >&5
1738 cat conftest.
$ac_ext >&5
1740 CPP
="${CC-cc} -nologo -E"
1741 cat > conftest.
$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1748 { (eval echo configure
:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1749 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1750 if test -z "$ac_err"; then
1754 echo "configure: failed program was:" >&5
1755 cat conftest.
$ac_ext >&5
1764 ac_cv_prog_CPP
="$CPP"
1766 CPP
="$ac_cv_prog_CPP"
1768 ac_cv_prog_CPP
="$CPP"
1770 echo "$ac_t""$CPP" 1>&6
1772 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1773 echo "configure:1774: checking for ANSI C header files" >&5
1774 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 cat > conftest.
$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1786 { (eval echo configure
:1787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1787 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1788 if test -z "$ac_err"; then
1790 ac_cv_header_stdc
=yes
1793 echo "configure: failed program was:" >&5
1794 cat conftest.
$ac_ext >&5
1796 ac_cv_header_stdc
=no
1800 if test $ac_cv_header_stdc = yes; then
1801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1802 cat > conftest.
$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1808 egrep "memchr" >/dev
/null
2>&1; then
1812 ac_cv_header_stdc
=no
1818 if test $ac_cv_header_stdc = yes; then
1819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1826 egrep "free" >/dev
/null
2>&1; then
1830 ac_cv_header_stdc
=no
1836 if test $ac_cv_header_stdc = yes; then
1837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1838 if test "$cross_compiling" = yes; then
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1845 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1846 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1848 int main () { int i; for (i = 0; i < 256; i++)
1849 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1853 if { (eval echo configure
:1854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1857 echo "configure: failed program was:" >&5
1858 cat conftest.
$ac_ext >&5
1860 ac_cv_header_stdc
=no
1868 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1869 if test $ac_cv_header_stdc = yes; then
1870 cat >> confdefs.h
<<\EOF
1871 #define STDC_HEADERS 1
1876 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether time.h and sys/time.h may both be included" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <sys/types.h>
1885 #include <sys/time.h>
1891 if { (eval echo configure
:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1893 ac_cv_header_time
=yes
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 ac_cv_header_time
=no
1903 echo "$ac_t""$ac_cv_header_time" 1>&6
1904 if test $ac_cv_header_time = yes; then
1905 cat >> confdefs.h
<<\EOF
1906 #define TIME_WITH_SYS_TIME 1
1911 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether string.h and strings.h may both be included" >&5
1913 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1920 #include <strings.h>
1925 if { (eval echo configure
:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1927 gcc_cv_header_string
=yes
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1932 gcc_cv_header_string
=no
1937 echo "$ac_t""$gcc_cv_header_string" 1>&6
1938 if test $gcc_cv_header_string = yes; then
1939 cat >> confdefs.h
<<\EOF
1940 #define STRING_WITH_STRINGS 1
1945 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1946 echo "configure:1947: checking for sys/wait.h that is POSIX.1 compatible" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 #include <sys/types.h>
1954 #include <sys/wait.h>
1956 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1959 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1964 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1967 if { (eval echo configure
:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1969 ac_cv_header_sys_wait_h
=yes
1971 echo "configure: failed program was:" >&5
1972 cat conftest.
$ac_ext >&5
1974 ac_cv_header_sys_wait_h
=no
1979 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1980 if test $ac_cv_header_sys_wait_h = yes; then
1981 cat >> confdefs.h
<<\EOF
1982 #define HAVE_SYS_WAIT_H 1
1987 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1988 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1989 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1992 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_hdr" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2004 { (eval echo configure
:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2006 if test -z "$ac_err"; then
2008 eval "ac_cv_header_$ac_safe=yes"
2011 echo "configure: failed program was:" >&5
2012 cat conftest.
$ac_ext >&5
2014 eval "ac_cv_header_$ac_safe=no"
2018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2021 cat >> confdefs.h
<<EOF
2022 #define $ac_tr_hdr 1
2026 echo "$ac_t""no" 1>&6
2031 # Check for thread headers.
2032 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2033 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2034 echo "configure:2035: checking for thread.h" >&5
2035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.
$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2043 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2044 { (eval echo configure
:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2045 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2046 if test -z "$ac_err"; then
2048 eval "ac_cv_header_$ac_safe=yes"
2051 echo "configure: failed program was:" >&5
2052 cat conftest.
$ac_ext >&5
2054 eval "ac_cv_header_$ac_safe=no"
2058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2059 echo "$ac_t""yes" 1>&6
2062 echo "$ac_t""no" 1>&6
2066 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2067 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2068 echo "configure:2069: checking for pthread.h" >&5
2069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.
$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2075 #include <pthread.h>
2077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2078 { (eval echo configure
:2079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2080 if test -z "$ac_err"; then
2082 eval "ac_cv_header_$ac_safe=yes"
2085 echo "configure: failed program was:" >&5
2086 cat conftest.
$ac_ext >&5
2088 eval "ac_cv_header_$ac_safe=no"
2092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2096 echo "$ac_t""no" 1>&6
2101 # See if GNAT has been installed
2102 # Extract the first word of "gnatbind", so it can be a program name with args.
2103 set dummy gnatbind
; ac_word
=$2
2104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2105 echo "configure:2106: checking for $ac_word" >&5
2106 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 if test -n "$gnat"; then
2110 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2112 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2114 for ac_dir
in $ac_dummy; do
2115 test -z "$ac_dir" && ac_dir
=.
2116 if test -f $ac_dir/$ac_word; then
2117 ac_cv_prog_gnat
="yes"
2122 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2125 gnat
="$ac_cv_prog_gnat"
2126 if test -n "$gnat"; then
2127 echo "$ac_t""$gnat" 1>&6
2129 echo "$ac_t""no" 1>&6
2133 # See if the stage1 system preprocessor understands the ANSI C
2134 # preprocessor stringification operator.
2137 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2138 echo "configure:2139: checking for preprocessor stringizing operator" >&5
2139 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2148 char *s = x(teststring);
2151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2152 egrep "#teststring" >/dev
/null
2>&1; then
2154 ac_cv_c_stringize
=no
2157 ac_cv_c_stringize
=yes
2163 if test "${ac_cv_c_stringize}" = yes
2165 cat >> confdefs.h
<<\EOF
2166 #define HAVE_STRINGIZE 1
2170 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2173 # Use <inttypes.h> only if it exists,
2174 # doesn't clash with <sys/types.h>, and declares intmax_t.
2175 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2176 echo "configure:2177: checking for inttypes.h" >&5
2177 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 cat > conftest.
$ac_ext <<EOF
2181 #line 2182 "configure"
2182 #include "confdefs.h"
2183 #include <sys/types.h>
2184 #include <inttypes.h>
2189 if { (eval echo configure
:2190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2191 gcc_cv_header_inttypes_h
=yes
2193 echo "configure: failed program was:" >&5
2194 cat conftest.
$ac_ext >&5
2196 gcc_cv_header_inttypes_h
=no
2201 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2202 if test $gcc_cv_header_inttypes_h = yes; then
2203 cat >> confdefs.h
<<\EOF
2204 #define HAVE_INTTYPES_H 1
2210 # Determine if enumerated bitfields are unsigned. ISO C says they can
2211 # be either signed or unsigned.
2213 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2214 echo "configure:2215: checking for unsigned enumerated bitfields" >&5
2215 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 if test "$cross_compiling" = yes; then
2219 gcc_cv_enum_bf_unsigned
=yes
2221 cat > conftest.
$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2225 enum t { BLAH = 128 } ;
2226 struct s_t { enum t member : 8; } s ;
2230 if (s.member < 0) exit(1);
2235 if { (eval echo configure
:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2237 gcc_cv_enum_bf_unsigned
=yes
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 gcc_cv_enum_bf_unsigned
=no
2249 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2250 if test $gcc_cv_enum_bf_unsigned = yes; then
2251 cat >> confdefs.h
<<\EOF
2252 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2257 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2258 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2259 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2260 fputs_unlocked getrusage valloc
2262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_func" >&5
2264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.
$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 /* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $ac_func(); below. */
2273 /* Override any gcc2 internal prototype to avoid an error. */
2274 /* We use char because int might match the return type of a gcc2
2275 builtin and then its argument prototype would still apply. */
2280 /* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2291 if { (eval echo configure
:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2293 eval "ac_cv_func_$ac_func=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2298 eval "ac_cv_func_$ac_func=no"
2303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2306 cat >> confdefs.h
<<EOF
2307 #define $ac_tr_func 1
2311 echo "$ac_t""no" 1>&6
2316 # Make sure wchar_t is available
2317 #AC_CHECK_TYPE(wchar_t, unsigned int)
2319 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2320 echo "configure:2321: checking for vprintf" >&5
2321 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 cat > conftest.
$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 /* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char vprintf(); below. */
2330 /* Override any gcc2 internal prototype to avoid an error. */
2331 /* We use char because int might match the return type of a gcc2
2332 builtin and then its argument prototype would still apply. */
2337 /* The GNU C library defines this for functions which it implements
2338 to always fail with ENOSYS. Some functions are actually named
2339 something starting with __ and the normal name is an alias. */
2340 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2348 if { (eval echo configure
:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2350 eval "ac_cv_func_vprintf=yes"
2352 echo "configure: failed program was:" >&5
2353 cat conftest.
$ac_ext >&5
2355 eval "ac_cv_func_vprintf=no"
2360 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 cat >> confdefs.h
<<\EOF
2363 #define HAVE_VPRINTF 1
2367 echo "$ac_t""no" 1>&6
2370 if test "$ac_cv_func_vprintf" != yes; then
2371 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2372 echo "configure:2373: checking for _doprnt" >&5
2373 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.
$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 /* System header to define __stub macros and hopefully few prototypes,
2380 which can conflict with char _doprnt(); below. */
2382 /* Override any gcc2 internal prototype to avoid an error. */
2383 /* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2389 /* The GNU C library defines this for functions which it implements
2390 to always fail with ENOSYS. Some functions are actually named
2391 something starting with __ and the normal name is an alias. */
2392 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2400 if { (eval echo configure
:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2402 eval "ac_cv_func__doprnt=yes"
2404 echo "configure: failed program was:" >&5
2405 cat conftest.
$ac_ext >&5
2407 eval "ac_cv_func__doprnt=no"
2412 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 cat >> confdefs.h
<<\EOF
2415 #define HAVE_DOPRNT 1
2419 echo "$ac_t""no" 1>&6
2426 if test $ac_cv_func_vprintf != yes ; then
2428 if test $ac_cv_func__doprnt != yes ; then
2435 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2436 echo "configure:2437: checking whether the printf functions support %p" >&5
2437 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 if test "$cross_compiling" = yes; then
2441 gcc_cv_func_printf_ptr
=no
2443 cat > conftest.
$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2451 char *p = buf, *q = NULL;
2452 sprintf(buf, "%p", p);
2453 sscanf(buf, "%p", &q);
2457 if { (eval echo configure
:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2459 gcc_cv_func_printf_ptr
=yes
2461 echo "configure: failed program was:" >&5
2462 cat conftest.
$ac_ext >&5
2464 gcc_cv_func_printf_ptr
=no
2469 rm -f core core.
* *.core
2472 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2473 if test $gcc_cv_func_printf_ptr = yes ; then
2474 cat >> confdefs.h
<<\EOF
2475 #define HAVE_PRINTF_PTR 1
2483 # Under some versions of uwin, vfork is notoriously buggy and the test
2484 # can hang configure; on other versions, vfork exists just as a stub.
2485 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2486 ac_cv_func_vfork_works
=no
2489 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2490 echo "configure:2491: checking for pid_t" >&5
2491 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 #include <sys/types.h>
2503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2504 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2506 ac_cv_type_pid_t
=yes
2514 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2515 if test $ac_cv_type_pid_t = no
; then
2516 cat >> confdefs.h
<<\EOF
2522 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2523 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2524 echo "configure:2525: checking for vfork.h" >&5
2525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2533 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2534 { (eval echo configure
:2535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2535 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2536 if test -z "$ac_err"; then
2538 eval "ac_cv_header_$ac_safe=yes"
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2544 eval "ac_cv_header_$ac_safe=no"
2548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2549 echo "$ac_t""yes" 1>&6
2550 cat >> confdefs.h
<<\EOF
2551 #define HAVE_VFORK_H 1
2555 echo "$ac_t""no" 1>&6
2558 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2559 echo "configure:2560: checking for working vfork" >&5
2560 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 if test "$cross_compiling" = yes; then
2564 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2565 echo "configure:2566: checking for vfork" >&5
2566 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 cat > conftest.
$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* System header to define __stub macros and hopefully few prototypes,
2573 which can conflict with char vfork(); below. */
2575 /* Override any gcc2 internal prototype to avoid an error. */
2576 /* We use char because int might match the return type of a gcc2
2577 builtin and then its argument prototype would still apply. */
2582 /* The GNU C library defines this for functions which it implements
2583 to always fail with ENOSYS. Some functions are actually named
2584 something starting with __ and the normal name is an alias. */
2585 #if defined (__stub_vfork) || defined (__stub___vfork)
2593 if { (eval echo configure
:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2595 eval "ac_cv_func_vfork=yes"
2597 echo "configure: failed program was:" >&5
2598 cat conftest.
$ac_ext >&5
2600 eval "ac_cv_func_vfork=no"
2605 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2609 echo "$ac_t""no" 1>&6
2612 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 /* Thanks to Paul Eggert for this test. */
2619 #include <sys/types.h>
2620 #include <sys/stat.h>
2621 #ifdef HAVE_UNISTD_H
2627 /* On some sparc systems, changes by the child to local and incoming
2628 argument registers are propagated back to the parent.
2629 The compiler is told about this with #include <vfork.h>,
2630 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2631 Test for this by using a static variable whose address
2632 is put into a register that is clobbered by the vfork. */
2635 sparc_address_test (int arg)
2637 sparc_address_test (arg) int arg;
2655 pid_t parent = getpid ();
2658 sparc_address_test ();
2663 /* Here is another test for sparc vfork register problems.
2664 This test uses lots of local variables, at least
2665 as many local variables as main has allocated so far
2666 including compiler temporaries. 4 locals are enough for
2667 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2668 A buggy compiler should reuse the register of parent
2669 for one of the local variables, since it will think that
2670 parent can't possibly be used any more in this routine.
2671 Assigning to the local variable will thus munge parent
2672 in the parent process. */
2674 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2675 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2676 /* Convince the compiler that p..p7 are live; otherwise, it might
2677 use the same hardware register for all 8 local variables. */
2678 if (p != p1 || p != p2 || p != p3 || p != p4
2679 || p != p5 || p != p6 || p != p7)
2682 /* On some systems (e.g. IRIX 3.3),
2683 vfork doesn't separate parent from child file descriptors.
2684 If the child closes a descriptor before it execs or exits,
2685 this munges the parent's descriptor as well.
2686 Test for this by closing stdout in the child. */
2687 _exit(close(fileno(stdout)) != 0);
2692 while (wait(&status) != child)
2695 /* Was there some problem with vforking? */
2698 /* Did the child fail? (This shouldn't happen.) */
2701 /* Did the vfork/compiler bug occur? */
2702 || parent != getpid()
2704 /* Did the file descriptor bug occur? */
2705 || fstat(fileno(stdout), &st) != 0
2710 if { (eval echo configure
:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2712 ac_cv_func_vfork_works
=yes
2714 echo "configure: failed program was:" >&5
2715 cat conftest.
$ac_ext >&5
2717 ac_cv_func_vfork_works
=no
2724 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2725 if test $ac_cv_func_vfork_works = no
; then
2726 cat >> confdefs.h
<<\EOF
2732 for ac_hdr
in unistd.h
2734 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_hdr" >&5
2737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 cat > conftest.
$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2745 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure
:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2750 eval "ac_cv_header_$ac_safe=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.
$ac_ext >&5
2756 eval "ac_cv_header_$ac_safe=no"
2760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2763 cat >> confdefs.h
<<EOF
2764 #define $ac_tr_hdr 1
2768 echo "$ac_t""no" 1>&6
2772 for ac_func
in getpagesize
2774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_func" >&5
2776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* System header to define __stub macros and hopefully few prototypes,
2783 which can conflict with char $ac_func(); below. */
2785 /* Override any gcc2 internal prototype to avoid an error. */
2786 /* We use char because int might match the return type of a gcc2
2787 builtin and then its argument prototype would still apply. */
2792 /* The GNU C library defines this for functions which it implements
2793 to always fail with ENOSYS. Some functions are actually named
2794 something starting with __ and the normal name is an alias. */
2795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2803 if { (eval echo configure
:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2805 eval "ac_cv_func_$ac_func=yes"
2807 echo "configure: failed program was:" >&5
2808 cat conftest.
$ac_ext >&5
2810 eval "ac_cv_func_$ac_func=no"
2815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2818 cat >> confdefs.h
<<EOF
2819 #define $ac_tr_func 1
2823 echo "$ac_t""no" 1>&6
2827 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2828 echo "configure:2829: checking for working mmap from /dev/zero" >&5
2829 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 if test "$cross_compiling" = yes; then
2833 ac_cv_func_mmap_anywhere
=no
2835 cat > conftest.
$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2839 /* Test by Richard Henderson and Alexandre Oliva.
2840 Check whether mmap from /dev/zero works. */
2841 #include <sys/types.h>
2843 #include <sys/mman.h>
2845 /* This mess was copied from the GNU getpagesize.h. */
2846 #ifndef HAVE_GETPAGESIZE
2847 # ifdef HAVE_UNISTD_H
2848 # include <unistd.h>
2851 /* Assume that all systems that can run configure have sys/param.h. */
2852 # ifndef HAVE_SYS_PARAM_H
2853 # define HAVE_SYS_PARAM_H 1
2856 # ifdef _SC_PAGESIZE
2857 # define getpagesize() sysconf(_SC_PAGESIZE)
2858 # else /* no _SC_PAGESIZE */
2859 # ifdef HAVE_SYS_PARAM_H
2860 # include <sys/param.h>
2861 # ifdef EXEC_PAGESIZE
2862 # define getpagesize() EXEC_PAGESIZE
2863 # else /* no EXEC_PAGESIZE */
2865 # define getpagesize() NBPG * CLSIZE
2868 # endif /* no CLSIZE */
2869 # else /* no NBPG */
2871 # define getpagesize() NBPC
2872 # else /* no NBPC */
2874 # define getpagesize() PAGESIZE
2875 # endif /* PAGESIZE */
2876 # endif /* no NBPC */
2877 # endif /* no NBPG */
2878 # endif /* no EXEC_PAGESIZE */
2879 # else /* no HAVE_SYS_PARAM_H */
2880 # define getpagesize() 8192 /* punt totally */
2881 # endif /* no HAVE_SYS_PARAM_H */
2882 # endif /* no _SC_PAGESIZE */
2884 #endif /* no HAVE_GETPAGESIZE */
2891 fd = open("/dev/zero", O_RDWR);
2896 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2897 if (x == (char *) -1)
2902 if (munmap(x, pg) < 0)
2908 if { (eval echo configure
:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2910 ac_cv_func_mmap_anywhere
=yes
2912 echo "configure: failed program was:" >&5
2913 cat conftest.
$ac_ext >&5
2915 ac_cv_func_mmap_anywhere
=no
2922 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2923 if test $ac_cv_func_mmap_anywhere = yes; then
2924 cat >> confdefs.h
<<\EOF
2925 #define HAVE_MMAP_ANYWHERE 1
2930 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
2931 echo "configure:2932: checking for working mmap of a file" >&5
2932 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2935 # Create a file one thousand bytes long.
2936 for i
in 1 2 3 4 5 6 7 8 9 0
2937 do for j
in 1 2 3 4 5 6 7 8 9 0
2940 done > conftestdata$$
2942 if test "$cross_compiling" = yes; then
2943 ac_cv_func_mmap_file
=no
2945 cat > conftest.
$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2949 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
2950 Richard Henderson and Alexandre Oliva.
2951 Check whether read-only mmap of a plain file works. */
2952 #include <sys/types.h>
2953 #include <sys/stat.h>
2955 #include <sys/mman.h>
2963 fd = open("conftestdata$$", O_RDONLY);
2967 if (fstat (fd, &st))
2970 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
2971 if (x == (char *) -1)
2974 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
2977 if (munmap(x, st.st_size) < 0)
2983 if { (eval echo configure
:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2985 ac_cv_func_mmap_file
=yes
2987 echo "configure: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 ac_cv_func_mmap_file
=no
2997 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
2998 if test $ac_cv_func_mmap_file = yes; then
2999 cat >> confdefs.h
<<\EOF
3000 #define HAVE_MMAP_FILE 1
3006 # We will need to find libiberty.h and ansidecl.h
3007 saved_CFLAGS
="$CFLAGS"
3008 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3009 for ac_func
in bcopy bzero bcmp \
3010 index rindex getenv atol sbrk abort atof getcwd getwd \
3011 strsignal putc_unlocked fputs_unlocked strstr environ \
3012 malloc realloc calloc free
3014 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3015 echo "configure:3016: checking whether $ac_func must be declared" >&5
3016 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 cat > conftest.
$ac_ext <<EOF
3020 #line 3021 "configure"
3021 #include "confdefs.h"
3023 #include "gansidecl.h"
3027 char *(*pfn) = (char *(*)) $ac_func ;
3031 if { (eval echo configure
:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3033 eval "gcc_cv_decl_needed_$ac_func=no"
3035 echo "configure: failed program was:" >&5
3036 cat conftest.
$ac_ext >&5
3038 eval "gcc_cv_decl_needed_$ac_func=yes"
3043 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6 ; ac_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3045 cat >> confdefs.h
<<EOF
3046 #define $ac_tr_decl 1
3050 echo "$ac_t""no" 1>&6 ; :
3054 if test x
= y
; then
3055 cat >> confdefs.h
<<EOF
3056 #define NEED_DECLARATION_BCOPY 1
3058 cat >> confdefs.h
<<EOF
3059 #define NEED_DECLARATION_BZERO 1
3061 cat >> confdefs.h
<<EOF
3062 #define NEED_DECLARATION_BCMP 1
3065 cat >> confdefs.h
<<EOF
3066 #define NEED_DECLARATION_INDEX 1
3068 cat >> confdefs.h
<<EOF
3069 #define NEED_DECLARATION_RINDEX 1
3071 cat >> confdefs.h
<<EOF
3072 #define NEED_DECLARATION_GETENV 1
3074 cat >> confdefs.h
<<EOF
3075 #define NEED_DECLARATION_ATOL 1
3077 cat >> confdefs.h
<<EOF
3078 #define NEED_DECLARATION_SBRK 1
3080 cat >> confdefs.h
<<EOF
3081 #define NEED_DECLARATION_ABORT 1
3083 cat >> confdefs.h
<<EOF
3084 #define NEED_DECLARATION_ATOF 1
3086 cat >> confdefs.h
<<EOF
3087 #define NEED_DECLARATION_GETCWD 1
3089 cat >> confdefs.h
<<EOF
3090 #define NEED_DECLARATION_GETWD 1
3093 cat >> confdefs.h
<<EOF
3094 #define NEED_DECLARATION_STRSIGNAL 1
3096 cat >> confdefs.h
<<EOF
3097 #define NEED_DECLARATION_PUTC_UNLOCKED 1
3099 cat >> confdefs.h
<<EOF
3100 #define NEED_DECLARATION_FPUTS_UNLOCKED 1
3102 cat >> confdefs.h
<<EOF
3103 #define NEED_DECLARATION_STRSTR 1
3105 cat >> confdefs.h
<<EOF
3106 #define NEED_DECLARATION_ENVIRON 1
3109 cat >> confdefs.h
<<EOF
3110 #define NEED_DECLARATION_MALLOC 1
3112 cat >> confdefs.h
<<EOF
3113 #define NEED_DECLARATION_REALLOC 1
3115 cat >> confdefs.h
<<EOF
3116 #define NEED_DECLARATION_CALLOC 1
3118 cat >> confdefs.h
<<EOF
3119 #define NEED_DECLARATION_FREE 1
3124 for ac_func
in getrlimit setrlimit getrusage
3126 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3127 echo "configure:3128: checking whether $ac_func must be declared" >&5
3128 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3135 #include "gansidecl.h"
3137 #ifdef HAVE_SYS_RESOURCE_H
3138 #include <sys/resource.h>
3143 char *(*pfn) = (char *(*)) $ac_func ;
3147 if { (eval echo configure
:3148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3149 eval "gcc_cv_decl_needed_$ac_func=no"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.
$ac_ext >&5
3154 eval "gcc_cv_decl_needed_$ac_func=yes"
3159 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3160 echo "$ac_t""yes" 1>&6 ; ac_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3161 cat >> confdefs.h
<<EOF
3162 #define $ac_tr_decl 1
3166 echo "$ac_t""no" 1>&6 ; :
3170 if test x
= y
; then
3171 cat >> confdefs.h
<<EOF
3172 #define NEED_DECLARATION_GETRLIMIT 1
3174 cat >> confdefs.h
<<EOF
3175 #define NEED_DECLARATION_SETRLIMIT 1
3177 cat >> confdefs.h
<<EOF
3178 #define NEED_DECLARATION_GETRUSAGE 1
3183 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3184 CFLAGS
="$saved_CFLAGS"
3186 # mkdir takes a single argument on some systems.
3187 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3188 echo "configure:3189: checking if mkdir takes one argument" >&5
3189 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 cat > conftest.
$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3196 #include <sys/types.h>
3197 #ifdef HAVE_SYS_STAT_H
3198 # include <sys/stat.h>
3200 #ifdef HAVE_UNISTD_H
3201 # include <unistd.h>
3203 #ifdef HAVE_DIRECT_H
3204 # include <direct.h>
3210 if { (eval echo configure
:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 gcc_cv_mkdir_takes_one_arg
=no
3214 echo "configure: failed program was:" >&5
3215 cat conftest.
$ac_ext >&5
3217 gcc_cv_mkdir_takes_one_arg
=yes
3222 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3223 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3224 cat >> confdefs.h
<<\EOF
3225 #define MKDIR_TAKES_ONE_ARG 1
3239 build_install_headers_dir
=install-headers-tar
3244 host_truncate_target
=
3247 # Decode the host machine, then the target machine.
3248 # For the host machine, we save the xm_file variable as host_xm_file;
3249 # then we decode the target machine and forget everything else
3250 # that came from the host machine.
3251 for machine
in $build $host $target; do
3265 # Set this to force installation and use of collect2.
3267 # Set this to override the default target model.
3269 # Set this to control how the header file directory is installed.
3270 install_headers_dir
=install-headers-tar
3271 # Set this to a non-empty list of args to pass to cpp if the target
3272 # wants its .md file passed through cpp.
3274 # Set this if directory names should be truncated to 14 characters.
3276 # Set this if gdb needs a dir command with `dirname $out_file`
3277 gdb_needs_out_file_path
=
3278 # Set this if the build machine requires executables to have a
3281 # Set this to control which thread package will be used.
3283 # Reinitialize these from the flag values every loop pass, since some
3284 # configure entries modify them.
3286 gnu_ld
="$gnu_ld_flag"
3287 enable_threads
=$enable_threads_flag
3289 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3290 # updated in each machine entry.
3292 cpu_type
=`echo $machine | sed 's/-.*$//'`
3329 tm_file
=${cpu_type}/${cpu_type}.h
3330 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3331 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3333 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3335 # On a.out targets, we need to use collect2.
3342 # Common parts for linux-gnu and openbsd systems
3345 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3348 tm_file
=${cpu_type}/openbsd.h
3349 tmake_file
="t-libc-ok t-openbsd"
3350 # avoid surprises, always provide an xm-openbsd file
3351 xm_file
=${cpu_type}/xm-openbsd.h
3352 # don't depend on processor x-fragments as well
3354 if test x
$enable_threads = xyes
; then
3356 tmake_file
="${tmake_file} t-openbsd-thread"
3362 # Support site-specific machine types.
3364 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3365 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3366 xm_file
=${cpu_type}/xm-
$rest.h
3367 tm_file
=${cpu_type}/$rest.h
3368 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3369 then xmake_file
=${cpu_type}/x-
$rest; \
3372 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3373 then tmake_file
=${cpu_type}/t-
$rest; \
3379 a29k-
*-bsd* | a29k-
*-sym1*)
3380 tm_file
="${tm_file} a29k/unix.h"
3382 xmake_file
=a29k
/x-unix
3385 a29k-
*-udi | a29k-
*-coff)
3386 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3387 tmake_file
=a29k
/t-a29kbare
3390 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3391 tmake_file
=a29k
/t-vx29k
3392 extra_parts
="crtbegin.o crtend.o"
3393 thread_file
='vxworks'
3395 a29k-
*-*) # Default a29k environment.
3399 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3401 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3402 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3404 # GAS + IEEE_CONFORMANT
3405 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3407 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3408 xmake_file
="x-interix alpha/t-pe"
3409 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3410 if test x
$enable_threads = xyes
; then
3413 if test x
$stabs = xyes
; then
3414 tm_file
="${tm_file} dbxcoff.h"
3416 #prefix='$$INTERIX_ROOT'/usr/contrib
3417 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3419 alpha
*-*-linux-gnuecoff*)
3420 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3421 target_cpu_default
="MASK_GAS"
3422 tmake_file
="alpha/t-alpha alpha/t-ieee"
3427 alpha
*-*-linux-gnulibc1*)
3428 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3429 target_cpu_default
="MASK_GAS"
3430 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3431 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3434 if test x
$enable_threads = xyes
; then
3438 alpha
*-*-linux-gnu*)
3439 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3440 target_cpu_default
="MASK_GAS"
3441 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3442 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3445 if test x
$enable_threads = xyes
; then
3450 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3451 target_cpu_default
="MASK_GAS"
3452 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3453 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3459 # default x-alpha is only appropriate for dec-osf.
3460 target_cpu_default
="MASK_GAS"
3461 tmake_file
="alpha/t-alpha alpha/t-ieee"
3465 if test x
$stabs = xyes
3467 tm_file
="${tm_file} dbx.h"
3469 if test x
$gas != xyes
3471 extra_passes
="mips-tfile mips-tdump"
3474 tmake_file
="alpha/t-alpha alpha/t-ieee"
3477 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3480 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3483 tm_file
="${tm_file} alpha/osf.h"
3484 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3485 # a broken tar, so we use cpio instead.
3486 install_headers_dir
=install-headers-cpio
3489 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3493 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3494 target_cpu_default
=MASK_SUPPORT_ARCH
3499 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3500 tmake_file
="alpha/t-alpha alpha/t-ieee"
3503 extra_passes
="mips-tfile mips-tdump"
3506 thread_file
='vxworks'
3509 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3510 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3511 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3512 xmake_file
=winnt
/x-winnt
3513 extra_host_objs
=oldnames.o
3514 extra_gcc_objs
="spawnv.o oldnames.o"
3515 if test x
$gnu_ld != xyes
3517 extra_programs
=ld.exe
3519 if test x
$enable_threads = xyes
; then
3525 xm_file
="${xm_file} alpha/xm-vms.h"
3526 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3529 extra_parts
="crtinit.o crtfini.o"
3531 arm-
*-coff* | armel-
*-coff*)
3533 tmake_file
=arm
/t-arm-coff
3537 tmake_file
=arm
/t-arm-coff
3538 thread_file
='vxworks'
3540 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3541 tm_file
=arm
/riscix1-1.h
3544 arm-
*-riscix*) # Acorn RISC machine
3545 if test x
$gas = xyes
3547 tm_file
=arm
/rix-gas.h
3549 tm_file
=arm
/riscix.h
3551 xmake_file
=arm
/x-riscix
3552 tmake_file
=arm
/t-riscix
3555 arm-semi-aout | armel-semi-aout
)
3557 tmake_file
=arm
/t-semi
3559 arm-semi-aof | armel-semi-aof
)
3560 tm_file
=arm
/semiaof.h
3561 tmake_file
=arm
/t-semiaof
3564 tm_file
=arm
/netbsd.h
3565 tmake_file
="t-netbsd arm/t-netbsd"
3568 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3571 tm_file
=arm
/linux-aout.h
3572 tmake_file
=arm
/t-linux
3575 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3576 xm_file
=arm
/xm-linux.h
3578 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3581 tm_file
="arm/linux-elf26.h $tm_file"
3584 tmake_file
="t-linux arm/t-linux"
3585 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3587 case x
${enable_threads} in
3588 x | xyes | xpthreads | xposix
)
3593 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3594 xm_file
=arm
/xm-linux.h
3596 tm_file
="arm/linux-elf.h"
3599 tm_file
="arm/linux-elf26.h $tm_file"
3602 tmake_file
="t-linux arm/t-linux"
3603 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3605 case x
${enable_threads} in
3606 x | xyes | xpthreads | xposix
)
3611 arm
*-*-uclinux*) # ARM ucLinux
3612 tm_file
=arm
/uclinux-elf.h
3613 tmake_file
=arm
/t-arm-elf
3617 tmake_file
=arm
/t-arm-aout
3620 tm_file
=arm
/ecos-elf.h
3621 tmake_file
=arm
/t-arm-elf
3624 tm_file
=arm
/unknown-elf.h
3625 tmake_file
=arm
/t-arm-elf
3628 tm_file
=arm
/conix-elf.h
3629 tmake_file
=arm
/t-arm-elf
3632 tm_file
=arm
/unknown-elf-oabi.h
3633 tmake_file
=arm
/t-arm-elf
3642 c1-convex-
*) # Convex C1
3643 target_cpu_default
=1
3646 c2-convex-
*) # Convex C2
3647 target_cpu_default
=2
3651 target_cpu_default
=4
3655 target_cpu_default
=8
3659 target_cpu_default
=16
3664 tmake_file
=c4x
/t-c4x
3666 clipper-intergraph-clix
*)
3667 tm_file
="${tm_file} svr3.h clipper/clix.h"
3668 xm_file
=clipper
/xm-clix.h
3669 xmake_file
=clipper
/x-clix
3670 extra_headers
=va-clipper.h
3671 extra_parts
="crtbegin.o crtend.o"
3672 install_headers_dir
=install-headers-cpio
3680 tm_file
="fr30/fr30.h"
3681 tmake_file
=fr30
/t-fr30
3682 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3684 # This hasn't been upgraded to GCC 2.
3685 # fx80-alliant-*) # Alliant FX/80
3691 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3692 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3693 tmake_file
="t-linux pa/t-linux"
3694 extra_parts
="crtbegin.o crtend.o"
3697 if test x
$enable_threads = xyes
; then
3702 target_cpu_default
="MASK_PA_11"
3703 tmake_file
=pa
/t-openbsd
3706 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3707 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3708 xm_file
=pa
/xm-papro.h
3712 target_cpu_default
="MASK_PA_11"
3713 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3717 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3718 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3719 xm_file
=pa
/xm-papro.h
3723 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3727 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3728 target_cpu_default
="MASK_PA_11"
3732 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3736 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3737 xm_file
=pa
/xm-pahpux.h
3738 xmake_file
=pa
/x-pa-hpux
3739 if test x
$gas = xyes
3741 tm_file
="${tm_file} pa/gas.h"
3743 install_headers_dir
=install-headers-cpio
3746 hppa1.0
-*-hpux8.0
[0-2]*)
3747 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3748 xm_file
=pa
/xm-pahpux.h
3749 xmake_file
=pa
/x-pa-hpux
3750 if test x
$gas = xyes
3752 tm_file
="${tm_file} pa/pa-gas.h"
3754 tm_file
="pa/pa-oldas.h ${tm_file}"
3756 install_headers_dir
=install-headers-cpio
3759 hppa1.1
-*-hpux8.0
[0-2]*)
3760 target_cpu_default
="MASK_PA_11"
3761 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3762 xm_file
=pa
/xm-pahpux.h
3763 xmake_file
=pa
/x-pa-hpux
3764 if test x
$gas = xyes
3766 tm_file
="${tm_file} pa/pa-gas.h"
3768 tm_file
="pa/pa-oldas.h ${tm_file}"
3770 install_headers_dir
=install-headers-cpio
3774 target_cpu_default
="MASK_PA_11"
3775 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3776 xm_file
=pa
/xm-pahpux.h
3777 xmake_file
=pa
/x-pa-hpux
3778 if test x
$gas = xyes
3780 tm_file
="${tm_file} pa/pa-gas.h"
3782 install_headers_dir
=install-headers-cpio
3786 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3787 xm_file
=pa
/xm-pahpux.h
3788 xmake_file
=pa
/x-pa-hpux
3789 if test x
$gas = xyes
3791 tm_file
="${tm_file} pa/pa-gas.h"
3793 install_headers_dir
=install-headers-cpio
3796 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3797 target_cpu_default
="MASK_PA_11"
3798 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3800 xm_file
=pa
/xm-pahpux.h
3801 xmake_file
=pa
/x-pa-hpux
3803 if test x
$gas = xyes
3805 tm_file
="${tm_file} pa/pa-gas.h"
3807 if test x
$enable_threads = x
; then
3808 enable_threads
=$have_pthread_h
3810 if test x
$enable_threads = xyes
; then
3812 tmake_file
="${tmake_file} pa/t-dce-thr"
3814 install_headers_dir
=install-headers-cpio
3818 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3820 xm_file
=pa
/xm-pahpux.h
3821 xmake_file
=pa
/x-pa-hpux
3823 if test x
$gas = xyes
3825 tm_file
="${tm_file} pa/pa-gas.h"
3827 if test x
$enable_threads = x
; then
3828 enable_threads
=$have_pthread_h
3830 if test x
$enable_threads = xyes
; then
3832 tmake_file
="${tmake_file} pa/t-dce-thr"
3834 install_headers_dir
=install-headers-cpio
3837 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3838 target_cpu_default
="MASK_PA_11"
3839 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3841 xm_file
=pa
/xm-pahpux.h
3842 xmake_file
=pa
/x-pa-hpux
3844 if test x
$gas = xyes
3846 tm_file
="${tm_file} pa/pa-gas.h"
3848 # if test x$enable_threads = x; then
3849 # enable_threads=$have_pthread_h
3851 # if test x$enable_threads = xyes; then
3853 # tmake_file="${tmake_file} pa/t-dce-thr"
3855 install_headers_dir
=install-headers-cpio
3859 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3861 xm_file
=pa
/xm-pahpux.h
3862 xmake_file
=pa
/x-pa-hpux
3863 if test x
$gas = xyes
3865 tm_file
="${tm_file} pa/pa-gas.h"
3867 # if test x$enable_threads = x; then
3868 # enable_threads=$have_pthread_h
3870 # if test x$enable_threads = xyes; then
3872 # tmake_file="${tmake_file} pa/t-dce-thr"
3874 install_headers_dir
=install-headers-cpio
3877 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3878 target_cpu_default
="MASK_PA_11"
3879 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3880 xm_file
=pa
/xm-pahpux.h
3881 xmake_file
=pa
/x-pa-hpux
3882 if test x
$gas = xyes
3884 tm_file
="${tm_file} pa/pa-gas.h"
3886 install_headers_dir
=install-headers-cpio
3890 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3891 xm_file
=pa
/xm-pahpux.h
3892 xmake_file
=pa
/x-pa-hpux
3893 if test x
$gas = xyes
3895 tm_file
="${tm_file} pa/pa-gas.h"
3897 install_headers_dir
=install-headers-cpio
3900 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3901 target_cpu_default
="MASK_PA_11"
3902 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3903 xm_file
=pa
/xm-pahpux.h
3904 xmake_file
=pa
/x-pa-hpux
3905 if test x
$gas = xyes
3907 tm_file
="${tm_file} pa/pa-gas.h"
3909 install_headers_dir
=install-headers-cpio
3913 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3914 xm_file
=pa
/xm-pahpux.h
3915 xmake_file
=pa
/x-pa-hpux
3916 if test x
$gas = xyes
3918 tm_file
="${tm_file} pa/pa-gas.h"
3920 install_headers_dir
=install-headers-cpio
3924 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
3925 target_cpu_default
="MASK_PA_11"
3929 tm_file
="${tm_file} pa/pa-mpeix.h"
3930 xm_file
=pa
/xm-pampeix.h
3931 xmake_file
=pa
/x-pa-mpeix
3932 echo "You must use gas. Assuming it is already installed."
3933 install_headers_dir
=install-headers-tar
3936 i370-
*-opened*) # IBM 360/370/390 Architecture
3937 xm_file
=i370
/xm-oe.h
3939 xmake_file
=i370
/x-oe
3940 tmake_file
=i370
/t-oe
3943 xm_file
=i370
/xm-mvs.h
3945 tmake_file
=i370
/t-mvs
3948 xm_file
="xm-linux.h i370/xm-linux.h"
3950 tm_file
="i370/linux.h ${tm_file}"
3951 tmake_file
="t-linux i370/t-linux"
3952 # broken_install=yes
3953 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3954 # extra_parts="crtbegin.o crtend.o"
3958 if test x
$enable_threads = xyes
; then
3963 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3964 tm_file
=i386
/i386elf.h
3965 tmake_file
=i386
/t-i386elf
3968 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3969 if test x
$gas = xyes
3971 tm_file
=i386
/aix386.h
3972 extra_parts
="crtbegin.o crtend.o"
3973 tmake_file
=i386
/t-crtstuff
3975 tm_file
=i386
/aix386ng.h
3978 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3980 xmake_file
=i386
/x-aix
3982 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3983 xm_file
="xm-alloca.h ${xm_file}"
3984 xm_defines
="USG POSIX SMALL_ARG_MAX"
3985 xmake_file
=i386
/x-ncr3000
3986 if test x
$stabs = xyes
-a x
$gas = xyes
3988 tm_file
=i386
/sysv4gdb.h
3990 tm_file
=i386
/sysv4.h
3992 extra_parts
="crtbegin.o crtend.o"
3993 tmake_file
=i386
/t-crtpic
3997 xm_file
=i386
/xm-next.h
3998 tmake_file
=i386
/t-next
3999 xmake_file
=i386
/x-next
4000 extra_objs
=nextstep.o
4001 extra_parts
="crtbegin.o crtend.o"
4002 if test x
$enable_threads = xyes
; then
4006 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4008 if test x
$gas = xyes
4010 tm_file
=i386
/seq-gas.h
4012 tm_file
=i386
/sequent.h
4015 i
[34567]86-sequent-ptx1*)
4016 xm_defines
="USG SVR3"
4017 xmake_file
=i386
/x-sysv3
4018 tm_file
=i386
/seq-sysv3.h
4019 tmake_file
=i386
/t-crtstuff
4020 extra_parts
="crtbegin.o crtend.o"
4021 install_headers_dir
=install-headers-cpio
4023 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4024 xm_defines
="USG SVR3"
4025 xmake_file
=i386
/x-sysv3
4026 tm_file
=i386
/seq2-sysv3.h
4027 tmake_file
=i386
/t-crtstuff
4028 extra_parts
="crtbegin.o crtend.o"
4029 install_headers_dir
=install-headers-cpio
4031 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4032 xm_file
="xm-alloca.h ${xm_file}"
4033 xm_defines
="USG POSIX SMALL_ARG_MAX"
4035 tm_file
=i386
/ptx4-i.h
4037 extra_parts
="crtbegin.o crtend.o"
4038 install_headers_dir
=install-headers-cpio
4040 i386-sun-sunos
*) # Sun i386 roadrunner
4045 i
[34567]86-wrs-vxworks*)
4046 tm_file
=i386
/vxi386.h
4047 tmake_file
=i386
/t-i386bare
4048 thread_file
='vxworks'
4051 tm_file
=i386
/i386-aout.h
4052 tmake_file
=i386
/t-i386bare
4054 i
[34567]86-*-beospe*)
4055 xm_file
=i386
/xm-beos.h
4056 xm_defines
="USE_C_ALLOCA"
4057 tmake_file
=i386
/t-beos
4058 tm_file
=i386
/beos-pe.h
4059 xmake_file
=i386
/x-beos
4062 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4063 xm_file
=i386
/xm-beos.h
4064 tmake_file
='i386/t-beos i386/t-crtpic'
4065 tm_file
=i386
/beos-elf.h
4066 xmake_file
=i386
/x-beos
4068 extra_parts
='crtbegin.o crtend.o'
4070 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4071 tm_file
=i386
/bsd386.h
4072 # tmake_file=t-libc-ok
4075 tm_file
=i386
/386bsd.h
4076 # tmake_file=t-libc-ok
4077 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4080 i
[34567]86-*-freebsdelf*)
4081 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4082 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4083 tmake_file
=t-freebsd
4087 case x
${enable_threads} in
4088 xyes | xpthreads | xposix
)
4090 tmake_file
="${tmake_file} t-freebsd-thread"
4094 i
[34567]86-*-freebsd*)
4095 tm_file
="i386/freebsd.h i386/perform.h"
4096 tmake_file
=t-freebsd
4098 i
[34567]86-*-netbsd*)
4099 tm_file
=i386
/netbsd.h
4103 i
[34567]86-*-openbsd*)
4104 # we need collect2 until our bug is fixed...
4108 tm_file
=i386
/i386-coff.h
4109 tmake_file
=i386
/t-i386bare
4111 i
[34567]86-*-isc*) # 80386 running ISC system
4112 xm_file
="${xm_file} i386/xm-isc.h"
4113 xm_defines
="USG SVR3"
4115 i
[34567]86-*-isc[34]*)
4116 xmake_file
=i386
/x-isc3
4119 xmake_file
=i386
/x-isc
4122 if test x
$gas = xyes
-a x
$stabs = xyes
4124 tm_file
=i386
/iscdbx.h
4125 tmake_file
=i386
/t-svr3dbx
4126 extra_parts
="svr3.ifile svr3z.ifile"
4128 tm_file
=i386
/isccoff.h
4129 tmake_file
=i386
/t-crtstuff
4130 extra_parts
="crtbegin.o crtend.o"
4132 install_headers_dir
=install-headers-cpio
4134 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4136 xmake_file
=x-linux-aout
4137 tmake_file
="t-linux-aout i386/t-crtstuff"
4138 tm_file
=i386
/linux-oldld.h
4142 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4143 xmake_file
=x-linux-aout
4144 tmake_file
="t-linux-aout i386/t-crtstuff"
4145 tm_file
=i386
/linux-aout.h
4149 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4150 # GNU/Linux C library 5
4152 tm_file
=i386
/linux.h
4153 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4154 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4157 if test x
$enable_threads = xyes
; then
4158 thread_file
='single'
4161 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4162 # aka GNU/Linux C library 6
4164 tm_file
=i386
/linux.h
4165 tmake_file
="t-linux i386/t-crtstuff"
4166 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4169 if test x
$enable_threads = xyes
; then
4176 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4177 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4180 i
[34567]86-pc-msdosdjgpp*)
4181 xm_file
=i386
/xm-djgpp.h
4182 tm_file
=i386
/djgpp.h
4183 tmake_file
=i386
/t-djgpp
4184 xmake_file
=i386
/x-djgpp
4188 case $host in *pc-msdosdjgpp
*)
4193 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4195 tmake_file
=t-libc-ok
4199 i
[34567]86-*-lynxos*)
4200 if test x
$gas = xyes
4204 tm_file
=i386
/lynx-ng.h
4206 xm_file
=i386
/xm-lynx.h
4207 tmake_file
=i386
/t-i386bare
4212 # tmake_file=t-libc-ok
4215 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4216 if test x
$elf = xyes
4218 tm_file
=i386
/osfelf.h
4221 tm_file
=i386
/osfrose.h
4224 xm_file
="i386/xm-osf.h ${xm_file}"
4225 xmake_file
=i386
/x-osfrose
4226 tmake_file
=i386
/t-osf
4227 extra_objs
=halfpic.o
4229 i
[34567]86-go32-rtems*)
4231 xm_file
=i386
/xm-go32.h
4232 tm_file
=i386
/go32-rtems.h
4233 tmake_file
="i386/t-go32 t-rtems"
4235 i
[34567]86-*-rtemscoff*)
4237 tm_file
=i386
/rtems.h
4238 tmake_file
="i386/t-i386bare t-rtems"
4240 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4242 tm_file
=i386
/rtemself.h
4243 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4244 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4246 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4247 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4248 xm_defines
="USG SVR3"
4249 xmake_file
=i386
/x-sco5
4250 install_headers_dir
=install-headers-cpio
4252 if test x
$gas = xyes
4254 tm_file
="i386/sco5gas.h ${tm_file}"
4255 tmake_file
=i386
/t-sco5gas
4257 tmake_file
=i386
/t-sco5
4259 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4261 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4262 xm_file
="${xm_file} i386/xm-sco.h"
4263 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4264 xmake_file
=i386
/x-sco4
4265 install_headers_dir
=install-headers-cpio
4266 if test x
$stabs = xyes
4268 tm_file
=i386
/sco4dbx.h
4269 tmake_file
=i386
/t-svr3dbx
4270 extra_parts
="svr3.ifile svr3z.rfile"
4273 tmake_file
=i386
/t-crtstuff
4274 extra_parts
="crtbegin.o crtend.o"
4276 # The default EAFS filesystem supports long file names.
4277 # Truncating the target makes $host != $target which
4278 # makes gcc think it is doing a cross-compile.
4279 # truncate_target=yes
4281 i
[34567]86-*-sco*) # 80386 running SCO system
4282 xm_file
=i386
/xm-sco.h
4283 xmake_file
=i386
/x-sco
4284 install_headers_dir
=install-headers-cpio
4285 if test x
$stabs = xyes
4287 tm_file
=i386
/scodbx.h
4288 tmake_file
=i386
/t-svr3dbx
4289 extra_parts
="svr3.ifile svr3z.rfile"
4292 extra_parts
="crtbegin.o crtend.o"
4293 tmake_file
=i386
/t-crtstuff
4297 i
[34567]86-*-solaris2*)
4298 xm_file
="xm-alloca.h ${xm_file}"
4299 xm_defines
="USG POSIX SMALL_ARG_MAX"
4301 if test x
$gas = xyes
; then
4302 # Only needed if gas does not support -s
4303 tm_file
="i386/sol2gas.h ${tm_file}"
4305 tmake_file
=i386
/t-sol2
4306 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4308 if test x
${enable_threads} = x
; then
4309 enable_threads
=$have_pthread_h
4310 if test x
${enable_threads} = x
; then
4311 enable_threads
=$have_thread_h
4314 if test x
${enable_threads} = xyes
; then
4315 if test x
${have_pthread_h} = xyes
; then
4318 thread_file
='solaris'
4322 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4323 xm_file
="xm-alloca.h ${xm_file}"
4324 xm_defines
="USG POSIX"
4325 tm_file
=i386
/sysv5.h
4326 if test x
$stabs = xyes
4328 tm_file
="${tm_file} dbx.h"
4330 tmake_file
=i386
/t-crtpic
4332 extra_parts
="crtbegin.o crtend.o"
4333 if test x
$enable_threads = xyes
; then
4337 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4338 xm_file
="xm-alloca.h ${xm_file}"
4339 xm_defines
="USG POSIX SMALL_ARG_MAX"
4340 tm_file
=i386
/sysv4.h
4341 if test x
$stabs = xyes
4343 tm_file
="${tm_file} dbx.h"
4345 tmake_file
=i386
/t-crtpic
4347 extra_parts
="crtbegin.o crtend.o"
4349 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4350 xm_file
="xm-alloca.h ${xm_file}"
4351 xm_defines
="USG POSIX"
4353 tmake_file
="i386/t-crtpic i386/t-udk"
4355 extra_parts
="crtbegin.o crtend.o"
4356 install_headers_dir
=install-headers-cpio
4358 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4360 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4361 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4362 if test x
$stabs = xyes
4364 tm_file
=i386
/osf1elfgdb.h
4366 tm_file
=i386
/osf1elf.h
4368 tmake_file
=i386
/t-osf1elf
4369 xmake_file
=i386
/x-osf1elf
4370 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4372 i
[34567]86-*-sysv*) # Intel 80386's running system V
4373 xm_defines
="USG SVR3"
4374 xmake_file
=i386
/x-sysv3
4375 if test x
$gas = xyes
4377 if test x
$stabs = xyes
4379 tm_file
=i386
/svr3dbx.h
4380 tmake_file
=i386
/t-svr3dbx
4381 extra_parts
="svr3.ifile svr3z.rfile"
4383 tm_file
=i386
/svr3gas.h
4384 extra_parts
="crtbegin.o crtend.o"
4385 tmake_file
=i386
/t-crtstuff
4388 tm_file
=i386
/sysv3.h
4389 extra_parts
="crtbegin.o crtend.o"
4390 tmake_file
=i386
/t-crtstuff
4393 i386-
*-vsta) # Intel 80386's running VSTa kernel
4394 xm_file
="${xm_file} i386/xm-vsta.h"
4396 tmake_file
=i386
/t-vsta
4397 xmake_file
=i386
/x-vsta
4400 xm_file
="${xm_file} i386/xm-cygwin.h"
4401 tmake_file
=i386
/t-cygwin
4402 tm_file
=i386
/win32.h
4403 xmake_file
=i386
/x-cygwin
4405 if test x
$enable_threads = xyes
; then
4410 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4411 xm_file
="${xm_file} i386/xm-cygwin.h"
4412 tmake_file
=i386
/t-cygwin
4413 tm_file
=i386
/cygwin.h
4414 xmake_file
=i386
/x-cygwin
4416 if test x
$enable_threads = xyes
; then
4421 i
[34567]86-*-mingw32*)
4422 tm_file
=i386
/mingw32.h
4423 xm_file
="${xm_file} i386/xm-mingw32.h"
4424 tmake_file
="i386/t-cygwin i386/t-mingw32"
4426 xmake_file
=i386
/x-cygwin
4427 if test x
$enable_threads = xyes
; then
4434 *minwg32crt
* |
*mingw32
*)
4435 tm_file
="${tm_file} i386/crtdll.h"
4441 xm_file
="${xm_file} i386/xm-uwin.h"
4442 xm_defines
="USG NO_STAB_H"
4443 tmake_file
="i386/t-cygwin i386/t-uwin"
4445 xmake_file
=i386
/x-cygwin
4446 if test x
$enable_threads = xyes
; then
4451 i
[34567]86-*-interix*)
4452 tm_file
="i386/i386-interix.h interix.h"
4453 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4455 tmake_file
="i386/t-interix"
4456 extra_objs
=interix.o
4457 xmake_file
=x-interix
4458 if test x
$enable_threads = xyes
; then
4461 if test x
$stabs = xyes
; then
4462 tm_file
="${tm_file} dbxcoff.h"
4465 i
[34567]86-*-winnt3*)
4466 tm_file
=i386
/win-nt.h
4467 out_file
=i386
/i386.c
4468 xm_file
="xm-winnt.h ${xm_file}"
4469 xmake_file
=winnt
/x-winnt
4470 tmake_file
=i386
/t-winnt
4471 extra_host_objs
="winnt.o oldnames.o"
4472 extra_gcc_objs
="spawnv.o oldnames.o"
4473 if test x
$gnu_ld != xyes
4475 extra_programs
=ld.exe
4477 if test x
$enable_threads = xyes
; then
4481 i
[34567]86-dg-dgux*)
4482 xm_file
="xm-alloca.h ${xm_file}"
4483 xm_defines
="USG POSIX"
4484 out_file
=i386
/dgux.c
4486 tmake_file
=i386
/t-dgux
4487 xmake_file
=i386
/x-dgux
4488 install_headers_dir
=install-headers-cpio
4490 i860-alliant-
*) # Alliant FX/2800
4491 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4492 xm_file
="${xm_file}"
4493 xmake_file
=i860
/x-fx2800
4494 tmake_file
=i860
/t-fx2800
4495 extra_parts
="crtbegin.o crtend.o"
4498 tm_file
="${tm_file} i860/bsd.h"
4499 if test x
$gas = xyes
4501 tm_file
="${tm_file} i860/bsd-gas.h"
4506 tm_file
="${tm_file} i860/mach.h"
4507 tmake_file
=t-libc-ok
4509 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4510 tm_file
="${tm_file} svr3.h i860/paragon.h"
4511 xm_defines
="USG SVR3"
4515 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4516 xm_defines
="USG SVR3"
4517 xmake_file
=i860
/x-sysv3
4518 extra_parts
="crtbegin.o crtend.o"
4521 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4522 xm_defines
="USG SVR3"
4523 xmake_file
=i860
/x-sysv4
4525 extra_parts
="crtbegin.o crtend.o"
4527 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4528 tm_file
="${tm_file} i960/vx960.h"
4529 tmake_file
=i960
/t-vxworks960
4531 thread_file
='vxworks'
4533 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4534 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4535 tmake_file
=i960
/t-vxworks960
4537 thread_file
='vxworks'
4540 tm_file
="${tm_file} i960/vx960.h"
4541 tmake_file
=i960
/t-vxworks960
4543 thread_file
='vxworks'
4546 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4547 tmake_file
=i960
/t-960bare
4551 tmake_file
="i960/t-960bare t-rtems"
4552 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4555 i960-
*-*) # Default i960 environment.
4560 tmake_file
="ia64/t-ia64"
4561 target_cpu_default
="0"
4562 if test x
$gas = xyes
4564 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4566 if test x
$gnu_ld = xyes
4568 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4572 tm_file
=ia64
/linux.h
4573 tmake_file
="t-linux ia64/t-ia64"
4574 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4575 if test x
$enable_threads = xyes
; then
4580 extra_parts
="crtinit.o crtfini.o"
4582 m68000-convergent-sysv
*)
4584 xm_file
="m68k/xm-3b1.h ${xm_file}"
4587 extra_headers
=math-68881.h
4589 m68000-hp-bsd
*) # HP 9000/200 running BSD
4590 tm_file
=m68k
/hp2bsd.h
4591 xmake_file
=m68k
/x-hp2bsd
4593 extra_headers
=math-68881.h
4595 m68000-hp-hpux
*) # HP 9000 series 300
4596 xm_file
="xm-alloca.h ${xm_file}"
4598 if test x
$gas = xyes
4600 xmake_file
=m68k
/x-hp320g
4601 tm_file
=m68k
/hp310g.h
4603 xmake_file
=m68k
/x-hp320
4604 tm_file
=m68k
/hp310.h
4606 install_headers_dir
=install-headers-cpio
4608 extra_headers
=math-68881.h
4613 extra_headers
=math-68881.h
4616 tm_file
=m68k
/sun2o4.h
4618 extra_headers
=math-68881.h
4621 xm_file
="m68k/xm-3b1.h ${xm_file}"
4623 if test x
$gas = xyes
4630 extra_headers
=math-68881.h
4632 m68k-apple-aux
*) # Apple Macintosh running A/UX
4633 xm_defines
="USG AUX"
4634 tmake_file
=m68k
/t-aux
4635 install_headers_dir
=install-headers-cpio
4636 extra_headers
=math-68881.h
4637 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4639 if test "$gnu_ld" = yes
4641 tm_file
="${tm_file} m68k/auxgld.h"
4643 tm_file
="${tm_file} m68k/auxld.h"
4645 if test "$gas" = yes
4647 tm_file
="${tm_file} m68k/auxgas.h"
4649 tm_file
="${tm_file} m68k/auxas.h"
4651 tm_file
="${tm_file} m68k/a-ux.h"
4655 tm_file
=m68k
/apollo68.h
4656 xmake_file
=m68k
/x-apollo68
4658 extra_headers
=math-68881.h
4661 m68k-altos-sysv
*) # Altos 3068
4662 if test x
$gas = xyes
4664 tm_file
=m68k
/altos3068.h
4667 echo "The Altos is supported only with the GNU assembler" 1>&2
4670 extra_headers
=math-68881.h
4672 m68k-bull-sysv
*) # Bull DPX/2
4673 if test x
$gas = xyes
4675 if test x
$stabs = xyes
4677 tm_file
=m68k
/dpx2cdbx.h
4679 tm_file
=m68k
/dpx2g.h
4684 xm_file
="xm-alloca.h ${xm_file}"
4686 xmake_file
=m68k
/x-dpx2
4688 extra_headers
=math-68881.h
4690 m68k-atari-sysv4
*) # Atari variant of V.4.
4691 tm_file
=m68k
/atari.h
4692 xm_file
="xm-alloca.h ${xm_file}"
4693 xm_defines
="USG FULL_PROTOTYPES"
4695 extra_parts
="crtbegin.o crtend.o"
4696 extra_headers
=math-68881.h
4699 m68k-motorola-sysv
*)
4700 tm_file
=m68k
/mot3300.h
4701 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4702 if test x
$gas = xyes
4704 xmake_file
=m68k
/x-mot3300-gas
4705 if test x
$gnu_ld = xyes
4707 tmake_file
=m68k
/t-mot3300-gald
4709 tmake_file
=m68k
/t-mot3300-gas
4713 xmake_file
=m68k
/x-mot3300
4714 if test x
$gnu_ld = xyes
4716 tmake_file
=m68k
/t-mot3300-gld
4718 tmake_file
=m68k
/t-mot3300
4722 gdb_needs_out_file_path
=yes
4723 extra_parts
="crt0.o mcrt0.o"
4724 extra_headers
=math-68881.h
4727 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4728 tm_file
=m68k
/tower-as.h
4729 xm_defines
="USG SVR3"
4730 xmake_file
=m68k
/x-tower
4731 extra_parts
="crtbegin.o crtend.o"
4732 extra_headers
=math-68881.h
4735 tm_file
=m68k
/plexus.h
4736 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4739 extra_headers
=math-68881.h
4743 xm_file
="xm-alloca.h ${xm_file}"
4745 extra_headers
=math-68881.h
4748 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4749 xm_defines
="USG unos"
4750 xmake_file
=m68k
/x-crds
4753 extra_headers
=math-68881.h
4755 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4757 xm_file
="xm-alloca.h ${xm_file}"
4758 xm_defines
="USG FULL_PROTOTYPES"
4759 xmake_file
=m68k
/x-amix
4761 extra_parts
="crtbegin.o crtend.o"
4762 extra_headers
=math-68881.h
4766 tm_file
=m68k
/ccur-GAS.h
4767 xmake_file
=m68k
/x-ccur
4768 extra_headers
=math-68881.h
4772 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4773 tm_file
=m68k
/hp3bsd44.h
4774 xmake_file
=m68k
/x-hp3bsd44
4776 extra_headers
=math-68881.h
4779 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4780 tm_file
=m68k
/hp3bsd.h
4782 extra_headers
=math-68881.h
4786 if test x
$with_fp = xno
4788 tm_file
=m68k
/isi-nfp.h
4794 extra_headers
=math-68881.h
4796 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4797 xm_file
="xm-alloca.h ${xm_file}"
4799 if test x
$gas = xyes
4801 xmake_file
=m68k
/x-hp320g
4802 tm_file
=m68k
/hp320g.h
4804 xmake_file
=m68k
/x-hp320
4805 tm_file
=m68k
/hpux7.h
4807 install_headers_dir
=install-headers-cpio
4809 extra_headers
=math-68881.h
4812 m68k-hp-hpux
*) # HP 9000 series 300
4813 xm_file
="xm-alloca.h ${xm_file}"
4815 if test x
$gas = xyes
4817 xmake_file
=m68k
/x-hp320g
4818 tm_file
=m68k
/hp320g.h
4820 xmake_file
=m68k
/x-hp320
4821 tm_file
=m68k
/hp320.h
4823 install_headers_dir
=install-headers-cpio
4825 extra_headers
=math-68881.h
4829 tm_file
=m68k
/sun3mach.h
4831 extra_headers
=math-68881.h
4835 if test x
$gas = xyes
4837 tm_file
=m68k
/news3gas.h
4839 tm_file
=m68k
/news3.h
4842 extra_headers
=math-68881.h
4845 m68k-sony-bsd
* | m68k-sony-newsos
*)
4846 if test x
$gas = xyes
4848 tm_file
=m68k
/newsgas.h
4853 extra_headers
=math-68881.h
4856 m68k-next-nextstep2
*)
4857 tm_file
=m68k
/next21.h
4858 xm_file
="m68k/xm-next.h ${xm_file}"
4859 tmake_file
=m68k
/t-next
4860 xmake_file
=m68k
/x-next
4861 extra_objs
=nextstep.o
4862 extra_headers
=math-68881.h
4866 m68k-next-nextstep
[34]*)
4868 xm_file
="m68k/xm-next.h ${xm_file}"
4869 tmake_file
=m68k
/t-next
4870 xmake_file
=m68k
/x-next
4871 extra_objs
=nextstep.o
4872 extra_parts
="crtbegin.o crtend.o"
4873 extra_headers
=math-68881.h
4875 if test x
$enable_threads = xyes
; then
4880 if test x
$with_fp = xno
4882 tm_file
=m68k
/sun3n3.h
4884 tm_file
=m68k
/sun3o3.h
4888 extra_headers
=math-68881.h
4890 m68k-sun-sunos
*) # For SunOS 4 (the default).
4891 if test x
$with_fp = xno
4893 tm_file
=m68k
/sun3n.h
4899 extra_headers
=math-68881.h
4902 tm_file
=m68k
/vxm68k.h
4903 tmake_file
=m68k
/t-vxworks68
4904 extra_headers
=math-68881.h
4905 thread_file
='vxworks'
4909 tmake_file
=m68k
/t-m68kbare
4910 tm_file
="m68k/m68k-aout.h libgloss.h"
4911 extra_headers
=math-68881.h
4915 tmake_file
=m68k
/t-m68kbare
4916 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4917 extra_headers
=math-68881.h
4920 m68020-
*-elf* | m68k-
*-elf*)
4921 tm_file
="m68k/m68020-elf.h"
4922 xm_file
=m68k
/xm-m68kv.h
4923 tmake_file
=m68k
/t-m68kelf
4924 header_files
=math-68881.h
4927 if test x
$gas = xyes
4931 tm_file
=m68k
/lynx-ng.h
4933 xm_file
=m68k
/xm-lynx.h
4935 tmake_file
=m68k
/t-lynx
4936 extra_headers
=math-68881.h
4940 tm_file
=m68k
/netbsd.h
4947 # we need collect2 until our bug is fixed...
4950 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4951 xm_file
="xm-alloca.h ${xm_file}"
4953 xmake_file
=m68k
/x-m68kv
4954 extra_parts
="crtbegin.o crtend.o"
4955 extra_headers
=math-68881.h
4958 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4959 tm_file
=m68k
/m68kv4.h
4960 xm_file
="xm-alloca.h ${xm_file}"
4963 extra_parts
="crtbegin.o crtend.o"
4964 extra_headers
=math-68881.h
4967 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4970 tm_file
=m68k
/linux-aout.h
4971 tmake_file
="t-linux-aout m68k/t-linux-aout"
4972 extra_headers
=math-68881.h
4976 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4977 # with ELF format using the
4978 # GNU/Linux C library 5
4980 tm_file
=m68k
/linux.h
4981 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4982 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4983 extra_headers
=math-68881.h
4987 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4988 # with ELF format using glibc 2
4989 # aka the GNU/Linux C library 6.
4991 tm_file
=m68k
/linux.h
4992 tmake_file
="t-linux m68k/t-linux"
4993 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4994 extra_headers
=math-68881.h
4997 if test x
$enable_threads = xyes
; then
5002 tmake_file
=m68k
/t-m68kbare
5003 tm_file
=m68k
/m68k-psos.h
5004 extra_headers
=math-68881.h
5008 tmake_file
="m68k/t-m68kbare t-rtems"
5009 tm_file
=m68k
/rtems.h
5010 extra_headers
=math-68881.h
5013 m68k-
*-rtemself*|m68k-
*-rtems*)
5014 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5015 tm_file
=m68k
/rtemself.h
5016 extra_headers
=math-68881.h
5022 tm_file
=m88k
/dguxbcs.h
5023 tmake_file
=m88k
/t-dguxbcs
5027 tmake_file
=m88k
/t-dgux
5030 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5031 xmake_file
=m88k
/x-dgux
5032 if test x
$gas = xyes
5034 tmake_file
=m88k
/t-dgux-gas
5037 m88k-dolphin-sysv3
*)
5038 tm_file
=m88k
/dolph.h
5039 extra_parts
="crtbegin.o crtend.o"
5040 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5041 xmake_file
=m88k
/x-dolph
5042 if test x
$gas = xyes
5044 tmake_file
=m88k
/t-m88k-gas
5047 m88k-tektronix-sysv3
)
5048 tm_file
=m88k
/tekXD88.h
5049 extra_parts
="crtbegin.o crtend.o"
5050 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5051 xmake_file
=m88k
/x-tekXD88
5052 if test x
$gas = xyes
5054 tmake_file
=m88k
/t-m88k-gas
5058 tm_file
=m88k
/m88k-aout.h
5061 tm_file
=m88k
/m88k-coff.h
5062 tmake_file
=m88k
/t-bug
5066 extra_parts
="crtbegin.o crtend.o"
5067 if test x
$gas = xyes
5069 tmake_file
=m88k
/t-luna-gas
5071 tmake_file
=m88k
/t-luna
5075 tmake_file
="${tmake_file} m88k/t-luna-gas"
5078 tm_file
=m88k
/sysv3.h
5079 extra_parts
="crtbegin.o crtend.o"
5080 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5081 xmake_file
=m88k
/x-sysv3
5082 if test x
$gas = xyes
5084 tmake_file
=m88k
/t-m88k-gas
5088 tm_file
=m88k
/sysv4.h
5089 extra_parts
="crtbegin.o crtend.o"
5090 xmake_file
=m88k
/x-sysv4
5091 tmake_file
=m88k
/t-sysv4
5094 tm_file
=mcore
/mcore-elf.h
5095 tmake_file
=mcore
/t-mcore
5098 tm_file
=mcore
/mcore-pe.h
5099 tmake_file
=mcore
/t-mcore-pe
5101 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5102 if test "x$gnu_ld" = xyes
5104 tm_file
="mips/iris6.h mips/iris6gld.h"
5106 tm_file
=mips
/iris6.h
5108 tmake_file
=mips
/t-iris6
5109 xm_file
=mips
/xm-iris6.h
5110 xmake_file
=mips
/x-iris6
5111 # if test x$enable_threads = xyes; then
5112 # thread_file='irix'
5116 tm_file
="mips/elf.h mips/vxworks.h"
5117 tmake_file
=mips
/t-ecoff
5120 extra_parts
="crtbegin.o crtend.o"
5121 thread_file
='vxworks'
5123 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5124 tm_file
="mips/iris6.h mips/cross64.h"
5126 xm_file
="mips/xm-iris5.h"
5127 xmake_file
=mips
/x-iris
5128 tmake_file
=mips
/t-cross64
5129 # See comment in mips/iris[56].h files.
5131 # if test x$enable_threads = xyes; then
5132 # thread_file='irix'
5136 if test x
$gas = xyes
5138 if test x
$stabs = xyes
5140 tm_file
=mips
/iris5gdb.h
5142 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5145 tm_file
=mips
/sni-svr4.h
5148 xmake_file
=mips
/x-sni-svr4
5149 tmake_file
=mips
/t-mips-gas
5150 if test x
$gnu_ld != xyes
5155 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5156 if test x
$gas = xyes
5158 tm_file
="mips/iris5.h mips/iris5gas.h"
5159 if test x
$stabs = xyes
5161 tm_file
="${tm_file} dbx.h"
5164 tm_file
=mips
/iris5.h
5167 xm_file
="mips/xm-iris5.h"
5168 xmake_file
=mips
/x-iris
5169 # mips-tfile doesn't work yet
5170 tmake_file
=mips
/t-mips-gas
5171 # See comment in mips/iris5.h file.
5173 # if test x$enable_threads = xyes; then
5174 # thread_file='irix'
5177 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5178 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5179 if test x
$stabs = xyes
; then
5180 tm_file
="${tm_file} dbx.h"
5183 xmake_file
=mips
/x-iris
5184 if test x
$gas = xyes
5186 tmake_file
=mips
/t-mips-gas
5188 extra_passes
="mips-tfile mips-tdump"
5190 if test x
$gnu_ld != xyes
5194 # if test x$enable_threads = xyes; then
5195 # thread_file='irix'
5198 mips-sgi-irix4
*) # Mostly like a MIPS.
5199 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5200 if test x
$stabs = xyes
; then
5201 tm_file
="${tm_file} dbx.h"
5204 xmake_file
=mips
/x-iris
5205 if test x
$gas = xyes
5207 tmake_file
=mips
/t-mips-gas
5209 extra_passes
="mips-tfile mips-tdump"
5211 if test x
$gnu_ld != xyes
5215 # if test x$enable_threads = xyes; then
5216 # thread_file='irix'
5219 mips-sgi-
*) # Mostly like a MIPS.
5220 tm_file
="mips/iris3.h ${tm_file}"
5221 if test x
$stabs = xyes
; then
5222 tm_file
="${tm_file} dbx.h"
5225 xmake_file
=mips
/x-iris3
5226 if test x
$gas = xyes
5228 tmake_file
=mips
/t-mips-gas
5230 extra_passes
="mips-tfile mips-tdump"
5232 if test x
$gnu_ld != xyes
5237 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5238 tm_file
="mips/osfrose.h ${tm_file}"
5239 xmake_file
=mips
/x-osfrose
5240 tmake_file
=mips
/t-osfrose
5241 extra_objs
=halfpic.o
5244 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5245 tm_file
=mips
/dec-osf1.h
5246 if test x
$stabs = xyes
; then
5247 tm_file
="${tm_file} dbx.h"
5249 xmake_file
=mips
/x-dec-osf1
5250 if test x
$gas = xyes
5252 tmake_file
=mips
/t-mips-gas
5254 tmake_file
=mips
/t-ultrix
5255 extra_passes
="mips-tfile mips-tdump"
5257 if test x
$gnu_ld != xyes
5262 mips-dec-bsd
*) # Decstation running 4.4 BSD
5263 tm_file
=mips
/dec-bsd.h
5264 if test x
$gas = xyes
5266 tmake_file
=mips
/t-mips-gas
5268 tmake_file
=mips
/t-ultrix
5269 extra_passes
="mips-tfile mips-tdump"
5271 if test x
$gnu_ld != xyes
5276 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5277 tm_file
=mips
/netbsd.h
5278 # On NetBSD, the headers are already okay, except for math.h.
5281 mips
*-*-linux*) # Linux MIPS, either endian.
5284 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5285 *) tm_file
="mips/elf.h mips/linux.h" ;;
5287 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5290 if test x
$enable_threads = xyes
; then
5294 mips
*el-
*-openbsd*) # mips little endian
5295 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5297 mips
*-*-openbsd*) # mips big endian
5298 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5299 tm_file
="mips/openbsd-be.h ${tm_file}"
5301 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5302 tm_file
="mips/news4.h ${tm_file}"
5303 if test x
$stabs = xyes
; then
5304 tm_file
="${tm_file} dbx.h"
5306 if test x
$gas = xyes
5308 tmake_file
=mips
/t-mips-gas
5310 extra_passes
="mips-tfile mips-tdump"
5312 if test x
$gnu_ld != xyes
5316 xmake_file
=mips
/x-sony
5318 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5319 # That is based on svr4.
5320 # t-svr4 is not right because this system doesn't use ELF.
5321 tm_file
="mips/news5.h ${tm_file}"
5322 if test x
$stabs = xyes
; then
5323 tm_file
="${tm_file} dbx.h"
5326 if test x
$gas = xyes
5328 tmake_file
=mips
/t-mips-gas
5330 extra_passes
="mips-tfile mips-tdump"
5332 if test x
$gnu_ld != xyes
5337 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5338 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5339 if test x
$stabs = xyes
; then
5340 tm_file
="${tm_file} dbx.h"
5343 xmake_file
=mips
/x-sysv
5344 if test x
$gas = xyes
5346 tmake_file
=mips
/t-mips-gas
5347 extra_parts
="crtbegin.o crtend.o"
5349 tmake_file
=mips
/t-mips
5350 extra_passes
="mips-tfile mips-tdump"
5352 if test x
$gnu_ld != xyes
5357 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5358 tm_file
="mips/ultrix.h ${tm_file}"
5359 if test x
$stabs = xyes
; then
5360 tm_file
="${tm_file} dbx.h"
5362 xmake_file
=mips
/x-ultrix
5363 if test x
$gas = xyes
5365 tmake_file
=mips
/t-mips-gas
5367 tmake_file
=mips
/t-ultrix
5368 extra_passes
="mips-tfile mips-tdump"
5370 if test x
$gnu_ld != xyes
5375 mips-
*-riscos[56789]bsd
*)
5376 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5377 if test x
$stabs = xyes
; then
5378 tm_file
="${tm_file} dbx.h"
5380 if test x
$gas = xyes
5382 tmake_file
=mips
/t-bsd-gas
5384 tmake_file
=mips
/t-bsd
5385 extra_passes
="mips-tfile mips-tdump"
5387 if test x
$gnu_ld != xyes
5392 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5393 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5394 if test x
$stabs = xyes
; then
5395 tm_file
="${tm_file} dbx.h"
5397 if test x
$gas = xyes
5399 tmake_file
=mips
/t-bsd-gas
5401 tmake_file
=mips
/t-bsd
5402 extra_passes
="mips-tfile mips-tdump"
5404 if test x
$gnu_ld != xyes
5409 mips-
*-riscos[56789]sysv4
*)
5410 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5411 if test x
$stabs = xyes
; then
5412 tm_file
="${tm_file} dbx.h"
5414 xmake_file
=mips
/x-sysv
5415 if test x
$gas = xyes
5417 tmake_file
=mips
/t-svr4-gas
5419 tmake_file
=mips
/t-svr4
5420 extra_passes
="mips-tfile mips-tdump"
5422 if test x
$gnu_ld != xyes
5427 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5428 tm_file
="mips/svr4-4.h ${tm_file}"
5429 if test x
$stabs = xyes
; then
5430 tm_file
="${tm_file} dbx.h"
5433 xmake_file
=mips
/x-sysv
5434 if test x
$gas = xyes
5436 tmake_file
=mips
/t-svr4-gas
5438 tmake_file
=mips
/t-svr4
5439 extra_passes
="mips-tfile mips-tdump"
5441 if test x
$gnu_ld != xyes
5446 mips-
*-riscos[56789]sysv
*)
5447 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5448 if test x
$stabs = xyes
; then
5449 tm_file
="${tm_file} dbx.h"
5452 xmake_file
=mips
/x-sysv
5453 if test x
$gas = xyes
5455 tmake_file
=mips
/t-svr3-gas
5457 tmake_file
=mips
/t-svr3
5458 extra_passes
="mips-tfile mips-tdump"
5460 if test x
$gnu_ld != xyes
5465 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5466 tm_file
="mips/svr3-4.h ${tm_file}"
5467 if test x
$stabs = xyes
; then
5468 tm_file
="${tm_file} dbx.h"
5471 xmake_file
=mips
/x-sysv
5472 if test x
$gas = xyes
5474 tmake_file
=mips
/t-svr3-gas
5476 tmake_file
=mips
/t-svr3
5477 extra_passes
="mips-tfile mips-tdump"
5479 if test x
$gnu_ld != xyes
5484 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5485 tm_file
=mips
/mips-5.h
5486 if test x
$stabs = xyes
; then
5487 tm_file
="${tm_file} dbx.h"
5489 if test x
$gas = xyes
5491 tmake_file
=mips
/t-mips-gas
5493 extra_passes
="mips-tfile mips-tdump"
5495 if test x
$gnu_ld != xyes
5503 tm_file
=mips
/ecoffl.h
5504 if test x
$stabs = xyes
; then
5505 tm_file
="${tm_file} dbx.h"
5507 tmake_file
=mips
/t-ecoff
5510 tm_file
="gofast.h mips/ecoff.h"
5511 if test x
$stabs = xyes
; then
5512 tm_file
="${tm_file} dbx.h"
5514 tmake_file
=mips
/t-ecoff
5517 tm_file
="mips/elfl.h"
5518 tmake_file
=mips
/t-elf
5521 tm_file
="mips/elf.h"
5522 tmake_file
=mips
/t-elf
5525 tm_file
="mips/elfl64.h"
5526 tmake_file
=mips
/t-elf
5528 mips64orionel-
*-elf*)
5529 tm_file
="mips/elforion.h mips/elfl64.h"
5530 tmake_file
=mips
/t-elf
5533 tm_file
="mips/elf64.h"
5534 tmake_file
=mips
/t-elf
5537 tm_file
="mips/elforion.h mips/elf64.h"
5538 tmake_file
=mips
/t-elf
5540 mips64orion-
*-rtems*)
5541 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5542 tmake_file
="mips/t-elf t-rtems"
5545 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5546 tmake_file
=mips
/t-r3900
5549 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5550 tmake_file
=mips
/t-r3900
5552 mips-
*-*) # Default MIPS RISC-OS 4.0.
5553 if test x
$stabs = xyes
; then
5554 tm_file
="${tm_file} dbx.h"
5556 if test x
$gas = xyes
5558 tmake_file
=mips
/t-mips-gas
5560 extra_passes
="mips-tfile mips-tdump"
5562 if test x
$gnu_ld != xyes
5570 tm_file
="mn10200/mn10200.h"
5571 if test x
$stabs = xyes
5573 tm_file
="${tm_file} dbx.h"
5579 tm_file
="mn10300/mn10300.h"
5580 if test x
$stabs = xyes
5582 tm_file
="${tm_file} dbx.h"
5587 tm_file
=ns32k
/encore.h
5591 tm_file
=ns32k
/sequent.h
5595 tm_file
=ns32k
/tek6100.h
5599 tm_file
=ns32k
/tek6200.h
5602 # This has not been updated to GCC 2.
5605 # xmake_file=ns32k/x-genix
5606 # tm_file=ns32k/genix.h
5610 tm_file
=ns32k
/merlin.h
5614 tm_file
=ns32k
/pc532-mach.h
5618 tm_file
=ns32k
/pc532-min.h
5619 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5624 tm_file
=ns32k
/netbsd.h
5625 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5626 # On NetBSD, the headers are already okay, except for math.h.
5631 tm_file
="${tm_file} pdp11/2bsd.h"
5640 # This has not been updated to GCC 2.
5643 # xmake_file=pyr/x-pyr
5648 tm_file
="svr4.h pj/linux.h ${tm_file}"
5653 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5660 xmake_file
=romp
/x-mach
5667 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5671 tm_file
=rs6000
/beos.h
5672 xm_file
=rs6000
/xm-beos.h
5673 tmake_file
=rs6000
/t-beos
5674 xmake_file
=rs6000
/x-beos
5677 tm_file
=rs6000
/sysv4.h
5678 xm_file
="rs6000/xm-sysv4.h"
5679 xm_defines
="USG POSIX"
5680 extra_headers
=ppc-asm.h
5681 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5682 xmake_file
=rs6000
/x-sysv4
5685 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5686 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5687 extra_headers
=ppc-asm.h
5690 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5691 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5692 extra_headers
=ppc-asm.h
5695 tm_file
="rs6000/sysv4.h"
5696 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5697 extra_headers
=ppc-asm.h
5700 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5701 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5702 extra_headers
=ppc-asm.h
5705 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5706 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5707 extra_headers
=ppc-asm.h
5709 powerpc-
*-linux-gnulibc1)
5710 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5711 xm_file
=rs6000
/xm-sysv4.h
5712 out_file
=rs6000
/rs6000.c
5713 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5715 extra_headers
=ppc-asm.h
5716 if test x
$enable_threads = xyes
; then
5720 powerpc-
*-linux-gnu*)
5721 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5722 xm_file
="rs6000/xm-sysv4.h"
5723 xm_defines
="USG ${xm_defines}"
5724 out_file
=rs6000
/rs6000.c
5725 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5727 extra_headers
=ppc-asm.h
5728 if test x
$enable_threads = xyes
; then
5732 powerpc-wrs-vxworks
*)
5734 xm_file
="rs6000/xm-sysv4.h"
5735 xm_defines
="USG POSIX"
5736 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5737 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5738 extra_headers
=ppc-asm.h
5739 thread_file
='vxworks'
5741 powerpcle-wrs-vxworks
*)
5743 xm_file
="rs6000/xm-sysv4.h"
5744 xm_defines
="USG POSIX"
5745 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5746 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5747 extra_headers
=ppc-asm.h
5748 thread_file
='vxworks'
5751 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5752 xm_file
="rs6000/xm-sysv4.h"
5753 xm_defines
="USG POSIX"
5754 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5755 xmake_file
=rs6000
/x-sysv4
5756 extra_headers
=ppc-asm.h
5759 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5760 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5761 extra_headers
=ppc-asm.h
5763 powerpcle-
*-eabisim*)
5764 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5765 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5766 extra_headers
=ppc-asm.h
5769 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5770 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5771 extra_headers
=ppc-asm.h
5773 powerpcle-
*-solaris2*)
5774 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5775 xm_file
="rs6000/xm-sysv4.h"
5776 xm_defines
="USG POSIX"
5777 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5778 xmake_file
=rs6000
/x-sysv4
5779 extra_headers
=ppc-asm.h
5781 rs6000-ibm-aix3.
[01]*)
5782 tm_file
=rs6000
/aix31.h
5783 xmake_file
=rs6000
/x-aix31
5787 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5788 tm_file
=rs6000
/aix3newas.h
5789 if test x
$host != x
$target
5791 tmake_file
=rs6000
/t-xnewas
5793 tmake_file
=rs6000
/t-newas
5798 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5799 tm_file
=rs6000
/aix41.h
5800 if test x
$host != x
$target
5802 tmake_file
=rs6000
/t-xnewas
5804 tmake_file
=rs6000
/t-newas
5806 if test "$gnu_ld" = yes
5808 xmake_file
=rs6000
/x-aix41-gld
5810 tmake_file
="rs6000/t-newas rs6000/t-aix41"
5812 xmake_file
=rs6000
/x-aix41
5816 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5817 tm_file
=rs6000
/aix43.h
5818 tmake_file
=rs6000
/t-aix43
5819 xmake_file
=rs6000
/x-aix41
5823 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5824 tm_file
=rs6000
/aix43.h
5825 tmake_file
=rs6000
/t-aix43
5826 xmake_file
=rs6000
/x-aix41
5839 tm_file
=rs6000
/mach.h
5840 xm_file
="${xm_file} rs6000/xm-mach.h"
5841 xmake_file
=rs6000
/x-mach
5845 tm_file
=rs6000
/lynx.h
5846 xm_file
=rs6000
/xm-lynx.h
5847 tmake_file
=rs6000
/t-rs6000
5848 xmake_file
=rs6000
/x-lynx
5856 tmake_file
="sh/t-sh t-rtems"
5857 tm_file
=sh
/rtemself.h
5861 tmake_file
="sh/t-sh t-rtems"
5870 xm_file
="xm-alloca.h ${xm_file}"
5873 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5874 tm_file
=sparc
/vxsparc.h
5875 tmake_file
=sparc
/t-vxsparc
5877 thread_file
='vxworks'
5880 tmake_file
=sparc
/t-sparcbare
5881 tm_file
="sparc/aout.h libgloss.h"
5884 tm_file
=sparc
/netbsd.h
5889 # we need collect2 until our bug is fixed...
5897 tmake_file
=sparc
/t-elf
5898 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5902 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5903 xm_file
="${xm_file} sparc/xm-linux.h"
5904 tm_file
=sparc
/linux-aout.h
5908 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5909 xm_file
="${xm_file} sparc/xm-linux.h"
5911 tm_file
=sparc
/linux.h
5912 tmake_file
="t-linux t-linux-gnulibc1"
5913 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5917 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5918 xm_file
="${xm_file} sparc/xm-linux.h"
5920 tm_file
=sparc
/linux.h
5921 tmake_file
="t-linux"
5922 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5924 if test x
$enable_threads = xyes
; then
5930 if test x
$gas = xyes
5932 tm_file
=sparc
/lynx.h
5934 tm_file
=sparc
/lynx-ng.h
5936 xm_file
=sparc
/xm-lynx.h
5937 tmake_file
=sparc
/t-sunos41
5941 tmake_file
="sparc/t-sparcbare t-rtems"
5942 tm_file
=sparc
/rtems.h
5944 sparc-
*-rtems*|sparc-
*-rtemself*)
5945 tm_file
="sparc/rtemself.h"
5946 tmake_file
="sparc/t-elf t-rtems"
5947 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5951 sparcv9-
*-solaris2*)
5952 if test x
$gnu_ld = xyes
5954 tm_file
=sparc
/sol2-64.h
5956 tm_file
=sparc
/sol2-sld-64.h
5958 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5959 xm_defines
="USG POSIX"
5960 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5961 xmake_file
=sparc
/x-sysv4
5962 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5964 if test x
${enable_threads} = x
; then
5965 enable_threads
=$have_pthread_h
5966 if test x
${enable_threads} = x
; then
5967 enable_threads
=$have_thread_h
5970 if test x
${enable_threads} = xyes
; then
5971 if test x
${have_pthread_h} = xyes
; then
5974 thread_file
='solaris'
5978 sparc-hal-solaris2
*)
5979 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
5980 xm_defines
="USG POSIX"
5981 tm_file
="sparc/sol2.h sparc/hal.h"
5982 tmake_file
="sparc/t-halos sparc/t-sol2"
5983 xmake_file
=sparc
/x-sysv4
5984 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5993 thread_file
='solaris'
5996 if test x
$gnu_ld = xyes
5998 tm_file
=sparc
/sol2.h
6000 tm_file
=sparc
/sol2-sld.h
6002 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6003 xm_defines
="USG POSIX"
6004 tmake_file
=sparc
/t-sol2
6005 xmake_file
=sparc
/x-sysv4
6006 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6008 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6010 if test x
$gnu_ld = xyes
6012 tm_file
=sparc
/sol2-64.h
6014 tm_file
=sparc
/sol2-sld-64.h
6016 tmake_file
="$tmake_file sparc/t-sol2-64"
6027 if test x
${enable_threads} = x
; then
6028 enable_threads
=$have_pthread_h
6029 if test x
${enable_threads} = x
; then
6030 enable_threads
=$have_thread_h
6033 if test x
${enable_threads} = xyes
; then
6034 if test x
${have_pthread_h} = xyes
; then
6037 thread_file
='solaris'
6042 tm_file
=sparc
/sunos4.h
6043 tmake_file
=sparc
/t-sunos40
6047 tm_file
=sparc
/sunos4.h
6048 tmake_file
=sparc
/t-sunos41
6050 if test x
$gas = xyes
; then
6051 tm_file
="${tm_file} sparc/sun4gas.h"
6055 tm_file
=sparc
/sun4o3.h
6059 tm_file
=sparc
/sysv4.h
6060 xm_file
="sparc/xm-sysv4.h"
6061 xm_defines
="USG POSIX"
6063 xmake_file
=sparc
/x-sysv4
6064 extra_parts
="crtbegin.o crtend.o"
6067 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6068 xm_defines
="USG POSIX"
6069 tm_file
=sparc
/vxsim.h
6070 tmake_file
=sparc
/t-vxsparc
6071 xmake_file
=sparc
/x-sysv4
6074 tm_file
="sparc/splet.h libgloss.h"
6075 tmake_file
=sparc
/t-splet
6078 tm_file
="sparc/litecoff.h libgloss.h"
6079 tmake_file
=sparc
/t-sparclite
6082 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6083 tmake_file
=sparc
/t-sparclite
6086 tm_file
="sparc/liteelf.h"
6087 tmake_file
=sparc
/t-sparclite
6088 extra_parts
="crtbegin.o crtend.o"
6091 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6092 tmake_file
=sparc
/t-sp86x
6095 tm_file
="sparc/sp86x-elf.h"
6096 tmake_file
=sparc
/t-sp86x
6097 extra_parts
="crtbegin.o crtend.o"
6100 tmake_file
=sparc
/t-sp64
6101 tm_file
=sparc
/sp64-aout.h
6104 tmake_file
=sparc
/t-sp64
6105 tm_file
=sparc
/sp64-elf.h
6106 extra_parts
="crtbegin.o crtend.o"
6108 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6109 tmake_file
="t-linux sparc/t-linux64"
6110 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6111 tm_file
=sparc
/linux64.h
6113 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6115 if test x
$enable_threads = xyes
; then
6120 # This hasn't been upgraded to GCC 2.
6121 # tahoe-harris-*) # Harris tahoe, using COFF.
6122 # tm_file=tahoe/harris.h
6124 # tahoe-*-bsd*) # tahoe running BSD
6128 { echo "configure: error:
6129 *** The Thumb targets have been depreciated. The equivalent
6130 *** ARM based toolchain can now generated Thumb instructions
6131 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6133 # This hasn't been upgraded to GCC 2.
6140 tm_file
="v850/rtems.h"
6141 xm_file
="v850/xm-v850.h"
6142 tmake_file
="v850/t-v850 t-rtems"
6143 if test x
$stabs = xyes
6145 tm_file
="${tm_file} dbx.h"
6150 target_cpu_default
="TARGET_CPU_generic"
6152 tm_file
="v850/v850.h"
6153 xm_file
="v850/xm-v850.h"
6154 tmake_file
=v850
/t-v850
6155 if test x
$stabs = xyes
6157 tm_file
="${tm_file} dbx.h"
6161 vax-
*-bsd*) # vaxen running BSD
6165 vax-
*-sysv*) # vaxen running system V
6166 tm_file
="${tm_file} vax/vaxv.h"
6171 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6177 tmake_file
="${tmake_file} vax/t-openbsd"
6179 vax-
*-ultrix*) # vaxen running ultrix
6180 tm_file
="${tm_file} vax/ultrix.h"
6184 vax-
*-vms*) # vaxen running VMS
6185 xm_file
=vax
/xm-vms.h
6189 vax-
*-*) # vax default entry
6193 xm_file
="${xm_file} xm-svr3"
6197 echo "Configuration $machine not supported" 1>&2
6204 ;; # Existing GNU/Linux systems do not use the GNU setup.
6206 # On the GNU system, the setup is just about the same on
6207 # each different CPU. The specific machines that GNU
6208 # supports are matched above and just set $cpu_type.
6209 xm_file
="xm-gnu.h ${xm_file}"
6210 tm_file
=${cpu_type}/gnu.h
6211 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6212 # GNU always uses ELF.
6214 # GNU tools are the only tools.
6217 xmake_file
=x-linux
# These details are the same as Linux.
6218 tmake_file
=t-gnu
# These are not.
6221 xmake_try_sysv
=x-sysv
6222 install_headers_dir
=install-headers-cpio
6225 install_headers_dir
=install-headers-cpio
6229 # Distinguish i[34567]86
6230 # Also, do not run mips-tfile on MIPS if using gas.
6231 # Process --with-cpu= for PowerPC/rs6000
6232 target_cpu_default2
=
6235 target_cpu_default2
=1
6238 case $target_alias in
6240 target_cpu_default2
=4
6243 target_cpu_default2
=2
6247 i686-
*-* | i786-
*-*)
6248 target_cpu_default2
=3
6253 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6256 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6259 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6262 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6265 target_cpu_default2
="MASK_CPU_EV5"
6269 if test x
$gas = xyes
6271 if test "$target_cpu_default2" = ""
6273 target_cpu_default2
="MASK_GAS"
6275 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6280 case "x$with_cpu" in
6283 target_cpu_default2
="TARGET_CPU_generic"
6286 # Distinguish cores, and major variants
6287 # arm7m doesn't exist, but D & I don't affect code
6288 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6289 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6290 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6291 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6292 target_cpu_default2
="TARGET_CPU_$with_cpu"
6296 echo "--with-cpu must be passed a value" 1>&2
6301 if test x
$pass2done = xyes
6303 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6310 mips
*-*-ecoff* | mips
*-*-elf*)
6311 if test x
$gas = xyes
6313 if test x
$gnu_ld = xyes
6315 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6317 target_cpu_default2
="MASK_GAS"
6322 if test x
$gas = xyes
6324 target_cpu_default2
="MASK_GAS"
6327 powerpc
*-*-* | rs6000-
*-*)
6328 case "x$with_cpu" in
6332 xcommon | xpower | xpower2 | xpowerpc | xrios \
6333 | xrios1 | xrios2 | xrsc | xrsc1 \
6334 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6335 | xec603e | x740 | x750 | x401 \
6336 | x403 | x505 | x801 | x821 | x823 | x860
)
6337 target_cpu_default2
="\"$with_cpu\""
6341 echo "--with-cpu must be passed a value" 1>&2
6346 if test x
$pass2done = xyes
6348 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6355 case ".$with_cpu" in
6357 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6359 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6360 target_cpu_default2
="TARGET_CPU_$with_cpu"
6363 if test x
$pass2done = xyes
6365 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6373 if test "$target_cpu_default2" != ""
6375 if test "$target_cpu_default" != ""
6377 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6379 target_cpu_default
=$target_cpu_default2
6383 # No need for collect2 if we have the GNU linker.
6384 # Actually, there is now; GNU ld doesn't handle the EH info or
6385 # collecting for shared libraries.
6392 # Save data on machine being used to compile GCC in build_xm_file.
6393 # Save data on host machine in vars host_xm_file and host_xmake_file.
6394 if test x
$pass1done = x
6396 if test x
"$xm_file" = x
6397 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6398 else build_xm_file
=$xm_file
6400 build_xm_defines
=$xm_defines
6401 build_install_headers_dir
=$install_headers_dir
6402 build_exeext
=$exeext
6405 if test x
$pass2done = x
6407 if test x
"$xm_file" = x
6408 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6409 else host_xm_file
=$xm_file
6411 host_xm_defines
=$xm_defines
6412 if test x
"$xmake_file" = x
6413 then xmake_file
=$cpu_type/x-
$cpu_type
6415 host_xmake_file
="$xmake_file"
6416 host_truncate_target
=$truncate_target
6417 host_extra_gcc_objs
=$extra_gcc_objs
6418 host_extra_objs
=$extra_host_objs
6425 extra_objs
="${host_extra_objs} ${extra_objs}"
6427 # Default the target-machine variables that were not explicitly set.
6428 if test x
"$tm_file" = x
6429 then tm_file
=$cpu_type/$cpu_type.h
; fi
6431 if test x
$extra_headers = x
6432 then extra_headers
=; fi
6434 if test x
"$xm_file" = x
6435 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6437 if test x
$md_file = x
6438 then md_file
=$cpu_type/$cpu_type.md
; fi
6440 if test x
$out_file = x
6441 then out_file
=$cpu_type/$cpu_type.c
; fi
6443 if test x
"$tmake_file" = x
6444 then tmake_file
=$cpu_type/t-
$cpu_type
6447 if test x
"$dwarf2" = xyes
6448 then tm_file
="$tm_file tm-dwarf2.h"
6451 if test x
$float_format = x
6452 then float_format
=i64
6455 if test $float_format = none
6456 then float_h_file
=Makefile.
in
6457 else float_h_file
=float-
$float_format.h
6460 # Handle cpp installation.
6461 if test x
$enable_cpp != xno
6463 tmake_file
="$tmake_file t-install-cpp"
6466 # Say what files are being used for the output code and MD file.
6467 echo "Using \`$srcdir/config/$out_file' to output insns."
6468 echo "Using \`$srcdir/config/$md_file' as machine description file."
6471 for f
in $tm_file; do
6474 if test $count = ax
; then
6475 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6477 echo "Using the following target machine macro files:"
6478 for f
in $tm_file; do
6479 echo " $srcdir/config/$f"
6484 for f
in $host_xm_file; do
6487 if test $count = ax
; then
6488 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6490 echo "Using the following host machine macro files:"
6491 for f
in $host_xm_file; do
6492 echo " $srcdir/config/$f"
6496 if test "$host_xm_file" != "$build_xm_file"; then
6498 for f
in $build_xm_file; do
6501 if test $count = ax
; then
6502 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6504 echo "Using the following build machine macro files:"
6505 for f
in $build_xm_file; do
6506 echo " $srcdir/config/$f"
6511 if test x
$thread_file = x
; then
6512 if test x
$target_thread_file != x
; then
6513 thread_file
=$target_thread_file
6515 thread_file
='single'
6519 # Set up the header files.
6520 # $links is the list of header files to create.
6521 # $vars is the list of shell variables with file names to include.
6522 # auto-host.h is the file containing items generated by autoconf and is
6523 # the first file included by config.h.
6525 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6527 # If host=build, it is correct to have hconfig include auto-host.h
6528 # as well. If host!=build, we are in error and need to do more
6529 # work to find out the build config parameters.
6530 if test x
$host = x
$build
6532 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6534 # We create a subdir, then run autoconf in the subdir.
6535 # To prevent recursion we set host and build for the new
6536 # invocation of configure to the build for this invocation
6543 /*) realsrcdir
=${srcdir};;
6544 *) realsrcdir
=..
/${srcdir};;
6546 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6547 --target=$target --host=$build --build=$build
6549 # We just finished tests for the build machine, so rename
6550 # the file auto-build.h in the gcc directory.
6551 mv auto-host.h ..
/auto-build.h
6554 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6557 xm_file
="gansidecl.h ${xm_file}"
6558 tm_file
="gansidecl.h ${tm_file}"
6560 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6561 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6562 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6565 if test -f config.status
; then mv -f config.status config.bak
; fi
6568 while test -n "$vars"
6570 set $vars; var
=$1; shift; vars
=$
*
6571 set $links; link
=$1; shift; links
=$
*
6572 set $defines; define
=$1; shift; defines
=$
*
6575 # Make sure the file is created, even if it is empty.
6578 # Define TARGET_CPU_DEFAULT if the system wants one.
6579 # This substitutes for lots of *.h files.
6580 if test "$target_cpu_default" != "" -a $link = tm.h
6582 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6585 for file in `eval echo '$'$var`; do
6590 echo '#ifdef IN_GCC' >>$link
6593 echo "#include \"$file\"" >>$link
6598 echo '#endif' >>$link
6603 for def
in `eval echo '$'$define`; do
6604 echo "#ifndef $def" >>$link
6605 echo "#define $def" >>$link
6606 echo "#endif" >>$link
6610 # Truncate the target if necessary
6611 if test x
$host_truncate_target != x
; then
6612 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6615 # Get the version trigger filename from the toplevel
6616 if test "${with_gcc_version_trigger+set}" = set; then
6617 gcc_version_trigger
=$with_gcc_version_trigger
6619 gcc_version_trigger
=${srcdir}/version.c
6621 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6623 # Internationalization
6625 VERSION
="$gcc_version"
6626 cat >> confdefs.h
<<EOF
6627 #define PACKAGE "$PACKAGE"
6630 cat >> confdefs.h
<<EOF
6631 #define VERSION "$VERSION"
6639 # NLS support is still experimental, so disable it by default for now.
6640 # Check whether --enable-nls or --disable-nls was given.
6641 if test "${enable_nls+set}" = set; then
6642 enableval
="$enable_nls"
6650 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6651 echo "configure:6652: checking for strerror in -lcposix" >&5
6652 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6656 ac_save_LIBS
="$LIBS"
6657 LIBS
="-lcposix $LIBS"
6658 cat > conftest.
$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6670 if { (eval echo configure
:6671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6672 eval "ac_cv_lib_$ac_lib_var=yes"
6674 echo "configure: failed program was:" >&5
6675 cat conftest.
$ac_ext >&5
6677 eval "ac_cv_lib_$ac_lib_var=no"
6680 LIBS
="$ac_save_LIBS"
6683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6684 echo "$ac_t""yes" 1>&6
6685 LIBS
="$LIBS -lcposix"
6687 echo "$ac_t""no" 1>&6
6692 echo $ac_n "checking for working const""... $ac_c" 1>&6
6693 echo "configure:6694: checking for working const" >&5
6694 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6697 cat > conftest.
$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6703 /* Ultrix mips cc rejects this. */
6704 typedef int charset[2]; const charset x;
6705 /* SunOS 4.1.1 cc rejects this. */
6706 char const *const *ccp;
6708 /* NEC SVR4.0.2 mips cc rejects this. */
6709 struct point {int x, y;};
6710 static struct point const zero = {0,0};
6711 /* AIX XL C 1.02.0.0 rejects this.
6712 It does not let you subtract one const X* pointer from another in an arm
6713 of an if-expression whose if-part is not a constant expression */
6714 const char *g = "string";
6715 ccp = &g + (g ? g-g : 0);
6716 /* HPUX 7.0 cc rejects these. */
6719 ccp = (char const *const *) p;
6720 { /* SCO 3.2v4 cc rejects this. */
6722 char const *s = 0 ? (char *) 0 : (char const *) 0;
6726 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6728 const int *foo = &x[0];
6731 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6732 typedef const int *iptr;
6736 { /* AIX XL C 1.02.0.0 rejects this saying
6737 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6738 struct s { int j; const int *ap[3]; };
6739 struct s *b; b->j = 5;
6741 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6747 if { (eval echo configure
:6748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6751 echo "configure: failed program was:" >&5
6752 cat conftest.
$ac_ext >&5
6759 echo "$ac_t""$ac_cv_c_const" 1>&6
6760 if test $ac_cv_c_const = no
; then
6761 cat >> confdefs.h
<<\EOF
6767 echo $ac_n "checking for inline""... $ac_c" 1>&6
6768 echo "configure:6769: checking for inline" >&5
6769 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6770 echo $ac_n "(cached) $ac_c" 1>&6
6773 for ac_kw
in inline __inline__ __inline
; do
6774 cat > conftest.
$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6782 if { (eval echo configure
:6783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6784 ac_cv_c_inline
=$ac_kw; break
6786 echo "configure: failed program was:" >&5
6787 cat conftest.
$ac_ext >&5
6794 echo "$ac_t""$ac_cv_c_inline" 1>&6
6795 case "$ac_cv_c_inline" in
6797 no
) cat >> confdefs.h
<<\EOF
6801 *) cat >> confdefs.h
<<EOF
6802 #define inline $ac_cv_c_inline
6807 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6808 echo "configure:6809: checking for off_t" >&5
6809 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6812 cat > conftest.
$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 #include <sys/types.h>
6821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6822 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6824 ac_cv_type_off_t
=yes
6832 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6833 if test $ac_cv_type_off_t = no
; then
6834 cat >> confdefs.h
<<\EOF
6840 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6841 echo "configure:6842: checking for size_t" >&5
6842 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6845 cat > conftest.
$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 #include <sys/types.h>
6854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6857 ac_cv_type_size_t
=yes
6860 ac_cv_type_size_t
=no
6865 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6866 if test $ac_cv_type_size_t = no
; then
6867 cat >> confdefs.h
<<\EOF
6868 #define size_t unsigned
6873 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6874 # for constant arguments. Useless!
6875 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6876 echo "configure:6877: checking for working alloca.h" >&5
6877 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6880 cat > conftest.
$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6885 char *p = alloca(2 * sizeof(int));
6888 if { (eval echo configure
:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6890 ac_cv_header_alloca_h
=yes
6892 echo "configure: failed program was:" >&5
6893 cat conftest.
$ac_ext >&5
6895 ac_cv_header_alloca_h
=no
6900 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6901 if test $ac_cv_header_alloca_h = yes; then
6902 cat >> confdefs.h
<<\EOF
6903 #define HAVE_ALLOCA_H 1
6908 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6909 echo "configure:6910: checking for alloca" >&5
6910 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6911 echo $ac_n "(cached) $ac_c" 1>&6
6913 cat > conftest.
$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6918 # define alloca __builtin_alloca
6921 # include <malloc.h>
6922 # define alloca _alloca
6925 # include <alloca.h>
6930 # ifndef alloca /* predefined by HP cc +Olibcalls */
6939 char *p = (char *) alloca(1);
6942 if { (eval echo configure
:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6944 ac_cv_func_alloca_works
=yes
6946 echo "configure: failed program was:" >&5
6947 cat conftest.
$ac_ext >&5
6949 ac_cv_func_alloca_works
=no
6954 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6955 if test $ac_cv_func_alloca_works = yes; then
6956 cat >> confdefs.h
<<\EOF
6957 #define HAVE_ALLOCA 1
6962 if test $ac_cv_func_alloca_works = no
; then
6963 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6964 # that cause trouble. Some versions do not even contain alloca or
6965 # contain a buggy version. If you still want to use their alloca,
6966 # use ar to extract alloca.o from them instead of compiling alloca.c.
6967 ALLOCA
=alloca.
${ac_objext}
6968 cat >> confdefs.h
<<\EOF
6973 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6974 echo "configure:6975: checking whether alloca needs Cray hooks" >&5
6975 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6978 cat > conftest.
$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6981 #if defined(CRAY) && ! defined(CRAY2)
6988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6989 egrep "webecray" >/dev
/null
2>&1; then
7000 echo "$ac_t""$ac_cv_os_cray" 1>&6
7001 if test $ac_cv_os_cray = yes; then
7002 for ac_func
in _getb67 GETB67 getb67
; do
7003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7004 echo "configure:7005: checking for $ac_func" >&5
7005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7008 cat > conftest.
$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func(); below. */
7014 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7021 /* The GNU C library defines this for functions which it implements
7022 to always fail with ENOSYS. Some functions are actually named
7023 something starting with __ and the normal name is an alias. */
7024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7032 if { (eval echo configure
:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7034 eval "ac_cv_func_$ac_func=yes"
7036 echo "configure: failed program was:" >&5
7037 cat conftest.
$ac_ext >&5
7039 eval "ac_cv_func_$ac_func=no"
7044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7046 cat >> confdefs.h
<<EOF
7047 #define CRAY_STACKSEG_END $ac_func
7052 echo "$ac_t""no" 1>&6
7058 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7059 echo "configure:7060: checking stack direction for C alloca" >&5
7060 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7061 echo $ac_n "(cached) $ac_c" 1>&6
7063 if test "$cross_compiling" = yes; then
7064 ac_cv_c_stack_direction
=0
7066 cat > conftest.
$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7069 find_stack_direction ()
7071 static char *addr = 0;
7076 return find_stack_direction ();
7079 return (&dummy > addr) ? 1 : -1;
7083 exit (find_stack_direction() < 0);
7086 if { (eval echo configure
:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7088 ac_cv_c_stack_direction
=1
7090 echo "configure: failed program was:" >&5
7091 cat conftest.
$ac_ext >&5
7093 ac_cv_c_stack_direction
=-1
7100 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7101 cat >> confdefs.h
<<EOF
7102 #define STACK_DIRECTION $ac_cv_c_stack_direction
7108 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7109 unistd.h sys
/param.h
7111 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7112 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7113 echo "configure:7114: checking for $ac_hdr" >&5
7114 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7115 echo $ac_n "(cached) $ac_c" 1>&6
7117 cat > conftest.
$ac_ext <<EOF
7118 #line 7119 "configure"
7119 #include "confdefs.h"
7122 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7123 { (eval echo configure
:7124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7124 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7125 if test -z "$ac_err"; then
7127 eval "ac_cv_header_$ac_safe=yes"
7130 echo "configure: failed program was:" >&5
7131 cat conftest.
$ac_ext >&5
7133 eval "ac_cv_header_$ac_safe=no"
7137 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7138 echo "$ac_t""yes" 1>&6
7139 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7140 cat >> confdefs.h
<<EOF
7141 #define $ac_tr_hdr 1
7145 echo "$ac_t""no" 1>&6
7149 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7150 strdup __argz_count __argz_stringify __argz_next
7152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7153 echo "configure:7154: checking for $ac_func" >&5
7154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7155 echo $ac_n "(cached) $ac_c" 1>&6
7157 cat > conftest.
$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7160 /* System header to define __stub macros and hopefully few prototypes,
7161 which can conflict with char $ac_func(); below. */
7163 /* Override any gcc2 internal prototype to avoid an error. */
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7170 /* The GNU C library defines this for functions which it implements
7171 to always fail with ENOSYS. Some functions are actually named
7172 something starting with __ and the normal name is an alias. */
7173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7181 if { (eval echo configure
:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7183 eval "ac_cv_func_$ac_func=yes"
7185 echo "configure: failed program was:" >&5
7186 cat conftest.
$ac_ext >&5
7188 eval "ac_cv_func_$ac_func=no"
7193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7194 echo "$ac_t""yes" 1>&6
7195 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7196 cat >> confdefs.h
<<EOF
7197 #define $ac_tr_func 1
7201 echo "$ac_t""no" 1>&6
7206 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7207 for ac_func
in stpcpy
7209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7210 echo "configure:7211: checking for $ac_func" >&5
7211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 cat > conftest.
$ac_ext <<EOF
7215 #line 7216 "configure"
7216 #include "confdefs.h"
7217 /* System header to define __stub macros and hopefully few prototypes,
7218 which can conflict with char $ac_func(); below. */
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7227 /* The GNU C library defines this for functions which it implements
7228 to always fail with ENOSYS. Some functions are actually named
7229 something starting with __ and the normal name is an alias. */
7230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7238 if { (eval echo configure
:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7240 eval "ac_cv_func_$ac_func=yes"
7242 echo "configure: failed program was:" >&5
7243 cat conftest.
$ac_ext >&5
7245 eval "ac_cv_func_$ac_func=no"
7250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7251 echo "$ac_t""yes" 1>&6
7252 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7253 cat >> confdefs.h
<<EOF
7254 #define $ac_tr_func 1
7258 echo "$ac_t""no" 1>&6
7263 if test "${ac_cv_func_stpcpy}" = "yes"; then
7264 cat >> confdefs.h
<<\EOF
7265 #define HAVE_STPCPY 1
7270 if test $ac_cv_header_locale_h = yes; then
7271 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7272 echo "configure:7273: checking for LC_MESSAGES" >&5
7273 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 cat > conftest.
$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7284 if { (eval echo configure
:7285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7286 am_cv_val_LC_MESSAGES
=yes
7288 echo "configure: failed program was:" >&5
7289 cat conftest.
$ac_ext >&5
7291 am_cv_val_LC_MESSAGES
=no
7296 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7297 if test $am_cv_val_LC_MESSAGES = yes; then
7298 cat >> confdefs.h
<<\EOF
7299 #define HAVE_LC_MESSAGES 1
7304 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7305 echo "configure:7306: checking whether NLS is requested" >&5
7306 # Check whether --enable-nls or --disable-nls was given.
7307 if test "${enable_nls+set}" = set; then
7308 enableval
="$enable_nls"
7314 echo "$ac_t""$USE_NLS" 1>&6
7317 USE_INCLUDED_LIBINTL
=no
7319 if test "$USE_NLS" = "yes"; then
7320 cat >> confdefs.h
<<\EOF
7321 #define ENABLE_NLS 1
7324 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7325 echo "configure:7326: checking whether included gettext is requested" >&5
7326 # Check whether --with-included-gettext or --without-included-gettext was given.
7327 if test "${with_included_gettext+set}" = set; then
7328 withval
="$with_included_gettext"
7329 nls_cv_force_use_gnu_gettext
=$withval
7331 nls_cv_force_use_gnu_gettext
=no
7334 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7336 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7337 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7339 nls_cv_header_libgt
=
7342 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7343 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7344 echo "configure:7345: checking for libintl.h" >&5
7345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 cat > conftest.
$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 #include <libintl.h>
7353 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7354 { (eval echo configure
:7355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7355 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7356 if test -z "$ac_err"; then
7358 eval "ac_cv_header_$ac_safe=yes"
7361 echo "configure: failed program was:" >&5
7362 cat conftest.
$ac_ext >&5
7364 eval "ac_cv_header_$ac_safe=no"
7368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7369 echo "$ac_t""yes" 1>&6
7370 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7371 echo "configure:7372: checking for gettext in libc" >&5
7372 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7373 echo $ac_n "(cached) $ac_c" 1>&6
7375 cat > conftest.
$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7378 #include <libintl.h>
7380 return (int) gettext ("")
7383 if { (eval echo configure
:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7385 gt_cv_func_gettext_libc
=yes
7387 echo "configure: failed program was:" >&5
7388 cat conftest.
$ac_ext >&5
7390 gt_cv_func_gettext_libc
=no
7395 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7397 if test "$gt_cv_func_gettext_libc" != "yes"; then
7398 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7399 echo "configure:7400: checking for bindtextdomain in -lintl" >&5
7400 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7404 ac_save_LIBS
="$LIBS"
7406 cat > conftest.
$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7412 char bindtextdomain();
7418 if { (eval echo configure
:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7420 eval "ac_cv_lib_$ac_lib_var=yes"
7422 echo "configure: failed program was:" >&5
7423 cat conftest.
$ac_ext >&5
7425 eval "ac_cv_lib_$ac_lib_var=no"
7428 LIBS
="$ac_save_LIBS"
7431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7433 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7434 echo "configure:7435: checking for gettext in libintl" >&5
7435 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7439 echo "configure:7440: checking for gettext in -lintl" >&5
7440 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7444 ac_save_LIBS
="$LIBS"
7446 cat > conftest.
$ac_ext <<EOF
7447 #line 7448 "configure"
7448 #include "confdefs.h"
7449 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7458 if { (eval echo configure
:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7460 eval "ac_cv_lib_$ac_lib_var=yes"
7462 echo "configure: failed program was:" >&5
7463 cat conftest.
$ac_ext >&5
7465 eval "ac_cv_lib_$ac_lib_var=no"
7468 LIBS
="$ac_save_LIBS"
7471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7472 echo "$ac_t""yes" 1>&6
7473 gt_cv_func_gettext_libintl
=yes
7475 echo "$ac_t""no" 1>&6
7476 gt_cv_func_gettext_libintl
=no
7481 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7483 echo "$ac_t""no" 1>&6
7488 if test "$gt_cv_func_gettext_libc" = "yes" \
7489 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7490 cat >> confdefs.h
<<\EOF
7491 #define HAVE_GETTEXT 1
7494 # Extract the first word of "msgfmt", so it can be a program name with args.
7495 set dummy msgfmt
; ac_word
=$2
7496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7497 echo "configure:7498: checking for $ac_word" >&5
7498 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7503 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7506 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7507 for ac_dir
in $PATH; do
7508 test -z "$ac_dir" && ac_dir
=.
7509 if test -f $ac_dir/$ac_word; then
7510 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7511 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7517 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7521 MSGFMT
="$ac_cv_path_MSGFMT"
7522 if test -n "$MSGFMT"; then
7523 echo "$ac_t""$MSGFMT" 1>&6
7525 echo "$ac_t""no" 1>&6
7527 if test "$MSGFMT" != "no"; then
7528 for ac_func
in dcgettext
7530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7531 echo "configure:7532: checking for $ac_func" >&5
7532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7535 cat > conftest.
$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7538 /* System header to define __stub macros and hopefully few prototypes,
7539 which can conflict with char $ac_func(); below. */
7541 /* Override any gcc2 internal prototype to avoid an error. */
7542 /* We use char because int might match the return type of a gcc2
7543 builtin and then its argument prototype would still apply. */
7548 /* The GNU C library defines this for functions which it implements
7549 to always fail with ENOSYS. Some functions are actually named
7550 something starting with __ and the normal name is an alias. */
7551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7559 if { (eval echo configure
:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7561 eval "ac_cv_func_$ac_func=yes"
7563 echo "configure: failed program was:" >&5
7564 cat conftest.
$ac_ext >&5
7566 eval "ac_cv_func_$ac_func=no"
7571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7572 echo "$ac_t""yes" 1>&6
7573 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7574 cat >> confdefs.h
<<EOF
7575 #define $ac_tr_func 1
7579 echo "$ac_t""no" 1>&6
7583 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7584 set dummy gmsgfmt
; ac_word
=$2
7585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7586 echo "configure:7587: checking for $ac_word" >&5
7587 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7588 echo $ac_n "(cached) $ac_c" 1>&6
7592 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7595 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7598 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7600 for ac_dir
in $ac_dummy; do
7601 test -z "$ac_dir" && ac_dir
=.
7602 if test -f $ac_dir/$ac_word; then
7603 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7608 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7612 GMSGFMT
="$ac_cv_path_GMSGFMT"
7613 if test -n "$GMSGFMT"; then
7614 echo "$ac_t""$GMSGFMT" 1>&6
7616 echo "$ac_t""no" 1>&6
7619 # Extract the first word of "xgettext", so it can be a program name with args.
7620 set dummy xgettext
; ac_word
=$2
7621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7622 echo "configure:7623: checking for $ac_word" >&5
7623 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7628 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7631 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7632 for ac_dir
in $PATH; do
7633 test -z "$ac_dir" && ac_dir
=.
7634 if test -f $ac_dir/$ac_word; then
7635 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7636 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7642 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7646 XGETTEXT
="$ac_cv_path_XGETTEXT"
7647 if test -n "$XGETTEXT"; then
7648 echo "$ac_t""$XGETTEXT" 1>&6
7650 echo "$ac_t""no" 1>&6
7653 cat > conftest.
$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7658 extern int _nl_msg_cat_cntr;
7659 return _nl_msg_cat_cntr
7662 if { (eval echo configure
:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7667 echo "configure: failed program was:" >&5
7668 cat conftest.
$ac_ext >&5
7679 echo "$ac_t""no" 1>&6
7683 if test "$CATOBJEXT" = "NONE"; then
7684 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7685 echo "configure:7686: checking whether catgets can be used" >&5
7686 # Check whether --with-catgets or --without-catgets was given.
7687 if test "${with_catgets+set}" = set; then
7688 withval
="$with_catgets"
7689 nls_cv_use_catgets
=$withval
7691 nls_cv_use_catgets
=no
7694 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7696 if test "$nls_cv_use_catgets" = "yes"; then
7697 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7698 echo "configure:7699: checking for main in -li" >&5
7699 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 ac_save_LIBS
="$LIBS"
7705 cat > conftest.
$ac_ext <<EOF
7706 #line 7707 "configure"
7707 #include "confdefs.h"
7713 if { (eval echo configure
:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7715 eval "ac_cv_lib_$ac_lib_var=yes"
7717 echo "configure: failed program was:" >&5
7718 cat conftest.
$ac_ext >&5
7720 eval "ac_cv_lib_$ac_lib_var=no"
7723 LIBS
="$ac_save_LIBS"
7726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7728 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7729 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7730 cat >> confdefs.h
<<EOF
7731 #define $ac_tr_lib 1
7737 echo "$ac_t""no" 1>&6
7740 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7741 echo "configure:7742: checking for catgets" >&5
7742 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7745 cat > conftest.
$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* System header to define __stub macros and hopefully few prototypes,
7749 which can conflict with char catgets(); below. */
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7758 /* The GNU C library defines this for functions which it implements
7759 to always fail with ENOSYS. Some functions are actually named
7760 something starting with __ and the normal name is an alias. */
7761 #if defined (__stub_catgets) || defined (__stub___catgets)
7769 if { (eval echo configure
:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7771 eval "ac_cv_func_catgets=yes"
7773 echo "configure: failed program was:" >&5
7774 cat conftest.
$ac_ext >&5
7776 eval "ac_cv_func_catgets=no"
7781 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7782 echo "$ac_t""yes" 1>&6
7783 cat >> confdefs.h
<<\EOF
7784 #define HAVE_CATGETS 1
7787 INTLOBJS
="\$(CATOBJS)"
7788 # Extract the first word of "gencat", so it can be a program name with args.
7789 set dummy gencat
; ac_word
=$2
7790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7791 echo "configure:7792: checking for $ac_word" >&5
7792 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7797 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7800 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7803 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7805 for ac_dir
in $ac_dummy; do
7806 test -z "$ac_dir" && ac_dir
=.
7807 if test -f $ac_dir/$ac_word; then
7808 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7813 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7817 GENCAT
="$ac_cv_path_GENCAT"
7818 if test -n "$GENCAT"; then
7819 echo "$ac_t""$GENCAT" 1>&6
7821 echo "$ac_t""no" 1>&6
7823 if test "$GENCAT" != "no"; then
7824 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7825 set dummy gmsgfmt
; ac_word
=$2
7826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_word" >&5
7828 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7833 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7836 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7839 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7841 for ac_dir
in $ac_dummy; do
7842 test -z "$ac_dir" && ac_dir
=.
7843 if test -f $ac_dir/$ac_word; then
7844 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7849 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7853 GMSGFMT
="$ac_cv_path_GMSGFMT"
7854 if test -n "$GMSGFMT"; then
7855 echo "$ac_t""$GMSGFMT" 1>&6
7857 echo "$ac_t""no" 1>&6
7860 if test "$GMSGFMT" = "no"; then
7861 # Extract the first word of "msgfmt", so it can be a program name with args.
7862 set dummy msgfmt
; ac_word
=$2
7863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7864 echo "configure:7865: checking for $ac_word" >&5
7865 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
7870 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7874 for ac_dir
in $PATH; do
7875 test -z "$ac_dir" && ac_dir
=.
7876 if test -f $ac_dir/$ac_word; then
7877 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7878 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7884 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7888 GMSGFMT
="$ac_cv_path_GMSGFMT"
7889 if test -n "$GMSGFMT"; then
7890 echo "$ac_t""$GMSGFMT" 1>&6
7892 echo "$ac_t""no" 1>&6
7896 # Extract the first word of "xgettext", so it can be a program name with args.
7897 set dummy xgettext
; ac_word
=$2
7898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_word" >&5
7900 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7905 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7908 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7909 for ac_dir
in $PATH; do
7910 test -z "$ac_dir" && ac_dir
=.
7911 if test -f $ac_dir/$ac_word; then
7912 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7913 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7919 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7923 XGETTEXT
="$ac_cv_path_XGETTEXT"
7924 if test -n "$XGETTEXT"; then
7925 echo "$ac_t""$XGETTEXT" 1>&6
7927 echo "$ac_t""no" 1>&6
7930 USE_INCLUDED_LIBINTL
=yes
7934 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7936 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7937 nls_cv_header_intl
=intl
/libintl.h
7938 nls_cv_header_libgt
=intl
/libgettext.h
7941 echo "$ac_t""no" 1>&6
7947 if test "$CATOBJEXT" = "NONE"; then
7948 nls_cv_use_gnu_gettext
=yes
7952 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7953 INTLOBJS
="\$(GETTOBJS)"
7954 # Extract the first word of "msgfmt", so it can be a program name with args.
7955 set dummy msgfmt
; ac_word
=$2
7956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7957 echo "configure:7958: checking for $ac_word" >&5
7958 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7963 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7966 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7967 for ac_dir
in $PATH; do
7968 test -z "$ac_dir" && ac_dir
=.
7969 if test -f $ac_dir/$ac_word; then
7970 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7971 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7977 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
7981 MSGFMT
="$ac_cv_path_MSGFMT"
7982 if test -n "$MSGFMT"; then
7983 echo "$ac_t""$MSGFMT" 1>&6
7985 echo "$ac_t""no" 1>&6
7988 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7989 set dummy gmsgfmt
; ac_word
=$2
7990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7991 echo "configure:7992: checking for $ac_word" >&5
7992 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7993 echo $ac_n "(cached) $ac_c" 1>&6
7997 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8000 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8003 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8005 for ac_dir
in $ac_dummy; do
8006 test -z "$ac_dir" && ac_dir
=.
8007 if test -f $ac_dir/$ac_word; then
8008 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8013 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8017 GMSGFMT
="$ac_cv_path_GMSGFMT"
8018 if test -n "$GMSGFMT"; then
8019 echo "$ac_t""$GMSGFMT" 1>&6
8021 echo "$ac_t""no" 1>&6
8024 # Extract the first word of "xgettext", so it can be a program name with args.
8025 set dummy xgettext
; ac_word
=$2
8026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_word" >&5
8028 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8033 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8037 for ac_dir
in $PATH; do
8038 test -z "$ac_dir" && ac_dir
=.
8039 if test -f $ac_dir/$ac_word; then
8040 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8041 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8047 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8051 XGETTEXT
="$ac_cv_path_XGETTEXT"
8052 if test -n "$XGETTEXT"; then
8053 echo "$ac_t""$XGETTEXT" 1>&6
8055 echo "$ac_t""no" 1>&6
8059 USE_INCLUDED_LIBINTL
=yes
8063 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8065 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8066 nls_cv_header_intl
=intl
/libintl.h
8067 nls_cv_header_libgt
=intl
/libgettext.h
8070 if test "$XGETTEXT" != ":"; then
8071 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8074 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8079 # We need to process the po/ directory.
8083 nls_cv_header_intl
=intl
/libintl.h
8084 nls_cv_header_libgt
=intl
/libgettext.h
8090 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8091 # because some of the sources are only built for this goal.
8092 if test "$PACKAGE" = gettext; then
8094 USE_INCLUDED_LIBINTL
=yes
8097 for lang
in $ALL_LINGUAS; do
8098 GMOFILES
="$GMOFILES $lang.gmo"
8099 POFILES
="$POFILES $lang.po"
8115 if test "x$CATOBJEXT" != "x"; then
8116 if test "x$ALL_LINGUAS" = "x"; then
8119 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8120 echo "configure:8121: checking for catalogs to be installed" >&5
8122 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8123 case "$ALL_LINGUAS" in
8124 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8127 LINGUAS
=$NEW_LINGUAS
8128 echo "$ac_t""$LINGUAS" 1>&6
8131 if test -n "$LINGUAS"; then
8132 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8136 if test $ac_cv_header_locale_h = yes; then
8137 INCLUDE_LOCALE_H
="#include <locale.h>"
8140 /* The system does not provide the header <locale.h>. Take care yourself. */"
8144 test -d intl || mkdir intl
8145 if test "$CATOBJEXT" = ".cat"; then
8146 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8147 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8148 echo "configure:8149: checking for linux/version.h" >&5
8149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8152 cat > conftest.
$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8155 #include <linux/version.h>
8157 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8158 { (eval echo configure
:8159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8159 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8160 if test -z "$ac_err"; then
8162 eval "ac_cv_header_$ac_safe=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.
$ac_ext >&5
8168 eval "ac_cv_header_$ac_safe=no"
8172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8173 echo "$ac_t""yes" 1>&6
8176 echo "$ac_t""no" 1>&6
8181 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8183 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8184 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8186 if test "$PACKAGE" = "gettext"; then
8197 if test -n "$ac_aux_dir"; then
8198 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8200 if test -z "$MKINSTALLDIRS"; then
8201 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8208 test -d po || mkdir po
8209 if test "x$srcdir" != "x."; then
8210 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8211 posrcprefix
="$srcdir/"
8213 posrcprefix
="../$srcdir/"
8219 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8220 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8222 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8224 # Windows32 Registry support for specifying GCC installation paths.
8225 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8226 if test "${enable_win32_registry+set}" = set; then
8227 enableval
="$enable_win32_registry"
8232 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8233 echo "configure:8234: checking whether windows registry support is requested" >&5
8234 if test x
$enable_win32_registry != xno
; then
8235 cat >> confdefs.h
<<\EOF
8236 #define ENABLE_WIN32_REGISTRY 1
8239 echo "$ac_t""yes" 1>&6
8241 echo "$ac_t""no" 1>&6
8244 # Check if user specified a different registry key.
8245 case x
${enable_win32_registry} in
8248 gcc_cv_win32_registry_key
="$VERSION"
8251 # no registry lookup.
8252 gcc_cv_win32_registry_key
=''
8255 # user-specified key.
8256 gcc_cv_win32_registry_key
="$enable_win32_registry"
8260 if test x
$enable_win32_registry != xno
; then
8261 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8262 echo "configure:8263: checking registry key on windows hosts" >&5
8263 cat >> confdefs.h
<<EOF
8264 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8267 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8270 # Get an absolute path to the GCC top-level source directory
8276 # Conditionalize the makefile for this host machine.
8277 # Make-host contains the concatenation of all host makefile fragments
8278 # [there can be more than one]. This file is built by configure.frag.
8279 host_overrides
=Make-host
8280 dep_host_xmake_file
=
8281 for f
in ..
${host_xmake_file}
8283 if test -f ${srcdir}/config
/$f
8285 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8289 # Conditionalize the makefile for this target machine.
8290 # Make-target contains the concatenation of all host makefile fragments
8291 # [there can be more than one]. This file is built by configure.frag.
8292 target_overrides
=Make-target
8294 for f
in ..
${tmake_file}
8296 if test -f ${srcdir}/config
/$f
8298 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8302 # If the host doesn't support symlinks, modify CC in
8303 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8304 # Otherwise, we can use "CC=$(CC)".
8306 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8308 cc_set_by_configure
="\$(CC)"
8309 quoted_cc_set_by_configure
="\$(CC)"
8310 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8313 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8315 symbolic_link
="cp -p"
8319 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8320 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8321 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8325 out_object_file
=`basename $out_file .c`.o
8328 for f
in $tm_file; do
8331 tm_file_list
="${tm_file_list} $f" ;;
8332 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8337 for f
in $host_xm_file; do
8339 auto-host.h | gansidecl.h | hwint.h
)
8340 host_xm_file_list
="${host_xm_file_list} $f" ;;
8341 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8346 for f
in $build_xm_file; do
8348 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8349 build_xm_file_list
="${build_xm_file_list} $f" ;;
8350 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8354 # Define macro CROSS_COMPILE in compilation
8355 # if this is a cross-compiler.
8356 # Also use all.cross instead of all.internal
8357 # and add cross-make to Makefile.
8358 cross_overrides
="/dev/null"
8359 if test x
$host != x
$target
8361 cross_defines
="CROSS=-DCROSS_COMPILE"
8362 cross_overrides
="${topdir}/cross-make"
8365 # When building gcc with a cross-compiler, we need to fix a few things.
8366 # This must come after cross-make as we want all.build to override
8368 build_overrides
="/dev/null"
8369 if test x
$build != x
$host
8371 build_overrides
="${topdir}/build-make"
8374 # Expand extra_headers to include complete path.
8375 # This substitutes for lots of t-* files.
8377 if test "x$extra_headers" = x
8380 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8381 for file in $extra_headers;
8383 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8387 if test x
$use_collect2 = xno
; then
8391 # Add a definition of USE_COLLECT2 if system wants one.
8392 # Also tell toplev.c what to do.
8393 # This substitutes for lots of t-* files.
8394 if test x
$use_collect2 = x
8399 will_use_collect2
="collect2"
8400 maybe_use_collect2
="-DUSE_COLLECT2"
8404 # Set MD_DEPS if the real md file is in md.pre-cpp.
8405 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8406 # for line oriented comments, so we must always use a GNU cpp. If
8407 # building gcc with a cross compiler, use the cross compiler just
8408 # built. Otherwise, we can use the cpp just built.
8410 if test "x$md_cppflags" = x
8412 md_file_sub
=$srcdir/config
/$md_file
8417 # If we have gas in the build tree, make a link to it.
8418 if test -f ..
/gas
/Makefile
; then
8419 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8422 # If we have nm in the build tree, make a link to it.
8423 if test -f ..
/binutils
/Makefile
; then
8424 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8427 # If we have ld in the build tree, make a link to it.
8428 if test -f ..
/ld
/Makefile
; then
8429 # if test x$use_collect2 = x; then
8430 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8432 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8436 # Figure out what assembler alignment features are present.
8437 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8438 echo "configure:8439: checking assembler alignment features" >&5
8440 gcc_cv_as_alignment_features
=
8441 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8442 if test -x "$DEFAULT_ASSEMBLER"; then
8443 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8444 elif test -x "$AS"; then
8446 elif test -x as
$host_exeext; then
8447 # Build using assembler in the current directory.
8448 gcc_cv_as
=.
/as
$host_exeext
8449 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8450 # Single tree build which includes gas.
8451 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8453 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8454 if test x
$gcc_cv_gas_version != x
; then
8458 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8459 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8460 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8461 # Gas version 2.6 and later support for .balign and .p2align.
8462 # bytes to skip when using .p2align.
8463 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
8464 gcc_cv_as_alignment_features
=".balign and .p2align"
8465 cat >> confdefs.h
<<\EOF
8466 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8470 # Gas version 2.8 and later support specifying the maximum
8471 # bytes to skip when using .p2align.
8472 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
8473 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8474 cat >> confdefs.h
<<\EOF
8475 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8480 elif test x
$host = x
$target; then
8482 # Search the same directories that the installed compiler will
8483 # search. Else we may find the wrong assembler and lose. If we
8484 # do not find a suitable assembler binary, then try the user's
8487 # Also note we have to check MD_EXEC_PREFIX before checking the
8488 # user's path. Unfortunately, there is no good way to get at the
8489 # value of MD_EXEC_PREFIX here. So we do a brute force search
8490 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8491 # to be fixed as part of the make/configure rewrite too.
8493 if test "x$exec_prefix" = xNONE
; then
8494 if test "x$prefix" = xNONE
; then
8495 test_prefix
=/usr
/local
8500 test_prefix
=$exec_prefix
8503 # If the loop below does not find an assembler, then use whatever
8504 # one we can find in the users's path.
8508 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8509 $test_prefix/lib/gcc-lib/$target \
8510 /usr/lib/gcc/$target/$gcc_version \
8511 /usr/lib/gcc/$target \
8512 $test_prefix/$target/bin/$target/$gcc_version \
8513 $test_prefix/$target/bin \
8518 /bsd43/usr/lib/cmplrs/cc \
8519 /usr/cross64/usr/bin \
8520 /usr/lib/cmplrs/cc \
8521 /sysv/usr/lib/cmplrs/cc \
8522 /svr4/usr/lib/cmplrs/cc \
8525 for dir
in $test_dirs; do
8526 if test -f $dir/as
$host_exeext; then
8527 gcc_cv_as
=$dir/as
$host_exeext
8532 if test x
$gcc_cv_as != x
; then
8533 # Check if we have .balign and .p2align
8534 echo ".balign 4" > conftest.s
8535 echo ".p2align 2" >> conftest.s
8536 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8537 gcc_cv_as_alignment_features
=".balign and .p2align"
8538 cat >> confdefs.h
<<\EOF
8539 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8543 rm -f conftest.s conftest.o
8544 # Check if specifying the maximum bytes to skip when
8545 # using .p2align is supported.
8546 echo ".p2align 4,,7" > conftest.s
8547 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8548 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8549 cat >> confdefs.h
<<\EOF
8550 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8554 rm -f conftest.s conftest.o
8556 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8558 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8559 echo "configure:8560: checking assembler subsection support" >&5
8560 gcc_cv_as_subsections
=
8561 if test x
$gcc_cv_as != x
; then
8562 # Check if we have .subsection
8563 echo ".subsection 1" > conftest.s
8564 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8565 gcc_cv_as_subsections
=".subsection"
8566 if test -x nm
$host_exeext; then
8567 gcc_cv_nm
=.
/nm
$host_exeext
8568 elif test x
$host = x
$target; then
8570 gcc_cv_nm
=nm
$host_exeext
8572 if test x
$gcc_cv_nm != x
; then
8573 cat > conftest.s
<<EOF
8574 conftest_label1: .word 0
8576 conftest_label2: .word 0
8579 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8580 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8581 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8582 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8585 gcc_cv_as_subsections
="working .subsection -1"
8586 cat >> confdefs.h
<<\EOF
8587 #define HAVE_GAS_SUBSECTION_ORDERING 1
8594 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8596 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8598 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8599 echo "configure:8600: checking assembler weak support" >&5
8601 if test x
$gcc_cv_as != x
; then
8602 # Check if we have .weak
8603 echo " .weak foobar" > conftest.s
8604 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8605 cat >> confdefs.h
<<\EOF
8606 #define HAVE_GAS_WEAK 1
8609 gcc_cv_as_weak
="yes"
8611 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8613 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8615 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8616 echo "configure:8617: checking assembler hidden support" >&5
8618 if test x
$gcc_cv_as != x
; then
8619 # Check if we have .hidden
8620 echo " .hidden foobar" > conftest.s
8621 echo "foobar:" >> conftest.s
8622 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8623 cat >> confdefs.h
<<\EOF
8624 #define HAVE_GAS_HIDDEN 1
8627 gcc_cv_as_hidden
="yes"
8629 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8631 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8635 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8636 echo "configure:8637: checking assembler .register pseudo-op support" >&5
8637 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8641 gcc_cv_as_register_pseudo_op
=unknown
8642 if test x
$gcc_cv_as != x
; then
8643 # Check if we have .register
8644 echo ".register %g2, #scratch" > conftest.s
8645 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8646 gcc_cv_as_register_pseudo_op
=yes
8648 gcc_cv_as_register_pseudo_op
=no
8650 rm -f conftest.s conftest.o
8655 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8656 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8657 cat >> confdefs.h
<<\EOF
8658 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8665 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8666 echo "configure:8667: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8667 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8668 echo $ac_n "(cached) $ac_c" 1>&6
8671 if test -n "$gcc_cv_as"; then
8672 echo ".xword foo" > conftest.s
8673 gcc_cv_as_flags64
=no
8674 for flag
in "-xarch=v9" "-64 -Av9"; do
8675 if $gcc_cv_as $flag -o conftest.o conftest.s \
8676 > /dev
/null
2>&1; then
8677 gcc_cv_as_flags64
=$flag
8681 rm -f conftest.s conftest.o
8683 if test "$gas" = yes; then
8684 gcc_cv_as_flags64
="-64 -Av9"
8686 gcc_cv_as_flags64
="-xarch=v9"
8692 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8693 if test "x$gcc_cv_as_flags64" = xno
; then
8695 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8696 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8699 cat >> confdefs.h
<<EOF
8700 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8705 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8709 if test "x$gcc_cv_as_flags64" != xno
; then
8710 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8711 echo "configure:8712: checking for assembler offsetable %lo() support" >&5
8712 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8716 gcc_cv_as_offsetable_lo10
=unknown
8717 if test "x$gcc_cv_as" != x
; then
8718 # Check if assembler has offsetable %lo()
8719 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8720 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8721 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8723 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8724 > /dev
/null
2>&1; then
8725 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8726 gcc_cv_as_offsetable_lo10
=no
8728 gcc_cv_as_offsetable_lo10
=yes
8731 gcc_cv_as_offsetable_lo10
=no
8733 rm -f conftest.s conftest.o conftest1.s conftest1.o
8738 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8739 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8740 cat >> confdefs.h
<<\EOF
8741 #define HAVE_AS_OFFSETABLE_LO10 1
8749 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8750 echo "configure:8751: checking assembler instructions" >&5
8751 gcc_cv_as_instructions
=
8752 if test x
$gcc_cv_as != x
; then
8753 set "filds fists" "filds mem; fists mem"
8756 echo "$2" > conftest.s
8757 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8758 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8759 cat >> confdefs.h
<<EOF
8760 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8766 rm -f conftest.s conftest.o
8768 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8772 # Figure out what language subdirectories are present.
8773 # Look if the user specified --enable-languages="..."; if not, use
8774 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8776 if test x
"${enable_languages+set}" != xset
; then
8777 if test x
"${LANGUAGES+set}" = xset
; then
8778 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8780 enable_languages
=all
8784 for lang
in ${srcdir}/*/config-lang.
in ..
8788 # The odd quoting in the next line works around
8789 # an apparent bug in bash 1.12 on linux.
8790 ${srcdir}/[*]/config-lang.
in) ;;
8792 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8793 if test "x$lang_alias" = x
8795 echo "$lang doesn't set \$language." 1>&2
8798 if test x
"${enable_languages}" = xall
; then
8801 case "${enable_languages}" in
8802 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8810 if test x"${add_this_lang}" = xyes; then
8812 ${srcdir}/ada/config-lang.in)
8813 if test x$gnat = xyes ; then
8814 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8818 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8826 # Make gthr-default.h if we have a thread file.
8828 if test $thread_file != single; then
8829 rm -f gthr-default.h
8830 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8831 gthread_flags
=-DHAVE_GTHR_DEFAULT
8835 # Find out what GC implementation we want, or may, use.
8836 # Check whether --with-gc or --without-gc was given.
8837 if test "${with_gc+set}" = set; then
8844 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8848 if test $ac_cv_func_mmap_anywhere = yes \
8849 ||
test $ac_cv_func_valloc = yes; then
8857 echo "Using $GGC for garbage collection."
8859 # Build a new-abi (c++) system
8860 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
8861 if test "${enable_new_gxx_abi+set}" = set; then
8862 enableval
="$enable_new_gxx_abi"
8863 cat >> confdefs.h
<<\EOF
8864 #define ENABLE_NEW_GXX_ABI 1
8867 GXX_ABI_FLAG
='-fnew-abi'
8868 echo "Building a new-abi g++ compiler."
8874 # Build a new-libstdc++ system (ie libstdc++-v3)
8875 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
8876 echo "configure:8877: checking for libstdc++ to install" >&5
8877 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
8878 if test "${enable_libstdcxx_v3+set}" = set; then
8879 enableval
="$enable_libstdcxx_v3"
8880 enable_libstdcxx_v3
=yes
8882 enable_libstdcxx_v3
=no
8886 if test x
$enable_libstdcxx_v3 = xyes
; then
8887 echo "$ac_t""v3" 1>&6
8890 echo "$ac_t""v2" 1>&6
8893 cat >> confdefs.h
<<EOF
8894 #define ENABLE_STD_NAMESPACE $ac_esn
8898 # Make empty files to contain the specs and options for each language.
8899 # Then add #include lines to for a compiler that has specs and/or options.
8904 rm -f specs.h options.h gencheck.h
8905 touch specs.h options.h gencheck.h
8906 for subdir
in .
$subdirs
8908 if test -f $srcdir/$subdir/lang-specs.h
; then
8909 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8910 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8912 if test -f $srcdir/$subdir/lang-options.h
; then
8913 echo "#include \"$subdir/lang-options.h\"" >>options.h
8914 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8916 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8917 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8918 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8922 # These (without "all_") are set in each config-lang.in.
8923 # `language' must be a single word so is spelled singularly.
8929 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
8930 # List of language makefile fragments.
8935 # Add the language fragments.
8936 # Languages are added via two mechanisms. Some information must be
8937 # recorded in makefile variables, these are defined in config-lang.in.
8938 # We accumulate them and plug them into the main Makefile.
8939 # The other mechanism is a set of hooks for each of the main targets
8940 # like `clean', `install', etc.
8942 language_fragments
="Make-lang"
8943 language_hooks
="Make-hooks"
8946 for s
in ..
$subdirs
8958 .
${srcdir}/$s/config-lang.
in
8959 if test "x$language" = x
8961 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8964 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8965 all_languages
="$all_languages $language"
8966 if test "x$boot_language" = xyes
8968 all_boot_languages
="$all_boot_languages $language"
8970 all_compilers
="$all_compilers $compilers"
8971 all_stagestuff
="$all_stagestuff $stagestuff"
8972 all_diff_excludes
="$all_diff_excludes $diff_excludes"
8973 all_headers
="$all_headers $headers"
8974 all_outputs
="$all_outputs $outputs"
8975 if test x
$outputs = x
8977 oldstyle_subdirs
="$oldstyle_subdirs $s"
8979 all_lib2funcs
="$all_lib2funcs $lib2funcs"
8983 # Since we can't use `::' targets, we link each language in
8984 # with a set of hooks, reached indirectly via lang.${target}.
8988 target_list
="all.build all.cross start.encap rest.encap \
8990 install-normal install-common install-info install-man \
8992 mostlyclean clean distclean extraclean maintainer-clean \
8993 stage1 stage2 stage3 stage4"
8994 for t
in $target_list
8997 for lang
in ..
$all_languages
8999 if test $lang != ".."; then
9003 echo "lang.$t: $x" >> Make-hooks
9006 # If we're not building in srcdir, create .gdbinit.
9008 if test ! -f Makefile.
in; then
9009 echo "dir ." > .gdbinit
9010 echo "dir ${srcdir}" >> .gdbinit
9011 if test x
$gdb_needs_out_file_path = xyes
9013 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9015 if test "x$subdirs" != x
; then
9018 echo "dir ${srcdir}/$s" >> .gdbinit
9021 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9024 # Define variables host_canonical and build_canonical
9025 # because some Cygnus local changes in the Makefile depend on them.
9026 build_canonical
=${build}
9027 host_canonical
=${host}
9029 if test "${host}" != "${target}" ; then
9030 target_subdir
=${target}/
9036 # If this is using newlib, then define inhibit_libc in
9037 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9038 # libgcc.a, but that's OK because newib should have its own version of
9041 if test x
$with_newlib = xyes
; then
9042 inhibit_libc
=-Dinhibit_libc
9046 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9047 # absolute path for gcc_tooldir based on inserting the number of up-directory
9048 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9049 # $(libsubdir)/@(unlibsubdir) based path.
9050 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9051 # make and thus we'd get different behavior depending on where we built the
9053 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9054 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9056 # An explanation of the sed strings:
9057 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9058 # -e 's|/$||' match a trailing forward slash and eliminates it
9059 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9060 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9062 # (*) Note this pattern overwrites the first character of the string
9063 # with a forward slash if one is not already present. This is not a
9064 # problem because the exact names of the sub-directories concerned is
9065 # unimportant, just the number of them matters.
9067 # The practical upshot of these patterns is like this:
9069 # prefix exec_prefix result
9070 # ------ ----------- ------
9072 # /foo/ /foo/bar ../
9073 # /foo /foo/bar/ ../
9074 # /foo/ /foo/bar/ ../
9075 # /foo /foo/bar/ugg ../../
9078 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9083 # Nothing to do for FLOAT_H, float_format already handled.
9087 # Process the language and host/target makefile fragments.
9088 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9090 # Substitute configuration variables
9149 # Echo that links are built
9150 if test x
$host = x
$target
9158 if test x
$host != x
$build
9160 str3
=" on a $build system"
9163 if test "x$str2" != x ||
test "x$str3" != x
9168 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9170 if test "x$str2" != x ||
test "x$str3" != x
9172 echo " ${str2}${str3}." 1>&2
9175 # Truncate the target if necessary
9176 if test x
$host_truncate_target != x
; then
9177 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9180 # Configure the subdirectories
9181 # AC_CONFIG_SUBDIRS($subdirs)
9183 # Create the Makefile
9184 # and configure language subdirectories
9186 cat > confcache
<<\EOF
9187 # This file is a shell script that caches the results of configure
9188 # tests run on this system so they can be shared between configure
9189 # scripts and configure runs. It is not useful on other systems.
9190 # If it contains results you don't want to keep, you may remove or edit it.
9192 # By default, configure uses ./config.cache as the cache file,
9193 # creating it if it does not exist already. You can give configure
9194 # the --cache-file=FILE option to use a different cache file; that is
9195 # what configure does when it calls configure scripts in
9196 # subdirectories, so they share the cache.
9197 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9198 # config.status only pays attention to the cache file if you give it the
9199 # --recheck option to rerun configure.
9202 # The following way of writing the cache mishandles newlines in values,
9203 # but we know of no workaround that is simple, portable, and efficient.
9204 # So, don't put newlines in cache variables' values.
9205 # Ultrix sh set writes to stderr and can't be redirected directly,
9206 # and sets the high bit in the cache file unless we assign to the vars.
9208 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9210 # `set' does not quote correctly, so add quotes (double-quote substitution
9211 # turns \\\\ into \\, and sed turns \\ into \).
9213 -e "s/'/'\\\\''/g" \
9214 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9217 # `set' quotes correctly as required by POSIX, so do not add quotes.
9218 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9221 if cmp -s $cache_file confcache
; then
9224 if test -w $cache_file; then
9225 echo "updating cache $cache_file"
9226 cat confcache
> $cache_file
9228 echo "not updating unwritable cache $cache_file"
9233 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9235 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9236 # Let make expand exec_prefix.
9237 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9239 # Any assignment to VPATH causes Sun make to only execute
9240 # the first set of double-colon rules, so remove it if not needed.
9241 # If there is a colon in the path, we need to keep it.
9242 if test "x$srcdir" = x.
; then
9243 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9246 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9248 DEFS
=-DHAVE_CONFIG_H
9250 # Without the "./", some shells look in PATH for config.status.
9251 : ${CONFIG_STATUS=./config.status}
9253 echo creating
$CONFIG_STATUS
9254 rm -f $CONFIG_STATUS
9255 cat > $CONFIG_STATUS <<EOF
9257 # Generated automatically by configure.
9258 # Run this file to recreate the current configuration.
9259 # This directory was configured as follows,
9260 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9262 # $0 $ac_configure_args
9264 # Compiler output produced by configure, useful for debugging
9265 # configure, is in ./config.log if it exists.
9267 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9270 case "\$ac_option" in
9271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9272 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9273 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9274 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9275 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9277 -help | --help | --hel | --he | --h)
9278 echo "\$ac_cs_usage"; exit 0 ;;
9279 *) echo "\$ac_cs_usage"; exit 1 ;;
9283 ac_given_srcdir=$srcdir
9285 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9287 cat >> $CONFIG_STATUS <<EOF
9289 # Protect against being on the right side of a sed subst in config.status.
9290 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9291 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9295 s%@CFLAGS@%$CFLAGS%g
9296 s%@CPPFLAGS@%$CPPFLAGS%g
9297 s%@CXXFLAGS@%$CXXFLAGS%g
9298 s%@FFLAGS@%$FFLAGS%g
9300 s%@LDFLAGS@%$LDFLAGS%g
9302 s%@exec_prefix@%$exec_prefix%g
9303 s%@prefix@%$prefix%g
9304 s%@program_transform_name@%$program_transform_name%g
9305 s%@bindir@%$bindir%g
9306 s%@sbindir@%$sbindir%g
9307 s%@libexecdir@%$libexecdir%g
9308 s%@datadir@%$datadir%g
9309 s%@sysconfdir@%$sysconfdir%g
9310 s%@sharedstatedir@%$sharedstatedir%g
9311 s%@localstatedir@%$localstatedir%g
9312 s%@libdir@%$libdir%g
9313 s%@includedir@%$includedir%g
9314 s%@oldincludedir@%$oldincludedir%g
9315 s%@infodir@%$infodir%g
9316 s%@mandir@%$mandir%g
9318 s%@host_alias@%$host_alias%g
9319 s%@host_cpu@%$host_cpu%g
9320 s%@host_vendor@%$host_vendor%g
9321 s%@host_os@%$host_os%g
9322 s%@target@%$target%g
9323 s%@target_alias@%$target_alias%g
9324 s%@target_cpu@%$target_cpu%g
9325 s%@target_vendor@%$target_vendor%g
9326 s%@target_os@%$target_os%g
9328 s%@build_alias@%$build_alias%g
9329 s%@build_cpu@%$build_cpu%g
9330 s%@build_vendor@%$build_vendor%g
9331 s%@build_os@%$build_os%g
9333 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9334 s%@SET_MAKE@%$SET_MAKE%g
9337 s%@LEXLIB@%$LEXLIB%g
9340 s%@RANLIB@%$RANLIB%g
9342 s%@INSTALL@%$INSTALL%g
9343 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9344 s%@INSTALL_DATA@%$INSTALL_DATA%g
9347 s%@vfprintf@%$vfprintf%g
9348 s%@doprint@%$doprint%g
9349 s%@manext@%$manext%g
9350 s%@objext@%$objext%g
9351 s%@PACKAGE@%$PACKAGE%g
9352 s%@VERSION@%$VERSION%g
9353 s%@ALLOCA@%$ALLOCA%g
9354 s%@USE_NLS@%$USE_NLS%g
9355 s%@MSGFMT@%$MSGFMT%g
9356 s%@GMSGFMT@%$GMSGFMT%g
9357 s%@XGETTEXT@%$XGETTEXT%g
9358 s%@GENCAT@%$GENCAT%g
9359 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9360 s%@CATALOGS@%$CATALOGS%g
9361 s%@CATOBJEXT@%$CATOBJEXT%g
9362 s%@DATADIRNAME@%$DATADIRNAME%g
9363 s%@GMOFILES@%$GMOFILES%g
9364 s%@INSTOBJEXT@%$INSTOBJEXT%g
9365 s%@INTLDEPS@%$INTLDEPS%g
9366 s%@INTLLIBS@%$INTLLIBS%g
9367 s%@INTLOBJS@%$INTLOBJS%g
9368 s%@POFILES@%$POFILES%g
9370 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9372 s%@GT_YES@%$GT_YES%g
9373 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9375 s%@gthread_flags@%$gthread_flags%g
9377 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9378 s%@build_canonical@%$build_canonical%g
9379 s%@host_canonical@%$host_canonical%g
9380 s%@target_subdir@%$target_subdir%g
9381 s%@inhibit_libc@%$inhibit_libc%g
9382 s%@gcc_tooldir@%$gcc_tooldir%g
9383 s%@dollar@%$dollar%g
9384 s%@objdir@%$objdir%g
9385 s%@subdirs@%$subdirs%g
9386 s%@all_boot_languages@%$all_boot_languages%g
9387 s%@all_compilers@%$all_compilers%g
9388 s%@all_diff_excludes@%$all_diff_excludes%g
9389 s%@all_headers@%$all_headers%g
9390 s%@all_lang_makefiles@%$all_lang_makefiles%g
9391 s%@all_languages@%$all_languages%g
9392 s%@all_lib2funcs@%$all_lib2funcs%g
9393 s%@all_stagestuff@%$all_stagestuff%g
9394 s%@build_exeext@%$build_exeext%g
9395 s%@build_install_headers_dir@%$build_install_headers_dir%g
9396 s%@build_xm_file_list@%$build_xm_file_list%g
9397 s%@cc_set_by_configure@%$cc_set_by_configure%g
9398 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9399 s%@cpp_install_dir@%$cpp_install_dir%g
9400 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9401 s%@dep_tmake_file@%$dep_tmake_file%g
9402 s%@extra_c_flags@%$extra_c_flags%g
9403 s%@extra_c_objs@%$extra_c_objs%g
9404 s%@extra_cpp_objs@%$extra_cpp_objs%g
9405 s%@extra_cxx_objs@%$extra_cxx_objs%g
9406 s%@extra_headers_list@%$extra_headers_list%g
9407 s%@extra_objs@%$extra_objs%g
9408 s%@extra_parts@%$extra_parts%g
9409 s%@extra_passes@%$extra_passes%g
9410 s%@extra_programs@%$extra_programs%g
9411 s%@float_h_file@%$float_h_file%g
9412 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9413 s%@gcc_version@%$gcc_version%g
9414 s%@gcc_version_trigger@%$gcc_version_trigger%g
9415 s%@host_exeext@%$host_exeext%g
9416 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9417 s%@host_xm_file_list@%$host_xm_file_list%g
9418 s%@install@%$install%g
9419 s%@lang_options_files@%$lang_options_files%g
9420 s%@lang_specs_files@%$lang_specs_files%g
9421 s%@lang_tree_files@%$lang_tree_files%g
9422 s%@local_prefix@%$local_prefix%g
9423 s%@maybe_use_collect2@%$maybe_use_collect2%g
9424 s%@md_file@%$md_file%g
9425 s%@objc_boehm_gc@%$objc_boehm_gc%g
9426 s%@out_file@%$out_file%g
9427 s%@out_object_file@%$out_object_file%g
9428 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9429 s%@symbolic_link@%$symbolic_link%g
9430 s%@thread_file@%$thread_file%g
9431 s%@tm_file_list@%$tm_file_list%g
9432 s%@will_use_collect2@%$will_use_collect2%g
9433 /@target_overrides@/r $target_overrides
9434 s%@target_overrides@%%g
9435 /@host_overrides@/r $host_overrides
9436 s%@host_overrides@%%g
9437 s%@cross_defines@%$cross_defines%g
9438 /@cross_overrides@/r $cross_overrides
9439 s%@cross_overrides@%%g
9440 /@build_overrides@/r $build_overrides
9441 s%@build_overrides@%%g
9442 /@language_fragments@/r $language_fragments
9443 s%@language_fragments@%%g
9444 /@language_hooks@/r $language_hooks
9445 s%@language_hooks@%%g
9450 cat >> $CONFIG_STATUS <<\EOF
9452 # Split the substitutions into bite-sized pieces for seds with
9453 # small command number limits, like on Digital OSF/1 and HP-UX.
9454 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9455 ac_file
=1 # Number of current file.
9456 ac_beg
=1 # First line for current file.
9457 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9460 while $ac_more_lines; do
9461 if test $ac_beg -gt 1; then
9462 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9464 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9466 if test ! -s conftest.s
$ac_file; then
9468 rm -f conftest.s
$ac_file
9470 if test -z "$ac_sed_cmds"; then
9471 ac_sed_cmds
="sed -f conftest.s$ac_file"
9473 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9475 ac_file
=`expr $ac_file + 1`
9477 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9480 if test -z "$ac_sed_cmds"; then
9485 cat >> $CONFIG_STATUS <<EOF
9487 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9489 cat >> $CONFIG_STATUS <<\EOF
9490 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9491 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9493 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9494 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9495 *) ac_file_in
="${ac_file}.in" ;;
9498 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9500 # Remove last slash and all that follows it. Not all systems have dirname.
9501 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9502 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9503 # The file is in a subdirectory.
9504 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9505 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9506 # A "../" for each directory in $ac_dir_suffix.
9507 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9509 ac_dir_suffix
= ac_dots
=
9512 case "$ac_given_srcdir" in
9514 if test -z "$ac_dots"; then top_srcdir
=.
9515 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9516 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9518 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9519 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9523 echo creating
"$ac_file"
9525 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9527 *Makefile
*) ac_comsub
="1i\\
9528 # $configure_input" ;;
9532 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9534 s%@configure_input@%$configure_input%g
9535 s%@srcdir@%$srcdir%g
9536 s%@top_srcdir@%$top_srcdir%g
9537 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9541 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9542 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9544 # ac_d sets the value in "#define NAME VALUE" lines.
9545 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9546 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9549 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9550 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9551 ac_uB
='\([ ]\)%\1#\2define\3'
9554 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9555 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9556 ac_eB
='$%\1#\2define\3'
9560 if test "${CONFIG_HEADERS+set}" != set; then
9562 cat >> $CONFIG_STATUS <<EOF
9563 CONFIG_HEADERS="auto-host.h:config.in"
9565 cat >> $CONFIG_STATUS <<\EOF
9567 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9568 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9570 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9571 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9572 *) ac_file_in
="${ac_file}.in" ;;
9575 echo creating
$ac_file
9577 rm -f conftest.frag conftest.
in conftest.out
9578 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9579 cat $ac_file_inputs > conftest.
in
9583 # Transform confdefs.h into a sed script conftest.vals that substitutes
9584 # the proper values into config.h.in to produce config.h. And first:
9585 # Protect against being on the right side of a sed subst in config.status.
9586 # Protect against being in an unquoted here document in config.status.
9588 cat > conftest.hdr
<<\EOF
9591 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9595 sed -n -f conftest.hdr confdefs.h > conftest.vals
9598 # This sed command replaces #undef with comments. This is necessary, for
9599 # example, in the case of _POSIX_SOURCE, which is predefined and required
9600 # on some systems where configure will not decide to define it.
9601 cat >> conftest.vals <<\EOF
9602 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9605 # Break up conftest.vals because some shells have a limit on
9606 # the size of here documents, and old seds have small limits too.
9611 ac_lines=`grep -c . conftest.vals
`
9612 # grep -c gives empty output for an empty file on some AIX systems.
9613 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9614 # Write a limited-size here document to conftest.frag.
9615 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9616 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9618 sed -f conftest.frag conftest.in > conftest.out
9620 mv conftest.out conftest.in
9622 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9624 mv conftest.tail conftest.vals
9628 cat >> $CONFIG_STATUS <<\EOF
9629 rm -f conftest.frag conftest.h
9630 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9631 cat conftest.in >> conftest.h
9633 if cmp -s $ac_file conftest.h 2>/dev/null; then
9634 echo "$ac_file is unchanged"
9637 # Remove last slash and all that follows it. Not all systems have dirname.
9638 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9639 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9640 # The file is in a subdirectory.
9641 test ! -d "$ac_dir" && mkdir "$ac_dir"
9644 mv conftest.h $ac_file
9650 cat >> $CONFIG_STATUS <<EOF
9651 ac_sources="$nls_cv_header_libgt"
9652 ac_dests="$nls_cv_header_intl"
9655 cat >> $CONFIG_STATUS <<\EOF
9656 srcdir=$ac_given_srcdir
9657 while test -n "$ac_sources"; do
9658 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9659 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9661 echo "linking $srcdir/$ac_source to $ac_dest"
9663 if test ! -r $srcdir/$ac_source; then
9664 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9668 # Make relative symlinks.
9669 # Remove last slash and all that follows it. Not all systems have dirname.
9670 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9671 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9672 # The dest file is in a subdirectory.
9673 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9674 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9675 # A "../" for each directory in $ac_dest_dir_suffix.
9676 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9678 ac_dest_dir_suffix= ac_dots=
9682 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9683 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9686 # Make a symlink if possible; otherwise try a hard link.
9687 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9688 ln $srcdir/$ac_source $ac_dest; then :
9690 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9694 cat >> $CONFIG_STATUS <<EOF
9700 target_alias='${target_alias}'
9702 subdirs='${subdirs}'
9703 oldstyle_subdirs='${oldstyle_subdirs}'
9704 symbolic_link='${symbolic_link}'
9705 program_transform_set='${program_transform_set}'
9706 program_transform_name='${program_transform_name}'
9707 dep_host_xmake_file='${dep_host_xmake_file}'
9708 host_xmake_file='${host_xmake_file}'
9709 dep_tmake_file='${dep_tmake_file}'
9710 tmake_file='${tmake_file}'
9711 thread_file='${thread_file}'
9712 gcc_version='${gcc_version}'
9713 gcc_version_trigger='${gcc_version_trigger}'
9714 local_prefix='${local_prefix}'
9715 build_install_headers_dir='${build_install_headers_dir}'
9716 build_exeext='${build_exeext}'
9717 host_exeext='${host_exeext}'
9718 out_file='${out_file}'
9719 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9720 SET_MAKE='${SET_MAKE}'
9721 target_list='${target_list}'
9722 target_overrides='${target_overrides}'
9723 host_overrides='${host_overrides}'
9724 cross_defines='${cross_defines}'
9725 cross_overrides='${cross_overrides}'
9726 build_overrides='${build_overrides}'
9727 cpp_install_dir='${cpp_install_dir}'
9730 cat >> $CONFIG_STATUS <<\EOF
9731 case "$CONFIG_FILES" in *po/Makefile.in*)
9732 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9735 . $srcdir/configure.lang
9736 case x$CONFIG_HEADERS in
9737 xauto-host.h:config.in)
9740 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9741 # bootstrapping and the installation procedure can still use
9742 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9743 # FLAGS_TO_PASS has been modified to solve the problem there.
9744 # This is virtually a duplicate of what happens in configure.lang; we do
9745 # an extra check to make sure this only happens if ln -s can be used.
9746 if test "$symbolic_link" = "ln -s"; then
9747 for d in .. ${subdirs} ; do
9748 if test $d != ..; then
9751 for t in stage1 stage2 stage3 stage4 include
9754 $symbolic_link ../$t $t 2>/dev/null
9760 # Avoid having to add intl to our include paths.
9761 if test -f intl/libintl.h; then
9762 echo creating libintl.h
9763 echo '#include "intl/libintl.h"' >libintl.h
9768 chmod +x $CONFIG_STATUS
9769 rm -fr confdefs* $ac_clean_files
9770 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1