3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-c-mbchar Enable multibyte characters for C and C++."
46 --enable-threads enable thread usage for target GCC.
47 --enable-threads=LIB use LIB thread package for target GCC."
49 --enable-objc-gc enable the use of Boehm's garbage collector with
50 the GNU Objective-C runtime."
52 --with-dwarf2 force the default debug format to be DWARF2."
54 --enable-nls use Native Language Support (default)"
56 --disable-nls do not use Native Language Support"
58 --with-included-gettext use the GNU gettext library included here"
60 --with-catgets use catgets functions if available"
62 --disable-win32-registry
63 Disable lookup of installation paths in the
64 Registry on Windows hosts.
65 --enable-win32-registry Enable registry lookup (default).
66 --enable-win32-registry=KEY
67 Use KEY instead of GCC version as the last portion
70 --with-gc={simple,page} Choose the garbage collection mechanism to use
74 select the new abi for g++. You must select an ABI
75 at configuration time, so that the correct runtime
76 support is built. You cannot mix ABIs."
79 enable libstdc++-v3 for building and installation"
81 --enable-maintainer-mode enable make rules and dependencies not useful
82 (and sometimes confusing) to the casual installer"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
88 cache_file
=.
/config.cache
97 program_transform_name
=s
,x
,x
,
105 bindir
='${exec_prefix}/bin'
106 sbindir
='${exec_prefix}/sbin'
107 libexecdir
='${exec_prefix}/libexec'
108 datadir
='${prefix}/share'
109 sysconfdir
='${prefix}/etc'
110 sharedstatedir
='${prefix}/com'
111 localstatedir
='${prefix}/var'
112 libdir
='${exec_prefix}/lib'
113 includedir
='${prefix}/include'
114 oldincludedir
='/usr/include'
115 infodir
='${prefix}/info'
116 mandir
='${prefix}/man'
118 # Initialize some other variables.
121 SHELL
=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
147 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
148 bindir
="$ac_optarg" ;;
150 -build |
--build |
--buil |
--bui |
--bu)
152 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
153 build
="$ac_optarg" ;;
155 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
156 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
157 ac_prev
=cache_file
;;
158 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
159 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
160 cache_file
="$ac_optarg" ;;
162 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
164 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
166 datadir
="$ac_optarg" ;;
168 -disable-* |
--disable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* |
--enable-*)
178 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
191 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
192 |
--exec |
--exe |
--ex)
193 ac_prev
=exec_prefix
;;
194 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
195 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
196 |
--exec=* |
--exe=* |
--ex=*)
197 exec_prefix
="$ac_optarg" ;;
199 -gas |
--gas |
--ga |
--g)
200 # Obsolete; use --with-gas.
203 -help |
--help |
--hel |
--he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host |
--host |
--hos |
--ho)
260 -host=* |
--host=* |
--hos=* |
--ho=*)
263 -includedir |
--includedir |
--includedi |
--included |
--include \
264 |
--includ |
--inclu |
--incl |
--inc)
265 ac_prev
=includedir
;;
266 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
267 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
268 includedir
="$ac_optarg" ;;
270 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
272 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
273 infodir
="$ac_optarg" ;;
275 -libdir |
--libdir |
--libdi |
--libd)
277 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
278 libdir
="$ac_optarg" ;;
280 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
281 |
--libexe |
--libex |
--libe)
282 ac_prev
=libexecdir
;;
283 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
284 |
--libexe=* |
--libex=* |
--libe=*)
285 libexecdir
="$ac_optarg" ;;
287 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
288 |
--localstate |
--localstat |
--localsta |
--localst \
289 |
--locals |
--local |
--loca |
--loc |
--lo)
290 ac_prev
=localstatedir
;;
291 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
292 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
293 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
294 localstatedir
="$ac_optarg" ;;
296 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
298 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
299 mandir
="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
309 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
310 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
313 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
314 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
315 |
--oldin |
--oldi |
--old |
--ol |
--o)
316 ac_prev
=oldincludedir
;;
317 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
318 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
319 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
320 oldincludedir
="$ac_optarg" ;;
322 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
324 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
325 prefix
="$ac_optarg" ;;
327 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
328 |
--program-pre |
--program-pr |
--program-p)
329 ac_prev
=program_prefix
;;
330 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
331 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
332 program_prefix
="$ac_optarg" ;;
334 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
335 |
--program-suf |
--program-su |
--program-s)
336 ac_prev
=program_suffix
;;
337 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
338 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
339 program_suffix
="$ac_optarg" ;;
341 -program-transform-name |
--program-transform-name \
342 |
--program-transform-nam |
--program-transform-na \
343 |
--program-transform-n |
--program-transform- \
344 |
--program-transform |
--program-transfor \
345 |
--program-transfo |
--program-transf \
346 |
--program-trans |
--program-tran \
347 |
--progr-tra |
--program-tr |
--program-t)
348 ac_prev
=program_transform_name
;;
349 -program-transform-name=* |
--program-transform-name=* \
350 |
--program-transform-nam=* |
--program-transform-na=* \
351 |
--program-transform-n=* |
--program-transform-=* \
352 |
--program-transform=* |
--program-transfor=* \
353 |
--program-transfo=* |
--program-transf=* \
354 |
--program-trans=* |
--program-tran=* \
355 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
356 program_transform_name
="$ac_optarg" ;;
358 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
359 |
-silent |
--silent |
--silen |
--sile |
--sil)
362 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
364 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
366 sbindir
="$ac_optarg" ;;
368 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
369 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
370 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
372 ac_prev
=sharedstatedir
;;
373 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
374 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
375 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
377 sharedstatedir
="$ac_optarg" ;;
379 -site |
--site |
--sit)
381 -site=* |
--site=* |
--sit=*)
384 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
386 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
387 srcdir
="$ac_optarg" ;;
389 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
390 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
391 ac_prev
=sysconfdir
;;
392 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
393 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
394 sysconfdir
="$ac_optarg" ;;
396 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
398 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
399 target
="$ac_optarg" ;;
401 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
404 -version |
--version |
--versio |
--versi |
--vers)
405 echo "configure generated by autoconf version 2.13"
409 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* |
--without-*)
422 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package
=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
431 # Obsolete; use --with-x.
434 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
435 |
--x-incl |
--x-inc |
--x-in |
--x-i)
436 ac_prev
=x_includes
;;
437 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
438 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
439 x_includes
="$ac_optarg" ;;
441 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
442 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
443 ac_prev
=x_libraries
;;
444 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
445 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
446 x_libraries
="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE
; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
496 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
497 |
--no-cr |
--no-c) ;;
498 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
499 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
500 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest
* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file
=tree.c
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted
=yes
528 # Try the directory containing this script, then its parent.
530 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
533 if test ! -r $srcdir/$ac_unique_file; then
537 ac_srcdir_defaulted
=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE
; then
551 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
553 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file
in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp
='$CPP $CPPFLAGS'
574 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling
=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
589 ac_n
= ac_c
='\c' ac_t
=
597 symbolic_link
='ln -s'
600 # Check for bogus environment variables.
601 # Test if LIBRARY_PATH contains the notation for the current directory
602 # since this would lead to problems installing/building glibc.
603 # LIBRARY_PATH contains the current directory if one of the following
605 # - one of the terminals (":" and ";") is the first or last sign
606 # - two terminals occur directly after each other
607 # - the path contains an element with a dot in it
608 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
609 echo "configure:610: checking LIBRARY_PATH variable" >&5
610 case ${LIBRARY_PATH} in
611 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
612 library_path_setting
="contains current directory"
615 library_path_setting
="ok"
618 echo "$ac_t""$library_path_setting" 1>&6
619 if test "$library_path_setting" != "ok"; then
620 { echo "configure: error:
621 *** LIBRARY_PATH shouldn't contain the current directory when
622 *** building gcc. Please change the environment variable
623 *** and run configure again." 1>&2; exit 1; }
626 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
627 # since this would lead to problems installing/building glibc.
628 # GCC_EXEC_PREFIX contains the current directory if one of the following
630 # - one of the terminals (":" and ";") is the first or last sign
631 # - two terminals occur directly after each other
632 # - the path contains an element with a dot in it
633 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
634 echo "configure:635: checking GCC_EXEC_PREFIX variable" >&5
635 case ${GCC_EXEC_PREFIX} in
636 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
637 gcc_exec_prefix_setting
="contains current directory"
640 gcc_exec_prefix_setting
="ok"
643 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
644 if test "$gcc_exec_prefix_setting" != "ok"; then
645 { echo "configure: error:
646 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
647 *** building gcc. Please change the environment variable
648 *** and run configure again." 1>&2; exit 1; }
651 # Check for additional parameters
654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
655 if test "${with_gnu_ld+set}" = set; then
656 withval
="$with_gnu_ld"
657 gnu_ld_flag
="$with_gnu_ld"
663 # With pre-defined ld
664 # Check whether --with-ld or --without-ld was given.
665 if test "${with_ld+set}" = set; then
667 DEFAULT_LINKER
="$with_ld"
670 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
671 if test ! -x "$DEFAULT_LINKER"; then
672 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
673 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
676 cat >> confdefs.h
<<EOF
677 #define DEFAULT_LINKER "$DEFAULT_LINKER"
683 # Check whether --with-gnu-as or --without-gnu-as was given.
684 if test "${with_gnu_as+set}" = set; then
685 withval
="$with_gnu_as"
686 gas_flag
="$with_gnu_as"
692 # Check whether --with-as or --without-as was given.
693 if test "${with_as+set}" = set; then
695 DEFAULT_ASSEMBLER
="$with_as"
698 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
699 if test ! -x "$DEFAULT_ASSEMBLER"; then
700 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
701 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
704 cat >> confdefs.h
<<EOF
705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
711 # Check whether --with-stabs or --without-stabs was given.
712 if test "${with_stabs+set}" = set; then
713 withval
="$with_stabs"
721 # Check whether --with-elf or --without-elf was given.
722 if test "${with_elf+set}" = set; then
730 # Specify the local prefix
732 # Check whether --with-local-prefix or --without-local-prefix was given.
733 if test "${with_local_prefix+set}" = set; then
734 withval
="$with_local_prefix"
736 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
738 *) local_prefix
=$with_local_prefix ;;
743 # Default local prefix if it is empty
744 if test x
$local_prefix = x
; then
745 local_prefix
=/usr
/local
748 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
749 # passed in by the toplevel make and thus we'd get different behavior
750 # depending on where we built the sources.
752 # Specify the g++ header file directory
753 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
754 if test "${with_gxx_include_dir+set}" = set; then
755 withval
="$with_gxx_include_dir"
757 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
759 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
764 if test x
${gcc_gxx_include_dir} = x
; then
765 if test x
${enable_version_specific_runtime_libs} = xyes
; then
766 gcc_gxx_include_dir
='${libsubdir}/include/g++'
768 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
769 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
773 # Enable expensive internal checks
774 # Check whether --enable-checking or --disable-checking was given.
775 if test "${enable_checking+set}" = set; then
776 enableval
="$enable_checking"
781 ac_gc_always_collect
=
782 case "${enableval}" in
783 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_rtl_checking
=1 ;;
785 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS" IFS
="$IFS,"
786 set fnord
$enableval; shift
791 misc
) ac_checking
=1 ;;
792 tree
) ac_tree_checking
=1 ;;
793 rtl
) ac_rtl_checking
=1 ;;
794 gc
) ac_gc_checking
=1 ;;
795 gcac
) ac_gc_always_collect
=1 ;;
796 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
801 if test x
$ac_checking != x
; then
802 cat >> confdefs.h
<<\EOF
803 #define ENABLE_CHECKING 1
807 if test x
$ac_tree_checking != x
; then
808 cat >> confdefs.h
<<\EOF
809 #define ENABLE_TREE_CHECKING 1
813 if test x
$ac_rtl_checking != x
; then
814 cat >> confdefs.h
<<\EOF
815 #define ENABLE_RTL_CHECKING 1
819 if test x
$ac_gc_checking != x
; then
820 cat >> confdefs.h
<<\EOF
821 #define ENABLE_GC_CHECKING 1
825 if test x
$ac_gc_always_collect != x
; then
826 cat >> confdefs.h
<<\EOF
827 #define ENABLE_GC_ALWAYS_COLLECT 1
835 # Check whether --enable-cpp or --disable-cpp was given.
836 if test "${enable_cpp+set}" = set; then
837 enableval
="$enable_cpp"
844 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
845 if test "${with_cpp_install_dir+set}" = set; then
846 withval
="$with_cpp_install_dir"
847 if test x
$withval = xyes
; then
848 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
849 elif test x
$withval != xno
; then
850 cpp_install_dir
=$withval
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 if test "x$CC" != xcc
; then
1257 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether $CC and cc understand -c and -o together" >&5
1260 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether cc understands -c and -o together" >&5
1263 set dummy
$CC; ac_cc
="`echo $2 |
1264 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1265 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 echo 'foo(){}' > conftest.c
1269 # Make sure it works both with $CC and with simple cc.
1270 # We do the test twice because some compilers refuse to overwrite an
1271 # existing .o file with -o, though they will create one.
1272 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1273 if { (eval echo configure
:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1274 test -f conftest.o
&& { (eval echo configure
:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1276 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1277 if test "x$CC" != xcc
; then
1278 # Test first that cc exists at all.
1279 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1280 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1281 if { (eval echo configure
:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1282 test -f conftest.o
&& { (eval echo configure
:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1287 # cc exists but doesn't like -o.
1288 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1293 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1298 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1299 echo "$ac_t""yes" 1>&6
1301 echo "$ac_t""no" 1>&6
1302 cat >> confdefs.h
<<\EOF
1303 #define NO_MINUS_C_MINUS_O 1
1308 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1309 NO_MINUS_C_MINUS_O
=yes
1313 echo $ac_n "checking for long double""... $ac_c" 1>&6
1314 echo "configure:1315: checking for long double" >&5
1315 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 if test "$GCC" = yes; then
1319 gcc_cv_c_long_double
=yes
1321 cat > conftest.
$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1326 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1327 long double foo = 0.0;
1328 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1329 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1332 if { (eval echo configure
:1333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1334 gcc_cv_c_long_double
=yes
1336 echo "configure: failed program was:" >&5
1337 cat conftest.
$ac_ext >&5
1339 gcc_cv_c_long_double
=no
1345 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1346 if test $gcc_cv_c_long_double = yes; then
1347 cat >> confdefs.h
<<\EOF
1348 #define HAVE_LONG_DOUBLE 1
1354 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1356 echo 'void f(){}' > conftest.c
1357 if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
1358 ac_cv_prog_cc_no_long_long
=yes
1360 ac_cv_prog_cc_no_long_long
=no
1363 echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
1365 # If the native compiler is GCC, we can enable warnings even in stage1.
1366 # That's useful for people building cross-compilers, or just running a
1368 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1369 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1370 if test "x$GCC" = "xyes"; then
1371 if test $ac_cv_prog_cc_no_long_long = yes; then
1372 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1375 stage1_warn_cflags
=""
1380 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether ${MAKE-make} sets \${MAKE}" >&5
1382 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1383 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 cat > conftestmake
<<\EOF
1388 @
echo 'ac_maketemp="${MAKE}"'
1390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1391 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1392 if test -n "$ac_maketemp"; then
1393 eval ac_cv_prog_make_
${ac_make}_set
=yes
1395 eval ac_cv_prog_make_
${ac_make}_set
=no
1399 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1400 echo "$ac_t""yes" 1>&6
1403 echo "$ac_t""no" 1>&6
1404 SET_MAKE
="MAKE=${MAKE-make}"
1408 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1409 echo "configure:1410: checking whether a default assembler was specified" >&5
1410 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1411 if test x
"$gas_flag" = x
"no"; then
1412 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1414 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1417 echo "$ac_t""no" 1>&6
1420 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether a default linker was specified" >&5
1422 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1423 if test x
"$gnu_ld_flag" = x
"no"; then
1424 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1426 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1429 echo "$ac_t""no" 1>&6
1432 # Find some useful tools
1433 for ac_prog
in mawk gawk nawk
awk
1435 # Extract the first word of "$ac_prog", so it can be a program name with args.
1436 set dummy
$ac_prog; ac_word
=$2
1437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1438 echo "configure:1439: checking for $ac_word" >&5
1439 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 if test -n "$AWK"; then
1443 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1445 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1447 for ac_dir
in $ac_dummy; do
1448 test -z "$ac_dir" && ac_dir
=.
1449 if test -f $ac_dir/$ac_word; then
1450 ac_cv_prog_AWK
="$ac_prog"
1457 AWK
="$ac_cv_prog_AWK"
1458 if test -n "$AWK"; then
1459 echo "$ac_t""$AWK" 1>&6
1461 echo "$ac_t""no" 1>&6
1464 test -n "$AWK" && break
1467 # Extract the first word of "flex", so it can be a program name with args.
1468 set dummy flex
; ac_word
=$2
1469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1470 echo "configure:1471: checking for $ac_word" >&5
1471 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 if test -n "$LEX"; then
1475 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1477 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1479 for ac_dir
in $ac_dummy; do
1480 test -z "$ac_dir" && ac_dir
=.
1481 if test -f $ac_dir/$ac_word; then
1482 ac_cv_prog_LEX
="flex"
1487 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1490 LEX
="$ac_cv_prog_LEX"
1491 if test -n "$LEX"; then
1492 echo "$ac_t""$LEX" 1>&6
1494 echo "$ac_t""no" 1>&6
1497 if test -z "$LEXLIB"
1503 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1504 echo "configure:1505: checking for yywrap in -l$ac_lib" >&5
1505 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 ac_save_LIBS
="$LIBS"
1510 LIBS
="-l$ac_lib $LIBS"
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* Override any gcc2 internal prototype to avoid an error. */
1515 /* We use char because int might match the return type of a gcc2
1516 builtin and then its argument prototype would still apply. */
1523 if { (eval echo configure
:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1525 eval "ac_cv_lib_$ac_lib_var=yes"
1527 echo "configure: failed program was:" >&5
1528 cat conftest.
$ac_ext >&5
1530 eval "ac_cv_lib_$ac_lib_var=no"
1533 LIBS
="$ac_save_LIBS"
1536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1537 echo "$ac_t""yes" 1>&6
1540 echo "$ac_t""no" 1>&6
1545 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1546 echo "configure:1547: checking whether ln works" >&5
1547 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 rm -f conftestdata_t
1551 echo >conftestdata_f
1552 if ln conftestdata_f conftestdata_t
2>/dev
/null
1556 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1558 gcc_cv_prog_LN
="ln -s"
1563 rm -f conftestdata_f conftestdata_t
1566 LN
="$gcc_cv_prog_LN"
1567 if test "$gcc_cv_prog_LN" = "ln"; then
1568 echo "$ac_t""yes" 1>&6
1570 if test "$gcc_cv_prog_LN" = "ln -s"; then
1571 echo "$ac_t""no, using ln -s" 1>&6
1573 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1577 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1578 echo "configure:1579: checking whether ln -s works" >&5
1579 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 rm -f conftestdata_t
1583 echo >conftestdata_f
1584 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1586 gcc_cv_prog_LN_S
="ln -s"
1588 if ln conftestdata_f conftestdata_t
2>/dev
/null
1595 rm -f conftestdata_f conftestdata_t
1598 LN_S
="$gcc_cv_prog_LN_S"
1599 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1600 echo "$ac_t""yes" 1>&6
1602 if test "$gcc_cv_prog_LN_S" = "ln"; then
1603 echo "$ac_t""no, using ln" 1>&6
1605 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1609 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1610 echo "configure:1611: checking for volatile" >&5
1611 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1622 if { (eval echo configure
:1623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1624 gcc_cv_c_volatile
=yes
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1629 gcc_cv_c_volatile
=no
1634 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1635 if test $gcc_cv_c_volatile = yes ; then
1636 cat >> confdefs.h
<<\EOF
1637 #define HAVE_VOLATILE 1
1642 # Extract the first word of "ranlib", so it can be a program name with args.
1643 set dummy ranlib
; ac_word
=$2
1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_word" >&5
1646 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 if test -n "$RANLIB"; then
1650 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1652 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1654 for ac_dir
in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir
=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_prog_RANLIB
="ranlib"
1662 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1665 RANLIB
="$ac_cv_prog_RANLIB"
1666 if test -n "$RANLIB"; then
1667 echo "$ac_t""$RANLIB" 1>&6
1669 echo "$ac_t""no" 1>&6
1672 for ac_prog
in 'bison -y' byacc
1674 # Extract the first word of "$ac_prog", so it can be a program name with args.
1675 set dummy
$ac_prog; ac_word
=$2
1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_word" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 if test -n "$YACC"; then
1682 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1684 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1686 for ac_dir
in $ac_dummy; do
1687 test -z "$ac_dir" && ac_dir
=.
1688 if test -f $ac_dir/$ac_word; then
1689 ac_cv_prog_YACC
="$ac_prog"
1696 YACC
="$ac_cv_prog_YACC"
1697 if test -n "$YACC"; then
1698 echo "$ac_t""$YACC" 1>&6
1700 echo "$ac_t""no" 1>&6
1703 test -n "$YACC" && break
1705 test -n "$YACC" || YACC
="yacc"
1707 # Find a good install program. We prefer a C program (faster),
1708 # so one script is as good as another. But avoid the broken or
1709 # incompatible versions:
1710 # SysV /etc/install, /usr/sbin/install
1711 # SunOS /usr/etc/install
1712 # IRIX /sbin/install
1714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1716 # ./install, which can be erroneously created by make from ./install.sh.
1717 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1718 echo "configure:1719: checking for a BSD compatible install" >&5
1719 if test -z "$INSTALL"; then
1720 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1724 for ac_dir
in $PATH; do
1725 # Account for people who put trailing slashes in PATH elements.
1727 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1729 # OSF1 and SCO ODT 3.0 have their own names for install.
1730 for ac_prog
in ginstall scoinst
install; do
1731 if test -f $ac_dir/$ac_prog; then
1732 if test $ac_prog = install &&
1733 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1734 # AIX install. It has an incompatible calling convention.
1735 # OSF/1 installbsd also uses dspmsg, but is usable.
1738 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1749 if test "${ac_cv_path_install+set}" = set; then
1750 INSTALL
="$ac_cv_path_install"
1752 # As a last resort, use the slow shell script. We don't cache a
1753 # path for INSTALL within a source directory, because that will
1754 # break other packages using the cache if that directory is
1755 # removed, or if the path is relative.
1756 INSTALL
="$ac_install_sh"
1759 echo "$ac_t""$INSTALL" 1>&6
1761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1762 # It thinks the first close brace ends the variable substitution.
1763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1765 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1768 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1769 echo "configure:1770: checking how to run the C preprocessor" >&5
1770 # On Suns, sometimes $CPP names a directory.
1771 if test -n "$CPP" && test -d "$CPP"; then
1774 if test -z "$CPP"; then
1775 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 # This must be in double quotes, not single quotes, because CPP may get
1779 # substituted into the Makefile and "${CC-cc}" will confuse make.
1781 # On the NeXT, cc -E runs the code through the compiler's parser,
1782 # not just through cpp.
1783 cat > conftest.
$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1789 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1790 { (eval echo configure
:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1791 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1792 if test -z "$ac_err"; then
1796 echo "configure: failed program was:" >&5
1797 cat conftest.
$ac_ext >&5
1799 CPP
="${CC-cc} -E -traditional-cpp"
1800 cat > conftest.
$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1806 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1807 { (eval echo configure
:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1808 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1809 if test -z "$ac_err"; then
1813 echo "configure: failed program was:" >&5
1814 cat conftest.
$ac_ext >&5
1816 CPP
="${CC-cc} -nologo -E"
1817 cat > conftest.
$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1823 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1824 { (eval echo configure
:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1825 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1826 if test -z "$ac_err"; then
1830 echo "configure: failed program was:" >&5
1831 cat conftest.
$ac_ext >&5
1840 ac_cv_prog_CPP
="$CPP"
1842 CPP
="$ac_cv_prog_CPP"
1844 ac_cv_prog_CPP
="$CPP"
1846 echo "$ac_t""$CPP" 1>&6
1848 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1849 echo "configure:1850: checking for ANSI C header files" >&5
1850 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 cat > conftest.
$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1861 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1862 { (eval echo configure
:1863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1863 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1864 if test -z "$ac_err"; then
1866 ac_cv_header_stdc
=yes
1869 echo "configure: failed program was:" >&5
1870 cat conftest.
$ac_ext >&5
1872 ac_cv_header_stdc
=no
1876 if test $ac_cv_header_stdc = yes; then
1877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1884 egrep "memchr" >/dev
/null
2>&1; then
1888 ac_cv_header_stdc
=no
1894 if test $ac_cv_header_stdc = yes; then
1895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1896 cat > conftest.
$ac_ext <<EOF
1897 #line 1898 "configure"
1898 #include "confdefs.h"
1901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1902 egrep "free" >/dev
/null
2>&1; then
1906 ac_cv_header_stdc
=no
1912 if test $ac_cv_header_stdc = yes; then
1913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1914 if test "$cross_compiling" = yes; then
1917 cat > conftest.
$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1921 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1922 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1924 int main () { int i; for (i = 0; i < 256; i++)
1925 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1929 if { (eval echo configure
:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1933 echo "configure: failed program was:" >&5
1934 cat conftest.
$ac_ext >&5
1936 ac_cv_header_stdc
=no
1944 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1945 if test $ac_cv_header_stdc = yes; then
1946 cat >> confdefs.h
<<\EOF
1947 #define STDC_HEADERS 1
1952 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether time.h and sys/time.h may both be included" >&5
1954 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.
$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1960 #include <sys/types.h>
1961 #include <sys/time.h>
1967 if { (eval echo configure
:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1969 ac_cv_header_time
=yes
1971 echo "configure: failed program was:" >&5
1972 cat conftest.
$ac_ext >&5
1974 ac_cv_header_time
=no
1979 echo "$ac_t""$ac_cv_header_time" 1>&6
1980 if test $ac_cv_header_time = yes; then
1981 cat >> confdefs.h
<<\EOF
1982 #define TIME_WITH_SYS_TIME 1
1987 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1988 echo "configure:1989: checking whether string.h and strings.h may both be included" >&5
1989 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 cat > conftest.
$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1996 #include <strings.h>
2001 if { (eval echo configure
:2002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2003 gcc_cv_header_string
=yes
2005 echo "configure: failed program was:" >&5
2006 cat conftest.
$ac_ext >&5
2008 gcc_cv_header_string
=no
2013 echo "$ac_t""$gcc_cv_header_string" 1>&6
2014 if test $gcc_cv_header_string = yes; then
2015 cat >> confdefs.h
<<\EOF
2016 #define STRING_WITH_STRINGS 1
2021 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2022 echo "configure:2023: checking for sys/wait.h that is POSIX.1 compatible" >&5
2023 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 #include <sys/types.h>
2030 #include <sys/wait.h>
2032 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2035 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2040 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2043 if { (eval echo configure
:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2045 ac_cv_header_sys_wait_h
=yes
2047 echo "configure: failed program was:" >&5
2048 cat conftest.
$ac_ext >&5
2050 ac_cv_header_sys_wait_h
=no
2055 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2056 if test $ac_cv_header_sys_wait_h = yes; then
2057 cat >> confdefs.h
<<\EOF
2058 #define HAVE_SYS_WAIT_H 1
2063 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2064 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2065 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2068 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2070 echo "configure:2071: checking for $ac_hdr" >&5
2071 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.
$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2079 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2080 { (eval echo configure
:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2081 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2082 if test -z "$ac_err"; then
2084 eval "ac_cv_header_$ac_safe=yes"
2087 echo "configure: failed program was:" >&5
2088 cat conftest.
$ac_ext >&5
2090 eval "ac_cv_header_$ac_safe=no"
2094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2095 echo "$ac_t""yes" 1>&6
2096 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2097 cat >> confdefs.h
<<EOF
2098 #define $ac_tr_hdr 1
2102 echo "$ac_t""no" 1>&6
2107 # Check for thread headers.
2108 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2109 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2110 echo "configure:2111: checking for thread.h" >&5
2111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 cat > conftest.
$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2119 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2120 { (eval echo configure
:2121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2121 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2122 if test -z "$ac_err"; then
2124 eval "ac_cv_header_$ac_safe=yes"
2127 echo "configure: failed program was:" >&5
2128 cat conftest.
$ac_ext >&5
2130 eval "ac_cv_header_$ac_safe=no"
2134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2135 echo "$ac_t""yes" 1>&6
2138 echo "$ac_t""no" 1>&6
2142 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2143 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2144 echo "configure:2145: checking for pthread.h" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 #include <pthread.h>
2153 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2154 { (eval echo configure
:2155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2155 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2156 if test -z "$ac_err"; then
2158 eval "ac_cv_header_$ac_safe=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.
$ac_ext >&5
2164 eval "ac_cv_header_$ac_safe=no"
2168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2169 echo "$ac_t""yes" 1>&6
2172 echo "$ac_t""no" 1>&6
2177 # See if GNAT has been installed
2178 # Extract the first word of "gnatbind", so it can be a program name with args.
2179 set dummy gnatbind
; ac_word
=$2
2180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2181 echo "configure:2182: checking for $ac_word" >&5
2182 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 if test -n "$gnat"; then
2186 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2188 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2190 for ac_dir
in $ac_dummy; do
2191 test -z "$ac_dir" && ac_dir
=.
2192 if test -f $ac_dir/$ac_word; then
2193 ac_cv_prog_gnat
="yes"
2198 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2201 gnat
="$ac_cv_prog_gnat"
2202 if test -n "$gnat"; then
2203 echo "$ac_t""$gnat" 1>&6
2205 echo "$ac_t""no" 1>&6
2209 # Do we have a single-tree copy of texinfo?
2210 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2211 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2212 gcc_cv_prog_makeinfo_modern
=yes
2213 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2215 # See if makeinfo has been installed and is modern enough
2216 # that we can use it.
2217 # Extract the first word of "makeinfo", so it can be a program name with args.
2218 set dummy makeinfo
; ac_word
=$2
2219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2220 echo "configure:2221: checking for $ac_word" >&5
2221 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 if test -n "$MAKEINFO"; then
2225 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2227 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2229 for ac_dir
in $ac_dummy; do
2230 test -z "$ac_dir" && ac_dir
=.
2231 if test -f $ac_dir/$ac_word; then
2232 ac_cv_prog_MAKEINFO
="makeinfo"
2239 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2240 if test -n "$MAKEINFO"; then
2241 echo "$ac_t""$MAKEINFO" 1>&6
2243 echo "$ac_t""no" 1>&6
2246 if test -n "$MAKEINFO"; then
2247 # Found it, now check the version.
2248 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2249 echo "configure:2250: checking for modern makeinfo" >&5
2250 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2254 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2255 echo "configure:2256: version of makeinfo is $ac_prog_version" >&5
2256 case $ac_prog_version in
2257 '') gcc_cv_prog_makeinfo_modern
=no
;;
2258 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2259 gcc_cv_prog_makeinfo_modern
=yes;;
2260 *) gcc_cv_prog_makeinfo_modern
=no
;;
2265 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2267 gcc_cv_prog_makeinfo_modern
=no
2272 if test $gcc_cv_prog_makeinfo_modern = no
; then
2273 echo "configure: warning:
2274 *** Makeinfo is missing or too old.
2275 *** Info documentation will not be built or installed." 1>&2
2280 INSTALL_INFO
=install-info
2283 # See if the stage1 system preprocessor understands the ANSI C
2284 # preprocessor stringification operator.
2287 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2288 echo "configure:2289: checking for preprocessor stringizing operator" >&5
2289 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2298 char *s = x(teststring);
2301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2302 egrep "#teststring" >/dev
/null
2>&1; then
2304 ac_cv_c_stringize
=no
2307 ac_cv_c_stringize
=yes
2313 if test "${ac_cv_c_stringize}" = yes
2315 cat >> confdefs.h
<<\EOF
2316 #define HAVE_STRINGIZE 1
2320 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2323 # Use <inttypes.h> only if it exists,
2324 # doesn't clash with <sys/types.h>, and declares intmax_t.
2325 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2326 echo "configure:2327: checking for inttypes.h" >&5
2327 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.
$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <sys/types.h>
2334 #include <inttypes.h>
2339 if { (eval echo configure
:2340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2341 gcc_cv_header_inttypes_h
=yes
2343 echo "configure: failed program was:" >&5
2344 cat conftest.
$ac_ext >&5
2346 gcc_cv_header_inttypes_h
=no
2351 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2352 if test $gcc_cv_header_inttypes_h = yes; then
2353 cat >> confdefs.h
<<\EOF
2354 #define HAVE_INTTYPES_H 1
2360 # Determine if enumerated bitfields are unsigned. ISO C says they can
2361 # be either signed or unsigned.
2363 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2364 echo "configure:2365: checking for unsigned enumerated bitfields" >&5
2365 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 if test "$cross_compiling" = yes; then
2369 gcc_cv_enum_bf_unsigned
=yes
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2375 enum t { BLAH = 128 } ;
2376 struct s_t { enum t member : 8; } s ;
2380 if (s.member < 0) exit(1);
2385 if { (eval echo configure
:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2387 gcc_cv_enum_bf_unsigned
=yes
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2392 gcc_cv_enum_bf_unsigned
=no
2399 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2400 if test $gcc_cv_enum_bf_unsigned = yes; then
2401 cat >> confdefs.h
<<\EOF
2402 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2407 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2408 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2409 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2410 fputs_unlocked getrusage valloc
2412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_func" >&5
2414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.
$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 /* System header to define __stub macros and hopefully few prototypes,
2421 which can conflict with char $ac_func(); below. */
2423 /* Override any gcc2 internal prototype to avoid an error. */
2424 /* We use char because int might match the return type of a gcc2
2425 builtin and then its argument prototype would still apply. */
2430 /* The GNU C library defines this for functions which it implements
2431 to always fail with ENOSYS. Some functions are actually named
2432 something starting with __ and the normal name is an alias. */
2433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2441 if { (eval echo configure
:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2443 eval "ac_cv_func_$ac_func=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.
$ac_ext >&5
2448 eval "ac_cv_func_$ac_func=no"
2453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2456 cat >> confdefs.h
<<EOF
2457 #define $ac_tr_func 1
2461 echo "$ac_t""no" 1>&6
2466 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2467 echo "configure:2468: checking for ssize_t" >&5
2468 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 cat > conftest.
$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 #include <sys/types.h>
2480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2481 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2483 ac_cv_type_ssize_t
=yes
2486 ac_cv_type_ssize_t
=no
2491 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2492 if test $ac_cv_type_ssize_t = no
; then
2493 cat >> confdefs.h
<<\EOF
2500 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2501 echo "configure:2502: checking for vprintf" >&5
2502 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 cat > conftest.
$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 /* System header to define __stub macros and hopefully few prototypes,
2509 which can conflict with char vprintf(); below. */
2511 /* Override any gcc2 internal prototype to avoid an error. */
2512 /* We use char because int might match the return type of a gcc2
2513 builtin and then its argument prototype would still apply. */
2518 /* The GNU C library defines this for functions which it implements
2519 to always fail with ENOSYS. Some functions are actually named
2520 something starting with __ and the normal name is an alias. */
2521 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2529 if { (eval echo configure
:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2531 eval "ac_cv_func_vprintf=yes"
2533 echo "configure: failed program was:" >&5
2534 cat conftest.
$ac_ext >&5
2536 eval "ac_cv_func_vprintf=no"
2541 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2542 echo "$ac_t""yes" 1>&6
2543 cat >> confdefs.h
<<\EOF
2544 #define HAVE_VPRINTF 1
2548 echo "$ac_t""no" 1>&6
2551 if test "$ac_cv_func_vprintf" != yes; then
2552 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2553 echo "configure:2554: checking for _doprnt" >&5
2554 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 cat > conftest.
$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char _doprnt(); below. */
2563 /* Override any gcc2 internal prototype to avoid an error. */
2564 /* We use char because int might match the return type of a gcc2
2565 builtin and then its argument prototype would still apply. */
2570 /* The GNU C library defines this for functions which it implements
2571 to always fail with ENOSYS. Some functions are actually named
2572 something starting with __ and the normal name is an alias. */
2573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2581 if { (eval echo configure
:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2583 eval "ac_cv_func__doprnt=yes"
2585 echo "configure: failed program was:" >&5
2586 cat conftest.
$ac_ext >&5
2588 eval "ac_cv_func__doprnt=no"
2593 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2594 echo "$ac_t""yes" 1>&6
2595 cat >> confdefs.h
<<\EOF
2596 #define HAVE_DOPRNT 1
2600 echo "$ac_t""no" 1>&6
2607 if test $ac_cv_func_vprintf != yes ; then
2609 if test $ac_cv_func__doprnt != yes ; then
2616 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2617 echo "configure:2618: checking whether the printf functions support %p" >&5
2618 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 if test "$cross_compiling" = yes; then
2622 gcc_cv_func_printf_ptr
=no
2624 cat > conftest.
$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2632 char *p = buf, *q = NULL;
2633 sprintf(buf, "%p", p);
2634 sscanf(buf, "%p", &q);
2638 if { (eval echo configure
:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2640 gcc_cv_func_printf_ptr
=yes
2642 echo "configure: failed program was:" >&5
2643 cat conftest.
$ac_ext >&5
2645 gcc_cv_func_printf_ptr
=no
2650 rm -f core core.
* *.core
2653 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2654 if test $gcc_cv_func_printf_ptr = yes ; then
2655 cat >> confdefs.h
<<\EOF
2656 #define HAVE_PRINTF_PTR 1
2664 # Under some versions of uwin, vfork is notoriously buggy and the test
2665 # can hang configure; on other versions, vfork exists just as a stub.
2666 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2667 ac_cv_func_vfork_works
=no
2670 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2671 echo "configure:2672: checking for pid_t" >&5
2672 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 cat > conftest.
$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2678 #include <sys/types.h>
2684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2685 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2687 ac_cv_type_pid_t
=yes
2695 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2696 if test $ac_cv_type_pid_t = no
; then
2697 cat >> confdefs.h
<<\EOF
2703 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2704 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2705 echo "configure:2706: checking for vfork.h" >&5
2706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 cat > conftest.
$ac_ext <<EOF
2710 #line 2711 "configure"
2711 #include "confdefs.h"
2714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2715 { (eval echo configure
:2716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2717 if test -z "$ac_err"; then
2719 eval "ac_cv_header_$ac_safe=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2725 eval "ac_cv_header_$ac_safe=no"
2729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2730 echo "$ac_t""yes" 1>&6
2731 cat >> confdefs.h
<<\EOF
2732 #define HAVE_VFORK_H 1
2736 echo "$ac_t""no" 1>&6
2739 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2740 echo "configure:2741: checking for working vfork" >&5
2741 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 if test "$cross_compiling" = yes; then
2745 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2746 echo "configure:2747: checking for vfork" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char vfork(); below. */
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_vfork) || defined (__stub___vfork)
2774 if { (eval echo configure
:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2776 eval "ac_cv_func_vfork=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2781 eval "ac_cv_func_vfork=no"
2786 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2790 echo "$ac_t""no" 1>&6
2793 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2795 cat > conftest.
$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 /* Thanks to Paul Eggert for this test. */
2800 #include <sys/types.h>
2801 #include <sys/stat.h>
2802 #ifdef HAVE_UNISTD_H
2808 /* On some sparc systems, changes by the child to local and incoming
2809 argument registers are propagated back to the parent.
2810 The compiler is told about this with #include <vfork.h>,
2811 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2812 Test for this by using a static variable whose address
2813 is put into a register that is clobbered by the vfork. */
2816 sparc_address_test (int arg)
2818 sparc_address_test (arg) int arg;
2836 pid_t parent = getpid ();
2839 sparc_address_test ();
2844 /* Here is another test for sparc vfork register problems.
2845 This test uses lots of local variables, at least
2846 as many local variables as main has allocated so far
2847 including compiler temporaries. 4 locals are enough for
2848 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2849 A buggy compiler should reuse the register of parent
2850 for one of the local variables, since it will think that
2851 parent can't possibly be used any more in this routine.
2852 Assigning to the local variable will thus munge parent
2853 in the parent process. */
2855 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2856 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2857 /* Convince the compiler that p..p7 are live; otherwise, it might
2858 use the same hardware register for all 8 local variables. */
2859 if (p != p1 || p != p2 || p != p3 || p != p4
2860 || p != p5 || p != p6 || p != p7)
2863 /* On some systems (e.g. IRIX 3.3),
2864 vfork doesn't separate parent from child file descriptors.
2865 If the child closes a descriptor before it execs or exits,
2866 this munges the parent's descriptor as well.
2867 Test for this by closing stdout in the child. */
2868 _exit(close(fileno(stdout)) != 0);
2873 while (wait(&status) != child)
2876 /* Was there some problem with vforking? */
2879 /* Did the child fail? (This shouldn't happen.) */
2882 /* Did the vfork/compiler bug occur? */
2883 || parent != getpid()
2885 /* Did the file descriptor bug occur? */
2886 || fstat(fileno(stdout), &st) != 0
2891 if { (eval echo configure
:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2893 ac_cv_func_vfork_works
=yes
2895 echo "configure: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2898 ac_cv_func_vfork_works
=no
2905 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2906 if test $ac_cv_func_vfork_works = no
; then
2907 cat >> confdefs.h
<<\EOF
2913 for ac_hdr
in unistd.h
2915 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2917 echo "configure:2918: checking for $ac_hdr" >&5
2918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 cat > conftest.
$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2926 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2927 { (eval echo configure
:2928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2928 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2929 if test -z "$ac_err"; then
2931 eval "ac_cv_header_$ac_safe=yes"
2934 echo "configure: failed program was:" >&5
2935 cat conftest.
$ac_ext >&5
2937 eval "ac_cv_header_$ac_safe=no"
2941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2944 cat >> confdefs.h
<<EOF
2945 #define $ac_tr_hdr 1
2949 echo "$ac_t""no" 1>&6
2953 for ac_func
in getpagesize
2955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2956 echo "configure:2957: checking for $ac_func" >&5
2957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* System header to define __stub macros and hopefully few prototypes,
2964 which can conflict with char $ac_func(); below. */
2966 /* Override any gcc2 internal prototype to avoid an error. */
2967 /* We use char because int might match the return type of a gcc2
2968 builtin and then its argument prototype would still apply. */
2973 /* The GNU C library defines this for functions which it implements
2974 to always fail with ENOSYS. Some functions are actually named
2975 something starting with __ and the normal name is an alias. */
2976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2984 if { (eval echo configure
:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2986 eval "ac_cv_func_$ac_func=yes"
2988 echo "configure: failed program was:" >&5
2989 cat conftest.
$ac_ext >&5
2991 eval "ac_cv_func_$ac_func=no"
2996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
2998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2999 cat >> confdefs.h
<<EOF
3000 #define $ac_tr_func 1
3004 echo "$ac_t""no" 1>&6
3008 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3009 echo "configure:3010: checking for working mmap from /dev/zero" >&5
3010 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 if test "$cross_compiling" = yes; then
3014 ac_cv_func_mmap_anywhere
=no
3016 cat > conftest.
$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3020 /* Test by Richard Henderson and Alexandre Oliva.
3021 Check whether mmap from /dev/zero works. */
3022 #include <sys/types.h>
3024 #include <sys/mman.h>
3026 /* This mess was copied from the GNU getpagesize.h. */
3027 #ifndef HAVE_GETPAGESIZE
3028 # ifdef HAVE_UNISTD_H
3029 # include <unistd.h>
3032 /* Assume that all systems that can run configure have sys/param.h. */
3033 # ifndef HAVE_SYS_PARAM_H
3034 # define HAVE_SYS_PARAM_H 1
3037 # ifdef _SC_PAGESIZE
3038 # define getpagesize() sysconf(_SC_PAGESIZE)
3039 # else /* no _SC_PAGESIZE */
3040 # ifdef HAVE_SYS_PARAM_H
3041 # include <sys/param.h>
3042 # ifdef EXEC_PAGESIZE
3043 # define getpagesize() EXEC_PAGESIZE
3044 # else /* no EXEC_PAGESIZE */
3046 # define getpagesize() NBPG * CLSIZE
3049 # endif /* no CLSIZE */
3050 # else /* no NBPG */
3052 # define getpagesize() NBPC
3053 # else /* no NBPC */
3055 # define getpagesize() PAGESIZE
3056 # endif /* PAGESIZE */
3057 # endif /* no NBPC */
3058 # endif /* no NBPG */
3059 # endif /* no EXEC_PAGESIZE */
3060 # else /* no HAVE_SYS_PARAM_H */
3061 # define getpagesize() 8192 /* punt totally */
3062 # endif /* no HAVE_SYS_PARAM_H */
3063 # endif /* no _SC_PAGESIZE */
3065 #endif /* no HAVE_GETPAGESIZE */
3072 fd = open("/dev/zero", O_RDWR);
3077 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3078 if (x == (char *) -1)
3083 if (munmap(x, pg) < 0)
3089 if { (eval echo configure
:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3091 ac_cv_func_mmap_anywhere
=yes
3093 echo "configure: failed program was:" >&5
3094 cat conftest.
$ac_ext >&5
3096 ac_cv_func_mmap_anywhere
=no
3103 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3104 if test $ac_cv_func_mmap_anywhere = yes; then
3105 cat >> confdefs.h
<<\EOF
3106 #define HAVE_MMAP_ANYWHERE 1
3111 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3112 echo "configure:3113: checking for working mmap of a file" >&5
3113 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 # Create a file one thousand bytes long.
3117 for i
in 1 2 3 4 5 6 7 8 9 0
3118 do for j
in 1 2 3 4 5 6 7 8 9 0
3121 done > conftestdata$$
3123 if test "$cross_compiling" = yes; then
3124 ac_cv_func_mmap_file
=no
3126 cat > conftest.
$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3130 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3131 Richard Henderson and Alexandre Oliva.
3132 Check whether read-only mmap of a plain file works. */
3133 #include <sys/types.h>
3134 #include <sys/stat.h>
3136 #include <sys/mman.h>
3144 fd = open("conftestdata$$", O_RDONLY);
3148 if (fstat (fd, &st))
3151 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3152 if (x == (char *) -1)
3155 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3158 if (munmap(x, st.st_size) < 0)
3164 if { (eval echo configure
:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3166 ac_cv_func_mmap_file
=yes
3168 echo "configure: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3171 ac_cv_func_mmap_file
=no
3178 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3179 if test $ac_cv_func_mmap_file = yes; then
3180 cat >> confdefs.h
<<\EOF
3181 #define HAVE_MMAP_FILE 1
3187 # We will need to find libiberty.h and ansidecl.h
3188 saved_CFLAGS
="$CFLAGS"
3189 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3190 for ac_func
in bcopy bzero bcmp \
3191 index rindex getenv atol sbrk abort atof getcwd getwd \
3192 strsignal putc_unlocked fputs_unlocked strstr environ \
3193 malloc realloc calloc free
basename getopt
3195 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3196 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3197 echo "configure:3198: checking whether $ac_func is declared" >&5
3198 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 cat > conftest.
$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 #include "gansidecl.h"
3209 char *(*pfn) = (char *(*)) $ac_func ;
3213 if { (eval echo configure
:3214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3215 eval "gcc_cv_have_decl_$ac_func=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.
$ac_ext >&5
3220 eval "gcc_cv_have_decl_$ac_func=no"
3225 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3227 #define $ac_tr_decl 1
3231 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3232 #define $ac_tr_decl 0
3238 if test x
= y
; then
3239 cat >> confdefs.h
<<EOF
3240 #define HAVE_DECL_BCOPY 1
3242 cat >> confdefs.h
<<EOF
3243 #define HAVE_DECL_BZERO 1
3245 cat >> confdefs.h
<<EOF
3246 #define HAVE_DECL_BCMP 1
3249 cat >> confdefs.h
<<EOF
3250 #define HAVE_DECL_INDEX 1
3252 cat >> confdefs.h
<<EOF
3253 #define HAVE_DECL_RINDEX 1
3255 cat >> confdefs.h
<<EOF
3256 #define HAVE_DECL_GETENV 1
3258 cat >> confdefs.h
<<EOF
3259 #define HAVE_DECL_ATOL 1
3261 cat >> confdefs.h
<<EOF
3262 #define HAVE_DECL_SBRK 1
3264 cat >> confdefs.h
<<EOF
3265 #define HAVE_DECL_ABORT 1
3267 cat >> confdefs.h
<<EOF
3268 #define HAVE_DECL_ATOF 1
3270 cat >> confdefs.h
<<EOF
3271 #define HAVE_DECL_GETCWD 1
3273 cat >> confdefs.h
<<EOF
3274 #define HAVE_DECL_GETWD 1
3277 cat >> confdefs.h
<<EOF
3278 #define HAVE_DECL_STRSIGNAL 1
3280 cat >> confdefs.h
<<EOF
3281 #define HAVE_DECL_PUTC_UNLOCKED 1
3283 cat >> confdefs.h
<<EOF
3284 #define HAVE_DECL_FPUTS_UNLOCKED 1
3286 cat >> confdefs.h
<<EOF
3287 #define HAVE_DECL_STRSTR 1
3289 cat >> confdefs.h
<<EOF
3290 #define HAVE_DECL_ENVIRON 1
3293 cat >> confdefs.h
<<EOF
3294 #define HAVE_DECL_MALLOC 1
3296 cat >> confdefs.h
<<EOF
3297 #define HAVE_DECL_REALLOC 1
3299 cat >> confdefs.h
<<EOF
3300 #define HAVE_DECL_CALLOC 1
3302 cat >> confdefs.h
<<EOF
3303 #define HAVE_DECL_FREE 1
3305 cat >> confdefs.h
<<EOF
3306 #define HAVE_DECL_BASENAME 1
3308 cat >> confdefs.h
<<EOF
3309 #define HAVE_DECL_GETOPT 1
3314 for ac_func
in getrlimit setrlimit getrusage
3316 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3317 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3318 echo "configure:3319: checking whether $ac_func is declared" >&5
3319 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.
$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include "gansidecl.h"
3327 #ifdef HAVE_SYS_RESOURCE_H
3328 #include <sys/resource.h>
3334 char *(*pfn) = (char *(*)) $ac_func ;
3338 if { (eval echo configure
:3339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3340 eval "gcc_cv_have_decl_$ac_func=yes"
3342 echo "configure: failed program was:" >&5
3343 cat conftest.
$ac_ext >&5
3345 eval "gcc_cv_have_decl_$ac_func=no"
3350 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3351 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3352 #define $ac_tr_decl 1
3356 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3357 #define $ac_tr_decl 0
3363 if test x
= y
; then
3364 cat >> confdefs.h
<<EOF
3365 #define HAVE_DECL_GETRLIMIT 1
3367 cat >> confdefs.h
<<EOF
3368 #define HAVE_DECL_SETRLIMIT 1
3370 cat >> confdefs.h
<<EOF
3371 #define HAVE_DECL_GETRUSAGE 1
3376 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3377 CFLAGS
="$saved_CFLAGS"
3379 # mkdir takes a single argument on some systems.
3380 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3381 echo "configure:3382: checking if mkdir takes one argument" >&5
3382 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3383 echo $ac_n "(cached) $ac_c" 1>&6
3385 cat > conftest.
$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3389 #include <sys/types.h>
3390 #ifdef HAVE_SYS_STAT_H
3391 # include <sys/stat.h>
3393 #ifdef HAVE_UNISTD_H
3394 # include <unistd.h>
3396 #ifdef HAVE_DIRECT_H
3397 # include <direct.h>
3403 if { (eval echo configure
:3404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3405 gcc_cv_mkdir_takes_one_arg
=no
3407 echo "configure: failed program was:" >&5
3408 cat conftest.
$ac_ext >&5
3410 gcc_cv_mkdir_takes_one_arg
=yes
3415 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3416 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3417 cat >> confdefs.h
<<\EOF
3418 #define MKDIR_TAKES_ONE_ARG 1
3432 build_install_headers_dir
=install-headers-tar
3437 host_truncate_target
=
3440 # Decode the host machine, then the target machine.
3441 # For the host machine, we save the xm_file variable as host_xm_file;
3442 # then we decode the target machine and forget everything else
3443 # that came from the host machine.
3444 for machine
in $build $host $target; do
3458 # Set this to force installation and use of collect2.
3460 # Set this to override the default target model.
3462 # Set this to control how the header file directory is installed.
3463 install_headers_dir
=install-headers-tar
3464 # Set this to a non-empty list of args to pass to cpp if the target
3465 # wants its .md file passed through cpp.
3467 # Set this if directory names should be truncated to 14 characters.
3469 # Set this if gdb needs a dir command with `dirname $out_file`
3470 gdb_needs_out_file_path
=
3471 # Set this if the build machine requires executables to have a
3474 # Set this to control which thread package will be used.
3476 # Reinitialize these from the flag values every loop pass, since some
3477 # configure entries modify them.
3479 gnu_ld
="$gnu_ld_flag"
3480 enable_threads
=$enable_threads_flag
3482 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3483 # updated in each machine entry.
3485 cpu_type
=`echo $machine | sed 's/-.*$//'`
3525 tm_file
=${cpu_type}/${cpu_type}.h
3526 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3527 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3529 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3531 # On a.out targets, we need to use collect2.
3538 # Common parts for linux-gnu and openbsd systems
3541 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3544 tm_file
=${cpu_type}/openbsd.h
3545 tmake_file
="t-libc-ok t-openbsd"
3546 # avoid surprises, always provide an xm-openbsd file
3547 xm_file
=${cpu_type}/xm-openbsd.h
3548 # don't depend on processor x-fragments as well
3550 if test x
$enable_threads = xyes
; then
3552 tmake_file
="${tmake_file} t-openbsd-thread"
3558 # Support site-specific machine types.
3560 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3561 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3562 xm_file
=${cpu_type}/xm-
$rest.h
3563 tm_file
=${cpu_type}/$rest.h
3564 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3565 then xmake_file
=${cpu_type}/x-
$rest; \
3568 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3569 then tmake_file
=${cpu_type}/t-
$rest; \
3575 a29k-
*-bsd* | a29k-
*-sym1*)
3576 tm_file
="${tm_file} a29k/unix.h"
3578 xmake_file
=a29k
/x-unix
3581 a29k-
*-udi | a29k-
*-coff)
3582 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3583 tmake_file
=a29k
/t-a29kbare
3586 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3587 tmake_file
=a29k
/t-vx29k
3588 extra_parts
="crtbegin.o crtend.o"
3589 thread_file
='vxworks'
3591 a29k-
*-*) # Default a29k environment.
3595 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3597 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3598 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3600 # GAS + IEEE_CONFORMANT
3601 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3603 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3604 xmake_file
="x-interix alpha/t-pe"
3605 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3606 if test x
$enable_threads = xyes
; then
3609 if test x
$stabs = xyes
; then
3610 tm_file
="${tm_file} dbxcoff.h"
3612 #prefix='$$INTERIX_ROOT'/usr/contrib
3613 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3615 alpha
*-*-linux-gnuecoff*)
3616 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3617 target_cpu_default
="MASK_GAS"
3618 tmake_file
="alpha/t-alpha alpha/t-ieee"
3623 alpha
*-*-linux-gnulibc1*)
3624 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3625 target_cpu_default
="MASK_GAS"
3626 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3627 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3630 if test x
$enable_threads = xyes
; then
3634 alpha
*-*-linux-gnu*)
3635 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3636 target_cpu_default
="MASK_GAS"
3637 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3638 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3641 if test x
$enable_threads = xyes
; then
3646 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3647 target_cpu_default
="MASK_GAS"
3648 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3649 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3655 # default x-alpha is only appropriate for dec-osf.
3656 target_cpu_default
="MASK_GAS"
3657 tmake_file
="alpha/t-alpha alpha/t-ieee"
3661 if test x
$stabs = xyes
3663 tm_file
="${tm_file} dbx.h"
3665 if test x
$gas != xyes
3667 extra_passes
="mips-tfile mips-tdump"
3670 tmake_file
="alpha/t-alpha alpha/t-ieee"
3673 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3676 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3679 tm_file
="${tm_file} alpha/osf.h"
3680 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3681 # a broken tar, so we use cpio instead.
3682 install_headers_dir
=install-headers-cpio
3685 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3689 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3690 target_cpu_default
=MASK_SUPPORT_ARCH
3695 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3696 tmake_file
="alpha/t-alpha alpha/t-ieee"
3699 extra_passes
="mips-tfile mips-tdump"
3702 thread_file
='vxworks'
3705 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3706 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3707 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3708 xmake_file
=winnt
/x-winnt
3709 extra_host_objs
=oldnames.o
3710 extra_gcc_objs
="spawnv.o oldnames.o"
3711 if test x
$gnu_ld != xyes
3713 extra_programs
=ld.exe
3715 if test x
$enable_threads = xyes
; then
3721 xm_file
="${xm_file} alpha/xm-vms.h"
3722 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3725 extra_parts
="crtinit.o crtfini.o"
3727 arm-
*-coff* | armel-
*-coff*)
3729 tmake_file
=arm
/t-arm-coff
3733 tmake_file
=arm
/t-arm-coff
3734 thread_file
='vxworks'
3736 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3737 tm_file
=arm
/riscix1-1.h
3740 arm-
*-riscix*) # Acorn RISC machine
3741 if test x
$gas = xyes
3743 tm_file
=arm
/rix-gas.h
3745 tm_file
=arm
/riscix.h
3747 xmake_file
=arm
/x-riscix
3748 tmake_file
=arm
/t-riscix
3751 arm-semi-aout | armel-semi-aout
)
3753 tmake_file
=arm
/t-semi
3755 arm-semi-aof | armel-semi-aof
)
3756 tm_file
=arm
/semiaof.h
3757 tmake_file
=arm
/t-semiaof
3760 tm_file
=arm
/netbsd.h
3761 tmake_file
="t-netbsd arm/t-netbsd"
3764 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3767 tm_file
=arm
/linux-aout.h
3768 tmake_file
=arm
/t-linux
3771 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3772 xm_file
=arm
/xm-linux.h
3774 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3777 tm_file
="arm/linux-elf26.h $tm_file"
3780 tmake_file
="t-linux arm/t-linux"
3781 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3783 case x
${enable_threads} in
3784 x | xyes | xpthreads | xposix
)
3789 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3790 xm_file
=arm
/xm-linux.h
3792 tm_file
="arm/linux-elf.h"
3795 tm_file
="arm/linux-elf26.h $tm_file"
3798 tmake_file
="t-linux arm/t-linux"
3799 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3801 case x
${enable_threads} in
3802 x | xyes | xpthreads | xposix
)
3807 arm
*-*-uclinux*) # ARM ucLinux
3808 tm_file
=arm
/uclinux-elf.h
3809 tmake_file
=arm
/t-arm-elf
3813 tmake_file
=arm
/t-arm-aout
3816 tm_file
=arm
/ecos-elf.h
3817 tmake_file
=arm
/t-arm-elf
3820 tm_file
=arm
/unknown-elf.h
3821 tmake_file
=arm
/t-arm-elf
3824 tm_file
=arm
/conix-elf.h
3825 tmake_file
=arm
/t-arm-elf
3828 tm_file
=arm
/unknown-elf-oabi.h
3829 tmake_file
=arm
/t-arm-elf
3838 c1-convex-
*) # Convex C1
3839 target_cpu_default
=1
3842 c2-convex-
*) # Convex C2
3843 target_cpu_default
=2
3847 target_cpu_default
=4
3851 target_cpu_default
=8
3855 target_cpu_default
=16
3860 tmake_file
=c4x
/t-c4x
3862 clipper-intergraph-clix
*)
3863 tm_file
="${tm_file} svr3.h clipper/clix.h"
3864 xm_file
=clipper
/xm-clix.h
3865 xmake_file
=clipper
/x-clix
3866 extra_headers
=va-clipper.h
3867 extra_parts
="crtbegin.o crtend.o"
3868 install_headers_dir
=install-headers-cpio
3879 tm_file
="fr30/fr30.h"
3880 tmake_file
=fr30
/t-fr30
3881 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3883 # This hasn't been upgraded to GCC 2.
3884 # fx80-alliant-*) # Alliant FX/80
3890 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3891 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3892 tmake_file
="t-linux pa/t-linux"
3893 extra_parts
="crtbegin.o crtend.o"
3896 if test x
$enable_threads = xyes
; then
3901 target_cpu_default
="MASK_PA_11"
3902 tmake_file
=pa
/t-openbsd
3905 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3906 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3907 xm_file
=pa
/xm-papro.h
3911 target_cpu_default
="MASK_PA_11"
3912 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3916 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3917 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3918 xm_file
=pa
/xm-papro.h
3922 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
3926 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3927 target_cpu_default
="MASK_PA_11"
3931 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
3935 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
3936 xm_file
=pa
/xm-pahpux.h
3937 xmake_file
=pa
/x-pa-hpux
3938 if test x
$gas = xyes
3940 tm_file
="${tm_file} pa/gas.h"
3942 install_headers_dir
=install-headers-cpio
3945 hppa1.0
-*-hpux8.0
[0-2]*)
3946 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3947 xm_file
=pa
/xm-pahpux.h
3948 xmake_file
=pa
/x-pa-hpux
3949 if test x
$gas = xyes
3951 tm_file
="${tm_file} pa/pa-gas.h"
3953 tm_file
="pa/pa-oldas.h ${tm_file}"
3955 install_headers_dir
=install-headers-cpio
3958 hppa1.1
-*-hpux8.0
[0-2]*)
3959 target_cpu_default
="MASK_PA_11"
3960 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3961 xm_file
=pa
/xm-pahpux.h
3962 xmake_file
=pa
/x-pa-hpux
3963 if test x
$gas = xyes
3965 tm_file
="${tm_file} pa/pa-gas.h"
3967 tm_file
="pa/pa-oldas.h ${tm_file}"
3969 install_headers_dir
=install-headers-cpio
3973 target_cpu_default
="MASK_PA_11"
3974 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3975 xm_file
=pa
/xm-pahpux.h
3976 xmake_file
=pa
/x-pa-hpux
3977 if test x
$gas = xyes
3979 tm_file
="${tm_file} pa/pa-gas.h"
3981 install_headers_dir
=install-headers-cpio
3985 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
3986 xm_file
=pa
/xm-pahpux.h
3987 xmake_file
=pa
/x-pa-hpux
3988 if test x
$gas = xyes
3990 tm_file
="${tm_file} pa/pa-gas.h"
3992 install_headers_dir
=install-headers-cpio
3995 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3996 target_cpu_default
="MASK_PA_11"
3997 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3999 xm_file
=pa
/xm-pahpux.h
4000 xmake_file
=pa
/x-pa-hpux
4002 if test x
$gas = xyes
4004 tm_file
="${tm_file} pa/pa-gas.h"
4006 if test x
$enable_threads = x
; then
4007 enable_threads
=$have_pthread_h
4009 if test x
$enable_threads = xyes
; then
4011 tmake_file
="${tmake_file} pa/t-dce-thr"
4013 install_headers_dir
=install-headers-cpio
4017 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4019 xm_file
=pa
/xm-pahpux.h
4020 xmake_file
=pa
/x-pa-hpux
4022 if test x
$gas = xyes
4024 tm_file
="${tm_file} pa/pa-gas.h"
4026 if test x
$enable_threads = x
; then
4027 enable_threads
=$have_pthread_h
4029 if test x
$enable_threads = xyes
; then
4031 tmake_file
="${tmake_file} pa/t-dce-thr"
4033 install_headers_dir
=install-headers-cpio
4037 target_cpu_default
="MASK_PA_11"
4038 xm_file
=pa
/xm-pa64hpux.h
4039 xmake_file
=pa
/x-pa-hpux
4041 tm_file
="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
4043 tmake_file
=pa
/t-pa64
4044 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4048 tm_file
="${tm_file} pa/pa-gas.h"
4050 # if [[ x$enable_threads = x ]]; then
4051 # enable_threads=$have_pthread_h
4053 # if [[ x$enable_threads = xyes ]]; then
4055 # tmake_file="${tmake_file} pa/t-dce-thr"
4057 install_headers_dir
=install-headers-cpio
4060 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4061 target_cpu_default
="MASK_PA_11"
4062 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4064 xm_file
=pa
/xm-pahpux.h
4065 xmake_file
=pa
/x-pa-hpux
4067 if test x
$gas = xyes
4069 tm_file
="${tm_file} pa/pa-gas.h"
4071 # if test x$enable_threads = x; then
4072 # enable_threads=$have_pthread_h
4074 # if test x$enable_threads = xyes; then
4076 # tmake_file="${tmake_file} pa/t-dce-thr"
4078 install_headers_dir
=install-headers-cpio
4082 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4084 xm_file
=pa
/xm-pahpux.h
4085 xmake_file
=pa
/x-pa-hpux
4086 if test x
$gas = xyes
4088 tm_file
="${tm_file} pa/pa-gas.h"
4090 # if test x$enable_threads = x; then
4091 # enable_threads=$have_pthread_h
4093 # if test x$enable_threads = xyes; then
4095 # tmake_file="${tmake_file} pa/t-dce-thr"
4097 install_headers_dir
=install-headers-cpio
4100 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4101 target_cpu_default
="MASK_PA_11"
4102 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4103 xm_file
=pa
/xm-pahpux.h
4104 xmake_file
=pa
/x-pa-hpux
4105 if test x
$gas = xyes
4107 tm_file
="${tm_file} pa/pa-gas.h"
4109 install_headers_dir
=install-headers-cpio
4113 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4114 xm_file
=pa
/xm-pahpux.h
4115 xmake_file
=pa
/x-pa-hpux
4116 if test x
$gas = xyes
4118 tm_file
="${tm_file} pa/pa-gas.h"
4120 install_headers_dir
=install-headers-cpio
4123 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4124 target_cpu_default
="MASK_PA_11"
4125 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4126 xm_file
=pa
/xm-pahpux.h
4127 xmake_file
=pa
/x-pa-hpux
4128 if test x
$gas = xyes
4130 tm_file
="${tm_file} pa/pa-gas.h"
4132 install_headers_dir
=install-headers-cpio
4136 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4137 xm_file
=pa
/xm-pahpux.h
4138 xmake_file
=pa
/x-pa-hpux
4139 if test x
$gas = xyes
4141 tm_file
="${tm_file} pa/pa-gas.h"
4143 install_headers_dir
=install-headers-cpio
4147 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4148 target_cpu_default
="MASK_PA_11"
4152 tm_file
="${tm_file} pa/pa-mpeix.h"
4153 xm_file
=pa
/xm-pampeix.h
4154 xmake_file
=pa
/x-pa-mpeix
4155 echo "You must use gas. Assuming it is already installed."
4156 install_headers_dir
=install-headers-tar
4159 i370-
*-opened*) # IBM 360/370/390 Architecture
4160 xm_file
=i370
/xm-oe.h
4162 xmake_file
=i370
/x-oe
4163 tmake_file
=i370
/t-oe
4166 xm_file
=i370
/xm-mvs.h
4168 tmake_file
=i370
/t-mvs
4171 xm_file
="xm-linux.h i370/xm-linux.h"
4173 tm_file
="i370/linux.h ${tm_file}"
4174 tmake_file
="t-linux i370/t-linux"
4175 # broken_install=yes
4176 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4177 # extra_parts="crtbegin.o crtend.o"
4181 if test x
$enable_threads = xyes
; then
4186 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4187 tm_file
=i386
/i386elf.h
4188 tmake_file
=i386
/t-i386elf
4191 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4192 if test x
$gas = xyes
4194 tm_file
=i386
/aix386.h
4195 extra_parts
="crtbegin.o crtend.o"
4196 tmake_file
=i386
/t-crtstuff
4198 tm_file
=i386
/aix386ng.h
4201 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4203 xmake_file
=i386
/x-aix
4205 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4206 xm_file
="xm-alloca.h ${xm_file}"
4207 xm_defines
="USG POSIX SMALL_ARG_MAX"
4208 xmake_file
=i386
/x-ncr3000
4209 if test x
$stabs = xyes
-a x
$gas = xyes
4211 tm_file
=i386
/sysv4gdb.h
4213 tm_file
=i386
/sysv4.h
4215 extra_parts
="crtbegin.o crtend.o"
4216 tmake_file
=i386
/t-crtpic
4220 xm_file
=i386
/xm-next.h
4221 tmake_file
=i386
/t-next
4222 xmake_file
=i386
/x-next
4223 extra_objs
=nextstep.o
4224 extra_parts
="crtbegin.o crtend.o"
4225 if test x
$enable_threads = xyes
; then
4229 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4231 if test x
$gas = xyes
4233 tm_file
=i386
/seq-gas.h
4235 tm_file
=i386
/sequent.h
4238 i
[34567]86-sequent-ptx1*)
4239 xm_defines
="USG SVR3"
4240 xmake_file
=i386
/x-sysv3
4241 tm_file
=i386
/seq-sysv3.h
4242 tmake_file
=i386
/t-crtstuff
4243 extra_parts
="crtbegin.o crtend.o"
4244 install_headers_dir
=install-headers-cpio
4246 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4247 xm_defines
="USG SVR3"
4248 xmake_file
=i386
/x-sysv3
4249 tm_file
=i386
/seq2-sysv3.h
4250 tmake_file
=i386
/t-crtstuff
4251 extra_parts
="crtbegin.o crtend.o"
4252 install_headers_dir
=install-headers-cpio
4254 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4255 xm_file
="xm-alloca.h ${xm_file}"
4256 xm_defines
="USG POSIX SMALL_ARG_MAX"
4258 tm_file
=i386
/ptx4-i.h
4260 extra_parts
="crtbegin.o crtend.o"
4261 install_headers_dir
=install-headers-cpio
4263 i386-sun-sunos
*) # Sun i386 roadrunner
4268 i
[34567]86-wrs-vxworks*)
4269 tm_file
=i386
/vxi386.h
4270 tmake_file
=i386
/t-i386bare
4271 thread_file
='vxworks'
4274 tm_file
=i386
/i386-aout.h
4275 tmake_file
=i386
/t-i386bare
4277 i
[34567]86-*-beospe*)
4278 xm_file
=i386
/xm-beos.h
4279 xm_defines
="USE_C_ALLOCA"
4280 tmake_file
=i386
/t-beos
4281 tm_file
=i386
/beos-pe.h
4282 xmake_file
=i386
/x-beos
4285 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4286 xm_file
=i386
/xm-beos.h
4287 tmake_file
='i386/t-beos i386/t-crtpic'
4288 tm_file
=i386
/beos-elf.h
4289 xmake_file
=i386
/x-beos
4291 extra_parts
='crtbegin.o crtend.o'
4293 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4294 tm_file
=i386
/bsd386.h
4295 # tmake_file=t-libc-ok
4298 tm_file
=i386
/386bsd.h
4299 # tmake_file=t-libc-ok
4300 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4303 i
[34567]86-*-freebsdelf*)
4304 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4305 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4306 tmake_file
=t-freebsd
4310 case x
${enable_threads} in
4311 xyes | xpthreads | xposix
)
4313 tmake_file
="${tmake_file} t-freebsd-thread"
4317 i
[34567]86-*-freebsd*)
4318 tm_file
="i386/freebsd.h i386/perform.h"
4319 tmake_file
=t-freebsd
4321 i
[34567]86-*-netbsd*)
4322 tm_file
=i386
/netbsd.h
4326 i
[34567]86-*-openbsd*)
4327 # we need collect2 until our bug is fixed...
4331 tm_file
=i386
/i386-coff.h
4332 tmake_file
=i386
/t-i386bare
4334 i
[34567]86-*-isc*) # 80386 running ISC system
4335 xm_file
="${xm_file} i386/xm-isc.h"
4336 xm_defines
="USG SVR3"
4338 i
[34567]86-*-isc[34]*)
4339 xmake_file
=i386
/x-isc3
4342 xmake_file
=i386
/x-isc
4345 if test x
$gas = xyes
-a x
$stabs = xyes
4347 tm_file
=i386
/iscdbx.h
4348 tmake_file
=i386
/t-svr3dbx
4349 extra_parts
="svr3.ifile svr3z.ifile"
4351 tm_file
=i386
/isccoff.h
4352 tmake_file
=i386
/t-crtstuff
4353 extra_parts
="crtbegin.o crtend.o"
4355 tmake_file
="$tmake_file i386/t-i386bare"
4356 install_headers_dir
=install-headers-cpio
4358 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4360 xmake_file
=x-linux-aout
4361 tmake_file
="t-linux-aout i386/t-crtstuff"
4362 tm_file
=i386
/linux-oldld.h
4366 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4367 xmake_file
=x-linux-aout
4368 tmake_file
="t-linux-aout i386/t-crtstuff"
4369 tm_file
=i386
/linux-aout.h
4373 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4374 # GNU/Linux C library 5
4376 tm_file
=i386
/linux.h
4377 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4378 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4381 if test x
$enable_threads = xyes
; then
4382 thread_file
='single'
4385 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4386 # aka GNU/Linux C library 6
4388 tm_file
=i386
/linux.h
4389 tmake_file
="t-linux i386/t-crtstuff"
4390 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4393 if test x
$enable_threads = xyes
; then
4400 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4401 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4404 i
[34567]86-pc-msdosdjgpp*)
4405 xm_file
=i386
/xm-djgpp.h
4406 tm_file
=i386
/djgpp.h
4407 tmake_file
=i386
/t-djgpp
4408 xmake_file
=i386
/x-djgpp
4413 case $host in *pc-msdosdjgpp
*)
4418 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4420 tmake_file
=t-libc-ok
4424 i
[34567]86-*-lynxos*)
4425 if test x
$gas = xyes
4429 tm_file
=i386
/lynx-ng.h
4431 xm_file
=i386
/xm-lynx.h
4432 tmake_file
=i386
/t-i386bare
4437 # tmake_file=t-libc-ok
4440 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4441 if test x
$elf = xyes
4443 tm_file
=i386
/osfelf.h
4446 tm_file
=i386
/osfrose.h
4449 xm_file
="i386/xm-osf.h ${xm_file}"
4450 xmake_file
=i386
/x-osfrose
4451 tmake_file
=i386
/t-osf
4452 extra_objs
=halfpic.o
4454 i
[34567]86-go32-rtems*)
4456 xm_file
=i386
/xm-go32.h
4457 tm_file
=i386
/go32-rtems.h
4458 tmake_file
="i386/t-go32 t-rtems"
4460 i
[34567]86-*-rtemscoff*)
4462 tm_file
=i386
/rtems.h
4463 tmake_file
="i386/t-i386bare t-rtems"
4465 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4467 tm_file
=i386
/rtemself.h
4468 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4469 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4471 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4472 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4473 xm_defines
="USG SVR3"
4474 xmake_file
=i386
/x-sco5
4475 install_headers_dir
=install-headers-cpio
4477 if test x
$gas = xyes
4479 tm_file
="i386/sco5gas.h ${tm_file}"
4480 tmake_file
=i386
/t-sco5gas
4482 tmake_file
=i386
/t-sco5
4484 tmake_file
="$tmake_file i386/t-i386bare"
4485 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4487 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4488 xm_file
="${xm_file} i386/xm-sco.h"
4489 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4490 xmake_file
=i386
/x-sco4
4491 install_headers_dir
=install-headers-cpio
4492 if test x
$stabs = xyes
4494 tm_file
=i386
/sco4dbx.h
4495 tmake_file
=i386
/t-svr3dbx
4496 extra_parts
="svr3.ifile svr3z.rfile"
4499 tmake_file
=i386
/t-crtstuff
4500 extra_parts
="crtbegin.o crtend.o"
4502 tmake_file
="$tmake_file i386/t-i386bare"
4503 # The default EAFS filesystem supports long file names.
4504 # Truncating the target makes $host != $target which
4505 # makes gcc think it is doing a cross-compile.
4506 # truncate_target=yes
4508 i
[34567]86-*-sco*) # 80386 running SCO system
4509 xm_file
=i386
/xm-sco.h
4510 xmake_file
=i386
/x-sco
4511 install_headers_dir
=install-headers-cpio
4512 if test x
$stabs = xyes
4514 tm_file
=i386
/scodbx.h
4515 tmake_file
=i386
/t-svr3dbx
4516 extra_parts
="svr3.ifile svr3z.rfile"
4519 extra_parts
="crtbegin.o crtend.o"
4520 tmake_file
=i386
/t-crtstuff
4522 tmake_file
="$tmake_file i386/t-i386bare"
4525 i
[34567]86-*-solaris2*)
4526 xm_file
="xm-alloca.h ${xm_file}"
4527 xm_defines
="USG POSIX SMALL_ARG_MAX"
4529 if test x
$gas = xyes
; then
4530 # Only needed if gas does not support -s
4531 tm_file
="i386/sol2gas.h ${tm_file}"
4533 tmake_file
="i386/t-i386bare i386/t-sol2"
4534 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4536 if test x
${enable_threads} = x
; then
4537 enable_threads
=$have_pthread_h
4538 if test x
${enable_threads} = x
; then
4539 enable_threads
=$have_thread_h
4542 if test x
${enable_threads} = xyes
; then
4543 if test x
${have_pthread_h} = xyes
; then
4546 thread_file
='solaris'
4550 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4551 xm_file
="xm-alloca.h ${xm_file}"
4552 xm_defines
="USG POSIX"
4553 tm_file
=i386
/sysv5.h
4554 if test x
$stabs = xyes
4556 tm_file
="${tm_file} dbx.h"
4558 tmake_file
="i386/t-i386bare i386/t-crtpic"
4560 extra_parts
="crtbegin.o crtend.o"
4561 if test x
$enable_threads = xyes
; then
4565 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4566 xm_file
="xm-alloca.h ${xm_file}"
4567 xm_defines
="USG POSIX SMALL_ARG_MAX"
4568 tm_file
=i386
/sysv4.h
4569 if test x
$stabs = xyes
4571 tm_file
="${tm_file} dbx.h"
4573 tmake_file
="i386/t-i386bare i386/t-crtpic"
4575 extra_parts
="crtbegin.o crtend.o"
4577 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4578 xm_file
="xm-alloca.h ${xm_file}"
4579 xm_defines
="USG POSIX"
4581 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4583 extra_parts
="crtbegin.o crtend.o"
4584 install_headers_dir
=install-headers-cpio
4586 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4588 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4589 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4590 if test x
$stabs = xyes
4592 tm_file
=i386
/osf1elfgdb.h
4594 tm_file
=i386
/osf1elf.h
4596 tmake_file
=i386
/t-osf1elf
4597 xmake_file
=i386
/x-osf1elf
4598 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4600 i
[34567]86-*-sysv*) # Intel 80386's running system V
4601 xm_defines
="USG SVR3"
4602 xmake_file
=i386
/x-sysv3
4603 if test x
$gas = xyes
4605 if test x
$stabs = xyes
4607 tm_file
=i386
/svr3dbx.h
4608 tmake_file
=i386
/t-svr3dbx
4609 extra_parts
="svr3.ifile svr3z.rfile"
4611 tm_file
=i386
/svr3gas.h
4612 extra_parts
="crtbegin.o crtend.o"
4613 tmake_file
=i386
/t-crtstuff
4616 tm_file
=i386
/sysv3.h
4617 extra_parts
="crtbegin.o crtend.o"
4618 tmake_file
=i386
/t-crtstuff
4620 tmake_file
="$tmake_file i386/t-crtpic"
4622 i386-
*-vsta) # Intel 80386's running VSTa kernel
4623 xm_file
="${xm_file} i386/xm-vsta.h"
4625 tmake_file
=i386
/t-vsta
4626 xmake_file
=i386
/x-vsta
4629 xm_file
="${xm_file} i386/xm-cygwin.h"
4630 tmake_file
=i386
/t-cygwin
4631 tm_file
=i386
/win32.h
4632 xmake_file
=i386
/x-cygwin
4634 if test x
$enable_threads = xyes
; then
4639 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4640 xm_file
="${xm_file} i386/xm-cygwin.h"
4641 tmake_file
=i386
/t-cygwin
4642 tm_file
=i386
/cygwin.h
4643 xmake_file
=i386
/x-cygwin
4645 if test x
$enable_threads = xyes
; then
4650 i
[34567]86-*-mingw32*)
4651 tm_file
=i386
/mingw32.h
4652 xm_file
="${xm_file} i386/xm-mingw32.h"
4653 tmake_file
="i386/t-cygwin i386/t-mingw32"
4655 xmake_file
=i386
/x-cygwin
4656 if test x
$enable_threads = xyes
; then
4663 *minwg32crt
* |
*mingw32
*)
4664 tm_file
="${tm_file} i386/crtdll.h"
4670 xm_file
="${xm_file} i386/xm-uwin.h"
4671 xm_defines
="USG NO_STAB_H"
4672 tmake_file
="i386/t-cygwin i386/t-uwin"
4674 xmake_file
=i386
/x-cygwin
4675 if test x
$enable_threads = xyes
; then
4680 i
[34567]86-*-interix*)
4681 tm_file
="i386/i386-interix.h interix.h"
4682 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4684 tmake_file
="i386/t-interix"
4685 extra_objs
=interix.o
4686 xmake_file
=x-interix
4687 if test x
$enable_threads = xyes
; then
4690 if test x
$stabs = xyes
; then
4691 tm_file
="${tm_file} dbxcoff.h"
4694 i
[34567]86-*-winnt3*)
4695 tm_file
=i386
/win-nt.h
4696 out_file
=i386
/i386.c
4697 xm_file
="xm-winnt.h ${xm_file}"
4698 xmake_file
=winnt
/x-winnt
4699 tmake_file
=i386
/t-winnt
4700 extra_host_objs
="winnt.o oldnames.o"
4701 extra_gcc_objs
="spawnv.o oldnames.o"
4702 if test x
$gnu_ld != xyes
4704 extra_programs
=ld.exe
4706 if test x
$enable_threads = xyes
; then
4710 i
[34567]86-dg-dgux*)
4711 xm_file
="xm-alloca.h ${xm_file}"
4712 xm_defines
="USG POSIX"
4713 out_file
=i386
/dgux.c
4715 tmake_file
=i386
/t-dgux
4716 xmake_file
=i386
/x-dgux
4717 install_headers_dir
=install-headers-cpio
4719 i860-alliant-
*) # Alliant FX/2800
4720 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4721 xm_file
="${xm_file}"
4722 xmake_file
=i860
/x-fx2800
4723 tmake_file
=i860
/t-fx2800
4724 extra_parts
="crtbegin.o crtend.o"
4727 tm_file
="${tm_file} i860/bsd.h"
4728 if test x
$gas = xyes
4730 tm_file
="${tm_file} i860/bsd-gas.h"
4735 tm_file
="${tm_file} i860/mach.h"
4736 tmake_file
=t-libc-ok
4738 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4739 tm_file
="${tm_file} svr3.h i860/paragon.h"
4740 xm_defines
="USG SVR3"
4744 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4745 xm_defines
="USG SVR3"
4746 xmake_file
=i860
/x-sysv3
4747 extra_parts
="crtbegin.o crtend.o"
4750 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4751 xm_defines
="USG SVR3"
4752 xmake_file
=i860
/x-sysv4
4754 extra_parts
="crtbegin.o crtend.o"
4756 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4757 tm_file
="${tm_file} i960/vx960.h"
4758 tmake_file
=i960
/t-vxworks960
4760 thread_file
='vxworks'
4762 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4763 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4764 tmake_file
=i960
/t-vxworks960
4766 thread_file
='vxworks'
4769 tm_file
="${tm_file} i960/vx960.h"
4770 tmake_file
=i960
/t-vxworks960
4772 thread_file
='vxworks'
4775 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4776 tmake_file
=i960
/t-960bare
4780 tmake_file
="i960/t-960bare t-rtems"
4781 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4784 i960-
*-*) # Default i960 environment.
4789 tmake_file
="ia64/t-ia64"
4790 target_cpu_default
="0"
4791 if test x
$gas = xyes
4793 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
4795 if test x
$gnu_ld = xyes
4797 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
4801 tm_file
=ia64
/linux.h
4802 tmake_file
="t-linux ia64/t-ia64"
4803 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
4804 if test x
$enable_threads = xyes
; then
4809 extra_parts
="crtinit.o crtfini.o"
4811 m68000-convergent-sysv
*)
4813 xm_file
="m68k/xm-3b1.h ${xm_file}"
4816 extra_headers
=math-68881.h
4818 m68000-hp-bsd
*) # HP 9000/200 running BSD
4819 tm_file
=m68k
/hp2bsd.h
4820 xmake_file
=m68k
/x-hp2bsd
4822 extra_headers
=math-68881.h
4824 m68000-hp-hpux
*) # HP 9000 series 300
4825 xm_file
="xm-alloca.h ${xm_file}"
4827 if test x
$gas = xyes
4829 xmake_file
=m68k
/x-hp320g
4830 tm_file
=m68k
/hp310g.h
4832 xmake_file
=m68k
/x-hp320
4833 tm_file
=m68k
/hp310.h
4835 install_headers_dir
=install-headers-cpio
4837 extra_headers
=math-68881.h
4842 extra_headers
=math-68881.h
4845 tm_file
=m68k
/sun2o4.h
4847 extra_headers
=math-68881.h
4850 xm_file
="m68k/xm-3b1.h ${xm_file}"
4852 if test x
$gas = xyes
4859 extra_headers
=math-68881.h
4861 m68k-apple-aux
*) # Apple Macintosh running A/UX
4862 xm_defines
="USG AUX"
4863 tmake_file
=m68k
/t-aux
4864 install_headers_dir
=install-headers-cpio
4865 extra_headers
=math-68881.h
4866 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4868 if test "$gnu_ld" = yes
4870 tm_file
="${tm_file} m68k/auxgld.h"
4872 tm_file
="${tm_file} m68k/auxld.h"
4874 if test "$gas" = yes
4876 tm_file
="${tm_file} m68k/auxgas.h"
4878 tm_file
="${tm_file} m68k/auxas.h"
4880 tm_file
="${tm_file} m68k/a-ux.h"
4884 tm_file
=m68k
/apollo68.h
4885 xmake_file
=m68k
/x-apollo68
4887 extra_headers
=math-68881.h
4890 m68k-altos-sysv
*) # Altos 3068
4891 if test x
$gas = xyes
4893 tm_file
=m68k
/altos3068.h
4896 echo "The Altos is supported only with the GNU assembler" 1>&2
4899 extra_headers
=math-68881.h
4901 m68k-bull-sysv
*) # Bull DPX/2
4902 if test x
$gas = xyes
4904 if test x
$stabs = xyes
4906 tm_file
=m68k
/dpx2cdbx.h
4908 tm_file
=m68k
/dpx2g.h
4913 xm_file
="xm-alloca.h ${xm_file}"
4915 xmake_file
=m68k
/x-dpx2
4917 extra_headers
=math-68881.h
4919 m68k-atari-sysv4
*) # Atari variant of V.4.
4920 tm_file
=m68k
/atari.h
4921 xm_file
="xm-alloca.h ${xm_file}"
4922 xm_defines
="USG FULL_PROTOTYPES"
4924 extra_parts
="crtbegin.o crtend.o"
4925 extra_headers
=math-68881.h
4928 m68k-motorola-sysv
*)
4929 tm_file
=m68k
/mot3300.h
4930 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4931 if test x
$gas = xyes
4933 xmake_file
=m68k
/x-mot3300-gas
4934 if test x
$gnu_ld = xyes
4936 tmake_file
=m68k
/t-mot3300-gald
4938 tmake_file
=m68k
/t-mot3300-gas
4942 xmake_file
=m68k
/x-mot3300
4943 if test x
$gnu_ld = xyes
4945 tmake_file
=m68k
/t-mot3300-gld
4947 tmake_file
=m68k
/t-mot3300
4951 gdb_needs_out_file_path
=yes
4952 extra_parts
="crt0.o mcrt0.o"
4953 extra_headers
=math-68881.h
4956 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4957 tm_file
=m68k
/tower-as.h
4958 xm_defines
="USG SVR3"
4959 xmake_file
=m68k
/x-tower
4960 extra_parts
="crtbegin.o crtend.o"
4961 extra_headers
=math-68881.h
4964 tm_file
=m68k
/plexus.h
4965 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4968 extra_headers
=math-68881.h
4972 xm_file
="xm-alloca.h ${xm_file}"
4974 extra_headers
=math-68881.h
4977 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4978 xm_defines
="USG unos"
4979 xmake_file
=m68k
/x-crds
4982 extra_headers
=math-68881.h
4984 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4986 xm_file
="xm-alloca.h ${xm_file}"
4987 xm_defines
="USG FULL_PROTOTYPES"
4988 xmake_file
=m68k
/x-amix
4990 extra_parts
="crtbegin.o crtend.o"
4991 extra_headers
=math-68881.h
4995 tm_file
=m68k
/ccur-GAS.h
4996 xmake_file
=m68k
/x-ccur
4997 extra_headers
=math-68881.h
5001 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5002 tm_file
=m68k
/hp3bsd44.h
5003 xmake_file
=m68k
/x-hp3bsd44
5005 extra_headers
=math-68881.h
5008 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5009 tm_file
=m68k
/hp3bsd.h
5011 extra_headers
=math-68881.h
5015 if test x
$with_fp = xno
5017 tm_file
=m68k
/isi-nfp.h
5023 extra_headers
=math-68881.h
5025 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5026 xm_file
="xm-alloca.h ${xm_file}"
5028 if test x
$gas = xyes
5030 xmake_file
=m68k
/x-hp320g
5031 tm_file
=m68k
/hp320g.h
5033 xmake_file
=m68k
/x-hp320
5034 tm_file
=m68k
/hpux7.h
5036 install_headers_dir
=install-headers-cpio
5038 extra_headers
=math-68881.h
5041 m68k-hp-hpux
*) # HP 9000 series 300
5042 xm_file
="xm-alloca.h ${xm_file}"
5044 if test x
$gas = xyes
5046 xmake_file
=m68k
/x-hp320g
5047 tm_file
=m68k
/hp320g.h
5049 xmake_file
=m68k
/x-hp320
5050 tm_file
=m68k
/hp320.h
5052 install_headers_dir
=install-headers-cpio
5054 extra_headers
=math-68881.h
5058 tm_file
=m68k
/sun3mach.h
5060 extra_headers
=math-68881.h
5064 if test x
$gas = xyes
5066 tm_file
=m68k
/news3gas.h
5068 tm_file
=m68k
/news3.h
5071 extra_headers
=math-68881.h
5074 m68k-sony-bsd
* | m68k-sony-newsos
*)
5075 if test x
$gas = xyes
5077 tm_file
=m68k
/newsgas.h
5082 extra_headers
=math-68881.h
5085 m68k-next-nextstep2
*)
5086 tm_file
=m68k
/next21.h
5087 xm_file
="m68k/xm-next.h ${xm_file}"
5088 tmake_file
=m68k
/t-next
5089 xmake_file
=m68k
/x-next
5090 extra_objs
=nextstep.o
5091 extra_headers
=math-68881.h
5095 m68k-next-nextstep
[34]*)
5097 xm_file
="m68k/xm-next.h ${xm_file}"
5098 tmake_file
=m68k
/t-next
5099 xmake_file
=m68k
/x-next
5100 extra_objs
=nextstep.o
5101 extra_parts
="crtbegin.o crtend.o"
5102 extra_headers
=math-68881.h
5104 if test x
$enable_threads = xyes
; then
5109 if test x
$with_fp = xno
5111 tm_file
=m68k
/sun3n3.h
5113 tm_file
=m68k
/sun3o3.h
5117 extra_headers
=math-68881.h
5119 m68k-sun-sunos
*) # For SunOS 4 (the default).
5120 if test x
$with_fp = xno
5122 tm_file
=m68k
/sun3n.h
5128 extra_headers
=math-68881.h
5131 tm_file
=m68k
/vxm68k.h
5132 tmake_file
=m68k
/t-vxworks68
5133 extra_headers
=math-68881.h
5134 thread_file
='vxworks'
5138 tmake_file
=m68k
/t-m68kbare
5139 tm_file
="m68k/m68k-aout.h libgloss.h"
5140 extra_headers
=math-68881.h
5144 tmake_file
=m68k
/t-m68kbare
5145 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5146 extra_headers
=math-68881.h
5149 m68020-
*-elf* | m68k-
*-elf*)
5150 tm_file
="m68k/m68020-elf.h"
5151 xm_file
=m68k
/xm-m68kv.h
5152 tmake_file
=m68k
/t-m68kelf
5153 header_files
=math-68881.h
5156 if test x
$gas = xyes
5160 tm_file
=m68k
/lynx-ng.h
5162 xm_file
=m68k
/xm-lynx.h
5164 tmake_file
=m68k
/t-lynx
5165 extra_headers
=math-68881.h
5169 tm_file
=m68k
/netbsd.h
5176 # we need collect2 until our bug is fixed...
5179 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5180 xm_file
="xm-alloca.h ${xm_file}"
5182 xmake_file
=m68k
/x-m68kv
5183 extra_parts
="crtbegin.o crtend.o"
5184 extra_headers
=math-68881.h
5187 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5188 tm_file
=m68k
/m68kv4.h
5189 xm_file
="xm-alloca.h ${xm_file}"
5192 extra_parts
="crtbegin.o crtend.o"
5193 extra_headers
=math-68881.h
5196 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
5199 tm_file
=m68k
/linux-aout.h
5200 tmake_file
="t-linux-aout m68k/t-linux-aout"
5201 extra_headers
=math-68881.h
5205 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
5206 # with ELF format using the
5207 # GNU/Linux C library 5
5209 tm_file
=m68k
/linux.h
5210 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5211 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5212 extra_headers
=math-68881.h
5216 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
5217 # with ELF format using glibc 2
5218 # aka the GNU/Linux C library 6.
5220 tm_file
=m68k
/linux.h
5221 tmake_file
="t-linux m68k/t-linux"
5222 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5223 extra_headers
=math-68881.h
5226 if test x
$enable_threads = xyes
; then
5231 tmake_file
=m68k
/t-m68kbare
5232 tm_file
=m68k
/m68k-psos.h
5233 extra_headers
=math-68881.h
5237 tmake_file
="m68k/t-m68kbare t-rtems"
5238 tm_file
=m68k
/rtems.h
5239 extra_headers
=math-68881.h
5242 m68k-
*-rtemself*|m68k-
*-rtems*)
5243 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5244 tm_file
=m68k
/rtemself.h
5245 extra_headers
=math-68881.h
5251 tm_file
=m88k
/dguxbcs.h
5252 tmake_file
=m88k
/t-dguxbcs
5256 tmake_file
=m88k
/t-dgux
5259 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5260 xmake_file
=m88k
/x-dgux
5261 if test x
$gas = xyes
5263 tmake_file
=m88k
/t-dgux-gas
5266 m88k-dolphin-sysv3
*)
5267 tm_file
=m88k
/dolph.h
5268 extra_parts
="crtbegin.o crtend.o"
5269 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5270 xmake_file
=m88k
/x-dolph
5271 if test x
$gas = xyes
5273 tmake_file
=m88k
/t-m88k-gas
5276 m88k-tektronix-sysv3
)
5277 tm_file
=m88k
/tekXD88.h
5278 extra_parts
="crtbegin.o crtend.o"
5279 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5280 xmake_file
=m88k
/x-tekXD88
5281 if test x
$gas = xyes
5283 tmake_file
=m88k
/t-m88k-gas
5287 tm_file
=m88k
/m88k-aout.h
5290 tm_file
=m88k
/m88k-coff.h
5291 tmake_file
=m88k
/t-bug
5295 extra_parts
="crtbegin.o crtend.o"
5296 if test x
$gas = xyes
5298 tmake_file
=m88k
/t-luna-gas
5300 tmake_file
=m88k
/t-luna
5304 tmake_file
="${tmake_file} m88k/t-luna-gas"
5307 tm_file
=m88k
/sysv3.h
5308 extra_parts
="crtbegin.o crtend.o"
5309 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5310 xmake_file
=m88k
/x-sysv3
5311 if test x
$gas = xyes
5313 tmake_file
=m88k
/t-m88k-gas
5317 tm_file
=m88k
/sysv4.h
5318 extra_parts
="crtbegin.o crtend.o"
5319 xmake_file
=m88k
/x-sysv4
5320 tmake_file
=m88k
/t-sysv4
5323 tm_file
=mcore
/mcore-elf.h
5324 tmake_file
=mcore
/t-mcore
5327 tm_file
=mcore
/mcore-pe.h
5328 tmake_file
=mcore
/t-mcore-pe
5330 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5331 if test "x$gnu_ld" = xyes
5333 tm_file
="mips/iris6.h mips/iris6gld.h"
5335 tm_file
=mips
/iris6.h
5337 tmake_file
=mips
/t-iris6
5338 xm_file
=mips
/xm-iris6.h
5339 xmake_file
=mips
/x-iris6
5340 # if test x$enable_threads = xyes; then
5341 # thread_file='irix'
5345 tm_file
="mips/elf.h mips/vxworks.h"
5346 tmake_file
=mips
/t-ecoff
5349 extra_parts
="crtbegin.o crtend.o"
5350 thread_file
='vxworks'
5352 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5353 tm_file
="mips/iris6.h mips/cross64.h"
5355 xm_file
="mips/xm-iris5.h"
5356 xmake_file
=mips
/x-iris
5357 tmake_file
=mips
/t-cross64
5358 # See comment in mips/iris[56].h files.
5360 # if test x$enable_threads = xyes; then
5361 # thread_file='irix'
5365 if test x
$gas = xyes
5367 if test x
$stabs = xyes
5369 tm_file
=mips
/iris5gdb.h
5371 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5374 tm_file
=mips
/sni-svr4.h
5377 xmake_file
=mips
/x-sni-svr4
5378 tmake_file
=mips
/t-mips-gas
5379 if test x
$gnu_ld != xyes
5384 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5385 if test x
$gas = xyes
5387 tm_file
="mips/iris5.h mips/iris5gas.h"
5388 if test x
$stabs = xyes
5390 tm_file
="${tm_file} dbx.h"
5393 tm_file
=mips
/iris5.h
5396 xm_file
="mips/xm-iris5.h"
5397 xmake_file
=mips
/x-iris
5398 # mips-tfile doesn't work yet
5399 tmake_file
=mips
/t-mips-gas
5400 # See comment in mips/iris5.h file.
5402 # if test x$enable_threads = xyes; then
5403 # thread_file='irix'
5406 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5407 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5408 if test x
$stabs = xyes
; then
5409 tm_file
="${tm_file} dbx.h"
5412 xmake_file
=mips
/x-iris
5413 if test x
$gas = xyes
5415 tmake_file
=mips
/t-mips-gas
5417 extra_passes
="mips-tfile mips-tdump"
5419 if test x
$gnu_ld != xyes
5423 # if test x$enable_threads = xyes; then
5424 # thread_file='irix'
5427 mips-sgi-irix4
*) # Mostly like a MIPS.
5428 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5429 if test x
$stabs = xyes
; then
5430 tm_file
="${tm_file} dbx.h"
5433 xmake_file
=mips
/x-iris
5434 if test x
$gas = xyes
5436 tmake_file
=mips
/t-mips-gas
5438 extra_passes
="mips-tfile mips-tdump"
5440 if test x
$gnu_ld != xyes
5444 # if test x$enable_threads = xyes; then
5445 # thread_file='irix'
5448 mips-sgi-
*) # Mostly like a MIPS.
5449 tm_file
="mips/iris3.h ${tm_file}"
5450 if test x
$stabs = xyes
; then
5451 tm_file
="${tm_file} dbx.h"
5454 xmake_file
=mips
/x-iris3
5455 if test x
$gas = xyes
5457 tmake_file
=mips
/t-mips-gas
5459 extra_passes
="mips-tfile mips-tdump"
5461 if test x
$gnu_ld != xyes
5466 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5467 tm_file
="mips/osfrose.h ${tm_file}"
5468 xmake_file
=mips
/x-osfrose
5469 tmake_file
=mips
/t-osfrose
5470 extra_objs
=halfpic.o
5473 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5474 tm_file
=mips
/dec-osf1.h
5475 if test x
$stabs = xyes
; then
5476 tm_file
="${tm_file} dbx.h"
5478 xmake_file
=mips
/x-dec-osf1
5479 if test x
$gas = xyes
5481 tmake_file
=mips
/t-mips-gas
5483 tmake_file
=mips
/t-ultrix
5484 extra_passes
="mips-tfile mips-tdump"
5486 if test x
$gnu_ld != xyes
5491 mips-dec-bsd
*) # Decstation running 4.4 BSD
5492 tm_file
=mips
/dec-bsd.h
5493 if test x
$gas = xyes
5495 tmake_file
=mips
/t-mips-gas
5497 tmake_file
=mips
/t-ultrix
5498 extra_passes
="mips-tfile mips-tdump"
5500 if test x
$gnu_ld != xyes
5505 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5506 tm_file
=mips
/netbsd.h
5507 # On NetBSD, the headers are already okay, except for math.h.
5510 mips
*-*-linux*) # Linux MIPS, either endian.
5513 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5514 *) tm_file
="mips/elf.h mips/linux.h" ;;
5516 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5519 if test x
$enable_threads = xyes
; then
5523 mips
*el-
*-openbsd*) # mips little endian
5524 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5526 mips
*-*-openbsd*) # mips big endian
5527 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5528 tm_file
="mips/openbsd-be.h ${tm_file}"
5530 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5531 tm_file
="mips/news4.h ${tm_file}"
5532 if test x
$stabs = xyes
; then
5533 tm_file
="${tm_file} dbx.h"
5535 if test x
$gas = xyes
5537 tmake_file
=mips
/t-mips-gas
5539 extra_passes
="mips-tfile mips-tdump"
5541 if test x
$gnu_ld != xyes
5545 xmake_file
=mips
/x-sony
5547 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5548 # That is based on svr4.
5549 # t-svr4 is not right because this system doesn't use ELF.
5550 tm_file
="mips/news5.h ${tm_file}"
5551 if test x
$stabs = xyes
; then
5552 tm_file
="${tm_file} dbx.h"
5555 if test x
$gas = xyes
5557 tmake_file
=mips
/t-mips-gas
5559 extra_passes
="mips-tfile mips-tdump"
5561 if test x
$gnu_ld != xyes
5566 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5567 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5568 if test x
$stabs = xyes
; then
5569 tm_file
="${tm_file} dbx.h"
5572 xmake_file
=mips
/x-sysv
5573 if test x
$gas = xyes
5575 tmake_file
=mips
/t-mips-gas
5576 extra_parts
="crtbegin.o crtend.o"
5578 tmake_file
=mips
/t-mips
5579 extra_passes
="mips-tfile mips-tdump"
5581 if test x
$gnu_ld != xyes
5586 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5587 tm_file
="mips/ultrix.h ${tm_file}"
5588 if test x
$stabs = xyes
; then
5589 tm_file
="${tm_file} dbx.h"
5591 xmake_file
=mips
/x-ultrix
5592 if test x
$gas = xyes
5594 tmake_file
=mips
/t-mips-gas
5596 tmake_file
=mips
/t-ultrix
5597 extra_passes
="mips-tfile mips-tdump"
5599 if test x
$gnu_ld != xyes
5604 mips-
*-riscos[56789]bsd
*)
5605 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5606 if test x
$stabs = xyes
; then
5607 tm_file
="${tm_file} dbx.h"
5609 if test x
$gas = xyes
5611 tmake_file
=mips
/t-bsd-gas
5613 tmake_file
=mips
/t-bsd
5614 extra_passes
="mips-tfile mips-tdump"
5616 if test x
$gnu_ld != xyes
5621 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5622 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5623 if test x
$stabs = xyes
; then
5624 tm_file
="${tm_file} dbx.h"
5626 if test x
$gas = xyes
5628 tmake_file
=mips
/t-bsd-gas
5630 tmake_file
=mips
/t-bsd
5631 extra_passes
="mips-tfile mips-tdump"
5633 if test x
$gnu_ld != xyes
5638 mips-
*-riscos[56789]sysv4
*)
5639 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5640 if test x
$stabs = xyes
; then
5641 tm_file
="${tm_file} dbx.h"
5643 xmake_file
=mips
/x-sysv
5644 if test x
$gas = xyes
5646 tmake_file
=mips
/t-svr4-gas
5648 tmake_file
=mips
/t-svr4
5649 extra_passes
="mips-tfile mips-tdump"
5651 if test x
$gnu_ld != xyes
5656 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5657 tm_file
="mips/svr4-4.h ${tm_file}"
5658 if test x
$stabs = xyes
; then
5659 tm_file
="${tm_file} dbx.h"
5662 xmake_file
=mips
/x-sysv
5663 if test x
$gas = xyes
5665 tmake_file
=mips
/t-svr4-gas
5667 tmake_file
=mips
/t-svr4
5668 extra_passes
="mips-tfile mips-tdump"
5670 if test x
$gnu_ld != xyes
5675 mips-
*-riscos[56789]sysv
*)
5676 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5677 if test x
$stabs = xyes
; then
5678 tm_file
="${tm_file} dbx.h"
5681 xmake_file
=mips
/x-sysv
5682 if test x
$gas = xyes
5684 tmake_file
=mips
/t-svr3-gas
5686 tmake_file
=mips
/t-svr3
5687 extra_passes
="mips-tfile mips-tdump"
5689 if test x
$gnu_ld != xyes
5694 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5695 tm_file
="mips/svr3-4.h ${tm_file}"
5696 if test x
$stabs = xyes
; then
5697 tm_file
="${tm_file} dbx.h"
5700 xmake_file
=mips
/x-sysv
5701 if test x
$gas = xyes
5703 tmake_file
=mips
/t-svr3-gas
5705 tmake_file
=mips
/t-svr3
5706 extra_passes
="mips-tfile mips-tdump"
5708 if test x
$gnu_ld != xyes
5713 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5714 tm_file
=mips
/mips-5.h
5715 if test x
$stabs = xyes
; then
5716 tm_file
="${tm_file} dbx.h"
5718 if test x
$gas = xyes
5720 tmake_file
=mips
/t-mips-gas
5722 extra_passes
="mips-tfile mips-tdump"
5724 if test x
$gnu_ld != xyes
5732 tm_file
=mips
/ecoffl.h
5733 if test x
$stabs = xyes
; then
5734 tm_file
="${tm_file} dbx.h"
5736 tmake_file
=mips
/t-ecoff
5739 tm_file
="gofast.h mips/ecoff.h"
5740 if test x
$stabs = xyes
; then
5741 tm_file
="${tm_file} dbx.h"
5743 tmake_file
=mips
/t-ecoff
5746 tm_file
="mips/elfl.h"
5747 tmake_file
=mips
/t-elf
5750 tm_file
="mips/elf.h"
5751 tmake_file
=mips
/t-elf
5754 tm_file
="mips/elfl64.h"
5755 tmake_file
=mips
/t-elf
5757 mips64orionel-
*-elf*)
5758 tm_file
="mips/elforion.h mips/elfl64.h"
5759 tmake_file
=mips
/t-elf
5762 tm_file
="mips/elf64.h"
5763 tmake_file
=mips
/t-elf
5766 tm_file
="mips/elforion.h mips/elf64.h"
5767 tmake_file
=mips
/t-elf
5769 mips64orion-
*-rtems*)
5770 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5771 tmake_file
="mips/t-elf t-rtems"
5774 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5775 tmake_file
=mips
/t-r3900
5778 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5779 tmake_file
=mips
/t-r3900
5781 mips-
*-*) # Default MIPS RISC-OS 4.0.
5782 if test x
$stabs = xyes
; then
5783 tm_file
="${tm_file} dbx.h"
5785 if test x
$gas = xyes
5787 tmake_file
=mips
/t-mips-gas
5789 extra_passes
="mips-tfile mips-tdump"
5791 if test x
$gnu_ld != xyes
5799 tm_file
="mn10200/mn10200.h"
5800 if test x
$stabs = xyes
5802 tm_file
="${tm_file} dbx.h"
5808 tm_file
="mn10300/mn10300.h"
5809 if test x
$stabs = xyes
5811 tm_file
="${tm_file} dbx.h"
5816 tm_file
=ns32k
/encore.h
5820 tm_file
=ns32k
/sequent.h
5824 tm_file
=ns32k
/tek6100.h
5828 tm_file
=ns32k
/tek6200.h
5831 # This has not been updated to GCC 2.
5834 # xmake_file=ns32k/x-genix
5835 # tm_file=ns32k/genix.h
5839 tm_file
=ns32k
/merlin.h
5843 tm_file
=ns32k
/pc532-mach.h
5847 tm_file
=ns32k
/pc532-min.h
5848 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5853 tm_file
=ns32k
/netbsd.h
5854 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5855 # On NetBSD, the headers are already okay, except for math.h.
5860 tm_file
="${tm_file} pdp11/2bsd.h"
5869 # This has not been updated to GCC 2.
5872 # xmake_file=pyr/x-pyr
5877 tm_file
="svr4.h pj/linux.h ${tm_file}"
5882 tm_file
="svr4.h pj/pjl.h ${tm_file}"
5889 xmake_file
=romp
/x-mach
5896 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5900 tm_file
=rs6000
/beos.h
5901 xm_file
=rs6000
/xm-beos.h
5902 tmake_file
=rs6000
/t-beos
5903 xmake_file
=rs6000
/x-beos
5906 tm_file
=rs6000
/sysv4.h
5907 xm_file
="rs6000/xm-sysv4.h"
5908 xm_defines
="USG POSIX"
5909 extra_headers
=ppc-asm.h
5910 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5911 xmake_file
=rs6000
/x-sysv4
5914 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
5915 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5916 extra_headers
=ppc-asm.h
5919 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
5920 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5921 extra_headers
=ppc-asm.h
5924 tm_file
="rs6000/sysv4.h"
5925 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5926 extra_headers
=ppc-asm.h
5929 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
5930 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5931 extra_headers
=ppc-asm.h
5934 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
5935 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5936 extra_headers
=ppc-asm.h
5938 powerpc-
*-linux-gnulibc1)
5939 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5940 xm_file
=rs6000
/xm-sysv4.h
5941 out_file
=rs6000
/rs6000.c
5942 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5944 extra_headers
=ppc-asm.h
5945 if test x
$enable_threads = xyes
; then
5949 powerpc-
*-linux-gnu*)
5950 tm_file
="rs6000/sysv4.h rs6000/linux.h"
5951 xm_file
="rs6000/xm-sysv4.h"
5952 xm_defines
="USG ${xm_defines}"
5953 out_file
=rs6000
/rs6000.c
5954 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5956 extra_headers
=ppc-asm.h
5957 if test x
$enable_threads = xyes
; then
5961 powerpc-wrs-vxworks
*)
5963 xm_file
="rs6000/xm-sysv4.h"
5964 xm_defines
="USG POSIX"
5965 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
5966 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5967 extra_headers
=ppc-asm.h
5968 thread_file
='vxworks'
5970 powerpcle-wrs-vxworks
*)
5972 xm_file
="rs6000/xm-sysv4.h"
5973 xm_defines
="USG POSIX"
5974 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
5975 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5976 extra_headers
=ppc-asm.h
5977 thread_file
='vxworks'
5980 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5981 xm_file
="rs6000/xm-sysv4.h"
5982 xm_defines
="USG POSIX"
5983 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5984 xmake_file
=rs6000
/x-sysv4
5985 extra_headers
=ppc-asm.h
5988 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
5989 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5990 extra_headers
=ppc-asm.h
5992 powerpcle-
*-eabisim*)
5993 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
5994 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5995 extra_headers
=ppc-asm.h
5998 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
5999 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6000 extra_headers
=ppc-asm.h
6002 powerpcle-
*-solaris2*)
6003 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6004 xm_file
="rs6000/xm-sysv4.h"
6005 xm_defines
="USG POSIX"
6006 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6007 xmake_file
=rs6000
/x-sysv4
6008 extra_headers
=ppc-asm.h
6010 rs6000-ibm-aix3.
[01]*)
6011 tm_file
=rs6000
/aix31.h
6012 xmake_file
=rs6000
/x-aix31
6016 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6017 tm_file
=rs6000
/aix3newas.h
6018 if test x
$host != x
$target
6020 tmake_file
=rs6000
/t-xnewas
6022 tmake_file
=rs6000
/t-newas
6027 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6028 tm_file
=rs6000
/aix41.h
6029 if test x
$host != x
$target
6031 tmake_file
=rs6000
/t-xnewas
6033 tmake_file
=rs6000
/t-newas
6035 if test "$gnu_ld" = yes
6037 xmake_file
=rs6000
/x-aix41-gld
6039 tmake_file
="rs6000/t-newas rs6000/t-aix41"
6041 xmake_file
=rs6000
/x-aix41
6045 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6046 tm_file
=rs6000
/aix43.h
6047 tmake_file
=rs6000
/t-aix43
6048 xmake_file
=rs6000
/x-aix41
6052 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6053 tm_file
=rs6000
/aix43.h
6054 tmake_file
=rs6000
/t-aix43
6055 xmake_file
=rs6000
/x-aix41
6068 tm_file
=rs6000
/mach.h
6069 xm_file
="${xm_file} rs6000/xm-mach.h"
6070 xmake_file
=rs6000
/x-mach
6074 tm_file
=rs6000
/lynx.h
6075 xm_file
=rs6000
/xm-lynx.h
6076 tmake_file
=rs6000
/t-rs6000
6077 xmake_file
=rs6000
/x-lynx
6085 tmake_file
="sh/t-sh t-rtems"
6086 tm_file
=sh
/rtemself.h
6090 tmake_file
="sh/t-sh t-rtems"
6099 xm_file
="xm-alloca.h ${xm_file}"
6102 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6103 tm_file
=sparc
/vxsparc.h
6104 tmake_file
=sparc
/t-vxsparc
6106 thread_file
='vxworks'
6109 tmake_file
=sparc
/t-sparcbare
6110 tm_file
="sparc/aout.h libgloss.h"
6113 tm_file
=sparc
/netbsd.h
6118 # we need collect2 until our bug is fixed...
6126 tmake_file
=sparc
/t-elf
6127 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6131 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
6132 xm_file
="${xm_file} sparc/xm-linux.h"
6133 tm_file
=sparc
/linux-aout.h
6137 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
6138 xm_file
="${xm_file} sparc/xm-linux.h"
6140 tm_file
=sparc
/linux.h
6141 tmake_file
="t-linux t-linux-gnulibc1"
6142 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6146 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
6147 xm_file
="${xm_file} sparc/xm-linux.h"
6149 tm_file
=sparc
/linux.h
6150 tmake_file
="t-linux"
6151 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6153 if test x
$enable_threads = xyes
; then
6159 if test x
$gas = xyes
6161 tm_file
=sparc
/lynx.h
6163 tm_file
=sparc
/lynx-ng.h
6165 xm_file
=sparc
/xm-lynx.h
6166 tmake_file
=sparc
/t-sunos41
6170 tmake_file
="sparc/t-sparcbare t-rtems"
6171 tm_file
=sparc
/rtems.h
6173 sparc-
*-rtems*|sparc-
*-rtemself*)
6174 tm_file
="sparc/rtemself.h"
6175 tmake_file
="sparc/t-elf t-rtems"
6176 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6180 sparcv9-
*-solaris2*)
6181 if test x
$gnu_ld = xyes
6183 tm_file
=sparc
/sol2-64.h
6185 tm_file
=sparc
/sol2-sld-64.h
6187 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6188 xm_defines
="USG POSIX"
6189 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6190 xmake_file
=sparc
/x-sysv4
6191 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6193 if test x
${enable_threads} = x
; then
6194 enable_threads
=$have_pthread_h
6195 if test x
${enable_threads} = x
; then
6196 enable_threads
=$have_thread_h
6199 if test x
${enable_threads} = xyes
; then
6200 if test x
${have_pthread_h} = xyes
; then
6203 thread_file
='solaris'
6207 sparc-hal-solaris2
*)
6208 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6209 xm_defines
="USG POSIX"
6210 tm_file
="sparc/sol2.h sparc/hal.h"
6211 tmake_file
="sparc/t-halos sparc/t-sol2"
6212 xmake_file
=sparc
/x-sysv4
6213 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6222 thread_file
='solaris'
6225 if test x
$gnu_ld = xyes
6227 tm_file
=sparc
/sol2.h
6229 tm_file
=sparc
/sol2-sld.h
6231 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6232 xm_defines
="USG POSIX"
6233 tmake_file
=sparc
/t-sol2
6234 xmake_file
=sparc
/x-sysv4
6235 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6237 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6239 if test x
$gnu_ld = xyes
6241 tm_file
=sparc
/sol2-64.h
6243 tm_file
=sparc
/sol2-sld-64.h
6245 tmake_file
="$tmake_file sparc/t-sol2-64"
6256 if test x
${enable_threads} = x
; then
6257 enable_threads
=$have_pthread_h
6258 if test x
${enable_threads} = x
; then
6259 enable_threads
=$have_thread_h
6262 if test x
${enable_threads} = xyes
; then
6263 if test x
${have_pthread_h} = xyes
; then
6266 thread_file
='solaris'
6271 tm_file
=sparc
/sunos4.h
6272 tmake_file
=sparc
/t-sunos40
6276 tm_file
=sparc
/sunos4.h
6277 tmake_file
=sparc
/t-sunos41
6279 if test x
$gas = xyes
; then
6280 tm_file
="${tm_file} sparc/sun4gas.h"
6284 tm_file
=sparc
/sun4o3.h
6288 tm_file
=sparc
/sysv4.h
6289 xm_file
="sparc/xm-sysv4.h"
6290 xm_defines
="USG POSIX"
6292 xmake_file
=sparc
/x-sysv4
6293 extra_parts
="crtbegin.o crtend.o"
6296 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6297 xm_defines
="USG POSIX"
6298 tm_file
=sparc
/vxsim.h
6299 tmake_file
=sparc
/t-vxsparc
6300 xmake_file
=sparc
/x-sysv4
6303 tm_file
="sparc/splet.h libgloss.h"
6304 tmake_file
=sparc
/t-splet
6307 tm_file
="sparc/litecoff.h libgloss.h"
6308 tmake_file
=sparc
/t-sparclite
6311 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6312 tmake_file
=sparc
/t-sparclite
6315 tm_file
="sparc/liteelf.h"
6316 tmake_file
=sparc
/t-sparclite
6317 extra_parts
="crtbegin.o crtend.o"
6320 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6321 tmake_file
=sparc
/t-sp86x
6324 tm_file
="sparc/sp86x-elf.h"
6325 tmake_file
=sparc
/t-sp86x
6326 extra_parts
="crtbegin.o crtend.o"
6329 tmake_file
=sparc
/t-sp64
6330 tm_file
=sparc
/sp64-aout.h
6333 tmake_file
=sparc
/t-sp64
6334 tm_file
=sparc
/sp64-elf.h
6335 extra_parts
="crtbegin.o crtend.o"
6337 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6338 tmake_file
="t-linux sparc/t-linux64"
6339 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6340 tm_file
=sparc
/linux64.h
6342 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6344 if test x
$enable_threads = xyes
; then
6349 # This hasn't been upgraded to GCC 2.
6350 # tahoe-harris-*) # Harris tahoe, using COFF.
6351 # tm_file=tahoe/harris.h
6353 # tahoe-*-bsd*) # tahoe running BSD
6357 { echo "configure: error:
6358 *** The Thumb targets have been depreciated. The equivalent
6359 *** ARM based toolchain can now generated Thumb instructions
6360 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6362 # This hasn't been upgraded to GCC 2.
6369 tm_file
="v850/rtems.h"
6370 xm_file
="v850/xm-v850.h"
6371 tmake_file
="v850/t-v850 t-rtems"
6372 if test x
$stabs = xyes
6374 tm_file
="${tm_file} dbx.h"
6379 target_cpu_default
="TARGET_CPU_generic"
6381 tm_file
="v850/v850.h"
6382 xm_file
="v850/xm-v850.h"
6383 tmake_file
=v850
/t-v850
6384 if test x
$stabs = xyes
6386 tm_file
="${tm_file} dbx.h"
6390 vax-
*-bsd*) # vaxen running BSD
6394 vax-
*-sysv*) # vaxen running system V
6395 tm_file
="${tm_file} vax/vaxv.h"
6400 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6406 tmake_file
="${tmake_file} vax/t-openbsd"
6408 vax-
*-ultrix*) # vaxen running ultrix
6409 tm_file
="${tm_file} vax/ultrix.h"
6413 vax-
*-vms*) # vaxen running VMS
6414 xm_file
=vax
/xm-vms.h
6418 vax-
*-*) # vax default entry
6422 xm_file
="${xm_file} xm-svr3"
6426 echo "Configuration $machine not supported" 1>&2
6433 ;; # Existing GNU/Linux systems do not use the GNU setup.
6435 # On the GNU system, the setup is just about the same on
6436 # each different CPU. The specific machines that GNU
6437 # supports are matched above and just set $cpu_type.
6438 xm_file
="xm-gnu.h ${xm_file}"
6439 tm_file
=${cpu_type}/gnu.h
6440 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6441 # GNU always uses ELF.
6443 # GNU tools are the only tools.
6446 xmake_file
=x-linux
# These details are the same as Linux.
6447 tmake_file
=t-gnu
# These are not.
6450 xmake_try_sysv
=x-sysv
6451 install_headers_dir
=install-headers-cpio
6454 install_headers_dir
=install-headers-cpio
6458 # Distinguish i[34567]86
6459 # Also, do not run mips-tfile on MIPS if using gas.
6460 # Process --with-cpu= for PowerPC/rs6000
6461 target_cpu_default2
=
6464 target_cpu_default2
=1
6467 case $target_alias in
6469 target_cpu_default2
=4
6472 target_cpu_default2
=2
6476 i686-
*-* | i786-
*-*)
6477 target_cpu_default2
=3
6482 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6485 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6488 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6491 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6494 target_cpu_default2
="MASK_CPU_EV5"
6498 if test x
$gas = xyes
6500 if test "$target_cpu_default2" = ""
6502 target_cpu_default2
="MASK_GAS"
6504 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6509 case "x$with_cpu" in
6512 target_cpu_default2
="TARGET_CPU_generic"
6515 # Distinguish cores, and major variants
6516 # arm7m doesn't exist, but D & I don't affect code
6517 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6518 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6519 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6520 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6521 target_cpu_default2
="TARGET_CPU_$with_cpu"
6525 echo "--with-cpu must be passed a value" 1>&2
6530 if test x
$pass2done = xyes
6532 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6539 mips
*-*-ecoff* | mips
*-*-elf*)
6540 if test x
$gas = xyes
6542 if test x
$gnu_ld = xyes
6544 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6546 target_cpu_default2
="MASK_GAS"
6551 if test x
$gas = xyes
6553 target_cpu_default2
="MASK_GAS"
6556 powerpc
*-*-* | rs6000-
*-*)
6557 case "x$with_cpu" in
6561 xcommon | xpower | xpower2 | xpowerpc | xrios \
6562 | xrios1 | xrios2 | xrsc | xrsc1 \
6563 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6564 | xec603e | x740 | x750 | x401 \
6565 | x403 | x505 | x801 | x821 | x823 | x860
)
6566 target_cpu_default2
="\"$with_cpu\""
6570 echo "--with-cpu must be passed a value" 1>&2
6575 if test x
$pass2done = xyes
6577 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6584 case ".$with_cpu" in
6586 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6588 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6589 target_cpu_default2
="TARGET_CPU_$with_cpu"
6592 if test x
$pass2done = xyes
6594 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6602 if test "$target_cpu_default2" != ""
6604 if test "$target_cpu_default" != ""
6606 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6608 target_cpu_default
=$target_cpu_default2
6612 # No need for collect2 if we have the GNU linker.
6613 # Actually, there is now; GNU ld doesn't handle the EH info or
6614 # collecting for shared libraries.
6621 # Save data on machine being used to compile GCC in build_xm_file.
6622 # Save data on host machine in vars host_xm_file and host_xmake_file.
6623 if test x
$pass1done = x
6625 if test x
"$xm_file" = x
6626 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6627 else build_xm_file
=$xm_file
6629 build_xm_defines
=$xm_defines
6630 build_install_headers_dir
=$install_headers_dir
6631 build_exeext
=$exeext
6634 if test x
$pass2done = x
6636 if test x
"$xm_file" = x
6637 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6638 else host_xm_file
=$xm_file
6640 host_xm_defines
=$xm_defines
6641 if test x
"$xmake_file" = x
6642 then xmake_file
=$cpu_type/x-
$cpu_type
6644 host_xmake_file
="$xmake_file"
6645 host_truncate_target
=$truncate_target
6646 host_extra_gcc_objs
=$extra_gcc_objs
6647 host_extra_objs
=$extra_host_objs
6654 extra_objs
="${host_extra_objs} ${extra_objs}"
6656 # Default the target-machine variables that were not explicitly set.
6657 if test x
"$tm_file" = x
6658 then tm_file
=$cpu_type/$cpu_type.h
; fi
6660 if test x
$extra_headers = x
6661 then extra_headers
=; fi
6663 if test x
"$xm_file" = x
6664 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6666 if test x
$md_file = x
6667 then md_file
=$cpu_type/$cpu_type.md
; fi
6669 if test x
$out_file = x
6670 then out_file
=$cpu_type/$cpu_type.c
; fi
6672 if test x
"$tmake_file" = x
6673 then tmake_file
=$cpu_type/t-
$cpu_type
6676 if test x
"$dwarf2" = xyes
6677 then tm_file
="$tm_file tm-dwarf2.h"
6680 if test x
$float_format = x
6681 then float_format
=i64
6684 if test $float_format = none
6685 then float_h_file
=Makefile.
in
6686 else float_h_file
=float-
$float_format.h
6689 # Handle cpp installation.
6690 if test x
$enable_cpp != xno
6692 tmake_file
="$tmake_file t-install-cpp"
6695 # Say what files are being used for the output code and MD file.
6696 echo "Using \`$srcdir/config/$out_file' to output insns."
6697 echo "Using \`$srcdir/config/$md_file' as machine description file."
6700 for f
in $tm_file; do
6703 if test $count = ax
; then
6704 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6706 echo "Using the following target machine macro files:"
6707 for f
in $tm_file; do
6708 echo " $srcdir/config/$f"
6713 for f
in $host_xm_file; do
6716 if test $count = ax
; then
6717 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6719 echo "Using the following host machine macro files:"
6720 for f
in $host_xm_file; do
6721 echo " $srcdir/config/$f"
6725 if test "$host_xm_file" != "$build_xm_file"; then
6727 for f
in $build_xm_file; do
6730 if test $count = ax
; then
6731 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6733 echo "Using the following build machine macro files:"
6734 for f
in $build_xm_file; do
6735 echo " $srcdir/config/$f"
6740 if test x
$thread_file = x
; then
6741 if test x
$target_thread_file != x
; then
6742 thread_file
=$target_thread_file
6744 thread_file
='single'
6748 # Set up the header files.
6749 # $links is the list of header files to create.
6750 # $vars is the list of shell variables with file names to include.
6751 # auto-host.h is the file containing items generated by autoconf and is
6752 # the first file included by config.h.
6754 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6756 # If host=build, it is correct to have hconfig include auto-host.h
6757 # as well. If host!=build, we are in error and need to do more
6758 # work to find out the build config parameters.
6759 if test x
$host = x
$build
6761 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6763 # We create a subdir, then run autoconf in the subdir.
6764 # To prevent recursion we set host and build for the new
6765 # invocation of configure to the build for this invocation
6772 /*) realsrcdir
=${srcdir};;
6773 *) realsrcdir
=..
/${srcdir};;
6775 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6776 --target=$target --host=$build --build=$build
6778 # We just finished tests for the build machine, so rename
6779 # the file auto-build.h in the gcc directory.
6780 mv auto-host.h ..
/auto-build.h
6783 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6786 xm_file
="gansidecl.h ${xm_file}"
6787 tm_file
="gansidecl.h ${tm_file}"
6789 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6790 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6791 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6794 if test -f config.status
; then mv -f config.status config.bak
; fi
6797 while test -n "$vars"
6799 set $vars; var
=$1; shift; vars
=$
*
6800 set $links; link
=$1; shift; links
=$
*
6801 set $defines; define
=$1; shift; defines
=$
*
6804 # Make sure the file is created, even if it is empty.
6807 # Define TARGET_CPU_DEFAULT if the system wants one.
6808 # This substitutes for lots of *.h files.
6809 if test "$target_cpu_default" != "" -a $link = tm.h
6811 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6814 for file in `eval echo '$'$var`; do
6819 echo '#ifdef IN_GCC' >>$link
6822 echo "#include \"$file\"" >>$link
6827 echo '#endif' >>$link
6832 for def
in `eval echo '$'$define`; do
6833 echo "#ifndef $def" >>$link
6834 echo "#define $def" >>$link
6835 echo "#endif" >>$link
6839 # Truncate the target if necessary
6840 if test x
$host_truncate_target != x
; then
6841 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6844 # Get the version trigger filename from the toplevel
6845 if test "${with_gcc_version_trigger+set}" = set; then
6846 gcc_version_trigger
=$with_gcc_version_trigger
6848 gcc_version_trigger
=${srcdir}/version.c
6850 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
6852 # Internationalization
6854 VERSION
="$gcc_version"
6855 cat >> confdefs.h
<<EOF
6856 #define PACKAGE "$PACKAGE"
6859 cat >> confdefs.h
<<EOF
6860 #define VERSION "$VERSION"
6868 # Enable NLS support by default
6869 # Check whether --enable-nls or --disable-nls was given.
6870 if test "${enable_nls+set}" = set; then
6871 enableval
="$enable_nls"
6878 # if cross compiling, disable NLS support.
6879 # It's not worth the trouble, at least for now.
6881 if test "${build}" != "${host}" && test "x$enable_nls" == "xyes" then
6882 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
6887 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6888 echo "configure:6889: checking for strerror in -lcposix" >&5
6889 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6893 ac_save_LIBS
="$LIBS"
6894 LIBS
="-lcposix $LIBS"
6895 cat > conftest.
$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6898 /* Override any gcc2 internal prototype to avoid an error. */
6899 /* We use char because int might match the return type of a gcc2
6900 builtin and then its argument prototype would still apply. */
6907 if { (eval echo configure
:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6909 eval "ac_cv_lib_$ac_lib_var=yes"
6911 echo "configure: failed program was:" >&5
6912 cat conftest.
$ac_ext >&5
6914 eval "ac_cv_lib_$ac_lib_var=no"
6917 LIBS
="$ac_save_LIBS"
6920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6921 echo "$ac_t""yes" 1>&6
6922 LIBS
="$LIBS -lcposix"
6924 echo "$ac_t""no" 1>&6
6929 echo $ac_n "checking for working const""... $ac_c" 1>&6
6930 echo "configure:6931: checking for working const" >&5
6931 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6932 echo $ac_n "(cached) $ac_c" 1>&6
6934 cat > conftest.
$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6940 /* Ultrix mips cc rejects this. */
6941 typedef int charset[2]; const charset x;
6942 /* SunOS 4.1.1 cc rejects this. */
6943 char const *const *ccp;
6945 /* NEC SVR4.0.2 mips cc rejects this. */
6946 struct point {int x, y;};
6947 static struct point const zero = {0,0};
6948 /* AIX XL C 1.02.0.0 rejects this.
6949 It does not let you subtract one const X* pointer from another in an arm
6950 of an if-expression whose if-part is not a constant expression */
6951 const char *g = "string";
6952 ccp = &g + (g ? g-g : 0);
6953 /* HPUX 7.0 cc rejects these. */
6956 ccp = (char const *const *) p;
6957 { /* SCO 3.2v4 cc rejects this. */
6959 char const *s = 0 ? (char *) 0 : (char const *) 0;
6963 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6965 const int *foo = &x[0];
6968 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6969 typedef const int *iptr;
6973 { /* AIX XL C 1.02.0.0 rejects this saying
6974 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6975 struct s { int j; const int *ap[3]; };
6976 struct s *b; b->j = 5;
6978 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6984 if { (eval echo configure
:6985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6988 echo "configure: failed program was:" >&5
6989 cat conftest.
$ac_ext >&5
6996 echo "$ac_t""$ac_cv_c_const" 1>&6
6997 if test $ac_cv_c_const = no
; then
6998 cat >> confdefs.h
<<\EOF
7004 echo $ac_n "checking for inline""... $ac_c" 1>&6
7005 echo "configure:7006: checking for inline" >&5
7006 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
7007 echo $ac_n "(cached) $ac_c" 1>&6
7010 for ac_kw
in inline __inline__ __inline
; do
7011 cat > conftest.
$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7019 if { (eval echo configure
:7020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7021 ac_cv_c_inline
=$ac_kw; break
7023 echo "configure: failed program was:" >&5
7024 cat conftest.
$ac_ext >&5
7031 echo "$ac_t""$ac_cv_c_inline" 1>&6
7032 case "$ac_cv_c_inline" in
7034 no
) cat >> confdefs.h
<<\EOF
7038 *) cat >> confdefs.h
<<EOF
7039 #define inline $ac_cv_c_inline
7044 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7045 echo "configure:7046: checking for off_t" >&5
7046 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7049 cat > conftest.
$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7052 #include <sys/types.h>
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7061 ac_cv_type_off_t
=yes
7069 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7070 if test $ac_cv_type_off_t = no
; then
7071 cat >> confdefs.h
<<\EOF
7077 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7078 echo "configure:7079: checking for size_t" >&5
7079 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7080 echo $ac_n "(cached) $ac_c" 1>&6
7082 cat > conftest.
$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 #include <sys/types.h>
7091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7092 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7094 ac_cv_type_size_t
=yes
7097 ac_cv_type_size_t
=no
7102 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7103 if test $ac_cv_type_size_t = no
; then
7104 cat >> confdefs.h
<<\EOF
7105 #define size_t unsigned
7110 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7111 # for constant arguments. Useless!
7112 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7113 echo "configure:7114: checking for working alloca.h" >&5
7114 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7115 echo $ac_n "(cached) $ac_c" 1>&6
7117 cat > conftest.
$ac_ext <<EOF
7118 #line 7119 "configure"
7119 #include "confdefs.h"
7122 char *p = alloca(2 * sizeof(int));
7125 if { (eval echo configure
:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7127 ac_cv_header_alloca_h
=yes
7129 echo "configure: failed program was:" >&5
7130 cat conftest.
$ac_ext >&5
7132 ac_cv_header_alloca_h
=no
7137 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7138 if test $ac_cv_header_alloca_h = yes; then
7139 cat >> confdefs.h
<<\EOF
7140 #define HAVE_ALLOCA_H 1
7145 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7146 echo "configure:7147: checking for alloca" >&5
7147 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7150 cat > conftest.
$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7155 # define alloca __builtin_alloca
7158 # include <malloc.h>
7159 # define alloca _alloca
7162 # include <alloca.h>
7167 # ifndef alloca /* predefined by HP cc +Olibcalls */
7176 char *p = (char *) alloca(1);
7179 if { (eval echo configure
:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7181 ac_cv_func_alloca_works
=yes
7183 echo "configure: failed program was:" >&5
7184 cat conftest.
$ac_ext >&5
7186 ac_cv_func_alloca_works
=no
7191 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7192 if test $ac_cv_func_alloca_works = yes; then
7193 cat >> confdefs.h
<<\EOF
7194 #define HAVE_ALLOCA 1
7199 if test $ac_cv_func_alloca_works = no
; then
7200 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7201 # that cause trouble. Some versions do not even contain alloca or
7202 # contain a buggy version. If you still want to use their alloca,
7203 # use ar to extract alloca.o from them instead of compiling alloca.c.
7204 ALLOCA
=alloca.
${ac_objext}
7205 cat >> confdefs.h
<<\EOF
7210 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7211 echo "configure:7212: checking whether alloca needs Cray hooks" >&5
7212 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 cat > conftest.
$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 #if defined(CRAY) && ! defined(CRAY2)
7225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7226 egrep "webecray" >/dev
/null
2>&1; then
7237 echo "$ac_t""$ac_cv_os_cray" 1>&6
7238 if test $ac_cv_os_cray = yes; then
7239 for ac_func
in _getb67 GETB67 getb67
; do
7240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7241 echo "configure:7242: checking for $ac_func" >&5
7242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7245 cat > conftest.
$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* System header to define __stub macros and hopefully few prototypes,
7249 which can conflict with char $ac_func(); below. */
7251 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7258 /* The GNU C library defines this for functions which it implements
7259 to always fail with ENOSYS. Some functions are actually named
7260 something starting with __ and the normal name is an alias. */
7261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7269 if { (eval echo configure
:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7271 eval "ac_cv_func_$ac_func=yes"
7273 echo "configure: failed program was:" >&5
7274 cat conftest.
$ac_ext >&5
7276 eval "ac_cv_func_$ac_func=no"
7281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7282 echo "$ac_t""yes" 1>&6
7283 cat >> confdefs.h
<<EOF
7284 #define CRAY_STACKSEG_END $ac_func
7289 echo "$ac_t""no" 1>&6
7295 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7296 echo "configure:7297: checking stack direction for C alloca" >&5
7297 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7300 if test "$cross_compiling" = yes; then
7301 ac_cv_c_stack_direction
=0
7303 cat > conftest.
$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306 find_stack_direction ()
7308 static char *addr = 0;
7313 return find_stack_direction ();
7316 return (&dummy > addr) ? 1 : -1;
7320 exit (find_stack_direction() < 0);
7323 if { (eval echo configure
:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7325 ac_cv_c_stack_direction
=1
7327 echo "configure: failed program was:" >&5
7328 cat conftest.
$ac_ext >&5
7330 ac_cv_c_stack_direction
=-1
7337 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7338 cat >> confdefs.h
<<EOF
7339 #define STACK_DIRECTION $ac_cv_c_stack_direction
7345 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7346 unistd.h sys
/param.h
7348 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7350 echo "configure:7351: checking for $ac_hdr" >&5
7351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7352 echo $ac_n "(cached) $ac_c" 1>&6
7354 cat > conftest.
$ac_ext <<EOF
7355 #line 7356 "configure"
7356 #include "confdefs.h"
7359 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7360 { (eval echo configure
:7361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7361 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7362 if test -z "$ac_err"; then
7364 eval "ac_cv_header_$ac_safe=yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.
$ac_ext >&5
7370 eval "ac_cv_header_$ac_safe=no"
7374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7377 cat >> confdefs.h
<<EOF
7378 #define $ac_tr_hdr 1
7382 echo "$ac_t""no" 1>&6
7386 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7387 strdup __argz_count __argz_stringify __argz_next
7389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7390 echo "configure:7391: checking for $ac_func" >&5
7391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7394 cat > conftest.
$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7397 /* System header to define __stub macros and hopefully few prototypes,
7398 which can conflict with char $ac_func(); below. */
7400 /* Override any gcc2 internal prototype to avoid an error. */
7401 /* We use char because int might match the return type of a gcc2
7402 builtin and then its argument prototype would still apply. */
7407 /* The GNU C library defines this for functions which it implements
7408 to always fail with ENOSYS. Some functions are actually named
7409 something starting with __ and the normal name is an alias. */
7410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7418 if { (eval echo configure
:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7420 eval "ac_cv_func_$ac_func=yes"
7422 echo "configure: failed program was:" >&5
7423 cat conftest.
$ac_ext >&5
7425 eval "ac_cv_func_$ac_func=no"
7430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7431 echo "$ac_t""yes" 1>&6
7432 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7433 cat >> confdefs.h
<<EOF
7434 #define $ac_tr_func 1
7438 echo "$ac_t""no" 1>&6
7443 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7444 for ac_func
in stpcpy
7446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7447 echo "configure:7448: checking for $ac_func" >&5
7448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 cat > conftest.
$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 /* System header to define __stub macros and hopefully few prototypes,
7455 which can conflict with char $ac_func(); below. */
7457 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7464 /* The GNU C library defines this for functions which it implements
7465 to always fail with ENOSYS. Some functions are actually named
7466 something starting with __ and the normal name is an alias. */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7475 if { (eval echo configure
:7476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7477 eval "ac_cv_func_$ac_func=yes"
7479 echo "configure: failed program was:" >&5
7480 cat conftest.
$ac_ext >&5
7482 eval "ac_cv_func_$ac_func=no"
7487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7490 cat >> confdefs.h
<<EOF
7491 #define $ac_tr_func 1
7495 echo "$ac_t""no" 1>&6
7500 if test "${ac_cv_func_stpcpy}" = "yes"; then
7501 cat >> confdefs.h
<<\EOF
7502 #define HAVE_STPCPY 1
7507 if test $ac_cv_header_locale_h = yes; then
7508 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7509 echo "configure:7510: checking for LC_MESSAGES" >&5
7510 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7513 cat > conftest.
$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7521 if { (eval echo configure
:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7523 am_cv_val_LC_MESSAGES
=yes
7525 echo "configure: failed program was:" >&5
7526 cat conftest.
$ac_ext >&5
7528 am_cv_val_LC_MESSAGES
=no
7533 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7534 if test $am_cv_val_LC_MESSAGES = yes; then
7535 cat >> confdefs.h
<<\EOF
7536 #define HAVE_LC_MESSAGES 1
7541 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7542 echo "configure:7543: checking whether NLS is requested" >&5
7543 # Check whether --enable-nls or --disable-nls was given.
7544 if test "${enable_nls+set}" = set; then
7545 enableval
="$enable_nls"
7551 echo "$ac_t""$USE_NLS" 1>&6
7554 USE_INCLUDED_LIBINTL
=no
7556 if test "$USE_NLS" = "yes"; then
7557 cat >> confdefs.h
<<\EOF
7558 #define ENABLE_NLS 1
7561 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7562 echo "configure:7563: checking whether included gettext is requested" >&5
7563 # Check whether --with-included-gettext or --without-included-gettext was given.
7564 if test "${with_included_gettext+set}" = set; then
7565 withval
="$with_included_gettext"
7566 nls_cv_force_use_gnu_gettext
=$withval
7568 nls_cv_force_use_gnu_gettext
=no
7571 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7573 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7574 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7576 nls_cv_header_libgt
=
7579 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7580 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7581 echo "configure:7582: checking for libintl.h" >&5
7582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6
7585 cat > conftest.
$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 #include <libintl.h>
7590 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7591 { (eval echo configure
:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7592 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7593 if test -z "$ac_err"; then
7595 eval "ac_cv_header_$ac_safe=yes"
7598 echo "configure: failed program was:" >&5
7599 cat conftest.
$ac_ext >&5
7601 eval "ac_cv_header_$ac_safe=no"
7605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7606 echo "$ac_t""yes" 1>&6
7607 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7608 echo "configure:7609: checking for gettext in libc" >&5
7609 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7610 echo $ac_n "(cached) $ac_c" 1>&6
7612 cat > conftest.
$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 #include <libintl.h>
7617 return (int) gettext ("")
7620 if { (eval echo configure
:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7622 gt_cv_func_gettext_libc
=yes
7624 echo "configure: failed program was:" >&5
7625 cat conftest.
$ac_ext >&5
7627 gt_cv_func_gettext_libc
=no
7632 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7634 if test "$gt_cv_func_gettext_libc" != "yes"; then
7635 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7636 echo "configure:7637: checking for bindtextdomain in -lintl" >&5
7637 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
7641 ac_save_LIBS
="$LIBS"
7643 cat > conftest.
$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 /* Override any gcc2 internal prototype to avoid an error. */
7647 /* We use char because int might match the return type of a gcc2
7648 builtin and then its argument prototype would still apply. */
7649 char bindtextdomain();
7655 if { (eval echo configure
:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7657 eval "ac_cv_lib_$ac_lib_var=yes"
7659 echo "configure: failed program was:" >&5
7660 cat conftest.
$ac_ext >&5
7662 eval "ac_cv_lib_$ac_lib_var=no"
7665 LIBS
="$ac_save_LIBS"
7668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7669 echo "$ac_t""yes" 1>&6
7670 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7671 echo "configure:7672: checking for gettext in libintl" >&5
7672 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7676 echo "configure:7677: checking for gettext in -lintl" >&5
7677 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7681 ac_save_LIBS
="$LIBS"
7683 cat > conftest.
$ac_ext <<EOF
7684 #line 7685 "configure"
7685 #include "confdefs.h"
7686 /* Override any gcc2 internal prototype to avoid an error. */
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7695 if { (eval echo configure
:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7697 eval "ac_cv_lib_$ac_lib_var=yes"
7699 echo "configure: failed program was:" >&5
7700 cat conftest.
$ac_ext >&5
7702 eval "ac_cv_lib_$ac_lib_var=no"
7705 LIBS
="$ac_save_LIBS"
7708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7709 echo "$ac_t""yes" 1>&6
7710 gt_cv_func_gettext_libintl
=yes
7712 echo "$ac_t""no" 1>&6
7713 gt_cv_func_gettext_libintl
=no
7718 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7720 echo "$ac_t""no" 1>&6
7725 if test "$gt_cv_func_gettext_libc" = "yes" \
7726 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7727 cat >> confdefs.h
<<\EOF
7728 #define HAVE_GETTEXT 1
7731 # Extract the first word of "msgfmt", so it can be a program name with args.
7732 set dummy msgfmt
; ac_word
=$2
7733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7734 echo "configure:7735: checking for $ac_word" >&5
7735 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7740 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7743 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7744 for ac_dir
in $PATH; do
7745 test -z "$ac_dir" && ac_dir
=.
7746 if test -f $ac_dir/$ac_word; then
7747 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7748 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7754 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7758 MSGFMT
="$ac_cv_path_MSGFMT"
7759 if test -n "$MSGFMT"; then
7760 echo "$ac_t""$MSGFMT" 1>&6
7762 echo "$ac_t""no" 1>&6
7764 if test "$MSGFMT" != "no"; then
7765 for ac_func
in dcgettext
7767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7768 echo "configure:7769: checking for $ac_func" >&5
7769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7772 cat > conftest.
$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7775 /* System header to define __stub macros and hopefully few prototypes,
7776 which can conflict with char $ac_func(); below. */
7778 /* Override any gcc2 internal prototype to avoid an error. */
7779 /* We use char because int might match the return type of a gcc2
7780 builtin and then its argument prototype would still apply. */
7785 /* The GNU C library defines this for functions which it implements
7786 to always fail with ENOSYS. Some functions are actually named
7787 something starting with __ and the normal name is an alias. */
7788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7796 if { (eval echo configure
:7797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7798 eval "ac_cv_func_$ac_func=yes"
7800 echo "configure: failed program was:" >&5
7801 cat conftest.
$ac_ext >&5
7803 eval "ac_cv_func_$ac_func=no"
7808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7809 echo "$ac_t""yes" 1>&6
7810 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7811 cat >> confdefs.h
<<EOF
7812 #define $ac_tr_func 1
7816 echo "$ac_t""no" 1>&6
7820 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7821 set dummy gmsgfmt
; ac_word
=$2
7822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7823 echo "configure:7824: checking for $ac_word" >&5
7824 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7829 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7832 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7835 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7837 for ac_dir
in $ac_dummy; do
7838 test -z "$ac_dir" && ac_dir
=.
7839 if test -f $ac_dir/$ac_word; then
7840 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7845 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7849 GMSGFMT
="$ac_cv_path_GMSGFMT"
7850 if test -n "$GMSGFMT"; then
7851 echo "$ac_t""$GMSGFMT" 1>&6
7853 echo "$ac_t""no" 1>&6
7856 # Extract the first word of "xgettext", so it can be a program name with args.
7857 set dummy xgettext
; ac_word
=$2
7858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7859 echo "configure:7860: checking for $ac_word" >&5
7860 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7865 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7868 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7869 for ac_dir
in $PATH; do
7870 test -z "$ac_dir" && ac_dir
=.
7871 if test -f $ac_dir/$ac_word; then
7872 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7873 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7879 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7883 XGETTEXT
="$ac_cv_path_XGETTEXT"
7884 if test -n "$XGETTEXT"; then
7885 echo "$ac_t""$XGETTEXT" 1>&6
7887 echo "$ac_t""no" 1>&6
7890 cat > conftest.
$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7895 extern int _nl_msg_cat_cntr;
7896 return _nl_msg_cat_cntr
7899 if { (eval echo configure
:7900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7904 echo "configure: failed program was:" >&5
7905 cat conftest.
$ac_ext >&5
7916 echo "$ac_t""no" 1>&6
7920 if test "$CATOBJEXT" = "NONE"; then
7921 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7922 echo "configure:7923: checking whether catgets can be used" >&5
7923 # Check whether --with-catgets or --without-catgets was given.
7924 if test "${with_catgets+set}" = set; then
7925 withval
="$with_catgets"
7926 nls_cv_use_catgets
=$withval
7928 nls_cv_use_catgets
=no
7931 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7933 if test "$nls_cv_use_catgets" = "yes"; then
7934 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7935 echo "configure:7936: checking for main in -li" >&5
7936 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7938 echo $ac_n "(cached) $ac_c" 1>&6
7940 ac_save_LIBS
="$LIBS"
7942 cat > conftest.
$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7950 if { (eval echo configure
:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7952 eval "ac_cv_lib_$ac_lib_var=yes"
7954 echo "configure: failed program was:" >&5
7955 cat conftest.
$ac_ext >&5
7957 eval "ac_cv_lib_$ac_lib_var=no"
7960 LIBS
="$ac_save_LIBS"
7963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7964 echo "$ac_t""yes" 1>&6
7965 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7967 cat >> confdefs.h
<<EOF
7968 #define $ac_tr_lib 1
7974 echo "$ac_t""no" 1>&6
7977 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7978 echo "configure:7979: checking for catgets" >&5
7979 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7982 cat > conftest.
$ac_ext <<EOF
7983 #line 7984 "configure"
7984 #include "confdefs.h"
7985 /* System header to define __stub macros and hopefully few prototypes,
7986 which can conflict with char catgets(); below. */
7988 /* Override any gcc2 internal prototype to avoid an error. */
7989 /* We use char because int might match the return type of a gcc2
7990 builtin and then its argument prototype would still apply. */
7995 /* The GNU C library defines this for functions which it implements
7996 to always fail with ENOSYS. Some functions are actually named
7997 something starting with __ and the normal name is an alias. */
7998 #if defined (__stub_catgets) || defined (__stub___catgets)
8006 if { (eval echo configure
:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8008 eval "ac_cv_func_catgets=yes"
8010 echo "configure: failed program was:" >&5
8011 cat conftest.
$ac_ext >&5
8013 eval "ac_cv_func_catgets=no"
8018 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8019 echo "$ac_t""yes" 1>&6
8020 cat >> confdefs.h
<<\EOF
8021 #define HAVE_CATGETS 1
8024 INTLOBJS
="\$(CATOBJS)"
8025 # Extract the first word of "gencat", so it can be a program name with args.
8026 set dummy gencat
; ac_word
=$2
8027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8028 echo "configure:8029: checking for $ac_word" >&5
8029 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8034 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8037 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8040 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8042 for ac_dir
in $ac_dummy; do
8043 test -z "$ac_dir" && ac_dir
=.
8044 if test -f $ac_dir/$ac_word; then
8045 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8050 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8054 GENCAT
="$ac_cv_path_GENCAT"
8055 if test -n "$GENCAT"; then
8056 echo "$ac_t""$GENCAT" 1>&6
8058 echo "$ac_t""no" 1>&6
8060 if test "$GENCAT" != "no"; then
8061 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8062 set dummy gmsgfmt
; ac_word
=$2
8063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8064 echo "configure:8065: checking for $ac_word" >&5
8065 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8066 echo $ac_n "(cached) $ac_c" 1>&6
8070 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8073 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8076 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8078 for ac_dir
in $ac_dummy; do
8079 test -z "$ac_dir" && ac_dir
=.
8080 if test -f $ac_dir/$ac_word; then
8081 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8086 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8090 GMSGFMT
="$ac_cv_path_GMSGFMT"
8091 if test -n "$GMSGFMT"; then
8092 echo "$ac_t""$GMSGFMT" 1>&6
8094 echo "$ac_t""no" 1>&6
8097 if test "$GMSGFMT" = "no"; then
8098 # Extract the first word of "msgfmt", so it can be a program name with args.
8099 set dummy msgfmt
; ac_word
=$2
8100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8101 echo "configure:8102: checking for $ac_word" >&5
8102 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8107 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8111 for ac_dir
in $PATH; do
8112 test -z "$ac_dir" && ac_dir
=.
8113 if test -f $ac_dir/$ac_word; then
8114 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8115 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8121 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8125 GMSGFMT
="$ac_cv_path_GMSGFMT"
8126 if test -n "$GMSGFMT"; then
8127 echo "$ac_t""$GMSGFMT" 1>&6
8129 echo "$ac_t""no" 1>&6
8133 # Extract the first word of "xgettext", so it can be a program name with args.
8134 set dummy xgettext
; ac_word
=$2
8135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8136 echo "configure:8137: checking for $ac_word" >&5
8137 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8142 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8145 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8146 for ac_dir
in $PATH; do
8147 test -z "$ac_dir" && ac_dir
=.
8148 if test -f $ac_dir/$ac_word; then
8149 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8150 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8156 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8160 XGETTEXT
="$ac_cv_path_XGETTEXT"
8161 if test -n "$XGETTEXT"; then
8162 echo "$ac_t""$XGETTEXT" 1>&6
8164 echo "$ac_t""no" 1>&6
8167 USE_INCLUDED_LIBINTL
=yes
8171 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8173 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8174 nls_cv_header_intl
=intl
/libintl.h
8175 nls_cv_header_libgt
=intl
/libgettext.h
8178 echo "$ac_t""no" 1>&6
8184 if test "$CATOBJEXT" = "NONE"; then
8185 nls_cv_use_gnu_gettext
=yes
8189 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8190 INTLOBJS
="\$(GETTOBJS)"
8191 # Extract the first word of "msgfmt", so it can be a program name with args.
8192 set dummy msgfmt
; ac_word
=$2
8193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8194 echo "configure:8195: checking for $ac_word" >&5
8195 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8196 echo $ac_n "(cached) $ac_c" 1>&6
8200 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8204 for ac_dir
in $PATH; do
8205 test -z "$ac_dir" && ac_dir
=.
8206 if test -f $ac_dir/$ac_word; then
8207 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8208 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8214 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8218 MSGFMT
="$ac_cv_path_MSGFMT"
8219 if test -n "$MSGFMT"; then
8220 echo "$ac_t""$MSGFMT" 1>&6
8222 echo "$ac_t""no" 1>&6
8225 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8226 set dummy gmsgfmt
; ac_word
=$2
8227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8228 echo "configure:8229: checking for $ac_word" >&5
8229 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8234 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8237 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8240 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8242 for ac_dir
in $ac_dummy; do
8243 test -z "$ac_dir" && ac_dir
=.
8244 if test -f $ac_dir/$ac_word; then
8245 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8250 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8254 GMSGFMT
="$ac_cv_path_GMSGFMT"
8255 if test -n "$GMSGFMT"; then
8256 echo "$ac_t""$GMSGFMT" 1>&6
8258 echo "$ac_t""no" 1>&6
8261 # Extract the first word of "xgettext", so it can be a program name with args.
8262 set dummy xgettext
; ac_word
=$2
8263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8264 echo "configure:8265: checking for $ac_word" >&5
8265 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8266 echo $ac_n "(cached) $ac_c" 1>&6
8270 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8273 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8274 for ac_dir
in $PATH; do
8275 test -z "$ac_dir" && ac_dir
=.
8276 if test -f $ac_dir/$ac_word; then
8277 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8278 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8284 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8288 XGETTEXT
="$ac_cv_path_XGETTEXT"
8289 if test -n "$XGETTEXT"; then
8290 echo "$ac_t""$XGETTEXT" 1>&6
8292 echo "$ac_t""no" 1>&6
8296 USE_INCLUDED_LIBINTL
=yes
8300 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8302 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8303 nls_cv_header_intl
=intl
/libintl.h
8304 nls_cv_header_libgt
=intl
/libgettext.h
8307 if test "$XGETTEXT" != ":"; then
8308 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8311 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8316 # We need to process the po/ directory.
8320 nls_cv_header_intl
=intl
/libintl.h
8321 nls_cv_header_libgt
=intl
/libgettext.h
8327 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8328 # because some of the sources are only built for this goal.
8329 if test "$PACKAGE" = gettext; then
8331 USE_INCLUDED_LIBINTL
=yes
8334 for lang
in $ALL_LINGUAS; do
8335 GMOFILES
="$GMOFILES $lang.gmo"
8336 POFILES
="$POFILES $lang.po"
8352 if test "x$CATOBJEXT" != "x"; then
8353 if test "x$ALL_LINGUAS" = "x"; then
8356 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8357 echo "configure:8358: checking for catalogs to be installed" >&5
8359 for lang
in $ALL_LINGUAS; do
8360 case " $LINGUAS " in
8361 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8364 LINGUAS
=$NEW_LINGUAS
8365 echo "$ac_t""$LINGUAS" 1>&6
8368 if test -n "$LINGUAS"; then
8369 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8373 if test $ac_cv_header_locale_h = yes; then
8374 INCLUDE_LOCALE_H
="#include <locale.h>"
8377 /* The system does not provide the header <locale.h>. Take care yourself. */"
8381 test -d intl || mkdir intl
8382 if test "$CATOBJEXT" = ".cat"; then
8383 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8384 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8385 echo "configure:8386: checking for linux/version.h" >&5
8386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8389 cat > conftest.
$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 #include <linux/version.h>
8394 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8395 { (eval echo configure
:8396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8396 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8397 if test -z "$ac_err"; then
8399 eval "ac_cv_header_$ac_safe=yes"
8402 echo "configure: failed program was:" >&5
8403 cat conftest.
$ac_ext >&5
8405 eval "ac_cv_header_$ac_safe=no"
8409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8413 echo "$ac_t""no" 1>&6
8418 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8420 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8421 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8423 if test "$PACKAGE" = "gettext"; then
8434 if test -n "$ac_aux_dir"; then
8435 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8437 if test -z "$MKINSTALLDIRS"; then
8438 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8445 test -d po || mkdir po
8446 if test "x$srcdir" != "x."; then
8447 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8448 posrcprefix
="$srcdir/"
8450 posrcprefix
="../$srcdir/"
8456 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8457 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8459 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8461 # Windows32 Registry support for specifying GCC installation paths.
8462 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8463 if test "${enable_win32_registry+set}" = set; then
8464 enableval
="$enable_win32_registry"
8469 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8470 echo "configure:8471: checking whether windows registry support is requested" >&5
8471 if test x
$enable_win32_registry != xno
; then
8472 cat >> confdefs.h
<<\EOF
8473 #define ENABLE_WIN32_REGISTRY 1
8476 echo "$ac_t""yes" 1>&6
8478 echo "$ac_t""no" 1>&6
8481 # Check if user specified a different registry key.
8482 case x
${enable_win32_registry} in
8485 gcc_cv_win32_registry_key
="$VERSION"
8488 # no registry lookup.
8489 gcc_cv_win32_registry_key
=''
8492 # user-specified key.
8493 gcc_cv_win32_registry_key
="$enable_win32_registry"
8497 if test x
$enable_win32_registry != xno
; then
8498 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8499 echo "configure:8500: checking registry key on windows hosts" >&5
8500 cat >> confdefs.h
<<EOF
8501 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8504 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8507 # Get an absolute path to the GCC top-level source directory
8513 # Conditionalize the makefile for this host machine.
8514 # Make-host contains the concatenation of all host makefile fragments
8515 # [there can be more than one]. This file is built by configure.frag.
8516 host_overrides
=Make-host
8517 dep_host_xmake_file
=
8518 for f
in ..
${host_xmake_file}
8520 if test -f ${srcdir}/config
/$f
8522 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8526 # Conditionalize the makefile for this target machine.
8527 # Make-target contains the concatenation of all host makefile fragments
8528 # [there can be more than one]. This file is built by configure.frag.
8529 target_overrides
=Make-target
8531 for f
in ..
${tmake_file}
8533 if test -f ${srcdir}/config
/$f
8535 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8539 # If the host doesn't support symlinks, modify CC in
8540 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8541 # Otherwise, we can use "CC=$(CC)".
8543 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8545 cc_set_by_configure
="\$(CC)"
8546 quoted_cc_set_by_configure
="\$(CC)"
8547 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8550 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8552 symbolic_link
="cp -p"
8556 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8557 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8558 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8562 out_object_file
=`basename $out_file .c`.o
8565 for f
in $tm_file; do
8568 tm_file_list
="${tm_file_list} $f" ;;
8569 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8574 for f
in $host_xm_file; do
8576 auto-host.h | gansidecl.h | hwint.h
)
8577 host_xm_file_list
="${host_xm_file_list} $f" ;;
8578 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8583 for f
in $build_xm_file; do
8585 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8586 build_xm_file_list
="${build_xm_file_list} $f" ;;
8587 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8591 # Define macro CROSS_COMPILE in compilation
8592 # if this is a cross-compiler.
8593 # Also use all.cross instead of all.internal
8594 # and add cross-make to Makefile.
8595 cross_overrides
="/dev/null"
8596 if test x
$host != x
$target
8598 cross_defines
="CROSS=-DCROSS_COMPILE"
8599 cross_overrides
="${topdir}/cross-make"
8602 # If this is a cross-compiler that does not
8603 # have its own set of headers then define
8606 # If this is using newlib, then define inhibit_libc in
8607 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8608 # libgcc.a, but that's OK because newlib should have its own version of
8611 if test x
$host != x
$target && test x
$with_headers = x
; then
8612 inhibit_libc
=-Dinhibit_libc
8614 if test x
$with_newlib = xyes
; then
8615 inhibit_libc
=-Dinhibit_libc
8620 # When building gcc with a cross-compiler, we need to fix a few things.
8621 # This must come after cross-make as we want all.build to override
8623 build_overrides
="/dev/null"
8624 if test x
$build != x
$host
8626 build_overrides
="${topdir}/build-make"
8629 # Expand extra_headers to include complete path.
8630 # This substitutes for lots of t-* files.
8632 if test "x$extra_headers" = x
8635 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8636 for file in $extra_headers;
8638 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8642 if test x
$use_collect2 = xno
; then
8646 # Add a definition of USE_COLLECT2 if system wants one.
8647 # Also tell toplev.c what to do.
8648 # This substitutes for lots of t-* files.
8649 if test x
$use_collect2 = x
8654 will_use_collect2
="collect2"
8655 maybe_use_collect2
="-DUSE_COLLECT2"
8659 # Set MD_DEPS if the real md file is in md.pre-cpp.
8660 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8661 # for line oriented comments, so we must always use a GNU cpp. If
8662 # building gcc with a cross compiler, use the cross compiler just
8663 # built. Otherwise, we can use the cpp just built.
8665 if test "x$md_cppflags" = x
8667 md_file_sub
=$srcdir/config
/$md_file
8672 # If we have gas in the build tree, make a link to it.
8673 if test -f ..
/gas
/Makefile
; then
8674 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8677 # If we have nm in the build tree, make a link to it.
8678 if test -f ..
/binutils
/Makefile
; then
8679 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8682 # If we have ld in the build tree, make a link to it.
8683 if test -f ..
/ld
/Makefile
; then
8684 # if test x$use_collect2 = x; then
8685 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8687 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8691 # Figure out what assembler alignment features are present.
8692 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8693 echo "configure:8694: checking assembler alignment features" >&5
8695 gcc_cv_as_alignment_features
=
8696 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8697 if test -x "$DEFAULT_ASSEMBLER"; then
8698 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8699 elif test -x "$AS"; then
8701 elif test -x as
$host_exeext; then
8702 # Build using assembler in the current directory.
8703 gcc_cv_as
=.
/as
$host_exeext
8704 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8705 # Single tree build which includes gas.
8706 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8708 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8709 if test x
$gcc_cv_gas_version != x
; then
8713 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8714 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8715 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8716 # Gas version 2.6 and later support for .balign and .p2align.
8717 # bytes to skip when using .p2align.
8718 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
8719 gcc_cv_as_alignment_features
=".balign and .p2align"
8720 cat >> confdefs.h
<<\EOF
8721 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8725 # Gas version 2.8 and later support specifying the maximum
8726 # bytes to skip when using .p2align.
8727 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
8728 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8729 cat >> confdefs.h
<<\EOF
8730 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8735 elif test x
$host = x
$target; then
8737 # Search the same directories that the installed compiler will
8738 # search. Else we may find the wrong assembler and lose. If we
8739 # do not find a suitable assembler binary, then try the user's
8742 # Also note we have to check MD_EXEC_PREFIX before checking the
8743 # user's path. Unfortunately, there is no good way to get at the
8744 # value of MD_EXEC_PREFIX here. So we do a brute force search
8745 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8746 # to be fixed as part of the make/configure rewrite too.
8748 if test "x$exec_prefix" = xNONE
; then
8749 if test "x$prefix" = xNONE
; then
8750 test_prefix
=/usr
/local
8755 test_prefix
=$exec_prefix
8758 # If the loop below does not find an assembler, then use whatever
8759 # one we can find in the users's path.
8763 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8764 $test_prefix/lib/gcc-lib/$target \
8765 /usr/lib/gcc/$target/$gcc_version \
8766 /usr/lib/gcc/$target \
8767 $test_prefix/$target/bin/$target/$gcc_version \
8768 $test_prefix/$target/bin \
8773 /bsd43/usr/lib/cmplrs/cc \
8774 /usr/cross64/usr/bin \
8775 /usr/lib/cmplrs/cc \
8776 /sysv/usr/lib/cmplrs/cc \
8777 /svr4/usr/lib/cmplrs/cc \
8780 for dir
in $test_dirs; do
8781 if test -f $dir/as
$host_exeext; then
8782 gcc_cv_as
=$dir/as
$host_exeext
8787 if test x
$gcc_cv_as != x
; then
8788 # Check if we have .balign and .p2align
8789 echo ".balign 4" > conftest.s
8790 echo ".p2align 2" >> conftest.s
8791 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8792 gcc_cv_as_alignment_features
=".balign and .p2align"
8793 cat >> confdefs.h
<<\EOF
8794 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8798 rm -f conftest.s conftest.o
8799 # Check if specifying the maximum bytes to skip when
8800 # using .p2align is supported.
8801 echo ".p2align 4,,7" > conftest.s
8802 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8803 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8804 cat >> confdefs.h
<<\EOF
8805 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8809 rm -f conftest.s conftest.o
8811 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8813 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8814 echo "configure:8815: checking assembler subsection support" >&5
8815 gcc_cv_as_subsections
=
8816 if test x
$gcc_cv_as != x
; then
8817 # Check if we have .subsection
8818 echo ".subsection 1" > conftest.s
8819 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8820 gcc_cv_as_subsections
=".subsection"
8821 if test -x nm
$host_exeext; then
8822 gcc_cv_nm
=.
/nm
$host_exeext
8823 elif test x
$host = x
$target; then
8825 gcc_cv_nm
=nm
$host_exeext
8827 if test x
$gcc_cv_nm != x
; then
8828 cat > conftest.s
<<EOF
8829 conftest_label1: .word 0
8831 conftest_label2: .word 0
8834 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8835 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8836 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8837 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8840 gcc_cv_as_subsections
="working .subsection -1"
8841 cat >> confdefs.h
<<\EOF
8842 #define HAVE_GAS_SUBSECTION_ORDERING 1
8849 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8851 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8853 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
8854 echo "configure:8855: checking assembler weak support" >&5
8856 if test x
$gcc_cv_as != x
; then
8857 # Check if we have .weak
8858 echo " .weak foobar" > conftest.s
8859 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8860 cat >> confdefs.h
<<\EOF
8861 #define HAVE_GAS_WEAK 1
8864 gcc_cv_as_weak
="yes"
8866 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8868 echo "$ac_t""$gcc_cv_as_weak" 1>&6
8870 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
8871 echo "configure:8872: checking assembler hidden support" >&5
8873 if test x
$gcc_cv_as != x
; then
8874 # Check if we have .hidden
8875 echo " .hidden foobar" > conftest.s
8876 echo "foobar:" >> conftest.s
8877 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8878 cat >> confdefs.h
<<\EOF
8879 #define HAVE_GAS_HIDDEN 1
8882 gcc_cv_as_hidden
="yes"
8884 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8886 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
8890 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8891 echo "configure:8892: checking assembler .register pseudo-op support" >&5
8892 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8893 echo $ac_n "(cached) $ac_c" 1>&6
8896 gcc_cv_as_register_pseudo_op
=unknown
8897 if test x
$gcc_cv_as != x
; then
8898 # Check if we have .register
8899 echo ".register %g2, #scratch" > conftest.s
8900 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8901 gcc_cv_as_register_pseudo_op
=yes
8903 gcc_cv_as_register_pseudo_op
=no
8905 rm -f conftest.s conftest.o
8910 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8911 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8912 cat >> confdefs.h
<<\EOF
8913 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8920 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8921 echo "configure:8922: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8922 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8923 echo $ac_n "(cached) $ac_c" 1>&6
8926 if test -n "$gcc_cv_as"; then
8927 echo ".xword foo" > conftest.s
8928 gcc_cv_as_flags64
=no
8929 for flag
in "-xarch=v9" "-64 -Av9"; do
8930 if $gcc_cv_as $flag -o conftest.o conftest.s \
8931 > /dev
/null
2>&1; then
8932 gcc_cv_as_flags64
=$flag
8936 rm -f conftest.s conftest.o
8938 if test "$gas" = yes; then
8939 gcc_cv_as_flags64
="-64 -Av9"
8941 gcc_cv_as_flags64
="-xarch=v9"
8947 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8948 if test "x$gcc_cv_as_flags64" = xno
; then
8950 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8951 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8954 cat >> confdefs.h
<<EOF
8955 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8960 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8964 if test "x$gcc_cv_as_flags64" != xno
; then
8965 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8966 echo "configure:8967: checking for assembler offsetable %lo() support" >&5
8967 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8968 echo $ac_n "(cached) $ac_c" 1>&6
8971 gcc_cv_as_offsetable_lo10
=unknown
8972 if test "x$gcc_cv_as" != x
; then
8973 # Check if assembler has offsetable %lo()
8974 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8975 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8976 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8978 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8979 > /dev
/null
2>&1; then
8980 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8981 gcc_cv_as_offsetable_lo10
=no
8983 gcc_cv_as_offsetable_lo10
=yes
8986 gcc_cv_as_offsetable_lo10
=no
8988 rm -f conftest.s conftest.o conftest1.s conftest1.o
8993 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8994 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8995 cat >> confdefs.h
<<\EOF
8996 #define HAVE_AS_OFFSETABLE_LO10 1
9004 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9005 echo "configure:9006: checking assembler instructions" >&5
9006 gcc_cv_as_instructions
=
9007 if test x
$gcc_cv_as != x
; then
9008 set "filds fists" "filds mem; fists mem"
9011 echo "$2" > conftest.s
9012 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9013 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9014 cat >> confdefs.h
<<EOF
9015 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
9021 rm -f conftest.s conftest.o
9023 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9027 # Figure out what language subdirectories are present.
9028 # Look if the user specified --enable-languages="..."; if not, use
9029 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9031 if test x
"${enable_languages+set}" != xset
; then
9032 if test x
"${LANGUAGES+set}" = xset
; then
9033 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9035 enable_languages
=all
9038 if test x
"${enable_languages}" = x
; then
9039 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9043 for lang
in ${srcdir}/*/config-lang.
in ..
9047 # The odd quoting in the next line works around
9048 # an apparent bug in bash 1.12 on linux.
9049 ${srcdir}/[*]/config-lang.
in) ;;
9051 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9052 if test "x$lang_alias" = x
9054 echo "$lang doesn't set \$language." 1>&2
9057 if test x
"${enable_languages}" = xall
; then
9060 case "${enable_languages}" in
9061 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9069 if test x"${add_this_lang}" = xyes; then
9071 ${srcdir}/ada/config-lang.in)
9072 if test x$gnat = xyes ; then
9073 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9077 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9085 # Make gthr-default.h if we have a thread file.
9087 if test $thread_file != single; then
9088 rm -f gthr-default.h
9089 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9090 gthread_flags
=-DHAVE_GTHR_DEFAULT
9094 # Find out what GC implementation we want, or may, use.
9095 # Check whether --with-gc or --without-gc was given.
9096 if test "${with_gc+set}" = set; then
9103 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9107 if test $ac_cv_func_mmap_anywhere = yes \
9108 ||
test $ac_cv_func_valloc = yes; then
9116 echo "Using $GGC for garbage collection."
9118 # Build a new-abi (c++) system
9119 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9120 if test "${enable_new_gxx_abi+set}" = set; then
9121 enableval
="$enable_new_gxx_abi"
9122 cat >> confdefs.h
<<\EOF
9123 #define ENABLE_NEW_GXX_ABI 1
9126 GXX_ABI_FLAG
='-fnew-abi'
9127 echo "Building a new-abi g++ compiler."
9133 # Build a new-libstdc++ system (ie libstdc++-v3)
9134 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9135 echo "configure:9136: checking for libstdc++ to install" >&5
9136 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9137 if test "${enable_libstdcxx_v3+set}" = set; then
9138 enableval
="$enable_libstdcxx_v3"
9139 enable_libstdcxx_v3
=yes
9141 enable_libstdcxx_v3
=no
9145 if test x
$enable_libstdcxx_v3 = xyes
; then
9146 echo "$ac_t""v3" 1>&6
9149 echo "$ac_t""v2" 1>&6
9152 cat >> confdefs.h
<<EOF
9153 #define ENABLE_STD_NAMESPACE $ac_esn
9158 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9159 echo "configure:9160: checking whether to enable maintainer-specific portions of Makefiles" >&5
9160 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9161 if test "${enable_maintainer_mode+set}" = set; then
9162 enableval
="$enable_maintainer_mode"
9163 maintainer_mode
=$enableval
9169 echo "$ac_t""$maintainer_mode" 1>&6
9171 if test "$maintainer_mode" = "yes"; then
9177 # Make empty files to contain the specs and options for each language.
9178 # Then add #include lines to for a compiler that has specs and/or options.
9183 rm -f specs.h options.h gencheck.h
9184 touch specs.h options.h gencheck.h
9185 for subdir
in .
$subdirs
9187 if test -f $srcdir/$subdir/lang-specs.h
; then
9188 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9189 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9191 if test -f $srcdir/$subdir/lang-options.h
; then
9192 echo "#include \"$subdir/lang-options.h\"" >>options.h
9193 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9195 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9196 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9197 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9201 # These (without "all_") are set in each config-lang.in.
9202 # `language' must be a single word so is spelled singularly.
9208 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9209 # List of language makefile fragments.
9214 # Add the language fragments.
9215 # Languages are added via two mechanisms. Some information must be
9216 # recorded in makefile variables, these are defined in config-lang.in.
9217 # We accumulate them and plug them into the main Makefile.
9218 # The other mechanism is a set of hooks for each of the main targets
9219 # like `clean', `install', etc.
9221 language_fragments
="Make-lang"
9222 language_hooks
="Make-hooks"
9225 for s
in ..
$subdirs
9237 .
${srcdir}/$s/config-lang.
in
9238 if test "x$language" = x
9240 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9243 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9244 all_languages
="$all_languages $language"
9245 if test "x$boot_language" = xyes
9247 all_boot_languages
="$all_boot_languages $language"
9249 all_compilers
="$all_compilers $compilers"
9250 all_stagestuff
="$all_stagestuff $stagestuff"
9251 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9252 all_headers
="$all_headers $headers"
9253 all_outputs
="$all_outputs $outputs"
9254 if test x
$outputs = x
9256 oldstyle_subdirs
="$oldstyle_subdirs $s"
9258 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9262 # Since we can't use `::' targets, we link each language in
9263 # with a set of hooks, reached indirectly via lang.${target}.
9267 target_list
="all.build all.cross start.encap rest.encap \
9269 install-normal install-common install-info install-man \
9271 mostlyclean clean distclean extraclean maintainer-clean \
9272 stage1 stage2 stage3 stage4"
9273 for t
in $target_list
9276 for lang
in ..
$all_languages
9278 if test $lang != ".."; then
9282 echo "lang.$t: $x" >> Make-hooks
9285 # If we're not building in srcdir, create .gdbinit.
9287 if test ! -f Makefile.
in; then
9288 echo "dir ." > .gdbinit
9289 echo "dir ${srcdir}" >> .gdbinit
9290 if test x
$gdb_needs_out_file_path = xyes
9292 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9294 if test "x$subdirs" != x
; then
9297 echo "dir ${srcdir}/$s" >> .gdbinit
9300 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9303 # Define variables host_canonical and build_canonical
9304 # because some Cygnus local changes in the Makefile depend on them.
9305 build_canonical
=${build}
9306 host_canonical
=${host}
9308 if test "${host}" != "${target}" ; then
9309 target_subdir
=${target}/
9315 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9316 # absolute path for gcc_tooldir based on inserting the number of up-directory
9317 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9318 # $(libsubdir)/@(unlibsubdir) based path.
9319 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9320 # make and thus we'd get different behavior depending on where we built the
9322 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9323 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9325 # An explanation of the sed strings:
9326 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9327 # -e 's|/$||' match a trailing forward slash and eliminates it
9328 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9329 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9331 # (*) Note this pattern overwrites the first character of the string
9332 # with a forward slash if one is not already present. This is not a
9333 # problem because the exact names of the sub-directories concerned is
9334 # unimportant, just the number of them matters.
9336 # The practical upshot of these patterns is like this:
9338 # prefix exec_prefix result
9339 # ------ ----------- ------
9341 # /foo/ /foo/bar ../
9342 # /foo /foo/bar/ ../
9343 # /foo/ /foo/bar/ ../
9344 # /foo /foo/bar/ugg ../../
9347 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9352 # Nothing to do for FLOAT_H, float_format already handled.
9356 # Process the language and host/target makefile fragments.
9357 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9359 # Substitute configuration variables
9418 # Echo that links are built
9419 if test x
$host = x
$target
9427 if test x
$host != x
$build
9429 str3
=" on a $build system"
9432 if test "x$str2" != x ||
test "x$str3" != x
9437 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9439 if test "x$str2" != x ||
test "x$str3" != x
9441 echo " ${str2}${str3}." 1>&2
9444 # Truncate the target if necessary
9445 if test x
$host_truncate_target != x
; then
9446 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9449 # Configure the subdirectories
9450 # AC_CONFIG_SUBDIRS($subdirs)
9452 # Create the Makefile
9453 # and configure language subdirectories
9455 cat > confcache
<<\EOF
9456 # This file is a shell script that caches the results of configure
9457 # tests run on this system so they can be shared between configure
9458 # scripts and configure runs. It is not useful on other systems.
9459 # If it contains results you don't want to keep, you may remove or edit it.
9461 # By default, configure uses ./config.cache as the cache file,
9462 # creating it if it does not exist already. You can give configure
9463 # the --cache-file=FILE option to use a different cache file; that is
9464 # what configure does when it calls configure scripts in
9465 # subdirectories, so they share the cache.
9466 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9467 # config.status only pays attention to the cache file if you give it the
9468 # --recheck option to rerun configure.
9471 # The following way of writing the cache mishandles newlines in values,
9472 # but we know of no workaround that is simple, portable, and efficient.
9473 # So, don't put newlines in cache variables' values.
9474 # Ultrix sh set writes to stderr and can't be redirected directly,
9475 # and sets the high bit in the cache file unless we assign to the vars.
9477 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9479 # `set' does not quote correctly, so add quotes (double-quote substitution
9480 # turns \\\\ into \\, and sed turns \\ into \).
9482 -e "s/'/'\\\\''/g" \
9483 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9486 # `set' quotes correctly as required by POSIX, so do not add quotes.
9487 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9490 if cmp -s $cache_file confcache
; then
9493 if test -w $cache_file; then
9494 echo "updating cache $cache_file"
9495 cat confcache
> $cache_file
9497 echo "not updating unwritable cache $cache_file"
9502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9504 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9505 # Let make expand exec_prefix.
9506 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9508 # Any assignment to VPATH causes Sun make to only execute
9509 # the first set of double-colon rules, so remove it if not needed.
9510 # If there is a colon in the path, we need to keep it.
9511 if test "x$srcdir" = x.
; then
9512 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9515 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9517 DEFS
=-DHAVE_CONFIG_H
9519 # Without the "./", some shells look in PATH for config.status.
9520 : ${CONFIG_STATUS=./config.status}
9522 echo creating
$CONFIG_STATUS
9523 rm -f $CONFIG_STATUS
9524 cat > $CONFIG_STATUS <<EOF
9526 # Generated automatically by configure.
9527 # Run this file to recreate the current configuration.
9528 # This directory was configured as follows,
9529 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9531 # $0 $ac_configure_args
9533 # Compiler output produced by configure, useful for debugging
9534 # configure, is in ./config.log if it exists.
9536 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9539 case "\$ac_option" in
9540 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9541 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9542 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9543 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9544 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9546 -help | --help | --hel | --he | --h)
9547 echo "\$ac_cs_usage"; exit 0 ;;
9548 *) echo "\$ac_cs_usage"; exit 1 ;;
9552 ac_given_srcdir=$srcdir
9554 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9556 cat >> $CONFIG_STATUS <<EOF
9558 # Protect against being on the right side of a sed subst in config.status.
9559 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9560 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9564 s%@CFLAGS@%$CFLAGS%g
9565 s%@CPPFLAGS@%$CPPFLAGS%g
9566 s%@CXXFLAGS@%$CXXFLAGS%g
9567 s%@FFLAGS@%$FFLAGS%g
9569 s%@LDFLAGS@%$LDFLAGS%g
9571 s%@exec_prefix@%$exec_prefix%g
9572 s%@prefix@%$prefix%g
9573 s%@program_transform_name@%$program_transform_name%g
9574 s%@bindir@%$bindir%g
9575 s%@sbindir@%$sbindir%g
9576 s%@libexecdir@%$libexecdir%g
9577 s%@datadir@%$datadir%g
9578 s%@sysconfdir@%$sysconfdir%g
9579 s%@sharedstatedir@%$sharedstatedir%g
9580 s%@localstatedir@%$localstatedir%g
9581 s%@libdir@%$libdir%g
9582 s%@includedir@%$includedir%g
9583 s%@oldincludedir@%$oldincludedir%g
9584 s%@infodir@%$infodir%g
9585 s%@mandir@%$mandir%g
9587 s%@host_alias@%$host_alias%g
9588 s%@host_cpu@%$host_cpu%g
9589 s%@host_vendor@%$host_vendor%g
9590 s%@host_os@%$host_os%g
9591 s%@target@%$target%g
9592 s%@target_alias@%$target_alias%g
9593 s%@target_cpu@%$target_cpu%g
9594 s%@target_vendor@%$target_vendor%g
9595 s%@target_os@%$target_os%g
9597 s%@build_alias@%$build_alias%g
9598 s%@build_cpu@%$build_cpu%g
9599 s%@build_vendor@%$build_vendor%g
9600 s%@build_os@%$build_os%g
9602 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9603 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9604 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9605 s%@SET_MAKE@%$SET_MAKE%g
9608 s%@LEXLIB@%$LEXLIB%g
9611 s%@RANLIB@%$RANLIB%g
9613 s%@INSTALL@%$INSTALL%g
9614 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9615 s%@INSTALL_DATA@%$INSTALL_DATA%g
9618 s%@MAKEINFO@%$MAKEINFO%g
9619 s%@BUILD_INFO@%$BUILD_INFO%g
9620 s%@INSTALL_INFO@%$INSTALL_INFO%g
9621 s%@vfprintf@%$vfprintf%g
9622 s%@doprint@%$doprint%g
9623 s%@manext@%$manext%g
9624 s%@objext@%$objext%g
9625 s%@PACKAGE@%$PACKAGE%g
9626 s%@VERSION@%$VERSION%g
9627 s%@ALLOCA@%$ALLOCA%g
9628 s%@USE_NLS@%$USE_NLS%g
9629 s%@MSGFMT@%$MSGFMT%g
9630 s%@GMSGFMT@%$GMSGFMT%g
9631 s%@XGETTEXT@%$XGETTEXT%g
9632 s%@GENCAT@%$GENCAT%g
9633 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9634 s%@CATALOGS@%$CATALOGS%g
9635 s%@CATOBJEXT@%$CATOBJEXT%g
9636 s%@DATADIRNAME@%$DATADIRNAME%g
9637 s%@GMOFILES@%$GMOFILES%g
9638 s%@INSTOBJEXT@%$INSTOBJEXT%g
9639 s%@INTLDEPS@%$INTLDEPS%g
9640 s%@INTLLIBS@%$INTLLIBS%g
9641 s%@INTLOBJS@%$INTLOBJS%g
9642 s%@POFILES@%$POFILES%g
9644 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9646 s%@GT_YES@%$GT_YES%g
9647 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9649 s%@inhibit_libc@%$inhibit_libc%g
9650 s%@gthread_flags@%$gthread_flags%g
9652 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9654 s%@build_canonical@%$build_canonical%g
9655 s%@host_canonical@%$host_canonical%g
9656 s%@target_subdir@%$target_subdir%g
9657 s%@gcc_tooldir@%$gcc_tooldir%g
9658 s%@dollar@%$dollar%g
9659 s%@objdir@%$objdir%g
9660 s%@subdirs@%$subdirs%g
9661 s%@all_boot_languages@%$all_boot_languages%g
9662 s%@all_compilers@%$all_compilers%g
9663 s%@all_diff_excludes@%$all_diff_excludes%g
9664 s%@all_headers@%$all_headers%g
9665 s%@all_lang_makefiles@%$all_lang_makefiles%g
9666 s%@all_languages@%$all_languages%g
9667 s%@all_lib2funcs@%$all_lib2funcs%g
9668 s%@all_stagestuff@%$all_stagestuff%g
9669 s%@build_exeext@%$build_exeext%g
9670 s%@build_install_headers_dir@%$build_install_headers_dir%g
9671 s%@build_xm_file_list@%$build_xm_file_list%g
9672 s%@cc_set_by_configure@%$cc_set_by_configure%g
9673 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9674 s%@cpp_install_dir@%$cpp_install_dir%g
9675 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9676 s%@dep_tmake_file@%$dep_tmake_file%g
9677 s%@extra_c_flags@%$extra_c_flags%g
9678 s%@extra_c_objs@%$extra_c_objs%g
9679 s%@extra_cpp_objs@%$extra_cpp_objs%g
9680 s%@extra_cxx_objs@%$extra_cxx_objs%g
9681 s%@extra_headers_list@%$extra_headers_list%g
9682 s%@extra_objs@%$extra_objs%g
9683 s%@extra_parts@%$extra_parts%g
9684 s%@extra_passes@%$extra_passes%g
9685 s%@extra_programs@%$extra_programs%g
9686 s%@float_h_file@%$float_h_file%g
9687 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9688 s%@gcc_version@%$gcc_version%g
9689 s%@gcc_version_trigger@%$gcc_version_trigger%g
9690 s%@host_exeext@%$host_exeext%g
9691 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9692 s%@host_xm_file_list@%$host_xm_file_list%g
9693 s%@install@%$install%g
9694 s%@lang_options_files@%$lang_options_files%g
9695 s%@lang_specs_files@%$lang_specs_files%g
9696 s%@lang_tree_files@%$lang_tree_files%g
9697 s%@local_prefix@%$local_prefix%g
9698 s%@maybe_use_collect2@%$maybe_use_collect2%g
9699 s%@md_file@%$md_file%g
9700 s%@objc_boehm_gc@%$objc_boehm_gc%g
9701 s%@out_file@%$out_file%g
9702 s%@out_object_file@%$out_object_file%g
9703 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9704 s%@symbolic_link@%$symbolic_link%g
9705 s%@thread_file@%$thread_file%g
9706 s%@tm_file_list@%$tm_file_list%g
9707 s%@will_use_collect2@%$will_use_collect2%g
9708 /@target_overrides@/r $target_overrides
9709 s%@target_overrides@%%g
9710 /@host_overrides@/r $host_overrides
9711 s%@host_overrides@%%g
9712 s%@cross_defines@%$cross_defines%g
9713 /@cross_overrides@/r $cross_overrides
9714 s%@cross_overrides@%%g
9715 /@build_overrides@/r $build_overrides
9716 s%@build_overrides@%%g
9717 /@language_fragments@/r $language_fragments
9718 s%@language_fragments@%%g
9719 /@language_hooks@/r $language_hooks
9720 s%@language_hooks@%%g
9725 cat >> $CONFIG_STATUS <<\EOF
9727 # Split the substitutions into bite-sized pieces for seds with
9728 # small command number limits, like on Digital OSF/1 and HP-UX.
9729 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9730 ac_file
=1 # Number of current file.
9731 ac_beg
=1 # First line for current file.
9732 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9735 while $ac_more_lines; do
9736 if test $ac_beg -gt 1; then
9737 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9739 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9741 if test ! -s conftest.s
$ac_file; then
9743 rm -f conftest.s
$ac_file
9745 if test -z "$ac_sed_cmds"; then
9746 ac_sed_cmds
="sed -f conftest.s$ac_file"
9748 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9750 ac_file
=`expr $ac_file + 1`
9752 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9755 if test -z "$ac_sed_cmds"; then
9760 cat >> $CONFIG_STATUS <<EOF
9762 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9764 cat >> $CONFIG_STATUS <<\EOF
9765 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9766 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9768 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9769 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9770 *) ac_file_in
="${ac_file}.in" ;;
9773 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9775 # Remove last slash and all that follows it. Not all systems have dirname.
9776 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9777 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9778 # The file is in a subdirectory.
9779 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9780 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9781 # A "../" for each directory in $ac_dir_suffix.
9782 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9784 ac_dir_suffix
= ac_dots
=
9787 case "$ac_given_srcdir" in
9789 if test -z "$ac_dots"; then top_srcdir
=.
9790 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9791 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9793 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9794 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9798 echo creating
"$ac_file"
9800 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9802 *Makefile
*) ac_comsub
="1i\\
9803 # $configure_input" ;;
9807 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9809 s%@configure_input@%$configure_input%g
9810 s%@srcdir@%$srcdir%g
9811 s%@top_srcdir@%$top_srcdir%g
9812 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9816 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9817 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9819 # ac_d sets the value in "#define NAME VALUE" lines.
9820 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9821 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9824 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9825 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9826 ac_uB
='\([ ]\)%\1#\2define\3'
9829 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9830 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9831 ac_eB
='$%\1#\2define\3'
9835 if test "${CONFIG_HEADERS+set}" != set; then
9837 cat >> $CONFIG_STATUS <<EOF
9838 CONFIG_HEADERS="auto-host.h:config.in"
9840 cat >> $CONFIG_STATUS <<\EOF
9842 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9843 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9845 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9846 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9847 *) ac_file_in
="${ac_file}.in" ;;
9850 echo creating
$ac_file
9852 rm -f conftest.frag conftest.
in conftest.out
9853 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9854 cat $ac_file_inputs > conftest.
in
9858 # Transform confdefs.h into a sed script conftest.vals that substitutes
9859 # the proper values into config.h.in to produce config.h. And first:
9860 # Protect against being on the right side of a sed subst in config.status.
9861 # Protect against being in an unquoted here document in config.status.
9863 cat > conftest.hdr
<<\EOF
9866 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9870 sed -n -f conftest.hdr confdefs.h > conftest.vals
9873 # This sed command replaces #undef with comments. This is necessary, for
9874 # example, in the case of _POSIX_SOURCE, which is predefined and required
9875 # on some systems where configure will not decide to define it.
9876 cat >> conftest.vals <<\EOF
9877 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9880 # Break up conftest.vals because some shells have a limit on
9881 # the size of here documents, and old seds have small limits too.
9886 ac_lines=`grep -c . conftest.vals
`
9887 # grep -c gives empty output for an empty file on some AIX systems.
9888 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9889 # Write a limited-size here document to conftest.frag.
9890 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9891 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9893 sed -f conftest.frag conftest.in > conftest.out
9895 mv conftest.out conftest.in
9897 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9899 mv conftest.tail conftest.vals
9903 cat >> $CONFIG_STATUS <<\EOF
9904 rm -f conftest.frag conftest.h
9905 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9906 cat conftest.in >> conftest.h
9908 if cmp -s $ac_file conftest.h 2>/dev/null; then
9909 echo "$ac_file is unchanged"
9912 # Remove last slash and all that follows it. Not all systems have dirname.
9913 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9914 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9915 # The file is in a subdirectory.
9916 test ! -d "$ac_dir" && mkdir "$ac_dir"
9919 mv conftest.h $ac_file
9925 cat >> $CONFIG_STATUS <<EOF
9926 ac_sources="$nls_cv_header_libgt"
9927 ac_dests="$nls_cv_header_intl"
9930 cat >> $CONFIG_STATUS <<\EOF
9931 srcdir=$ac_given_srcdir
9932 while test -n "$ac_sources"; do
9933 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9934 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9936 echo "linking $srcdir/$ac_source to $ac_dest"
9938 if test ! -r $srcdir/$ac_source; then
9939 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9943 # Make relative symlinks.
9944 # Remove last slash and all that follows it. Not all systems have dirname.
9945 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9946 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9947 # The dest file is in a subdirectory.
9948 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9949 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9950 # A "../" for each directory in $ac_dest_dir_suffix.
9951 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9953 ac_dest_dir_suffix= ac_dots=
9957 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9958 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9961 # Make a symlink if possible; otherwise try a hard link.
9962 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9963 ln $srcdir/$ac_source $ac_dest; then :
9965 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9969 cat >> $CONFIG_STATUS <<EOF
9975 target_alias='${target_alias}'
9977 subdirs='${subdirs}'
9978 oldstyle_subdirs='${oldstyle_subdirs}'
9979 symbolic_link='${symbolic_link}'
9980 program_transform_set='${program_transform_set}'
9981 program_transform_name='${program_transform_name}'
9982 dep_host_xmake_file='${dep_host_xmake_file}'
9983 host_xmake_file='${host_xmake_file}'
9984 dep_tmake_file='${dep_tmake_file}'
9985 tmake_file='${tmake_file}'
9986 thread_file='${thread_file}'
9987 gcc_version='${gcc_version}'
9988 gcc_version_trigger='${gcc_version_trigger}'
9989 local_prefix='${local_prefix}'
9990 build_install_headers_dir='${build_install_headers_dir}'
9991 build_exeext='${build_exeext}'
9992 host_exeext='${host_exeext}'
9993 out_file='${out_file}'
9994 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9995 SET_MAKE='${SET_MAKE}'
9996 target_list='${target_list}'
9997 target_overrides='${target_overrides}'
9998 host_overrides='${host_overrides}'
9999 cross_defines='${cross_defines}'
10000 cross_overrides='${cross_overrides}'
10001 build_overrides='${build_overrides}'
10002 cpp_install_dir='${cpp_install_dir}'
10005 cat >> $CONFIG_STATUS <<\EOF
10006 case "$CONFIG_FILES" in *po/Makefile.in*)
10007 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10010 . $srcdir/configure.lang
10011 case x$CONFIG_HEADERS in
10012 xauto-host.h:config.in)
10015 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10016 # bootstrapping and the installation procedure can still use
10017 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10018 # FLAGS_TO_PASS has been modified to solve the problem there.
10019 # This is virtually a duplicate of what happens in configure.lang; we do
10020 # an extra check to make sure this only happens if ln -s can be used.
10021 if test "$symbolic_link" = "ln -s"; then
10022 for d in .. ${subdirs} ; do
10023 if test $d != ..; then
10026 for t in stage1 stage2 stage3 stage4 include
10029 $symbolic_link ../$t $t 2>/dev/null
10035 # Avoid having to add intl to our include paths.
10036 if test -f intl/libintl.h; then
10037 echo creating libintl.h
10038 echo '#include "intl/libintl.h"' >libintl.h
10043 chmod +x $CONFIG_STATUS
10044 rm -fr confdefs* $ac_clean_files
10045 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1