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 --disable-cpplib use the old isolated C preprocessor."
46 --enable-c-mbchar Enable multibyte characters for C and C++."
48 --enable-threads enable thread usage for target GCC.
49 --enable-threads=LIB use LIB thread package for target GCC."
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime."
54 --with-dwarf2 force the default debug format to be DWARF2."
56 --enable-nls use Native Language Support (disabled by default)"
58 --disable-nls do not use Native Language Support"
60 --with-included-gettext use the GNU gettext library included here"
62 --with-catgets use catgets functions if available"
64 --disable-win32-registry
65 Disable lookup of installation paths in the
66 Registry on Windows hosts.
67 --enable-win32-registry Enable registry lookup (default).
68 --enable-win32-registry=KEY
69 Use KEY instead of GCC version as the last portion
72 --with-gc={simple,page} Choose the garbage collection mechanism to use
76 select the new abi for g++. You must select an ABI
77 at configuration time, so that the correct runtime
78 support is built. You cannot mix ABIs."
81 enable libstdc++-v3 for building and installation"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file
=.
/config.cache
96 program_transform_name
=s
,x
,x
,
104 bindir
='${exec_prefix}/bin'
105 sbindir
='${exec_prefix}/sbin'
106 libexecdir
='${exec_prefix}/libexec'
107 datadir
='${prefix}/share'
108 sysconfdir
='${prefix}/etc'
109 sharedstatedir
='${prefix}/com'
110 localstatedir
='${prefix}/var'
111 libdir
='${exec_prefix}/lib'
112 includedir
='${prefix}/include'
113 oldincludedir
='/usr/include'
114 infodir
='${prefix}/info'
115 mandir
='${prefix}/man'
117 # Initialize some other variables.
120 SHELL
=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
146 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
147 bindir
="$ac_optarg" ;;
149 -build |
--build |
--buil |
--bui |
--bu)
151 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
152 build
="$ac_optarg" ;;
154 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
155 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
156 ac_prev
=cache_file
;;
157 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
158 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
159 cache_file
="$ac_optarg" ;;
161 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
163 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
165 datadir
="$ac_optarg" ;;
167 -disable-* |
--disable-*)
168 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* |
--enable-*)
177 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
190 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
191 |
--exec |
--exe |
--ex)
192 ac_prev
=exec_prefix
;;
193 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
194 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
195 |
--exec=* |
--exe=* |
--ex=*)
196 exec_prefix
="$ac_optarg" ;;
198 -gas |
--gas |
--ga |
--g)
199 # Obsolete; use --with-gas.
202 -help |
--help |
--hel |
--he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
257 -host |
--host |
--hos |
--ho)
259 -host=* |
--host=* |
--hos=* |
--ho=*)
262 -includedir |
--includedir |
--includedi |
--included |
--include \
263 |
--includ |
--inclu |
--incl |
--inc)
264 ac_prev
=includedir
;;
265 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
266 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
267 includedir
="$ac_optarg" ;;
269 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
271 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
272 infodir
="$ac_optarg" ;;
274 -libdir |
--libdir |
--libdi |
--libd)
276 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
277 libdir
="$ac_optarg" ;;
279 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
280 |
--libexe |
--libex |
--libe)
281 ac_prev
=libexecdir
;;
282 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
283 |
--libexe=* |
--libex=* |
--libe=*)
284 libexecdir
="$ac_optarg" ;;
286 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
287 |
--localstate |
--localstat |
--localsta |
--localst \
288 |
--locals |
--local |
--loca |
--loc |
--lo)
289 ac_prev
=localstatedir
;;
290 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
291 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
292 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
293 localstatedir
="$ac_optarg" ;;
295 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
297 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
298 mandir
="$ac_optarg" ;;
301 # Obsolete; use --without-fp.
304 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
308 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
309 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
312 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
313 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
314 |
--oldin |
--oldi |
--old |
--ol |
--o)
315 ac_prev
=oldincludedir
;;
316 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
317 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
318 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
319 oldincludedir
="$ac_optarg" ;;
321 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
323 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
324 prefix
="$ac_optarg" ;;
326 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
327 |
--program-pre |
--program-pr |
--program-p)
328 ac_prev
=program_prefix
;;
329 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
330 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
331 program_prefix
="$ac_optarg" ;;
333 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
334 |
--program-suf |
--program-su |
--program-s)
335 ac_prev
=program_suffix
;;
336 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
337 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
338 program_suffix
="$ac_optarg" ;;
340 -program-transform-name |
--program-transform-name \
341 |
--program-transform-nam |
--program-transform-na \
342 |
--program-transform-n |
--program-transform- \
343 |
--program-transform |
--program-transfor \
344 |
--program-transfo |
--program-transf \
345 |
--program-trans |
--program-tran \
346 |
--progr-tra |
--program-tr |
--program-t)
347 ac_prev
=program_transform_name
;;
348 -program-transform-name=* |
--program-transform-name=* \
349 |
--program-transform-nam=* |
--program-transform-na=* \
350 |
--program-transform-n=* |
--program-transform-=* \
351 |
--program-transform=* |
--program-transfor=* \
352 |
--program-transfo=* |
--program-transf=* \
353 |
--program-trans=* |
--program-tran=* \
354 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
355 program_transform_name
="$ac_optarg" ;;
357 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
358 |
-silent |
--silent |
--silen |
--sile |
--sil)
361 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
363 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
365 sbindir
="$ac_optarg" ;;
367 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
368 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
369 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
371 ac_prev
=sharedstatedir
;;
372 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
373 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
374 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
376 sharedstatedir
="$ac_optarg" ;;
378 -site |
--site |
--sit)
380 -site=* |
--site=* |
--sit=*)
383 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
385 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
386 srcdir
="$ac_optarg" ;;
388 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
389 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
390 ac_prev
=sysconfdir
;;
391 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
392 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
393 sysconfdir
="$ac_optarg" ;;
395 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
397 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
398 target
="$ac_optarg" ;;
400 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
403 -version |
--version |
--versio |
--versi |
--vers)
404 echo "configure generated by autoconf version 2.13"
408 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package
=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* |
--without-*)
421 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package
=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
434 |
--x-incl |
--x-inc |
--x-in |
--x-i)
435 ac_prev
=x_includes
;;
436 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
437 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
438 x_includes
="$ac_optarg" ;;
440 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
441 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
442 ac_prev
=x_libraries
;;
443 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
444 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
445 x_libraries
="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE
; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
495 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
496 |
--no-cr |
--no-c) ;;
497 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
498 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
499 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest
* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file
=tree.c
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted
=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
532 if test ! -r $srcdir/$ac_unique_file; then
536 ac_srcdir_defaulted
=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE
; then
550 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file
in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
566 echo "creating cache $cache_file"
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp
='$CPP $CPPFLAGS'
573 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling
=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
588 ac_n
= ac_c
='\c' ac_t
=
596 symbolic_link
='ln -s'
599 # Check for bogus environment variables.
600 # Test if LIBRARY_PATH contains the notation for the current directory
601 # since this would lead to problems installing/building glibc.
602 # LIBRARY_PATH contains the current directory if one of the following
604 # - one of the terminals (":" and ";") is the first or last sign
605 # - two terminals occur directly after each other
606 # - the path contains an element with a dot in it
607 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
608 echo "configure:609: checking LIBRARY_PATH variable" >&5
609 case ${LIBRARY_PATH} in
610 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
611 library_path_setting
="contains current directory"
614 library_path_setting
="ok"
617 echo "$ac_t""$library_path_setting" 1>&6
618 if test "$library_path_setting" != "ok"; then
619 { echo "configure: error:
620 *** LIBRARY_PATH shouldn't contain the current directory when
621 *** building gcc. Please change the environment variable
622 *** and run configure again." 1>&2; exit 1; }
625 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
626 # since this would lead to problems installing/building glibc.
627 # GCC_EXEC_PREFIX contains the current directory if one of the following
629 # - one of the terminals (":" and ";") is the first or last sign
630 # - two terminals occur directly after each other
631 # - the path contains an element with a dot in it
632 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
633 echo "configure:634: checking GCC_EXEC_PREFIX variable" >&5
634 case ${GCC_EXEC_PREFIX} in
635 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
636 gcc_exec_prefix_setting
="contains current directory"
639 gcc_exec_prefix_setting
="ok"
642 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
643 if test "$gcc_exec_prefix_setting" != "ok"; then
644 { echo "configure: error:
645 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
646 *** building gcc. Please change the environment variable
647 *** and run configure again." 1>&2; exit 1; }
650 # Check for additional parameters
653 # Check whether --with-gnu-ld or --without-gnu-ld was given.
654 if test "${with_gnu_ld+set}" = set; then
655 withval
="$with_gnu_ld"
656 gnu_ld_flag
="$with_gnu_ld"
662 # With pre-defined ld
663 # Check whether --with-ld or --without-ld was given.
664 if test "${with_ld+set}" = set; then
666 DEFAULT_LINKER
="$with_ld"
669 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
670 if test ! -x "$DEFAULT_LINKER"; then
671 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
672 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
675 cat >> confdefs.h
<<EOF
676 #define DEFAULT_LINKER "$DEFAULT_LINKER"
682 # Check whether --with-gnu-as or --without-gnu-as was given.
683 if test "${with_gnu_as+set}" = set; then
684 withval
="$with_gnu_as"
685 gas_flag
="$with_gnu_as"
691 # Check whether --with-as or --without-as was given.
692 if test "${with_as+set}" = set; then
694 DEFAULT_ASSEMBLER
="$with_as"
697 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
698 if test ! -x "$DEFAULT_ASSEMBLER"; then
699 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
700 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
703 cat >> confdefs.h
<<EOF
704 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
710 # Check whether --with-stabs or --without-stabs was given.
711 if test "${with_stabs+set}" = set; then
712 withval
="$with_stabs"
720 # Check whether --with-elf or --without-elf was given.
721 if test "${with_elf+set}" = set; then
729 # Specify the local prefix
731 # Check whether --with-local-prefix or --without-local-prefix was given.
732 if test "${with_local_prefix+set}" = set; then
733 withval
="$with_local_prefix"
735 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
737 *) local_prefix
=$with_local_prefix ;;
742 # Default local prefix if it is empty
743 if test x
$local_prefix = x
; then
744 local_prefix
=/usr
/local
747 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
748 # passed in by the toplevel make and thus we'd get different behavior
749 # depending on where we built the sources.
751 # Specify the g++ header file directory
752 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
753 if test "${with_gxx_include_dir+set}" = set; then
754 withval
="$with_gxx_include_dir"
756 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
758 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
763 if test x
${gcc_gxx_include_dir} = x
; then
764 if test x
${enable_version_specific_runtime_libs} = xyes
; then
765 gcc_gxx_include_dir
='${libsubdir}/include/g++'
767 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
768 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
772 # Enable expensive internal checks
773 # Check whether --enable-checking or --disable-checking was given.
774 if test "${enable_checking+set}" = set; then
775 enableval
="$enable_checking"
776 case "${enableval}" in
777 yes) cat >> confdefs.h
<<\EOF
778 #define ENABLE_CHECKING 1
781 cat >> confdefs.h
<<\EOF
782 #define ENABLE_TREE_CHECKING 1
785 cat >> confdefs.h
<<\EOF
786 #define ENABLE_RTL_CHECKING 1
790 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
791 set fnord
$enableval; shift
796 misc
) cat >> confdefs.h
<<\EOF
797 #define ENABLE_CHECKING 1
800 tree
) cat >> confdefs.h
<<\EOF
801 #define ENABLE_TREE_CHECKING 1
804 rtl
) cat >> confdefs.h
<<\EOF
805 #define ENABLE_RTL_CHECKING 1
808 gc
) cat >> confdefs.h
<<\EOF
809 #define ENABLE_GC_CHECKING 1
812 gcac
) cat >> confdefs.h
<<\EOF
813 #define ENABLE_GC_ALWAYS_COLLECT 1
816 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Check whether --enable-cpp or --disable-cpp was given.
825 if test "${enable_cpp+set}" = set; then
826 enableval
="$enable_cpp"
833 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
834 if test "${with_cpp_install_dir+set}" = set; then
835 withval
="$with_cpp_install_dir"
836 if test x
$withval = xyes
; then
837 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
838 elif test x
$withval != xno
; then
839 cpp_install_dir
=$withval
844 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
846 # Check whether --enable-cpplib or --disable-cpplib was given.
847 if test "${enable_cpplib+set}" = set; then
848 enableval
="$enable_cpplib"
849 if test x
$enable_cpplib = xno
; then
856 # Enable Multibyte Characters for C/C++
857 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
858 if test "${enable_c_mbchar+set}" = set; then
859 enableval
="$enable_c_mbchar"
860 if test x
$enable_c_mbchar != xno
; then
861 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
867 # Pass with no value to take the default
868 # Pass with a value to specify a thread package
869 # Check whether --enable-threads or --disable-threads was given.
870 if test "${enable_threads+set}" = set; then
871 enableval
="$enable_threads"
872 if test x
$enable_threads = xno
; then
880 enable_threads_flag
=$enable_threads
881 # Check if a valid thread package
882 case x
${enable_threads_flag} in
885 target_thread_file
='single'
889 target_thread_file
=''
891 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
892 xsolaris | xwin32 | xdce | xvxworks
)
893 target_thread_file
=$enable_threads_flag
896 echo "$enable_threads is an unknown thread package" 1>&2
901 # Check whether --enable-objc-gc or --disable-objc-gc was given.
902 if test "${enable_objc_gc+set}" = set; then
903 enableval
="$enable_objc_gc"
904 if test x
$enable_objc_gc = xno
; then
914 # Check whether --with-dwarf2 or --without-dwarf2 was given.
915 if test "${with_dwarf2+set}" = set; then
916 withval
="$with_dwarf2"
917 dwarf2
="$with_dwarf2"
923 # Determine the host, build, and target systems
925 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
926 if test -f $ac_dir/install-sh
; then
928 ac_install_sh
="$ac_aux_dir/install-sh -c"
930 elif test -f $ac_dir/install.sh
; then
932 ac_install_sh
="$ac_aux_dir/install.sh -c"
936 if test -z "$ac_aux_dir"; then
937 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
939 ac_config_guess
=$ac_aux_dir/config.guess
940 ac_config_sub
=$ac_aux_dir/config.sub
941 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
944 # Do some error checking and defaulting for the host and target type.
946 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
949 # 1. You are not allowed to specify --host, --target, and nonopt at the
951 # 2. Host defaults to nonopt.
952 # 3. If nonopt is not specified, then host defaults to the current host,
953 # as determined by config.guess.
954 # 4. Target and build default to nonopt.
955 # 5. If nonopt is not specified, then target and build default to host.
957 # The aliases save the names the user supplied, while $host etc.
958 # will get canonicalized.
959 case $host---$target---$nonopt in
960 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
961 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
965 # Make sure we can run config.sub.
966 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
967 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
970 echo $ac_n "checking host system type""... $ac_c" 1>&6
971 echo "configure:972: checking host system type" >&5
974 case "$host_alias" in
978 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
979 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
981 *) host_alias
=$nonopt ;;
985 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
986 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo "$ac_t""$host" 1>&6
991 echo $ac_n "checking target system type""... $ac_c" 1>&6
992 echo "configure:993: checking target system type" >&5
995 case "$target_alias" in
998 NONE
) target_alias
=$host_alias ;;
999 *) target_alias
=$nonopt ;;
1003 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1004 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1005 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1006 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1007 echo "$ac_t""$target" 1>&6
1009 echo $ac_n "checking build system type""... $ac_c" 1>&6
1010 echo "configure:1011: checking build system type" >&5
1013 case "$build_alias" in
1016 NONE
) build_alias
=$host_alias ;;
1017 *) build_alias
=$nonopt ;;
1021 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1022 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1023 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1024 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 echo "$ac_t""$build" 1>&6
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix
=${target_alias}-
1033 # Find the native compiler
1034 # Extract the first word of "gcc", so it can be a program name with args.
1035 set dummy gcc
; ac_word
=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC
="$CC" # Let the user override the test.
1044 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1046 for ac_dir
in $ac_dummy; do
1047 test -z "$ac_dir" && ac_dir
=.
1048 if test -f $ac_dir/$ac_word; then
1057 if test -n "$CC"; then
1058 echo "$ac_t""$CC" 1>&6
1060 echo "$ac_t""no" 1>&6
1063 if test -z "$CC"; then
1064 # Extract the first word of "cc", so it can be a program name with args.
1065 set dummy cc
; ac_word
=$2
1066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1067 echo "configure:1068: checking for $ac_word" >&5
1068 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 if test -n "$CC"; then
1072 ac_cv_prog_CC
="$CC" # Let the user override the test.
1074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1077 for ac_dir
in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir
=.
1079 if test -f $ac_dir/$ac_word; then
1080 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1081 ac_prog_rejected
=yes
1089 if test $ac_prog_rejected = yes; then
1090 # We found a bogon in the path, so make sure we never use it.
1091 set dummy
$ac_cv_prog_CC
1093 if test $# -gt 0; then
1094 # We chose a different compiler from the bogus one.
1095 # However, it has the same basename, so the bogon will be chosen
1096 # first if we set CC to just the basename; use the full file name.
1098 set dummy
"$ac_dir/$ac_word" "$@"
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 case "`uname -s`" in
1115 # Extract the first word of "cl", so it can be a program name with args.
1116 set dummy cl
; ac_word
=$2
1117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1118 echo "configure:1119: checking for $ac_word" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1122 if test -n "$CC"; then
1123 ac_cv_prog_CC
="$CC" # Let the user override the test.
1125 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1127 for ac_dir
in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir
=.
1129 if test -f $ac_dir/$ac_word; then
1138 if test -n "$CC"; then
1139 echo "$ac_t""$CC" 1>&6
1141 echo "$ac_t""no" 1>&6
1146 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1149 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1153 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1154 ac_cpp
='$CPP $CPPFLAGS'
1155 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1156 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1157 cross_compiling
=$ac_cv_prog_cc_cross
1159 cat > conftest.
$ac_ext << EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1166 if { (eval echo configure
:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1167 ac_cv_prog_cc_works
=yes
1168 # If we can't run a trivial program, we are probably using a cross compiler.
1169 if (.
/conftest
; exit) 2>/dev
/null
; then
1170 ac_cv_prog_cc_cross
=no
1172 ac_cv_prog_cc_cross
=yes
1175 echo "configure: failed program was:" >&5
1176 cat conftest.
$ac_ext >&5
1177 ac_cv_prog_cc_works
=no
1181 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1182 ac_cpp
='$CPP $CPPFLAGS'
1183 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1184 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1185 cross_compiling
=$ac_cv_prog_cc_cross
1187 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1188 if test $ac_cv_prog_cc_works = no
; then
1189 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1191 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1193 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1194 cross_compiling
=$ac_cv_prog_cc_cross
1196 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether we are using GNU C" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftest.c
<<EOF
1206 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1213 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1215 if test $ac_cv_prog_gcc = yes; then
1221 ac_test_CFLAGS
="${CFLAGS+set}"
1222 ac_save_CFLAGS
="$CFLAGS"
1224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1225 echo "configure:1226: checking whether ${CC-cc} accepts -g" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 echo 'void f(){}' > conftest.c
1230 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1239 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1240 if test "$ac_test_CFLAGS" = set; then
1241 CFLAGS
="$ac_save_CFLAGS"
1242 elif test $ac_cv_prog_cc_g = yes; then
1243 if test "$GCC" = yes; then
1249 if test "$GCC" = yes; then
1256 echo $ac_n "checking for long double""... $ac_c" 1>&6
1257 echo "configure:1258: checking for long double" >&5
1258 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test "$GCC" = yes; then
1262 gcc_cv_c_long_double
=yes
1264 cat > conftest.
$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1269 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1270 long double foo = 0.0;
1271 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1272 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1275 if { (eval echo configure
:1276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1277 gcc_cv_c_long_double
=yes
1279 echo "configure: failed program was:" >&5
1280 cat conftest.
$ac_ext >&5
1282 gcc_cv_c_long_double
=no
1288 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1289 if test $gcc_cv_c_long_double = yes; then
1290 cat >> confdefs.h
<<\EOF
1291 #define HAVE_LONG_DOUBLE 1
1297 # If the native compiler is GCC, we can enable warnings even in stage1.
1298 # That's useful for people building cross-compilers, or just running a
1300 if test "x$GCC" = "xyes"; then
1301 stage1_warn_cflags
='$(WARN_CFLAGS)'
1303 stage1_warn_cflags
=""
1307 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1308 echo "configure:1309: checking whether ${MAKE-make} sets \${MAKE}" >&5
1309 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 cat > conftestmake
<<\EOF
1315 @
echo 'ac_maketemp="${MAKE}"'
1317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1318 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1319 if test -n "$ac_maketemp"; then
1320 eval ac_cv_prog_make_
${ac_make}_set
=yes
1322 eval ac_cv_prog_make_
${ac_make}_set
=no
1326 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1327 echo "$ac_t""yes" 1>&6
1330 echo "$ac_t""no" 1>&6
1331 SET_MAKE
="MAKE=${MAKE-make}"
1335 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether a default assembler was specified" >&5
1337 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1338 if test x
"$gas_flag" = x
"no"; then
1339 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1341 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether a default linker was specified" >&5
1349 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1350 if test x
"$gnu_ld_flag" = x
"no"; then
1351 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1353 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1356 echo "$ac_t""no" 1>&6
1359 # Find some useful tools
1360 for ac_prog
in mawk gawk nawk
awk
1362 # Extract the first word of "$ac_prog", so it can be a program name with args.
1363 set dummy
$ac_prog; ac_word
=$2
1364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1365 echo "configure:1366: checking for $ac_word" >&5
1366 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 if test -n "$AWK"; then
1370 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1374 for ac_dir
in $ac_dummy; do
1375 test -z "$ac_dir" && ac_dir
=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_prog_AWK
="$ac_prog"
1384 AWK
="$ac_cv_prog_AWK"
1385 if test -n "$AWK"; then
1386 echo "$ac_t""$AWK" 1>&6
1388 echo "$ac_t""no" 1>&6
1391 test -n "$AWK" && break
1394 # Extract the first word of "flex", so it can be a program name with args.
1395 set dummy flex
; ac_word
=$2
1396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $ac_word" >&5
1398 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 if test -n "$LEX"; then
1402 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1404 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1406 for ac_dir
in $ac_dummy; do
1407 test -z "$ac_dir" && ac_dir
=.
1408 if test -f $ac_dir/$ac_word; then
1409 ac_cv_prog_LEX
="flex"
1414 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1417 LEX
="$ac_cv_prog_LEX"
1418 if test -n "$LEX"; then
1419 echo "$ac_t""$LEX" 1>&6
1421 echo "$ac_t""no" 1>&6
1424 if test -z "$LEXLIB"
1430 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1431 echo "configure:1432: checking for yywrap in -l$ac_lib" >&5
1432 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 ac_save_LIBS
="$LIBS"
1437 LIBS
="-l$ac_lib $LIBS"
1438 cat > conftest.
$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 /* Override any gcc2 internal prototype to avoid an error. */
1442 /* We use char because int might match the return type of a gcc2
1443 builtin and then its argument prototype would still apply. */
1450 if { (eval echo configure
:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1452 eval "ac_cv_lib_$ac_lib_var=yes"
1454 echo "configure: failed program was:" >&5
1455 cat conftest.
$ac_ext >&5
1457 eval "ac_cv_lib_$ac_lib_var=no"
1460 LIBS
="$ac_save_LIBS"
1463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1467 echo "$ac_t""no" 1>&6
1472 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1473 echo "configure:1474: checking whether ln works" >&5
1474 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 rm -f conftestdata_t
1478 echo >conftestdata_f
1479 if ln conftestdata_f conftestdata_t
2>/dev
/null
1483 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1485 gcc_cv_prog_LN
="ln -s"
1490 rm -f conftestdata_f conftestdata_t
1493 LN
="$gcc_cv_prog_LN"
1494 if test "$gcc_cv_prog_LN" = "ln"; then
1495 echo "$ac_t""yes" 1>&6
1497 if test "$gcc_cv_prog_LN" = "ln -s"; then
1498 echo "$ac_t""no, using ln -s" 1>&6
1500 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1504 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether ln -s works" >&5
1506 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 rm -f conftestdata_t
1510 echo >conftestdata_f
1511 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1513 gcc_cv_prog_LN_S
="ln -s"
1515 if ln conftestdata_f conftestdata_t
2>/dev
/null
1522 rm -f conftestdata_f conftestdata_t
1525 LN_S
="$gcc_cv_prog_LN_S"
1526 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1527 echo "$ac_t""yes" 1>&6
1529 if test "$gcc_cv_prog_LN_S" = "ln"; then
1530 echo "$ac_t""no, using ln" 1>&6
1532 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1536 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1537 echo "configure:1538: checking for volatile" >&5
1538 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.
$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1549 if { (eval echo configure
:1550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1551 gcc_cv_c_volatile
=yes
1553 echo "configure: failed program was:" >&5
1554 cat conftest.
$ac_ext >&5
1556 gcc_cv_c_volatile
=no
1561 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1562 if test $gcc_cv_c_volatile = yes ; then
1563 cat >> confdefs.h
<<\EOF
1564 #define HAVE_VOLATILE 1
1569 # Extract the first word of "ranlib", so it can be a program name with args.
1570 set dummy ranlib
; ac_word
=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test -n "$RANLIB"; then
1577 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1579 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1581 for ac_dir
in $ac_dummy; do
1582 test -z "$ac_dir" && ac_dir
=.
1583 if test -f $ac_dir/$ac_word; then
1584 ac_cv_prog_RANLIB
="ranlib"
1589 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1592 RANLIB
="$ac_cv_prog_RANLIB"
1593 if test -n "$RANLIB"; then
1594 echo "$ac_t""$RANLIB" 1>&6
1596 echo "$ac_t""no" 1>&6
1599 for ac_prog
in 'bison -y' byacc
1601 # Extract the first word of "$ac_prog", so it can be a program name with args.
1602 set dummy
$ac_prog; ac_word
=$2
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_word" >&5
1605 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 if test -n "$YACC"; then
1609 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1611 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1613 for ac_dir
in $ac_dummy; do
1614 test -z "$ac_dir" && ac_dir
=.
1615 if test -f $ac_dir/$ac_word; then
1616 ac_cv_prog_YACC
="$ac_prog"
1623 YACC
="$ac_cv_prog_YACC"
1624 if test -n "$YACC"; then
1625 echo "$ac_t""$YACC" 1>&6
1627 echo "$ac_t""no" 1>&6
1630 test -n "$YACC" && break
1632 test -n "$YACC" || YACC
="yacc"
1634 # Find a good install program. We prefer a C program (faster),
1635 # so one script is as good as another. But avoid the broken or
1636 # incompatible versions:
1637 # SysV /etc/install, /usr/sbin/install
1638 # SunOS /usr/etc/install
1639 # IRIX /sbin/install
1641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1643 # ./install, which can be erroneously created by make from ./install.sh.
1644 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1645 echo "configure:1646: checking for a BSD compatible install" >&5
1646 if test -z "$INSTALL"; then
1647 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1651 for ac_dir
in $PATH; do
1652 # Account for people who put trailing slashes in PATH elements.
1654 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1656 # OSF1 and SCO ODT 3.0 have their own names for install.
1657 for ac_prog
in ginstall scoinst
install; do
1658 if test -f $ac_dir/$ac_prog; then
1659 if test $ac_prog = install &&
1660 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1661 # AIX install. It has an incompatible calling convention.
1662 # OSF/1 installbsd also uses dspmsg, but is usable.
1665 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1676 if test "${ac_cv_path_install+set}" = set; then
1677 INSTALL
="$ac_cv_path_install"
1679 # As a last resort, use the slow shell script. We don't cache a
1680 # path for INSTALL within a source directory, because that will
1681 # break other packages using the cache if that directory is
1682 # removed, or if the path is relative.
1683 INSTALL
="$ac_install_sh"
1686 echo "$ac_t""$INSTALL" 1>&6
1688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1689 # It thinks the first close brace ends the variable substitution.
1690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1692 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1695 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1696 echo "configure:1697: checking how to run the C preprocessor" >&5
1697 # On Suns, sometimes $CPP names a directory.
1698 if test -n "$CPP" && test -d "$CPP"; then
1701 if test -z "$CPP"; then
1702 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 # This must be in double quotes, not single quotes, because CPP may get
1706 # substituted into the Makefile and "${CC-cc}" will confuse make.
1708 # On the NeXT, cc -E runs the code through the compiler's parser,
1709 # not just through cpp.
1710 cat > conftest.
$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1716 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure
:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1719 if test -z "$ac_err"; then
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 CPP
="${CC-cc} -E -traditional-cpp"
1727 cat > conftest.
$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1734 { (eval echo configure
:1735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1736 if test -z "$ac_err"; then
1740 echo "configure: failed program was:" >&5
1741 cat conftest.
$ac_ext >&5
1743 CPP
="${CC-cc} -nologo -E"
1744 cat > conftest.
$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1751 { (eval echo configure
:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1753 if test -z "$ac_err"; then
1757 echo "configure: failed program was:" >&5
1758 cat conftest.
$ac_ext >&5
1767 ac_cv_prog_CPP
="$CPP"
1769 CPP
="$ac_cv_prog_CPP"
1771 ac_cv_prog_CPP
="$CPP"
1773 echo "$ac_t""$CPP" 1>&6
1775 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1776 echo "configure:1777: checking for ANSI C header files" >&5
1777 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1788 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1789 { (eval echo configure
:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1790 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1791 if test -z "$ac_err"; then
1793 ac_cv_header_stdc
=yes
1796 echo "configure: failed program was:" >&5
1797 cat conftest.
$ac_ext >&5
1799 ac_cv_header_stdc
=no
1803 if test $ac_cv_header_stdc = yes; then
1804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1805 cat > conftest.
$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1811 egrep "memchr" >/dev
/null
2>&1; then
1815 ac_cv_header_stdc
=no
1821 if test $ac_cv_header_stdc = yes; then
1822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1823 cat > conftest.
$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1829 egrep "free" >/dev
/null
2>&1; then
1833 ac_cv_header_stdc
=no
1839 if test $ac_cv_header_stdc = yes; then
1840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1841 if test "$cross_compiling" = yes; then
1844 cat > conftest.
$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1848 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1849 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1851 int main () { int i; for (i = 0; i < 256; i++)
1852 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1856 if { (eval echo configure
:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1863 ac_cv_header_stdc
=no
1871 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1872 if test $ac_cv_header_stdc = yes; then
1873 cat >> confdefs.h
<<\EOF
1874 #define STDC_HEADERS 1
1879 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1880 echo "configure:1881: checking whether time.h and sys/time.h may both be included" >&5
1881 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.
$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <sys/types.h>
1888 #include <sys/time.h>
1894 if { (eval echo configure
:1895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1896 ac_cv_header_time
=yes
1898 echo "configure: failed program was:" >&5
1899 cat conftest.
$ac_ext >&5
1901 ac_cv_header_time
=no
1906 echo "$ac_t""$ac_cv_header_time" 1>&6
1907 if test $ac_cv_header_time = yes; then
1908 cat >> confdefs.h
<<\EOF
1909 #define TIME_WITH_SYS_TIME 1
1914 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether string.h and strings.h may both be included" >&5
1916 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1923 #include <strings.h>
1928 if { (eval echo configure
:1929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1930 gcc_cv_header_string
=yes
1932 echo "configure: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1935 gcc_cv_header_string
=no
1940 echo "$ac_t""$gcc_cv_header_string" 1>&6
1941 if test $gcc_cv_header_string = yes; then
1942 cat >> confdefs.h
<<\EOF
1943 #define STRING_WITH_STRINGS 1
1948 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1949 echo "configure:1950: checking for sys/wait.h that is POSIX.1 compatible" >&5
1950 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.
$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 #include <sys/types.h>
1957 #include <sys/wait.h>
1959 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1962 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1967 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1970 if { (eval echo configure
:1971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1972 ac_cv_header_sys_wait_h
=yes
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 ac_cv_header_sys_wait_h
=no
1982 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1983 if test $ac_cv_header_sys_wait_h = yes; then
1984 cat >> confdefs.h
<<\EOF
1985 #define HAVE_SYS_WAIT_H 1
1990 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1991 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1992 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1995 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_hdr" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.
$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2006 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure
:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2009 if test -z "$ac_err"; then
2011 eval "ac_cv_header_$ac_safe=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 eval "ac_cv_header_$ac_safe=no"
2021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2024 cat >> confdefs.h
<<EOF
2025 #define $ac_tr_hdr 1
2029 echo "$ac_t""no" 1>&6
2034 # Check for thread headers.
2035 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2036 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2037 echo "configure:2038: checking for thread.h" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure
:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2051 eval "ac_cv_header_$ac_safe=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 eval "ac_cv_header_$ac_safe=no"
2061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2062 echo "$ac_t""yes" 1>&6
2065 echo "$ac_t""no" 1>&6
2069 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2070 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2071 echo "configure:2072: checking for pthread.h" >&5
2072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 #include <pthread.h>
2080 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2081 { (eval echo configure
:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2082 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2083 if test -z "$ac_err"; then
2085 eval "ac_cv_header_$ac_safe=yes"
2088 echo "configure: failed program was:" >&5
2089 cat conftest.
$ac_ext >&5
2091 eval "ac_cv_header_$ac_safe=no"
2095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2096 echo "$ac_t""yes" 1>&6
2099 echo "$ac_t""no" 1>&6
2104 # See if GNAT has been installed
2105 # Extract the first word of "gnatbind", so it can be a program name with args.
2106 set dummy gnatbind
; ac_word
=$2
2107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2108 echo "configure:2109: checking for $ac_word" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 if test -n "$gnat"; then
2113 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2115 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2117 for ac_dir
in $ac_dummy; do
2118 test -z "$ac_dir" && ac_dir
=.
2119 if test -f $ac_dir/$ac_word; then
2120 ac_cv_prog_gnat
="yes"
2125 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2128 gnat
="$ac_cv_prog_gnat"
2129 if test -n "$gnat"; then
2130 echo "$ac_t""$gnat" 1>&6
2132 echo "$ac_t""no" 1>&6
2136 # See if the stage1 system preprocessor understands the ANSI C
2137 # preprocessor stringification operator.
2140 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2141 echo "configure:2142: checking for preprocessor stringizing operator" >&5
2142 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2151 char *s = x(teststring);
2154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2155 egrep "#teststring" >/dev
/null
2>&1; then
2157 ac_cv_c_stringize
=no
2160 ac_cv_c_stringize
=yes
2166 if test "${ac_cv_c_stringize}" = yes
2168 cat >> confdefs.h
<<\EOF
2169 #define HAVE_STRINGIZE 1
2173 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2176 # Use <inttypes.h> only if it exists,
2177 # doesn't clash with <sys/types.h>, and declares intmax_t.
2178 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2179 echo "configure:2180: checking for inttypes.h" >&5
2180 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <sys/types.h>
2187 #include <inttypes.h>
2192 if { (eval echo configure
:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2194 gcc_cv_header_inttypes_h
=yes
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 gcc_cv_header_inttypes_h
=no
2204 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2205 if test $gcc_cv_header_inttypes_h = yes; then
2206 cat >> confdefs.h
<<\EOF
2207 #define HAVE_INTTYPES_H 1
2213 # Determine if enumerated bitfields are unsigned. ISO C says they can
2214 # be either signed or unsigned.
2216 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2217 echo "configure:2218: checking for unsigned enumerated bitfields" >&5
2218 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 if test "$cross_compiling" = yes; then
2222 gcc_cv_enum_bf_unsigned
=yes
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2228 enum t { BLAH = 128 } ;
2229 struct s_t { enum t member : 8; } s ;
2233 if (s.member < 0) exit(1);
2238 if { (eval echo configure
:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2240 gcc_cv_enum_bf_unsigned
=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.
$ac_ext >&5
2245 gcc_cv_enum_bf_unsigned
=no
2252 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2253 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2254 if test $gcc_cv_enum_bf_unsigned = yes; then
2255 cat >> confdefs.h
<<\EOF
2256 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2261 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2262 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2263 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2264 fputs_unlocked getrusage valloc
2266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_func" >&5
2268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.
$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 /* System header to define __stub macros and hopefully few prototypes,
2275 which can conflict with char $ac_func(); below. */
2277 /* Override any gcc2 internal prototype to avoid an error. */
2278 /* We use char because int might match the return type of a gcc2
2279 builtin and then its argument prototype would still apply. */
2285 /* The GNU C library defines this for functions which it implements
2286 to always fail with ENOSYS. Some functions are actually named
2287 something starting with __ and the normal name is an alias. */
2288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2296 if { (eval echo configure
:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2298 eval "ac_cv_func_$ac_func=yes"
2300 echo "configure: failed program was:" >&5
2301 cat conftest.
$ac_ext >&5
2303 eval "ac_cv_func_$ac_func=no"
2308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2309 echo "$ac_t""yes" 1>&6
2310 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2311 cat >> confdefs.h
<<EOF
2312 #define $ac_tr_func 1
2316 echo "$ac_t""no" 1>&6
2321 # Make sure wchar_t is available
2322 #AC_CHECK_TYPE(wchar_t, unsigned int)
2324 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2325 echo "configure:2326: checking for vprintf" >&5
2326 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.
$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2332 /* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char vprintf(); below. */
2335 /* Override any gcc2 internal prototype to avoid an error. */
2336 /* We use char because int might match the return type of a gcc2
2337 builtin and then its argument prototype would still apply. */
2343 /* The GNU C library defines this for functions which it implements
2344 to always fail with ENOSYS. Some functions are actually named
2345 something starting with __ and the normal name is an alias. */
2346 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2354 if { (eval echo configure
:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2356 eval "ac_cv_func_vprintf=yes"
2358 echo "configure: failed program was:" >&5
2359 cat conftest.
$ac_ext >&5
2361 eval "ac_cv_func_vprintf=no"
2366 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 cat >> confdefs.h
<<\EOF
2369 #define HAVE_VPRINTF 1
2373 echo "$ac_t""no" 1>&6
2376 if test "$ac_cv_func_vprintf" != yes; then
2377 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2378 echo "configure:2379: checking for _doprnt" >&5
2379 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 cat > conftest.
$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2385 /* System header to define __stub macros and hopefully few prototypes,
2386 which can conflict with char _doprnt(); below. */
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2396 /* The GNU C library defines this for functions which it implements
2397 to always fail with ENOSYS. Some functions are actually named
2398 something starting with __ and the normal name is an alias. */
2399 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2407 if { (eval echo configure
:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2409 eval "ac_cv_func__doprnt=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.
$ac_ext >&5
2414 eval "ac_cv_func__doprnt=no"
2419 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421 cat >> confdefs.h
<<\EOF
2422 #define HAVE_DOPRNT 1
2426 echo "$ac_t""no" 1>&6
2433 if test $ac_cv_func_vprintf != yes ; then
2435 if test $ac_cv_func__doprnt != yes ; then
2442 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2443 echo "configure:2444: checking whether the printf functions support %p" >&5
2444 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 if test "$cross_compiling" = yes; then
2448 gcc_cv_func_printf_ptr
=no
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2458 char *p = buf, *q = NULL;
2459 sprintf(buf, "%p", p);
2460 sscanf(buf, "%p", &q);
2464 if { (eval echo configure
:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2466 gcc_cv_func_printf_ptr
=yes
2468 echo "configure: failed program was:" >&5
2469 cat conftest.
$ac_ext >&5
2471 gcc_cv_func_printf_ptr
=no
2476 rm -f core core.
* *.core
2479 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2480 if test $gcc_cv_func_printf_ptr = yes ; then
2481 cat >> confdefs.h
<<\EOF
2482 #define HAVE_PRINTF_PTR 1
2490 # Under some versions of uwin, vfork is notoriously buggy and the test
2491 # can hang configure; on other versions, vfork exists just as a stub.
2492 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2493 ac_cv_func_vfork_works
=no
2496 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2497 echo "configure:2498: checking for pid_t" >&5
2498 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 cat > conftest.
$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #include <sys/types.h>
2510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2511 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2513 ac_cv_type_pid_t
=yes
2521 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2522 if test $ac_cv_type_pid_t = no
; then
2523 cat >> confdefs.h
<<\EOF
2529 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2530 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2531 echo "configure:2532: checking for vfork.h" >&5
2532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 cat > conftest.
$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2540 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2541 { (eval echo configure
:2542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2542 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2543 if test -z "$ac_err"; then
2545 eval "ac_cv_header_$ac_safe=yes"
2548 echo "configure: failed program was:" >&5
2549 cat conftest.
$ac_ext >&5
2551 eval "ac_cv_header_$ac_safe=no"
2555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2557 cat >> confdefs.h
<<\EOF
2558 #define HAVE_VFORK_H 1
2562 echo "$ac_t""no" 1>&6
2565 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2566 echo "configure:2567: checking for working vfork" >&5
2567 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 if test "$cross_compiling" = yes; then
2571 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2572 echo "configure:2573: checking for vfork" >&5
2573 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2579 /* System header to define __stub macros and hopefully few prototypes,
2580 which can conflict with char vfork(); below. */
2582 /* Override any gcc2 internal prototype to avoid an error. */
2583 /* We use char because int might match the return type of a gcc2
2584 builtin and then its argument prototype would still apply. */
2590 /* The GNU C library defines this for functions which it implements
2591 to always fail with ENOSYS. Some functions are actually named
2592 something starting with __ and the normal name is an alias. */
2593 #if defined (__stub_vfork) || defined (__stub___vfork)
2601 if { (eval echo configure
:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2603 eval "ac_cv_func_vfork=yes"
2605 echo "configure: failed program was:" >&5
2606 cat conftest.
$ac_ext >&5
2608 eval "ac_cv_func_vfork=no"
2613 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2617 echo "$ac_t""no" 1>&6
2620 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2622 cat > conftest.
$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2625 /* Thanks to Paul Eggert for this test. */
2627 #include <sys/types.h>
2628 #include <sys/stat.h>
2629 #ifdef HAVE_UNISTD_H
2635 /* On some sparc systems, changes by the child to local and incoming
2636 argument registers are propagated back to the parent.
2637 The compiler is told about this with #include <vfork.h>,
2638 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2639 Test for this by using a static variable whose address
2640 is put into a register that is clobbered by the vfork. */
2643 sparc_address_test (int arg)
2645 sparc_address_test (arg) int arg;
2663 pid_t parent = getpid ();
2666 sparc_address_test ();
2671 /* Here is another test for sparc vfork register problems.
2672 This test uses lots of local variables, at least
2673 as many local variables as main has allocated so far
2674 including compiler temporaries. 4 locals are enough for
2675 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2676 A buggy compiler should reuse the register of parent
2677 for one of the local variables, since it will think that
2678 parent can't possibly be used any more in this routine.
2679 Assigning to the local variable will thus munge parent
2680 in the parent process. */
2682 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2683 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2684 /* Convince the compiler that p..p7 are live; otherwise, it might
2685 use the same hardware register for all 8 local variables. */
2686 if (p != p1 || p != p2 || p != p3 || p != p4
2687 || p != p5 || p != p6 || p != p7)
2690 /* On some systems (e.g. IRIX 3.3),
2691 vfork doesn't separate parent from child file descriptors.
2692 If the child closes a descriptor before it execs or exits,
2693 this munges the parent's descriptor as well.
2694 Test for this by closing stdout in the child. */
2695 _exit(close(fileno(stdout)) != 0);
2700 while (wait(&status) != child)
2703 /* Was there some problem with vforking? */
2706 /* Did the child fail? (This shouldn't happen.) */
2709 /* Did the vfork/compiler bug occur? */
2710 || parent != getpid()
2712 /* Did the file descriptor bug occur? */
2713 || fstat(fileno(stdout), &st) != 0
2718 if { (eval echo configure
:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2720 ac_cv_func_vfork_works
=yes
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 ac_cv_func_vfork_works
=no
2732 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2733 if test $ac_cv_func_vfork_works = no
; then
2734 cat >> confdefs.h
<<\EOF
2740 for ac_hdr
in unistd.h
2742 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2744 echo "configure:2745: checking for $ac_hdr" >&5
2745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2748 cat > conftest.
$ac_ext <<EOF
2749 #line 2750 "configure"
2750 #include "confdefs.h"
2753 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2754 { (eval echo configure
:2755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2755 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2756 if test -z "$ac_err"; then
2758 eval "ac_cv_header_$ac_safe=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.
$ac_ext >&5
2764 eval "ac_cv_header_$ac_safe=no"
2768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2770 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2771 cat >> confdefs.h
<<EOF
2772 #define $ac_tr_hdr 1
2776 echo "$ac_t""no" 1>&6
2780 for ac_func
in getpagesize
2782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_func" >&5
2784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 cat > conftest.
$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790 /* System header to define __stub macros and hopefully few prototypes,
2791 which can conflict with char $ac_func(); below. */
2793 /* Override any gcc2 internal prototype to avoid an error. */
2794 /* We use char because int might match the return type of a gcc2
2795 builtin and then its argument prototype would still apply. */
2801 /* The GNU C library defines this for functions which it implements
2802 to always fail with ENOSYS. Some functions are actually named
2803 something starting with __ and the normal name is an alias. */
2804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2812 if { (eval echo configure
:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2814 eval "ac_cv_func_$ac_func=yes"
2816 echo "configure: failed program was:" >&5
2817 cat conftest.
$ac_ext >&5
2819 eval "ac_cv_func_$ac_func=no"
2824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2827 cat >> confdefs.h
<<EOF
2828 #define $ac_tr_func 1
2832 echo "$ac_t""no" 1>&6
2836 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2837 echo "configure:2838: checking for working mmap from /dev/zero" >&5
2838 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 if test "$cross_compiling" = yes; then
2842 ac_cv_func_mmap_anywhere
=no
2844 cat > conftest.
$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2848 /* Test by Richard Henderson and Alexandre Oliva.
2849 Check whether mmap from /dev/zero works. */
2850 #include <sys/types.h>
2852 #include <sys/mman.h>
2854 /* This mess was copied from the GNU getpagesize.h. */
2855 #ifndef HAVE_GETPAGESIZE
2856 # ifdef HAVE_UNISTD_H
2857 # include <unistd.h>
2860 /* Assume that all systems that can run configure have sys/param.h. */
2861 # ifndef HAVE_SYS_PARAM_H
2862 # define HAVE_SYS_PARAM_H 1
2865 # ifdef _SC_PAGESIZE
2866 # define getpagesize() sysconf(_SC_PAGESIZE)
2867 # else /* no _SC_PAGESIZE */
2868 # ifdef HAVE_SYS_PARAM_H
2869 # include <sys/param.h>
2870 # ifdef EXEC_PAGESIZE
2871 # define getpagesize() EXEC_PAGESIZE
2872 # else /* no EXEC_PAGESIZE */
2874 # define getpagesize() NBPG * CLSIZE
2877 # endif /* no CLSIZE */
2878 # else /* no NBPG */
2880 # define getpagesize() NBPC
2881 # else /* no NBPC */
2883 # define getpagesize() PAGESIZE
2884 # endif /* PAGESIZE */
2885 # endif /* no NBPC */
2886 # endif /* no NBPG */
2887 # endif /* no EXEC_PAGESIZE */
2888 # else /* no HAVE_SYS_PARAM_H */
2889 # define getpagesize() 8192 /* punt totally */
2890 # endif /* no HAVE_SYS_PARAM_H */
2891 # endif /* no _SC_PAGESIZE */
2893 #endif /* no HAVE_GETPAGESIZE */
2900 fd = open("/dev/zero", O_RDWR);
2905 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
2906 if (x == (char *) -1)
2911 if (munmap(x, pg) < 0)
2917 if { (eval echo configure
:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2919 ac_cv_func_mmap_anywhere
=yes
2921 echo "configure: failed program was:" >&5
2922 cat conftest.
$ac_ext >&5
2924 ac_cv_func_mmap_anywhere
=no
2931 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
2932 if test $ac_cv_func_mmap_anywhere = yes; then
2933 cat >> confdefs.h
<<\EOF
2934 #define HAVE_MMAP_ANYWHERE 1
2939 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
2940 echo "configure:2941: checking for working mmap of a file" >&5
2941 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 # Create a file one thousand bytes long.
2945 for i
in 1 2 3 4 5 6 7 8 9 0
2946 do for j
in 1 2 3 4 5 6 7 8 9 0
2949 done > conftestdata$$
2951 if test "$cross_compiling" = yes; then
2952 ac_cv_func_mmap_file
=no
2954 cat > conftest.
$ac_ext <<EOF
2955 #line 2956 "configure"
2956 #include "confdefs.h"
2958 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
2959 Richard Henderson and Alexandre Oliva.
2960 Check whether read-only mmap of a plain file works. */
2961 #include <sys/types.h>
2962 #include <sys/stat.h>
2964 #include <sys/mman.h>
2972 fd = open("conftestdata$$", O_RDONLY);
2976 if (fstat (fd, &st))
2979 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
2980 if (x == (char *) -1)
2983 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
2986 if (munmap(x, st.st_size) < 0)
2992 if { (eval echo configure
:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2994 ac_cv_func_mmap_file
=yes
2996 echo "configure: failed program was:" >&5
2997 cat conftest.
$ac_ext >&5
2999 ac_cv_func_mmap_file
=no
3006 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3007 if test $ac_cv_func_mmap_file = yes; then
3008 cat >> confdefs.h
<<\EOF
3009 #define HAVE_MMAP_FILE 1
3015 for ac_func
in bcopy bzero bcmp \
3016 index rindex getenv atol sbrk abort atof getcwd getwd \
3017 strsignal putc_unlocked fputs_unlocked strstr environ
3019 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3020 echo "configure:3021: checking whether $ac_func must be declared" >&5
3021 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.
$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3029 #ifdef STRING_WITH_STRINGS
3030 # include <string.h>
3031 # include <strings.h>
3033 # ifdef HAVE_STRING_H
3034 # include <string.h>
3036 # ifdef HAVE_STRINGS_H
3037 # include <strings.h>
3041 #ifdef HAVE_STDLIB_H
3044 #ifdef HAVE_UNISTD_H
3049 #define rindex strrchr
3054 #define index strchr
3059 char *(*pfn) = (char *(*)) $ac_func
3062 if { (eval echo configure
:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3064 eval "gcc_cv_decl_needed_$ac_func=no"
3066 echo "configure: failed program was:" >&5
3067 cat conftest.
$ac_ext >&5
3069 eval "gcc_cv_decl_needed_$ac_func=yes"
3074 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3075 echo "$ac_t""yes" 1>&6
3076 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3077 cat >> confdefs.h
<<EOF
3078 #define $gcc_tr_decl 1
3082 echo "$ac_t""no" 1>&6
3088 for ac_func
in malloc realloc calloc free
3090 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3091 echo "configure:3092: checking whether $ac_func must be declared" >&5
3092 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3093 echo $ac_n "(cached) $ac_c" 1>&6
3095 cat > conftest.
$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3100 #ifdef STRING_WITH_STRINGS
3101 # include <string.h>
3102 # include <strings.h>
3104 # ifdef HAVE_STRING_H
3105 # include <string.h>
3107 # ifdef HAVE_STRINGS_H
3108 # include <strings.h>
3112 #ifdef HAVE_STDLIB_H
3115 #ifdef HAVE_UNISTD_H
3120 #define rindex strrchr
3125 #define index strchr
3128 #ifdef HAVE_MALLOC_H
3133 char *(*pfn) = (char *(*)) $ac_func
3136 if { (eval echo configure
:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3138 eval "gcc_cv_decl_needed_$ac_func=no"
3140 echo "configure: failed program was:" >&5
3141 cat conftest.
$ac_ext >&5
3143 eval "gcc_cv_decl_needed_$ac_func=yes"
3148 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3151 cat >> confdefs.h
<<EOF
3152 #define $gcc_tr_decl 1
3156 echo "$ac_t""no" 1>&6
3162 for ac_func
in getrlimit setrlimit getrusage
3164 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3165 echo "configure:3166: checking whether $ac_func must be declared" >&5
3166 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 cat > conftest.
$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3174 #ifdef STRING_WITH_STRINGS
3175 # include <string.h>
3176 # include <strings.h>
3178 # ifdef HAVE_STRING_H
3179 # include <string.h>
3181 # ifdef HAVE_STRINGS_H
3182 # include <strings.h>
3186 #ifdef HAVE_STDLIB_H
3189 #ifdef HAVE_UNISTD_H
3194 #define rindex strrchr
3199 #define index strchr
3202 #include <sys/types.h>
3203 #ifdef HAVE_SYS_RESOURCE_H
3204 #include <sys/resource.h>
3208 char *(*pfn) = (char *(*)) $ac_func
3211 if { (eval echo configure
:3212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3213 eval "gcc_cv_decl_needed_$ac_func=no"
3215 echo "configure: failed program was:" >&5
3216 cat conftest.
$ac_ext >&5
3218 eval "gcc_cv_decl_needed_$ac_func=yes"
3223 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3224 echo "$ac_t""yes" 1>&6
3225 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3226 cat >> confdefs.h
<<EOF
3227 #define $gcc_tr_decl 1
3231 echo "$ac_t""no" 1>&6
3237 # mkdir takes a single argument on some systems.
3238 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3239 echo "configure:3240: checking if mkdir takes one argument" >&5
3240 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.
$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3247 #include <sys/types.h>
3248 #ifdef HAVE_SYS_STAT_H
3249 # include <sys/stat.h>
3251 #ifdef HAVE_UNISTD_H
3252 # include <unistd.h>
3254 #ifdef HAVE_DIRECT_H
3255 # include <direct.h>
3261 if { (eval echo configure
:3262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263 gcc_cv_mkdir_takes_one_arg
=no
3265 echo "configure: failed program was:" >&5
3266 cat conftest.
$ac_ext >&5
3268 gcc_cv_mkdir_takes_one_arg
=yes
3273 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3274 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3275 cat >> confdefs.h
<<\EOF
3276 #define MKDIR_TAKES_ONE_ARG 1
3290 build_install_headers_dir
=install-headers-tar
3295 host_truncate_target
=
3298 # Decode the host machine, then the target machine.
3299 # For the host machine, we save the xm_file variable as host_xm_file;
3300 # then we decode the target machine and forget everything else
3301 # that came from the host machine.
3302 for machine
in $build $host $target; do
3316 # Set this to force installation and use of collect2.
3318 # Set this to override the default target model.
3320 # Set this to control how the header file directory is installed.
3321 install_headers_dir
=install-headers-tar
3322 # Set this to a non-empty list of args to pass to cpp if the target
3323 # wants its .md file passed through cpp.
3325 # Set this if directory names should be truncated to 14 characters.
3327 # Set this if gdb needs a dir command with `dirname $out_file`
3328 gdb_needs_out_file_path
=
3329 # Set this if the build machine requires executables to have a
3332 # Set this to control which thread package will be used.
3334 # Reinitialize these from the flag values every loop pass, since some
3335 # configure entries modify them.
3337 gnu_ld
="$gnu_ld_flag"
3338 enable_threads
=$enable_threads_flag
3340 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3341 # updated in each machine entry.
3343 cpu_type
=`echo $machine | sed 's/-.*$//'`
3380 tm_file
=${cpu_type}/${cpu_type}.h
3381 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3382 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3384 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3386 # On a.out targets, we need to use collect2.
3393 # Common parts for linux-gnu and openbsd systems
3396 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3399 tm_file
=${cpu_type}/openbsd.h
3400 tmake_file
="t-libc-ok t-openbsd"
3401 # avoid surprises, always provide an xm-openbsd file
3402 xm_file
=${cpu_type}/xm-openbsd.h
3403 # don't depend on processor x-fragments as well
3405 if test x
$enable_threads = xyes
; then
3407 tmake_file
="${tmake_file} t-openbsd-thread"
3413 # Support site-specific machine types.
3415 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3416 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3417 xm_file
=${cpu_type}/xm-
$rest.h
3418 tm_file
=${cpu_type}/$rest.h
3419 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3420 then xmake_file
=${cpu_type}/x-
$rest; \
3423 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3424 then tmake_file
=${cpu_type}/t-
$rest; \
3430 a29k-
*-bsd* | a29k-
*-sym1*)
3431 tm_file
="${tm_file} a29k/unix.h"
3433 xmake_file
=a29k
/x-unix
3436 a29k-
*-udi | a29k-
*-coff)
3437 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3438 tmake_file
=a29k
/t-a29kbare
3441 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3442 tmake_file
=a29k
/t-vx29k
3443 extra_parts
="crtbegin.o crtend.o"
3444 thread_file
='vxworks'
3446 a29k-
*-*) # Default a29k environment.
3450 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3452 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3453 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3455 # GAS + IEEE_CONFORMANT
3456 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3458 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3459 xmake_file
="x-interix alpha/t-pe"
3460 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3461 if test x
$enable_threads = xyes
; then
3464 if test x
$stabs = xyes
; then
3465 tm_file
="${tm_file} dbxcoff.h"
3467 #prefix='$$INTERIX_ROOT'/usr/contrib
3468 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3470 alpha
*-*-linux-gnuecoff*)
3471 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3472 target_cpu_default
="MASK_GAS"
3473 tmake_file
="alpha/t-alpha alpha/t-ieee"
3478 alpha
*-*-linux-gnulibc1*)
3479 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3480 target_cpu_default
="MASK_GAS"
3481 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3482 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3485 if test x
$enable_threads = xyes
; then
3489 alpha
*-*-linux-gnu*)
3490 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3491 target_cpu_default
="MASK_GAS"
3492 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3493 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3496 if test x
$enable_threads = xyes
; then
3501 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3502 target_cpu_default
="MASK_GAS"
3503 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3504 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3510 # default x-alpha is only appropriate for dec-osf.
3511 target_cpu_default
="MASK_GAS"
3512 tmake_file
="alpha/t-alpha alpha/t-ieee"
3516 if test x
$stabs = xyes
3518 tm_file
="${tm_file} dbx.h"
3520 if test x
$gas != xyes
3522 extra_passes
="mips-tfile mips-tdump"
3525 tmake_file
="alpha/t-alpha alpha/t-ieee"
3528 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3531 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3534 tm_file
="${tm_file} alpha/osf.h"
3535 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3536 # a broken tar, so we use cpio instead.
3537 install_headers_dir
=install-headers-cpio
3540 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3544 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3545 target_cpu_default
=MASK_SUPPORT_ARCH
3550 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3551 tmake_file
="alpha/t-alpha alpha/t-ieee"
3554 extra_passes
="mips-tfile mips-tdump"
3557 thread_file
='vxworks'
3560 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3561 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3562 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3563 xmake_file
=winnt
/x-winnt
3564 extra_host_objs
=oldnames.o
3565 extra_gcc_objs
="spawnv.o oldnames.o"
3566 if test x
$gnu_ld != xyes
3568 extra_programs
=ld.exe
3570 if test x
$enable_threads = xyes
; then
3576 xm_file
="${xm_file} alpha/xm-vms.h"
3577 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3580 extra_parts
="crtinit.o crtfini.o"
3582 arm-
*-coff* | armel-
*-coff*)
3584 tmake_file
=arm
/t-arm-coff
3588 tmake_file
=arm
/t-arm-coff
3589 thread_file
='vxworks'
3591 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3592 tm_file
=arm
/riscix1-1.h
3595 arm-
*-riscix*) # Acorn RISC machine
3596 if test x
$gas = xyes
3598 tm_file
=arm
/rix-gas.h
3600 tm_file
=arm
/riscix.h
3602 xmake_file
=arm
/x-riscix
3603 tmake_file
=arm
/t-riscix
3606 arm-semi-aout | armel-semi-aout
)
3608 tmake_file
=arm
/t-semi
3610 arm-semi-aof | armel-semi-aof
)
3611 tm_file
=arm
/semiaof.h
3612 tmake_file
=arm
/t-semiaof
3615 tm_file
=arm
/netbsd.h
3616 tmake_file
="t-netbsd arm/t-netbsd"
3619 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3622 tm_file
=arm
/linux-aout.h
3623 tmake_file
=arm
/t-linux
3626 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3627 xm_file
=arm
/xm-linux.h
3629 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3632 tm_file
="arm/linux-elf26.h $tm_file"
3635 tmake_file
="t-linux arm/t-linux"
3636 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3638 case x
${enable_threads} in
3639 x | xyes | xpthreads | xposix
)
3644 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3645 xm_file
=arm
/xm-linux.h
3647 tm_file
="arm/linux-elf.h"
3650 tm_file
="arm/linux-elf26.h $tm_file"
3653 tmake_file
="t-linux arm/t-linux"
3654 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3656 case x
${enable_threads} in
3657 x | xyes | xpthreads | xposix
)
3662 arm
*-*-uclinux*) # ARM ucLinux
3663 tm_file
=arm
/uclinux-elf.h
3664 tmake_file
=arm
/t-arm-elf
3668 tmake_file
=arm
/t-arm-aout
3671 tm_file
=arm
/ecos-elf.h
3672 tmake_file
=arm
/t-arm-elf
3675 tm_file
=arm
/unknown-elf.h
3676 tmake_file
=arm
/t-arm-elf
3679 tm_file
=arm
/conix-elf.h
3680 tmake_file
=arm
/t-arm-elf
3683 tm_file
=arm
/unknown-elf-oabi.h
3684 tmake_file
=arm
/t-arm-elf
3693 c1-convex-
*) # Convex C1
3694 target_cpu_default
=1
3697 c2-convex-
*) # Convex C2
3698 target_cpu_default
=2
3702 target_cpu_default
=4
3706 target_cpu_default
=8
3710 target_cpu_default
=16
3715 tmake_file
=c4x
/t-c4x
3717 clipper-intergraph-clix
*)
3718 tm_file
="${tm_file} svr3.h clipper/clix.h"
3719 xm_file
=clipper
/xm-clix.h
3720 xmake_file
=clipper
/x-clix
3721 extra_headers
=va-clipper.h
3722 extra_parts
="crtbegin.o crtend.o"
3723 install_headers_dir
=install-headers-cpio
3731 tm_file
="fr30/fr30.h"
3732 tmake_file
=fr30
/t-fr30
3733 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3735 # This hasn't been upgraded to GCC 2.
3736 # fx80-alliant-*) # Alliant FX/80
3742 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3743 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3744 tmake_file
="t-linux pa/t-linux"
3745 extra_parts
="crtbegin.o crtend.o"
3748 if test x
$enable_threads = xyes
; then
3753 target_cpu_default
="MASK_PA_11"
3754 tmake_file
=pa
/t-openbsd
3757 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3758 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3759 xm_file
=pa
/xm-papro.h
3763 target_cpu_default
="MASK_PA_11"
3764 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3768 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3769 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3770 xm_file
=pa
/xm-papro.h
3774 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3778 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3779 target_cpu_default
="MASK_PA_11"
3783 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3787 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3788 xm_file
=pa
/xm-pahpux.h
3789 xmake_file
=pa
/x-pa-hpux
3790 if test x
$gas = xyes
3792 tm_file
="${tm_file} pa/gas.h"
3794 install_headers_dir
=install-headers-cpio
3797 hppa1.0
-*-hpux8.0
[0-2]*)
3798 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3799 xm_file
=pa
/xm-pahpux.h
3800 xmake_file
=pa
/x-pa-hpux
3801 if test x
$gas = xyes
3803 tm_file
="${tm_file} pa/pa-gas.h"
3805 tm_file
="pa/pa-oldas.h ${tm_file}"
3807 install_headers_dir
=install-headers-cpio
3810 hppa1.1
-*-hpux8.0
[0-2]*)
3811 target_cpu_default
="MASK_PA_11"
3812 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3813 xm_file
=pa
/xm-pahpux.h
3814 xmake_file
=pa
/x-pa-hpux
3815 if test x
$gas = xyes
3817 tm_file
="${tm_file} pa/pa-gas.h"
3819 tm_file
="pa/pa-oldas.h ${tm_file}"
3821 install_headers_dir
=install-headers-cpio
3825 target_cpu_default
="MASK_PA_11"
3826 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3827 xm_file
=pa
/xm-pahpux.h
3828 xmake_file
=pa
/x-pa-hpux
3829 if test x
$gas = xyes
3831 tm_file
="${tm_file} pa/pa-gas.h"
3833 install_headers_dir
=install-headers-cpio
3837 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3838 xm_file
=pa
/xm-pahpux.h
3839 xmake_file
=pa
/x-pa-hpux
3840 if test x
$gas = xyes
3842 tm_file
="${tm_file} pa/pa-gas.h"
3844 install_headers_dir
=install-headers-cpio
3847 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3848 target_cpu_default
="MASK_PA_11"
3849 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3851 xm_file
=pa
/xm-pahpux.h
3852 xmake_file
=pa
/x-pa-hpux
3854 if test x
$gas = xyes
3856 tm_file
="${tm_file} pa/pa-gas.h"
3858 if test x
$enable_threads = x
; then
3859 enable_threads
=$have_pthread_h
3861 if test x
$enable_threads = xyes
; then
3863 tmake_file
="${tmake_file} pa/t-dce-thr"
3865 install_headers_dir
=install-headers-cpio
3869 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3871 xm_file
=pa
/xm-pahpux.h
3872 xmake_file
=pa
/x-pa-hpux
3874 if test x
$gas = xyes
3876 tm_file
="${tm_file} pa/pa-gas.h"
3878 if test x
$enable_threads = x
; then
3879 enable_threads
=$have_pthread_h
3881 if test x
$enable_threads = xyes
; then
3883 tmake_file
="${tmake_file} pa/t-dce-thr"
3885 install_headers_dir
=install-headers-cpio
3888 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3889 target_cpu_default
="MASK_PA_11"
3890 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3892 xm_file
=pa
/xm-pahpux.h
3893 xmake_file
=pa
/x-pa-hpux
3895 if test x
$gas = xyes
3897 tm_file
="${tm_file} pa/pa-gas.h"
3899 # if test x$enable_threads = x; then
3900 # enable_threads=$have_pthread_h
3902 # if test x$enable_threads = xyes; then
3904 # tmake_file="${tmake_file} pa/t-dce-thr"
3906 install_headers_dir
=install-headers-cpio
3910 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3912 xm_file
=pa
/xm-pahpux.h
3913 xmake_file
=pa
/x-pa-hpux
3914 if test x
$gas = xyes
3916 tm_file
="${tm_file} pa/pa-gas.h"
3918 # if test x$enable_threads = x; then
3919 # enable_threads=$have_pthread_h
3921 # if test x$enable_threads = xyes; then
3923 # tmake_file="${tmake_file} pa/t-dce-thr"
3925 install_headers_dir
=install-headers-cpio
3928 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3929 target_cpu_default
="MASK_PA_11"
3930 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3931 xm_file
=pa
/xm-pahpux.h
3932 xmake_file
=pa
/x-pa-hpux
3933 if test x
$gas = xyes
3935 tm_file
="${tm_file} pa/pa-gas.h"
3937 install_headers_dir
=install-headers-cpio
3941 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3942 xm_file
=pa
/xm-pahpux.h
3943 xmake_file
=pa
/x-pa-hpux
3944 if test x
$gas = xyes
3946 tm_file
="${tm_file} pa/pa-gas.h"
3948 install_headers_dir
=install-headers-cpio
3951 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3952 target_cpu_default
="MASK_PA_11"
3953 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3954 xm_file
=pa
/xm-pahpux.h
3955 xmake_file
=pa
/x-pa-hpux
3956 if test x
$gas = xyes
3958 tm_file
="${tm_file} pa/pa-gas.h"
3960 install_headers_dir
=install-headers-cpio
3964 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3965 xm_file
=pa
/xm-pahpux.h
3966 xmake_file
=pa
/x-pa-hpux
3967 if test x
$gas = xyes
3969 tm_file
="${tm_file} pa/pa-gas.h"
3971 install_headers_dir
=install-headers-cpio
3975 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
3976 target_cpu_default
="MASK_PA_11"
3980 tm_file
="${tm_file} pa/pa-mpeix.h"
3981 xm_file
=pa
/xm-pampeix.h
3982 xmake_file
=pa
/x-pa-mpeix
3983 echo "You must use gas. Assuming it is already installed."
3984 install_headers_dir
=install-headers-tar
3987 i370-
*-opened*) # IBM 360/370/390 Architecture
3988 xm_file
=i370
/xm-oe.h
3990 xmake_file
=i370
/x-oe
3991 tmake_file
=i370
/t-oe
3994 xm_file
=i370
/xm-mvs.h
3996 tmake_file
=i370
/t-mvs
3999 xm_file
="xm-linux.h i370/xm-linux.h"
4001 tm_file
="i370/linux.h ${tm_file}"
4002 tmake_file
="t-linux i370/t-linux"
4003 # broken_install=yes
4004 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4005 # extra_parts="crtbegin.o crtend.o"
4009 if test x
$enable_threads = xyes
; then
4014 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4015 tm_file
=i386
/i386elf.h
4016 tmake_file
=i386
/t-i386elf
4019 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4020 if test x
$gas = xyes
4022 tm_file
=i386
/aix386.h
4023 extra_parts
="crtbegin.o crtend.o"
4024 tmake_file
=i386
/t-crtstuff
4026 tm_file
=i386
/aix386ng.h
4029 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4031 xmake_file
=i386
/x-aix
4033 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4034 xm_file
="xm-alloca.h ${xm_file}"
4035 xm_defines
="USG POSIX SMALL_ARG_MAX"
4036 xmake_file
=i386
/x-ncr3000
4037 if test x
$stabs = xyes
-a x
$gas = xyes
4039 tm_file
=i386
/sysv4gdb.h
4041 tm_file
=i386
/sysv4.h
4043 extra_parts
="crtbegin.o crtend.o"
4044 tmake_file
=i386
/t-crtpic
4048 xm_file
=i386
/xm-next.h
4049 tmake_file
=i386
/t-next
4050 xmake_file
=i386
/x-next
4051 extra_objs
=nextstep.o
4052 extra_parts
="crtbegin.o crtend.o"
4053 if test x
$enable_threads = xyes
; then
4057 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4059 if test x
$gas = xyes
4061 tm_file
=i386
/seq-gas.h
4063 tm_file
=i386
/sequent.h
4066 i
[34567]86-sequent-ptx1*)
4067 xm_defines
="USG SVR3"
4068 xmake_file
=i386
/x-sysv3
4069 tm_file
=i386
/seq-sysv3.h
4070 tmake_file
=i386
/t-crtstuff
4071 extra_parts
="crtbegin.o crtend.o"
4072 install_headers_dir
=install-headers-cpio
4074 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4075 xm_defines
="USG SVR3"
4076 xmake_file
=i386
/x-sysv3
4077 tm_file
=i386
/seq2-sysv3.h
4078 tmake_file
=i386
/t-crtstuff
4079 extra_parts
="crtbegin.o crtend.o"
4080 install_headers_dir
=install-headers-cpio
4082 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4083 xm_file
="xm-alloca.h ${xm_file}"
4084 xm_defines
="USG POSIX SMALL_ARG_MAX"
4086 tm_file
=i386
/ptx4-i.h
4088 extra_parts
="crtbegin.o crtend.o"
4089 install_headers_dir
=install-headers-cpio
4091 i386-sun-sunos
*) # Sun i386 roadrunner
4096 i
[34567]86-wrs-vxworks*)
4097 tm_file
=i386
/vxi386.h
4098 tmake_file
=i386
/t-i386bare
4099 thread_file
='vxworks'
4102 tm_file
=i386
/i386-aout.h
4103 tmake_file
=i386
/t-i386bare
4105 i
[34567]86-*-beospe*)
4106 xm_file
=i386
/xm-beos.h
4107 xm_defines
="USE_C_ALLOCA"
4108 tmake_file
=i386
/t-beos
4109 tm_file
=i386
/beos-pe.h
4110 xmake_file
=i386
/x-beos
4113 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4114 xm_file
=i386
/xm-beos.h
4115 tmake_file
='i386/t-beos i386/t-crtpic'
4116 tm_file
=i386
/beos-elf.h
4117 xmake_file
=i386
/x-beos
4119 extra_parts
='crtbegin.o crtend.o'
4121 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4122 tm_file
=i386
/bsd386.h
4123 # tmake_file=t-libc-ok
4126 tm_file
=i386
/386bsd.h
4127 # tmake_file=t-libc-ok
4128 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4131 i
[34567]86-*-freebsdelf*)
4132 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4133 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4134 tmake_file
=t-freebsd
4138 case x
${enable_threads} in
4139 xyes | xpthreads | xposix
)
4141 tmake_file
="${tmake_file} t-freebsd-thread"
4145 i
[34567]86-*-freebsd*)
4146 tm_file
="i386/freebsd.h i386/perform.h"
4147 tmake_file
=t-freebsd
4149 i
[34567]86-*-netbsd*)
4150 tm_file
=i386
/netbsd.h
4154 i
[34567]86-*-openbsd*)
4155 # we need collect2 until our bug is fixed...
4159 tm_file
=i386
/i386-coff.h
4160 tmake_file
=i386
/t-i386bare
4162 i
[34567]86-*-isc*) # 80386 running ISC system
4163 xm_file
="${xm_file} i386/xm-isc.h"
4164 xm_defines
="USG SVR3"
4166 i
[34567]86-*-isc[34]*)
4167 xmake_file
=i386
/x-isc3
4170 xmake_file
=i386
/x-isc
4173 if test x
$gas = xyes
-a x
$stabs = xyes
4175 tm_file
=i386
/iscdbx.h
4176 tmake_file
=i386
/t-svr3dbx
4177 extra_parts
="svr3.ifile svr3z.ifile"
4179 tm_file
=i386
/isccoff.h
4180 tmake_file
=i386
/t-crtstuff
4181 extra_parts
="crtbegin.o crtend.o"
4183 install_headers_dir
=install-headers-cpio
4185 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4187 xmake_file
=x-linux-aout
4188 tmake_file
="t-linux-aout i386/t-crtstuff"
4189 tm_file
=i386
/linux-oldld.h
4193 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4194 xmake_file
=x-linux-aout
4195 tmake_file
="t-linux-aout i386/t-crtstuff"
4196 tm_file
=i386
/linux-aout.h
4200 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4201 # GNU/Linux C library 5
4203 tm_file
=i386
/linux.h
4204 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4205 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4208 if test x
$enable_threads = xyes
; then
4209 thread_file
='single'
4212 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4213 # aka GNU/Linux C library 6
4215 tm_file
=i386
/linux.h
4216 tmake_file
="t-linux i386/t-crtstuff"
4217 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4220 if test x
$enable_threads = xyes
; then
4227 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4228 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4231 i
[34567]86-pc-msdosdjgpp*)
4232 xm_file
=i386
/xm-djgpp.h
4233 tm_file
=i386
/djgpp.h
4234 tmake_file
=i386
/t-djgpp
4235 xmake_file
=i386
/x-djgpp
4239 case $host in *pc-msdosdjgpp
*)
4244 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4246 tmake_file
=t-libc-ok
4250 i
[34567]86-*-lynxos*)
4251 if test x
$gas = xyes
4255 tm_file
=i386
/lynx-ng.h
4257 xm_file
=i386
/xm-lynx.h
4258 tmake_file
=i386
/t-i386bare
4263 # tmake_file=t-libc-ok
4266 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4267 if test x
$elf = xyes
4269 tm_file
=i386
/osfelf.h
4272 tm_file
=i386
/osfrose.h
4275 xm_file
="i386/xm-osf.h ${xm_file}"
4276 xmake_file
=i386
/x-osfrose
4277 tmake_file
=i386
/t-osf
4278 extra_objs
=halfpic.o
4280 i
[34567]86-go32-rtems*)
4282 xm_file
=i386
/xm-go32.h
4283 tm_file
=i386
/go32-rtems.h
4284 tmake_file
="i386/t-go32 t-rtems"
4286 i
[34567]86-*-rtemscoff*)
4288 tm_file
=i386
/rtems.h
4289 tmake_file
="i386/t-i386bare t-rtems"
4291 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4293 tm_file
=i386
/rtemself.h
4294 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4295 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4297 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4298 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4299 xm_defines
="USG SVR3"
4300 xmake_file
=i386
/x-sco5
4301 install_headers_dir
=install-headers-cpio
4303 if test x
$gas = xyes
4305 tm_file
="i386/sco5gas.h ${tm_file}"
4306 tmake_file
=i386
/t-sco5gas
4308 tmake_file
=i386
/t-sco5
4310 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4312 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4313 xm_file
="${xm_file} i386/xm-sco.h"
4314 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4315 xmake_file
=i386
/x-sco4
4316 install_headers_dir
=install-headers-cpio
4317 if test x
$stabs = xyes
4319 tm_file
=i386
/sco4dbx.h
4320 tmake_file
=i386
/t-svr3dbx
4321 extra_parts
="svr3.ifile svr3z.rfile"
4324 tmake_file
=i386
/t-crtstuff
4325 extra_parts
="crtbegin.o crtend.o"
4327 # The default EAFS filesystem supports long file names.
4328 # Truncating the target makes $host != $target which
4329 # makes gcc think it is doing a cross-compile.
4330 # truncate_target=yes
4332 i
[34567]86-*-sco*) # 80386 running SCO system
4333 xm_file
=i386
/xm-sco.h
4334 xmake_file
=i386
/x-sco
4335 install_headers_dir
=install-headers-cpio
4336 if test x
$stabs = xyes
4338 tm_file
=i386
/scodbx.h
4339 tmake_file
=i386
/t-svr3dbx
4340 extra_parts
="svr3.ifile svr3z.rfile"
4343 extra_parts
="crtbegin.o crtend.o"
4344 tmake_file
=i386
/t-crtstuff
4348 i
[34567]86-*-solaris2*)
4349 xm_file
="xm-alloca.h ${xm_file}"
4350 xm_defines
="USG POSIX SMALL_ARG_MAX"
4352 if test x
$gas = xyes
; then
4353 # Only needed if gas does not support -s
4354 tm_file
="i386/sol2gas.h ${tm_file}"
4356 tmake_file
=i386
/t-sol2
4357 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4359 if test x
${enable_threads} = x
; then
4360 enable_threads
=$have_pthread_h
4361 if test x
${enable_threads} = x
; then
4362 enable_threads
=$have_thread_h
4365 if test x
${enable_threads} = xyes
; then
4366 if test x
${have_pthread_h} = xyes
; then
4369 thread_file
='solaris'
4373 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4374 xm_file
="xm-alloca.h ${xm_file}"
4375 xm_defines
="USG POSIX"
4376 tm_file
=i386
/sysv5.h
4377 if test x
$stabs = xyes
4379 tm_file
="${tm_file} dbx.h"
4381 tmake_file
=i386
/t-crtpic
4383 extra_parts
="crtbegin.o crtend.o"
4384 if test x
$enable_threads = xyes
; then
4388 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4389 xm_file
="xm-alloca.h ${xm_file}"
4390 xm_defines
="USG POSIX SMALL_ARG_MAX"
4391 tm_file
=i386
/sysv4.h
4392 if test x
$stabs = xyes
4394 tm_file
="${tm_file} dbx.h"
4396 tmake_file
=i386
/t-crtpic
4398 extra_parts
="crtbegin.o crtend.o"
4400 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4401 xm_file
="xm-alloca.h ${xm_file}"
4402 xm_defines
="USG POSIX"
4404 tmake_file
="i386/t-crtpic i386/t-udk"
4406 extra_parts
="crtbegin.o crtend.o"
4407 install_headers_dir
=install-headers-cpio
4409 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4411 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4412 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4413 if test x
$stabs = xyes
4415 tm_file
=i386
/osf1elfgdb.h
4417 tm_file
=i386
/osf1elf.h
4419 tmake_file
=i386
/t-osf1elf
4420 xmake_file
=i386
/x-osf1elf
4421 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4423 i
[34567]86-*-sysv*) # Intel 80386's running system V
4424 xm_defines
="USG SVR3"
4425 xmake_file
=i386
/x-sysv3
4426 if test x
$gas = xyes
4428 if test x
$stabs = xyes
4430 tm_file
=i386
/svr3dbx.h
4431 tmake_file
=i386
/t-svr3dbx
4432 extra_parts
="svr3.ifile svr3z.rfile"
4434 tm_file
=i386
/svr3gas.h
4435 extra_parts
="crtbegin.o crtend.o"
4436 tmake_file
=i386
/t-crtstuff
4439 tm_file
=i386
/sysv3.h
4440 extra_parts
="crtbegin.o crtend.o"
4441 tmake_file
=i386
/t-crtstuff
4444 i386-
*-vsta) # Intel 80386's running VSTa kernel
4445 xm_file
="${xm_file} i386/xm-vsta.h"
4447 tmake_file
=i386
/t-vsta
4448 xmake_file
=i386
/x-vsta
4451 xm_file
="${xm_file} i386/xm-cygwin.h"
4452 tmake_file
=i386
/t-cygwin
4453 tm_file
=i386
/win32.h
4454 xmake_file
=i386
/x-cygwin
4456 if test x
$enable_threads = xyes
; then
4461 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4462 xm_file
="${xm_file} i386/xm-cygwin.h"
4463 tmake_file
=i386
/t-cygwin
4464 tm_file
=i386
/cygwin.h
4465 xmake_file
=i386
/x-cygwin
4467 if test x
$enable_threads = xyes
; then
4472 i
[34567]86-*-mingw32*)
4473 tm_file
=i386
/mingw32.h
4474 xm_file
="${xm_file} i386/xm-mingw32.h"
4475 tmake_file
="i386/t-cygwin i386/t-mingw32"
4477 xmake_file
=i386
/x-cygwin
4478 if test x
$enable_threads = xyes
; then
4485 *minwg32crt
* |
*mingw32
*)
4486 tm_file
="${tm_file} i386/crtdll.h"
4492 xm_file
="${xm_file} i386/xm-uwin.h"
4493 xm_defines
="USG NO_STAB_H"
4494 tmake_file
="i386/t-cygwin i386/t-uwin"
4496 xmake_file
=i386
/x-cygwin
4497 if test x
$enable_threads = xyes
; then
4502 i
[34567]86-*-interix*)
4503 tm_file
="i386/i386-interix.h interix.h"
4504 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4506 tmake_file
="i386/t-interix"
4507 extra_objs
=interix.o
4508 xmake_file
=x-interix
4509 if test x
$enable_threads = xyes
; then
4512 if test x
$stabs = xyes
; then
4513 tm_file
="${tm_file} dbxcoff.h"
4516 i
[34567]86-*-winnt3*)
4517 tm_file
=i386
/win-nt.h
4518 out_file
=i386
/i386.c
4519 xm_file
="xm-winnt.h ${xm_file}"
4520 xmake_file
=winnt
/x-winnt
4521 tmake_file
=i386
/t-winnt
4522 extra_host_objs
="winnt.o oldnames.o"
4523 extra_gcc_objs
="spawnv.o oldnames.o"
4524 if test x
$gnu_ld != xyes
4526 extra_programs
=ld.exe
4528 if test x
$enable_threads = xyes
; then
4532 i
[34567]86-dg-dgux*)
4533 xm_file
="xm-alloca.h ${xm_file}"
4534 xm_defines
="USG POSIX"
4535 out_file
=i386
/dgux.c
4537 tmake_file
=i386
/t-dgux
4538 xmake_file
=i386
/x-dgux
4539 install_headers_dir
=install-headers-cpio
4541 i860-alliant-
*) # Alliant FX/2800
4542 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4543 xm_file
="${xm_file}"
4544 xmake_file
=i860
/x-fx2800
4545 tmake_file
=i860
/t-fx2800
4546 extra_parts
="crtbegin.o crtend.o"
4549 tm_file
="${tm_file} i860/bsd.h"
4550 if test x
$gas = xyes
4552 tm_file
="${tm_file} i860/bsd-gas.h"
4557 tm_file
="${tm_file} i860/mach.h"
4558 tmake_file
=t-libc-ok
4560 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4561 tm_file
="${tm_file} svr3.h i860/paragon.h"
4562 xm_defines
="USG SVR3"
4566 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4567 xm_defines
="USG SVR3"
4568 xmake_file
=i860
/x-sysv3
4569 extra_parts
="crtbegin.o crtend.o"
4572 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4573 xm_defines
="USG SVR3"
4574 xmake_file
=i860
/x-sysv4
4576 extra_parts
="crtbegin.o crtend.o"
4578 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4579 tm_file
="${tm_file} i960/vx960.h"
4580 tmake_file
=i960
/t-vxworks960
4582 thread_file
='vxworks'
4584 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4585 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4586 tmake_file
=i960
/t-vxworks960
4588 thread_file
='vxworks'
4591 tm_file
="${tm_file} i960/vx960.h"
4592 tmake_file
=i960
/t-vxworks960
4594 thread_file
='vxworks'
4597 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4598 tmake_file
=i960
/t-960bare
4602 tmake_file
="i960/t-960bare t-rtems"
4603 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4606 i960-
*-*) # Default i960 environment.
4611 tmake_file
="ia64/t-ia64"
4612 target_cpu_default
="0"
4613 if test x
$gas = xyes
4615 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4617 if test x
$gnu_ld = xyes
4619 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4623 tm_file
=ia64
/linux.h
4624 tmake_file
="t-linux ia64/t-ia64"
4625 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4626 if test x
$enable_threads = xyes
; then
4631 extra_parts
="crtinit.o crtfini.o"
4633 m68000-convergent-sysv
*)
4635 xm_file
="m68k/xm-3b1.h ${xm_file}"
4638 extra_headers
=math-68881.h
4640 m68000-hp-bsd
*) # HP 9000/200 running BSD
4641 tm_file
=m68k
/hp2bsd.h
4642 xmake_file
=m68k
/x-hp2bsd
4644 extra_headers
=math-68881.h
4646 m68000-hp-hpux
*) # HP 9000 series 300
4647 xm_file
="xm-alloca.h ${xm_file}"
4649 if test x
$gas = xyes
4651 xmake_file
=m68k
/x-hp320g
4652 tm_file
=m68k
/hp310g.h
4654 xmake_file
=m68k
/x-hp320
4655 tm_file
=m68k
/hp310.h
4657 install_headers_dir
=install-headers-cpio
4659 extra_headers
=math-68881.h
4664 extra_headers
=math-68881.h
4667 tm_file
=m68k
/sun2o4.h
4669 extra_headers
=math-68881.h
4672 xm_file
="m68k/xm-3b1.h ${xm_file}"
4674 if test x
$gas = xyes
4681 extra_headers
=math-68881.h
4683 m68k-apple-aux
*) # Apple Macintosh running A/UX
4684 xm_defines
="USG AUX"
4685 tmake_file
=m68k
/t-aux
4686 install_headers_dir
=install-headers-cpio
4687 extra_headers
=math-68881.h
4688 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4690 if test "$gnu_ld" = yes
4692 tm_file
="${tm_file} m68k/auxgld.h"
4694 tm_file
="${tm_file} m68k/auxld.h"
4696 if test "$gas" = yes
4698 tm_file
="${tm_file} m68k/auxgas.h"
4700 tm_file
="${tm_file} m68k/auxas.h"
4702 tm_file
="${tm_file} m68k/a-ux.h"
4706 tm_file
=m68k
/apollo68.h
4707 xmake_file
=m68k
/x-apollo68
4709 extra_headers
=math-68881.h
4712 m68k-altos-sysv
*) # Altos 3068
4713 if test x
$gas = xyes
4715 tm_file
=m68k
/altos3068.h
4718 echo "The Altos is supported only with the GNU assembler" 1>&2
4721 extra_headers
=math-68881.h
4723 m68k-bull-sysv
*) # Bull DPX/2
4724 if test x
$gas = xyes
4726 if test x
$stabs = xyes
4728 tm_file
=m68k
/dpx2cdbx.h
4730 tm_file
=m68k
/dpx2g.h
4735 xm_file
="xm-alloca.h ${xm_file}"
4737 xmake_file
=m68k
/x-dpx2
4739 extra_headers
=math-68881.h
4741 m68k-atari-sysv4
*) # Atari variant of V.4.
4742 tm_file
=m68k
/atari.h
4743 xm_file
="xm-alloca.h ${xm_file}"
4744 xm_defines
="USG FULL_PROTOTYPES"
4746 extra_parts
="crtbegin.o crtend.o"
4747 extra_headers
=math-68881.h
4750 m68k-motorola-sysv
*)
4751 tm_file
=m68k
/mot3300.h
4752 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4753 if test x
$gas = xyes
4755 xmake_file
=m68k
/x-mot3300-gas
4756 if test x
$gnu_ld = xyes
4758 tmake_file
=m68k
/t-mot3300-gald
4760 tmake_file
=m68k
/t-mot3300-gas
4764 xmake_file
=m68k
/x-mot3300
4765 if test x
$gnu_ld = xyes
4767 tmake_file
=m68k
/t-mot3300-gld
4769 tmake_file
=m68k
/t-mot3300
4773 gdb_needs_out_file_path
=yes
4774 extra_parts
="crt0.o mcrt0.o"
4775 extra_headers
=math-68881.h
4778 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4779 tm_file
=m68k
/tower-as.h
4780 xm_defines
="USG SVR3"
4781 xmake_file
=m68k
/x-tower
4782 extra_parts
="crtbegin.o crtend.o"
4783 extra_headers
=math-68881.h
4786 tm_file
=m68k
/plexus.h
4787 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4790 extra_headers
=math-68881.h
4794 xm_file
="xm-alloca.h ${xm_file}"
4796 extra_headers
=math-68881.h
4799 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4800 xm_defines
="USG unos"
4801 xmake_file
=m68k
/x-crds
4804 extra_headers
=math-68881.h
4806 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4808 xm_file
="xm-alloca.h ${xm_file}"
4809 xm_defines
="USG FULL_PROTOTYPES"
4810 xmake_file
=m68k
/x-amix
4812 extra_parts
="crtbegin.o crtend.o"
4813 extra_headers
=math-68881.h
4817 tm_file
=m68k
/ccur-GAS.h
4818 xmake_file
=m68k
/x-ccur
4819 extra_headers
=math-68881.h
4823 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4824 tm_file
=m68k
/hp3bsd44.h
4825 xmake_file
=m68k
/x-hp3bsd44
4827 extra_headers
=math-68881.h
4830 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4831 tm_file
=m68k
/hp3bsd.h
4833 extra_headers
=math-68881.h
4837 if test x
$with_fp = xno
4839 tm_file
=m68k
/isi-nfp.h
4845 extra_headers
=math-68881.h
4847 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4848 xm_file
="xm-alloca.h ${xm_file}"
4850 if test x
$gas = xyes
4852 xmake_file
=m68k
/x-hp320g
4853 tm_file
=m68k
/hp320g.h
4855 xmake_file
=m68k
/x-hp320
4856 tm_file
=m68k
/hpux7.h
4858 install_headers_dir
=install-headers-cpio
4860 extra_headers
=math-68881.h
4863 m68k-hp-hpux
*) # HP 9000 series 300
4864 xm_file
="xm-alloca.h ${xm_file}"
4866 if test x
$gas = xyes
4868 xmake_file
=m68k
/x-hp320g
4869 tm_file
=m68k
/hp320g.h
4871 xmake_file
=m68k
/x-hp320
4872 tm_file
=m68k
/hp320.h
4874 install_headers_dir
=install-headers-cpio
4876 extra_headers
=math-68881.h
4880 tm_file
=m68k
/sun3mach.h
4882 extra_headers
=math-68881.h
4886 if test x
$gas = xyes
4888 tm_file
=m68k
/news3gas.h
4890 tm_file
=m68k
/news3.h
4893 extra_headers
=math-68881.h
4896 m68k-sony-bsd
* | m68k-sony-newsos
*)
4897 if test x
$gas = xyes
4899 tm_file
=m68k
/newsgas.h
4904 extra_headers
=math-68881.h
4907 m68k-next-nextstep2
*)
4908 tm_file
=m68k
/next21.h
4909 xm_file
="m68k/xm-next.h ${xm_file}"
4910 tmake_file
=m68k
/t-next
4911 xmake_file
=m68k
/x-next
4912 extra_objs
=nextstep.o
4913 extra_headers
=math-68881.h
4917 m68k-next-nextstep
[34]*)
4919 xm_file
="m68k/xm-next.h ${xm_file}"
4920 tmake_file
=m68k
/t-next
4921 xmake_file
=m68k
/x-next
4922 extra_objs
=nextstep.o
4923 extra_parts
="crtbegin.o crtend.o"
4924 extra_headers
=math-68881.h
4926 if test x
$enable_threads = xyes
; then
4931 if test x
$with_fp = xno
4933 tm_file
=m68k
/sun3n3.h
4935 tm_file
=m68k
/sun3o3.h
4939 extra_headers
=math-68881.h
4941 m68k-sun-sunos
*) # For SunOS 4 (the default).
4942 if test x
$with_fp = xno
4944 tm_file
=m68k
/sun3n.h
4950 extra_headers
=math-68881.h
4953 tm_file
=m68k
/vxm68k.h
4954 tmake_file
=m68k
/t-vxworks68
4955 extra_headers
=math-68881.h
4956 thread_file
='vxworks'
4960 tmake_file
=m68k
/t-m68kbare
4961 tm_file
="m68k/m68k-aout.h libgloss.h"
4962 extra_headers
=math-68881.h
4966 tmake_file
=m68k
/t-m68kbare
4967 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4968 extra_headers
=math-68881.h
4971 m68020-
*-elf* | m68k-
*-elf*)
4972 tm_file
="m68k/m68020-elf.h"
4973 xm_file
=m68k
/xm-m68kv.h
4974 tmake_file
=m68k
/t-m68kelf
4975 header_files
=math-68881.h
4978 if test x
$gas = xyes
4982 tm_file
=m68k
/lynx-ng.h
4984 xm_file
=m68k
/xm-lynx.h
4986 tmake_file
=m68k
/t-lynx
4987 extra_headers
=math-68881.h
4991 tm_file
=m68k
/netbsd.h
4998 # we need collect2 until our bug is fixed...
5001 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5002 xm_file
="xm-alloca.h ${xm_file}"
5004 xmake_file
=m68k
/x-m68kv
5005 extra_parts
="crtbegin.o crtend.o"
5006 extra_headers
=math-68881.h
5009 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5010 tm_file
=m68k
/m68kv4.h
5011 xm_file
="xm-alloca.h ${xm_file}"
5014 extra_parts
="crtbegin.o crtend.o"
5015 extra_headers
=math-68881.h
5018 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5021 tm_file
=m68k
/linux-aout.h
5022 tmake_file
="t-linux-aout m68k/t-linux-aout"
5023 extra_headers
=math-68881.h
5027 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5028 # with ELF format using the
5029 # GNU/Linux C library 5
5031 tm_file
=m68k
/linux.h
5032 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5033 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5034 extra_headers
=math-68881.h
5038 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5039 # with ELF format using glibc 2
5040 # aka the GNU/Linux C library 6.
5042 tm_file
=m68k
/linux.h
5043 tmake_file
="t-linux m68k/t-linux"
5044 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5045 extra_headers
=math-68881.h
5048 if test x
$enable_threads = xyes
; then
5053 tmake_file
=m68k
/t-m68kbare
5054 tm_file
=m68k
/m68k-psos.h
5055 extra_headers
=math-68881.h
5059 tmake_file
="m68k/t-m68kbare t-rtems"
5060 tm_file
=m68k
/rtems.h
5061 extra_headers
=math-68881.h
5064 m68k-
*-rtemself*|m68k-
*-rtems*)
5065 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5066 tm_file
=m68k
/rtemself.h
5067 extra_headers
=math-68881.h
5073 tm_file
=m88k
/dguxbcs.h
5074 tmake_file
=m88k
/t-dguxbcs
5078 tmake_file
=m88k
/t-dgux
5081 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5082 xmake_file
=m88k
/x-dgux
5083 if test x
$gas = xyes
5085 tmake_file
=m88k
/t-dgux-gas
5088 m88k-dolphin-sysv3
*)
5089 tm_file
=m88k
/dolph.h
5090 extra_parts
="crtbegin.o crtend.o"
5091 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5092 xmake_file
=m88k
/x-dolph
5093 if test x
$gas = xyes
5095 tmake_file
=m88k
/t-m88k-gas
5098 m88k-tektronix-sysv3
)
5099 tm_file
=m88k
/tekXD88.h
5100 extra_parts
="crtbegin.o crtend.o"
5101 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5102 xmake_file
=m88k
/x-tekXD88
5103 if test x
$gas = xyes
5105 tmake_file
=m88k
/t-m88k-gas
5109 tm_file
=m88k
/m88k-aout.h
5112 tm_file
=m88k
/m88k-coff.h
5113 tmake_file
=m88k
/t-bug
5117 extra_parts
="crtbegin.o crtend.o"
5118 if test x
$gas = xyes
5120 tmake_file
=m88k
/t-luna-gas
5122 tmake_file
=m88k
/t-luna
5126 tmake_file
="${tmake_file} m88k/t-luna-gas"
5129 tm_file
=m88k
/sysv3.h
5130 extra_parts
="crtbegin.o crtend.o"
5131 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5132 xmake_file
=m88k
/x-sysv3
5133 if test x
$gas = xyes
5135 tmake_file
=m88k
/t-m88k-gas
5139 tm_file
=m88k
/sysv4.h
5140 extra_parts
="crtbegin.o crtend.o"
5141 xmake_file
=m88k
/x-sysv4
5142 tmake_file
=m88k
/t-sysv4
5145 tm_file
=mcore
/mcore-elf.h
5146 tmake_file
=mcore
/t-mcore
5149 tm_file
=mcore
/mcore-pe.h
5150 tmake_file
=mcore
/t-mcore-pe
5152 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5153 if test "x$gnu_ld" = xyes
5155 tm_file
="mips/iris6.h mips/iris6gld.h"
5157 tm_file
=mips
/iris6.h
5159 tmake_file
=mips
/t-iris6
5160 xm_file
=mips
/xm-iris6.h
5161 xmake_file
=mips
/x-iris6
5162 # if test x$enable_threads = xyes; then
5163 # thread_file='irix'
5167 tm_file
="mips/elf.h mips/vxworks.h"
5168 tmake_file
=mips
/t-ecoff
5171 extra_parts
="crtbegin.o crtend.o"
5172 thread_file
='vxworks'
5174 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5175 tm_file
="mips/iris6.h mips/cross64.h"
5177 xm_file
="mips/xm-iris5.h"
5178 xmake_file
=mips
/x-iris
5179 tmake_file
=mips
/t-cross64
5180 # See comment in mips/iris[56].h files.
5182 # if test x$enable_threads = xyes; then
5183 # thread_file='irix'
5187 if test x
$gas = xyes
5189 if test x
$stabs = xyes
5191 tm_file
=mips
/iris5gdb.h
5193 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5196 tm_file
=mips
/sni-svr4.h
5199 xmake_file
=mips
/x-sni-svr4
5200 tmake_file
=mips
/t-mips-gas
5201 if test x
$gnu_ld != xyes
5206 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5207 if test x
$gas = xyes
5209 tm_file
="mips/iris5.h mips/iris5gas.h"
5210 if test x
$stabs = xyes
5212 tm_file
="${tm_file} dbx.h"
5215 tm_file
=mips
/iris5.h
5218 xm_file
="mips/xm-iris5.h"
5219 xmake_file
=mips
/x-iris
5220 # mips-tfile doesn't work yet
5221 tmake_file
=mips
/t-mips-gas
5222 # See comment in mips/iris5.h file.
5224 # if test x$enable_threads = xyes; then
5225 # thread_file='irix'
5228 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5229 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5230 if test x
$stabs = xyes
; then
5231 tm_file
="${tm_file} dbx.h"
5234 xmake_file
=mips
/x-iris
5235 if test x
$gas = xyes
5237 tmake_file
=mips
/t-mips-gas
5239 extra_passes
="mips-tfile mips-tdump"
5241 if test x
$gnu_ld != xyes
5245 # if test x$enable_threads = xyes; then
5246 # thread_file='irix'
5249 mips-sgi-irix4
*) # Mostly like a MIPS.
5250 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5251 if test x
$stabs = xyes
; then
5252 tm_file
="${tm_file} dbx.h"
5255 xmake_file
=mips
/x-iris
5256 if test x
$gas = xyes
5258 tmake_file
=mips
/t-mips-gas
5260 extra_passes
="mips-tfile mips-tdump"
5262 if test x
$gnu_ld != xyes
5266 # if test x$enable_threads = xyes; then
5267 # thread_file='irix'
5270 mips-sgi-
*) # Mostly like a MIPS.
5271 tm_file
="mips/iris3.h ${tm_file}"
5272 if test x
$stabs = xyes
; then
5273 tm_file
="${tm_file} dbx.h"
5276 xmake_file
=mips
/x-iris3
5277 if test x
$gas = xyes
5279 tmake_file
=mips
/t-mips-gas
5281 extra_passes
="mips-tfile mips-tdump"
5283 if test x
$gnu_ld != xyes
5288 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5289 tm_file
="mips/osfrose.h ${tm_file}"
5290 xmake_file
=mips
/x-osfrose
5291 tmake_file
=mips
/t-osfrose
5292 extra_objs
=halfpic.o
5295 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5296 tm_file
=mips
/dec-osf1.h
5297 if test x
$stabs = xyes
; then
5298 tm_file
="${tm_file} dbx.h"
5300 xmake_file
=mips
/x-dec-osf1
5301 if test x
$gas = xyes
5303 tmake_file
=mips
/t-mips-gas
5305 tmake_file
=mips
/t-ultrix
5306 extra_passes
="mips-tfile mips-tdump"
5308 if test x
$gnu_ld != xyes
5313 mips-dec-bsd
*) # Decstation running 4.4 BSD
5314 tm_file
=mips
/dec-bsd.h
5315 if test x
$gas = xyes
5317 tmake_file
=mips
/t-mips-gas
5319 tmake_file
=mips
/t-ultrix
5320 extra_passes
="mips-tfile mips-tdump"
5322 if test x
$gnu_ld != xyes
5327 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5328 tm_file
=mips
/netbsd.h
5329 # On NetBSD, the headers are already okay, except for math.h.
5332 mips
*-*-linux*) # Linux MIPS, either endian.
5335 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5336 *) tm_file
="mips/elf.h mips/linux.h" ;;
5338 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5341 if test x
$enable_threads = xyes
; then
5345 mips
*el-
*-openbsd*) # mips little endian
5346 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5348 mips
*-*-openbsd*) # mips big endian
5349 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5350 tm_file
="mips/openbsd-be.h ${tm_file}"
5352 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5353 tm_file
="mips/news4.h ${tm_file}"
5354 if test x
$stabs = xyes
; then
5355 tm_file
="${tm_file} dbx.h"
5357 if test x
$gas = xyes
5359 tmake_file
=mips
/t-mips-gas
5361 extra_passes
="mips-tfile mips-tdump"
5363 if test x
$gnu_ld != xyes
5367 xmake_file
=mips
/x-sony
5369 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5370 # That is based on svr4.
5371 # t-svr4 is not right because this system doesn't use ELF.
5372 tm_file
="mips/news5.h ${tm_file}"
5373 if test x
$stabs = xyes
; then
5374 tm_file
="${tm_file} dbx.h"
5377 if test x
$gas = xyes
5379 tmake_file
=mips
/t-mips-gas
5381 extra_passes
="mips-tfile mips-tdump"
5383 if test x
$gnu_ld != xyes
5388 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5389 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5390 if test x
$stabs = xyes
; then
5391 tm_file
="${tm_file} dbx.h"
5394 xmake_file
=mips
/x-sysv
5395 if test x
$gas = xyes
5397 tmake_file
=mips
/t-mips-gas
5398 extra_parts
="crtbegin.o crtend.o"
5400 tmake_file
=mips
/t-mips
5401 extra_passes
="mips-tfile mips-tdump"
5403 if test x
$gnu_ld != xyes
5408 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5409 tm_file
="mips/ultrix.h ${tm_file}"
5410 if test x
$stabs = xyes
; then
5411 tm_file
="${tm_file} dbx.h"
5413 xmake_file
=mips
/x-ultrix
5414 if test x
$gas = xyes
5416 tmake_file
=mips
/t-mips-gas
5418 tmake_file
=mips
/t-ultrix
5419 extra_passes
="mips-tfile mips-tdump"
5421 if test x
$gnu_ld != xyes
5426 mips-
*-riscos[56789]bsd
*)
5427 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5428 if test x
$stabs = xyes
; then
5429 tm_file
="${tm_file} dbx.h"
5431 if test x
$gas = xyes
5433 tmake_file
=mips
/t-bsd-gas
5435 tmake_file
=mips
/t-bsd
5436 extra_passes
="mips-tfile mips-tdump"
5438 if test x
$gnu_ld != xyes
5443 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5444 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5445 if test x
$stabs = xyes
; then
5446 tm_file
="${tm_file} dbx.h"
5448 if test x
$gas = xyes
5450 tmake_file
=mips
/t-bsd-gas
5452 tmake_file
=mips
/t-bsd
5453 extra_passes
="mips-tfile mips-tdump"
5455 if test x
$gnu_ld != xyes
5460 mips-
*-riscos[56789]sysv4
*)
5461 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5462 if test x
$stabs = xyes
; then
5463 tm_file
="${tm_file} dbx.h"
5465 xmake_file
=mips
/x-sysv
5466 if test x
$gas = xyes
5468 tmake_file
=mips
/t-svr4-gas
5470 tmake_file
=mips
/t-svr4
5471 extra_passes
="mips-tfile mips-tdump"
5473 if test x
$gnu_ld != xyes
5478 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5479 tm_file
="mips/svr4-4.h ${tm_file}"
5480 if test x
$stabs = xyes
; then
5481 tm_file
="${tm_file} dbx.h"
5484 xmake_file
=mips
/x-sysv
5485 if test x
$gas = xyes
5487 tmake_file
=mips
/t-svr4-gas
5489 tmake_file
=mips
/t-svr4
5490 extra_passes
="mips-tfile mips-tdump"
5492 if test x
$gnu_ld != xyes
5497 mips-
*-riscos[56789]sysv
*)
5498 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5499 if test x
$stabs = xyes
; then
5500 tm_file
="${tm_file} dbx.h"
5503 xmake_file
=mips
/x-sysv
5504 if test x
$gas = xyes
5506 tmake_file
=mips
/t-svr3-gas
5508 tmake_file
=mips
/t-svr3
5509 extra_passes
="mips-tfile mips-tdump"
5511 if test x
$gnu_ld != xyes
5516 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5517 tm_file
="mips/svr3-4.h ${tm_file}"
5518 if test x
$stabs = xyes
; then
5519 tm_file
="${tm_file} dbx.h"
5522 xmake_file
=mips
/x-sysv
5523 if test x
$gas = xyes
5525 tmake_file
=mips
/t-svr3-gas
5527 tmake_file
=mips
/t-svr3
5528 extra_passes
="mips-tfile mips-tdump"
5530 if test x
$gnu_ld != xyes
5535 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5536 tm_file
=mips
/mips-5.h
5537 if test x
$stabs = xyes
; then
5538 tm_file
="${tm_file} dbx.h"
5540 if test x
$gas = xyes
5542 tmake_file
=mips
/t-mips-gas
5544 extra_passes
="mips-tfile mips-tdump"
5546 if test x
$gnu_ld != xyes
5554 tm_file
=mips
/ecoffl.h
5555 if test x
$stabs = xyes
; then
5556 tm_file
="${tm_file} dbx.h"
5558 tmake_file
=mips
/t-ecoff
5561 tm_file
="gofast.h mips/ecoff.h"
5562 if test x
$stabs = xyes
; then
5563 tm_file
="${tm_file} dbx.h"
5565 tmake_file
=mips
/t-ecoff
5568 tm_file
="mips/elfl.h"
5569 tmake_file
=mips
/t-elf
5572 tm_file
="mips/elf.h"
5573 tmake_file
=mips
/t-elf
5576 tm_file
="mips/elfl64.h"
5577 tmake_file
=mips
/t-elf
5579 mips64orionel-
*-elf*)
5580 tm_file
="mips/elforion.h mips/elfl64.h"
5581 tmake_file
=mips
/t-elf
5584 tm_file
="mips/elf64.h"
5585 tmake_file
=mips
/t-elf
5588 tm_file
="mips/elforion.h mips/elf64.h"
5589 tmake_file
=mips
/t-elf
5591 mips64orion-
*-rtems*)
5592 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5593 tmake_file
="mips/t-elf t-rtems"
5596 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5597 tmake_file
=mips
/t-r3900
5600 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5601 tmake_file
=mips
/t-r3900
5603 mips-
*-*) # Default MIPS RISC-OS 4.0.
5604 if test x
$stabs = xyes
; then
5605 tm_file
="${tm_file} dbx.h"
5607 if test x
$gas = xyes
5609 tmake_file
=mips
/t-mips-gas
5611 extra_passes
="mips-tfile mips-tdump"
5613 if test x
$gnu_ld != xyes
5621 tm_file
="mn10200/mn10200.h"
5622 if test x
$stabs = xyes
5624 tm_file
="${tm_file} dbx.h"
5630 tm_file
="mn10300/mn10300.h"
5631 if test x
$stabs = xyes
5633 tm_file
="${tm_file} dbx.h"
5638 tm_file
=ns32k
/encore.h
5642 tm_file
=ns32k
/sequent.h
5646 tm_file
=ns32k
/tek6100.h
5650 tm_file
=ns32k
/tek6200.h
5653 # This has not been updated to GCC 2.
5656 # xmake_file=ns32k/x-genix
5657 # tm_file=ns32k/genix.h
5661 tm_file
=ns32k
/merlin.h
5665 tm_file
=ns32k
/pc532-mach.h
5669 tm_file
=ns32k
/pc532-min.h
5670 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5675 tm_file
=ns32k
/netbsd.h
5676 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5677 # On NetBSD, the headers are already okay, except for math.h.
5682 tm_file
="${tm_file} pdp11/2bsd.h"
5691 # This has not been updated to GCC 2.
5694 # xmake_file=pyr/x-pyr
5699 tm_file
="svr4.h pj/linux.h ${tm_file}"
5704 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5711 xmake_file
=romp
/x-mach
5718 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5722 tm_file
=rs6000
/beos.h
5723 xm_file
=rs6000
/xm-beos.h
5724 tmake_file
=rs6000
/t-beos
5725 xmake_file
=rs6000
/x-beos
5728 tm_file
=rs6000
/sysv4.h
5729 xm_file
="rs6000/xm-sysv4.h"
5730 xm_defines
="USG POSIX"
5731 extra_headers
=ppc-asm.h
5732 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5733 xmake_file
=rs6000
/x-sysv4
5736 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5737 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5738 extra_headers
=ppc-asm.h
5741 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5742 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5743 extra_headers
=ppc-asm.h
5746 tm_file
="rs6000/sysv4.h"
5747 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5748 extra_headers
=ppc-asm.h
5751 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5752 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5753 extra_headers
=ppc-asm.h
5756 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5757 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5758 extra_headers
=ppc-asm.h
5760 powerpc-
*-linux-gnulibc1)
5761 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5762 xm_file
=rs6000
/xm-sysv4.h
5763 out_file
=rs6000
/rs6000.c
5764 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5766 extra_headers
=ppc-asm.h
5767 if test x
$enable_threads = xyes
; then
5771 powerpc-
*-linux-gnu*)
5772 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5773 xm_file
="rs6000/xm-sysv4.h"
5774 xm_defines
="USG ${xm_defines}"
5775 out_file
=rs6000
/rs6000.c
5776 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5778 extra_headers
=ppc-asm.h
5779 if test x
$enable_threads = xyes
; then
5783 powerpc-wrs-vxworks
*)
5785 xm_file
="rs6000/xm-sysv4.h"
5786 xm_defines
="USG POSIX"
5787 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5788 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5789 extra_headers
=ppc-asm.h
5790 thread_file
='vxworks'
5792 powerpcle-wrs-vxworks
*)
5794 xm_file
="rs6000/xm-sysv4.h"
5795 xm_defines
="USG POSIX"
5796 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5797 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5798 extra_headers
=ppc-asm.h
5799 thread_file
='vxworks'
5802 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5803 xm_file
="rs6000/xm-sysv4.h"
5804 xm_defines
="USG POSIX"
5805 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5806 xmake_file
=rs6000
/x-sysv4
5807 extra_headers
=ppc-asm.h
5810 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5811 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5812 extra_headers
=ppc-asm.h
5814 powerpcle-
*-eabisim*)
5815 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5816 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5817 extra_headers
=ppc-asm.h
5820 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5821 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5822 extra_headers
=ppc-asm.h
5824 powerpcle-
*-solaris2*)
5825 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
5826 xm_file
="rs6000/xm-sysv4.h"
5827 xm_defines
="USG POSIX"
5828 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5829 xmake_file
=rs6000
/x-sysv4
5830 extra_headers
=ppc-asm.h
5832 rs6000-ibm-aix3.
[01]*)
5833 tm_file
=rs6000
/aix31.h
5834 xmake_file
=rs6000
/x-aix31
5838 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5839 tm_file
=rs6000
/aix3newas.h
5840 if test x
$host != x
$target
5842 tmake_file
=rs6000
/t-xnewas
5844 tmake_file
=rs6000
/t-newas
5849 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5850 tm_file
=rs6000
/aix41.h
5851 if test x
$host != x
$target
5853 tmake_file
=rs6000
/t-xnewas
5855 tmake_file
=rs6000
/t-newas
5857 if test "$gnu_ld" = yes
5859 xmake_file
=rs6000
/x-aix41-gld
5861 tmake_file
="rs6000/t-newas rs6000/t-aix41"
5863 xmake_file
=rs6000
/x-aix41
5867 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5868 tm_file
=rs6000
/aix43.h
5869 tmake_file
=rs6000
/t-aix43
5870 xmake_file
=rs6000
/x-aix41
5874 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5875 tm_file
=rs6000
/aix43.h
5876 tmake_file
=rs6000
/t-aix43
5877 xmake_file
=rs6000
/x-aix41
5890 tm_file
=rs6000
/mach.h
5891 xm_file
="${xm_file} rs6000/xm-mach.h"
5892 xmake_file
=rs6000
/x-mach
5896 tm_file
=rs6000
/lynx.h
5897 xm_file
=rs6000
/xm-lynx.h
5898 tmake_file
=rs6000
/t-rs6000
5899 xmake_file
=rs6000
/x-lynx
5907 tmake_file
="sh/t-sh t-rtems"
5908 tm_file
=sh
/rtemself.h
5912 tmake_file
="sh/t-sh t-rtems"
5921 xm_file
="xm-alloca.h ${xm_file}"
5924 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5925 tm_file
=sparc
/vxsparc.h
5926 tmake_file
=sparc
/t-vxsparc
5928 thread_file
='vxworks'
5931 tmake_file
=sparc
/t-sparcbare
5932 tm_file
="sparc/aout.h libgloss.h"
5935 tm_file
=sparc
/netbsd.h
5940 # we need collect2 until our bug is fixed...
5948 tmake_file
=sparc
/t-elf
5949 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5953 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5954 xm_file
="${xm_file} sparc/xm-linux.h"
5955 tm_file
=sparc
/linux-aout.h
5959 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5960 xm_file
="${xm_file} sparc/xm-linux.h"
5962 tm_file
=sparc
/linux.h
5963 tmake_file
="t-linux t-linux-gnulibc1"
5964 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5968 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5969 xm_file
="${xm_file} sparc/xm-linux.h"
5971 tm_file
=sparc
/linux.h
5972 tmake_file
="t-linux"
5973 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5975 if test x
$enable_threads = xyes
; then
5981 if test x
$gas = xyes
5983 tm_file
=sparc
/lynx.h
5985 tm_file
=sparc
/lynx-ng.h
5987 xm_file
=sparc
/xm-lynx.h
5988 tmake_file
=sparc
/t-sunos41
5992 tmake_file
="sparc/t-sparcbare t-rtems"
5993 tm_file
=sparc
/rtems.h
5995 sparc-
*-rtems*|sparc-
*-rtemself*)
5996 tm_file
="sparc/rtemself.h"
5997 tmake_file
="sparc/t-elf t-rtems"
5998 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6002 sparcv9-
*-solaris2*)
6003 if test x
$gnu_ld = xyes
6005 tm_file
=sparc
/sol2-64.h
6007 tm_file
=sparc
/sol2-sld-64.h
6009 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6010 xm_defines
="USG POSIX"
6011 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6012 xmake_file
=sparc
/x-sysv4
6013 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6015 if test x
${enable_threads} = x
; then
6016 enable_threads
=$have_pthread_h
6017 if test x
${enable_threads} = x
; then
6018 enable_threads
=$have_thread_h
6021 if test x
${enable_threads} = xyes
; then
6022 if test x
${have_pthread_h} = xyes
; then
6025 thread_file
='solaris'
6029 sparc-hal-solaris2
*)
6030 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6031 xm_defines
="USG POSIX"
6032 tm_file
="sparc/sol2.h sparc/hal.h"
6033 tmake_file
="sparc/t-halos sparc/t-sol2"
6034 xmake_file
=sparc
/x-sysv4
6035 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6044 thread_file
='solaris'
6047 if test x
$gnu_ld = xyes
6049 tm_file
=sparc
/sol2.h
6051 tm_file
=sparc
/sol2-sld.h
6053 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6054 xm_defines
="USG POSIX"
6055 tmake_file
=sparc
/t-sol2
6056 xmake_file
=sparc
/x-sysv4
6057 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6059 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6061 if test x
$gnu_ld = xyes
6063 tm_file
=sparc
/sol2-64.h
6065 tm_file
=sparc
/sol2-sld-64.h
6067 tmake_file
="$tmake_file sparc/t-sol2-64"
6078 if test x
${enable_threads} = x
; then
6079 enable_threads
=$have_pthread_h
6080 if test x
${enable_threads} = x
; then
6081 enable_threads
=$have_thread_h
6084 if test x
${enable_threads} = xyes
; then
6085 if test x
${have_pthread_h} = xyes
; then
6088 thread_file
='solaris'
6093 tm_file
=sparc
/sunos4.h
6094 tmake_file
=sparc
/t-sunos40
6098 tm_file
=sparc
/sunos4.h
6099 tmake_file
=sparc
/t-sunos41
6101 if test x
$gas = xyes
; then
6102 tm_file
="${tm_file} sparc/sun4gas.h"
6106 tm_file
=sparc
/sun4o3.h
6110 tm_file
=sparc
/sysv4.h
6111 xm_file
="sparc/xm-sysv4.h"
6112 xm_defines
="USG POSIX"
6114 xmake_file
=sparc
/x-sysv4
6115 extra_parts
="crtbegin.o crtend.o"
6118 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6119 xm_defines
="USG POSIX"
6120 tm_file
=sparc
/vxsim.h
6121 tmake_file
=sparc
/t-vxsparc
6122 xmake_file
=sparc
/x-sysv4
6125 tm_file
="sparc/splet.h libgloss.h"
6126 tmake_file
=sparc
/t-splet
6129 tm_file
="sparc/litecoff.h libgloss.h"
6130 tmake_file
=sparc
/t-sparclite
6133 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6134 tmake_file
=sparc
/t-sparclite
6137 tm_file
="sparc/liteelf.h"
6138 tmake_file
=sparc
/t-sparclite
6139 extra_parts
="crtbegin.o crtend.o"
6142 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6143 tmake_file
=sparc
/t-sp86x
6146 tm_file
="sparc/sp86x-elf.h"
6147 tmake_file
=sparc
/t-sp86x
6148 extra_parts
="crtbegin.o crtend.o"
6151 tmake_file
=sparc
/t-sp64
6152 tm_file
=sparc
/sp64-aout.h
6155 tmake_file
=sparc
/t-sp64
6156 tm_file
=sparc
/sp64-elf.h
6157 extra_parts
="crtbegin.o crtend.o"
6159 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6160 tmake_file
="t-linux sparc/t-linux64"
6161 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6162 tm_file
=sparc
/linux64.h
6164 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6166 if test x
$enable_threads = xyes
; then
6171 # This hasn't been upgraded to GCC 2.
6172 # tahoe-harris-*) # Harris tahoe, using COFF.
6173 # tm_file=tahoe/harris.h
6175 # tahoe-*-bsd*) # tahoe running BSD
6179 { echo "configure: error:
6180 *** The Thumb targets have been depreciated. The equivalent
6181 *** ARM based toolchain can now generated Thumb instructions
6182 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6184 # This hasn't been upgraded to GCC 2.
6191 tm_file
="v850/rtems.h"
6192 xm_file
="v850/xm-v850.h"
6193 tmake_file
="v850/t-v850 t-rtems"
6194 if test x
$stabs = xyes
6196 tm_file
="${tm_file} dbx.h"
6201 target_cpu_default
="TARGET_CPU_generic"
6203 tm_file
="v850/v850.h"
6204 xm_file
="v850/xm-v850.h"
6205 tmake_file
=v850
/t-v850
6206 if test x
$stabs = xyes
6208 tm_file
="${tm_file} dbx.h"
6212 vax-
*-bsd*) # vaxen running BSD
6216 vax-
*-sysv*) # vaxen running system V
6217 tm_file
="${tm_file} vax/vaxv.h"
6222 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6228 tmake_file
="${tmake_file} vax/t-openbsd"
6230 vax-
*-ultrix*) # vaxen running ultrix
6231 tm_file
="${tm_file} vax/ultrix.h"
6235 vax-
*-vms*) # vaxen running VMS
6236 xm_file
=vax
/xm-vms.h
6240 vax-
*-*) # vax default entry
6244 xm_file
="${xm_file} xm-svr3"
6248 echo "Configuration $machine not supported" 1>&2
6255 ;; # Existing GNU/Linux systems do not use the GNU setup.
6257 # On the GNU system, the setup is just about the same on
6258 # each different CPU. The specific machines that GNU
6259 # supports are matched above and just set $cpu_type.
6260 xm_file
="xm-gnu.h ${xm_file}"
6261 tm_file
=${cpu_type}/gnu.h
6262 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6263 # GNU always uses ELF.
6265 # GNU tools are the only tools.
6268 xmake_file
=x-linux
# These details are the same as Linux.
6269 tmake_file
=t-gnu
# These are not.
6272 xmake_try_sysv
=x-sysv
6273 install_headers_dir
=install-headers-cpio
6276 install_headers_dir
=install-headers-cpio
6280 # Distinguish i[34567]86
6281 # Also, do not run mips-tfile on MIPS if using gas.
6282 # Process --with-cpu= for PowerPC/rs6000
6283 target_cpu_default2
=
6286 target_cpu_default2
=1
6289 case $target_alias in
6291 target_cpu_default2
=4
6294 target_cpu_default2
=2
6298 i686-
*-* | i786-
*-*)
6299 target_cpu_default2
=3
6304 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6307 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6310 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6313 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6316 target_cpu_default2
="MASK_CPU_EV5"
6320 if test x
$gas = xyes
6322 if test "$target_cpu_default2" = ""
6324 target_cpu_default2
="MASK_GAS"
6326 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6331 case "x$with_cpu" in
6334 target_cpu_default2
="TARGET_CPU_generic"
6337 # Distinguish cores, and major variants
6338 # arm7m doesn't exist, but D & I don't affect code
6339 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6340 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6341 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6342 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6343 target_cpu_default2
="TARGET_CPU_$with_cpu"
6347 echo "--with-cpu must be passed a value" 1>&2
6352 if test x
$pass2done = xyes
6354 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6361 mips
*-*-ecoff* | mips
*-*-elf*)
6362 if test x
$gas = xyes
6364 if test x
$gnu_ld = xyes
6366 target_cpu_default2
=20
6368 target_cpu_default2
=16
6373 if test x
$gas = xyes
6375 target_cpu_default2
=16
6378 powerpc
*-*-* | rs6000-
*-*)
6379 case "x$with_cpu" in
6383 xcommon | xpower | xpower2 | xpowerpc | xrios \
6384 | xrios1 | xrios2 | xrsc | xrsc1 \
6385 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6386 | xec603e | x740 | x750 | x401 \
6387 | x403 | x505 | x801 | x821 | x823 | x860
)
6388 target_cpu_default2
="\"$with_cpu\""
6392 echo "--with-cpu must be passed a value" 1>&2
6397 if test x
$pass2done = xyes
6399 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6406 case ".$with_cpu" in
6408 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6410 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6411 target_cpu_default2
="TARGET_CPU_$with_cpu"
6414 if test x
$pass2done = xyes
6416 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6424 if test "$target_cpu_default2" != ""
6426 if test "$target_cpu_default" != ""
6428 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6430 target_cpu_default
=$target_cpu_default2
6434 # No need for collect2 if we have the GNU linker.
6435 # Actually, there is now; GNU ld doesn't handle the EH info or
6436 # collecting for shared libraries.
6443 # Save data on machine being used to compile GCC in build_xm_file.
6444 # Save data on host machine in vars host_xm_file and host_xmake_file.
6445 if test x
$pass1done = x
6447 if test x
"$xm_file" = x
6448 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6449 else build_xm_file
=$xm_file
6451 build_xm_defines
=$xm_defines
6452 build_install_headers_dir
=$install_headers_dir
6453 build_exeext
=$exeext
6456 if test x
$pass2done = x
6458 if test x
"$xm_file" = x
6459 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6460 else host_xm_file
=$xm_file
6462 host_xm_defines
=$xm_defines
6463 if test x
"$xmake_file" = x
6464 then xmake_file
=$cpu_type/x-
$cpu_type
6466 host_xmake_file
="$xmake_file"
6467 host_truncate_target
=$truncate_target
6468 host_extra_gcc_objs
=$extra_gcc_objs
6469 host_extra_objs
=$extra_host_objs
6476 extra_objs
="${host_extra_objs} ${extra_objs}"
6478 # Default the target-machine variables that were not explicitly set.
6479 if test x
"$tm_file" = x
6480 then tm_file
=$cpu_type/$cpu_type.h
; fi
6482 if test x
$extra_headers = x
6483 then extra_headers
=; fi
6485 if test x
"$xm_file" = x
6486 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6488 if test x
$md_file = x
6489 then md_file
=$cpu_type/$cpu_type.md
; fi
6491 if test x
$out_file = x
6492 then out_file
=$cpu_type/$cpu_type.c
; fi
6494 if test x
"$tmake_file" = x
6495 then tmake_file
=$cpu_type/t-
$cpu_type
6498 if test x
"$dwarf2" = xyes
6499 then tm_file
="$tm_file tm-dwarf2.h"
6502 if test x
$float_format = x
6503 then float_format
=i64
6506 if test $float_format = none
6507 then float_h_file
=Makefile.
in
6508 else float_h_file
=float-
$float_format.h
6511 # Handle cpp installation.
6512 if test x
$enable_cpp != xno
6514 tmake_file
="$tmake_file t-install-cpp"
6517 # Say what files are being used for the output code and MD file.
6518 echo "Using \`$srcdir/config/$out_file' to output insns."
6519 echo "Using \`$srcdir/config/$md_file' as machine description file."
6522 for f
in $tm_file; do
6525 if test $count = ax
; then
6526 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6528 echo "Using the following target machine macro files:"
6529 for f
in $tm_file; do
6530 echo " $srcdir/config/$f"
6535 for f
in $host_xm_file; do
6538 if test $count = ax
; then
6539 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6541 echo "Using the following host machine macro files:"
6542 for f
in $host_xm_file; do
6543 echo " $srcdir/config/$f"
6547 if test "$host_xm_file" != "$build_xm_file"; then
6549 for f
in $build_xm_file; do
6552 if test $count = ax
; then
6553 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6555 echo "Using the following build machine macro files:"
6556 for f
in $build_xm_file; do
6557 echo " $srcdir/config/$f"
6562 if test x
$thread_file = x
; then
6563 if test x
$target_thread_file != x
; then
6564 thread_file
=$target_thread_file
6566 thread_file
='single'
6570 # Set up the header files.
6571 # $links is the list of header files to create.
6572 # $vars is the list of shell variables with file names to include.
6573 # auto-host.h is the file containing items generated by autoconf and is
6574 # the first file included by config.h.
6576 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6578 # If host=build, it is correct to have hconfig include auto-host.h
6579 # as well. If host!=build, we are in error and need to do more
6580 # work to find out the build config parameters.
6581 if test x
$host = x
$build
6583 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6585 # We create a subdir, then run autoconf in the subdir.
6586 # To prevent recursion we set host and build for the new
6587 # invocation of configure to the build for this invocation
6594 /*) realsrcdir
=${srcdir};;
6595 *) realsrcdir
=..
/${srcdir};;
6597 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6598 --target=$target --host=$build --build=$build
6600 # We just finished tests for the build machine, so rename
6601 # the file auto-build.h in the gcc directory.
6602 mv auto-host.h ..
/auto-build.h
6605 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6608 xm_file
="gansidecl.h ${xm_file}"
6609 tm_file
="gansidecl.h ${tm_file}"
6611 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6612 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6613 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6616 if test -f config.status
; then mv -f config.status config.bak
; fi
6619 while test -n "$vars"
6621 set $vars; var
=$1; shift; vars
=$
*
6622 set $links; link
=$1; shift; links
=$
*
6623 set $defines; define
=$1; shift; defines
=$
*
6626 # Make sure the file is created, even if it is empty.
6629 # Define TARGET_CPU_DEFAULT if the system wants one.
6630 # This substitutes for lots of *.h files.
6631 if test "$target_cpu_default" != "" -a $link = tm.h
6633 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6636 for file in `eval echo '$'$var`; do
6641 echo '#ifdef IN_GCC' >>$link
6644 echo "#include \"$file\"" >>$link
6649 echo '#endif' >>$link
6654 for def
in `eval echo '$'$define`; do
6655 echo "#ifndef $def" >>$link
6656 echo "#define $def" >>$link
6657 echo "#endif" >>$link
6661 # Truncate the target if necessary
6662 if test x
$host_truncate_target != x
; then
6663 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6666 # Get the version trigger filename from the toplevel
6667 if test "${with_gcc_version_trigger+set}" = set; then
6668 gcc_version_trigger
=$with_gcc_version_trigger
6670 gcc_version_trigger
=${srcdir}/version.c
6672 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6674 # Internationalization
6676 VERSION
="$gcc_version"
6677 cat >> confdefs.h
<<EOF
6678 #define PACKAGE "$PACKAGE"
6681 cat >> confdefs.h
<<EOF
6682 #define VERSION "$VERSION"
6690 # NLS support is still experimental, so disable it by default for now.
6691 # Check whether --enable-nls or --disable-nls was given.
6692 if test "${enable_nls+set}" = set; then
6693 enableval
="$enable_nls"
6701 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6702 echo "configure:6703: checking for strerror in -lcposix" >&5
6703 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6
6707 ac_save_LIBS
="$LIBS"
6708 LIBS
="-lcposix $LIBS"
6709 cat > conftest.
$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6721 if { (eval echo configure
:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6723 eval "ac_cv_lib_$ac_lib_var=yes"
6725 echo "configure: failed program was:" >&5
6726 cat conftest.
$ac_ext >&5
6728 eval "ac_cv_lib_$ac_lib_var=no"
6731 LIBS
="$ac_save_LIBS"
6734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6735 echo "$ac_t""yes" 1>&6
6736 LIBS
="$LIBS -lcposix"
6738 echo "$ac_t""no" 1>&6
6743 echo $ac_n "checking for working const""... $ac_c" 1>&6
6744 echo "configure:6745: checking for working const" >&5
6745 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 cat > conftest.
$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6754 /* Ultrix mips cc rejects this. */
6755 typedef int charset[2]; const charset x;
6756 /* SunOS 4.1.1 cc rejects this. */
6757 char const *const *ccp;
6759 /* NEC SVR4.0.2 mips cc rejects this. */
6760 struct point {int x, y;};
6761 static struct point const zero = {0,0};
6762 /* AIX XL C 1.02.0.0 rejects this.
6763 It does not let you subtract one const X* pointer from another in an arm
6764 of an if-expression whose if-part is not a constant expression */
6765 const char *g = "string";
6766 ccp = &g + (g ? g-g : 0);
6767 /* HPUX 7.0 cc rejects these. */
6770 ccp = (char const *const *) p;
6771 { /* SCO 3.2v4 cc rejects this. */
6773 char const *s = 0 ? (char *) 0 : (char const *) 0;
6777 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6779 const int *foo = &x[0];
6782 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6783 typedef const int *iptr;
6787 { /* AIX XL C 1.02.0.0 rejects this saying
6788 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6789 struct s { int j; const int *ap[3]; };
6790 struct s *b; b->j = 5;
6792 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6798 if { (eval echo configure
:6799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6802 echo "configure: failed program was:" >&5
6803 cat conftest.
$ac_ext >&5
6810 echo "$ac_t""$ac_cv_c_const" 1>&6
6811 if test $ac_cv_c_const = no
; then
6812 cat >> confdefs.h
<<\EOF
6818 echo $ac_n "checking for inline""... $ac_c" 1>&6
6819 echo "configure:6820: checking for inline" >&5
6820 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6824 for ac_kw
in inline __inline__ __inline
; do
6825 cat > conftest.
$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6833 if { (eval echo configure
:6834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6835 ac_cv_c_inline
=$ac_kw; break
6837 echo "configure: failed program was:" >&5
6838 cat conftest.
$ac_ext >&5
6845 echo "$ac_t""$ac_cv_c_inline" 1>&6
6846 case "$ac_cv_c_inline" in
6848 no
) cat >> confdefs.h
<<\EOF
6852 *) cat >> confdefs.h
<<EOF
6853 #define inline $ac_cv_c_inline
6858 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6859 echo "configure:6860: checking for off_t" >&5
6860 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6863 cat > conftest.
$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 #include <sys/types.h>
6872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6873 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6875 ac_cv_type_off_t
=yes
6883 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6884 if test $ac_cv_type_off_t = no
; then
6885 cat >> confdefs.h
<<\EOF
6891 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6892 echo "configure:6893: checking for size_t" >&5
6893 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6894 echo $ac_n "(cached) $ac_c" 1>&6
6896 cat > conftest.
$ac_ext <<EOF
6897 #line 6898 "configure"
6898 #include "confdefs.h"
6899 #include <sys/types.h>
6905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6906 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6908 ac_cv_type_size_t
=yes
6911 ac_cv_type_size_t
=no
6916 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6917 if test $ac_cv_type_size_t = no
; then
6918 cat >> confdefs.h
<<\EOF
6919 #define size_t unsigned
6924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6925 # for constant arguments. Useless!
6926 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6927 echo "configure:6928: checking for working alloca.h" >&5
6928 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6931 cat > conftest.
$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6936 char *p = alloca(2 * sizeof(int));
6939 if { (eval echo configure
:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6941 ac_cv_header_alloca_h
=yes
6943 echo "configure: failed program was:" >&5
6944 cat conftest.
$ac_ext >&5
6946 ac_cv_header_alloca_h
=no
6951 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6952 if test $ac_cv_header_alloca_h = yes; then
6953 cat >> confdefs.h
<<\EOF
6954 #define HAVE_ALLOCA_H 1
6959 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6960 echo "configure:6961: checking for alloca" >&5
6961 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6964 cat > conftest.
$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6969 # define alloca __builtin_alloca
6972 # include <malloc.h>
6973 # define alloca _alloca
6976 # include <alloca.h>
6981 # ifndef alloca /* predefined by HP cc +Olibcalls */
6990 char *p = (char *) alloca(1);
6993 if { (eval echo configure
:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6995 ac_cv_func_alloca_works
=yes
6997 echo "configure: failed program was:" >&5
6998 cat conftest.
$ac_ext >&5
7000 ac_cv_func_alloca_works
=no
7005 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7006 if test $ac_cv_func_alloca_works = yes; then
7007 cat >> confdefs.h
<<\EOF
7008 #define HAVE_ALLOCA 1
7013 if test $ac_cv_func_alloca_works = no
; then
7014 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7015 # that cause trouble. Some versions do not even contain alloca or
7016 # contain a buggy version. If you still want to use their alloca,
7017 # use ar to extract alloca.o from them instead of compiling alloca.c.
7018 ALLOCA
=alloca.
${ac_objext}
7019 cat >> confdefs.h
<<\EOF
7024 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7025 echo "configure:7026: checking whether alloca needs Cray hooks" >&5
7026 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 cat > conftest.
$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 #if defined(CRAY) && ! defined(CRAY2)
7039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040 egrep "webecray" >/dev
/null
2>&1; then
7051 echo "$ac_t""$ac_cv_os_cray" 1>&6
7052 if test $ac_cv_os_cray = yes; then
7053 for ac_func
in _getb67 GETB67 getb67
; do
7054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7055 echo "configure:7056: checking for $ac_func" >&5
7056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7057 echo $ac_n "(cached) $ac_c" 1>&6
7059 cat > conftest.
$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 /* System header to define __stub macros and hopefully few prototypes,
7063 which can conflict with char $ac_func(); below. */
7065 /* Override any gcc2 internal prototype to avoid an error. */
7066 /* We use char because int might match the return type of a gcc2
7067 builtin and then its argument prototype would still apply. */
7073 /* The GNU C library defines this for functions which it implements
7074 to always fail with ENOSYS. Some functions are actually named
7075 something starting with __ and the normal name is an alias. */
7076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7084 if { (eval echo configure
:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7086 eval "ac_cv_func_$ac_func=yes"
7088 echo "configure: failed program was:" >&5
7089 cat conftest.
$ac_ext >&5
7091 eval "ac_cv_func_$ac_func=no"
7096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7097 echo "$ac_t""yes" 1>&6
7098 cat >> confdefs.h
<<EOF
7099 #define CRAY_STACKSEG_END $ac_func
7104 echo "$ac_t""no" 1>&6
7110 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7111 echo "configure:7112: checking stack direction for C alloca" >&5
7112 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7113 echo $ac_n "(cached) $ac_c" 1>&6
7115 if test "$cross_compiling" = yes; then
7116 ac_cv_c_stack_direction
=0
7118 cat > conftest.
$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7121 find_stack_direction ()
7123 static char *addr = 0;
7128 return find_stack_direction ();
7131 return (&dummy > addr) ? 1 : -1;
7135 exit (find_stack_direction() < 0);
7138 if { (eval echo configure
:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7140 ac_cv_c_stack_direction
=1
7142 echo "configure: failed program was:" >&5
7143 cat conftest.
$ac_ext >&5
7145 ac_cv_c_stack_direction
=-1
7152 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7153 cat >> confdefs.h
<<EOF
7154 #define STACK_DIRECTION $ac_cv_c_stack_direction
7160 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7161 unistd.h sys
/param.h
7163 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7165 echo "configure:7166: checking for $ac_hdr" >&5
7166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7167 echo $ac_n "(cached) $ac_c" 1>&6
7169 cat > conftest.
$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7174 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7175 { (eval echo configure
:7176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7176 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7177 if test -z "$ac_err"; then
7179 eval "ac_cv_header_$ac_safe=yes"
7182 echo "configure: failed program was:" >&5
7183 cat conftest.
$ac_ext >&5
7185 eval "ac_cv_header_$ac_safe=no"
7189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7190 echo "$ac_t""yes" 1>&6
7191 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7192 cat >> confdefs.h
<<EOF
7193 #define $ac_tr_hdr 1
7197 echo "$ac_t""no" 1>&6
7201 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7202 strdup __argz_count __argz_stringify __argz_next
7204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7205 echo "configure:7206: checking for $ac_func" >&5
7206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 cat > conftest.
$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 /* System header to define __stub macros and hopefully few prototypes,
7213 which can conflict with char $ac_func(); below. */
7215 /* Override any gcc2 internal prototype to avoid an error. */
7216 /* We use char because int might match the return type of a gcc2
7217 builtin and then its argument prototype would still apply. */
7223 /* The GNU C library defines this for functions which it implements
7224 to always fail with ENOSYS. Some functions are actually named
7225 something starting with __ and the normal name is an alias. */
7226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7234 if { (eval echo configure
:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7236 eval "ac_cv_func_$ac_func=yes"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.
$ac_ext >&5
7241 eval "ac_cv_func_$ac_func=no"
7246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7247 echo "$ac_t""yes" 1>&6
7248 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7249 cat >> confdefs.h
<<EOF
7250 #define $ac_tr_func 1
7254 echo "$ac_t""no" 1>&6
7259 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7260 for ac_func
in stpcpy
7262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7263 echo "configure:7264: checking for $ac_func" >&5
7264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7265 echo $ac_n "(cached) $ac_c" 1>&6
7267 cat > conftest.
$ac_ext <<EOF
7268 #line 7269 "configure"
7269 #include "confdefs.h"
7270 /* System header to define __stub macros and hopefully few prototypes,
7271 which can conflict with char $ac_func(); below. */
7273 /* Override any gcc2 internal prototype to avoid an error. */
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7281 /* The GNU C library defines this for functions which it implements
7282 to always fail with ENOSYS. Some functions are actually named
7283 something starting with __ and the normal name is an alias. */
7284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7292 if { (eval echo configure
:7293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7294 eval "ac_cv_func_$ac_func=yes"
7296 echo "configure: failed program was:" >&5
7297 cat conftest.
$ac_ext >&5
7299 eval "ac_cv_func_$ac_func=no"
7304 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7305 echo "$ac_t""yes" 1>&6
7306 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7307 cat >> confdefs.h
<<EOF
7308 #define $ac_tr_func 1
7312 echo "$ac_t""no" 1>&6
7317 if test "${ac_cv_func_stpcpy}" = "yes"; then
7318 cat >> confdefs.h
<<\EOF
7319 #define HAVE_STPCPY 1
7324 if test $ac_cv_header_locale_h = yes; then
7325 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7326 echo "configure:7327: checking for LC_MESSAGES" >&5
7327 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 cat > conftest.
$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7338 if { (eval echo configure
:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7340 am_cv_val_LC_MESSAGES
=yes
7342 echo "configure: failed program was:" >&5
7343 cat conftest.
$ac_ext >&5
7345 am_cv_val_LC_MESSAGES
=no
7350 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7351 if test $am_cv_val_LC_MESSAGES = yes; then
7352 cat >> confdefs.h
<<\EOF
7353 #define HAVE_LC_MESSAGES 1
7358 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7359 echo "configure:7360: checking whether NLS is requested" >&5
7360 # Check whether --enable-nls or --disable-nls was given.
7361 if test "${enable_nls+set}" = set; then
7362 enableval
="$enable_nls"
7368 echo "$ac_t""$USE_NLS" 1>&6
7371 USE_INCLUDED_LIBINTL
=no
7373 if test "$USE_NLS" = "yes"; then
7374 cat >> confdefs.h
<<\EOF
7375 #define ENABLE_NLS 1
7378 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7379 echo "configure:7380: checking whether included gettext is requested" >&5
7380 # Check whether --with-included-gettext or --without-included-gettext was given.
7381 if test "${with_included_gettext+set}" = set; then
7382 withval
="$with_included_gettext"
7383 nls_cv_force_use_gnu_gettext
=$withval
7385 nls_cv_force_use_gnu_gettext
=no
7388 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7390 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7391 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7393 nls_cv_header_libgt
=
7396 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7397 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7398 echo "configure:7399: checking for libintl.h" >&5
7399 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7402 cat > conftest.
$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 #include <libintl.h>
7407 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7408 { (eval echo configure
:7409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7409 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7410 if test -z "$ac_err"; then
7412 eval "ac_cv_header_$ac_safe=yes"
7415 echo "configure: failed program was:" >&5
7416 cat conftest.
$ac_ext >&5
7418 eval "ac_cv_header_$ac_safe=no"
7422 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7423 echo "$ac_t""yes" 1>&6
7424 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7425 echo "configure:7426: checking for gettext in libc" >&5
7426 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7427 echo $ac_n "(cached) $ac_c" 1>&6
7429 cat > conftest.
$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 #include <libintl.h>
7434 return (int) gettext ("")
7437 if { (eval echo configure
:7438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7439 gt_cv_func_gettext_libc
=yes
7441 echo "configure: failed program was:" >&5
7442 cat conftest.
$ac_ext >&5
7444 gt_cv_func_gettext_libc
=no
7449 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7451 if test "$gt_cv_func_gettext_libc" != "yes"; then
7452 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7453 echo "configure:7454: checking for bindtextdomain in -lintl" >&5
7454 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7458 ac_save_LIBS
="$LIBS"
7460 cat > conftest.
$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7466 char bindtextdomain();
7472 if { (eval echo configure
:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7474 eval "ac_cv_lib_$ac_lib_var=yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.
$ac_ext >&5
7479 eval "ac_cv_lib_$ac_lib_var=no"
7482 LIBS
="$ac_save_LIBS"
7485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7487 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7488 echo "configure:7489: checking for gettext in libintl" >&5
7489 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7492 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7493 echo "configure:7494: checking for gettext in -lintl" >&5
7494 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7498 ac_save_LIBS
="$LIBS"
7500 cat > conftest.
$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7503 /* Override any gcc2 internal prototype to avoid an error. */
7504 /* We use char because int might match the return type of a gcc2
7505 builtin and then its argument prototype would still apply. */
7512 if { (eval echo configure
:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7514 eval "ac_cv_lib_$ac_lib_var=yes"
7516 echo "configure: failed program was:" >&5
7517 cat conftest.
$ac_ext >&5
7519 eval "ac_cv_lib_$ac_lib_var=no"
7522 LIBS
="$ac_save_LIBS"
7525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7526 echo "$ac_t""yes" 1>&6
7527 gt_cv_func_gettext_libintl
=yes
7529 echo "$ac_t""no" 1>&6
7530 gt_cv_func_gettext_libintl
=no
7535 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7537 echo "$ac_t""no" 1>&6
7542 if test "$gt_cv_func_gettext_libc" = "yes" \
7543 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7544 cat >> confdefs.h
<<\EOF
7545 #define HAVE_GETTEXT 1
7548 # Extract the first word of "msgfmt", so it can be a program name with args.
7549 set dummy msgfmt
; ac_word
=$2
7550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7551 echo "configure:7552: checking for $ac_word" >&5
7552 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7553 echo $ac_n "(cached) $ac_c" 1>&6
7557 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7560 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7561 for ac_dir
in $PATH; do
7562 test -z "$ac_dir" && ac_dir
=.
7563 if test -f $ac_dir/$ac_word; then
7564 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7565 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7571 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7575 MSGFMT
="$ac_cv_path_MSGFMT"
7576 if test -n "$MSGFMT"; then
7577 echo "$ac_t""$MSGFMT" 1>&6
7579 echo "$ac_t""no" 1>&6
7581 if test "$MSGFMT" != "no"; then
7582 for ac_func
in dcgettext
7584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_func" >&5
7586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7589 cat > conftest.
$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func(); below. */
7595 /* Override any gcc2 internal prototype to avoid an error. */
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7603 /* The GNU C library defines this for functions which it implements
7604 to always fail with ENOSYS. Some functions are actually named
7605 something starting with __ and the normal name is an alias. */
7606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7614 if { (eval echo configure
:7615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7616 eval "ac_cv_func_$ac_func=yes"
7618 echo "configure: failed program was:" >&5
7619 cat conftest.
$ac_ext >&5
7621 eval "ac_cv_func_$ac_func=no"
7626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7627 echo "$ac_t""yes" 1>&6
7628 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7629 cat >> confdefs.h
<<EOF
7630 #define $ac_tr_func 1
7634 echo "$ac_t""no" 1>&6
7638 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7639 set dummy gmsgfmt
; ac_word
=$2
7640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7641 echo "configure:7642: checking for $ac_word" >&5
7642 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7643 echo $ac_n "(cached) $ac_c" 1>&6
7647 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7650 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7655 for ac_dir
in $ac_dummy; do
7656 test -z "$ac_dir" && ac_dir
=.
7657 if test -f $ac_dir/$ac_word; then
7658 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7663 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7667 GMSGFMT
="$ac_cv_path_GMSGFMT"
7668 if test -n "$GMSGFMT"; then
7669 echo "$ac_t""$GMSGFMT" 1>&6
7671 echo "$ac_t""no" 1>&6
7674 # Extract the first word of "xgettext", so it can be a program name with args.
7675 set dummy xgettext
; ac_word
=$2
7676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7677 echo "configure:7678: checking for $ac_word" >&5
7678 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7683 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7686 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7687 for ac_dir
in $PATH; do
7688 test -z "$ac_dir" && ac_dir
=.
7689 if test -f $ac_dir/$ac_word; then
7690 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7691 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7697 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7701 XGETTEXT
="$ac_cv_path_XGETTEXT"
7702 if test -n "$XGETTEXT"; then
7703 echo "$ac_t""$XGETTEXT" 1>&6
7705 echo "$ac_t""no" 1>&6
7708 cat > conftest.
$ac_ext <<EOF
7709 #line 7710 "configure"
7710 #include "confdefs.h"
7713 extern int _nl_msg_cat_cntr;
7714 return _nl_msg_cat_cntr
7717 if { (eval echo configure
:7718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7722 echo "configure: failed program was:" >&5
7723 cat conftest.
$ac_ext >&5
7734 echo "$ac_t""no" 1>&6
7738 if test "$CATOBJEXT" = "NONE"; then
7739 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7740 echo "configure:7741: checking whether catgets can be used" >&5
7741 # Check whether --with-catgets or --without-catgets was given.
7742 if test "${with_catgets+set}" = set; then
7743 withval
="$with_catgets"
7744 nls_cv_use_catgets
=$withval
7746 nls_cv_use_catgets
=no
7749 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7751 if test "$nls_cv_use_catgets" = "yes"; then
7752 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7753 echo "configure:7754: checking for main in -li" >&5
7754 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 ac_save_LIBS
="$LIBS"
7760 cat > conftest.
$ac_ext <<EOF
7761 #line 7762 "configure"
7762 #include "confdefs.h"
7768 if { (eval echo configure
:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7770 eval "ac_cv_lib_$ac_lib_var=yes"
7772 echo "configure: failed program was:" >&5
7773 cat conftest.
$ac_ext >&5
7775 eval "ac_cv_lib_$ac_lib_var=no"
7778 LIBS
="$ac_save_LIBS"
7781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7782 echo "$ac_t""yes" 1>&6
7783 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7785 cat >> confdefs.h
<<EOF
7786 #define $ac_tr_lib 1
7792 echo "$ac_t""no" 1>&6
7795 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7796 echo "configure:7797: checking for catgets" >&5
7797 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7800 cat > conftest.
$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 /* System header to define __stub macros and hopefully few prototypes,
7804 which can conflict with char catgets(); below. */
7806 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7814 /* The GNU C library defines this for functions which it implements
7815 to always fail with ENOSYS. Some functions are actually named
7816 something starting with __ and the normal name is an alias. */
7817 #if defined (__stub_catgets) || defined (__stub___catgets)
7825 if { (eval echo configure
:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7827 eval "ac_cv_func_catgets=yes"
7829 echo "configure: failed program was:" >&5
7830 cat conftest.
$ac_ext >&5
7832 eval "ac_cv_func_catgets=no"
7837 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7838 echo "$ac_t""yes" 1>&6
7839 cat >> confdefs.h
<<\EOF
7840 #define HAVE_CATGETS 1
7843 INTLOBJS
="\$(CATOBJS)"
7844 # Extract the first word of "gencat", so it can be a program name with args.
7845 set dummy gencat
; ac_word
=$2
7846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7847 echo "configure:7848: checking for $ac_word" >&5
7848 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
7853 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7856 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7859 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7861 for ac_dir
in $ac_dummy; do
7862 test -z "$ac_dir" && ac_dir
=.
7863 if test -f $ac_dir/$ac_word; then
7864 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7869 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7873 GENCAT
="$ac_cv_path_GENCAT"
7874 if test -n "$GENCAT"; then
7875 echo "$ac_t""$GENCAT" 1>&6
7877 echo "$ac_t""no" 1>&6
7879 if test "$GENCAT" != "no"; then
7880 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7881 set dummy gmsgfmt
; ac_word
=$2
7882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7883 echo "configure:7884: checking for $ac_word" >&5
7884 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7889 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7892 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7897 for ac_dir
in $ac_dummy; do
7898 test -z "$ac_dir" && ac_dir
=.
7899 if test -f $ac_dir/$ac_word; then
7900 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7905 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7909 GMSGFMT
="$ac_cv_path_GMSGFMT"
7910 if test -n "$GMSGFMT"; then
7911 echo "$ac_t""$GMSGFMT" 1>&6
7913 echo "$ac_t""no" 1>&6
7916 if test "$GMSGFMT" = "no"; then
7917 # Extract the first word of "msgfmt", so it can be a program name with args.
7918 set dummy msgfmt
; ac_word
=$2
7919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7920 echo "configure:7921: checking for $ac_word" >&5
7921 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7926 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7929 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7930 for ac_dir
in $PATH; do
7931 test -z "$ac_dir" && ac_dir
=.
7932 if test -f $ac_dir/$ac_word; then
7933 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7934 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7940 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7944 GMSGFMT
="$ac_cv_path_GMSGFMT"
7945 if test -n "$GMSGFMT"; then
7946 echo "$ac_t""$GMSGFMT" 1>&6
7948 echo "$ac_t""no" 1>&6
7952 # Extract the first word of "xgettext", so it can be a program name with args.
7953 set dummy xgettext
; ac_word
=$2
7954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7955 echo "configure:7956: checking for $ac_word" >&5
7956 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7961 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7964 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7965 for ac_dir
in $PATH; do
7966 test -z "$ac_dir" && ac_dir
=.
7967 if test -f $ac_dir/$ac_word; then
7968 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7969 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7975 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7979 XGETTEXT
="$ac_cv_path_XGETTEXT"
7980 if test -n "$XGETTEXT"; then
7981 echo "$ac_t""$XGETTEXT" 1>&6
7983 echo "$ac_t""no" 1>&6
7986 USE_INCLUDED_LIBINTL
=yes
7990 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7992 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7993 nls_cv_header_intl
=intl
/libintl.h
7994 nls_cv_header_libgt
=intl
/libgettext.h
7997 echo "$ac_t""no" 1>&6
8003 if test "$CATOBJEXT" = "NONE"; then
8004 nls_cv_use_gnu_gettext
=yes
8008 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8009 INTLOBJS
="\$(GETTOBJS)"
8010 # Extract the first word of "msgfmt", so it can be a program name with args.
8011 set dummy msgfmt
; ac_word
=$2
8012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8013 echo "configure:8014: checking for $ac_word" >&5
8014 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8019 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8022 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8023 for ac_dir
in $PATH; do
8024 test -z "$ac_dir" && ac_dir
=.
8025 if test -f $ac_dir/$ac_word; then
8026 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8027 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8033 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8037 MSGFMT
="$ac_cv_path_MSGFMT"
8038 if test -n "$MSGFMT"; then
8039 echo "$ac_t""$MSGFMT" 1>&6
8041 echo "$ac_t""no" 1>&6
8044 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8045 set dummy gmsgfmt
; ac_word
=$2
8046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8047 echo "configure:8048: checking for $ac_word" >&5
8048 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8053 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8056 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8059 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8061 for ac_dir
in $ac_dummy; do
8062 test -z "$ac_dir" && ac_dir
=.
8063 if test -f $ac_dir/$ac_word; then
8064 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8069 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8073 GMSGFMT
="$ac_cv_path_GMSGFMT"
8074 if test -n "$GMSGFMT"; then
8075 echo "$ac_t""$GMSGFMT" 1>&6
8077 echo "$ac_t""no" 1>&6
8080 # Extract the first word of "xgettext", so it can be a program name with args.
8081 set dummy xgettext
; ac_word
=$2
8082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8083 echo "configure:8084: checking for $ac_word" >&5
8084 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8085 echo $ac_n "(cached) $ac_c" 1>&6
8089 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8093 for ac_dir
in $PATH; do
8094 test -z "$ac_dir" && ac_dir
=.
8095 if test -f $ac_dir/$ac_word; then
8096 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8097 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8103 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8107 XGETTEXT
="$ac_cv_path_XGETTEXT"
8108 if test -n "$XGETTEXT"; then
8109 echo "$ac_t""$XGETTEXT" 1>&6
8111 echo "$ac_t""no" 1>&6
8115 USE_INCLUDED_LIBINTL
=yes
8119 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8121 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8122 nls_cv_header_intl
=intl
/libintl.h
8123 nls_cv_header_libgt
=intl
/libgettext.h
8126 if test "$XGETTEXT" != ":"; then
8127 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8130 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8135 # We need to process the po/ directory.
8139 nls_cv_header_intl
=intl
/libintl.h
8140 nls_cv_header_libgt
=intl
/libgettext.h
8146 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8147 # because some of the sources are only built for this goal.
8148 if test "$PACKAGE" = gettext; then
8150 USE_INCLUDED_LIBINTL
=yes
8153 for lang
in $ALL_LINGUAS; do
8154 GMOFILES
="$GMOFILES $lang.gmo"
8155 POFILES
="$POFILES $lang.po"
8171 if test "x$CATOBJEXT" != "x"; then
8172 if test "x$ALL_LINGUAS" = "x"; then
8175 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8176 echo "configure:8177: checking for catalogs to be installed" >&5
8178 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8179 case "$ALL_LINGUAS" in
8180 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8183 LINGUAS
=$NEW_LINGUAS
8184 echo "$ac_t""$LINGUAS" 1>&6
8187 if test -n "$LINGUAS"; then
8188 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8192 if test $ac_cv_header_locale_h = yes; then
8193 INCLUDE_LOCALE_H
="#include <locale.h>"
8196 /* The system does not provide the header <locale.h>. Take care yourself. */"
8200 test -d intl || mkdir intl
8201 if test "$CATOBJEXT" = ".cat"; then
8202 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8203 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8204 echo "configure:8205: checking for linux/version.h" >&5
8205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8208 cat > conftest.
$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8211 #include <linux/version.h>
8213 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8214 { (eval echo configure
:8215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8215 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8216 if test -z "$ac_err"; then
8218 eval "ac_cv_header_$ac_safe=yes"
8221 echo "configure: failed program was:" >&5
8222 cat conftest.
$ac_ext >&5
8224 eval "ac_cv_header_$ac_safe=no"
8228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8229 echo "$ac_t""yes" 1>&6
8232 echo "$ac_t""no" 1>&6
8237 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8239 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8240 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8242 if test "$PACKAGE" = "gettext"; then
8253 if test -n "$ac_aux_dir"; then
8254 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8256 if test -z "$MKINSTALLDIRS"; then
8257 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8264 test -d po || mkdir po
8265 if test "x$srcdir" != "x."; then
8266 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8267 posrcprefix
="$srcdir/"
8269 posrcprefix
="../$srcdir/"
8275 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8276 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8278 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8280 # Windows32 Registry support for specifying GCC installation paths.
8281 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8282 if test "${enable_win32_registry+set}" = set; then
8283 enableval
="$enable_win32_registry"
8288 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8289 echo "configure:8290: checking whether windows registry support is requested" >&5
8290 if test x
$enable_win32_registry != xno
; then
8291 cat >> confdefs.h
<<\EOF
8292 #define ENABLE_WIN32_REGISTRY 1
8295 echo "$ac_t""yes" 1>&6
8297 echo "$ac_t""no" 1>&6
8300 # Check if user specified a different registry key.
8301 case x
${enable_win32_registry} in
8304 gcc_cv_win32_registry_key
="$VERSION"
8307 # no registry lookup.
8308 gcc_cv_win32_registry_key
=''
8311 # user-specified key.
8312 gcc_cv_win32_registry_key
="$enable_win32_registry"
8316 if test x
$enable_win32_registry != xno
; then
8317 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8318 echo "configure:8319: checking registry key on windows hosts" >&5
8319 cat >> confdefs.h
<<EOF
8320 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8323 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8326 # Get an absolute path to the GCC top-level source directory
8332 # Conditionalize the makefile for this host machine.
8333 # Make-host contains the concatenation of all host makefile fragments
8334 # [there can be more than one]. This file is built by configure.frag.
8335 host_overrides
=Make-host
8336 dep_host_xmake_file
=
8337 for f
in ..
${host_xmake_file}
8339 if test -f ${srcdir}/config
/$f
8341 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8345 # Conditionalize the makefile for this target machine.
8346 # Make-target contains the concatenation of all host makefile fragments
8347 # [there can be more than one]. This file is built by configure.frag.
8348 target_overrides
=Make-target
8350 for f
in ..
${tmake_file}
8352 if test -f ${srcdir}/config
/$f
8354 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8358 # If the host doesn't support symlinks, modify CC in
8359 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8360 # Otherwise, we can use "CC=$(CC)".
8362 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8364 cc_set_by_configure
="\$(CC)"
8365 quoted_cc_set_by_configure
="\$(CC)"
8366 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8369 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8371 symbolic_link
="cp -p"
8375 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8376 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8377 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8381 out_object_file
=`basename $out_file .c`.o
8384 for f
in $tm_file; do
8387 tm_file_list
="${tm_file_list} $f" ;;
8388 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8393 for f
in $host_xm_file; do
8395 auto-host.h | gansidecl.h | hwint.h
)
8396 host_xm_file_list
="${host_xm_file_list} $f" ;;
8397 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8402 for f
in $build_xm_file; do
8404 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8405 build_xm_file_list
="${build_xm_file_list} $f" ;;
8406 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8410 # Define macro CROSS_COMPILE in compilation
8411 # if this is a cross-compiler.
8412 # Also use all.cross instead of all.internal
8413 # and add cross-make to Makefile.
8414 cross_overrides
="/dev/null"
8415 if test x
$host != x
$target
8417 cross_defines
="CROSS=-DCROSS_COMPILE"
8418 cross_overrides
="${topdir}/cross-make"
8421 # When building gcc with a cross-compiler, we need to fix a few things.
8422 # This must come after cross-make as we want all.build to override
8424 build_overrides
="/dev/null"
8425 if test x
$build != x
$host
8427 build_overrides
="${topdir}/build-make"
8430 # Expand extra_headers to include complete path.
8431 # This substitutes for lots of t-* files.
8433 if test "x$extra_headers" = x
8436 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8437 for file in $extra_headers;
8439 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8443 if test x
$use_collect2 = xno
; then
8447 # Add a definition of USE_COLLECT2 if system wants one.
8448 # Also tell toplev.c what to do.
8449 # This substitutes for lots of t-* files.
8450 if test x
$use_collect2 = x
8455 will_use_collect2
="collect2"
8456 maybe_use_collect2
="-DUSE_COLLECT2"
8460 # Set MD_DEPS if the real md file is in md.pre-cpp.
8461 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8462 # for line oriented comments, so we must always use a GNU cpp. If
8463 # building gcc with a cross compiler, use the cross compiler just
8464 # built. Otherwise, we can use the cpp just built.
8466 if test "x$md_cppflags" = x
8468 md_file_sub
=$srcdir/config
/$md_file
8473 # If we have gas in the build tree, make a link to it.
8474 if test -f ..
/gas
/Makefile
; then
8475 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8478 # If we have nm in the build tree, make a link to it.
8479 if test -f ..
/binutils
/Makefile
; then
8480 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8483 # If we have ld in the build tree, make a link to it.
8484 if test -f ..
/ld
/Makefile
; then
8485 # if test x$use_collect2 = x; then
8486 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8488 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8492 # Figure out what assembler alignment features are present.
8493 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8494 echo "configure:8495: checking assembler alignment features" >&5
8496 gcc_cv_as_alignment_features
=
8497 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8498 if test -x "$DEFAULT_ASSEMBLER"; then
8499 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8500 elif test -x "$AS"; then
8502 elif test -x as
$host_exeext; then
8503 # Build using assembler in the current directory.
8504 gcc_cv_as
=.
/as
$host_exeext
8505 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8506 # Single tree build which includes gas.
8507 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8509 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8510 if test x
$gcc_cv_gas_version != x
; then
8514 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8515 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8516 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8517 # Gas version 2.6 and later support for .balign and .p2align.
8518 # bytes to skip when using .p2align.
8519 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
8520 gcc_cv_as_alignment_features
=".balign and .p2align"
8521 cat >> confdefs.h
<<\EOF
8522 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8526 # Gas version 2.8 and later support specifying the maximum
8527 # bytes to skip when using .p2align.
8528 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
8529 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8530 cat >> confdefs.h
<<\EOF
8531 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8536 elif test x
$host = x
$target; then
8538 # Search the same directories that the installed compiler will
8539 # search. Else we may find the wrong assembler and lose. If we
8540 # do not find a suitable assembler binary, then try the user's
8543 # Also note we have to check MD_EXEC_PREFIX before checking the
8544 # user's path. Unfortunately, there is no good way to get at the
8545 # value of MD_EXEC_PREFIX here. So we do a brute force search
8546 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8547 # to be fixed as part of the make/configure rewrite too.
8549 if test "x$exec_prefix" = xNONE
; then
8550 if test "x$prefix" = xNONE
; then
8551 test_prefix
=/usr
/local
8556 test_prefix
=$exec_prefix
8559 # If the loop below does not find an assembler, then use whatever
8560 # one we can find in the users's path.
8564 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8565 $test_prefix/lib/gcc-lib/$target \
8566 /usr/lib/gcc/$target/$gcc_version \
8567 /usr/lib/gcc/$target \
8568 $test_prefix/$target/bin/$target/$gcc_version \
8569 $test_prefix/$target/bin \
8574 /bsd43/usr/lib/cmplrs/cc \
8575 /usr/cross64/usr/bin \
8576 /usr/lib/cmplrs/cc \
8577 /sysv/usr/lib/cmplrs/cc \
8578 /svr4/usr/lib/cmplrs/cc \
8581 for dir
in $test_dirs; do
8582 if test -f $dir/as
$host_exeext; then
8583 gcc_cv_as
=$dir/as
$host_exeext
8588 if test x
$gcc_cv_as != x
; then
8589 # Check if we have .balign and .p2align
8590 echo ".balign 4" > conftest.s
8591 echo ".p2align 2" >> conftest.s
8592 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8593 gcc_cv_as_alignment_features
=".balign and .p2align"
8594 cat >> confdefs.h
<<\EOF
8595 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8599 rm -f conftest.s conftest.o
8600 # Check if specifying the maximum bytes to skip when
8601 # using .p2align is supported.
8602 echo ".p2align 4,,7" > conftest.s
8603 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8604 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8605 cat >> confdefs.h
<<\EOF
8606 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8610 rm -f conftest.s conftest.o
8612 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8614 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8615 echo "configure:8616: checking assembler subsection support" >&5
8616 gcc_cv_as_subsections
=
8617 if test x
$gcc_cv_as != x
; then
8618 # Check if we have .subsection
8619 echo ".subsection 1" > conftest.s
8620 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8621 gcc_cv_as_subsections
=".subsection"
8622 if test -x nm
$host_exeext; then
8623 gcc_cv_nm
=.
/nm
$host_exeext
8624 elif test x
$host = x
$target; then
8626 gcc_cv_nm
=nm
$host_exeext
8628 if test x
$gcc_cv_nm != x
; then
8629 cat > conftest.s
<<EOF
8630 conftest_label1: .word 0
8632 conftest_label2: .word 0
8635 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8636 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8637 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8638 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8641 gcc_cv_as_subsections
="working .subsection -1"
8642 cat >> confdefs.h
<<\EOF
8643 #define HAVE_GAS_SUBSECTION_ORDERING 1
8650 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8652 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8654 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8655 echo "configure:8656: checking assembler weak support" >&5
8657 if test x
$gcc_cv_as != x
; then
8658 # Check if we have .weak
8659 echo " .weak foobar" > conftest.s
8660 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8661 cat >> confdefs.h
<<\EOF
8662 #define HAVE_GAS_WEAK 1
8665 gcc_cv_as_weak
="yes"
8667 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8669 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8671 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8672 echo "configure:8673: checking assembler hidden support" >&5
8674 if test x
$gcc_cv_as != x
; then
8675 # Check if we have .hidden
8676 echo " .hidden foobar" > conftest.s
8677 echo "foobar:" >> conftest.s
8678 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8679 cat >> confdefs.h
<<\EOF
8680 #define HAVE_GAS_HIDDEN 1
8683 gcc_cv_as_hidden
="yes"
8685 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8687 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8691 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8692 echo "configure:8693: checking assembler .register pseudo-op support" >&5
8693 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8697 gcc_cv_as_register_pseudo_op
=unknown
8698 if test x
$gcc_cv_as != x
; then
8699 # Check if we have .register
8700 echo ".register %g2, #scratch" > conftest.s
8701 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8702 gcc_cv_as_register_pseudo_op
=yes
8704 gcc_cv_as_register_pseudo_op
=no
8706 rm -f conftest.s conftest.o
8711 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8712 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8713 cat >> confdefs.h
<<\EOF
8714 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8721 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8722 echo "configure:8723: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8723 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8724 echo $ac_n "(cached) $ac_c" 1>&6
8727 if test -n "$gcc_cv_as"; then
8728 echo ".xword foo" > conftest.s
8729 gcc_cv_as_flags64
=no
8730 for flag
in "-xarch=v9" "-64 -Av9"; do
8731 if $gcc_cv_as $flag -o conftest.o conftest.s \
8732 > /dev
/null
2>&1; then
8733 gcc_cv_as_flags64
=$flag
8737 rm -f conftest.s conftest.o
8739 if test "$gas" = yes; then
8740 gcc_cv_as_flags64
="-64 -Av9"
8742 gcc_cv_as_flags64
="-xarch=v9"
8748 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8749 if test "x$gcc_cv_as_flags64" = xno
; then
8751 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8752 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8755 cat >> confdefs.h
<<EOF
8756 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8761 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8765 if test "x$gcc_cv_as_flags64" != xno
; then
8766 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8767 echo "configure:8768: checking for assembler offsetable %lo() support" >&5
8768 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8769 echo $ac_n "(cached) $ac_c" 1>&6
8772 gcc_cv_as_offsetable_lo10
=unknown
8773 if test "x$gcc_cv_as" != x
; then
8774 # Check if assembler has offsetable %lo()
8775 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8776 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8777 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8779 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8780 > /dev
/null
2>&1; then
8781 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8782 gcc_cv_as_offsetable_lo10
=no
8784 gcc_cv_as_offsetable_lo10
=yes
8787 gcc_cv_as_offsetable_lo10
=no
8789 rm -f conftest.s conftest.o conftest1.s conftest1.o
8794 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8795 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8796 cat >> confdefs.h
<<\EOF
8797 #define HAVE_AS_OFFSETABLE_LO10 1
8805 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8806 echo "configure:8807: checking assembler instructions" >&5
8807 gcc_cv_as_instructions
=
8808 if test x
$gcc_cv_as != x
; then
8809 set "filds fists" "filds mem; fists mem"
8812 echo "$2" > conftest.s
8813 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8814 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8815 cat >> confdefs.h
<<EOF
8816 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8822 rm -f conftest.s conftest.o
8824 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8828 # Figure out what language subdirectories are present.
8829 # Look if the user specified --enable-languages="..."; if not, use
8830 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8832 if test x
"${enable_languages+set}" != xset
; then
8833 if test x
"${LANGUAGES+set}" = xset
; then
8834 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8836 enable_languages
=all
8840 for lang
in ${srcdir}/*/config-lang.
in ..
8844 # The odd quoting in the next line works around
8845 # an apparent bug in bash 1.12 on linux.
8846 ${srcdir}/[*]/config-lang.
in) ;;
8848 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8849 if test "x$lang_alias" = x
8851 echo "$lang doesn't set \$language." 1>&2
8854 if test x
"${enable_languages}" = xall
; then
8857 case "${enable_languages}" in
8858 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8866 if test x"${add_this_lang}" = xyes; then
8868 ${srcdir}/ada/config-lang.in)
8869 if test x$gnat = xyes ; then
8870 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8874 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8882 # Make gthr-default.h if we have a thread file.
8884 if test $thread_file != single; then
8885 rm -f gthr-default.h
8886 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8887 gthread_flags
=-DHAVE_GTHR_DEFAULT
8891 # Find out what GC implementation we want, or may, use.
8892 # Check whether --with-gc or --without-gc was given.
8893 if test "${with_gc+set}" = set; then
8900 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8904 if test $ac_cv_func_mmap_anywhere = yes \
8905 ||
test $ac_cv_func_valloc = yes; then
8913 echo "Using $GGC for garbage collection."
8915 # Build a new-abi (c++) system
8916 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
8917 if test "${enable_new_gxx_abi+set}" = set; then
8918 enableval
="$enable_new_gxx_abi"
8919 cat >> confdefs.h
<<\EOF
8920 #define ENABLE_NEW_GXX_ABI 1
8923 GXX_ABI_FLAG
='-fnew-abi'
8924 echo "Building a new-abi g++ compiler."
8930 # Build a new-libstdc++ system (ie libstdc++-v3)
8931 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
8932 echo "configure:8933: checking for libstdc++ to install" >&5
8933 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
8934 if test "${enable_libstdcxx_v3+set}" = set; then
8935 enableval
="$enable_libstdcxx_v3"
8936 enable_libstdcxx_v3
=yes
8938 enable_libstdcxx_v3
=no
8942 if test x
$enable_libstdcxx_v3 = xyes
; then
8943 echo "$ac_t""v3" 1>&6
8944 cat >> confdefs.h
<<\EOF
8945 #define ENABLE_STD_NAMESPACE 1
8949 echo "$ac_t""v2" 1>&6
8953 # Make empty files to contain the specs and options for each language.
8954 # Then add #include lines to for a compiler that has specs and/or options.
8959 rm -f specs.h options.h gencheck.h
8960 touch specs.h options.h gencheck.h
8961 for subdir
in .
$subdirs
8963 if test -f $srcdir/$subdir/lang-specs.h
; then
8964 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8965 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8967 if test -f $srcdir/$subdir/lang-options.h
; then
8968 echo "#include \"$subdir/lang-options.h\"" >>options.h
8969 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8971 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8972 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8973 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8977 # These (without "all_") are set in each config-lang.in.
8978 # `language' must be a single word so is spelled singularly.
8984 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
8985 # List of language makefile fragments.
8990 # Add the language fragments.
8991 # Languages are added via two mechanisms. Some information must be
8992 # recorded in makefile variables, these are defined in config-lang.in.
8993 # We accumulate them and plug them into the main Makefile.
8994 # The other mechanism is a set of hooks for each of the main targets
8995 # like `clean', `install', etc.
8997 language_fragments
="Make-lang"
8998 language_hooks
="Make-hooks"
9001 for s
in ..
$subdirs
9013 .
${srcdir}/$s/config-lang.
in
9014 if test "x$language" = x
9016 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9019 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9020 all_languages
="$all_languages $language"
9021 if test "x$boot_language" = xyes
9023 all_boot_languages
="$all_boot_languages $language"
9025 all_compilers
="$all_compilers $compilers"
9026 all_stagestuff
="$all_stagestuff $stagestuff"
9027 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9028 all_headers
="$all_headers $headers"
9029 all_outputs
="$all_outputs $outputs"
9030 if test x
$outputs = x
9032 oldstyle_subdirs
="$oldstyle_subdirs $s"
9034 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9038 # Since we can't use `::' targets, we link each language in
9039 # with a set of hooks, reached indirectly via lang.${target}.
9043 target_list
="all.build all.cross start.encap rest.encap \
9045 install-normal install-common install-info install-man \
9047 mostlyclean clean distclean extraclean maintainer-clean \
9048 stage1 stage2 stage3 stage4"
9049 for t
in $target_list
9052 for lang
in ..
$all_languages
9054 if test $lang != ".."; then
9058 echo "lang.$t: $x" >> Make-hooks
9061 # If we're not building in srcdir, create .gdbinit.
9063 if test ! -f Makefile.
in; then
9064 echo "dir ." > .gdbinit
9065 echo "dir ${srcdir}" >> .gdbinit
9066 if test x
$gdb_needs_out_file_path = xyes
9068 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9070 if test "x$subdirs" != x
; then
9073 echo "dir ${srcdir}/$s" >> .gdbinit
9076 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9079 # Define variables host_canonical and build_canonical
9080 # because some Cygnus local changes in the Makefile depend on them.
9081 build_canonical
=${build}
9082 host_canonical
=${host}
9084 if test "${host}" != "${target}" ; then
9085 target_subdir
=${target}/
9091 # If this is using newlib, then define inhibit_libc in
9092 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9093 # libgcc.a, but that's OK because newib should have its own version of
9096 if test x
$with_newlib = xyes
; then
9097 inhibit_libc
=-Dinhibit_libc
9101 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9102 # absolute path for gcc_tooldir based on inserting the number of up-directory
9103 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9104 # $(libsubdir)/@(unlibsubdir) based path.
9105 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9106 # make and thus we'd get different behavior depending on where we built the
9108 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9109 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9111 # An explanation of the sed strings:
9112 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9113 # -e 's|/$||' match a trailing forward slash and eliminates it
9114 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9115 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9117 # (*) Note this pattern overwrites the first character of the string
9118 # with a forward slash if one is not already present. This is not a
9119 # problem because the exact names of the sub-directories concerned is
9120 # unimportant, just the number of them matters.
9122 # The practical upshot of these patterns is like this:
9124 # prefix exec_prefix result
9125 # ------ ----------- ------
9127 # /foo/ /foo/bar ../
9128 # /foo /foo/bar/ ../
9129 # /foo/ /foo/bar/ ../
9130 # /foo /foo/bar/ugg ../../
9133 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9138 # Nothing to do for FLOAT_H, float_format already handled.
9142 # Process the language and host/target makefile fragments.
9143 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9145 # Substitute configuration variables
9205 # Echo that links are built
9206 if test x
$host = x
$target
9214 if test x
$host != x
$build
9216 str3
=" on a $build system"
9219 if test "x$str2" != x ||
test "x$str3" != x
9224 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9226 if test "x$str2" != x ||
test "x$str3" != x
9228 echo " ${str2}${str3}." 1>&2
9231 # Truncate the target if necessary
9232 if test x
$host_truncate_target != x
; then
9233 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9236 # Configure the subdirectories
9237 # AC_CONFIG_SUBDIRS($subdirs)
9239 # Create the Makefile
9240 # and configure language subdirectories
9242 cat > confcache
<<\EOF
9243 # This file is a shell script that caches the results of configure
9244 # tests run on this system so they can be shared between configure
9245 # scripts and configure runs. It is not useful on other systems.
9246 # If it contains results you don't want to keep, you may remove or edit it.
9248 # By default, configure uses ./config.cache as the cache file,
9249 # creating it if it does not exist already. You can give configure
9250 # the --cache-file=FILE option to use a different cache file; that is
9251 # what configure does when it calls configure scripts in
9252 # subdirectories, so they share the cache.
9253 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9254 # config.status only pays attention to the cache file if you give it the
9255 # --recheck option to rerun configure.
9258 # The following way of writing the cache mishandles newlines in values,
9259 # but we know of no workaround that is simple, portable, and efficient.
9260 # So, don't put newlines in cache variables' values.
9261 # Ultrix sh set writes to stderr and can't be redirected directly,
9262 # and sets the high bit in the cache file unless we assign to the vars.
9264 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9266 # `set' does not quote correctly, so add quotes (double-quote substitution
9267 # turns \\\\ into \\, and sed turns \\ into \).
9269 -e "s/'/'\\\\''/g" \
9270 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9273 # `set' quotes correctly as required by POSIX, so do not add quotes.
9274 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9277 if cmp -s $cache_file confcache
; then
9280 if test -w $cache_file; then
9281 echo "updating cache $cache_file"
9282 cat confcache
> $cache_file
9284 echo "not updating unwritable cache $cache_file"
9289 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9291 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9292 # Let make expand exec_prefix.
9293 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9295 # Any assignment to VPATH causes Sun make to only execute
9296 # the first set of double-colon rules, so remove it if not needed.
9297 # If there is a colon in the path, we need to keep it.
9298 if test "x$srcdir" = x.
; then
9299 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9302 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9304 DEFS
=-DHAVE_CONFIG_H
9306 # Without the "./", some shells look in PATH for config.status.
9307 : ${CONFIG_STATUS=./config.status}
9309 echo creating
$CONFIG_STATUS
9310 rm -f $CONFIG_STATUS
9311 cat > $CONFIG_STATUS <<EOF
9313 # Generated automatically by configure.
9314 # Run this file to recreate the current configuration.
9315 # This directory was configured as follows,
9316 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9318 # $0 $ac_configure_args
9320 # Compiler output produced by configure, useful for debugging
9321 # configure, is in ./config.log if it exists.
9323 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9326 case "\$ac_option" in
9327 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9328 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9329 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9330 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9331 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9333 -help | --help | --hel | --he | --h)
9334 echo "\$ac_cs_usage"; exit 0 ;;
9335 *) echo "\$ac_cs_usage"; exit 1 ;;
9339 ac_given_srcdir=$srcdir
9341 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9343 cat >> $CONFIG_STATUS <<EOF
9345 # Protect against being on the right side of a sed subst in config.status.
9346 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9347 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9351 s%@CFLAGS@%$CFLAGS%g
9352 s%@CPPFLAGS@%$CPPFLAGS%g
9353 s%@CXXFLAGS@%$CXXFLAGS%g
9354 s%@FFLAGS@%$FFLAGS%g
9356 s%@LDFLAGS@%$LDFLAGS%g
9358 s%@exec_prefix@%$exec_prefix%g
9359 s%@prefix@%$prefix%g
9360 s%@program_transform_name@%$program_transform_name%g
9361 s%@bindir@%$bindir%g
9362 s%@sbindir@%$sbindir%g
9363 s%@libexecdir@%$libexecdir%g
9364 s%@datadir@%$datadir%g
9365 s%@sysconfdir@%$sysconfdir%g
9366 s%@sharedstatedir@%$sharedstatedir%g
9367 s%@localstatedir@%$localstatedir%g
9368 s%@libdir@%$libdir%g
9369 s%@includedir@%$includedir%g
9370 s%@oldincludedir@%$oldincludedir%g
9371 s%@infodir@%$infodir%g
9372 s%@mandir@%$mandir%g
9374 s%@host_alias@%$host_alias%g
9375 s%@host_cpu@%$host_cpu%g
9376 s%@host_vendor@%$host_vendor%g
9377 s%@host_os@%$host_os%g
9378 s%@target@%$target%g
9379 s%@target_alias@%$target_alias%g
9380 s%@target_cpu@%$target_cpu%g
9381 s%@target_vendor@%$target_vendor%g
9382 s%@target_os@%$target_os%g
9384 s%@build_alias@%$build_alias%g
9385 s%@build_cpu@%$build_cpu%g
9386 s%@build_vendor@%$build_vendor%g
9387 s%@build_os@%$build_os%g
9389 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9390 s%@SET_MAKE@%$SET_MAKE%g
9393 s%@LEXLIB@%$LEXLIB%g
9396 s%@RANLIB@%$RANLIB%g
9398 s%@INSTALL@%$INSTALL%g
9399 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9400 s%@INSTALL_DATA@%$INSTALL_DATA%g
9403 s%@vfprintf@%$vfprintf%g
9404 s%@doprint@%$doprint%g
9405 s%@manext@%$manext%g
9406 s%@objext@%$objext%g
9407 s%@PACKAGE@%$PACKAGE%g
9408 s%@VERSION@%$VERSION%g
9409 s%@ALLOCA@%$ALLOCA%g
9410 s%@USE_NLS@%$USE_NLS%g
9411 s%@MSGFMT@%$MSGFMT%g
9412 s%@GMSGFMT@%$GMSGFMT%g
9413 s%@XGETTEXT@%$XGETTEXT%g
9414 s%@GENCAT@%$GENCAT%g
9415 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9416 s%@CATALOGS@%$CATALOGS%g
9417 s%@CATOBJEXT@%$CATOBJEXT%g
9418 s%@DATADIRNAME@%$DATADIRNAME%g
9419 s%@GMOFILES@%$GMOFILES%g
9420 s%@INSTOBJEXT@%$INSTOBJEXT%g
9421 s%@INTLDEPS@%$INTLDEPS%g
9422 s%@INTLLIBS@%$INTLLIBS%g
9423 s%@INTLOBJS@%$INTLOBJS%g
9424 s%@POFILES@%$POFILES%g
9426 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9428 s%@GT_YES@%$GT_YES%g
9429 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9431 s%@gthread_flags@%$gthread_flags%g
9433 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9434 s%@build_canonical@%$build_canonical%g
9435 s%@host_canonical@%$host_canonical%g
9436 s%@target_subdir@%$target_subdir%g
9437 s%@inhibit_libc@%$inhibit_libc%g
9438 s%@gcc_tooldir@%$gcc_tooldir%g
9439 s%@dollar@%$dollar%g
9440 s%@objdir@%$objdir%g
9441 s%@subdirs@%$subdirs%g
9442 s%@all_boot_languages@%$all_boot_languages%g
9443 s%@all_compilers@%$all_compilers%g
9444 s%@all_diff_excludes@%$all_diff_excludes%g
9445 s%@all_headers@%$all_headers%g
9446 s%@all_lang_makefiles@%$all_lang_makefiles%g
9447 s%@all_languages@%$all_languages%g
9448 s%@all_lib2funcs@%$all_lib2funcs%g
9449 s%@all_stagestuff@%$all_stagestuff%g
9450 s%@build_exeext@%$build_exeext%g
9451 s%@build_install_headers_dir@%$build_install_headers_dir%g
9452 s%@build_xm_file_list@%$build_xm_file_list%g
9453 s%@cc_set_by_configure@%$cc_set_by_configure%g
9454 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9455 s%@cpp_install_dir@%$cpp_install_dir%g
9456 s%@cpp_main@%$cpp_main%g
9457 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9458 s%@dep_tmake_file@%$dep_tmake_file%g
9459 s%@extra_c_flags@%$extra_c_flags%g
9460 s%@extra_c_objs@%$extra_c_objs%g
9461 s%@extra_cpp_objs@%$extra_cpp_objs%g
9462 s%@extra_cxx_objs@%$extra_cxx_objs%g
9463 s%@extra_headers_list@%$extra_headers_list%g
9464 s%@extra_objs@%$extra_objs%g
9465 s%@extra_parts@%$extra_parts%g
9466 s%@extra_passes@%$extra_passes%g
9467 s%@extra_programs@%$extra_programs%g
9468 s%@float_h_file@%$float_h_file%g
9469 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9470 s%@gcc_version@%$gcc_version%g
9471 s%@gcc_version_trigger@%$gcc_version_trigger%g
9472 s%@host_exeext@%$host_exeext%g
9473 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9474 s%@host_xm_file_list@%$host_xm_file_list%g
9475 s%@install@%$install%g
9476 s%@lang_options_files@%$lang_options_files%g
9477 s%@lang_specs_files@%$lang_specs_files%g
9478 s%@lang_tree_files@%$lang_tree_files%g
9479 s%@local_prefix@%$local_prefix%g
9480 s%@maybe_use_collect2@%$maybe_use_collect2%g
9481 s%@md_file@%$md_file%g
9482 s%@objc_boehm_gc@%$objc_boehm_gc%g
9483 s%@out_file@%$out_file%g
9484 s%@out_object_file@%$out_object_file%g
9485 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9486 s%@symbolic_link@%$symbolic_link%g
9487 s%@thread_file@%$thread_file%g
9488 s%@tm_file_list@%$tm_file_list%g
9489 s%@will_use_collect2@%$will_use_collect2%g
9490 /@target_overrides@/r $target_overrides
9491 s%@target_overrides@%%g
9492 /@host_overrides@/r $host_overrides
9493 s%@host_overrides@%%g
9494 s%@cross_defines@%$cross_defines%g
9495 /@cross_overrides@/r $cross_overrides
9496 s%@cross_overrides@%%g
9497 /@build_overrides@/r $build_overrides
9498 s%@build_overrides@%%g
9499 /@language_fragments@/r $language_fragments
9500 s%@language_fragments@%%g
9501 /@language_hooks@/r $language_hooks
9502 s%@language_hooks@%%g
9507 cat >> $CONFIG_STATUS <<\EOF
9509 # Split the substitutions into bite-sized pieces for seds with
9510 # small command number limits, like on Digital OSF/1 and HP-UX.
9511 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9512 ac_file
=1 # Number of current file.
9513 ac_beg
=1 # First line for current file.
9514 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9517 while $ac_more_lines; do
9518 if test $ac_beg -gt 1; then
9519 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9521 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9523 if test ! -s conftest.s
$ac_file; then
9525 rm -f conftest.s
$ac_file
9527 if test -z "$ac_sed_cmds"; then
9528 ac_sed_cmds
="sed -f conftest.s$ac_file"
9530 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9532 ac_file
=`expr $ac_file + 1`
9534 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9537 if test -z "$ac_sed_cmds"; then
9542 cat >> $CONFIG_STATUS <<EOF
9544 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9546 cat >> $CONFIG_STATUS <<\EOF
9547 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9550 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9551 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9552 *) ac_file_in
="${ac_file}.in" ;;
9555 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9557 # Remove last slash and all that follows it. Not all systems have dirname.
9558 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9559 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9560 # The file is in a subdirectory.
9561 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9562 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9563 # A "../" for each directory in $ac_dir_suffix.
9564 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9566 ac_dir_suffix
= ac_dots
=
9569 case "$ac_given_srcdir" in
9571 if test -z "$ac_dots"; then top_srcdir
=.
9572 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9573 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9575 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9576 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9580 echo creating
"$ac_file"
9582 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9584 *Makefile
*) ac_comsub
="1i\\
9585 # $configure_input" ;;
9589 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9591 s%@configure_input@%$configure_input%g
9592 s%@srcdir@%$srcdir%g
9593 s%@top_srcdir@%$top_srcdir%g
9594 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9598 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9599 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9601 # ac_d sets the value in "#define NAME VALUE" lines.
9602 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9603 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9606 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9607 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9608 ac_uB
='\([ ]\)%\1#\2define\3'
9611 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9612 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9613 ac_eB
='$%\1#\2define\3'
9617 if test "${CONFIG_HEADERS+set}" != set; then
9619 cat >> $CONFIG_STATUS <<EOF
9620 CONFIG_HEADERS="auto-host.h:config.in"
9622 cat >> $CONFIG_STATUS <<\EOF
9624 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9627 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9628 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9629 *) ac_file_in
="${ac_file}.in" ;;
9632 echo creating
$ac_file
9634 rm -f conftest.frag conftest.
in conftest.out
9635 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9636 cat $ac_file_inputs > conftest.
in
9640 # Transform confdefs.h into a sed script conftest.vals that substitutes
9641 # the proper values into config.h.in to produce config.h. And first:
9642 # Protect against being on the right side of a sed subst in config.status.
9643 # Protect against being in an unquoted here document in config.status.
9645 cat > conftest.hdr
<<\EOF
9648 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9652 sed -n -f conftest.hdr confdefs.h > conftest.vals
9655 # This sed command replaces #undef with comments. This is necessary, for
9656 # example, in the case of _POSIX_SOURCE, which is predefined and required
9657 # on some systems where configure will not decide to define it.
9658 cat >> conftest.vals <<\EOF
9659 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9662 # Break up conftest.vals because some shells have a limit on
9663 # the size of here documents, and old seds have small limits too.
9668 ac_lines=`grep -c . conftest.vals
`
9669 # grep -c gives empty output for an empty file on some AIX systems.
9670 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9671 # Write a limited-size here document to conftest.frag.
9672 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9673 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9675 sed -f conftest.frag conftest.in > conftest.out
9677 mv conftest.out conftest.in
9679 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9681 mv conftest.tail conftest.vals
9685 cat >> $CONFIG_STATUS <<\EOF
9686 rm -f conftest.frag conftest.h
9687 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9688 cat conftest.in >> conftest.h
9690 if cmp -s $ac_file conftest.h 2>/dev/null; then
9691 echo "$ac_file is unchanged"
9694 # Remove last slash and all that follows it. Not all systems have dirname.
9695 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9696 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9697 # The file is in a subdirectory.
9698 test ! -d "$ac_dir" && mkdir "$ac_dir"
9701 mv conftest.h $ac_file
9707 cat >> $CONFIG_STATUS <<EOF
9708 ac_sources="$nls_cv_header_libgt"
9709 ac_dests="$nls_cv_header_intl"
9712 cat >> $CONFIG_STATUS <<\EOF
9713 srcdir=$ac_given_srcdir
9714 while test -n "$ac_sources"; do
9715 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9716 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9718 echo "linking $srcdir/$ac_source to $ac_dest"
9720 if test ! -r $srcdir/$ac_source; then
9721 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9725 # Make relative symlinks.
9726 # Remove last slash and all that follows it. Not all systems have dirname.
9727 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9728 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9729 # The dest file is in a subdirectory.
9730 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9731 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9732 # A "../" for each directory in $ac_dest_dir_suffix.
9733 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9735 ac_dest_dir_suffix= ac_dots=
9739 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9740 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9743 # Make a symlink if possible; otherwise try a hard link.
9744 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9745 ln $srcdir/$ac_source $ac_dest; then :
9747 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9751 cat >> $CONFIG_STATUS <<EOF
9757 target_alias='${target_alias}'
9759 subdirs='${subdirs}'
9760 oldstyle_subdirs='${oldstyle_subdirs}'
9761 symbolic_link='${symbolic_link}'
9762 program_transform_set='${program_transform_set}'
9763 program_transform_name='${program_transform_name}'
9764 dep_host_xmake_file='${dep_host_xmake_file}'
9765 host_xmake_file='${host_xmake_file}'
9766 dep_tmake_file='${dep_tmake_file}'
9767 tmake_file='${tmake_file}'
9768 thread_file='${thread_file}'
9769 gcc_version='${gcc_version}'
9770 gcc_version_trigger='${gcc_version_trigger}'
9771 local_prefix='${local_prefix}'
9772 build_install_headers_dir='${build_install_headers_dir}'
9773 build_exeext='${build_exeext}'
9774 host_exeext='${host_exeext}'
9775 out_file='${out_file}'
9776 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9777 SET_MAKE='${SET_MAKE}'
9778 target_list='${target_list}'
9779 target_overrides='${target_overrides}'
9780 host_overrides='${host_overrides}'
9781 cross_defines='${cross_defines}'
9782 cross_overrides='${cross_overrides}'
9783 build_overrides='${build_overrides}'
9784 cpp_install_dir='${cpp_install_dir}'
9787 cat >> $CONFIG_STATUS <<\EOF
9788 case "$CONFIG_FILES" in *po/Makefile.in*)
9789 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9792 . $srcdir/configure.lang
9793 case x$CONFIG_HEADERS in
9794 xauto-host.h:config.in)
9797 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9798 # bootstrapping and the installation procedure can still use
9799 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9800 # FLAGS_TO_PASS has been modified to solve the problem there.
9801 # This is virtually a duplicate of what happens in configure.lang; we do
9802 # an extra check to make sure this only happens if ln -s can be used.
9803 if test "$symbolic_link" = "ln -s"; then
9804 for d in .. ${subdirs} ; do
9805 if test $d != ..; then
9808 for t in stage1 stage2 stage3 stage4 include
9811 $symbolic_link ../$t $t 2>/dev/null
9817 # Avoid having to add intl to our include paths.
9818 if test -f intl/libintl.h; then
9819 echo creating libintl.h
9820 echo '#include "intl/libintl.h"' >libintl.h
9825 chmod +x $CONFIG_STATUS
9826 rm -fr confdefs* $ac_clean_files
9827 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1