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-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,rtlflag,gc,gcac;
38 default is misc,tree,gc,rtlflag"
40 --disable-cpp don't provide a user-visible C preprocessor"
42 --with-cpp-install-dir=DIR
43 install the user visible C preprocessor in DIR
44 (relative to PREFIX) as well as PREFIX/bin"
46 --enable-c-mbchar enable multibyte characters for C and C++"
48 --enable-threads enable thread usage for target GCC
49 --enable-threads=LIB use LIB thread package for target GCC"
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime"
54 --with-dwarf2 force the default debug format to be DWARF 2"
56 --disable-shared don't provide a shared libgcc"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --enable-nls use Native Language Support (default)"
62 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 --disable-nls do not use Native Language Support"
66 --with-included-gettext use the GNU gettext library included here"
68 --disable-win32-registry
69 disable lookup of installation paths in the
70 Registry on Windows hosts
71 --enable-win32-registry enable registry lookup (default)
72 --enable-win32-registry=KEY
73 use KEY instead of GCC version as the last portion
76 --with-gc={simple,page} choose the garbage collection mechanism to use
79 --with-system-zlib use installed libz"
81 --enable-maintainer-mode
82 enable make rules and dependencies not useful
83 (and sometimes confusing) to the casual installer"
85 --enable-sjlj-exceptions
86 arrange to use setjmp/longjmp exception handling"
88 --enable-version-specific-runtime-libs
89 specify that runtime libraries should be
90 installed in a compiler-specific directory"
92 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
607 symbolic_link
='ln -s'
610 # Check for bogus environment variables.
611 # Test if LIBRARY_PATH contains the notation for the current directory
612 # since this would lead to problems installing/building glibc.
613 # LIBRARY_PATH contains the current directory if one of the following
615 # - one of the terminals (":" and ";") is the first or last sign
616 # - two terminals occur directly after each other
617 # - the path contains an element with a dot in it
618 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
619 echo "configure:620: checking LIBRARY_PATH variable" >&5
620 case ${LIBRARY_PATH} in
621 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
622 library_path_setting
="contains current directory"
625 library_path_setting
="ok"
628 echo "$ac_t""$library_path_setting" 1>&6
629 if test "$library_path_setting" != "ok"; then
630 { echo "configure: error:
631 *** LIBRARY_PATH shouldn't contain the current directory when
632 *** building gcc. Please change the environment variable
633 *** and run configure again." 1>&2; exit 1; }
636 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
637 # since this would lead to problems installing/building glibc.
638 # GCC_EXEC_PREFIX contains the current directory if one of the following
640 # - one of the terminals (":" and ";") is the first or last sign
641 # - two terminals occur directly after each other
642 # - the path contains an element with a dot in it
643 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
644 echo "configure:645: checking GCC_EXEC_PREFIX variable" >&5
645 case ${GCC_EXEC_PREFIX} in
646 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
647 gcc_exec_prefix_setting
="contains current directory"
650 gcc_exec_prefix_setting
="ok"
653 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
654 if test "$gcc_exec_prefix_setting" != "ok"; then
655 { echo "configure: error:
656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
657 *** building gcc. Please change the environment variable
658 *** and run configure again." 1>&2; exit 1; }
661 # Check for additional parameters
664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
665 if test "${with_gnu_ld+set}" = set; then
666 withval
="$with_gnu_ld"
667 gnu_ld_flag
="$with_gnu_ld"
673 # With pre-defined ld
674 # Check whether --with-ld or --without-ld was given.
675 if test "${with_ld+set}" = set; then
677 DEFAULT_LINKER
="$with_ld"
680 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
681 if test ! -x "$DEFAULT_LINKER"; then
682 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
683 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
686 cat >> confdefs.h
<<EOF
687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
693 # Check whether --with-gnu-as or --without-gnu-as was given.
694 if test "${with_gnu_as+set}" = set; then
695 withval
="$with_gnu_as"
696 gas_flag
="$with_gnu_as"
702 # Check whether --with-as or --without-as was given.
703 if test "${with_as+set}" = set; then
705 DEFAULT_ASSEMBLER
="$with_as"
708 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
709 if test ! -x "$DEFAULT_ASSEMBLER"; then
710 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
711 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
714 cat >> confdefs.h
<<EOF
715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
721 # Check whether --with-stabs or --without-stabs was given.
722 if test "${with_stabs+set}" = set; then
723 withval
="$with_stabs"
731 # Check whether --with-elf or --without-elf was given.
732 if test "${with_elf+set}" = set; then
740 # Specify the local prefix
742 # Check whether --with-local-prefix or --without-local-prefix was given.
743 if test "${with_local_prefix+set}" = set; then
744 withval
="$with_local_prefix"
746 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
748 *) local_prefix
=$with_local_prefix ;;
753 # Default local prefix if it is empty
754 if test x
$local_prefix = x
; then
755 local_prefix
=/usr
/local
758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
759 # passed in by the toplevel make and thus we'd get different behavior
760 # depending on where we built the sources.
762 # Specify the g++ header file directory
763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
764 if test "${with_gxx_include_dir+set}" = set; then
765 withval
="$with_gxx_include_dir"
767 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
769 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
774 if test x
${gcc_gxx_include_dir} = x
; then
775 if test x
${enable_version_specific_runtime_libs} = xyes
; then
776 gcc_gxx_include_dir
='${libsubdir}/include/g++'
778 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
779 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
783 # Determine whether or not multilibs are enabled.
784 # Check whether --enable-multilib or --disable-multilib was given.
785 if test "${enable_multilib+set}" = set; then
786 enableval
="$enable_multilib"
794 # Enable expensive internal checks
795 # Check whether --enable-checking or --disable-checking was given.
796 if test "${enable_checking+set}" = set; then
797 enableval
="$enable_checking"
803 ac_gc_always_collect
=
804 case "${enableval}" in
805 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
806 ac_rtlflag_checking
=1 ;;
808 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
809 set fnord
$enableval; shift
814 misc
) ac_checking
=1 ;;
815 tree
) ac_tree_checking
=1 ;;
816 rtlflag
) ac_rtlflag_checking
=1 ;;
817 rtl
) ac_rtl_checking
=1 ;;
818 gc
) ac_gc_checking
=1 ;;
819 gcac
) ac_gc_always_collect
=1 ;;
820 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
827 # Enable some checks by default for development versions of GCC
828 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
831 if test x
$ac_checking != x
; then
832 cat >> confdefs.h
<<\EOF
833 #define ENABLE_CHECKING 1
837 if test x
$ac_tree_checking != x
; then
838 cat >> confdefs.h
<<\EOF
839 #define ENABLE_TREE_CHECKING 1
843 if test x
$ac_rtl_checking != x
; then
844 cat >> confdefs.h
<<\EOF
845 #define ENABLE_RTL_CHECKING 1
849 if test x
$ac_rtlflag_checking != x
; then
850 cat >> confdefs.h
<<\EOF
851 #define ENABLE_RTL_FLAG_CHECKING 1
855 if test x
$ac_gc_checking != x
; then
856 cat >> confdefs.h
<<\EOF
857 #define ENABLE_GC_CHECKING 1
861 if test x
$ac_gc_always_collect != x
; then
862 cat >> confdefs.h
<<\EOF
863 #define ENABLE_GC_ALWAYS_COLLECT 1
869 # Check whether --enable-cpp or --disable-cpp was given.
870 if test "${enable_cpp+set}" = set; then
871 enableval
="$enable_cpp"
878 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
879 if test "${with_cpp_install_dir+set}" = set; then
880 withval
="$with_cpp_install_dir"
881 if test x
$withval = xyes
; then
882 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
883 elif test x
$withval != xno
; then
884 cpp_install_dir
=$withval
889 # Enable Multibyte Characters for C/C++
890 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
891 if test "${enable_c_mbchar+set}" = set; then
892 enableval
="$enable_c_mbchar"
893 if test x
$enable_c_mbchar != xno
; then
894 cat >> confdefs.h
<<\EOF
895 #define MULTIBYTE_CHARS 1
903 # Pass with no value to take the default
904 # Pass with a value to specify a thread package
905 # Check whether --enable-threads or --disable-threads was given.
906 if test "${enable_threads+set}" = set; then
907 enableval
="$enable_threads"
914 enable_threads_flag
=$enable_threads
915 # Check if a valid thread package
916 case x
${enable_threads_flag} in
919 target_thread_file
='single'
923 target_thread_file
=''
925 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
926 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
927 target_thread_file
=$enable_threads_flag
930 echo "$enable_threads is an unknown thread package" 1>&2
935 # Check whether --enable-objc-gc or --disable-objc-gc was given.
936 if test "${enable_objc_gc+set}" = set; then
937 enableval
="$enable_objc_gc"
938 if test x
$enable_objc_gc = xno
; then
948 # Check whether --with-dwarf2 or --without-dwarf2 was given.
949 if test "${with_dwarf2+set}" = set; then
950 withval
="$with_dwarf2"
951 dwarf2
="$with_dwarf2"
957 # Check whether --enable-shared or --disable-shared was given.
958 if test "${enable_shared+set}" = set; then
959 enableval
="$enable_shared"
961 case $enable_shared in
965 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
966 for pkg
in $enableval; do
967 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
981 # Determine the host, build, and target systems
983 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
984 if test -f $ac_dir/install-sh
; then
986 ac_install_sh
="$ac_aux_dir/install-sh -c"
988 elif test -f $ac_dir/install.sh
; then
990 ac_install_sh
="$ac_aux_dir/install.sh -c"
994 if test -z "$ac_aux_dir"; then
995 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
997 ac_config_guess
=$ac_aux_dir/config.guess
998 ac_config_sub
=$ac_aux_dir/config.sub
999 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1002 # Do some error checking and defaulting for the host and target type.
1004 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1007 # 1. You are not allowed to specify --host, --target, and nonopt at the
1009 # 2. Host defaults to nonopt.
1010 # 3. If nonopt is not specified, then host defaults to the current host,
1011 # as determined by config.guess.
1012 # 4. Target and build default to nonopt.
1013 # 5. If nonopt is not specified, then target and build default to host.
1015 # The aliases save the names the user supplied, while $host etc.
1016 # will get canonicalized.
1017 case $host---$target---$nonopt in
1018 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1019 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1023 # Make sure we can run config.sub.
1024 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1025 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1028 echo $ac_n "checking host system type""... $ac_c" 1>&6
1029 echo "configure:1030: checking host system type" >&5
1032 case "$host_alias" in
1036 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1037 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1039 *) host_alias
=$nonopt ;;
1043 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1044 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1045 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1046 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$ac_t""$host" 1>&6
1049 echo $ac_n "checking target system type""... $ac_c" 1>&6
1050 echo "configure:1051: checking target system type" >&5
1052 target_alias
=$target
1053 case "$target_alias" in
1056 NONE
) target_alias
=$host_alias ;;
1057 *) target_alias
=$nonopt ;;
1061 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1062 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1065 echo "$ac_t""$target" 1>&6
1067 echo $ac_n "checking build system type""... $ac_c" 1>&6
1068 echo "configure:1069: checking build system type" >&5
1071 case "$build_alias" in
1074 NONE
) build_alias
=$host_alias ;;
1075 *) build_alias
=$nonopt ;;
1079 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1080 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1081 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1082 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1083 echo "$ac_t""$build" 1>&6
1085 test "$host_alias" != "$target_alias" &&
1086 test "$program_prefix$program_suffix$program_transform_name" = \
1088 program_prefix
=${target_alias}-
1091 # Set program_transform_name
1092 if test "$program_transform_name" = s
,x
,x
,; then
1093 program_transform_name
=
1095 # Double any \ or $. echo might interpret backslashes.
1096 cat <<\EOF_SED
> conftestsed
1097 s
,\\,\\\\,g
; s
,\$
,$$
,g
1099 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1102 test "$program_prefix" != NONE
&&
1103 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1104 # Use a double $ so make ignores it.
1105 test "$program_suffix" != NONE
&&
1106 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1108 # sed with no file args requires a program.
1109 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1112 # Find the native compiler
1113 # Extract the first word of "gcc", so it can be a program name with args.
1114 set dummy gcc
; ac_word
=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC
="$CC" # Let the user override the test.
1123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1125 for ac_dir
in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir
=.
1127 if test -f $ac_dir/$ac_word; then
1136 if test -n "$CC"; then
1137 echo "$ac_t""$CC" 1>&6
1139 echo "$ac_t""no" 1>&6
1142 if test -z "$CC"; then
1143 # Extract the first word of "cc", so it can be a program name with args.
1144 set dummy cc
; ac_word
=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$CC"; then
1151 ac_cv_prog_CC
="$CC" # Let the user override the test.
1153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1156 for ac_dir
in $ac_dummy; do
1157 test -z "$ac_dir" && ac_dir
=.
1158 if test -f $ac_dir/$ac_word; then
1159 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1160 ac_prog_rejected
=yes
1168 if test $ac_prog_rejected = yes; then
1169 # We found a bogon in the path, so make sure we never use it.
1170 set dummy
$ac_cv_prog_CC
1172 if test $# -gt 0; then
1173 # We chose a different compiler from the bogus one.
1174 # However, it has the same basename, so the bogon will be chosen
1175 # first if we set CC to just the basename; use the full file name.
1177 set dummy
"$ac_dir/$ac_word" "$@"
1185 if test -n "$CC"; then
1186 echo "$ac_t""$CC" 1>&6
1188 echo "$ac_t""no" 1>&6
1191 if test -z "$CC"; then
1192 case "`uname -s`" in
1194 # Extract the first word of "cl", so it can be a program name with args.
1195 set dummy cl
; ac_word
=$2
1196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197 echo "configure:1198: checking for $ac_word" >&5
1198 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 if test -n "$CC"; then
1202 ac_cv_prog_CC
="$CC" # Let the user override the test.
1204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1206 for ac_dir
in $ac_dummy; do
1207 test -z "$ac_dir" && ac_dir
=.
1208 if test -f $ac_dir/$ac_word; then
1217 if test -n "$CC"; then
1218 echo "$ac_t""$CC" 1>&6
1220 echo "$ac_t""no" 1>&6
1225 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1228 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1232 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1233 ac_cpp
='$CPP $CPPFLAGS'
1234 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1235 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1236 cross_compiling
=$ac_cv_prog_cc_cross
1238 cat > conftest.
$ac_ext << EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1245 if { (eval echo configure
:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1246 ac_cv_prog_cc_works
=yes
1247 # If we can't run a trivial program, we are probably using a cross compiler.
1248 if (.
/conftest
; exit) 2>/dev
/null
; then
1249 ac_cv_prog_cc_cross
=no
1251 ac_cv_prog_cc_cross
=yes
1254 echo "configure: failed program was:" >&5
1255 cat conftest.
$ac_ext >&5
1256 ac_cv_prog_cc_works
=no
1260 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1261 ac_cpp
='$CPP $CPPFLAGS'
1262 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1263 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1264 cross_compiling
=$ac_cv_prog_cc_cross
1266 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1267 if test $ac_cv_prog_cc_works = no
; then
1268 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1270 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1271 echo "configure:1272: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1272 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1273 cross_compiling
=$ac_cv_prog_cc_cross
1275 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether we are using GNU C" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 cat > conftest.c
<<EOF
1285 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1292 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1294 if test $ac_cv_prog_gcc = yes; then
1300 ac_test_CFLAGS
="${CFLAGS+set}"
1301 ac_save_CFLAGS
="$CFLAGS"
1303 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1304 echo "configure:1305: checking whether ${CC-cc} accepts -g" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 echo 'void f(){}' > conftest.c
1309 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1318 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1319 if test "$ac_test_CFLAGS" = set; then
1320 CFLAGS
="$ac_save_CFLAGS"
1321 elif test $ac_cv_prog_cc_g = yes; then
1322 if test "$GCC" = yes; then
1328 if test "$GCC" = yes; then
1335 if test "x$CC" != xcc
; then
1336 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1337 echo "configure:1338: checking whether $CC and cc understand -c and -o together" >&5
1339 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1340 echo "configure:1341: checking whether cc understands -c and -o together" >&5
1342 set dummy
$CC; ac_cc
="`echo $2 |
1343 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1344 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 echo 'foo(){}' > conftest.c
1348 # Make sure it works both with $CC and with simple cc.
1349 # We do the test twice because some compilers refuse to overwrite an
1350 # existing .o file with -o, though they will create one.
1351 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1352 if { (eval echo configure
:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1353 test -f conftest.o
&& { (eval echo configure
:1354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1355 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1356 if test "x$CC" != xcc
; then
1357 # Test first that cc exists at all.
1358 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1359 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1360 if { (eval echo configure
:1361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1361 test -f conftest.o
&& { (eval echo configure
:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1366 # cc exists but doesn't like -o.
1367 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1372 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1377 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1378 echo "$ac_t""yes" 1>&6
1380 echo "$ac_t""no" 1>&6
1381 cat >> confdefs.h
<<\EOF
1382 #define NO_MINUS_C_MINUS_O 1
1387 # autoconf is lame and doesn't give us any substitution variable for this.
1388 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1389 NO_MINUS_C_MINUS_O
=yes
1391 OUTPUT_OPTION
='-o $@'
1396 # See if GNAT has been installed
1397 if test $host != $build; then
1398 ac_tool_prefix
=${host_alias}-
1404 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1405 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1407 echo "configure:1408: checking for $ac_word" >&5
1408 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 if test -n "$GNATBIND"; then
1412 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1414 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1416 for ac_dir
in $ac_dummy; do
1417 test -z "$ac_dir" && ac_dir
=.
1418 if test -f $ac_dir/$ac_word; then
1419 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1426 GNATBIND
="$ac_cv_prog_GNATBIND"
1427 if test -n "$GNATBIND"; then
1428 echo "$ac_t""$GNATBIND" 1>&6
1430 echo "$ac_t""no" 1>&6
1434 if test -z "$ac_cv_prog_GNATBIND"; then
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "gnatbind", so it can be a program name with args.
1437 set dummy gnatbind
; ac_word
=$2
1438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1439 echo "configure:1440: checking for $ac_word" >&5
1440 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 if test -n "$GNATBIND"; then
1444 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1446 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1448 for ac_dir
in $ac_dummy; do
1449 test -z "$ac_dir" && ac_dir
=.
1450 if test -f $ac_dir/$ac_word; then
1451 ac_cv_prog_GNATBIND
="gnatbind"
1456 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1459 GNATBIND
="$ac_cv_prog_GNATBIND"
1460 if test -n "$GNATBIND"; then
1461 echo "$ac_t""$GNATBIND" 1>&6
1463 echo "$ac_t""no" 1>&6
1471 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1472 echo "configure:1473: checking for compiler driver that understands Ada" >&5
1473 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 cat >conftest.adb
<<EOF
1477 procedure conftest is begin null; end conftest;
1480 # Have to do ac_tool_prefix and user overrides by hand.
1483 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
1484 ${ac_tool_prefix}$user_cc $user_cc \
1485 ${ac_tool_prefix}gcc gcc \
1486 ${ac_tool_prefix}cc cc \
1487 ${ac_tool_prefix}gnatgcc gnatgcc \
1488 ${ac_tool_prefix}gnatcc gnatcc \
1489 ${ac_tool_prefix}adagcc adagcc \
1490 ${ac_tool_prefix}adacc adacc
; do
1491 # There is a bug in all released versions of GCC which causes the
1492 # driver to exit successfully when the appropriate language module
1493 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1494 # Therefore we must check for the error message as well as an
1495 # unsuccessful exit.
1496 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1497 if test x
"$errors" = x
; then
1498 gcc_cv_prog_adac
=$cand
1505 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1506 ADAC
=$gcc_cv_prog_adac
1509 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1516 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1517 echo "configure:1518: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1518 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 save_CFLAGS
="$CFLAGS"
1522 CFLAGS
="-Wno-long-long"
1523 cat > conftest.
$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1531 if { (eval echo configure
:1532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1533 ac_cv_prog_cc_no_long_long
=yes
1535 echo "configure: failed program was:" >&5
1536 cat conftest.
$ac_ext >&5
1538 ac_cv_prog_cc_no_long_long
=no
1541 CFLAGS
="$save_CFLAGS"
1544 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1546 if test x
$have_gnat != xno
; then
1547 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1548 echo "configure:1549: checking whether ${ADAC} accepts -Wno-long-long" >&5
1549 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 cat >conftest.adb
<<EOF
1553 procedure conftest is begin null; end conftest;
1555 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1556 ac_cv_prog_adac_no_long_long
=yes
1558 ac_cv_prog_adac_no_long_long
=no
1563 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1565 ac_cv_prog_adac_no_long_long
=yes
1569 if test $ac_cv_prog_cc_no_long_long = yes && \
1570 test $ac_cv_prog_adac_no_long_long = yes ; then
1571 strict1_warn
="-pedantic -Wno-long-long"
1575 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1576 echo "configure:1577: checking how to run the C preprocessor" >&5
1577 # On Suns, sometimes $CPP names a directory.
1578 if test -n "$CPP" && test -d "$CPP"; then
1581 if test -z "$CPP"; then
1582 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 # This must be in double quotes, not single quotes, because CPP may get
1586 # substituted into the Makefile and "${CC-cc}" will confuse make.
1588 # On the NeXT, cc -E runs the code through the compiler's parser,
1589 # not just through cpp.
1590 cat > conftest.
$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1596 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1597 { (eval echo configure
:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1598 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1599 if test -z "$ac_err"; then
1603 echo "configure: failed program was:" >&5
1604 cat conftest.
$ac_ext >&5
1606 CPP
="${CC-cc} -E -traditional-cpp"
1607 cat > conftest.
$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1613 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1614 { (eval echo configure
:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1615 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1616 if test -z "$ac_err"; then
1620 echo "configure: failed program was:" >&5
1621 cat conftest.
$ac_ext >&5
1623 CPP
="${CC-cc} -nologo -E"
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1631 { (eval echo configure
:1632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1633 if test -z "$ac_err"; then
1637 echo "configure: failed program was:" >&5
1638 cat conftest.
$ac_ext >&5
1647 ac_cv_prog_CPP
="$CPP"
1649 CPP
="$ac_cv_prog_CPP"
1651 ac_cv_prog_CPP
="$CPP"
1653 echo "$ac_t""$CPP" 1>&6
1655 echo $ac_n "checking for inline""... $ac_c" 1>&6
1656 echo "configure:1657: checking for inline" >&5
1657 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1661 for ac_kw
in inline __inline__ __inline
; do
1662 cat > conftest.
$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1670 if { (eval echo configure
:1671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1672 ac_cv_c_inline
=$ac_kw; break
1674 echo "configure: failed program was:" >&5
1675 cat conftest.
$ac_ext >&5
1682 echo "$ac_t""$ac_cv_c_inline" 1>&6
1683 case "$ac_cv_c_inline" in
1685 no
) cat >> confdefs.h
<<\EOF
1689 *) cat >> confdefs.h
<<EOF
1690 #define inline $ac_cv_c_inline
1695 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1696 echo "configure:1697: checking for volatile" >&5
1697 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 cat > conftest.
$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1708 if { (eval echo configure
:1709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1710 gcc_cv_c_volatile
=yes
1712 echo "configure: failed program was:" >&5
1713 cat conftest.
$ac_ext >&5
1715 gcc_cv_c_volatile
=no
1720 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1721 if test $gcc_cv_c_volatile = yes ; then
1722 cat >> confdefs.h
<<\EOF
1723 #define HAVE_VOLATILE 1
1729 echo $ac_n "checking for long double""... $ac_c" 1>&6
1730 echo "configure:1731: checking for long double" >&5
1731 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 if test "$GCC" = yes; then
1735 gcc_cv_c_long_double
=yes
1737 cat > conftest.
$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1742 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1743 long double foo = 0.0;
1744 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1745 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1748 if { (eval echo configure
:1749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1750 gcc_cv_c_long_double
=yes
1752 echo "configure: failed program was:" >&5
1753 cat conftest.
$ac_ext >&5
1755 gcc_cv_c_long_double
=no
1761 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1762 if test $gcc_cv_c_long_double = yes; then
1763 cat >> confdefs.h
<<\EOF
1764 #define HAVE_LONG_DOUBLE 1
1769 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1770 echo "configure:1771: checking for long long int" >&5
1771 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.
$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1782 if { (eval echo configure
:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1784 ac_cv_c_long_long
=yes
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1789 ac_cv_c_long_long
=no
1794 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1795 if test $ac_cv_c_long_long = yes; then
1796 cat >> confdefs.h
<<\EOF
1797 #define HAVE_LONG_LONG 1
1801 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1802 echo "configure:1803: checking for __int64" >&5
1803 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 cat > conftest.
$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1814 if { (eval echo configure
:1815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1818 echo "configure: failed program was:" >&5
1819 cat conftest.
$ac_ext >&5
1826 echo "$ac_t""$ac_cv_c___int64" 1>&6
1827 if test $ac_cv_c___int64 = yes; then
1828 cat >> confdefs.h
<<\EOF
1829 #define HAVE___INT64 1
1834 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1835 echo "configure:1836: checking for built-in _Bool" >&5
1836 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 cat > conftest.
$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1847 if { (eval echo configure
:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1851 echo "configure: failed program was:" >&5
1852 cat conftest.
$ac_ext >&5
1860 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1861 if test $gcc_cv_c__bool = yes; then
1862 cat >> confdefs.h
<<\EOF
1863 #define HAVE__BOOL 1
1869 # sizeof(char) is 1 by definition.
1870 echo $ac_n "checking size of short""... $ac_c" 1>&6
1871 echo "configure:1872: checking size of short" >&5
1872 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1876 cat > conftest.
$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 #include "confdefs.h"
1880 #include <sys/types.h>
1884 switch (0) case 0: case (sizeof (short) == $ac_size):;
1887 if { (eval echo configure
:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1889 ac_cv_sizeof_short
=$ac_size
1891 echo "configure: failed program was:" >&5
1892 cat conftest.
$ac_ext >&5
1895 if test x
$ac_cv_sizeof_short != x
; then break; fi
1900 if test x
$ac_cv_sizeof_short = x
; then
1901 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1903 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1904 cat >> confdefs.h
<<EOF
1905 #define SIZEOF_SHORT $ac_cv_sizeof_short
1909 echo $ac_n "checking size of int""... $ac_c" 1>&6
1910 echo "configure:1911: checking size of int" >&5
1911 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1915 cat > conftest.
$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include "confdefs.h"
1919 #include <sys/types.h>
1923 switch (0) case 0: case (sizeof (int) == $ac_size):;
1926 if { (eval echo configure
:1927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1928 ac_cv_sizeof_int
=$ac_size
1930 echo "configure: failed program was:" >&5
1931 cat conftest.
$ac_ext >&5
1934 if test x
$ac_cv_sizeof_int != x
; then break; fi
1939 if test x
$ac_cv_sizeof_int = x
; then
1940 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1942 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1943 cat >> confdefs.h
<<EOF
1944 #define SIZEOF_INT $ac_cv_sizeof_int
1948 echo $ac_n "checking size of long""... $ac_c" 1>&6
1949 echo "configure:1950: checking size of long" >&5
1950 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1954 cat > conftest.
$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1957 #include "confdefs.h"
1958 #include <sys/types.h>
1962 switch (0) case 0: case (sizeof (long) == $ac_size):;
1965 if { (eval echo configure
:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1967 ac_cv_sizeof_long
=$ac_size
1969 echo "configure: failed program was:" >&5
1970 cat conftest.
$ac_ext >&5
1973 if test x
$ac_cv_sizeof_long != x
; then break; fi
1978 if test x
$ac_cv_sizeof_long = x
; then
1979 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1981 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1982 cat >> confdefs.h
<<EOF
1983 #define SIZEOF_LONG $ac_cv_sizeof_long
1987 if test $ac_cv_c_long_long = yes; then
1988 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1989 echo "configure:1990: checking size of long long" >&5
1990 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 #include "confdefs.h"
1998 #include <sys/types.h>
2002 switch (0) case 0: case (sizeof (long long) == $ac_size):;
2005 if { (eval echo configure
:2006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2007 ac_cv_sizeof_long_long
=$ac_size
2009 echo "configure: failed program was:" >&5
2010 cat conftest.
$ac_ext >&5
2013 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2018 if test x
$ac_cv_sizeof_long_long = x
; then
2019 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2021 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2022 cat >> confdefs.h
<<EOF
2023 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2028 if test $ac_cv_c___int64 = yes; then
2029 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
2030 echo "configure:2031: checking size of __int64" >&5
2031 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2035 cat > conftest.
$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 #include "confdefs.h"
2039 #include <sys/types.h>
2043 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
2046 if { (eval echo configure
:2047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2048 ac_cv_sizeof___int64
=$ac_size
2050 echo "configure: failed program was:" >&5
2051 cat conftest.
$ac_ext >&5
2054 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
2059 if test x
$ac_cv_sizeof___int64 = x
; then
2060 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
2062 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
2063 cat >> confdefs.h
<<EOF
2064 #define SIZEOF___INT64 $ac_cv_sizeof___int64
2070 echo $ac_n "checking execution character set""... $ac_c" 1>&6
2071 echo "configure:2072: checking execution character set" >&5
2072 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2079 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2084 egrep "ASCII" >/dev
/null
2>&1; then
2086 ac_cv_c_charset
=ASCII
2090 if test x
${ac_cv_c_charset+set} != xset
; then
2091 cat > conftest.
$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2094 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2095 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2100 egrep "EBCDIC" >/dev
/null
2>&1; then
2102 ac_cv_c_charset
=EBCDIC
2107 if test x
${ac_cv_c_charset+set} != xset
; then
2108 ac_cv_c_charset
=unknown
2112 echo "$ac_t""$ac_cv_c_charset" 1>&6
2113 if test $ac_cv_c_charset = unknown
; then
2114 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
2115 elif test $ac_cv_c_charset = EBCDIC
; then
2116 cat >> confdefs.h
<<\EOF
2117 #define HOST_EBCDIC 1
2122 # If the native compiler is GCC, we can enable warnings even in stage1.
2123 # That's useful for people building cross-compilers, or just running a
2126 if test "x$GCC" = "xyes"; then
2127 warn_cflags
='$(GCC_WARN_CFLAGS)'
2131 # Stage specific cflags for build.
2135 if test x
$GCC = xyes
2137 stage1_cflags
="-Wa,-J"
2143 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
2144 # sources; use -no-cpp-precomp to get to GNU cpp.
2145 # Apple's GCC has bugs in designated initializer handling, so disable
2147 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
2152 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2153 echo "configure:2154: checking whether ${MAKE-make} sets \${MAKE}" >&5
2154 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2155 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 cat > conftestmake
<<\EOF
2160 @
echo 'ac_maketemp="${MAKE}"'
2162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2163 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2164 if test -n "$ac_maketemp"; then
2165 eval ac_cv_prog_make_
${ac_make}_set
=yes
2167 eval ac_cv_prog_make_
${ac_make}_set
=no
2171 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2175 echo "$ac_t""no" 1>&6
2176 SET_MAKE
="MAKE=${MAKE-make}"
2180 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether a default assembler was specified" >&5
2182 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2183 if test x
"$gas_flag" = x
"no"; then
2184 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2186 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2189 echo "$ac_t""no" 1>&6
2192 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2193 echo "configure:2194: checking whether a default linker was specified" >&5
2194 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2195 if test x
"$gnu_ld_flag" = x
"no"; then
2196 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2198 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2201 echo "$ac_t""no" 1>&6
2204 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2205 echo "configure:2206: checking for GNU C library" >&5
2206 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.
$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2212 #include <features.h>
2215 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2216 #error Not a GNU C library system
2220 if { (eval echo configure
:2221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2224 echo "configure: failed program was:" >&5
2225 cat conftest.
$ac_ext >&5
2232 echo "$ac_t""$gcc_cv_glibc" 1>&6
2233 if test $gcc_cv_glibc = yes; then
2234 cat >> confdefs.h
<<\EOF
2235 #define _GNU_SOURCE 1
2240 # Find some useful tools
2241 for ac_prog
in mawk gawk nawk
awk
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy
$ac_prog; ac_word
=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 if test -n "$AWK"; then
2251 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2253 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2255 for ac_dir
in $ac_dummy; do
2256 test -z "$ac_dir" && ac_dir
=.
2257 if test -f $ac_dir/$ac_word; then
2258 ac_cv_prog_AWK
="$ac_prog"
2265 AWK
="$ac_cv_prog_AWK"
2266 if test -n "$AWK"; then
2267 echo "$ac_t""$AWK" 1>&6
2269 echo "$ac_t""no" 1>&6
2272 test -n "$AWK" && break
2275 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2276 echo "configure:2277: checking whether ln works" >&5
2277 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 rm -f conftestdata_t
2281 echo >conftestdata_f
2282 if ln conftestdata_f conftestdata_t
2>/dev
/null
2286 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2288 gcc_cv_prog_LN
="ln -s"
2293 rm -f conftestdata_f conftestdata_t
2296 LN
="$gcc_cv_prog_LN"
2297 if test "$gcc_cv_prog_LN" = "ln"; then
2298 echo "$ac_t""yes" 1>&6
2300 if test "$gcc_cv_prog_LN" = "ln -s"; then
2301 echo "$ac_t""no, using ln -s" 1>&6
2303 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2307 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2308 echo "configure:2309: checking whether ln -s works" >&5
2309 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 rm -f conftestdata_t
2313 echo >conftestdata_f
2314 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2316 gcc_cv_prog_LN_S
="ln -s"
2318 if ln conftestdata_f conftestdata_t
2>/dev
/null
2325 rm -f conftestdata_f conftestdata_t
2328 LN_S
="$gcc_cv_prog_LN_S"
2329 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2330 echo "$ac_t""yes" 1>&6
2332 if test "$gcc_cv_prog_LN_S" = "ln"; then
2333 echo "$ac_t""no, using ln" 1>&6
2335 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2339 # Extract the first word of "ranlib", so it can be a program name with args.
2340 set dummy ranlib
; ac_word
=$2
2341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_word" >&5
2343 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 if test -n "$RANLIB"; then
2347 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2349 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2351 for ac_dir
in $ac_dummy; do
2352 test -z "$ac_dir" && ac_dir
=.
2353 if test -f $ac_dir/$ac_word; then
2354 ac_cv_prog_RANLIB
="ranlib"
2359 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2362 RANLIB
="$ac_cv_prog_RANLIB"
2363 if test -n "$RANLIB"; then
2364 echo "$ac_t""$RANLIB" 1>&6
2366 echo "$ac_t""no" 1>&6
2369 # Find a good install program. We prefer a C program (faster),
2370 # so one script is as good as another. But avoid the broken or
2371 # incompatible versions:
2372 # SysV /etc/install, /usr/sbin/install
2373 # SunOS /usr/etc/install
2374 # IRIX /sbin/install
2376 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2377 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2378 # ./install, which can be erroneously created by make from ./install.sh.
2379 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2380 echo "configure:2381: checking for a BSD compatible install" >&5
2381 if test -z "$INSTALL"; then
2382 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2386 for ac_dir
in $PATH; do
2387 # Account for people who put trailing slashes in PATH elements.
2389 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2391 # OSF1 and SCO ODT 3.0 have their own names for install.
2392 for ac_prog
in ginstall scoinst
install; do
2393 if test -f $ac_dir/$ac_prog; then
2394 if test $ac_prog = install &&
2395 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2396 # AIX install. It has an incompatible calling convention.
2397 # OSF/1 installbsd also uses dspmsg, but is usable.
2400 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2411 if test "${ac_cv_path_install+set}" = set; then
2412 INSTALL
="$ac_cv_path_install"
2414 # As a last resort, use the slow shell script. We don't cache a
2415 # path for INSTALL within a source directory, because that will
2416 # break other packages using the cache if that directory is
2417 # removed, or if the path is relative.
2418 INSTALL
="$ac_install_sh"
2421 echo "$ac_t""$INSTALL" 1>&6
2423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2424 # It thinks the first close brace ends the variable substitution.
2425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2427 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2430 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2431 echo "configure:2432: checking for ANSI C header files" >&5
2432 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.
$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2443 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2444 { (eval echo configure
:2445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2445 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2446 if test -z "$ac_err"; then
2448 ac_cv_header_stdc
=yes
2451 echo "configure: failed program was:" >&5
2452 cat conftest.
$ac_ext >&5
2454 ac_cv_header_stdc
=no
2458 if test $ac_cv_header_stdc = yes; then
2459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2460 cat > conftest.
$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2466 egrep "memchr" >/dev
/null
2>&1; then
2470 ac_cv_header_stdc
=no
2476 if test $ac_cv_header_stdc = yes; then
2477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2484 egrep "free" >/dev
/null
2>&1; then
2488 ac_cv_header_stdc
=no
2494 if test $ac_cv_header_stdc = yes; then
2495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2496 if test "$cross_compiling" = yes; then
2499 cat > conftest.
$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2503 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2504 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2506 int main () { int i; for (i = 0; i < 256; i++)
2507 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2511 if { (eval echo configure
:2512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2515 echo "configure: failed program was:" >&5
2516 cat conftest.
$ac_ext >&5
2518 ac_cv_header_stdc
=no
2526 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2527 if test $ac_cv_header_stdc = yes; then
2528 cat >> confdefs.h
<<\EOF
2529 #define STDC_HEADERS 1
2534 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2535 echo "configure:2536: checking whether time.h and sys/time.h may both be included" >&5
2536 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 cat > conftest.
$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2542 #include <sys/types.h>
2543 #include <sys/time.h>
2549 if { (eval echo configure
:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2551 ac_cv_header_time
=yes
2553 echo "configure: failed program was:" >&5
2554 cat conftest.
$ac_ext >&5
2556 ac_cv_header_time
=no
2561 echo "$ac_t""$ac_cv_header_time" 1>&6
2562 if test $ac_cv_header_time = yes; then
2563 cat >> confdefs.h
<<\EOF
2564 #define TIME_WITH_SYS_TIME 1
2569 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2570 echo "configure:2571: checking for working stdbool.h" >&5
2571 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.
$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <stdbool.h>
2582 if { (eval echo configure
:2583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2584 ac_cv_header_stdbool_h
=yes
2586 echo "configure: failed program was:" >&5
2587 cat conftest.
$ac_ext >&5
2589 ac_cv_header_stdbool_h
=no
2594 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2595 if test $ac_cv_header_stdbool_h = yes; then
2596 cat >> confdefs.h
<<\EOF
2597 #define HAVE_STDBOOL_H 1
2602 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2603 echo "configure:2604: checking whether string.h and strings.h may both be included" >&5
2604 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2611 #include <strings.h>
2616 if { (eval echo configure
:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2618 gcc_cv_header_string
=yes
2620 echo "configure: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2623 gcc_cv_header_string
=no
2628 echo "$ac_t""$gcc_cv_header_string" 1>&6
2629 if test $gcc_cv_header_string = yes; then
2630 cat >> confdefs.h
<<\EOF
2631 #define STRING_WITH_STRINGS 1
2636 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2637 echo "configure:2638: checking for sys/wait.h that is POSIX.1 compatible" >&5
2638 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 #include <sys/types.h>
2645 #include <sys/wait.h>
2647 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2650 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2655 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2658 if { (eval echo configure
:2659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2660 ac_cv_header_sys_wait_h
=yes
2662 echo "configure: failed program was:" >&5
2663 cat conftest.
$ac_ext >&5
2665 ac_cv_header_sys_wait_h
=no
2670 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2671 if test $ac_cv_header_sys_wait_h = yes; then
2672 cat >> confdefs.h
<<\EOF
2673 #define HAVE_SYS_WAIT_H 1
2678 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2679 fcntl.h unistd.h sys
/file.h sys
/time.h \
2680 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2681 direct.h malloc.h langinfo.h
2683 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_hdr" >&5
2686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 cat > conftest.
$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2694 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2695 { (eval echo configure
:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2696 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2697 if test -z "$ac_err"; then
2699 eval "ac_cv_header_$ac_safe=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.
$ac_ext >&5
2705 eval "ac_cv_header_$ac_safe=no"
2709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2710 echo "$ac_t""yes" 1>&6
2711 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2712 cat >> confdefs.h
<<EOF
2713 #define $ac_tr_hdr 1
2717 echo "$ac_t""no" 1>&6
2722 # Check for thread headers.
2723 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2724 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2725 echo "configure:2726: checking for thread.h" >&5
2726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.
$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2734 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2735 { (eval echo configure
:2736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2736 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2737 if test -z "$ac_err"; then
2739 eval "ac_cv_header_$ac_safe=yes"
2742 echo "configure: failed program was:" >&5
2743 cat conftest.
$ac_ext >&5
2745 eval "ac_cv_header_$ac_safe=no"
2749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2753 echo "$ac_t""no" 1>&6
2757 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2758 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2759 echo "configure:2760: checking for pthread.h" >&5
2760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 cat > conftest.
$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2766 #include <pthread.h>
2768 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2769 { (eval echo configure
:2770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2770 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2771 if test -z "$ac_err"; then
2773 eval "ac_cv_header_$ac_safe=yes"
2776 echo "configure: failed program was:" >&5
2777 cat conftest.
$ac_ext >&5
2779 eval "ac_cv_header_$ac_safe=no"
2783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2784 echo "$ac_t""yes" 1>&6
2787 echo "$ac_t""no" 1>&6
2792 # These tests can't be done till we know if we have limits.h.
2793 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2794 echo "configure:2795: checking for CHAR_BIT" >&5
2795 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 cat > conftest.
$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801 #ifdef HAVE_LIMITS_H
2808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2809 egrep "found" >/dev
/null
2>&1; then
2811 gcc_cv_decl_char_bit
=yes
2814 gcc_cv_decl_char_bit
=no
2821 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2822 if test $gcc_cv_decl_char_bit = no
; then
2823 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2824 echo "configure:2825: checking number of bits in a byte" >&5
2825 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2830 while test $i -lt 65; do
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2837 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2838 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2842 if { (eval echo configure
:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2844 gcc_cv_c_nbby
=$i; break
2846 echo "configure: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2852 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2856 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2857 if test $gcc_cv_c_nbby = failed
; then
2858 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2860 cat >> confdefs.h
<<EOF
2861 #define CHAR_BIT $gcc_cv_c_nbby
2866 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2867 echo "configure:2868: checking byte ordering" >&5
2868 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 ac_cv_c_compile_endian
=unknown
2874 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2875 ac_cpp
='$CPP $CPPFLAGS'
2876 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2877 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2878 cross_compiling
=$ac_cv_prog_cc_cross
2880 cat > conftest.
$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2884 #ifdef HAVE_LIMITS_H
2885 # include <limits.h>
2887 /* This structure must have no internal padding. */
2889 char prefix[sizeof "\nendian:" - 1];
2894 #if SIZEOF_SHORT == 4
2895 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2897 ('A' << CHAR_BIT) | 'B',
2901 if { (eval echo configure
:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2903 sed 's/^[0-7]*[ ]*/ /
2906 s/ [0-9][0-9][0-9]/./g
2912 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2913 ac_cv_c_compile_endian
=big-endian
2914 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2915 ac_cv_c_compile_endian
=little-endian
2920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2921 ac_cpp
='$CPP $CPPFLAGS'
2922 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2923 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2924 cross_compiling
=$ac_cv_prog_cc_cross
2929 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2930 if test $ac_cv_c_compile_endian = unknown
; then
2931 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2932 elif test $ac_cv_c_compile_endian = big-endian
; then
2933 cat >> confdefs.h
<<\EOF
2934 #define HOST_WORDS_BIG_ENDIAN 1
2939 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2940 echo "configure:2941: checking floating point format" >&5
2941 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2947 ac_cpp
='$CPP $CPPFLAGS'
2948 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2949 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2950 cross_compiling
=$ac_cv_prog_cc_cross
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 /* This will not work unless sizeof(double) == 8. */
2956 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2958 /* This structure must have no internal padding. */
2959 struct possibility {
2965 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2966 struct possibility table [] =
2968 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2969 C( 3.53802595280598432000e+18), /* D__float - VAX */
2970 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2971 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2972 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2975 if { (eval echo configure
:2976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2977 sed 's/^[0-7]*[ ]*/ /
2980 s/ [0-9][0-9][0-9]/./g
2986 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2987 ac_cv_c_float_format
='IEEE (big-endian)'
2988 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2989 ac_cv_c_float_format
='IEEE (big-endian)'
2990 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2991 ac_cv_c_float_format
='IEEE (little-endian)'
2992 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2993 ac_cv_c_float_format
='IEEE (little-endian)'
2994 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2995 ac_cv_c_float_format
='VAX D-float'
2996 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2997 ac_cv_c_float_format
='PDP-10'
2998 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2999 ac_cv_c_float_format
='IBM 370 hex'
3001 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
3004 { echo "configure: error: compile failed" 1>&2; exit 1; }
3008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3009 ac_cpp
='$CPP $CPPFLAGS'
3010 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3011 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3012 cross_compiling
=$ac_cv_prog_cc_cross
3017 echo "$ac_t""$ac_cv_c_float_format" 1>&6
3018 # IEEE is the default format. If the float endianness isn't the same
3019 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
3020 # (which is a tristate: yes, no, default). This is only an issue with
3021 # IEEE; the other formats are only supported by a few machines each,
3022 # all with the same endianness.
3025 case $ac_cv_c_float_format in
3026 'IEEE (big-endian)' )
3027 if test $ac_cv_c_compile_endian = little-endian
; then
3031 'IEEE (little-endian)' )
3032 if test $ac_cv_c_compile_endian = big-endian
; then
3037 format
=VAX_FLOAT_FORMAT
3040 format
=PDP10_FLOAT_FORMAT
3043 format
=IBM_FLOAT_FORMAT
3046 if test -n "$format"; then
3047 cat >> confdefs.h
<<EOF
3048 #define HOST_FLOAT_FORMAT $format
3052 if test -n "$fbigend"; then
3053 cat >> confdefs.h
<<EOF
3054 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
3060 # See if we have the mktemp command.
3061 # Extract the first word of "mktemp", so it can be a program name with args.
3062 set dummy mktemp
; ac_word
=$2
3063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_word" >&5
3065 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 if test -n "$have_mktemp_command"; then
3069 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3073 for ac_dir
in $ac_dummy; do
3074 test -z "$ac_dir" && ac_dir
=.
3075 if test -f $ac_dir/$ac_word; then
3076 ac_cv_prog_have_mktemp_command
="yes"
3081 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3084 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3085 if test -n "$have_mktemp_command"; then
3086 echo "$ac_t""$have_mktemp_command" 1>&6
3088 echo "$ac_t""no" 1>&6
3092 # Do we have a single-tree copy of texinfo?
3093 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3094 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3095 gcc_cv_prog_makeinfo_modern
=yes
3096 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3098 # See if makeinfo has been installed and is modern enough
3099 # that we can use it.
3100 # Extract the first word of "makeinfo", so it can be a program name with args.
3101 set dummy makeinfo
; ac_word
=$2
3102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_word" >&5
3104 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 if test -n "$MAKEINFO"; then
3108 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3112 for ac_dir
in $ac_dummy; do
3113 test -z "$ac_dir" && ac_dir
=.
3114 if test -f $ac_dir/$ac_word; then
3115 ac_cv_prog_MAKEINFO
="makeinfo"
3122 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3123 if test -n "$MAKEINFO"; then
3124 echo "$ac_t""$MAKEINFO" 1>&6
3126 echo "$ac_t""no" 1>&6
3129 if test -n "$MAKEINFO"; then
3130 # Found it, now check the version.
3131 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3132 echo "configure:3133: checking for modern makeinfo" >&5
3133 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3137 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3138 echo "configure:3139: version of makeinfo is $ac_prog_version" >&5
3139 case $ac_prog_version in
3140 '') gcc_cv_prog_makeinfo_modern
=no
;;
3142 gcc_cv_prog_makeinfo_modern
=yes;;
3143 *) gcc_cv_prog_makeinfo_modern
=no
;;
3148 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3150 gcc_cv_prog_makeinfo_modern
=no
3155 if test $gcc_cv_prog_makeinfo_modern = no
; then
3156 echo "configure: warning:
3157 *** Makeinfo is missing or too old.
3158 *** Info documentation will not be built." 1>&2
3164 # Is pod2man recent enough to regenerate manpages?
3165 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3166 echo "configure:3167: checking for recent Pod::Man" >&5
3167 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3168 echo "$ac_t""yes" 1>&6
3169 GENERATED_MANPAGES
=generated-manpages
3171 echo "$ac_t""no" 1>&6
3176 if test -f $srcdir/..
/flex
/skel.c
; then
3177 FLEX
='$(objdir)/../flex/flex'
3179 # Extract the first word of "flex", so it can be a program name with args.
3180 set dummy flex
; ac_word
=$2
3181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3182 echo "configure:3183: checking for $ac_word" >&5
3183 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 if test -n "$FLEX"; then
3187 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3189 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3191 for ac_dir
in $ac_dummy; do
3192 test -z "$ac_dir" && ac_dir
=.
3193 if test -f $ac_dir/$ac_word; then
3194 ac_cv_prog_FLEX
="flex"
3199 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3202 FLEX
="$ac_cv_prog_FLEX"
3203 if test -n "$FLEX"; then
3204 echo "$ac_t""$FLEX" 1>&6
3206 echo "$ac_t""no" 1>&6
3212 # The -L switch is so bison can find its skeleton file.
3213 if test -f $srcdir/..
/bison
/bison.simple
; then
3214 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3216 # Extract the first word of "bison", so it can be a program name with args.
3217 set dummy bison
; ac_word
=$2
3218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3219 echo "configure:3220: checking for $ac_word" >&5
3220 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 if test -n "$BISON"; then
3224 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3228 for ac_dir
in $ac_dummy; do
3229 test -z "$ac_dir" && ac_dir
=.
3230 if test -f $ac_dir/$ac_word; then
3231 ac_cv_prog_BISON
="bison"
3236 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3239 BISON
="$ac_cv_prog_BISON"
3240 if test -n "$BISON"; then
3241 echo "$ac_t""$BISON" 1>&6
3243 echo "$ac_t""no" 1>&6
3248 # These libraries may be used by collect2.
3249 # We may need a special search path to get them linked.
3250 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3251 echo "configure:3252: checking for collect2 libraries" >&5
3252 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3256 for libs
in '' -lld -lmld \
3257 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3258 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3273 if { (eval echo configure
:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3275 gcc_cv_collect2_libs
="$libs"; break
3277 echo "configure: failed program was:" >&5
3278 cat conftest.
$ac_ext >&5
3283 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3286 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3287 case $gcc_cv_collect2_libs in
3289 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3293 # When building Ada code on Alpha, we need exc_resume which is usually in
3294 # -lexc. So test for it.
3298 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3299 echo "configure:3300: checking for library containing exc_resume" >&5
3300 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 ac_func_search_save_LIBS
="$LIBS"
3304 ac_cv_search_exc_resume
="no"
3305 cat > conftest.
$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* Override any gcc2 internal prototype to avoid an error. */
3309 /* We use char because int might match the return type of a gcc2
3310 builtin and then its argument prototype would still apply. */
3317 if { (eval echo configure
:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3319 ac_cv_search_exc_resume
="none required"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.
$ac_ext >&5
3325 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3326 LIBS
="-l$i $ac_func_search_save_LIBS"
3327 cat > conftest.
$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 /* Override any gcc2 internal prototype to avoid an error. */
3331 /* We use char because int might match the return type of a gcc2
3332 builtin and then its argument prototype would still apply. */
3339 if { (eval echo configure
:3340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3341 ac_cv_search_exc_resume
="-l$i"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.
$ac_ext >&5
3349 LIBS
="$ac_func_search_save_LIBS"
3352 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3353 if test "$ac_cv_search_exc_resume" != "no"; then
3354 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3363 # See if the stage1 system preprocessor understands the ANSI C
3364 # preprocessor stringification operator. (Used by symcat.h.)
3367 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3368 echo "configure:3369: checking for preprocessor stringizing operator" >&5
3369 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3372 cat > conftest.
$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3378 char *s = x(teststring);
3381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3382 egrep "#teststring" >/dev
/null
2>&1; then
3384 ac_cv_c_stringize
=no
3387 ac_cv_c_stringize
=yes
3393 if test "${ac_cv_c_stringize}" = yes
3395 cat >> confdefs.h
<<\EOF
3396 #define HAVE_STRINGIZE 1
3400 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3403 # Use <inttypes.h> only if it exists,
3404 # doesn't clash with <sys/types.h>, and declares intmax_t.
3405 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3406 echo "configure:3407: checking for inttypes.h" >&5
3407 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3414 #include <inttypes.h>
3419 if { (eval echo configure
:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421 gcc_cv_header_inttypes_h
=yes
3423 echo "configure: failed program was:" >&5
3424 cat conftest.
$ac_ext >&5
3426 gcc_cv_header_inttypes_h
=no
3431 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3432 if test $gcc_cv_header_inttypes_h = yes; then
3433 cat >> confdefs.h
<<\EOF
3434 #define HAVE_INTTYPES_H 1
3440 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3441 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3442 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat
3444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_func" >&5
3446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 cat > conftest.
$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 /* System header to define __stub macros and hopefully few prototypes,
3453 which can conflict with char $ac_func(); below. */
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3462 /* The GNU C library defines this for functions which it implements
3463 to always fail with ENOSYS. Some functions are actually named
3464 something starting with __ and the normal name is an alias. */
3465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3473 if { (eval echo configure
:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3475 eval "ac_cv_func_$ac_func=yes"
3477 echo "configure: failed program was:" >&5
3478 cat conftest.
$ac_ext >&5
3480 eval "ac_cv_func_$ac_func=no"
3485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3486 echo "$ac_t""yes" 1>&6
3487 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3488 cat >> confdefs.h
<<EOF
3489 #define $ac_tr_func 1
3493 echo "$ac_t""no" 1>&6
3498 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3499 echo "configure:3500: checking for ssize_t" >&5
3500 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 cat > conftest.
$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <sys/types.h>
3512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3513 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3515 ac_cv_type_ssize_t
=yes
3518 ac_cv_type_ssize_t
=no
3523 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3524 if test $ac_cv_type_ssize_t = no
; then
3525 cat >> confdefs.h
<<\EOF
3532 # Try to determine the array type of the second argument of getgroups
3533 # for the target system (int or gid_t).
3534 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3535 echo "configure:3536: checking for uid_t in sys/types.h" >&5
3536 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.
$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3545 egrep "uid_t" >/dev
/null
2>&1; then
3547 ac_cv_type_uid_t
=yes
3556 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3557 if test $ac_cv_type_uid_t = no
; then
3558 cat >> confdefs.h
<<\EOF
3562 cat >> confdefs.h
<<\EOF
3568 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3569 echo "configure:3570: checking type of array argument to getgroups" >&5
3570 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 if test "$cross_compiling" = yes; then
3574 ac_cv_type_getgroups
=cross
3576 cat > conftest.
$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3580 /* Thanks to Mike Rendell for this test. */
3581 #include <sys/types.h>
3584 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3589 union { gid_t gval; long lval; } val;
3592 for (i = 0; i < NGID; i++)
3593 gidset[i] = val.gval;
3594 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3596 /* Exit non-zero if getgroups seems to require an array of ints. This
3597 happens when gid_t is short but getgroups modifies an array of ints. */
3598 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3602 if { (eval echo configure
:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3604 ac_cv_type_getgroups
=gid_t
3606 echo "configure: failed program was:" >&5
3607 cat conftest.
$ac_ext >&5
3609 ac_cv_type_getgroups
=int
3614 if test $ac_cv_type_getgroups = cross
; then
3615 cat > conftest.
$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3621 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3623 ac_cv_type_getgroups
=gid_t
3626 ac_cv_type_getgroups
=int
3633 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3634 cat >> confdefs.h
<<EOF
3635 #define GETGROUPS_T $ac_cv_type_getgroups
3639 if test "${target}" = "${build}"; then
3640 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3643 # This condition may need some tweaking. It should include all
3644 # targets where the array type of the second argument of getgroups
3645 # is int and the type of gid_t is not equivalent to int.
3646 *-*-sunos* |
*-*-ultrix*)
3647 TARGET_GETGROUPS_T
=int
3650 TARGET_GETGROUPS_T
=gid_t
3656 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3657 echo "configure:3658: checking whether the printf functions support %p" >&5
3658 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3661 if test "$cross_compiling" = yes; then
3662 gcc_cv_func_printf_ptr
=no
3664 cat > conftest.
$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3672 char *p = buf, *q = NULL;
3673 sprintf(buf, "%p", p);
3674 sscanf(buf, "%p", &q);
3678 if { (eval echo configure
:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3680 gcc_cv_func_printf_ptr
=yes
3682 echo "configure: failed program was:" >&5
3683 cat conftest.
$ac_ext >&5
3685 gcc_cv_func_printf_ptr
=no
3690 rm -f core core.
* *.core
3693 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3694 if test $gcc_cv_func_printf_ptr = yes ; then
3695 cat >> confdefs.h
<<\EOF
3696 #define HAVE_PRINTF_PTR 1
3704 { echo "configure: error:
3705 *** UWIN may not be used as a host platform because
3706 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3709 # Under VMS, vfork works very different than on Unix. The standard test
3710 # won't work, and it isn't easily adaptable. It makes more sense to
3712 ac_cv_func_vfork_works
=yes
3715 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3716 echo "configure:3717: checking for pid_t" >&5
3717 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3720 cat > conftest.
$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 #include <sys/types.h>
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3732 ac_cv_type_pid_t
=yes
3740 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3741 if test $ac_cv_type_pid_t = no
; then
3742 cat >> confdefs.h
<<\EOF
3748 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3749 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3750 echo "configure:3751: checking for vfork.h" >&5
3751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 cat > conftest.
$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3760 { (eval echo configure
:3761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3761 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3762 if test -z "$ac_err"; then
3764 eval "ac_cv_header_$ac_safe=yes"
3767 echo "configure: failed program was:" >&5
3768 cat conftest.
$ac_ext >&5
3770 eval "ac_cv_header_$ac_safe=no"
3774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3775 echo "$ac_t""yes" 1>&6
3776 cat >> confdefs.h
<<\EOF
3777 #define HAVE_VFORK_H 1
3781 echo "$ac_t""no" 1>&6
3784 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3785 echo "configure:3786: checking for working vfork" >&5
3786 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 if test "$cross_compiling" = yes; then
3790 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3791 echo "configure:3792: checking for vfork" >&5
3792 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.
$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* System header to define __stub macros and hopefully few prototypes,
3799 which can conflict with char vfork(); below. */
3801 /* Override any gcc2 internal prototype to avoid an error. */
3802 /* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3808 /* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811 #if defined (__stub_vfork) || defined (__stub___vfork)
3819 if { (eval echo configure
:3820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3821 eval "ac_cv_func_vfork=yes"
3823 echo "configure: failed program was:" >&5
3824 cat conftest.
$ac_ext >&5
3826 eval "ac_cv_func_vfork=no"
3831 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3835 echo "$ac_t""no" 1>&6
3838 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3840 cat > conftest.
$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Thanks to Paul Eggert for this test. */
3845 #include <sys/types.h>
3846 #include <sys/stat.h>
3847 #ifdef HAVE_UNISTD_H
3853 /* On some sparc systems, changes by the child to local and incoming
3854 argument registers are propagated back to the parent.
3855 The compiler is told about this with #include <vfork.h>,
3856 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3857 Test for this by using a static variable whose address
3858 is put into a register that is clobbered by the vfork. */
3861 sparc_address_test (int arg)
3863 sparc_address_test (arg) int arg;
3881 pid_t parent = getpid ();
3884 sparc_address_test ();
3889 /* Here is another test for sparc vfork register problems.
3890 This test uses lots of local variables, at least
3891 as many local variables as main has allocated so far
3892 including compiler temporaries. 4 locals are enough for
3893 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3894 A buggy compiler should reuse the register of parent
3895 for one of the local variables, since it will think that
3896 parent can't possibly be used any more in this routine.
3897 Assigning to the local variable will thus munge parent
3898 in the parent process. */
3900 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3901 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3902 /* Convince the compiler that p..p7 are live; otherwise, it might
3903 use the same hardware register for all 8 local variables. */
3904 if (p != p1 || p != p2 || p != p3 || p != p4
3905 || p != p5 || p != p6 || p != p7)
3908 /* On some systems (e.g. IRIX 3.3),
3909 vfork doesn't separate parent from child file descriptors.
3910 If the child closes a descriptor before it execs or exits,
3911 this munges the parent's descriptor as well.
3912 Test for this by closing stdout in the child. */
3913 _exit(close(fileno(stdout)) != 0);
3918 while (wait(&status) != child)
3921 /* Was there some problem with vforking? */
3924 /* Did the child fail? (This shouldn't happen.) */
3927 /* Did the vfork/compiler bug occur? */
3928 || parent != getpid()
3930 /* Did the file descriptor bug occur? */
3931 || fstat(fileno(stdout), &st) != 0
3936 if { (eval echo configure
:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3938 ac_cv_func_vfork_works
=yes
3940 echo "configure: failed program was:" >&5
3941 cat conftest.
$ac_ext >&5
3943 ac_cv_func_vfork_works
=no
3950 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3951 if test $ac_cv_func_vfork_works = no
; then
3952 cat >> confdefs.h
<<\EOF
3958 for ac_func
in getpagesize
3960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3961 echo "configure:3962: checking for $ac_func" >&5
3962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 cat > conftest.
$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* System header to define __stub macros and hopefully few prototypes,
3969 which can conflict with char $ac_func(); below. */
3971 /* Override any gcc2 internal prototype to avoid an error. */
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3978 /* The GNU C library defines this for functions which it implements
3979 to always fail with ENOSYS. Some functions are actually named
3980 something starting with __ and the normal name is an alias. */
3981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3989 if { (eval echo configure
:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3991 eval "ac_cv_func_$ac_func=yes"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.
$ac_ext >&5
3996 eval "ac_cv_func_$ac_func=no"
4001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4002 echo "$ac_t""yes" 1>&6
4003 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4004 cat >> confdefs.h
<<EOF
4005 #define $ac_tr_func 1
4009 echo "$ac_t""no" 1>&6
4013 # The test program for the next two tests is the same except for one
4015 cat >ct-mmap.inc
<<'EOF'
4016 #include <sys/types.h>
4017 #include <sys/mman.h>
4023 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4024 # define MAP_ANONYMOUS MAP_ANON
4027 /* This mess was copied from the GNU getpagesize.h. */
4028 #ifndef HAVE_GETPAGESIZE
4029 # ifdef HAVE_UNISTD_H
4030 # include <unistd.h>
4033 /* Assume that all systems that can run configure have sys/param.h. */
4034 # ifndef HAVE_SYS_PARAM_H
4035 # define HAVE_SYS_PARAM_H 1
4038 # ifdef _SC_PAGESIZE
4039 # define getpagesize() sysconf(_SC_PAGESIZE)
4040 # else /* no _SC_PAGESIZE */
4041 # ifdef HAVE_SYS_PARAM_H
4042 # include <sys/param.h>
4043 # ifdef EXEC_PAGESIZE
4044 # define getpagesize() EXEC_PAGESIZE
4045 # else /* no EXEC_PAGESIZE */
4047 # define getpagesize() NBPG * CLSIZE
4050 # endif /* no CLSIZE */
4051 # else /* no NBPG */
4053 # define getpagesize() NBPC
4054 # else /* no NBPC */
4056 # define getpagesize() PAGESIZE
4057 # endif /* PAGESIZE */
4058 # endif /* no NBPC */
4059 # endif /* no NBPG */
4060 # endif /* no EXEC_PAGESIZE */
4061 # else /* no HAVE_SYS_PARAM_H */
4062 # define getpagesize() 8192 /* punt totally */
4063 # endif /* no HAVE_SYS_PARAM_H */
4064 # endif /* no _SC_PAGESIZE */
4066 #endif /* no HAVE_GETPAGESIZE */
4069 # define MAP_FAILED -1
4073 #define perror_exit(str, val) \
4074 do { perror(str); exit(val); } while (0)
4076 /* Some versions of cygwin mmap require that munmap is called with the
4077 same parameters as mmap. GCC expects that this is not the case.
4078 Test for various forms of this problem. Warning - icky signal games. */
4080 static sigset_t unblock_sigsegv;
4090 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4091 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4093 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4094 MAP_PRIVATE, devzero, 0);
4102 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4106 /* Basic functionality test. */
4110 char *x = anonmap (pg);
4111 if (x == (char *) MAP_FAILED)
4112 perror_exit("test 0 mmap", 2);
4116 if (munmap(x, pg) < 0)
4117 perror_exit("test 0 munmap", 3);
4120 /* 1. If we map a 2-page region and unmap its second page, the first page
4125 char *x = anonmap (pg * 2);
4126 if (x == (char *)MAP_FAILED)
4127 perror_exit ("test 1 mmap", 4);
4129 signal (SIGSEGV, sigsegv);
4131 perror_exit ("test 1 fault", 5);
4136 if (munmap (x + pg, pg) < 0)
4137 perror_exit ("test 1 munmap 1", 6);
4140 if (setjmp (r) == 0)
4143 perror_exit ("test 1 no fault", 7);
4145 if (munmap (x, pg) < 0)
4146 perror_exit ("test 1 munmap 2", 8);
4149 /* 2. If we map a 2-page region and unmap its first page, the second
4150 page must remain. */
4154 char *x = anonmap (pg * 2);
4155 if (x == (char *)MAP_FAILED)
4156 perror_exit ("test 2 mmap", 9);
4158 signal (SIGSEGV, sigsegv);
4160 perror_exit ("test 2 fault", 10);
4165 if (munmap (x, pg) < 0)
4166 perror_exit ("test 2 munmap 1", 11);
4170 if (setjmp (r) == 0)
4173 perror_exit ("test 2 no fault", 12);
4176 if (munmap (x+pg, pg) < 0)
4177 perror_exit ("test 2 munmap 2", 13);
4180 /* 3. If we map two adjacent 1-page regions and unmap them both with
4181 one munmap, both must go away.
4183 Getting two adjacent 1-page regions with two mmap calls is slightly
4184 tricky. All OS's tested skip over already-allocated blocks; therefore
4185 we have been careful to unmap all allocated regions in previous tests.
4186 HP/UX allocates pages backward in memory. No OS has yet been observed
4187 to be so perverse as to leave unmapped space between consecutive calls
4196 if (x == (char *)MAP_FAILED)
4197 perror_exit ("test 3 mmap 1", 14);
4199 if (y == (char *)MAP_FAILED)
4200 perror_exit ("test 3 mmap 2", 15);
4205 z = y, y = x, x = z;
4208 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4209 (unsigned long)x, (unsigned long)y);
4214 signal (SIGSEGV, sigsegv);
4216 perror_exit ("test 3 fault", 17);
4221 if (munmap (x, pg*2) < 0)
4222 perror_exit ("test 3 munmap", 18);
4224 if (setjmp (r) == 0)
4227 perror_exit ("test 3 no fault 1", 19);
4230 signal (SIGSEGV, sigsegv);
4231 if (setjmp (r) == 0)
4234 perror_exit ("test 3 no fault 2", 20);
4241 sigemptyset (&unblock_sigsegv);
4242 sigaddset (&unblock_sigsegv, SIGSEGV);
4243 pg = getpagesize ();
4244 #ifndef USE_MAP_ANON
4245 devzero = open ("/dev/zero", O_RDWR);
4247 perror_exit ("open /dev/zero", 1);
4259 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4260 echo "configure:4261: checking for working mmap from /dev/zero" >&5
4261 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 if test "$cross_compiling" = yes; then
4265 # If this is not cygwin, and /dev/zero is a character device, it's probably
4266 # safe to assume it works.
4268 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4269 * ) if test -c /dev
/zero
4270 then ac_cv_func_mmap_dev_zero
=yes
4271 else ac_cv_func_mmap_dev_zero
=no
4275 cat > conftest.
$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4278 #include "ct-mmap.inc"
4280 if { (eval echo configure
:4281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4282 ac_cv_func_mmap_dev_zero
=yes
4284 echo "configure: failed program was:" >&5
4285 cat conftest.
$ac_ext >&5
4288 then ac_cv_func_mmap_dev_zero
=no
4289 else ac_cv_func_mmap_dev_zero
=buggy
4298 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4299 if test $ac_cv_func_mmap_dev_zero = yes; then
4300 cat >> confdefs.h
<<\EOF
4301 #define HAVE_MMAP_DEV_ZERO 1
4306 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4307 echo "configure:4308: checking for working mmap with MAP_ANON(YMOUS)" >&5
4308 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 if test "$cross_compiling" = yes; then
4312 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4313 # just because it's there. Some SCO Un*xen define it but don't implement it.
4314 ac_cv_func_mmap_anon
=no
4316 cat > conftest.
$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 #define USE_MAP_ANON
4320 #include "ct-mmap.inc"
4322 if { (eval echo configure
:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4324 ac_cv_func_mmap_anon
=yes
4326 echo "configure: failed program was:" >&5
4327 cat conftest.
$ac_ext >&5
4330 then ac_cv_func_mmap_anon
=no
4331 else ac_cv_func_mmap_anon
=buggy
4340 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4341 if test $ac_cv_func_mmap_anon = yes; then
4342 cat >> confdefs.h
<<\EOF
4343 #define HAVE_MMAP_ANON 1
4349 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4350 echo "configure:4351: checking for working mmap of a file" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 # Create a file one thousand bytes long.
4355 for i
in 1 2 3 4 5 6 7 8 9 0
4356 do for j
in 1 2 3 4 5 6 7 8 9 0
4359 done > conftestdata$$
4361 if test "$cross_compiling" = yes; then
4362 ac_cv_func_mmap_file
=no
4364 cat > conftest.
$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4368 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4369 Richard Henderson and Alexandre Oliva.
4370 Check whether read-only mmap of a plain file works. */
4371 #include <sys/types.h>
4372 #include <sys/stat.h>
4374 #include <sys/mman.h>
4382 fd = open("conftestdata$$", O_RDONLY);
4386 if (fstat (fd, &st))
4389 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4390 if (x == (char *) -1)
4393 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4396 if (munmap(x, st.st_size) < 0)
4402 if { (eval echo configure
:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4404 ac_cv_func_mmap_file
=yes
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4409 ac_cv_func_mmap_file
=no
4416 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4417 if test $ac_cv_func_mmap_file = yes; then
4418 cat >> confdefs.h
<<\EOF
4419 #define HAVE_MMAP_FILE 1
4427 am_cv_lib_iconv_ldpath
=
4428 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4429 if test "${with_libiconv_prefix+set}" = set; then
4430 withval
="$with_libiconv_prefix"
4432 for dir
in `echo "$withval" | tr : ' '`; do
4433 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4434 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4440 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4441 echo "configure:4442: checking for iconv" >&5
4442 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4446 am_cv_func_iconv
="no, consider installing GNU libiconv"
4448 cat > conftest.
$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4454 iconv_t cd = iconv_open("","");
4455 iconv(cd,NULL,NULL,NULL,NULL);
4459 if { (eval echo configure
:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4461 am_cv_func_iconv
=yes
4463 echo "configure: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4467 if test "$am_cv_func_iconv" != yes; then
4468 am_save_LIBS
="$LIBS"
4469 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4470 cat > conftest.
$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4476 iconv_t cd = iconv_open("","");
4477 iconv(cd,NULL,NULL,NULL,NULL);
4481 if { (eval echo configure
:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4484 am_cv_func_iconv
=yes
4486 echo "configure: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4490 LIBS
="$am_save_LIBS"
4495 echo "$ac_t""$am_cv_func_iconv" 1>&6
4496 if test "$am_cv_func_iconv" = yes; then
4497 cat >> confdefs.h
<<\EOF
4498 #define HAVE_ICONV 1
4501 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4502 echo "configure:4503: checking for iconv declaration" >&5
4503 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4507 cat > conftest.
$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4517 #if defined(__STDC__) || defined(__cplusplus)
4518 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4527 if { (eval echo configure
:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4529 am_cv_proto_iconv_arg1
=""
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4534 am_cv_proto_iconv_arg1
="const"
4537 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4540 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4541 echo "$ac_t""${ac_t:-
4542 }$am_cv_proto_iconv" 1>&6
4543 cat >> confdefs.h
<<EOF
4544 #define ICONV_CONST $am_cv_proto_iconv_arg1
4549 if test "$am_cv_lib_iconv" = yes; then
4550 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4555 # We will need to find libiberty.h and ansidecl.h
4556 saved_CFLAGS
="$CFLAGS"
4557 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4558 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4559 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4560 fprintf_unlocked strstr errno \
4561 malloc realloc calloc free
basename getopt
clock
4563 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4564 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4565 echo "configure:4566: checking whether $ac_func is declared" >&5
4566 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 cat > conftest.
$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4573 #define $ac_tr_decl 1
4575 #include "ansidecl.h"
4580 char *(*pfn) = (char *(*)) $ac_func ;
4584 if { (eval echo configure
:4585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4586 eval "gcc_cv_have_decl_$ac_func=yes"
4588 echo "configure: failed program was:" >&5
4589 cat conftest.
$ac_ext >&5
4591 eval "gcc_cv_have_decl_$ac_func=no"
4596 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4597 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4598 #define $ac_tr_decl 1
4602 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4603 #define $ac_tr_decl 0
4609 if test x
= y
; then
4610 cat >> confdefs.h
<<\EOF
4611 #define HAVE_DECL_GETENV 1
4613 cat >> confdefs.h
<<\EOF
4614 #define HAVE_DECL_ATOL 1
4616 cat >> confdefs.h
<<\EOF
4617 #define HAVE_DECL_SBRK 1
4619 cat >> confdefs.h
<<\EOF
4620 #define HAVE_DECL_ABORT 1
4622 cat >> confdefs.h
<<\EOF
4623 #define HAVE_DECL_ATOF 1
4625 cat >> confdefs.h
<<\EOF
4626 #define HAVE_DECL_GETCWD 1
4628 cat >> confdefs.h
<<\EOF
4629 #define HAVE_DECL_GETWD 1
4632 cat >> confdefs.h
<<\EOF
4633 #define HAVE_DECL_STRSIGNAL 1
4635 cat >> confdefs.h
<<\EOF
4636 #define HAVE_DECL_PUTC_UNLOCKED 1
4638 cat >> confdefs.h
<<\EOF
4639 #define HAVE_DECL_FPUTS_UNLOCKED 1
4641 cat >> confdefs.h
<<\EOF
4642 #define HAVE_DECL_FWRITE_UNLOCKED 1
4645 cat >> confdefs.h
<<\EOF
4646 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4648 cat >> confdefs.h
<<\EOF
4649 #define HAVE_DECL_STRSTR 1
4651 cat >> confdefs.h
<<\EOF
4652 #define HAVE_DECL_ERRNO 1
4655 cat >> confdefs.h
<<\EOF
4656 #define HAVE_DECL_MALLOC 1
4658 cat >> confdefs.h
<<\EOF
4659 #define HAVE_DECL_REALLOC 1
4661 cat >> confdefs.h
<<\EOF
4662 #define HAVE_DECL_CALLOC 1
4664 cat >> confdefs.h
<<\EOF
4665 #define HAVE_DECL_FREE 1
4667 cat >> confdefs.h
<<\EOF
4668 #define HAVE_DECL_BASENAME 1
4670 cat >> confdefs.h
<<\EOF
4671 #define HAVE_DECL_GETOPT 1
4673 cat >> confdefs.h
<<\EOF
4674 #define HAVE_DECL_CLOCK 1
4679 for ac_func
in getrlimit setrlimit getrusage
4681 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4682 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4683 echo "configure:4684: checking whether $ac_func is declared" >&5
4684 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 cat > conftest.
$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4691 #define $ac_tr_decl 1
4693 #include "ansidecl.h"
4695 #ifdef HAVE_SYS_RESOURCE_H
4696 #include <sys/resource.h>
4702 char *(*pfn) = (char *(*)) $ac_func ;
4706 if { (eval echo configure
:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4708 eval "gcc_cv_have_decl_$ac_func=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.
$ac_ext >&5
4713 eval "gcc_cv_have_decl_$ac_func=no"
4718 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4720 #define $ac_tr_decl 1
4724 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4725 #define $ac_tr_decl 0
4731 if test x
= y
; then
4732 cat >> confdefs.h
<<\EOF
4733 #define HAVE_DECL_GETRLIMIT 1
4735 cat >> confdefs.h
<<\EOF
4736 #define HAVE_DECL_SETRLIMIT 1
4738 cat >> confdefs.h
<<\EOF
4739 #define HAVE_DECL_GETRUSAGE 1
4744 for ac_func
in times
4746 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4747 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4748 echo "configure:4749: checking whether $ac_func is declared" >&5
4749 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 cat > conftest.
$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4756 #define $ac_tr_decl 1
4758 #include "ansidecl.h"
4760 #ifdef HAVE_SYS_TIMES_H
4761 #include <sys/times.h>
4767 char *(*pfn) = (char *(*)) $ac_func ;
4771 if { (eval echo configure
:4772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4773 eval "gcc_cv_have_decl_$ac_func=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.
$ac_ext >&5
4778 eval "gcc_cv_have_decl_$ac_func=no"
4783 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4785 #define $ac_tr_decl 1
4789 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4790 #define $ac_tr_decl 0
4796 if test x
= y
; then
4797 cat >> confdefs.h
<<\EOF
4798 #define HAVE_DECL_TIMES 1
4803 # More time-related stuff.
4804 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4805 echo "configure:4806: checking for struct tms" >&5
4806 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4810 cat > conftest.
$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4814 #include "ansidecl.h"
4816 #ifdef HAVE_SYS_TIMES_H
4817 #include <sys/times.h>
4824 if { (eval echo configure
:4825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4826 ac_cv_struct_tms
=yes
4828 echo "configure: failed program was:" >&5
4829 cat conftest.
$ac_ext >&5
4836 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4837 if test $ac_cv_struct_tms = yes; then
4838 cat >> confdefs.h
<<\EOF
4839 #define HAVE_STRUCT_TMS 1
4844 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4845 # revisit after autoconf 2.50.
4846 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4847 echo "configure:4848: checking for clock_t" >&5
4848 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4852 cat > conftest.
$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4856 #include "ansidecl.h"
4863 if { (eval echo configure
:4864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4865 gcc_cv_type_clock_t
=yes
4867 echo "configure: failed program was:" >&5
4868 cat conftest.
$ac_ext >&5
4870 gcc_cv_type_clock_t
=no
4875 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4876 if test $gcc_cv_type_clock_t = yes; then
4877 cat >> confdefs.h
<<\EOF
4878 #define HAVE_CLOCK_T 1
4883 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4884 CFLAGS
="$saved_CFLAGS"
4886 # mkdir takes a single argument on some systems.
4887 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4888 echo "configure:4889: checking if mkdir takes one argument" >&5
4889 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4892 cat > conftest.
$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4896 #include <sys/types.h>
4897 #ifdef HAVE_SYS_STAT_H
4898 # include <sys/stat.h>
4900 #ifdef HAVE_UNISTD_H
4901 # include <unistd.h>
4903 #ifdef HAVE_DIRECT_H
4904 # include <direct.h>
4910 if { (eval echo configure
:4911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4912 gcc_cv_mkdir_takes_one_arg
=no
4914 echo "configure: failed program was:" >&5
4915 cat conftest.
$ac_ext >&5
4917 gcc_cv_mkdir_takes_one_arg
=yes
4922 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4923 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4924 cat >> confdefs.h
<<\EOF
4925 #define MKDIR_TAKES_ONE_ARG 1
4939 build_install_headers_dir
=install-headers-tar
4944 host_truncate_target
=
4947 # Decode the host machine, then the target machine.
4948 # For the host machine, we save the xm_file variable as host_xm_file;
4949 # then we decode the target machine and forget everything else
4950 # that came from the host machine.
4951 for machine
in $build $host $target; do
4952 .
${srcdir}/config.gcc
4955 extra_objs
="${host_extra_objs} ${extra_objs}"
4957 # Default the target-machine variables that were not explicitly set.
4958 if test x
"$tm_file" = x
4959 then tm_file
=$cpu_type/$cpu_type.h
; fi
4961 if test x
"$extra_headers" = x
4962 then extra_headers
=; fi
4964 if test x
$md_file = x
4965 then md_file
=$cpu_type/$cpu_type.md
; fi
4967 if test x
$out_file = x
4968 then out_file
=$cpu_type/$cpu_type.c
; fi
4970 if test x
"$tmake_file" = x
4971 then tmake_file
=$cpu_type/t-
$cpu_type
4974 if test x
"$dwarf2" = xyes
4975 then tm_file
="$tm_file tm-dwarf2.h"
4978 if test x
$float_format = x
4979 then float_format
=i64
4982 if test $float_format = none
4983 then float_h_file
=Makefile.
in
4984 else float_h_file
=float-
$float_format.h
4987 # Handle cpp installation.
4988 if test x
$enable_cpp != xno
4990 tmake_file
="$tmake_file t-install-cpp"
4993 # Say what files are being used for the output code and MD file.
4994 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4995 echo "Using \`$srcdir/config/$md_file' as machine description file."
4997 # If any of the xm_file variables contain nonexistent files, warn
4998 # about them and drop them.
5001 for x
in $build_xm_file; do
5002 if test -f $srcdir/config
/$x
5004 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5010 for x
in $host_xm_file; do
5011 if test -f $srcdir/config
/$x
5013 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5019 for x
in $xm_file; do
5020 if test -f $srcdir/config
/$x
5022 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5028 for f
in $tm_file; do
5031 if test $count = ax
; then
5032 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5034 echo "Using the following target machine macro files:"
5035 for f
in $tm_file; do
5036 echo " $srcdir/config/$f"
5041 for f
in $host_xm_file; do
5044 if test $count = a
; then
5046 elif test $count = ax
; then
5047 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5049 echo "Using the following host machine macro files:"
5050 for f
in $host_xm_file; do
5051 echo " $srcdir/config/$f"
5055 if test "$host_xm_file" != "$build_xm_file"; then
5057 for f
in $build_xm_file; do
5060 if test $count = a
; then
5062 elif test $count = ax
; then
5063 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5065 echo "Using the following build machine macro files:"
5066 for f
in $build_xm_file; do
5067 echo " $srcdir/config/$f"
5072 if test x
$thread_file = x
; then
5073 if test x
$target_thread_file != x
; then
5074 thread_file
=$target_thread_file
5076 thread_file
='single'
5080 # auto-host.h is the file containing items generated by autoconf and is
5081 # the first file included by config.h.
5082 # If host=build, it is correct to have hconfig include auto-host.h
5083 # as well. If host!=build, we are in error and need to do more
5084 # work to find out the build config parameters.
5085 if test x
$host = x
$build
5087 build_auto
=auto-host.h
5090 # We create a subdir, then run autoconf in the subdir.
5091 # To prevent recursion we set host and build for the new
5092 # invocation of configure to the build for this invocation
5099 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5100 *) realsrcdir
=..
/${srcdir};;
5102 saved_CFLAGS
="${CFLAGS}"
5103 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5104 ${realsrcdir}/configure \
5105 --target=$target_alias --host=$build_alias --build=$build_alias
5106 CFLAGS
="${saved_CFLAGS}"
5108 # We just finished tests for the build machine, so rename
5109 # the file auto-build.h in the gcc directory.
5110 mv auto-host.h ..
/auto-build.h
5113 build_auto
=auto-build.h
5118 tm_file
="${tm_file} defaults.h"
5119 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5120 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5121 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5123 # Truncate the target if necessary
5124 if test x
$host_truncate_target != x
; then
5125 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5128 # Get the version trigger filename from the toplevel
5129 if test "${with_gcc_version_trigger+set}" = set; then
5130 gcc_version_trigger
=$with_gcc_version_trigger
5132 gcc_version_trigger
=${srcdir}/version.c
5134 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5135 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5137 # Compile in configure arguments.
5138 if test -f configargs.h
; then
5139 # Being re-configured.
5140 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5141 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5143 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5145 cat > configargs.h
<<EOF
5146 /* Generated automatically. */
5147 static const char configuration_arguments[] = "$gcc_config_arguments";
5148 static const char thread_model[] = "$thread_file";
5151 # Internationalization
5153 VERSION
="$gcc_version"
5157 # Enable NLS support by default
5158 # Check whether --enable-nls or --disable-nls was given.
5159 if test "${enable_nls+set}" = set; then
5160 enableval
="$enable_nls"
5167 # if cross compiling, disable NLS support.
5168 # It's not worth the trouble, at least for now.
5170 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5171 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5177 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5178 echo "configure:5179: checking for library containing strerror" >&5
5179 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5182 ac_func_search_save_LIBS
="$LIBS"
5183 ac_cv_search_strerror
="no"
5184 cat > conftest.
$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 /* Override any gcc2 internal prototype to avoid an error. */
5188 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5196 if { (eval echo configure
:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5198 ac_cv_search_strerror
="none required"
5200 echo "configure: failed program was:" >&5
5201 cat conftest.
$ac_ext >&5
5204 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5205 LIBS
="-l$i $ac_func_search_save_LIBS"
5206 cat > conftest.
$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5218 if { (eval echo configure
:5219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5220 ac_cv_search_strerror
="-l$i"
5223 echo "configure: failed program was:" >&5
5224 cat conftest.
$ac_ext >&5
5228 LIBS
="$ac_func_search_save_LIBS"
5231 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5232 if test "$ac_cv_search_strerror" != "no"; then
5233 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5240 echo $ac_n "checking for working const""... $ac_c" 1>&6
5241 echo "configure:5242: checking for working const" >&5
5242 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 cat > conftest.
$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5251 /* Ultrix mips cc rejects this. */
5252 typedef int charset[2]; const charset x;
5253 /* SunOS 4.1.1 cc rejects this. */
5254 char const *const *ccp;
5256 /* NEC SVR4.0.2 mips cc rejects this. */
5257 struct point {int x, y;};
5258 static struct point const zero = {0,0};
5259 /* AIX XL C 1.02.0.0 rejects this.
5260 It does not let you subtract one const X* pointer from another in an arm
5261 of an if-expression whose if-part is not a constant expression */
5262 const char *g = "string";
5263 ccp = &g + (g ? g-g : 0);
5264 /* HPUX 7.0 cc rejects these. */
5267 ccp = (char const *const *) p;
5268 { /* SCO 3.2v4 cc rejects this. */
5270 char const *s = 0 ? (char *) 0 : (char const *) 0;
5274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5276 const int *foo = &x[0];
5279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5280 typedef const int *iptr;
5284 { /* AIX XL C 1.02.0.0 rejects this saying
5285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5286 struct s { int j; const int *ap[3]; };
5287 struct s *b; b->j = 5;
5289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5295 if { (eval echo configure
:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299 echo "configure: failed program was:" >&5
5300 cat conftest.
$ac_ext >&5
5307 echo "$ac_t""$ac_cv_c_const" 1>&6
5308 if test $ac_cv_c_const = no
; then
5309 cat >> confdefs.h
<<\EOF
5315 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5316 echo "configure:5317: checking for off_t" >&5
5317 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 cat > conftest.
$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5323 #include <sys/types.h>
5329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5332 ac_cv_type_off_t
=yes
5340 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5341 if test $ac_cv_type_off_t = no
; then
5342 cat >> confdefs.h
<<\EOF
5348 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5349 echo "configure:5350: checking for size_t" >&5
5350 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 cat > conftest.
$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5356 #include <sys/types.h>
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5365 ac_cv_type_size_t
=yes
5368 ac_cv_type_size_t
=no
5373 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5374 if test $ac_cv_type_size_t = no
; then
5375 cat >> confdefs.h
<<\EOF
5376 #define size_t unsigned
5381 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5382 # for constant arguments. Useless!
5383 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5384 echo "configure:5385: checking for working alloca.h" >&5
5385 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 cat > conftest.
$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5393 char *p = alloca(2 * sizeof(int));
5396 if { (eval echo configure
:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5398 ac_cv_header_alloca_h
=yes
5400 echo "configure: failed program was:" >&5
5401 cat conftest.
$ac_ext >&5
5403 ac_cv_header_alloca_h
=no
5408 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5409 if test $ac_cv_header_alloca_h = yes; then
5410 cat >> confdefs.h
<<\EOF
5411 #define HAVE_ALLOCA_H 1
5416 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5417 echo "configure:5418: checking for alloca" >&5
5418 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 cat > conftest.
$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5426 # define alloca __builtin_alloca
5429 # include <malloc.h>
5430 # define alloca _alloca
5433 # include <alloca.h>
5438 # ifndef alloca /* predefined by HP cc +Olibcalls */
5447 char *p = (char *) alloca(1);
5450 if { (eval echo configure
:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5452 ac_cv_func_alloca_works
=yes
5454 echo "configure: failed program was:" >&5
5455 cat conftest.
$ac_ext >&5
5457 ac_cv_func_alloca_works
=no
5462 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5463 if test $ac_cv_func_alloca_works = yes; then
5464 cat >> confdefs.h
<<\EOF
5465 #define HAVE_ALLOCA 1
5470 if test $ac_cv_func_alloca_works = no
; then
5471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5472 # that cause trouble. Some versions do not even contain alloca or
5473 # contain a buggy version. If you still want to use their alloca,
5474 # use ar to extract alloca.o from them instead of compiling alloca.c.
5475 ALLOCA
=alloca.
${ac_objext}
5476 cat >> confdefs.h
<<\EOF
5481 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5482 echo "configure:5483: checking whether alloca needs Cray hooks" >&5
5483 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.
$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 #if defined(CRAY) && ! defined(CRAY2)
5496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497 egrep "webecray" >/dev
/null
2>&1; then
5508 echo "$ac_t""$ac_cv_os_cray" 1>&6
5509 if test $ac_cv_os_cray = yes; then
5510 for ac_func
in _getb67 GETB67 getb67
; do
5511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5512 echo "configure:5513: checking for $ac_func" >&5
5513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5516 cat > conftest.
$ac_ext <<EOF
5517 #line 5518 "configure"
5518 #include "confdefs.h"
5519 /* System header to define __stub macros and hopefully few prototypes,
5520 which can conflict with char $ac_func(); below. */
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5529 /* The GNU C library defines this for functions which it implements
5530 to always fail with ENOSYS. Some functions are actually named
5531 something starting with __ and the normal name is an alias. */
5532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5540 if { (eval echo configure
:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5542 eval "ac_cv_func_$ac_func=yes"
5544 echo "configure: failed program was:" >&5
5545 cat conftest.
$ac_ext >&5
5547 eval "ac_cv_func_$ac_func=no"
5552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5553 echo "$ac_t""yes" 1>&6
5554 cat >> confdefs.h
<<EOF
5555 #define CRAY_STACKSEG_END $ac_func
5560 echo "$ac_t""no" 1>&6
5566 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5567 echo "configure:5568: checking stack direction for C alloca" >&5
5568 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 if test "$cross_compiling" = yes; then
5572 ac_cv_c_stack_direction
=0
5574 cat > conftest.
$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 find_stack_direction ()
5579 static char *addr = 0;
5584 return find_stack_direction ();
5587 return (&dummy > addr) ? 1 : -1;
5591 exit (find_stack_direction() < 0);
5594 if { (eval echo configure
:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5596 ac_cv_c_stack_direction
=1
5598 echo "configure: failed program was:" >&5
5599 cat conftest.
$ac_ext >&5
5601 ac_cv_c_stack_direction
=-1
5608 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5609 cat >> confdefs.h
<<EOF
5610 #define STACK_DIRECTION $ac_cv_c_stack_direction
5616 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5617 echo "configure:5618: checking whether we are using the GNU C Library 2.1 or newer" >&5
5618 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 cat > conftest.
$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5625 #include <features.h>
5626 #ifdef __GNU_LIBRARY__
5627 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5636 ac_cv_gnu_library_2_1
=yes
5639 ac_cv_gnu_library_2_1
=no
5647 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5649 GLIBC21
="$ac_cv_gnu_library_2_1"
5653 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5654 stdlib.h string.h unistd.h sys
/param.h
5656 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5658 echo "configure:5659: checking for $ac_hdr" >&5
5659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5660 echo $ac_n "(cached) $ac_c" 1>&6
5662 cat > conftest.
$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5667 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5668 { (eval echo configure
:5669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5669 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5670 if test -z "$ac_err"; then
5672 eval "ac_cv_header_$ac_safe=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 eval "ac_cv_header_$ac_safe=no"
5682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5683 echo "$ac_t""yes" 1>&6
5684 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5685 cat >> confdefs.h
<<EOF
5686 #define $ac_tr_hdr 1
5690 echo "$ac_t""no" 1>&6
5694 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5695 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5696 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5699 echo "configure:5700: checking for $ac_func" >&5
5700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 cat > conftest.
$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5706 /* System header to define __stub macros and hopefully few prototypes,
5707 which can conflict with char $ac_func(); below. */
5709 /* Override any gcc2 internal prototype to avoid an error. */
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5716 /* The GNU C library defines this for functions which it implements
5717 to always fail with ENOSYS. Some functions are actually named
5718 something starting with __ and the normal name is an alias. */
5719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5727 if { (eval echo configure
:5728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5729 eval "ac_cv_func_$ac_func=yes"
5731 echo "configure: failed program was:" >&5
5732 cat conftest.
$ac_ext >&5
5734 eval "ac_cv_func_$ac_func=no"
5739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5740 echo "$ac_t""yes" 1>&6
5741 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5742 cat >> confdefs.h
<<EOF
5743 #define $ac_tr_func 1
5747 echo "$ac_t""no" 1>&6
5754 am_cv_lib_iconv_ldpath
=
5755 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5756 if test "${with_libiconv_prefix+set}" = set; then
5757 withval
="$with_libiconv_prefix"
5759 for dir
in `echo "$withval" | tr : ' '`; do
5760 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5761 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5767 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5768 echo "configure:5769: checking for iconv" >&5
5769 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5773 am_cv_func_iconv
="no, consider installing GNU libiconv"
5775 cat > conftest.
$ac_ext <<EOF
5776 #line 5777 "configure"
5777 #include "confdefs.h"
5781 iconv_t cd = iconv_open("","");
5782 iconv(cd,NULL,NULL,NULL,NULL);
5786 if { (eval echo configure
:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5788 am_cv_func_iconv
=yes
5790 echo "configure: failed program was:" >&5
5791 cat conftest.
$ac_ext >&5
5794 if test "$am_cv_func_iconv" != yes; then
5795 am_save_LIBS
="$LIBS"
5796 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5797 cat > conftest.
$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5803 iconv_t cd = iconv_open("","");
5804 iconv(cd,NULL,NULL,NULL,NULL);
5808 if { (eval echo configure
:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5811 am_cv_func_iconv
=yes
5813 echo "configure: failed program was:" >&5
5814 cat conftest.
$ac_ext >&5
5817 LIBS
="$am_save_LIBS"
5822 echo "$ac_t""$am_cv_func_iconv" 1>&6
5823 if test "$am_cv_func_iconv" = yes; then
5824 cat >> confdefs.h
<<\EOF
5825 #define HAVE_ICONV 1
5828 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5829 echo "configure:5830: checking for iconv declaration" >&5
5830 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.
$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5844 #if defined(__STDC__) || defined(__cplusplus)
5845 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5854 if { (eval echo configure
:5855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5856 am_cv_proto_iconv_arg1
=""
5858 echo "configure: failed program was:" >&5
5859 cat conftest.
$ac_ext >&5
5861 am_cv_proto_iconv_arg1
="const"
5864 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5867 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5868 echo "$ac_t""${ac_t:-
5869 }$am_cv_proto_iconv" 1>&6
5870 cat >> confdefs.h
<<EOF
5871 #define ICONV_CONST $am_cv_proto_iconv_arg1
5876 if test "$am_cv_lib_iconv" = yes; then
5877 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5882 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5883 echo "configure:5884: checking for nl_langinfo and CODESET" >&5
5884 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 #include <langinfo.h>
5892 char* cs = nl_langinfo(CODESET);
5895 if { (eval echo configure
:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5897 am_cv_langinfo_codeset
=yes
5899 echo "configure: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5902 am_cv_langinfo_codeset
=no
5908 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5909 if test $am_cv_langinfo_codeset = yes; then
5910 cat >> confdefs.h
<<\EOF
5911 #define HAVE_LANGINFO_CODESET 1
5916 if test $ac_cv_header_locale_h = yes; then
5917 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5918 echo "configure:5919: checking for LC_MESSAGES" >&5
5919 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 cat > conftest.
$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5930 if { (eval echo configure
:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5932 am_cv_val_LC_MESSAGES
=yes
5934 echo "configure: failed program was:" >&5
5935 cat conftest.
$ac_ext >&5
5937 am_cv_val_LC_MESSAGES
=no
5942 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5943 if test $am_cv_val_LC_MESSAGES = yes; then
5944 cat >> confdefs.h
<<\EOF
5945 #define HAVE_LC_MESSAGES 1
5950 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5951 echo "configure:5952: checking whether NLS is requested" >&5
5952 # Check whether --enable-nls or --disable-nls was given.
5953 if test "${enable_nls+set}" = set; then
5954 enableval
="$enable_nls"
5960 echo "$ac_t""$USE_NLS" 1>&6
5963 BUILD_INCLUDED_LIBINTL
=no
5964 USE_INCLUDED_LIBINTL
=no
5968 if test "$USE_NLS" = "yes"; then
5969 cat >> confdefs.h
<<\EOF
5970 #define ENABLE_NLS 1
5973 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5974 echo "configure:5975: checking whether included gettext is requested" >&5
5975 # Check whether --with-included-gettext or --without-included-gettext was given.
5976 if test "${with_included_gettext+set}" = set; then
5977 withval
="$with_included_gettext"
5978 nls_cv_force_use_gnu_gettext
=$withval
5980 nls_cv_force_use_gnu_gettext
=no
5983 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5985 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5986 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5992 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5993 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5994 echo "configure:5995: checking for libintl.h" >&5
5995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5998 cat > conftest.
$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 #include <libintl.h>
6003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6004 { (eval echo configure
:6005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6006 if test -z "$ac_err"; then
6008 eval "ac_cv_header_$ac_safe=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.
$ac_ext >&5
6014 eval "ac_cv_header_$ac_safe=no"
6018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6019 echo "$ac_t""yes" 1>&6
6020 cat >> confdefs.h
<<\EOF
6021 #define HAVE_LIBINTL_H 1
6024 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6025 echo "configure:6026: checking for GNU gettext in libc" >&5
6026 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6027 echo $ac_n "(cached) $ac_c" 1>&6
6029 cat > conftest.
$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 #include <libintl.h>
6033 extern int _nl_msg_cat_cntr;
6035 bindtextdomain ("", "");
6036 return (int) gettext ("") + _nl_msg_cat_cntr
6039 if { (eval echo configure
:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6041 gt_cv_func_gnugettext1_libc
=yes
6043 echo "configure: failed program was:" >&5
6044 cat conftest.
$ac_ext >&5
6046 gt_cv_func_gnugettext1_libc
=no
6051 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6053 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6054 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6055 echo "configure:6056: checking for GNU gettext in libintl" >&5
6056 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 gt_save_LIBS
="$LIBS"
6060 LIBS
="$LIBS -lintl $LIBICONV"
6061 cat > conftest.
$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 #include <libintl.h>
6065 extern int _nl_msg_cat_cntr;
6067 bindtextdomain ("", "");
6068 return (int) gettext ("") + _nl_msg_cat_cntr
6071 if { (eval echo configure
:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6073 gt_cv_func_gnugettext1_libintl
=yes
6075 echo "configure: failed program was:" >&5
6076 cat conftest.
$ac_ext >&5
6078 gt_cv_func_gnugettext1_libintl
=no
6081 LIBS
="$gt_save_LIBS"
6084 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6087 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6088 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6089 && test "$PACKAGE" != gettext; }; then
6090 cat >> confdefs.h
<<\EOF
6091 #define HAVE_GETTEXT 1
6095 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6096 INTLLIBS
="-lintl $LIBICONV"
6099 gt_save_LIBS
="$LIBS"
6100 LIBS
="$LIBS $INTLLIBS"
6101 for ac_func
in dcgettext
6103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6104 echo "configure:6105: checking for $ac_func" >&5
6105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.
$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6111 /* System header to define __stub macros and hopefully few prototypes,
6112 which can conflict with char $ac_func(); below. */
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6121 /* The GNU C library defines this for functions which it implements
6122 to always fail with ENOSYS. Some functions are actually named
6123 something starting with __ and the normal name is an alias. */
6124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6132 if { (eval echo configure
:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6134 eval "ac_cv_func_$ac_func=yes"
6136 echo "configure: failed program was:" >&5
6137 cat conftest.
$ac_ext >&5
6139 eval "ac_cv_func_$ac_func=no"
6144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6145 echo "$ac_t""yes" 1>&6
6146 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6147 cat >> confdefs.h
<<EOF
6148 #define $ac_tr_func 1
6152 echo "$ac_t""no" 1>&6
6156 LIBS
="$gt_save_LIBS"
6158 # Extract the first word of "msgfmt", so it can be a program name with args.
6159 set dummy msgfmt
; ac_word
=$2
6160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_word" >&5
6162 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6167 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6170 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6171 for ac_dir
in $PATH; do
6172 test -z "$ac_dir" && ac_dir
=.
6173 if test -f $ac_dir/$ac_word; then
6174 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6175 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6181 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6185 MSGFMT
="$ac_cv_path_MSGFMT"
6186 if test "$MSGFMT" != ":"; then
6187 echo "$ac_t""$MSGFMT" 1>&6
6189 echo "$ac_t""no" 1>&6
6192 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6193 set dummy gmsgfmt
; ac_word
=$2
6194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6195 echo "configure:6196: checking for $ac_word" >&5
6196 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6201 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6204 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6209 for ac_dir
in $ac_dummy; do
6210 test -z "$ac_dir" && ac_dir
=.
6211 if test -f $ac_dir/$ac_word; then
6212 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6217 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6221 GMSGFMT
="$ac_cv_path_GMSGFMT"
6222 if test -n "$GMSGFMT"; then
6223 echo "$ac_t""$GMSGFMT" 1>&6
6225 echo "$ac_t""no" 1>&6
6229 # Extract the first word of "xgettext", so it can be a program name with args.
6230 set dummy xgettext
; ac_word
=$2
6231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6232 echo "configure:6233: checking for $ac_word" >&5
6233 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6238 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6242 for ac_dir
in $PATH; do
6243 test -z "$ac_dir" && ac_dir
=.
6244 if test -f $ac_dir/$ac_word; then
6245 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6246 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6252 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6256 XGETTEXT
="$ac_cv_path_XGETTEXT"
6257 if test "$XGETTEXT" != ":"; then
6258 echo "$ac_t""$XGETTEXT" 1>&6
6260 echo "$ac_t""no" 1>&6
6268 echo "$ac_t""no" 1>&6
6272 if test "$CATOBJEXT" = "NONE"; then
6273 nls_cv_use_gnu_gettext
=yes
6277 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6278 INTLOBJS
="\$(GETTOBJS)"
6279 # Extract the first word of "msgfmt", so it can be a program name with args.
6280 set dummy msgfmt
; ac_word
=$2
6281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6282 echo "configure:6283: checking for $ac_word" >&5
6283 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6288 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6291 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6292 for ac_dir
in $PATH; do
6293 test -z "$ac_dir" && ac_dir
=.
6294 if test -f $ac_dir/$ac_word; then
6295 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6296 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6302 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6306 MSGFMT
="$ac_cv_path_MSGFMT"
6307 if test "$MSGFMT" != ":"; then
6308 echo "$ac_t""$MSGFMT" 1>&6
6310 echo "$ac_t""no" 1>&6
6313 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6314 set dummy gmsgfmt
; ac_word
=$2
6315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6316 echo "configure:6317: checking for $ac_word" >&5
6317 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6322 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6325 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6328 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6330 for ac_dir
in $ac_dummy; do
6331 test -z "$ac_dir" && ac_dir
=.
6332 if test -f $ac_dir/$ac_word; then
6333 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6338 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6342 GMSGFMT
="$ac_cv_path_GMSGFMT"
6343 if test -n "$GMSGFMT"; then
6344 echo "$ac_t""$GMSGFMT" 1>&6
6346 echo "$ac_t""no" 1>&6
6349 # Extract the first word of "xgettext", so it can be a program name with args.
6350 set dummy xgettext
; ac_word
=$2
6351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_word" >&5
6353 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6358 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6361 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6362 for ac_dir
in $PATH; do
6363 test -z "$ac_dir" && ac_dir
=.
6364 if test -f $ac_dir/$ac_word; then
6365 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6366 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6372 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6376 XGETTEXT
="$ac_cv_path_XGETTEXT"
6377 if test "$XGETTEXT" != ":"; then
6378 echo "$ac_t""$XGETTEXT" 1>&6
6380 echo "$ac_t""no" 1>&6
6384 BUILD_INCLUDED_LIBINTL
=yes
6385 USE_INCLUDED_LIBINTL
=yes
6387 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6388 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6389 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6392 if test "$GMSGFMT" != ":"; then
6393 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6396 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6401 if test "$XGETTEXT" != ":"; then
6402 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6405 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6415 if test "$PACKAGE" = gettext; then
6416 BUILD_INCLUDED_LIBINTL
=yes
6419 for ac_prog
in bison
6421 # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy
$ac_prog; ac_word
=$2
6423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6424 echo "configure:6425: checking for $ac_word" >&5
6425 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6428 if test -n "$INTLBISON"; then
6429 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6431 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6433 for ac_dir
in $ac_dummy; do
6434 test -z "$ac_dir" && ac_dir
=.
6435 if test -f $ac_dir/$ac_word; then
6436 ac_cv_prog_INTLBISON
="$ac_prog"
6443 INTLBISON
="$ac_cv_prog_INTLBISON"
6444 if test -n "$INTLBISON"; then
6445 echo "$ac_t""$INTLBISON" 1>&6
6447 echo "$ac_t""no" 1>&6
6450 test -n "$INTLBISON" && break
6453 if test -z "$INTLBISON"; then
6456 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6457 echo "configure:6458: checking version of bison" >&5
6458 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6459 case $ac_prog_version in
6460 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6461 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6462 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6463 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6465 echo "$ac_t""$ac_prog_version" 1>&6
6467 if test $ac_verc_fail = yes; then
6480 if test $USE_INCLUDED_LIBINTL = yes; then
6481 cat >> confdefs.h
<<\EOF
6482 #define USE_INCLUDED_LIBINTL 1
6488 nls_cv_header_libgt
=
6500 if test "x$CATOBJEXT" != x
; then
6501 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6502 echo "configure:6503: checking for catalogs to be installed" >&5
6503 # Look for .po and .gmo files in the source directory.
6506 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6507 # If there aren't any .gmo files the shell will give us the
6508 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6510 case "$cat" in *\
**)
6513 # The quadruple backslash is collapsed to a double backslash
6514 # by the backticks, then collapsed again by the double quotes,
6515 # leaving us with one backslash in the sed expression (right
6516 # before the dot that mustn't act as a wildcard). The dot to
6517 # be escaped in the second expression is hiding inside CATOBJEXT.
6518 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6519 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6520 # The user is allowed to set LINGUAS to a list of languages to
6521 # install catalogs for. If it's empty that means "all of them."
6522 if test "x$LINGUAS" = x
; then
6523 CATALOGS
="$CATALOGS $cat"
6524 XLINGUAS
="$XLINGUAS $lang"
6526 case "$LINGUAS" in *$lang*)
6527 CATALOGS
="$CATALOGS $cat"
6528 XLINGUAS
="$XLINGUAS $lang"
6534 echo "$ac_t""$LINGUAS" 1>&6
6538 if test -n "$ac_aux_dir"; then
6539 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6541 if test -z "$MKINSTALLDIRS"; then
6542 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6546 INTL_LIBTOOL_SUFFIX_PREFIX
=
6550 # Windows32 Registry support for specifying GCC installation paths.
6551 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6552 if test "${enable_win32_registry+set}" = set; then
6553 enableval
="$enable_win32_registry"
6558 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6559 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6560 echo "configure:6561: checking whether windows registry support is requested" >&5
6561 if test "x$enable_win32_registry" != xno
; then
6562 cat >> confdefs.h
<<\EOF
6563 #define ENABLE_WIN32_REGISTRY 1
6566 echo "$ac_t""yes" 1>&6
6568 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6569 echo "configure:6570: checking for library containing RegOpenKeyExA" >&5
6570 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 ac_func_search_save_LIBS
="$LIBS"
6574 ac_cv_search_RegOpenKeyExA
="no"
6575 cat > conftest.
$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6578 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */
6581 char RegOpenKeyExA();
6587 if { (eval echo configure
:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6589 ac_cv_search_RegOpenKeyExA
="none required"
6591 echo "configure: failed program was:" >&5
6592 cat conftest.
$ac_ext >&5
6595 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6596 LIBS
="-l$i $ac_func_search_save_LIBS"
6597 cat > conftest.
$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603 char RegOpenKeyExA();
6609 if { (eval echo configure
:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6611 ac_cv_search_RegOpenKeyExA
="-l$i"
6614 echo "configure: failed program was:" >&5
6615 cat conftest.
$ac_ext >&5
6619 LIBS
="$ac_func_search_save_LIBS"
6622 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6623 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6624 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6630 echo "$ac_t""no" 1>&6
6633 # Check if user specified a different registry key.
6634 case "x${enable_win32_registry}" in
6637 gcc_cv_win32_registry_key
="$VERSION"
6640 # no registry lookup.
6641 gcc_cv_win32_registry_key
=''
6644 # user-specified key.
6645 gcc_cv_win32_registry_key
="$enable_win32_registry"
6649 if test "x$enable_win32_registry" != xno
; then
6650 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6651 echo "configure:6652: checking registry key on windows hosts" >&5
6652 cat >> confdefs.h
<<EOF
6653 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6656 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6661 # Get an absolute path to the GCC top-level source directory
6662 holddir
=`${PWDCMD-pwd}`
6664 topdir
=`${PWDCMD-pwd}`
6667 # Conditionalize the makefile for this host machine.
6668 # Make-host contains the concatenation of all host makefile fragments
6669 # [there can be more than one]. This file is built by configure.frag.
6670 host_overrides
=Make-host
6671 dep_host_xmake_file
=
6672 for f
in ..
${host_xmake_file}
6674 if test -f ${srcdir}/config
/$f
6676 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6680 # Conditionalize the makefile for this target machine.
6681 # Make-target contains the concatenation of all host makefile fragments
6682 # [there can be more than one]. This file is built by configure.frag.
6683 target_overrides
=Make-target
6685 for f
in ..
${tmake_file}
6687 if test -f ${srcdir}/config
/$f
6689 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6693 # If the host doesn't support symlinks, modify CC in
6694 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6695 # Otherwise, we can use "CC=$(CC)".
6697 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6699 cc_set_by_configure
="\$(CC)"
6700 quoted_cc_set_by_configure
="\$(CC)"
6701 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6702 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6705 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6707 symbolic_link
="cp -p"
6711 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6712 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6713 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6714 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6718 out_object_file
=`basename $out_file .c`.o
6721 for f
in $tm_file; do
6724 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6726 tm_file_list
="${tm_file_list} $f" ;;
6727 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6732 for f
in $tm_p_file; do
6733 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6737 for f
in $host_xm_file; do
6740 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6741 auto-host.h | defaults.h
)
6742 host_xm_file_list
="${host_xm_file_list} $f" ;;
6743 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6748 for f
in $build_xm_file; do
6751 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6752 auto-build.h | auto-host.h | defaults.h
)
6753 build_xm_file_list
="${build_xm_file_list} $f" ;;
6754 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6758 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6759 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6762 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6763 if test x
$host != x
$target
6765 CROSS
="-DCROSS_COMPILE"
6767 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6770 # If this is a cross-compiler that does not
6771 # have its own set of headers then define
6774 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6775 # This prevents libgcc2 from containing any code which requires libc
6778 if test x
$host != x
$target && test x
$with_headers = x
; then
6779 inhibit_libc
=-Dinhibit_libc
6781 if test x
$with_newlib = xyes
; then
6782 inhibit_libc
=-Dinhibit_libc
6787 # When building gcc with a cross-compiler, we need to adjust things so
6788 # that the generator programs are still built with the native compiler.
6789 # Also, we cannot run fixincludes or fix-header.
6790 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6793 # These are the normal (build=host) settings:
6795 HOST_PREFIX_1
=ignore-
6797 HOST_CFLAGS
='$(ALL_CFLAGS)'
6799 STMP_FIXINC
=stmp-fixinc
6800 STMP_FIXPROTO
=stmp-fixproto
6802 # And these apply if build != host.
6803 if test x
$build != x
$host
6806 HOST_PREFIX_1
=build-
6807 HOST_CC
='$(CC_FOR_BUILD)'
6808 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6814 # Expand extra_headers to include complete path.
6815 # This substitutes for lots of t-* files.
6817 if test "x$extra_headers" = x
6820 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6821 for file in $extra_headers;
6823 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6827 if test x
$use_collect2 = xno
; then
6831 # Add a definition of USE_COLLECT2 if system wants one.
6832 if test x
$use_collect2 != x
6834 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6835 xm_defines
="${xm_defines} USE_COLLECT2"
6838 # If we have gas in the build tree, make a link to it.
6839 if test -f ..
/gas
/Makefile
; then
6840 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6843 # If we have nm and objdump in the build tree, make a link to them.
6844 if test -f ..
/binutils
/Makefile
; then
6845 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6846 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6849 # If we have ld in the build tree, make a link to it.
6850 if test -f ..
/ld
/Makefile
; then
6851 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6854 # Figure out what assembler we will be using.
6855 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6856 echo "configure:6857: checking what assembler to use" >&5
6858 gcc_cv_gas_major_version
=
6859 gcc_cv_gas_minor_version
=
6860 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6861 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6862 if test -x "$DEFAULT_ASSEMBLER"; then
6863 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6864 elif test -x "$AS"; then
6866 elif test -x as
$host_exeext; then
6867 # Build using assembler in the current directory.
6868 gcc_cv_as
=.
/as
$host_exeext
6869 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6870 # Single tree build which includes gas.
6871 for f
in $gcc_cv_as_bfd_srcdir/configure
$gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
6873 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6874 if test x
$gcc_cv_gas_version != x
; then
6878 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6879 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6880 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
6883 if test "x$gcc_cv_as" = x
; then
6884 # Search the same directories that the installed compiler will
6885 # search. Else we may find the wrong assembler and lose. If we
6886 # do not find a suitable assembler binary, then try the user's
6889 # Also note we have to check MD_EXEC_PREFIX before checking the
6890 # user's path. Unfortunately, there is no good way to get at the
6891 # value of MD_EXEC_PREFIX here. So we do a brute force search
6892 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6893 # to be fixed as part of the make/configure rewrite too.
6895 if test "x$exec_prefix" = xNONE
; then
6896 if test "x$prefix" = xNONE
; then
6897 test_prefix
=/usr
/local
6902 test_prefix
=$exec_prefix
6905 # If the loop below does not find an assembler, then use whatever
6906 # one we can find in the users's path.
6908 if test "x$program_prefix" != xNONE
; then
6909 gcc_cv_as
=${program_prefix}as
$host_exeext
6911 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
6914 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
6915 $test_prefix/lib/gcc-lib/$target_alias \
6916 /usr/lib/gcc/$target_alias/$gcc_version \
6917 /usr/lib/gcc/$target_alias \
6918 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
6919 $test_prefix/$target_alias/bin"
6921 if test x
$host = x
$target; then
6922 test_dirs
="$test_dirs \
6927 /bsd43/usr/lib/cmplrs/cc \
6928 /usr/cross64/usr/bin \
6929 /usr/lib/cmplrs/cc \
6930 /sysv/usr/lib/cmplrs/cc \
6931 /svr4/usr/lib/cmplrs/cc \
6935 for dir
in $test_dirs; do
6936 if test -x $dir/as
$host_exeext; then
6937 gcc_cv_as
=$dir/as
$host_exeext
6942 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6943 echo "$ac_t"""newly built gas
"" 1>&6
6945 echo "$ac_t""$gcc_cv_as" 1>&6
6948 # Figure out what linker we will be using.
6949 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6950 echo "configure:6951: checking what linker to use" >&5
6952 gcc_cv_gld_major_version
=
6953 gcc_cv_gld_minor_version
=
6954 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6955 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6956 if test -x "$DEFAULT_LINKER"; then
6957 gcc_cv_ld
="$DEFAULT_LINKER"
6958 elif test -x "$LD"; then
6960 elif test -x ld
$host_exeext; then
6961 # Build using linker in the current directory.
6962 gcc_cv_ld
=.
/ld
$host_exeext
6963 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
6964 # Single tree build which includes ld.
6965 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.
in $gcc_cv_ld_gld_srcdir/Makefile.
in
6967 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6968 if test x
$gcc_cv_gld_version != x
; then
6972 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6973 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6976 if test "x$gcc_cv_ld" = x
; then
6977 # Search the same directories that the installed compiler will
6978 # search. Else we may find the wrong linker and lose. If we
6979 # do not find a suitable linker binary, then try the user's
6982 # Also note we have to check MD_EXEC_PREFIX before checking the
6983 # user's path. Unfortunately, there is no good way to get at the
6984 # value of MD_EXEC_PREFIX here. So we do a brute force search
6985 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6986 # to be fixed as part of the make/configure rewrite too.
6988 if test "x$exec_prefix" = xNONE
; then
6989 if test "x$prefix" = xNONE
; then
6990 test_prefix
=/usr
/local
6995 test_prefix
=$exec_prefix
6998 # If the loop below does not find an linker, then use whatever
6999 # one we can find in the users's path.
7001 if test "x$program_prefix" != xNONE
; then
7002 gcc_cv_ld
=${program_prefix}ld
$host_exeext
7004 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
7007 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7008 $test_prefix/lib/gcc-lib/$target_alias \
7009 /usr/lib/gcc/$target_alias/$gcc_version \
7010 /usr/lib/gcc/$target_alias \
7011 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7012 $test_prefix/$target_alias/bin"
7014 if test x
$host = x
$target; then
7015 test_dirs
="$test_dirs \
7020 /bsd43/usr/lib/cmplrs/cc \
7021 /usr/cross64/usr/bin \
7022 /usr/lib/cmplrs/cc \
7023 /sysv/usr/lib/cmplrs/cc \
7024 /svr4/usr/lib/cmplrs/cc \
7028 for dir
in $test_dirs; do
7029 if test -x $dir/ld
$host_exeext; then
7030 gcc_cv_ld
=$dir/ld
$host_exeext
7035 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7036 echo "$ac_t"""newly built ld
"" 1>&6
7038 echo "$ac_t""$gcc_cv_ld" 1>&6
7041 # Figure out what nm we will be using.
7042 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7043 echo "configure:7044: checking what nm to use" >&5
7044 if test -x nm
$host_exeext; then
7045 gcc_cv_nm
=.
/nm
$host_exeext
7046 elif test "x$program_prefix" != xNONE
; then
7047 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7049 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7051 echo "$ac_t""$gcc_cv_nm" 1>&6
7053 # Figure out what objdump we will be using.
7054 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7055 echo "configure:7056: checking what objdump to use" >&5
7056 if test -x objdump
$host_exeext; then
7057 gcc_cv_objdump
=.
/objdump
$host_exeext
7058 elif test "x$program_prefix" != xNONE
; then
7059 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7061 gcc_cv_objdump
=`echo objdump | sed ${program_transform_name}`$host_exeext
7063 echo "$ac_t""$gcc_cv_objdump" 1>&6
7065 # Figure out what assembler alignment features are present.
7066 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7067 echo "configure:7068: checking assembler alignment features" >&5
7068 gcc_cv_as_alignment_features
=none
7069 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7070 # Gas version 2.6 and later support for .balign and .p2align.
7071 # bytes to skip when using .p2align.
7072 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
7073 gcc_cv_as_alignment_features
=".balign and .p2align"
7074 cat >> confdefs.h
<<\EOF
7075 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7079 # Gas version 2.8 and later support specifying the maximum
7080 # bytes to skip when using .p2align.
7081 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
7082 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7083 cat >> confdefs.h
<<\EOF
7084 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7088 elif test x
$gcc_cv_as != x
; then
7089 # Check if we have .balign and .p2align
7090 echo ".balign 4" > conftest.s
7091 echo ".p2align 2" >> conftest.s
7092 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7093 gcc_cv_as_alignment_features
=".balign and .p2align"
7094 cat >> confdefs.h
<<\EOF
7095 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7099 rm -f conftest.s conftest.o
7100 # Check if specifying the maximum bytes to skip when
7101 # using .p2align is supported.
7102 echo ".p2align 4,,7" > conftest.s
7103 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7104 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7105 cat >> confdefs.h
<<\EOF
7106 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7110 rm -f conftest.s conftest.o
7112 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7114 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7115 echo "configure:7116: checking assembler subsection support" >&5
7116 gcc_cv_as_subsections
=no
7117 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7118 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7119 gcc_cv_as_subsections
="working .subsection -1"
7121 elif test x
$gcc_cv_as != x
; then
7122 # Check if we have .subsection
7123 echo ".subsection 1" > conftest.s
7124 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7125 gcc_cv_as_subsections
=".subsection"
7126 if test x
$gcc_cv_nm != x
; then
7127 cat > conftest.s
<<EOF
7128 conftest_label1: .word 0
7130 conftest_label2: .word 0
7133 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7134 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7135 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7136 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7139 gcc_cv_as_subsections
="working .subsection -1"
7144 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7146 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7147 cat >> confdefs.h
<<\EOF
7148 #define HAVE_GAS_SUBSECTION_ORDERING 1
7152 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7154 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7155 echo "configure:7156: checking assembler weak support" >&5
7157 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7158 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
7159 gcc_cv_as_weak
="yes"
7161 elif test x
$gcc_cv_as != x
; then
7162 # Check if we have .weak
7163 echo " .weak foobar" > conftest.s
7164 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7165 gcc_cv_as_weak
="yes"
7167 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7169 if test x
"$gcc_cv_as_weak" = xyes
; then
7170 cat >> confdefs.h
<<\EOF
7171 #define HAVE_GAS_WEAK 1
7175 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7177 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7178 echo "configure:7179: checking assembler hidden support" >&5
7180 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7181 if test "$gcc_cv_gas_major_version" -eq 2 \
7182 -a "$gcc_cv_gas_minor_version" -eq 12 \
7183 -a "$gcc_cv_gas_patch_version" -ge 1 \
7184 -o "$gcc_cv_gas_major_version" -eq 2 \
7185 -a "$gcc_cv_gas_minor_version" -gt 12 \
7186 -o "$gcc_cv_gas_major_version" -gt 2 \
7187 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7188 gcc_cv_as_hidden
="yes"
7190 elif test x
$gcc_cv_as != x
; then
7191 # Check if we have .hidden
7192 echo " .hidden foobar" > conftest.s
7193 echo "foobar:" >> conftest.s
7194 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7195 gcc_cv_as_hidden
="yes"
7197 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7199 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7200 # This is irritatingly difficult to feature test for. Look for
7201 # the date string after the version number.
7202 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7203 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7204 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,;p'`
7205 if test 0"$ld_date" -lt 20020404; then
7206 gcc_cv_as_hidden
="no"
7210 if test x
"$gcc_cv_as_hidden" = xyes
; then
7211 cat >> confdefs.h
<<\EOF
7212 #define HAVE_GAS_HIDDEN 1
7216 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7217 libgcc_visibility
=$gcc_cv_as_hidden
7220 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7221 echo "configure:7222: checking assembler leb128 support" >&5
7223 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7224 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7225 gcc_cv_as_leb128
="yes"
7227 elif test x
$gcc_cv_as != x
; then
7228 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7229 cat > conftest.s
<<EOF
7237 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7238 gcc_cv_as_leb128
="yes"
7240 # GAS versions before 2.11 do not support uleb128,
7241 # despite appearing to.
7242 # ??? There exists an elf-specific test that will crash
7243 # the assembler. Perhaps it's better to figure out whether
7244 # arbitrary sections are supported and try the test.
7245 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7246 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7247 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7248 as_major
=`echo $as_ver | sed 's/\..*//'`
7249 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7250 if test $as_major -eq 2 -a $as_minor -lt 11; then
7251 gcc_cv_as_leb128
="no"
7255 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7257 if test x
"$gcc_cv_as_leb128" = xyes
; then
7258 cat >> confdefs.h
<<\EOF
7259 #define HAVE_AS_LEB128 1
7263 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7265 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7266 echo "configure:7267: checking assembler eh_frame optimization" >&5
7267 gcc_cv_as_eh_frame
=no
7268 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7269 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7270 gcc_cv_as_eh_frame
="yes"
7272 elif test x
$gcc_cv_as != x
; then
7273 # Check if this is GAS.
7274 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7275 rm -f a.out
2> /dev
/null
7276 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7277 # Versions up to and including 2.11.0 may mis-optimize
7278 # .eh_frame data. Try something.
7279 cat > conftest.s
<<EOF
7286 .section .eh_frame,"aw",@progbits
7288 .4byte .LECIE1-.LSCIE1
7302 .4byte .LEFDE1-.LASFDE1
7304 .4byte .LASFDE1-__FRAME_BEGIN__
7313 cat > conftest.lit
<<EOF
7314 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7315 0010 01000000 12000000 18000000 00000000 ................
7316 0020 08000000 04080000 0044 .........D
7318 cat > conftest.big
<<EOF
7319 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7320 0010 00000001 00000012 00000018 00000000 ................
7321 0020 00000008 04000000 0844 .........D
7323 # If the assembler didn't choke, and we can objdump,
7324 # and we got the correct data, then succeed.
7325 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7326 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7327 |
tail -3 > conftest.got \
7328 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7329 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7331 gcc_cv_as_eh_frame
="yes"
7333 gcc_cv_as_eh_frame
="bad"
7334 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7335 cat >> confdefs.h
<<\EOF
7336 #define USE_AS_TRADITIONAL_FORMAT 1
7344 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7346 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7347 echo "configure:7348: checking assembler section merging support" >&5
7348 gcc_cv_as_shf_merge
=no
7349 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7350 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7351 gcc_cv_as_shf_merge
=yes
7353 elif test x
$gcc_cv_as != x
; then
7354 # Check if we support SHF_MERGE sections
7355 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7356 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7357 gcc_cv_as_shf_merge
=yes
7359 rm -f conftest.s conftest.o
7361 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7362 cat >> confdefs.h
<<\EOF
7363 #define HAVE_GAS_SHF_MERGE 1
7367 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7370 # All TARGET_ABI_OSF targets.
7371 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7372 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7373 echo "configure:7374: checking assembler supports explicit relocations" >&5
7374 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7378 gcc_cv_as_explicit_relocs
=unknown
7379 if test x
$gcc_cv_gas_major_version != x \
7380 -a x
$gcc_cv_gas_minor_version != x
7382 if test "$gcc_cv_gas_major_version" -eq 2 \
7383 -a "$gcc_cv_gas_minor_version" -ge 12 \
7384 -o "$gcc_cv_gas_major_version" -gt 2; then
7385 gcc_cv_as_explicit_relocs
=yes
7387 elif test x
$gcc_cv_as != x
; then
7388 cat > conftest.s
<< 'EOF'
7391 extbl
$3, $2, $3 !lituse_bytoff
!1
7392 ldq
$2, a
($29) !literal
!1
7393 ldq
$4, b
($29) !literal
!2
7394 ldq_u
$3, 0($2) !lituse_base
!1
7395 ldq
$27, f
($29) !literal
!5
7396 jsr
$26, ($27), f
!lituse_jsr
!5
7397 ldah
$29, 0($26) !gpdisp
!3
7398 lda
$0, c
($29) !gprel
7399 ldah
$1, d
($29) !gprelhigh
7400 lda
$1, d
($1) !gprellow
7401 lda
$29, 0($29) !gpdisp
!3
7403 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7404 gcc_cv_as_explicit_relocs
=yes
7406 gcc_cv_as_explicit_relocs
=no
7408 rm -f conftest.s conftest.o
7413 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7414 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7415 cat >> confdefs.h
<<\EOF
7416 #define HAVE_AS_EXPLICIT_RELOCS 1
7422 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7423 echo "configure:7424: checking assembler .register pseudo-op support" >&5
7424 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7428 gcc_cv_as_register_pseudo_op
=unknown
7429 if test x
$gcc_cv_as != x
; then
7430 # Check if we have .register
7431 echo ".register %g2, #scratch" > conftest.s
7432 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7433 gcc_cv_as_register_pseudo_op
=yes
7435 gcc_cv_as_register_pseudo_op
=no
7437 rm -f conftest.s conftest.o
7442 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7443 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7444 cat >> confdefs.h
<<\EOF
7445 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7450 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7451 echo "configure:7452: checking assembler supports -relax" >&5
7452 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7456 gcc_cv_as_relax_opt
=unknown
7457 if test x
$gcc_cv_as != x
; then
7458 # Check if gas supports -relax
7459 echo ".text" > conftest.s
7460 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7461 gcc_cv_as_relax_opt
=yes
7463 gcc_cv_as_relax_opt
=no
7465 rm -f conftest.s conftest.o
7470 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7471 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7472 cat >> confdefs.h
<<\EOF
7473 #define HAVE_AS_RELAX_OPTION 1
7478 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7479 echo "configure:7480: checking assembler and linker support unaligned pc related relocs" >&5
7480 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7481 echo $ac_n "(cached) $ac_c" 1>&6
7484 gcc_cv_as_sparc_ua_pcrel
=unknown
7485 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7486 gcc_cv_as_sparc_ua_pcrel
=no
7487 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7488 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7489 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7490 gcc_cv_as_sparc_ua_pcrel
=yes
7492 rm -f conftest.s conftest.o conftest
7497 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7498 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7499 cat >> confdefs.h
<<\EOF
7500 #define HAVE_AS_SPARC_UA_PCREL 1
7505 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
7506 echo "configure:7507: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
7507 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7511 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7512 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
7513 if test x
$gcc_cv_objdump != x
; then
7514 gcc_cv_as_sparc_ua_pcrel_hidden
=no
7515 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
7516 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
7517 echo "foo: .skip 4" >> conftest.s
7518 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7519 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
7520 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
7521 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
7522 if $gcc_cv_objdump -R conftest
2> /dev
/null \
7523 |
grep 'DISP32' > /dev
/null
2>&1; then
7526 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
7530 rm -f conftest.s conftest.o conftest
7532 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
7537 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
7538 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
7539 cat >> confdefs.h
<<\EOF
7540 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
7545 if test "x$gcc_cv_as_flags64" != xno
; then
7546 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7547 echo "configure:7548: checking for assembler offsetable %lo() support" >&5
7548 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7549 echo $ac_n "(cached) $ac_c" 1>&6
7552 gcc_cv_as_offsetable_lo10
=unknown
7553 if test "x$gcc_cv_as" != x
; then
7554 # Check if assembler has offsetable %lo()
7555 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7556 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7557 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7559 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7560 > /dev
/null
2>&1; then
7561 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7562 gcc_cv_as_offsetable_lo10
=no
7564 gcc_cv_as_offsetable_lo10
=yes
7567 gcc_cv_as_offsetable_lo10
=no
7569 rm -f conftest.s conftest.o conftest1.s conftest1.o
7574 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7575 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7576 cat >> confdefs.h
<<\EOF
7577 #define HAVE_AS_OFFSETABLE_LO10 1
7585 i
[34567]86-*-* | x86_64-
*-*)
7586 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7587 echo "configure:7588: checking assembler instructions" >&5
7588 gcc_cv_as_instructions
=
7589 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7590 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
7591 gcc_cv_as_instructions
="filds fists"
7593 elif test x
$gcc_cv_as != x
; then
7594 set "filds fists" "filds mem; fists mem"
7597 echo "$2" > conftest.s
7598 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7599 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7603 rm -f conftest.s conftest.o
7605 if test x
"$gcc_cv_as_instructions" != x
; then
7606 cat >> confdefs.h
<<EOF
7607 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7611 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7613 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7614 echo "configure:7615: checking assembler GOTOFF in data directives" >&5
7615 gcc_cv_as_gotoff_in_data
=no
7616 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7618 if test "$gcc_cv_gas_major_version" -eq 2 \
7619 -a "$gcc_cv_gas_minor_version" -ge 11 \
7620 -o "$gcc_cv_gas_major_version" -gt 2; then
7621 gcc_cv_as_gotoff_in_data
=yes
7623 elif test x
$gcc_cv_as != x
; then
7624 cat > conftest.s
<<EOF
7631 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7632 gcc_cv_as_gotoff_in_data
=yes
7635 cat >> confdefs.h
<<EOF
7636 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7639 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7643 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7644 echo "configure:7645: checking assembler dwarf2 debug_line support" >&5
7645 gcc_cv_as_dwarf2_debug_line
=no
7646 # ??? Not all targets support dwarf2 debug_line, even within a version
7647 # of gas. Moreover, we need to emit a valid instruction to trigger any
7648 # info to the output file. So, as supported targets are added to gas 2.11,
7649 # add some instruction here to (also) show we expect this might work.
7650 # ??? Once 2.11 is released, probably need to add first known working
7651 # version to the per-target configury.
7653 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-* | hppa
*-*-*)
7660 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7662 if test "$gcc_cv_gas_major_version" -eq 2 \
7663 -a "$gcc_cv_gas_minor_version" -ge 11 \
7664 -o "$gcc_cv_gas_major_version" -gt 2 \
7665 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7666 && test x
"$insn" != x
; then
7667 gcc_cv_as_dwarf2_debug_line
="yes"
7669 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7670 echo ' .file 1 "conftest.s"' > conftest.s
7671 echo ' .loc 1 3 0' >> conftest.s
7672 echo " $insn" >> conftest.s
7673 # ??? This fails with non-gnu grep.
7674 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7675 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7676 # The .debug_line file table must be in the exact order that
7677 # we specified the files, since these indices are also used
7678 # by DW_AT_decl_file. Approximate this test by testing if
7679 # the assembler bitches if the same index is assigned twice.
7680 echo ' .file 1 "foo.s"' > conftest.s
7681 echo ' .file 1 "bar.s"' >> conftest.s
7682 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7684 gcc_cv_as_dwarf2_debug_line
="no"
7686 gcc_cv_as_dwarf2_debug_line
="yes"
7689 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7691 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7692 cat >> confdefs.h
<<\EOF
7693 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7697 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7699 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7700 echo "configure:7701: checking assembler --gdwarf2 support" >&5
7701 gcc_cv_as_gdwarf2_flag
=no
7702 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7704 if test "$gcc_cv_gas_major_version" -eq 2 \
7705 -a "$gcc_cv_gas_minor_version" -ge 11 \
7706 -o "$gcc_cv_gas_major_version" -gt 2 \
7707 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7708 && test x
"$insn" != x
; then
7709 gcc_cv_as_gdwarf2_debug_flag
="yes"
7711 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7712 echo '' > conftest.s
7713 # ??? This fails with non-gnu grep.
7714 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7716 gcc_cv_as_gdwarf2_flag
="yes"
7718 rm -f conftest.s conftest.o
7720 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7721 cat >> confdefs.h
<<\EOF
7722 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7726 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7728 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7729 echo "configure:7730: checking assembler --gstabs support" >&5
7730 gcc_cv_as_gstabs_flag
=no
7731 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7733 if test "$gcc_cv_gas_major_version" -eq 2 \
7734 -a "$gcc_cv_gas_minor_version" -ge 11 \
7735 -o "$gcc_cv_gas_major_version" -gt 2 \
7736 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7737 && test x
"$insn" != x
; then
7738 gcc_cv_as_gstabs_debug_flag
="yes"
7740 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7741 echo '' > conftest.s
7742 # ??? This fails with non-gnu grep.
7743 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7744 gcc_cv_as_gstabs_flag
="yes"
7746 rm -f conftest.s conftest.o
7748 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7749 cat >> confdefs.h
<<\EOF
7750 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7754 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7756 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7757 echo "configure:7758: checking linker PT_GNU_EH_FRAME support" >&5
7758 gcc_cv_ld_eh_frame_hdr
=no
7759 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7760 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ..
/ld
/Makefile
> /dev
/null
; then
7761 gcc_cv_ld_eh_frame_hdr
=yes
7763 elif test x
$gcc_cv_ld != x
; then
7764 # Check if linker supports --eh-frame-hdr option
7765 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7766 gcc_cv_ld_eh_frame_hdr
=yes
7769 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7770 cat >> confdefs.h
<<\EOF
7771 #define HAVE_LD_EH_FRAME_HDR 1
7775 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7777 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7778 cat >> confdefs.h
<<EOF
7779 #define PREFIX_INCLUDE_DIR "$prefix/include"
7784 # Figure out what language subdirectories are present.
7785 # Look if the user specified --enable-languages="..."; if not, use
7786 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7788 # NB: embedded tabs in this IF block -- do not untabify
7789 if test x
"${enable_languages+set}" != xset
; then
7790 if test x
"${LANGUAGES+set}" = xset
; then
7791 enable_languages
="${LANGUAGES}"
7792 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7795 enable_languages
=all
7798 if test x
"${enable_languages}" = x ||
7799 test x
"${enable_languages}" = xyes
;
7801 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7804 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7806 # First scan to see if an enabled language requires some other language.
7807 # We assume that a given config-lang.in will list all the language
7808 # front ends it requires, even if some are required indirectly.
7809 for lang
in ${srcdir}/*/config-lang.
in ..
7814 # The odd quoting in the next line works around
7815 # an apparent bug in bash 1.12 on linux.
7816 ${srcdir}/[*]/config-lang.
in)
7819 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7820 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7821 for other
in $this_lang_requires
7823 case ,${enable_languages}, in
7829 enable_languages
="$enable_languages,$other"
7838 for lang
in ${srcdir}/*/config-lang.
in ..
7842 # The odd quoting in the next line works around
7843 # an apparent bug in bash 1.12 on linux.
7844 ${srcdir}/[*]/config-lang.
in) ;;
7846 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7847 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7848 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7849 if test "x$lang_alias" = x
7851 echo "$lang doesn't set \$language." 1>&2
7854 case ${build_by_default},${enable_languages}, in
7855 *,$lang_alias,*) add_this_lang
=yes ;;
7856 no
,*) add_this_lang
=no
;;
7857 *,all
,*) add_this_lang
=yes ;;
7858 *) add_this_lang
=no
;;
7860 if test x
"${add_this_lang}" = xyes
; then
7862 ${srcdir}/ada
/config-lang.
in)
7863 if test x
$have_gnat = xyes
; then
7864 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7868 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7876 # Make gthr-default.h if we have a thread file.
7878 if test $thread_file != single
; then
7879 rm -f gthr-default.h
7880 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7881 gthread_flags
=-DHAVE_GTHR_DEFAULT
7885 # Find out what GC implementation we want, or may, use.
7886 # Check whether --with-gc or --without-gc was given.
7887 if test "${with_gc+set}" = set; then
7894 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7902 echo "Using $GGC for garbage collection."
7904 # Use the system's zlib library.
7906 zlibinc
="-I\$(srcdir)/../zlib"
7907 # Check whether --with-system-zlib or --without-system-zlib was given.
7908 if test "${with_system_zlib+set}" = set; then
7909 withval
="$with_system_zlib"
7919 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7920 echo "configure:7921: checking whether to enable maintainer-specific portions of Makefiles" >&5
7921 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7922 if test "${enable_maintainer_mode+set}" = set; then
7923 enableval
="$enable_maintainer_mode"
7924 maintainer_mode
=$enableval
7930 echo "$ac_t""$maintainer_mode" 1>&6
7932 if test "$maintainer_mode" = "yes"; then
7938 # With Setjmp/Longjmp based exception handling.
7939 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7940 if test "${enable_sjlj_exceptions+set}" = set; then
7941 enableval
="$enable_sjlj_exceptions"
7942 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
7943 cat >> confdefs.h
<<EOF
7944 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
7950 # Make empty files to contain the specs and options for each language.
7951 # Then add #include lines to for a compiler that has specs and/or options.
7956 for subdir
in .
$subdirs
7958 if test -f $srcdir/$subdir/lang-specs.h
; then
7959 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7961 if test -f $srcdir/$subdir/lang-options.h
; then
7962 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
7964 if test -f $srcdir/$subdir/$subdir-tree.def
; then
7965 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7969 # These (without "all_") are set in each config-lang.in.
7970 # `language' must be a single word so is spelled singularly.
7975 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc'
7976 # List of language makefile fragments.
7979 # Add the language fragments.
7980 # Languages are added via two mechanisms. Some information must be
7981 # recorded in makefile variables, these are defined in config-lang.in.
7982 # We accumulate them and plug them into the main Makefile.
7983 # The other mechanism is a set of hooks for each of the main targets
7984 # like `clean', `install', etc.
7986 language_fragments
="Make-lang"
7987 language_hooks
="Make-hooks"
7989 for s
in ..
$subdirs
7998 .
${srcdir}/$s/config-lang.
in
7999 if test "x$language" = x
8001 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8004 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8005 if test -f ${srcdir}/$s/Makefile.
in
8006 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8008 all_languages
="$all_languages $language"
8009 if test "x$boot_language" = xyes
8011 all_boot_languages
="$all_boot_languages $language"
8013 all_compilers
="$all_compilers $compilers"
8014 all_stagestuff
="$all_stagestuff $stagestuff"
8015 all_outputs
="$all_outputs $outputs"
8020 for language
in ..
$all_languages
8022 if test $language != ".."
8024 check_languages
="$check_languages check-$language"
8028 # Since we can't use `::' targets, we link each language in
8029 # with a set of hooks, reached indirectly via lang.${target}.
8033 target_list
="all.build all.cross start.encap rest.encap \
8034 info dvi generated-manpages \
8035 install-normal install-common install-info install-man \
8037 mostlyclean clean distclean extraclean maintainer-clean \
8038 stage1 stage2 stage3 stage4"
8039 for t
in $target_list
8042 for lang
in ..
$all_languages
8044 if test $lang != ".."; then
8048 echo "lang.$t: $x" >> Make-hooks
8053 echo "dir ." > .gdbinit
8054 echo "dir ${srcdir}" >> .gdbinit
8055 if test x
$gdb_needs_out_file_path = xyes
8057 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8059 if test "x$subdirs" != x
; then
8062 echo "dir ${srcdir}/$s" >> .gdbinit
8065 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8067 # Define variables host_canonical and build_canonical
8068 # because some Cygnus local changes in the Makefile depend on them.
8069 build_canonical
=${build}
8070 host_canonical
=${host}
8072 if test "${host}" != "${target}" ; then
8073 target_subdir
=${target_alias}/
8079 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8080 # absolute path for gcc_tooldir based on inserting the number of up-directory
8081 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8082 # $(libsubdir)/@(unlibsubdir) based path.
8083 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8084 # make and thus we'd get different behavior depending on where we built the
8086 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8087 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8089 # An explanation of the sed strings:
8090 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8091 # -e 's|/$||' match a trailing forward slash and eliminates it
8092 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8093 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8095 # (*) Note this pattern overwrites the first character of the string
8096 # with a forward slash if one is not already present. This is not a
8097 # problem because the exact names of the sub-directories concerned is
8098 # unimportant, just the number of them matters.
8100 # The practical upshot of these patterns is like this:
8102 # prefix exec_prefix result
8103 # ------ ----------- ------
8105 # /foo/ /foo/bar ../
8106 # /foo /foo/bar/ ../
8107 # /foo/ /foo/bar/ ../
8108 # /foo /foo/bar/ugg ../../
8111 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8116 # Find a directory in which to install a shared libgcc.
8118 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8119 if test "${enable_version_specific_runtime_libs+set}" = set; then
8120 enableval
="$enable_version_specific_runtime_libs"
8125 # Check whether --with-slibdir or --without-slibdir was given.
8126 if test "${with_slibdir+set}" = set; then
8127 withval
="$with_slibdir"
8128 slibdir
="$with_slibdir"
8130 if test "${enable_version_specific_runtime_libs+set}" = set; then
8131 slibdir
='$(libsubdir)'
8132 elif test "$host" != "$target"; then
8133 slibdir
='$(build_tooldir)/lib'
8141 # Nothing to do for FLOAT_H, float_format already handled.
8142 objdir
=`${PWDCMD-pwd}`
8145 # Process the language and host/target makefile fragments.
8146 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8148 # Substitute configuration variables
8212 # Echo that links are built
8213 if test x
$host = x
$target
8221 if test x
$host != x
$build
8223 str3
=" on a $build system"
8226 if test "x$str2" != x ||
test "x$str3" != x
8231 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8233 if test "x$str2" != x ||
test "x$str3" != x
8235 echo " ${str2}${str3}." 1>&2
8238 # Truncate the target if necessary
8239 if test x
$host_truncate_target != x
; then
8240 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8243 # Configure the subdirectories
8244 # AC_CONFIG_SUBDIRS($subdirs)
8246 # Create the Makefile
8247 # and configure language subdirectories
8249 cat > confcache
<<\EOF
8250 # This file is a shell script that caches the results of configure
8251 # tests run on this system so they can be shared between configure
8252 # scripts and configure runs. It is not useful on other systems.
8253 # If it contains results you don't want to keep, you may remove or edit it.
8255 # By default, configure uses ./config.cache as the cache file,
8256 # creating it if it does not exist already. You can give configure
8257 # the --cache-file=FILE option to use a different cache file; that is
8258 # what configure does when it calls configure scripts in
8259 # subdirectories, so they share the cache.
8260 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8261 # config.status only pays attention to the cache file if you give it the
8262 # --recheck option to rerun configure.
8265 # The following way of writing the cache mishandles newlines in values,
8266 # but we know of no workaround that is simple, portable, and efficient.
8267 # So, don't put newlines in cache variables' values.
8268 # Ultrix sh set writes to stderr and can't be redirected directly,
8269 # and sets the high bit in the cache file unless we assign to the vars.
8271 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8273 # `set' does not quote correctly, so add quotes (double-quote substitution
8274 # turns \\\\ into \\, and sed turns \\ into \).
8276 -e "s/'/'\\\\''/g" \
8277 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8280 # `set' quotes correctly as required by POSIX, so do not add quotes.
8281 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8284 if cmp -s $cache_file confcache
; then
8287 if test -w $cache_file; then
8288 echo "updating cache $cache_file"
8289 cat confcache
> $cache_file
8291 echo "not updating unwritable cache $cache_file"
8296 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8298 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8299 # Let make expand exec_prefix.
8300 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8302 # Any assignment to VPATH causes Sun make to only execute
8303 # the first set of double-colon rules, so remove it if not needed.
8304 # If there is a colon in the path, we need to keep it.
8305 if test "x$srcdir" = x.
; then
8306 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8309 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8311 DEFS
=-DHAVE_CONFIG_H
8313 # Without the "./", some shells look in PATH for config.status.
8314 : ${CONFIG_STATUS=./config.status}
8316 echo creating
$CONFIG_STATUS
8317 rm -f $CONFIG_STATUS
8318 cat > $CONFIG_STATUS <<EOF
8320 # Generated automatically by configure.
8321 # Run this file to recreate the current configuration.
8322 # This directory was configured as follows,
8323 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8325 # $0 $ac_configure_args
8327 # Compiler output produced by configure, useful for debugging
8328 # configure, is in ./config.log if it exists.
8330 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8333 case "\$ac_option" in
8334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8335 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8336 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8337 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8338 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8340 -help | --help | --hel | --he | --h)
8341 echo "\$ac_cs_usage"; exit 0 ;;
8342 *) echo "\$ac_cs_usage"; exit 1 ;;
8346 ac_given_srcdir=$srcdir
8348 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8350 cat >> $CONFIG_STATUS <<EOF
8352 # Protect against being on the right side of a sed subst in config.status.
8353 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8354 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8358 s%@CFLAGS@%$CFLAGS%g
8359 s%@CPPFLAGS@%$CPPFLAGS%g
8360 s%@CXXFLAGS@%$CXXFLAGS%g
8361 s%@FFLAGS@%$FFLAGS%g
8363 s%@LDFLAGS@%$LDFLAGS%g
8365 s%@exec_prefix@%$exec_prefix%g
8366 s%@prefix@%$prefix%g
8367 s%@program_transform_name@%$program_transform_name%g
8368 s%@bindir@%$bindir%g
8369 s%@sbindir@%$sbindir%g
8370 s%@libexecdir@%$libexecdir%g
8371 s%@datadir@%$datadir%g
8372 s%@sysconfdir@%$sysconfdir%g
8373 s%@sharedstatedir@%$sharedstatedir%g
8374 s%@localstatedir@%$localstatedir%g
8375 s%@libdir@%$libdir%g
8376 s%@includedir@%$includedir%g
8377 s%@oldincludedir@%$oldincludedir%g
8378 s%@infodir@%$infodir%g
8379 s%@mandir@%$mandir%g
8380 s%@enable_multilib@%$enable_multilib%g
8381 s%@enable_shared@%$enable_shared%g
8383 s%@host_alias@%$host_alias%g
8384 s%@host_cpu@%$host_cpu%g
8385 s%@host_vendor@%$host_vendor%g
8386 s%@host_os@%$host_os%g
8387 s%@target@%$target%g
8388 s%@target_alias@%$target_alias%g
8389 s%@target_cpu@%$target_cpu%g
8390 s%@target_vendor@%$target_vendor%g
8391 s%@target_os@%$target_os%g
8393 s%@build_alias@%$build_alias%g
8394 s%@build_cpu@%$build_cpu%g
8395 s%@build_vendor@%$build_vendor%g
8396 s%@build_os@%$build_os%g
8398 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8399 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8400 s%@GNATBIND@%$GNATBIND%g
8402 s%@strict1_warn@%$strict1_warn%g
8404 s%@warn_cflags@%$warn_cflags%g
8405 s%@stage1_cflags@%$stage1_cflags%g
8406 s%@SET_MAKE@%$SET_MAKE%g
8410 s%@RANLIB@%$RANLIB%g
8411 s%@INSTALL@%$INSTALL%g
8412 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8413 s%@INSTALL_DATA@%$INSTALL_DATA%g
8414 s%@have_mktemp_command@%$have_mktemp_command%g
8415 s%@MAKEINFO@%$MAKEINFO%g
8416 s%@BUILD_INFO@%$BUILD_INFO%g
8417 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8420 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8421 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8422 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8423 s%@LIBICONV@%$LIBICONV%g
8424 s%@manext@%$manext%g
8425 s%@objext@%$objext%g
8426 s%@FORBUILD@%$FORBUILD%g
8427 s%@PACKAGE@%$PACKAGE%g
8428 s%@VERSION@%$VERSION%g
8429 s%@ALLOCA@%$ALLOCA%g
8430 s%@GLIBC21@%$GLIBC21%g
8431 s%@USE_NLS@%$USE_NLS%g
8432 s%@MSGFMT@%$MSGFMT%g
8433 s%@GMSGFMT@%$GMSGFMT%g
8434 s%@XGETTEXT@%$XGETTEXT%g
8435 s%@INTLBISON@%$INTLBISON%g
8436 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8437 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8438 s%@CATALOGS@%$CATALOGS%g
8439 s%@CATOBJEXT@%$CATOBJEXT%g
8440 s%@INTLLIBS@%$INTLLIBS%g
8441 s%@INTLDEPS@%$INTLDEPS%g
8442 s%@INTLOBJS@%$INTLOBJS%g
8444 s%@DATADIRNAME@%$DATADIRNAME%g
8445 s%@INSTOBJEXT@%$INSTOBJEXT%g
8446 s%@GENCAT@%$GENCAT%g
8447 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8448 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8451 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8452 s%@inhibit_libc@%$inhibit_libc%g
8453 s%@HOST_PREFIX@%$HOST_PREFIX%g
8454 s%@HOST_PREFIX_1@%$HOST_PREFIX_1%g
8455 s%@HOST_CC@%$HOST_CC%g
8456 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8457 s%@STMP_FIXINC@%$STMP_FIXINC%g
8458 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8459 s%@libgcc_visibility@%$libgcc_visibility%g
8460 s%@gthread_flags@%$gthread_flags%g
8462 s%@zlibdir@%$zlibdir%g
8463 s%@zlibinc@%$zlibinc%g
8465 s%@build_canonical@%$build_canonical%g
8466 s%@host_canonical@%$host_canonical%g
8467 s%@target_subdir@%$target_subdir%g
8468 s%@gcc_tooldir@%$gcc_tooldir%g
8469 s%@dollar@%$dollar%g
8470 s%@slibdir@%$slibdir%g
8471 s%@objdir@%$objdir%g
8472 s%@subdirs@%$subdirs%g
8473 s%@all_boot_languages@%$all_boot_languages%g
8474 s%@all_compilers@%$all_compilers%g
8475 s%@all_lang_makefiles@%$all_lang_makefiles%g
8476 s%@all_languages@%$all_languages%g
8477 s%@all_stagestuff@%$all_stagestuff%g
8478 s%@build_exeext@%$build_exeext%g
8479 s%@build_install_headers_dir@%$build_install_headers_dir%g
8480 s%@build_xm_file_list@%$build_xm_file_list%g
8481 s%@build_xm_file@%$build_xm_file%g
8482 s%@build_xm_defines@%$build_xm_defines%g
8483 s%@check_languages@%$check_languages%g
8484 s%@cc_set_by_configure@%$cc_set_by_configure%g
8485 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8486 s%@cpp_install_dir@%$cpp_install_dir%g
8487 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8488 s%@dep_tmake_file@%$dep_tmake_file%g
8489 s%@extra_headers_list@%$extra_headers_list%g
8490 s%@extra_objs@%$extra_objs%g
8491 s%@extra_parts@%$extra_parts%g
8492 s%@extra_passes@%$extra_passes%g
8493 s%@extra_programs@%$extra_programs%g
8494 s%@float_h_file@%$float_h_file%g
8495 s%@gcc_config_arguments@%$gcc_config_arguments%g
8496 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8497 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8498 s%@gcc_version@%$gcc_version%g
8499 s%@gcc_version_full@%$gcc_version_full%g
8500 s%@gcc_version_trigger@%$gcc_version_trigger%g
8501 s%@host_exeext@%$host_exeext%g
8502 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8503 s%@host_xm_file_list@%$host_xm_file_list%g
8504 s%@host_xm_file@%$host_xm_file%g
8505 s%@host_xm_defines@%$host_xm_defines%g
8506 s%@install@%$install%g
8507 s%@lang_options_files@%$lang_options_files%g
8508 s%@lang_specs_files@%$lang_specs_files%g
8509 s%@lang_tree_files@%$lang_tree_files%g
8510 s%@local_prefix@%$local_prefix%g
8511 s%@md_file@%$md_file%g
8512 s%@objc_boehm_gc@%$objc_boehm_gc%g
8513 s%@out_file@%$out_file%g
8514 s%@out_object_file@%$out_object_file%g
8515 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8516 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8517 s%@symbolic_link@%$symbolic_link%g
8518 s%@thread_file@%$thread_file%g
8519 s%@tm_file_list@%$tm_file_list%g
8520 s%@tm_file@%$tm_file%g
8521 s%@tm_p_file_list@%$tm_p_file_list%g
8522 s%@tm_p_file@%$tm_p_file%g
8523 s%@xm_file@%$xm_file%g
8524 s%@xm_defines@%$xm_defines%g
8525 s%@c_target_objs@%$c_target_objs%g
8526 s%@cxx_target_objs@%$cxx_target_objs%g
8527 s%@target_cpu_default@%$target_cpu_default%g
8528 /@target_overrides@/r $target_overrides
8529 s%@target_overrides@%%g
8530 /@host_overrides@/r $host_overrides
8531 s%@host_overrides@%%g
8532 /@language_fragments@/r $language_fragments
8533 s%@language_fragments@%%g
8534 /@language_hooks@/r $language_hooks
8535 s%@language_hooks@%%g
8540 cat >> $CONFIG_STATUS <<\EOF
8542 # Split the substitutions into bite-sized pieces for seds with
8543 # small command number limits, like on Digital OSF/1 and HP-UX.
8544 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8545 ac_file
=1 # Number of current file.
8546 ac_beg
=1 # First line for current file.
8547 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8550 while $ac_more_lines; do
8551 if test $ac_beg -gt 1; then
8552 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8554 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8556 if test ! -s conftest.s
$ac_file; then
8558 rm -f conftest.s
$ac_file
8560 if test -z "$ac_sed_cmds"; then
8561 ac_sed_cmds
="sed -f conftest.s$ac_file"
8563 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8565 ac_file
=`expr $ac_file + 1`
8567 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8570 if test -z "$ac_sed_cmds"; then
8575 cat >> $CONFIG_STATUS <<EOF
8577 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8579 cat >> $CONFIG_STATUS <<\EOF
8580 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8583 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8584 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8585 *) ac_file_in
="${ac_file}.in" ;;
8588 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8590 # Remove last slash and all that follows it. Not all systems have dirname.
8591 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8593 # The file is in a subdirectory.
8594 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8595 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8596 # A "../" for each directory in $ac_dir_suffix.
8597 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8599 ac_dir_suffix
= ac_dots
=
8602 case "$ac_given_srcdir" in
8604 if test -z "$ac_dots"; then top_srcdir
=.
8605 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8606 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8608 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8609 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8613 echo creating
"$ac_file"
8615 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8617 *Makefile
*) ac_comsub
="1i\\
8618 # $configure_input" ;;
8622 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8624 s%@configure_input@%$configure_input%g
8625 s%@srcdir@%$srcdir%g
8626 s%@top_srcdir@%$top_srcdir%g
8627 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8631 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8632 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8634 # ac_d sets the value in "#define NAME VALUE" lines.
8635 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8636 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8639 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8640 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8641 ac_uB
='\([ ]\)%\1#\2define\3'
8644 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8645 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8646 ac_eB
='$%\1#\2define\3'
8650 if test "${CONFIG_HEADERS+set}" != set; then
8652 cat >> $CONFIG_STATUS <<EOF
8653 CONFIG_HEADERS="auto-host.h:config.in"
8655 cat >> $CONFIG_STATUS <<\EOF
8657 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8660 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8661 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8662 *) ac_file_in
="${ac_file}.in" ;;
8665 echo creating
$ac_file
8667 rm -f conftest.frag conftest.
in conftest.out
8668 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8669 cat $ac_file_inputs > conftest.
in
8673 # Transform confdefs.h into a sed script conftest.vals that substitutes
8674 # the proper values into config.h.in to produce config.h. And first:
8675 # Protect against being on the right side of a sed subst in config.status.
8676 # Protect against being in an unquoted here document in config.status.
8678 cat > conftest.hdr
<<\EOF
8681 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8685 sed -n -f conftest.hdr confdefs.h > conftest.vals
8688 # This sed command replaces #undef with comments. This is necessary, for
8689 # example, in the case of _POSIX_SOURCE, which is predefined and required
8690 # on some systems where configure will not decide to define it.
8691 cat >> conftest.vals <<\EOF
8692 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8695 # Break up conftest.vals because some shells have a limit on
8696 # the size of here documents, and old seds have small limits too.
8701 ac_lines=`grep -c . conftest.vals
`
8702 # grep -c gives empty output for an empty file on some AIX systems.
8703 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8704 # Write a limited-size here document to conftest.frag.
8705 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8706 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8708 sed -f conftest.frag conftest.in > conftest.out
8710 mv conftest.out conftest.in
8712 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8714 mv conftest.tail conftest.vals
8718 cat >> $CONFIG_STATUS <<\EOF
8719 rm -f conftest.frag conftest.h
8720 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8721 cat conftest.in >> conftest.h
8723 if cmp -s $ac_file conftest.h 2>/dev/null; then
8724 echo "$ac_file is unchanged"
8727 # Remove last slash and all that follows it. Not all systems have dirname.
8728 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8729 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8730 # The file is in a subdirectory.
8731 test ! -d "$ac_dir" && mkdir "$ac_dir"
8734 mv conftest.h $ac_file
8739 cat >> $CONFIG_STATUS <<EOF
8742 symbolic_link='$symbolic_link'
8745 cat >> $CONFIG_STATUS <<\EOF
8746 for ac_file in $CONFIG_FILES; do
8747 # Support "outfile[:infile[:infile...]]"
8749 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8751 # PO directories have a Makefile.in generated from Makefile.in.in.
8752 case "$ac_file" in */Makefile.in)
8753 # Adjust a relative srcdir.
8754 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8755 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8756 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8757 # In autoconf-2.13 it is called $ac_given_srcdir.
8758 # In autoconf-2.50 it is called $srcdir.
8759 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8760 case "$ac_given_srcdir" in
8761 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8762 /*) top_srcdir="$ac_given_srcdir" ;;
8763 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8765 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8766 rm -f "$ac_dir/POTFILES"
8767 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8768 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8769 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8770 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8776 case x$CONFIG_HEADERS in
8777 xauto-host.h:config.in)
8780 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8781 # bootstrapping and the installation procedure can still use
8782 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8783 # FLAGS_TO_PASS has been modified to solve the problem there.
8784 # This is virtually a duplicate of what happens in configure.lang; we do
8785 # an extra check to make sure this only happens if ln -s can be used.
8786 if test "$symbolic_link" = "ln -s"; then
8787 for d in .. ${subdirs} fixinc ; do
8788 if test $d != ..; then
8789 STARTDIR=`${PWDCMD-pwd}`
8791 for t in stage1 stage2 stage3 stage4 include
8794 $symbolic_link ../$t $t 2>/dev/null
8800 # Avoid having to add intl to our include paths.
8801 if test -f intl/libintl.h; then
8802 echo creating libintl.h
8803 echo '#include "intl/libintl.h"' >libintl.h
8808 chmod +x $CONFIG_STATUS
8809 rm -fr confdefs* $ac_clean_files
8810 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1