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 gawk mawk 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 \
3445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3446 echo "configure:3447: checking for $ac_func" >&5
3447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 cat > conftest.
$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 /* System header to define __stub macros and hopefully few prototypes,
3454 which can conflict with char $ac_func(); below. */
3456 /* Override any gcc2 internal prototype to avoid an error. */
3457 /* We use char because int might match the return type of a gcc2
3458 builtin and then its argument prototype would still apply. */
3463 /* The GNU C library defines this for functions which it implements
3464 to always fail with ENOSYS. Some functions are actually named
3465 something starting with __ and the normal name is an alias. */
3466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3474 if { (eval echo configure
:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3476 eval "ac_cv_func_$ac_func=yes"
3478 echo "configure: failed program was:" >&5
3479 cat conftest.
$ac_ext >&5
3481 eval "ac_cv_func_$ac_func=no"
3486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3487 echo "$ac_t""yes" 1>&6
3488 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3489 cat >> confdefs.h
<<EOF
3490 #define $ac_tr_func 1
3494 echo "$ac_t""no" 1>&6
3499 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3500 echo "configure:3501: checking for ssize_t" >&5
3501 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 cat > conftest.
$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 #include <sys/types.h>
3513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3514 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3516 ac_cv_type_ssize_t
=yes
3519 ac_cv_type_ssize_t
=no
3524 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3525 if test $ac_cv_type_ssize_t = no
; then
3526 cat >> confdefs.h
<<\EOF
3533 # Try to determine the array type of the second argument of getgroups
3534 # for the target system (int or gid_t).
3535 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3536 echo "configure:3537: checking for uid_t in sys/types.h" >&5
3537 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 #include <sys/types.h>
3545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3546 egrep "uid_t" >/dev
/null
2>&1; then
3548 ac_cv_type_uid_t
=yes
3557 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3558 if test $ac_cv_type_uid_t = no
; then
3559 cat >> confdefs.h
<<\EOF
3563 cat >> confdefs.h
<<\EOF
3569 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3570 echo "configure:3571: checking type of array argument to getgroups" >&5
3571 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 if test "$cross_compiling" = yes; then
3575 ac_cv_type_getgroups
=cross
3577 cat > conftest.
$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3581 /* Thanks to Mike Rendell for this test. */
3582 #include <sys/types.h>
3585 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3590 union { gid_t gval; long lval; } val;
3593 for (i = 0; i < NGID; i++)
3594 gidset[i] = val.gval;
3595 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3597 /* Exit non-zero if getgroups seems to require an array of ints. This
3598 happens when gid_t is short but getgroups modifies an array of ints. */
3599 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3603 if { (eval echo configure
:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3605 ac_cv_type_getgroups
=gid_t
3607 echo "configure: failed program was:" >&5
3608 cat conftest.
$ac_ext >&5
3610 ac_cv_type_getgroups
=int
3615 if test $ac_cv_type_getgroups = cross
; then
3616 cat > conftest.
$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3624 ac_cv_type_getgroups
=gid_t
3627 ac_cv_type_getgroups
=int
3634 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3635 cat >> confdefs.h
<<EOF
3636 #define GETGROUPS_T $ac_cv_type_getgroups
3640 if test "${target}" = "${build}"; then
3641 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3644 # This condition may need some tweaking. It should include all
3645 # targets where the array type of the second argument of getgroups
3646 # is int and the type of gid_t is not equivalent to int.
3647 *-*-sunos* |
*-*-ultrix*)
3648 TARGET_GETGROUPS_T
=int
3651 TARGET_GETGROUPS_T
=gid_t
3657 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3658 echo "configure:3659: checking whether the printf functions support %p" >&5
3659 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 if test "$cross_compiling" = yes; then
3663 gcc_cv_func_printf_ptr
=no
3665 cat > conftest.
$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3673 char *p = buf, *q = NULL;
3674 sprintf(buf, "%p", p);
3675 sscanf(buf, "%p", &q);
3679 if { (eval echo configure
:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3681 gcc_cv_func_printf_ptr
=yes
3683 echo "configure: failed program was:" >&5
3684 cat conftest.
$ac_ext >&5
3686 gcc_cv_func_printf_ptr
=no
3691 rm -f core core.
* *.core
3694 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3695 if test $gcc_cv_func_printf_ptr = yes ; then
3696 cat >> confdefs.h
<<\EOF
3697 #define HAVE_PRINTF_PTR 1
3705 { echo "configure: error:
3706 *** UWIN may not be used as a host platform because
3707 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3710 # Under VMS, vfork works very different than on Unix. The standard test
3711 # won't work, and it isn't easily adaptable. It makes more sense to
3713 ac_cv_func_vfork_works
=yes
3716 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3717 echo "configure:3718: checking for pid_t" >&5
3718 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.
$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 #include <sys/types.h>
3730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3731 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3733 ac_cv_type_pid_t
=yes
3741 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3742 if test $ac_cv_type_pid_t = no
; then
3743 cat >> confdefs.h
<<\EOF
3749 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3750 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3751 echo "configure:3752: checking for vfork.h" >&5
3752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.
$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3760 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3761 { (eval echo configure
:3762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3762 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3763 if test -z "$ac_err"; then
3765 eval "ac_cv_header_$ac_safe=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.
$ac_ext >&5
3771 eval "ac_cv_header_$ac_safe=no"
3775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 cat >> confdefs.h
<<\EOF
3778 #define HAVE_VFORK_H 1
3782 echo "$ac_t""no" 1>&6
3785 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3786 echo "configure:3787: checking for working vfork" >&5
3787 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 if test "$cross_compiling" = yes; then
3791 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3792 echo "configure:3793: checking for vfork" >&5
3793 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3796 cat > conftest.
$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 /* System header to define __stub macros and hopefully few prototypes,
3800 which can conflict with char vfork(); below. */
3802 /* Override any gcc2 internal prototype to avoid an error. */
3803 /* We use char because int might match the return type of a gcc2
3804 builtin and then its argument prototype would still apply. */
3809 /* The GNU C library defines this for functions which it implements
3810 to always fail with ENOSYS. Some functions are actually named
3811 something starting with __ and the normal name is an alias. */
3812 #if defined (__stub_vfork) || defined (__stub___vfork)
3820 if { (eval echo configure
:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3822 eval "ac_cv_func_vfork=yes"
3824 echo "configure: failed program was:" >&5
3825 cat conftest.
$ac_ext >&5
3827 eval "ac_cv_func_vfork=no"
3832 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3833 echo "$ac_t""yes" 1>&6
3836 echo "$ac_t""no" 1>&6
3839 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3841 cat > conftest.
$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 /* Thanks to Paul Eggert for this test. */
3846 #include <sys/types.h>
3847 #include <sys/stat.h>
3848 #ifdef HAVE_UNISTD_H
3854 /* On some sparc systems, changes by the child to local and incoming
3855 argument registers are propagated back to the parent.
3856 The compiler is told about this with #include <vfork.h>,
3857 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3858 Test for this by using a static variable whose address
3859 is put into a register that is clobbered by the vfork. */
3862 sparc_address_test (int arg)
3864 sparc_address_test (arg) int arg;
3882 pid_t parent = getpid ();
3885 sparc_address_test ();
3890 /* Here is another test for sparc vfork register problems.
3891 This test uses lots of local variables, at least
3892 as many local variables as main has allocated so far
3893 including compiler temporaries. 4 locals are enough for
3894 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3895 A buggy compiler should reuse the register of parent
3896 for one of the local variables, since it will think that
3897 parent can't possibly be used any more in this routine.
3898 Assigning to the local variable will thus munge parent
3899 in the parent process. */
3901 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3902 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3903 /* Convince the compiler that p..p7 are live; otherwise, it might
3904 use the same hardware register for all 8 local variables. */
3905 if (p != p1 || p != p2 || p != p3 || p != p4
3906 || p != p5 || p != p6 || p != p7)
3909 /* On some systems (e.g. IRIX 3.3),
3910 vfork doesn't separate parent from child file descriptors.
3911 If the child closes a descriptor before it execs or exits,
3912 this munges the parent's descriptor as well.
3913 Test for this by closing stdout in the child. */
3914 _exit(close(fileno(stdout)) != 0);
3919 while (wait(&status) != child)
3922 /* Was there some problem with vforking? */
3925 /* Did the child fail? (This shouldn't happen.) */
3928 /* Did the vfork/compiler bug occur? */
3929 || parent != getpid()
3931 /* Did the file descriptor bug occur? */
3932 || fstat(fileno(stdout), &st) != 0
3937 if { (eval echo configure
:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3939 ac_cv_func_vfork_works
=yes
3941 echo "configure: failed program was:" >&5
3942 cat conftest.
$ac_ext >&5
3944 ac_cv_func_vfork_works
=no
3951 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3952 if test $ac_cv_func_vfork_works = no
; then
3953 cat >> confdefs.h
<<\EOF
3959 for ac_func
in getpagesize
3961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3962 echo "configure:3963: checking for $ac_func" >&5
3963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.
$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* System header to define __stub macros and hopefully few prototypes,
3970 which can conflict with char $ac_func(); below. */
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3979 /* The GNU C library defines this for functions which it implements
3980 to always fail with ENOSYS. Some functions are actually named
3981 something starting with __ and the normal name is an alias. */
3982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3990 if { (eval echo configure
:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3992 eval "ac_cv_func_$ac_func=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 eval "ac_cv_func_$ac_func=no"
4002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4003 echo "$ac_t""yes" 1>&6
4004 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4005 cat >> confdefs.h
<<EOF
4006 #define $ac_tr_func 1
4010 echo "$ac_t""no" 1>&6
4014 # The test program for the next two tests is the same except for one
4016 cat >ct-mmap.inc
<<'EOF'
4017 #include <sys/types.h>
4018 #include <sys/mman.h>
4024 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4025 # define MAP_ANONYMOUS MAP_ANON
4028 /* This mess was copied from the GNU getpagesize.h. */
4029 #ifndef HAVE_GETPAGESIZE
4030 # ifdef HAVE_UNISTD_H
4031 # include <unistd.h>
4034 /* Assume that all systems that can run configure have sys/param.h. */
4035 # ifndef HAVE_SYS_PARAM_H
4036 # define HAVE_SYS_PARAM_H 1
4039 # ifdef _SC_PAGESIZE
4040 # define getpagesize() sysconf(_SC_PAGESIZE)
4041 # else /* no _SC_PAGESIZE */
4042 # ifdef HAVE_SYS_PARAM_H
4043 # include <sys/param.h>
4044 # ifdef EXEC_PAGESIZE
4045 # define getpagesize() EXEC_PAGESIZE
4046 # else /* no EXEC_PAGESIZE */
4048 # define getpagesize() NBPG * CLSIZE
4051 # endif /* no CLSIZE */
4052 # else /* no NBPG */
4054 # define getpagesize() NBPC
4055 # else /* no NBPC */
4057 # define getpagesize() PAGESIZE
4058 # endif /* PAGESIZE */
4059 # endif /* no NBPC */
4060 # endif /* no NBPG */
4061 # endif /* no EXEC_PAGESIZE */
4062 # else /* no HAVE_SYS_PARAM_H */
4063 # define getpagesize() 8192 /* punt totally */
4064 # endif /* no HAVE_SYS_PARAM_H */
4065 # endif /* no _SC_PAGESIZE */
4067 #endif /* no HAVE_GETPAGESIZE */
4070 # define MAP_FAILED -1
4074 #define perror_exit(str, val) \
4075 do { perror(str); exit(val); } while (0)
4077 /* Some versions of cygwin mmap require that munmap is called with the
4078 same parameters as mmap. GCC expects that this is not the case.
4079 Test for various forms of this problem. Warning - icky signal games. */
4081 static sigset_t unblock_sigsegv;
4091 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4092 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4094 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4095 MAP_PRIVATE, devzero, 0);
4103 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4107 /* Basic functionality test. */
4111 char *x = anonmap (pg);
4112 if (x == (char *) MAP_FAILED)
4113 perror_exit("test 0 mmap", 2);
4117 if (munmap(x, pg) < 0)
4118 perror_exit("test 0 munmap", 3);
4121 /* 1. If we map a 2-page region and unmap its second page, the first page
4126 char *x = anonmap (pg * 2);
4127 if (x == (char *)MAP_FAILED)
4128 perror_exit ("test 1 mmap", 4);
4130 signal (SIGSEGV, sigsegv);
4132 perror_exit ("test 1 fault", 5);
4137 if (munmap (x + pg, pg) < 0)
4138 perror_exit ("test 1 munmap 1", 6);
4141 if (setjmp (r) == 0)
4144 perror_exit ("test 1 no fault", 7);
4146 if (munmap (x, pg) < 0)
4147 perror_exit ("test 1 munmap 2", 8);
4150 /* 2. If we map a 2-page region and unmap its first page, the second
4151 page must remain. */
4155 char *x = anonmap (pg * 2);
4156 if (x == (char *)MAP_FAILED)
4157 perror_exit ("test 2 mmap", 9);
4159 signal (SIGSEGV, sigsegv);
4161 perror_exit ("test 2 fault", 10);
4166 if (munmap (x, pg) < 0)
4167 perror_exit ("test 2 munmap 1", 11);
4171 if (setjmp (r) == 0)
4174 perror_exit ("test 2 no fault", 12);
4177 if (munmap (x+pg, pg) < 0)
4178 perror_exit ("test 2 munmap 2", 13);
4181 /* 3. If we map two adjacent 1-page regions and unmap them both with
4182 one munmap, both must go away.
4184 Getting two adjacent 1-page regions with two mmap calls is slightly
4185 tricky. All OS's tested skip over already-allocated blocks; therefore
4186 we have been careful to unmap all allocated regions in previous tests.
4187 HP/UX allocates pages backward in memory. No OS has yet been observed
4188 to be so perverse as to leave unmapped space between consecutive calls
4197 if (x == (char *)MAP_FAILED)
4198 perror_exit ("test 3 mmap 1", 14);
4200 if (y == (char *)MAP_FAILED)
4201 perror_exit ("test 3 mmap 2", 15);
4206 z = y, y = x, x = z;
4209 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4210 (unsigned long)x, (unsigned long)y);
4215 signal (SIGSEGV, sigsegv);
4217 perror_exit ("test 3 fault", 17);
4222 if (munmap (x, pg*2) < 0)
4223 perror_exit ("test 3 munmap", 18);
4225 if (setjmp (r) == 0)
4228 perror_exit ("test 3 no fault 1", 19);
4231 signal (SIGSEGV, sigsegv);
4232 if (setjmp (r) == 0)
4235 perror_exit ("test 3 no fault 2", 20);
4242 sigemptyset (&unblock_sigsegv);
4243 sigaddset (&unblock_sigsegv, SIGSEGV);
4244 pg = getpagesize ();
4245 #ifndef USE_MAP_ANON
4246 devzero = open ("/dev/zero", O_RDWR);
4248 perror_exit ("open /dev/zero", 1);
4260 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4261 echo "configure:4262: checking for working mmap from /dev/zero" >&5
4262 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 if test "$cross_compiling" = yes; then
4266 # If this is not cygwin, and /dev/zero is a character device, it's probably
4267 # safe to assume it works.
4269 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4270 * ) if test -c /dev
/zero
4271 then ac_cv_func_mmap_dev_zero
=yes
4272 else ac_cv_func_mmap_dev_zero
=no
4276 cat > conftest.
$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 #include "ct-mmap.inc"
4281 if { (eval echo configure
:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4283 ac_cv_func_mmap_dev_zero
=yes
4285 echo "configure: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4289 then ac_cv_func_mmap_dev_zero
=no
4290 else ac_cv_func_mmap_dev_zero
=buggy
4299 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4300 if test $ac_cv_func_mmap_dev_zero = yes; then
4301 cat >> confdefs.h
<<\EOF
4302 #define HAVE_MMAP_DEV_ZERO 1
4307 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4308 echo "configure:4309: checking for working mmap with MAP_ANON(YMOUS)" >&5
4309 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 if test "$cross_compiling" = yes; then
4313 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4314 # just because it's there. Some SCO Un*xen define it but don't implement it.
4315 ac_cv_func_mmap_anon
=no
4317 cat > conftest.
$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 #define USE_MAP_ANON
4321 #include "ct-mmap.inc"
4323 if { (eval echo configure
:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4325 ac_cv_func_mmap_anon
=yes
4327 echo "configure: failed program was:" >&5
4328 cat conftest.
$ac_ext >&5
4331 then ac_cv_func_mmap_anon
=no
4332 else ac_cv_func_mmap_anon
=buggy
4341 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4342 if test $ac_cv_func_mmap_anon = yes; then
4343 cat >> confdefs.h
<<\EOF
4344 #define HAVE_MMAP_ANON 1
4350 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4351 echo "configure:4352: checking for working mmap of a file" >&5
4352 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 # Create a file one thousand bytes long.
4356 for i
in 1 2 3 4 5 6 7 8 9 0
4357 do for j
in 1 2 3 4 5 6 7 8 9 0
4360 done > conftestdata$$
4362 if test "$cross_compiling" = yes; then
4363 ac_cv_func_mmap_file
=no
4365 cat > conftest.
$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4369 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4370 Richard Henderson and Alexandre Oliva.
4371 Check whether read-only mmap of a plain file works. */
4372 #include <sys/types.h>
4373 #include <sys/stat.h>
4375 #include <sys/mman.h>
4383 fd = open("conftestdata$$", O_RDONLY);
4387 if (fstat (fd, &st))
4390 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4391 if (x == (char *) -1)
4394 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4397 if (munmap(x, st.st_size) < 0)
4403 if { (eval echo configure
:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4405 ac_cv_func_mmap_file
=yes
4407 echo "configure: failed program was:" >&5
4408 cat conftest.
$ac_ext >&5
4410 ac_cv_func_mmap_file
=no
4417 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4418 if test $ac_cv_func_mmap_file = yes; then
4419 cat >> confdefs.h
<<\EOF
4420 #define HAVE_MMAP_FILE 1
4428 am_cv_lib_iconv_ldpath
=
4429 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4430 if test "${with_libiconv_prefix+set}" = set; then
4431 withval
="$with_libiconv_prefix"
4433 for dir
in `echo "$withval" | tr : ' '`; do
4434 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4435 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4441 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4442 echo "configure:4443: checking for iconv" >&5
4443 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4447 am_cv_func_iconv
="no, consider installing GNU libiconv"
4449 cat > conftest.
$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4455 iconv_t cd = iconv_open("","");
4456 iconv(cd,NULL,NULL,NULL,NULL);
4460 if { (eval echo configure
:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4462 am_cv_func_iconv
=yes
4464 echo "configure: failed program was:" >&5
4465 cat conftest.
$ac_ext >&5
4468 if test "$am_cv_func_iconv" != yes; then
4469 am_save_LIBS
="$LIBS"
4470 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4471 cat > conftest.
$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4477 iconv_t cd = iconv_open("","");
4478 iconv(cd,NULL,NULL,NULL,NULL);
4482 if { (eval echo configure
:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4485 am_cv_func_iconv
=yes
4487 echo "configure: failed program was:" >&5
4488 cat conftest.
$ac_ext >&5
4491 LIBS
="$am_save_LIBS"
4496 echo "$ac_t""$am_cv_func_iconv" 1>&6
4497 if test "$am_cv_func_iconv" = yes; then
4498 cat >> confdefs.h
<<\EOF
4499 #define HAVE_ICONV 1
4502 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4503 echo "configure:4504: checking for iconv declaration" >&5
4504 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4508 cat > conftest.
$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4518 #if defined(__STDC__) || defined(__cplusplus)
4519 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4528 if { (eval echo configure
:4529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4530 am_cv_proto_iconv_arg1
=""
4532 echo "configure: failed program was:" >&5
4533 cat conftest.
$ac_ext >&5
4535 am_cv_proto_iconv_arg1
="const"
4538 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);"
4541 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4542 echo "$ac_t""${ac_t:-
4543 }$am_cv_proto_iconv" 1>&6
4544 cat >> confdefs.h
<<EOF
4545 #define ICONV_CONST $am_cv_proto_iconv_arg1
4550 if test "$am_cv_lib_iconv" = yes; then
4551 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4556 # We will need to find libiberty.h and ansidecl.h
4557 saved_CFLAGS
="$CFLAGS"
4558 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4559 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4560 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4561 fprintf_unlocked strstr errno \
4562 malloc realloc calloc free
basename getopt
clock
4564 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4565 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4566 echo "configure:4567: checking whether $ac_func is declared" >&5
4567 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4574 #define $ac_tr_decl 1
4576 #include "ansidecl.h"
4581 char *(*pfn) = (char *(*)) $ac_func ;
4585 if { (eval echo configure
:4586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4587 eval "gcc_cv_have_decl_$ac_func=yes"
4589 echo "configure: failed program was:" >&5
4590 cat conftest.
$ac_ext >&5
4592 eval "gcc_cv_have_decl_$ac_func=no"
4597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4599 #define $ac_tr_decl 1
4603 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4604 #define $ac_tr_decl 0
4610 if test x
= y
; then
4611 cat >> confdefs.h
<<\EOF
4612 #define HAVE_DECL_GETENV 1
4614 cat >> confdefs.h
<<\EOF
4615 #define HAVE_DECL_ATOL 1
4617 cat >> confdefs.h
<<\EOF
4618 #define HAVE_DECL_SBRK 1
4620 cat >> confdefs.h
<<\EOF
4621 #define HAVE_DECL_ABORT 1
4623 cat >> confdefs.h
<<\EOF
4624 #define HAVE_DECL_ATOF 1
4626 cat >> confdefs.h
<<\EOF
4627 #define HAVE_DECL_GETCWD 1
4629 cat >> confdefs.h
<<\EOF
4630 #define HAVE_DECL_GETWD 1
4633 cat >> confdefs.h
<<\EOF
4634 #define HAVE_DECL_STRSIGNAL 1
4636 cat >> confdefs.h
<<\EOF
4637 #define HAVE_DECL_PUTC_UNLOCKED 1
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_DECL_FPUTS_UNLOCKED 1
4642 cat >> confdefs.h
<<\EOF
4643 #define HAVE_DECL_FWRITE_UNLOCKED 1
4646 cat >> confdefs.h
<<\EOF
4647 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4649 cat >> confdefs.h
<<\EOF
4650 #define HAVE_DECL_STRSTR 1
4652 cat >> confdefs.h
<<\EOF
4653 #define HAVE_DECL_ERRNO 1
4656 cat >> confdefs.h
<<\EOF
4657 #define HAVE_DECL_MALLOC 1
4659 cat >> confdefs.h
<<\EOF
4660 #define HAVE_DECL_REALLOC 1
4662 cat >> confdefs.h
<<\EOF
4663 #define HAVE_DECL_CALLOC 1
4665 cat >> confdefs.h
<<\EOF
4666 #define HAVE_DECL_FREE 1
4668 cat >> confdefs.h
<<\EOF
4669 #define HAVE_DECL_BASENAME 1
4671 cat >> confdefs.h
<<\EOF
4672 #define HAVE_DECL_GETOPT 1
4674 cat >> confdefs.h
<<\EOF
4675 #define HAVE_DECL_CLOCK 1
4680 for ac_func
in getrlimit setrlimit getrusage
4682 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4683 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4684 echo "configure:4685: checking whether $ac_func is declared" >&5
4685 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.
$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4692 #define $ac_tr_decl 1
4694 #include "ansidecl.h"
4696 #ifdef HAVE_SYS_RESOURCE_H
4697 #include <sys/resource.h>
4703 char *(*pfn) = (char *(*)) $ac_func ;
4707 if { (eval echo configure
:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4709 eval "gcc_cv_have_decl_$ac_func=yes"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.
$ac_ext >&5
4714 eval "gcc_cv_have_decl_$ac_func=no"
4719 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4720 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4721 #define $ac_tr_decl 1
4725 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4726 #define $ac_tr_decl 0
4732 if test x
= y
; then
4733 cat >> confdefs.h
<<\EOF
4734 #define HAVE_DECL_GETRLIMIT 1
4736 cat >> confdefs.h
<<\EOF
4737 #define HAVE_DECL_SETRLIMIT 1
4739 cat >> confdefs.h
<<\EOF
4740 #define HAVE_DECL_GETRUSAGE 1
4745 for ac_func
in times
4747 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4748 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4749 echo "configure:4750: checking whether $ac_func is declared" >&5
4750 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 cat > conftest.
$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4757 #define $ac_tr_decl 1
4759 #include "ansidecl.h"
4761 #ifdef HAVE_SYS_TIMES_H
4762 #include <sys/times.h>
4768 char *(*pfn) = (char *(*)) $ac_func ;
4772 if { (eval echo configure
:4773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4774 eval "gcc_cv_have_decl_$ac_func=yes"
4776 echo "configure: failed program was:" >&5
4777 cat conftest.
$ac_ext >&5
4779 eval "gcc_cv_have_decl_$ac_func=no"
4784 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4786 #define $ac_tr_decl 1
4790 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4791 #define $ac_tr_decl 0
4797 if test x
= y
; then
4798 cat >> confdefs.h
<<\EOF
4799 #define HAVE_DECL_TIMES 1
4804 # More time-related stuff.
4805 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4806 echo "configure:4807: checking for struct tms" >&5
4807 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4811 cat > conftest.
$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4815 #include "ansidecl.h"
4817 #ifdef HAVE_SYS_TIMES_H
4818 #include <sys/times.h>
4825 if { (eval echo configure
:4826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4827 ac_cv_struct_tms
=yes
4829 echo "configure: failed program was:" >&5
4830 cat conftest.
$ac_ext >&5
4837 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4838 if test $ac_cv_struct_tms = yes; then
4839 cat >> confdefs.h
<<\EOF
4840 #define HAVE_STRUCT_TMS 1
4845 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4846 # revisit after autoconf 2.50.
4847 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4848 echo "configure:4849: checking for clock_t" >&5
4849 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4850 echo $ac_n "(cached) $ac_c" 1>&6
4853 cat > conftest.
$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4857 #include "ansidecl.h"
4864 if { (eval echo configure
:4865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4866 gcc_cv_type_clock_t
=yes
4868 echo "configure: failed program was:" >&5
4869 cat conftest.
$ac_ext >&5
4871 gcc_cv_type_clock_t
=no
4876 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4877 if test $gcc_cv_type_clock_t = yes; then
4878 cat >> confdefs.h
<<\EOF
4879 #define HAVE_CLOCK_T 1
4884 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4885 CFLAGS
="$saved_CFLAGS"
4887 # mkdir takes a single argument on some systems.
4888 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4889 echo "configure:4890: checking if mkdir takes one argument" >&5
4890 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4893 cat > conftest.
$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4897 #include <sys/types.h>
4898 #ifdef HAVE_SYS_STAT_H
4899 # include <sys/stat.h>
4901 #ifdef HAVE_UNISTD_H
4902 # include <unistd.h>
4904 #ifdef HAVE_DIRECT_H
4905 # include <direct.h>
4911 if { (eval echo configure
:4912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4913 gcc_cv_mkdir_takes_one_arg
=no
4915 echo "configure: failed program was:" >&5
4916 cat conftest.
$ac_ext >&5
4918 gcc_cv_mkdir_takes_one_arg
=yes
4923 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4924 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4925 cat >> confdefs.h
<<\EOF
4926 #define MKDIR_TAKES_ONE_ARG 1
4940 build_install_headers_dir
=install-headers-tar
4945 host_truncate_target
=
4948 # Decode the host machine, then the target machine.
4949 # For the host machine, we save the xm_file variable as host_xm_file;
4950 # then we decode the target machine and forget everything else
4951 # that came from the host machine.
4952 for machine
in $build $host $target; do
4953 .
${srcdir}/config.gcc
4956 extra_objs
="${host_extra_objs} ${extra_objs}"
4958 # Default the target-machine variables that were not explicitly set.
4959 if test x
"$tm_file" = x
4960 then tm_file
=$cpu_type/$cpu_type.h
; fi
4962 if test x
"$extra_headers" = x
4963 then extra_headers
=; fi
4965 if test x
$md_file = x
4966 then md_file
=$cpu_type/$cpu_type.md
; fi
4968 if test x
$out_file = x
4969 then out_file
=$cpu_type/$cpu_type.c
; fi
4971 if test x
"$tmake_file" = x
4972 then tmake_file
=$cpu_type/t-
$cpu_type
4975 if test x
"$dwarf2" = xyes
4976 then tm_file
="$tm_file tm-dwarf2.h"
4979 if test x
$float_format = x
4980 then float_format
=i64
4983 if test $float_format = none
4984 then float_h_file
=Makefile.
in
4985 else float_h_file
=float-
$float_format.h
4988 # Handle cpp installation.
4989 if test x
$enable_cpp != xno
4991 tmake_file
="$tmake_file t-install-cpp"
4994 # Say what files are being used for the output code and MD file.
4995 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4996 echo "Using \`$srcdir/config/$md_file' as machine description file."
4998 # If any of the xm_file variables contain nonexistent files, warn
4999 # about them and drop them.
5002 for x
in $build_xm_file; do
5003 if test -f $srcdir/config
/$x
5005 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5011 for x
in $host_xm_file; do
5012 if test -f $srcdir/config
/$x
5014 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5020 for x
in $xm_file; do
5021 if test -f $srcdir/config
/$x
5023 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5029 for f
in $tm_file; do
5032 if test $count = ax
; then
5033 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5035 echo "Using the following target machine macro files:"
5036 for f
in $tm_file; do
5037 echo " $srcdir/config/$f"
5042 for f
in $host_xm_file; do
5045 if test $count = a
; then
5047 elif test $count = ax
; then
5048 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5050 echo "Using the following host machine macro files:"
5051 for f
in $host_xm_file; do
5052 echo " $srcdir/config/$f"
5056 if test "$host_xm_file" != "$build_xm_file"; then
5058 for f
in $build_xm_file; do
5061 if test $count = a
; then
5063 elif test $count = ax
; then
5064 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5066 echo "Using the following build machine macro files:"
5067 for f
in $build_xm_file; do
5068 echo " $srcdir/config/$f"
5073 if test x
$thread_file = x
; then
5074 if test x
$target_thread_file != x
; then
5075 thread_file
=$target_thread_file
5077 thread_file
='single'
5081 # auto-host.h is the file containing items generated by autoconf and is
5082 # the first file included by config.h.
5083 # If host=build, it is correct to have hconfig include auto-host.h
5084 # as well. If host!=build, we are in error and need to do more
5085 # work to find out the build config parameters.
5086 if test x
$host = x
$build
5088 build_auto
=auto-host.h
5091 # We create a subdir, then run autoconf in the subdir.
5092 # To prevent recursion we set host and build for the new
5093 # invocation of configure to the build for this invocation
5100 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5101 *) realsrcdir
=..
/${srcdir};;
5103 saved_CFLAGS
="${CFLAGS}"
5104 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5105 ${realsrcdir}/configure \
5106 --target=$target_alias --host=$build_alias --build=$build_alias
5107 CFLAGS
="${saved_CFLAGS}"
5109 # We just finished tests for the build machine, so rename
5110 # the file auto-build.h in the gcc directory.
5111 mv auto-host.h ..
/auto-build.h
5114 build_auto
=auto-build.h
5119 tm_file
="${tm_file} defaults.h"
5120 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5121 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5122 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5124 # Truncate the target if necessary
5125 if test x
$host_truncate_target != x
; then
5126 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5129 # Get the version trigger filename from the toplevel
5130 if test "${with_gcc_version_trigger+set}" = set; then
5131 gcc_version_trigger
=$with_gcc_version_trigger
5133 gcc_version_trigger
=${srcdir}/version.c
5135 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5136 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5138 # Compile in configure arguments.
5139 if test -f configargs.h
; then
5140 # Being re-configured.
5141 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5142 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5144 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5146 cat > configargs.h
<<EOF
5147 /* Generated automatically. */
5148 static const char configuration_arguments[] = "$gcc_config_arguments";
5149 static const char thread_model[] = "$thread_file";
5152 # Internationalization
5154 VERSION
="$gcc_version"
5158 # Enable NLS support by default
5159 # Check whether --enable-nls or --disable-nls was given.
5160 if test "${enable_nls+set}" = set; then
5161 enableval
="$enable_nls"
5168 # if cross compiling, disable NLS support.
5169 # It's not worth the trouble, at least for now.
5171 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5172 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5178 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5179 echo "configure:5180: checking for library containing strerror" >&5
5180 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 ac_func_search_save_LIBS
="$LIBS"
5184 ac_cv_search_strerror
="no"
5185 cat > conftest.
$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5197 if { (eval echo configure
:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5199 ac_cv_search_strerror
="none required"
5201 echo "configure: failed program was:" >&5
5202 cat conftest.
$ac_ext >&5
5205 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5206 LIBS
="-l$i $ac_func_search_save_LIBS"
5207 cat > conftest.
$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5219 if { (eval echo configure
:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5221 ac_cv_search_strerror
="-l$i"
5224 echo "configure: failed program was:" >&5
5225 cat conftest.
$ac_ext >&5
5229 LIBS
="$ac_func_search_save_LIBS"
5232 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5233 if test "$ac_cv_search_strerror" != "no"; then
5234 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5241 echo $ac_n "checking for working const""... $ac_c" 1>&6
5242 echo "configure:5243: checking for working const" >&5
5243 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 cat > conftest.
$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5252 /* Ultrix mips cc rejects this. */
5253 typedef int charset[2]; const charset x;
5254 /* SunOS 4.1.1 cc rejects this. */
5255 char const *const *ccp;
5257 /* NEC SVR4.0.2 mips cc rejects this. */
5258 struct point {int x, y;};
5259 static struct point const zero = {0,0};
5260 /* AIX XL C 1.02.0.0 rejects this.
5261 It does not let you subtract one const X* pointer from another in an arm
5262 of an if-expression whose if-part is not a constant expression */
5263 const char *g = "string";
5264 ccp = &g + (g ? g-g : 0);
5265 /* HPUX 7.0 cc rejects these. */
5268 ccp = (char const *const *) p;
5269 { /* SCO 3.2v4 cc rejects this. */
5271 char const *s = 0 ? (char *) 0 : (char const *) 0;
5275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5277 const int *foo = &x[0];
5280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5281 typedef const int *iptr;
5285 { /* AIX XL C 1.02.0.0 rejects this saying
5286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5287 struct s { int j; const int *ap[3]; };
5288 struct s *b; b->j = 5;
5290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5296 if { (eval echo configure
:5297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5300 echo "configure: failed program was:" >&5
5301 cat conftest.
$ac_ext >&5
5308 echo "$ac_t""$ac_cv_c_const" 1>&6
5309 if test $ac_cv_c_const = no
; then
5310 cat >> confdefs.h
<<\EOF
5316 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5317 echo "configure:5318: checking for off_t" >&5
5318 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 cat > conftest.
$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5324 #include <sys/types.h>
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5333 ac_cv_type_off_t
=yes
5341 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5342 if test $ac_cv_type_off_t = no
; then
5343 cat >> confdefs.h
<<\EOF
5349 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5350 echo "configure:5351: checking for size_t" >&5
5351 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 cat > conftest.
$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5357 #include <sys/types.h>
5363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5364 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5366 ac_cv_type_size_t
=yes
5369 ac_cv_type_size_t
=no
5374 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5375 if test $ac_cv_type_size_t = no
; then
5376 cat >> confdefs.h
<<\EOF
5377 #define size_t unsigned
5382 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5383 # for constant arguments. Useless!
5384 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5385 echo "configure:5386: checking for working alloca.h" >&5
5386 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5389 cat > conftest.
$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5394 char *p = alloca(2 * sizeof(int));
5397 if { (eval echo configure
:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5399 ac_cv_header_alloca_h
=yes
5401 echo "configure: failed program was:" >&5
5402 cat conftest.
$ac_ext >&5
5404 ac_cv_header_alloca_h
=no
5409 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5410 if test $ac_cv_header_alloca_h = yes; then
5411 cat >> confdefs.h
<<\EOF
5412 #define HAVE_ALLOCA_H 1
5417 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5418 echo "configure:5419: checking for alloca" >&5
5419 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5422 cat > conftest.
$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5427 # define alloca __builtin_alloca
5430 # include <malloc.h>
5431 # define alloca _alloca
5434 # include <alloca.h>
5439 # ifndef alloca /* predefined by HP cc +Olibcalls */
5448 char *p = (char *) alloca(1);
5451 if { (eval echo configure
:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5453 ac_cv_func_alloca_works
=yes
5455 echo "configure: failed program was:" >&5
5456 cat conftest.
$ac_ext >&5
5458 ac_cv_func_alloca_works
=no
5463 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5464 if test $ac_cv_func_alloca_works = yes; then
5465 cat >> confdefs.h
<<\EOF
5466 #define HAVE_ALLOCA 1
5471 if test $ac_cv_func_alloca_works = no
; then
5472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5473 # that cause trouble. Some versions do not even contain alloca or
5474 # contain a buggy version. If you still want to use their alloca,
5475 # use ar to extract alloca.o from them instead of compiling alloca.c.
5476 ALLOCA
=alloca.
${ac_objext}
5477 cat >> confdefs.h
<<\EOF
5482 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5483 echo "configure:5484: checking whether alloca needs Cray hooks" >&5
5484 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 cat > conftest.
$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 #if defined(CRAY) && ! defined(CRAY2)
5497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5498 egrep "webecray" >/dev
/null
2>&1; then
5509 echo "$ac_t""$ac_cv_os_cray" 1>&6
5510 if test $ac_cv_os_cray = yes; then
5511 for ac_func
in _getb67 GETB67 getb67
; do
5512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5513 echo "configure:5514: checking for $ac_func" >&5
5514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 cat > conftest.
$ac_ext <<EOF
5518 #line 5519 "configure"
5519 #include "confdefs.h"
5520 /* System header to define __stub macros and hopefully few prototypes,
5521 which can conflict with char $ac_func(); below. */
5523 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5530 /* The GNU C library defines this for functions which it implements
5531 to always fail with ENOSYS. Some functions are actually named
5532 something starting with __ and the normal name is an alias. */
5533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5541 if { (eval echo configure
:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5543 eval "ac_cv_func_$ac_func=yes"
5545 echo "configure: failed program was:" >&5
5546 cat conftest.
$ac_ext >&5
5548 eval "ac_cv_func_$ac_func=no"
5553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5554 echo "$ac_t""yes" 1>&6
5555 cat >> confdefs.h
<<EOF
5556 #define CRAY_STACKSEG_END $ac_func
5561 echo "$ac_t""no" 1>&6
5567 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5568 echo "configure:5569: checking stack direction for C alloca" >&5
5569 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 if test "$cross_compiling" = yes; then
5573 ac_cv_c_stack_direction
=0
5575 cat > conftest.
$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5578 find_stack_direction ()
5580 static char *addr = 0;
5585 return find_stack_direction ();
5588 return (&dummy > addr) ? 1 : -1;
5592 exit (find_stack_direction() < 0);
5595 if { (eval echo configure
:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5597 ac_cv_c_stack_direction
=1
5599 echo "configure: failed program was:" >&5
5600 cat conftest.
$ac_ext >&5
5602 ac_cv_c_stack_direction
=-1
5609 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5610 cat >> confdefs.h
<<EOF
5611 #define STACK_DIRECTION $ac_cv_c_stack_direction
5617 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5618 echo "configure:5619: checking whether we are using the GNU C Library 2.1 or newer" >&5
5619 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6
5622 cat > conftest.
$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5626 #include <features.h>
5627 #ifdef __GNU_LIBRARY__
5628 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5635 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5637 ac_cv_gnu_library_2_1
=yes
5640 ac_cv_gnu_library_2_1
=no
5648 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5650 GLIBC21
="$ac_cv_gnu_library_2_1"
5654 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5655 stdlib.h string.h unistd.h sys
/param.h
5657 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5659 echo "configure:5660: checking for $ac_hdr" >&5
5660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 cat > conftest.
$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5668 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5669 { (eval echo configure
:5670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5670 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5671 if test -z "$ac_err"; then
5673 eval "ac_cv_header_$ac_safe=yes"
5676 echo "configure: failed program was:" >&5
5677 cat conftest.
$ac_ext >&5
5679 eval "ac_cv_header_$ac_safe=no"
5683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5686 cat >> confdefs.h
<<EOF
5687 #define $ac_tr_hdr 1
5691 echo "$ac_t""no" 1>&6
5695 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5696 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5697 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5700 echo "configure:5701: checking for $ac_func" >&5
5701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5704 cat > conftest.
$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 /* System header to define __stub macros and hopefully few prototypes,
5708 which can conflict with char $ac_func(); below. */
5710 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5717 /* The GNU C library defines this for functions which it implements
5718 to always fail with ENOSYS. Some functions are actually named
5719 something starting with __ and the normal name is an alias. */
5720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728 if { (eval echo configure
:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5730 eval "ac_cv_func_$ac_func=yes"
5732 echo "configure: failed program was:" >&5
5733 cat conftest.
$ac_ext >&5
5735 eval "ac_cv_func_$ac_func=no"
5740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5741 echo "$ac_t""yes" 1>&6
5742 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5743 cat >> confdefs.h
<<EOF
5744 #define $ac_tr_func 1
5748 echo "$ac_t""no" 1>&6
5755 am_cv_lib_iconv_ldpath
=
5756 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5757 if test "${with_libiconv_prefix+set}" = set; then
5758 withval
="$with_libiconv_prefix"
5760 for dir
in `echo "$withval" | tr : ' '`; do
5761 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5762 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5768 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5769 echo "configure:5770: checking for iconv" >&5
5770 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5774 am_cv_func_iconv
="no, consider installing GNU libiconv"
5776 cat > conftest.
$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5782 iconv_t cd = iconv_open("","");
5783 iconv(cd,NULL,NULL,NULL,NULL);
5787 if { (eval echo configure
:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5789 am_cv_func_iconv
=yes
5791 echo "configure: failed program was:" >&5
5792 cat conftest.
$ac_ext >&5
5795 if test "$am_cv_func_iconv" != yes; then
5796 am_save_LIBS
="$LIBS"
5797 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5798 cat > conftest.
$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5804 iconv_t cd = iconv_open("","");
5805 iconv(cd,NULL,NULL,NULL,NULL);
5809 if { (eval echo configure
:5810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5812 am_cv_func_iconv
=yes
5814 echo "configure: failed program was:" >&5
5815 cat conftest.
$ac_ext >&5
5818 LIBS
="$am_save_LIBS"
5823 echo "$ac_t""$am_cv_func_iconv" 1>&6
5824 if test "$am_cv_func_iconv" = yes; then
5825 cat >> confdefs.h
<<\EOF
5826 #define HAVE_ICONV 1
5829 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5830 echo "configure:5831: checking for iconv declaration" >&5
5831 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.
$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5845 #if defined(__STDC__) || defined(__cplusplus)
5846 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5855 if { (eval echo configure
:5856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5857 am_cv_proto_iconv_arg1
=""
5859 echo "configure: failed program was:" >&5
5860 cat conftest.
$ac_ext >&5
5862 am_cv_proto_iconv_arg1
="const"
5865 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);"
5868 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5869 echo "$ac_t""${ac_t:-
5870 }$am_cv_proto_iconv" 1>&6
5871 cat >> confdefs.h
<<EOF
5872 #define ICONV_CONST $am_cv_proto_iconv_arg1
5877 if test "$am_cv_lib_iconv" = yes; then
5878 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5883 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5884 echo "configure:5885: checking for nl_langinfo and CODESET" >&5
5885 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5888 cat > conftest.
$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5891 #include <langinfo.h>
5893 char* cs = nl_langinfo(CODESET);
5896 if { (eval echo configure
:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5898 am_cv_langinfo_codeset
=yes
5900 echo "configure: failed program was:" >&5
5901 cat conftest.
$ac_ext >&5
5903 am_cv_langinfo_codeset
=no
5909 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5910 if test $am_cv_langinfo_codeset = yes; then
5911 cat >> confdefs.h
<<\EOF
5912 #define HAVE_LANGINFO_CODESET 1
5917 if test $ac_cv_header_locale_h = yes; then
5918 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5919 echo "configure:5920: checking for LC_MESSAGES" >&5
5920 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 cat > conftest.
$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5931 if { (eval echo configure
:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5933 am_cv_val_LC_MESSAGES
=yes
5935 echo "configure: failed program was:" >&5
5936 cat conftest.
$ac_ext >&5
5938 am_cv_val_LC_MESSAGES
=no
5943 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5944 if test $am_cv_val_LC_MESSAGES = yes; then
5945 cat >> confdefs.h
<<\EOF
5946 #define HAVE_LC_MESSAGES 1
5951 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5952 echo "configure:5953: checking whether NLS is requested" >&5
5953 # Check whether --enable-nls or --disable-nls was given.
5954 if test "${enable_nls+set}" = set; then
5955 enableval
="$enable_nls"
5961 echo "$ac_t""$USE_NLS" 1>&6
5964 BUILD_INCLUDED_LIBINTL
=no
5965 USE_INCLUDED_LIBINTL
=no
5969 if test "$USE_NLS" = "yes"; then
5970 cat >> confdefs.h
<<\EOF
5971 #define ENABLE_NLS 1
5974 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5975 echo "configure:5976: checking whether included gettext is requested" >&5
5976 # Check whether --with-included-gettext or --without-included-gettext was given.
5977 if test "${with_included_gettext+set}" = set; then
5978 withval
="$with_included_gettext"
5979 nls_cv_force_use_gnu_gettext
=$withval
5981 nls_cv_force_use_gnu_gettext
=no
5984 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5986 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5987 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5993 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5994 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5995 echo "configure:5996: checking for libintl.h" >&5
5996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5999 cat > conftest.
$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6002 #include <libintl.h>
6004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6005 { (eval echo configure
:6006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6007 if test -z "$ac_err"; then
6009 eval "ac_cv_header_$ac_safe=yes"
6012 echo "configure: failed program was:" >&5
6013 cat conftest.
$ac_ext >&5
6015 eval "ac_cv_header_$ac_safe=no"
6019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6021 cat >> confdefs.h
<<\EOF
6022 #define HAVE_LIBINTL_H 1
6025 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6026 echo "configure:6027: checking for GNU gettext in libc" >&5
6027 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 cat > conftest.
$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 #include <libintl.h>
6034 extern int _nl_msg_cat_cntr;
6036 bindtextdomain ("", "");
6037 return (int) gettext ("") + _nl_msg_cat_cntr
6040 if { (eval echo configure
:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6042 gt_cv_func_gnugettext1_libc
=yes
6044 echo "configure: failed program was:" >&5
6045 cat conftest.
$ac_ext >&5
6047 gt_cv_func_gnugettext1_libc
=no
6052 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6054 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6055 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6056 echo "configure:6057: checking for GNU gettext in libintl" >&5
6057 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6060 gt_save_LIBS
="$LIBS"
6061 LIBS
="$LIBS -lintl $LIBICONV"
6062 cat > conftest.
$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 #include <libintl.h>
6066 extern int _nl_msg_cat_cntr;
6068 bindtextdomain ("", "");
6069 return (int) gettext ("") + _nl_msg_cat_cntr
6072 if { (eval echo configure
:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6074 gt_cv_func_gnugettext1_libintl
=yes
6076 echo "configure: failed program was:" >&5
6077 cat conftest.
$ac_ext >&5
6079 gt_cv_func_gnugettext1_libintl
=no
6082 LIBS
="$gt_save_LIBS"
6085 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6088 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6089 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6090 && test "$PACKAGE" != gettext; }; then
6091 cat >> confdefs.h
<<\EOF
6092 #define HAVE_GETTEXT 1
6096 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6097 INTLLIBS
="-lintl $LIBICONV"
6100 gt_save_LIBS
="$LIBS"
6101 LIBS
="$LIBS $INTLLIBS"
6102 for ac_func
in dcgettext
6104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_func" >&5
6106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.
$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 /* System header to define __stub macros and hopefully few prototypes,
6113 which can conflict with char $ac_func(); below. */
6115 /* Override any gcc2 internal prototype to avoid an error. */
6116 /* We use char because int might match the return type of a gcc2
6117 builtin and then its argument prototype would still apply. */
6122 /* The GNU C library defines this for functions which it implements
6123 to always fail with ENOSYS. Some functions are actually named
6124 something starting with __ and the normal name is an alias. */
6125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6133 if { (eval echo configure
:6134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6135 eval "ac_cv_func_$ac_func=yes"
6137 echo "configure: failed program was:" >&5
6138 cat conftest.
$ac_ext >&5
6140 eval "ac_cv_func_$ac_func=no"
6145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6146 echo "$ac_t""yes" 1>&6
6147 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6148 cat >> confdefs.h
<<EOF
6149 #define $ac_tr_func 1
6153 echo "$ac_t""no" 1>&6
6157 LIBS
="$gt_save_LIBS"
6159 # Extract the first word of "msgfmt", so it can be a program name with args.
6160 set dummy msgfmt
; ac_word
=$2
6161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6162 echo "configure:6163: checking for $ac_word" >&5
6163 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6168 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6172 for ac_dir
in $PATH; do
6173 test -z "$ac_dir" && ac_dir
=.
6174 if test -f $ac_dir/$ac_word; then
6175 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6176 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6182 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6186 MSGFMT
="$ac_cv_path_MSGFMT"
6187 if test "$MSGFMT" != ":"; then
6188 echo "$ac_t""$MSGFMT" 1>&6
6190 echo "$ac_t""no" 1>&6
6193 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6194 set dummy gmsgfmt
; ac_word
=$2
6195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_word" >&5
6197 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6202 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6205 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6210 for ac_dir
in $ac_dummy; do
6211 test -z "$ac_dir" && ac_dir
=.
6212 if test -f $ac_dir/$ac_word; then
6213 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6218 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6222 GMSGFMT
="$ac_cv_path_GMSGFMT"
6223 if test -n "$GMSGFMT"; then
6224 echo "$ac_t""$GMSGFMT" 1>&6
6226 echo "$ac_t""no" 1>&6
6230 # Extract the first word of "xgettext", so it can be a program name with args.
6231 set dummy xgettext
; ac_word
=$2
6232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6233 echo "configure:6234: checking for $ac_word" >&5
6234 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6239 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6242 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6243 for ac_dir
in $PATH; do
6244 test -z "$ac_dir" && ac_dir
=.
6245 if test -f $ac_dir/$ac_word; then
6246 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6247 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6253 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6257 XGETTEXT
="$ac_cv_path_XGETTEXT"
6258 if test "$XGETTEXT" != ":"; then
6259 echo "$ac_t""$XGETTEXT" 1>&6
6261 echo "$ac_t""no" 1>&6
6269 echo "$ac_t""no" 1>&6
6273 if test "$CATOBJEXT" = "NONE"; then
6274 nls_cv_use_gnu_gettext
=yes
6278 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6279 INTLOBJS
="\$(GETTOBJS)"
6280 # Extract the first word of "msgfmt", so it can be a program name with args.
6281 set dummy msgfmt
; ac_word
=$2
6282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6283 echo "configure:6284: checking for $ac_word" >&5
6284 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6289 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6292 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6293 for ac_dir
in $PATH; do
6294 test -z "$ac_dir" && ac_dir
=.
6295 if test -f $ac_dir/$ac_word; then
6296 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6297 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6303 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6307 MSGFMT
="$ac_cv_path_MSGFMT"
6308 if test "$MSGFMT" != ":"; then
6309 echo "$ac_t""$MSGFMT" 1>&6
6311 echo "$ac_t""no" 1>&6
6314 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6315 set dummy gmsgfmt
; ac_word
=$2
6316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6317 echo "configure:6318: checking for $ac_word" >&5
6318 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6323 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6326 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6329 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6331 for ac_dir
in $ac_dummy; do
6332 test -z "$ac_dir" && ac_dir
=.
6333 if test -f $ac_dir/$ac_word; then
6334 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6339 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6343 GMSGFMT
="$ac_cv_path_GMSGFMT"
6344 if test -n "$GMSGFMT"; then
6345 echo "$ac_t""$GMSGFMT" 1>&6
6347 echo "$ac_t""no" 1>&6
6350 # Extract the first word of "xgettext", so it can be a program name with args.
6351 set dummy xgettext
; ac_word
=$2
6352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6353 echo "configure:6354: checking for $ac_word" >&5
6354 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6359 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6362 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6363 for ac_dir
in $PATH; do
6364 test -z "$ac_dir" && ac_dir
=.
6365 if test -f $ac_dir/$ac_word; then
6366 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6367 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6373 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6377 XGETTEXT
="$ac_cv_path_XGETTEXT"
6378 if test "$XGETTEXT" != ":"; then
6379 echo "$ac_t""$XGETTEXT" 1>&6
6381 echo "$ac_t""no" 1>&6
6385 BUILD_INCLUDED_LIBINTL
=yes
6386 USE_INCLUDED_LIBINTL
=yes
6388 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6389 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6390 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6393 if test "$GMSGFMT" != ":"; then
6394 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6397 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6402 if test "$XGETTEXT" != ":"; then
6403 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6406 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6416 if test "$PACKAGE" = gettext; then
6417 BUILD_INCLUDED_LIBINTL
=yes
6420 for ac_prog
in bison
6422 # Extract the first word of "$ac_prog", so it can be a program name with args.
6423 set dummy
$ac_prog; ac_word
=$2
6424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6425 echo "configure:6426: checking for $ac_word" >&5
6426 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6429 if test -n "$INTLBISON"; then
6430 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6432 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6434 for ac_dir
in $ac_dummy; do
6435 test -z "$ac_dir" && ac_dir
=.
6436 if test -f $ac_dir/$ac_word; then
6437 ac_cv_prog_INTLBISON
="$ac_prog"
6444 INTLBISON
="$ac_cv_prog_INTLBISON"
6445 if test -n "$INTLBISON"; then
6446 echo "$ac_t""$INTLBISON" 1>&6
6448 echo "$ac_t""no" 1>&6
6451 test -n "$INTLBISON" && break
6454 if test -z "$INTLBISON"; then
6457 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6458 echo "configure:6459: checking version of bison" >&5
6459 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6460 case $ac_prog_version in
6461 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6462 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6463 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6464 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6466 echo "$ac_t""$ac_prog_version" 1>&6
6468 if test $ac_verc_fail = yes; then
6481 if test $USE_INCLUDED_LIBINTL = yes; then
6482 cat >> confdefs.h
<<\EOF
6483 #define USE_INCLUDED_LIBINTL 1
6489 nls_cv_header_libgt
=
6501 if test "x$CATOBJEXT" != x
; then
6502 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6503 echo "configure:6504: checking for catalogs to be installed" >&5
6504 # Look for .po and .gmo files in the source directory.
6507 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6508 # If there aren't any .gmo files the shell will give us the
6509 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6511 case "$cat" in *\
**)
6514 # The quadruple backslash is collapsed to a double backslash
6515 # by the backticks, then collapsed again by the double quotes,
6516 # leaving us with one backslash in the sed expression (right
6517 # before the dot that mustn't act as a wildcard). The dot to
6518 # be escaped in the second expression is hiding inside CATOBJEXT.
6519 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6520 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6521 # The user is allowed to set LINGUAS to a list of languages to
6522 # install catalogs for. If it's empty that means "all of them."
6523 if test "x$LINGUAS" = x
; then
6524 CATALOGS
="$CATALOGS $cat"
6525 XLINGUAS
="$XLINGUAS $lang"
6527 case "$LINGUAS" in *$lang*)
6528 CATALOGS
="$CATALOGS $cat"
6529 XLINGUAS
="$XLINGUAS $lang"
6535 echo "$ac_t""$LINGUAS" 1>&6
6539 if test -n "$ac_aux_dir"; then
6540 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6542 if test -z "$MKINSTALLDIRS"; then
6543 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6547 INTL_LIBTOOL_SUFFIX_PREFIX
=
6551 # Windows32 Registry support for specifying GCC installation paths.
6552 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6553 if test "${enable_win32_registry+set}" = set; then
6554 enableval
="$enable_win32_registry"
6559 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6560 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6561 echo "configure:6562: checking whether windows registry support is requested" >&5
6562 if test "x$enable_win32_registry" != xno
; then
6563 cat >> confdefs.h
<<\EOF
6564 #define ENABLE_WIN32_REGISTRY 1
6567 echo "$ac_t""yes" 1>&6
6569 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6570 echo "configure:6571: checking for library containing RegOpenKeyExA" >&5
6571 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 ac_func_search_save_LIBS
="$LIBS"
6575 ac_cv_search_RegOpenKeyExA
="no"
6576 cat > conftest.
$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6582 char RegOpenKeyExA();
6588 if { (eval echo configure
:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6590 ac_cv_search_RegOpenKeyExA
="none required"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.
$ac_ext >&5
6596 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6597 LIBS
="-l$i $ac_func_search_save_LIBS"
6598 cat > conftest.
$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6601 /* Override any gcc2 internal prototype to avoid an error. */
6602 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */
6604 char RegOpenKeyExA();
6610 if { (eval echo configure
:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6612 ac_cv_search_RegOpenKeyExA
="-l$i"
6615 echo "configure: failed program was:" >&5
6616 cat conftest.
$ac_ext >&5
6620 LIBS
="$ac_func_search_save_LIBS"
6623 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6624 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6625 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6631 echo "$ac_t""no" 1>&6
6634 # Check if user specified a different registry key.
6635 case "x${enable_win32_registry}" in
6638 gcc_cv_win32_registry_key
="$VERSION"
6641 # no registry lookup.
6642 gcc_cv_win32_registry_key
=''
6645 # user-specified key.
6646 gcc_cv_win32_registry_key
="$enable_win32_registry"
6650 if test "x$enable_win32_registry" != xno
; then
6651 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6652 echo "configure:6653: checking registry key on windows hosts" >&5
6653 cat >> confdefs.h
<<EOF
6654 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6657 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6662 # Get an absolute path to the GCC top-level source directory
6663 holddir
=`${PWDCMD-pwd}`
6665 topdir
=`${PWDCMD-pwd}`
6668 # Conditionalize the makefile for this host machine.
6669 # Make-host contains the concatenation of all host makefile fragments
6670 # [there can be more than one]. This file is built by configure.frag.
6671 host_overrides
=Make-host
6672 dep_host_xmake_file
=
6673 for f
in ..
${host_xmake_file}
6675 if test -f ${srcdir}/config
/$f
6677 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6681 # Conditionalize the makefile for this target machine.
6682 # Make-target contains the concatenation of all host makefile fragments
6683 # [there can be more than one]. This file is built by configure.frag.
6684 target_overrides
=Make-target
6686 for f
in ..
${tmake_file}
6688 if test -f ${srcdir}/config
/$f
6690 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6694 # If the host doesn't support symlinks, modify CC in
6695 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6696 # Otherwise, we can use "CC=$(CC)".
6698 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6700 cc_set_by_configure
="\$(CC)"
6701 quoted_cc_set_by_configure
="\$(CC)"
6702 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6703 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6706 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6708 symbolic_link
="cp -p"
6712 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6713 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6714 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6715 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6719 out_object_file
=`basename $out_file .c`.o
6722 for f
in $tm_file; do
6725 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6727 tm_file_list
="${tm_file_list} $f" ;;
6728 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6733 for f
in $tm_p_file; do
6734 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6738 for f
in $host_xm_file; do
6741 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6742 auto-host.h | defaults.h
)
6743 host_xm_file_list
="${host_xm_file_list} $f" ;;
6744 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6749 for f
in $build_xm_file; do
6752 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6753 auto-build.h | auto-host.h | defaults.h
)
6754 build_xm_file_list
="${build_xm_file_list} $f" ;;
6755 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6759 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6760 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6763 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6764 if test x
$host != x
$target
6766 CROSS
="-DCROSS_COMPILE"
6768 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6769 case "$host","$target" in
6770 i?
86-*-*,x86_64-
*-* \
6771 | powerpc
*-*-*,powerpc64
*-*-*)
6772 CROSS
="$CROSS -DNATIVE_CROSS" ;;
6776 # If this is a cross-compiler that does not
6777 # have its own set of headers then define
6780 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6781 # This prevents libgcc2 from containing any code which requires libc
6784 if test x
$host != x
$target && test x
$with_headers = x
; then
6785 inhibit_libc
=-Dinhibit_libc
6787 if test x
$with_newlib = xyes
; then
6788 inhibit_libc
=-Dinhibit_libc
6793 # When building gcc with a cross-compiler, we need to adjust things so
6794 # that the generator programs are still built with the native compiler.
6795 # Also, we cannot run fixincludes or fix-header.
6796 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6799 # These are the normal (build=host) settings:
6801 HOST_PREFIX_1
=ignore-
6803 HOST_CFLAGS
='$(ALL_CFLAGS)'
6805 STMP_FIXINC
=stmp-fixinc
6806 STMP_FIXPROTO
=stmp-fixproto
6808 # And these apply if build != host.
6809 if test x
$build != x
$host
6812 HOST_PREFIX_1
=build-
6813 HOST_CC
='$(CC_FOR_BUILD)'
6814 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6820 # Expand extra_headers to include complete path.
6821 # This substitutes for lots of t-* files.
6823 if test "x$extra_headers" = x
6826 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6827 for file in $extra_headers;
6829 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6833 if test x
$use_collect2 = xno
; then
6837 # Add a definition of USE_COLLECT2 if system wants one.
6838 if test x
$use_collect2 != x
6840 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6841 xm_defines
="${xm_defines} USE_COLLECT2"
6844 # If we have gas in the build tree, make a link to it.
6845 if test -f ..
/gas
/Makefile
; then
6846 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6849 # If we have nm and objdump in the build tree, make a link to them.
6850 if test -f ..
/binutils
/Makefile
; then
6851 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6852 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6855 # If we have ld in the build tree, make a link to it.
6856 if test -f ..
/ld
/Makefile
; then
6857 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6860 # Figure out what assembler we will be using.
6861 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6862 echo "configure:6863: checking what assembler to use" >&5
6864 gcc_cv_gas_major_version
=
6865 gcc_cv_gas_minor_version
=
6866 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6867 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6868 if test -x "$DEFAULT_ASSEMBLER"; then
6869 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6870 elif test -x "$AS"; then
6872 elif test -x as
$host_exeext; then
6873 # Build using assembler in the current directory.
6874 gcc_cv_as
=.
/as
$host_exeext
6875 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6876 # Single tree build which includes gas.
6877 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
6879 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6880 if test x
$gcc_cv_gas_version != x
; then
6884 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6885 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6886 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
6889 if test "x$gcc_cv_as" = x
; then
6890 # Search the same directories that the installed compiler will
6891 # search. Else we may find the wrong assembler and lose. If we
6892 # do not find a suitable assembler binary, then try the user's
6895 # Also note we have to check MD_EXEC_PREFIX before checking the
6896 # user's path. Unfortunately, there is no good way to get at the
6897 # value of MD_EXEC_PREFIX here. So we do a brute force search
6898 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6899 # to be fixed as part of the make/configure rewrite too.
6901 if test "x$exec_prefix" = xNONE
; then
6902 if test "x$prefix" = xNONE
; then
6903 test_prefix
=/usr
/local
6908 test_prefix
=$exec_prefix
6911 # If the loop below does not find an assembler, then use whatever
6912 # one we can find in the users's path.
6914 if test "x$program_prefix" != xNONE
; then
6915 gcc_cv_as
=${program_prefix}as
$host_exeext
6917 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
6920 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
6921 $test_prefix/lib/gcc-lib/$target_alias \
6922 /usr/lib/gcc/$target_alias/$gcc_version \
6923 /usr/lib/gcc/$target_alias \
6924 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
6925 $test_prefix/$target_alias/bin"
6927 if test x
$host = x
$target; then
6928 test_dirs
="$test_dirs \
6933 /bsd43/usr/lib/cmplrs/cc \
6934 /usr/cross64/usr/bin \
6935 /usr/lib/cmplrs/cc \
6936 /sysv/usr/lib/cmplrs/cc \
6937 /svr4/usr/lib/cmplrs/cc \
6941 for dir
in $test_dirs; do
6942 if test -x $dir/as
$host_exeext; then
6943 gcc_cv_as
=$dir/as
$host_exeext
6948 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6949 echo "$ac_t"""newly built gas
"" 1>&6
6951 echo "$ac_t""$gcc_cv_as" 1>&6
6954 # Figure out what linker we will be using.
6955 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6956 echo "configure:6957: checking what linker to use" >&5
6958 gcc_cv_gld_major_version
=
6959 gcc_cv_gld_minor_version
=
6960 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6961 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6962 if test -x "$DEFAULT_LINKER"; then
6963 gcc_cv_ld
="$DEFAULT_LINKER"
6964 elif test -x "$LD"; then
6966 elif test -x ld
$host_exeext; then
6967 # Build using linker in the current directory.
6968 gcc_cv_ld
=.
/ld
$host_exeext
6969 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
6970 # Single tree build which includes ld.
6971 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
6973 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6974 if test x
$gcc_cv_gld_version != x
; then
6978 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6979 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6982 if test "x$gcc_cv_ld" = x
; then
6983 # Search the same directories that the installed compiler will
6984 # search. Else we may find the wrong linker and lose. If we
6985 # do not find a suitable linker binary, then try the user's
6988 # Also note we have to check MD_EXEC_PREFIX before checking the
6989 # user's path. Unfortunately, there is no good way to get at the
6990 # value of MD_EXEC_PREFIX here. So we do a brute force search
6991 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6992 # to be fixed as part of the make/configure rewrite too.
6994 if test "x$exec_prefix" = xNONE
; then
6995 if test "x$prefix" = xNONE
; then
6996 test_prefix
=/usr
/local
7001 test_prefix
=$exec_prefix
7004 # If the loop below does not find an linker, then use whatever
7005 # one we can find in the users's path.
7007 if test "x$program_prefix" != xNONE
; then
7008 gcc_cv_ld
=${program_prefix}ld
$host_exeext
7010 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
7013 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7014 $test_prefix/lib/gcc-lib/$target_alias \
7015 /usr/lib/gcc/$target_alias/$gcc_version \
7016 /usr/lib/gcc/$target_alias \
7017 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7018 $test_prefix/$target_alias/bin"
7020 if test x
$host = x
$target; then
7021 test_dirs
="$test_dirs \
7026 /bsd43/usr/lib/cmplrs/cc \
7027 /usr/cross64/usr/bin \
7028 /usr/lib/cmplrs/cc \
7029 /sysv/usr/lib/cmplrs/cc \
7030 /svr4/usr/lib/cmplrs/cc \
7034 for dir
in $test_dirs; do
7035 if test -x $dir/ld
$host_exeext; then
7036 gcc_cv_ld
=$dir/ld
$host_exeext
7041 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7042 echo "$ac_t"""newly built ld
"" 1>&6
7044 echo "$ac_t""$gcc_cv_ld" 1>&6
7047 # Figure out what nm we will be using.
7048 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7049 echo "configure:7050: checking what nm to use" >&5
7050 if test -x nm
$host_exeext; then
7051 gcc_cv_nm
=.
/nm
$host_exeext
7052 elif test "x$program_prefix" != xNONE
; then
7053 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7055 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7057 echo "$ac_t""$gcc_cv_nm" 1>&6
7059 # Figure out what objdump we will be using.
7060 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7061 echo "configure:7062: checking what objdump to use" >&5
7062 if test -x objdump
$host_exeext; then
7063 gcc_cv_objdump
=.
/objdump
$host_exeext
7064 elif test "x$program_prefix" != xNONE
; then
7065 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7067 gcc_cv_objdump
=`echo objdump | sed ${program_transform_name}`$host_exeext
7069 echo "$ac_t""$gcc_cv_objdump" 1>&6
7071 # Figure out what assembler alignment features are present.
7072 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7073 echo "configure:7074: checking assembler alignment features" >&5
7074 gcc_cv_as_alignment_features
=none
7075 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7076 # Gas version 2.6 and later support for .balign and .p2align.
7077 # bytes to skip when using .p2align.
7078 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
7079 gcc_cv_as_alignment_features
=".balign and .p2align"
7080 cat >> confdefs.h
<<\EOF
7081 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7085 # Gas version 2.8 and later support specifying the maximum
7086 # bytes to skip when using .p2align.
7087 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
7088 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7089 cat >> confdefs.h
<<\EOF
7090 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7094 elif test x
$gcc_cv_as != x
; then
7095 # Check if we have .balign and .p2align
7096 echo ".balign 4" > conftest.s
7097 echo ".p2align 2" >> conftest.s
7098 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7099 gcc_cv_as_alignment_features
=".balign and .p2align"
7100 cat >> confdefs.h
<<\EOF
7101 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7105 rm -f conftest.s conftest.o
7106 # Check if specifying the maximum bytes to skip when
7107 # using .p2align is supported.
7108 echo ".p2align 4,,7" > conftest.s
7109 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7110 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7111 cat >> confdefs.h
<<\EOF
7112 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7116 rm -f conftest.s conftest.o
7118 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7120 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7121 echo "configure:7122: checking assembler subsection support" >&5
7122 gcc_cv_as_subsections
=no
7123 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7124 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
7125 gcc_cv_as_subsections
="working .subsection -1"
7127 elif test x
$gcc_cv_as != x
; then
7128 # Check if we have .subsection
7129 echo ".subsection 1" > conftest.s
7130 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7131 gcc_cv_as_subsections
=".subsection"
7132 if test x
$gcc_cv_nm != x
; then
7133 cat > conftest.s
<<EOF
7134 conftest_label1: .word 0
7136 conftest_label2: .word 0
7139 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7140 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7141 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7142 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7145 gcc_cv_as_subsections
="working .subsection -1"
7150 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7152 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7153 cat >> confdefs.h
<<\EOF
7154 #define HAVE_GAS_SUBSECTION_ORDERING 1
7158 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7160 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7161 echo "configure:7162: checking assembler weak support" >&5
7163 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7164 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
7165 gcc_cv_as_weak
="yes"
7167 elif test x
$gcc_cv_as != x
; then
7168 # Check if we have .weak
7169 echo " .weak foobar" > conftest.s
7170 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7171 gcc_cv_as_weak
="yes"
7173 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7175 if test x
"$gcc_cv_as_weak" = xyes
; then
7176 cat >> confdefs.h
<<\EOF
7177 #define HAVE_GAS_WEAK 1
7181 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7183 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7184 echo "configure:7185: checking assembler hidden support" >&5
7186 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7187 if test "$gcc_cv_gas_major_version" -eq 2 \
7188 -a "$gcc_cv_gas_minor_version" -eq 12 \
7189 -a "$gcc_cv_gas_patch_version" -ge 1 \
7190 -o "$gcc_cv_gas_major_version" -eq 2 \
7191 -a "$gcc_cv_gas_minor_version" -gt 12 \
7192 -o "$gcc_cv_gas_major_version" -gt 2 \
7193 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7194 gcc_cv_as_hidden
="yes"
7196 elif test x
$gcc_cv_as != x
; then
7197 # Check if we have .hidden
7198 echo " .hidden foobar" > conftest.s
7199 echo "foobar:" >> conftest.s
7200 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7201 gcc_cv_as_hidden
="yes"
7203 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7205 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7206 # This is irritatingly difficult to feature test for. Look for
7207 # the date string after the version number.
7208 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7209 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7210 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
7211 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'`
7212 if test 0"$ld_date" -lt 20020404; then
7213 if test -n "$ld_date"; then
7214 # If there was date string, but was earlier than 2002-04-04, fail
7215 gcc_cv_as_hidden
="no"
7216 elif test -z "$ld_vers"; then
7217 # If there was no date string nor ld version number, something is wrong
7218 gcc_cv_as_hidden
="no"
7220 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
7221 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
7222 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7223 test -z "$ld_vers_patch" && ld_vers_patch
=0
7224 if test "$ld_vers_major" -lt 2; then
7225 gcc_cv_as_hidden
="no"
7226 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
7227 gcc_cv_as_hidden
="no"
7228 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
7229 -a "$ld_vers_patch" -eq 0; then
7230 gcc_cv_as_hidden
="no"
7236 if test x
"$gcc_cv_as_hidden" = xyes
; then
7237 cat >> confdefs.h
<<\EOF
7238 #define HAVE_GAS_HIDDEN 1
7242 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7243 libgcc_visibility
=$gcc_cv_as_hidden
7246 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7247 echo "configure:7248: checking assembler leb128 support" >&5
7249 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7250 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
7251 gcc_cv_as_leb128
="yes"
7253 elif test x
$gcc_cv_as != x
; then
7254 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7255 cat > conftest.s
<<EOF
7263 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7264 gcc_cv_as_leb128
="yes"
7266 # GAS versions before 2.11 do not support uleb128,
7267 # despite appearing to.
7268 # ??? There exists an elf-specific test that will crash
7269 # the assembler. Perhaps it's better to figure out whether
7270 # arbitrary sections are supported and try the test.
7271 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7272 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7273 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7274 as_major
=`echo $as_ver | sed 's/\..*//'`
7275 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7276 if test $as_major -eq 2 -a $as_minor -lt 11; then
7277 gcc_cv_as_leb128
="no"
7281 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7283 if test x
"$gcc_cv_as_leb128" = xyes
; then
7284 cat >> confdefs.h
<<\EOF
7285 #define HAVE_AS_LEB128 1
7289 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7291 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7292 echo "configure:7293: checking assembler eh_frame optimization" >&5
7293 gcc_cv_as_eh_frame
=no
7294 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7295 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
7296 gcc_cv_as_eh_frame
="yes"
7298 elif test x
$gcc_cv_as != x
; then
7299 # Check if this is GAS.
7300 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7301 rm -f a.out
2> /dev
/null
7302 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7303 # Versions up to and including 2.11.0 may mis-optimize
7304 # .eh_frame data. Try something.
7305 cat > conftest.s
<<EOF
7312 .section .eh_frame,"aw",@progbits
7314 .4byte .LECIE1-.LSCIE1
7328 .4byte .LEFDE1-.LASFDE1
7330 .4byte .LASFDE1-__FRAME_BEGIN__
7339 cat > conftest.lit
<<EOF
7340 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7341 0010 01000000 12000000 18000000 00000000 ................
7342 0020 08000000 04080000 0044 .........D
7344 cat > conftest.big
<<EOF
7345 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7346 0010 00000001 00000012 00000018 00000000 ................
7347 0020 00000008 04000000 0844 .........D
7349 # If the assembler didn't choke, and we can objdump,
7350 # and we got the correct data, then succeed.
7351 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7352 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7353 |
tail -3 > conftest.got \
7354 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7355 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7357 gcc_cv_as_eh_frame
="yes"
7359 gcc_cv_as_eh_frame
="bad"
7360 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7361 cat >> confdefs.h
<<\EOF
7362 #define USE_AS_TRADITIONAL_FORMAT 1
7370 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7372 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7373 echo "configure:7374: checking assembler section merging support" >&5
7374 gcc_cv_as_shf_merge
=no
7375 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7376 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
7377 gcc_cv_as_shf_merge
=yes
7379 elif test x
$gcc_cv_as != x
; then
7380 # Check if we support SHF_MERGE sections
7381 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7382 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7383 gcc_cv_as_shf_merge
=yes
7385 rm -f conftest.s conftest.o
7387 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7388 cat >> confdefs.h
<<\EOF
7389 #define HAVE_GAS_SHF_MERGE 1
7393 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7395 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6
7396 echo "configure:7397: checking assembler thread-local storage support" >&5
7404 .section ".tdata","awT",@progbits
7408 leal foo@TLSGD(,%ebx,1), %eax
7409 leal foo@TLSLDM(%ebx), %eax
7410 leal foo@DTPOFF(%eax), %edx
7411 movl foo@GOTTPOFF(%ebx), %eax
7412 subl foo@GOTTPOFF(%ebx), %eax
7413 movl $foo@TPOFF, %eax
7414 subl $foo@TPOFF, %eax
7415 leal foo@NTPOFF(%ecx), %eax'
7421 .section ".tdata","awT",@progbits
7424 addl r16 = @ltoff(@dtpmod(foo#)), gp
7425 addl r17 = @ltoff(@dtprel(foo#)), gp
7426 addl r18 = @ltoff(@tprel(foo#)), gp
7427 addl r19 = @dtprel(foo#), gp
7428 adds r21 = @dtprel(foo#), r13
7429 movl r23 = @dtprel(foo#)
7430 addl r20 = @tprel(foo#), gp
7431 adds r22 = @tprel(foo#), r13
7432 movl r24 = @tprel(foo#)'
7437 if test -z "$tls_first_major"; then
7439 elif test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7441 if test "$gcc_cv_gas_major_version" -eq "$tls_first_major" \
7442 -a "$gcc_cv_gas_minor_version" -ge "$tls_first_minor" \
7443 -o "$gcc_cv_gas_major_version" -gt "$tls_first_major"; then
7446 elif test x
$gcc_cv_as != x
; then
7447 echo "$conftest_s" > conftest.s
7448 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
7452 rm -f conftest.s conftest.o
7454 if test "$gcc_cv_as_tls" = yes; then
7455 cat >> confdefs.h
<<\EOF
7456 #define HAVE_AS_TLS 1
7460 echo "$ac_t""$gcc_cv_as_tls" 1>&6
7463 # All TARGET_ABI_OSF targets.
7464 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7465 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7466 echo "configure:7467: checking assembler supports explicit relocations" >&5
7467 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7471 gcc_cv_as_explicit_relocs
=unknown
7472 if test x
$gcc_cv_gas_major_version != x \
7473 -a x
$gcc_cv_gas_minor_version != x
7475 if test "$gcc_cv_gas_major_version" -eq 2 \
7476 -a "$gcc_cv_gas_minor_version" -ge 12 \
7477 -o "$gcc_cv_gas_major_version" -gt 2; then
7478 gcc_cv_as_explicit_relocs
=yes
7480 elif test x
$gcc_cv_as != x
; then
7481 cat > conftest.s
<< 'EOF'
7484 extbl
$3, $2, $3 !lituse_bytoff
!1
7485 ldq
$2, a
($29) !literal
!1
7486 ldq
$4, b
($29) !literal
!2
7487 ldq_u
$3, 0($2) !lituse_base
!1
7488 ldq
$27, f
($29) !literal
!5
7489 jsr
$26, ($27), f
!lituse_jsr
!5
7490 ldah
$29, 0($26) !gpdisp
!3
7491 lda
$0, c
($29) !gprel
7492 ldah
$1, d
($29) !gprelhigh
7493 lda
$1, d
($1) !gprellow
7494 lda
$29, 0($29) !gpdisp
!3
7496 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7497 gcc_cv_as_explicit_relocs
=yes
7499 gcc_cv_as_explicit_relocs
=no
7501 rm -f conftest.s conftest.o
7506 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7507 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7508 cat >> confdefs.h
<<\EOF
7509 #define HAVE_AS_EXPLICIT_RELOCS 1
7515 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7516 echo "configure:7517: checking assembler .register pseudo-op support" >&5
7517 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7518 echo $ac_n "(cached) $ac_c" 1>&6
7521 gcc_cv_as_register_pseudo_op
=unknown
7522 if test x
$gcc_cv_as != x
; then
7523 # Check if we have .register
7524 echo ".register %g2, #scratch" > conftest.s
7525 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7526 gcc_cv_as_register_pseudo_op
=yes
7528 gcc_cv_as_register_pseudo_op
=no
7530 rm -f conftest.s conftest.o
7535 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7536 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7537 cat >> confdefs.h
<<\EOF
7538 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7543 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7544 echo "configure:7545: checking assembler supports -relax" >&5
7545 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7549 gcc_cv_as_relax_opt
=unknown
7550 if test x
$gcc_cv_as != x
; then
7551 # Check if gas supports -relax
7552 echo ".text" > conftest.s
7553 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7554 gcc_cv_as_relax_opt
=yes
7556 gcc_cv_as_relax_opt
=no
7558 rm -f conftest.s conftest.o
7563 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7564 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7565 cat >> confdefs.h
<<\EOF
7566 #define HAVE_AS_RELAX_OPTION 1
7571 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7572 echo "configure:7573: checking assembler and linker support unaligned pc related relocs" >&5
7573 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7574 echo $ac_n "(cached) $ac_c" 1>&6
7577 gcc_cv_as_sparc_ua_pcrel
=unknown
7578 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7579 gcc_cv_as_sparc_ua_pcrel
=no
7580 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7581 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7582 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7583 gcc_cv_as_sparc_ua_pcrel
=yes
7585 rm -f conftest.s conftest.o conftest
7590 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7591 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7592 cat >> confdefs.h
<<\EOF
7593 #define HAVE_AS_SPARC_UA_PCREL 1
7598 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
7599 echo "configure:7600: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
7600 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7604 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7605 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
7606 if test x
$gcc_cv_objdump != x
; then
7607 gcc_cv_as_sparc_ua_pcrel_hidden
=no
7608 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
7609 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
7610 echo "foo: .skip 4" >> conftest.s
7611 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7612 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
7613 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
7614 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
7615 if $gcc_cv_objdump -R conftest
2> /dev
/null \
7616 |
grep 'DISP32' > /dev
/null
2>&1; then
7619 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
7623 rm -f conftest.s conftest.o conftest
7625 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
7630 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
7631 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
7632 cat >> confdefs.h
<<\EOF
7633 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
7638 if test "x$gcc_cv_as_flags64" != xno
; then
7639 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7640 echo "configure:7641: checking for assembler offsetable %lo() support" >&5
7641 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7645 gcc_cv_as_offsetable_lo10
=unknown
7646 if test "x$gcc_cv_as" != x
; then
7647 # Check if assembler has offsetable %lo()
7648 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7649 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7650 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7652 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7653 > /dev
/null
2>&1; then
7654 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7655 gcc_cv_as_offsetable_lo10
=no
7657 gcc_cv_as_offsetable_lo10
=yes
7660 gcc_cv_as_offsetable_lo10
=no
7662 rm -f conftest.s conftest.o conftest1.s conftest1.o
7667 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7668 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7669 cat >> confdefs.h
<<\EOF
7670 #define HAVE_AS_OFFSETABLE_LO10 1
7678 i
[34567]86-*-* | x86_64-
*-*)
7679 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7680 echo "configure:7681: checking assembler instructions" >&5
7681 gcc_cv_as_instructions
=
7682 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7683 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
7684 gcc_cv_as_instructions
="filds fists"
7686 elif test x
$gcc_cv_as != x
; then
7687 set "filds fists" "filds mem; fists mem"
7690 echo "$2" > conftest.s
7691 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7692 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7696 rm -f conftest.s conftest.o
7698 if test x
"$gcc_cv_as_instructions" != x
; then
7699 cat >> confdefs.h
<<EOF
7700 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7704 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7706 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7707 echo "configure:7708: checking assembler GOTOFF in data directives" >&5
7708 gcc_cv_as_gotoff_in_data
=no
7709 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7711 if test "$gcc_cv_gas_major_version" -eq 2 \
7712 -a "$gcc_cv_gas_minor_version" -ge 11 \
7713 -o "$gcc_cv_gas_major_version" -gt 2; then
7714 gcc_cv_as_gotoff_in_data
=yes
7716 elif test x
$gcc_cv_as != x
; then
7717 cat > conftest.s
<<EOF
7724 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7725 gcc_cv_as_gotoff_in_data
=yes
7728 cat >> confdefs.h
<<EOF
7729 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7732 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7736 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7737 echo "configure:7738: checking assembler dwarf2 debug_line support" >&5
7738 gcc_cv_as_dwarf2_debug_line
=no
7739 # ??? Not all targets support dwarf2 debug_line, even within a version
7740 # of gas. Moreover, we need to emit a valid instruction to trigger any
7741 # info to the output file. So, as supported targets are added to gas 2.11,
7742 # add some instruction here to (also) show we expect this might work.
7743 # ??? Once 2.11 is released, probably need to add first known working
7744 # version to the per-target configury.
7746 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-* | hppa
*-*-*)
7753 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7755 if test "$gcc_cv_gas_major_version" -eq 2 \
7756 -a "$gcc_cv_gas_minor_version" -ge 11 \
7757 -o "$gcc_cv_gas_major_version" -gt 2 \
7758 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7759 && test x
"$insn" != x
; then
7760 gcc_cv_as_dwarf2_debug_line
="yes"
7762 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7763 echo ' .file 1 "conftest.s"' > conftest.s
7764 echo ' .loc 1 3 0' >> conftest.s
7765 echo " $insn" >> conftest.s
7766 # ??? This fails with non-gnu grep.
7767 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7768 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7769 # The .debug_line file table must be in the exact order that
7770 # we specified the files, since these indices are also used
7771 # by DW_AT_decl_file. Approximate this test by testing if
7772 # the assembler bitches if the same index is assigned twice.
7773 echo ' .file 1 "foo.s"' > conftest.s
7774 echo ' .file 1 "bar.s"' >> conftest.s
7775 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7777 gcc_cv_as_dwarf2_debug_line
="no"
7779 gcc_cv_as_dwarf2_debug_line
="yes"
7782 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7784 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7785 cat >> confdefs.h
<<\EOF
7786 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7790 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7792 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7793 echo "configure:7794: checking assembler --gdwarf2 support" >&5
7794 gcc_cv_as_gdwarf2_flag
=no
7795 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7797 if test "$gcc_cv_gas_major_version" -eq 2 \
7798 -a "$gcc_cv_gas_minor_version" -ge 11 \
7799 -o "$gcc_cv_gas_major_version" -gt 2 \
7800 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7801 && test x
"$insn" != x
; then
7802 gcc_cv_as_gdwarf2_debug_flag
="yes"
7804 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7805 echo '' > conftest.s
7806 # ??? This fails with non-gnu grep.
7807 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7809 gcc_cv_as_gdwarf2_flag
="yes"
7811 rm -f conftest.s conftest.o
7813 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7814 cat >> confdefs.h
<<\EOF
7815 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7819 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7821 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7822 echo "configure:7823: checking assembler --gstabs support" >&5
7823 gcc_cv_as_gstabs_flag
=no
7824 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7826 if test "$gcc_cv_gas_major_version" -eq 2 \
7827 -a "$gcc_cv_gas_minor_version" -ge 11 \
7828 -o "$gcc_cv_gas_major_version" -gt 2 \
7829 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7830 && test x
"$insn" != x
; then
7831 gcc_cv_as_gstabs_debug_flag
="yes"
7833 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7834 echo '' > conftest.s
7835 # ??? This fails with non-gnu grep.
7836 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7837 gcc_cv_as_gstabs_flag
="yes"
7839 rm -f conftest.s conftest.o
7841 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7842 cat >> confdefs.h
<<\EOF
7843 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7847 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7849 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7850 echo "configure:7851: checking linker PT_GNU_EH_FRAME support" >&5
7851 gcc_cv_ld_eh_frame_hdr
=no
7852 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7853 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
7854 gcc_cv_ld_eh_frame_hdr
=yes
7856 elif test x
$gcc_cv_ld != x
; then
7857 # Check if linker supports --eh-frame-hdr option
7858 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7859 gcc_cv_ld_eh_frame_hdr
=yes
7862 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7863 cat >> confdefs.h
<<\EOF
7864 #define HAVE_LD_EH_FRAME_HDR 1
7868 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7870 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7871 cat >> confdefs.h
<<EOF
7872 #define PREFIX_INCLUDE_DIR "$prefix/include"
7877 # Figure out what language subdirectories are present.
7878 # Look if the user specified --enable-languages="..."; if not, use
7879 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7881 # NB: embedded tabs in this IF block -- do not untabify
7882 if test x
"${enable_languages+set}" != xset
; then
7883 if test x
"${LANGUAGES+set}" = xset
; then
7884 enable_languages
="${LANGUAGES}"
7885 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7888 enable_languages
=all
7891 if test x
"${enable_languages}" = x ||
7892 test x
"${enable_languages}" = xyes
;
7894 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7897 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7899 # First scan to see if an enabled language requires some other language.
7900 # We assume that a given config-lang.in will list all the language
7901 # front ends it requires, even if some are required indirectly.
7902 for lang
in ${srcdir}/*/config-lang.
in ..
7907 # The odd quoting in the next line works around
7908 # an apparent bug in bash 1.12 on linux.
7909 ${srcdir}/[*]/config-lang.
in)
7912 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7913 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7914 for other
in $this_lang_requires
7916 case ,${enable_languages}, in
7922 enable_languages
="$enable_languages,$other"
7931 for lang
in ${srcdir}/*/config-lang.
in ..
7935 # The odd quoting in the next line works around
7936 # an apparent bug in bash 1.12 on linux.
7937 ${srcdir}/[*]/config-lang.
in) ;;
7939 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7940 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7941 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7942 if test "x$lang_alias" = x
7944 echo "$lang doesn't set \$language." 1>&2
7947 case ${build_by_default},${enable_languages}, in
7948 *,$lang_alias,*) add_this_lang
=yes ;;
7949 no
,*) add_this_lang
=no
;;
7950 *,all
,*) add_this_lang
=yes ;;
7951 *) add_this_lang
=no
;;
7953 if test x
"${add_this_lang}" = xyes
; then
7955 ${srcdir}/ada
/config-lang.
in)
7956 if test x
$have_gnat = xyes
; then
7957 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7961 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7969 # Make gthr-default.h if we have a thread file.
7971 if test $thread_file != single
; then
7972 rm -f gthr-default.h
7973 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7974 gthread_flags
=-DHAVE_GTHR_DEFAULT
7978 # Find out what GC implementation we want, or may, use.
7979 # Check whether --with-gc or --without-gc was given.
7980 if test "${with_gc+set}" = set; then
7987 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7995 echo "Using $GGC for garbage collection."
7997 # Use the system's zlib library.
7999 zlibinc
="-I\$(srcdir)/../zlib"
8000 # Check whether --with-system-zlib or --without-system-zlib was given.
8001 if test "${with_system_zlib+set}" = set; then
8002 withval
="$with_system_zlib"
8012 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8013 echo "configure:8014: checking whether to enable maintainer-specific portions of Makefiles" >&5
8014 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8015 if test "${enable_maintainer_mode+set}" = set; then
8016 enableval
="$enable_maintainer_mode"
8017 maintainer_mode
=$enableval
8023 echo "$ac_t""$maintainer_mode" 1>&6
8025 if test "$maintainer_mode" = "yes"; then
8031 # With Setjmp/Longjmp based exception handling.
8032 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8033 if test "${enable_sjlj_exceptions+set}" = set; then
8034 enableval
="$enable_sjlj_exceptions"
8035 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8036 cat >> confdefs.h
<<EOF
8037 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8043 # Make empty files to contain the specs and options for each language.
8044 # Then add #include lines to for a compiler that has specs and/or options.
8049 for subdir
in .
$subdirs
8051 if test -f $srcdir/$subdir/lang-specs.h
; then
8052 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8054 if test -f $srcdir/$subdir/lang-options.h
; then
8055 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8057 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8058 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8062 # These (without "all_") are set in each config-lang.in.
8063 # `language' must be a single word so is spelled singularly.
8068 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc'
8069 # List of language makefile fragments.
8072 # Add the language fragments.
8073 # Languages are added via two mechanisms. Some information must be
8074 # recorded in makefile variables, these are defined in config-lang.in.
8075 # We accumulate them and plug them into the main Makefile.
8076 # The other mechanism is a set of hooks for each of the main targets
8077 # like `clean', `install', etc.
8079 language_fragments
="Make-lang"
8080 language_hooks
="Make-hooks"
8082 for s
in ..
$subdirs
8091 .
${srcdir}/$s/config-lang.
in
8092 if test "x$language" = x
8094 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8097 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8098 if test -f ${srcdir}/$s/Makefile.
in
8099 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8101 all_languages
="$all_languages $language"
8102 if test "x$boot_language" = xyes
8104 all_boot_languages
="$all_boot_languages $language"
8106 all_compilers
="$all_compilers $compilers"
8107 all_stagestuff
="$all_stagestuff $stagestuff"
8108 all_outputs
="$all_outputs $outputs"
8113 for language
in ..
$all_languages
8115 if test $language != ".."
8117 check_languages
="$check_languages check-$language"
8121 # Since we can't use `::' targets, we link each language in
8122 # with a set of hooks, reached indirectly via lang.${target}.
8126 target_list
="all.build all.cross start.encap rest.encap \
8127 info dvi generated-manpages \
8128 install-normal install-common install-info install-man \
8130 mostlyclean clean distclean extraclean maintainer-clean \
8131 stage1 stage2 stage3 stage4"
8132 for t
in $target_list
8135 for lang
in ..
$all_languages
8137 if test $lang != ".."; then
8141 echo "lang.$t: $x" >> Make-hooks
8146 echo "dir ." > .gdbinit
8147 echo "dir ${srcdir}" >> .gdbinit
8148 if test x
$gdb_needs_out_file_path = xyes
8150 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8152 if test "x$subdirs" != x
; then
8155 echo "dir ${srcdir}/$s" >> .gdbinit
8158 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8160 # Define variables host_canonical and build_canonical
8161 # because some Cygnus local changes in the Makefile depend on them.
8162 build_canonical
=${build}
8163 host_canonical
=${host}
8165 if test "${host}" != "${target}" ; then
8166 target_subdir
=${target_alias}/
8172 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8173 # absolute path for gcc_tooldir based on inserting the number of up-directory
8174 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8175 # $(libsubdir)/@(unlibsubdir) based path.
8176 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8177 # make and thus we'd get different behavior depending on where we built the
8179 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8180 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8182 # An explanation of the sed strings:
8183 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8184 # -e 's|/$||' match a trailing forward slash and eliminates it
8185 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8186 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8188 # (*) Note this pattern overwrites the first character of the string
8189 # with a forward slash if one is not already present. This is not a
8190 # problem because the exact names of the sub-directories concerned is
8191 # unimportant, just the number of them matters.
8193 # The practical upshot of these patterns is like this:
8195 # prefix exec_prefix result
8196 # ------ ----------- ------
8198 # /foo/ /foo/bar ../
8199 # /foo /foo/bar/ ../
8200 # /foo/ /foo/bar/ ../
8201 # /foo /foo/bar/ugg ../../
8204 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8209 # Find a directory in which to install a shared libgcc.
8211 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8212 if test "${enable_version_specific_runtime_libs+set}" = set; then
8213 enableval
="$enable_version_specific_runtime_libs"
8218 # Check whether --with-slibdir or --without-slibdir was given.
8219 if test "${with_slibdir+set}" = set; then
8220 withval
="$with_slibdir"
8221 slibdir
="$with_slibdir"
8223 if test "${enable_version_specific_runtime_libs+set}" = set; then
8224 slibdir
='$(libsubdir)'
8225 elif test "$host" != "$target"; then
8226 slibdir
='$(build_tooldir)/lib'
8234 # Nothing to do for FLOAT_H, float_format already handled.
8235 objdir
=`${PWDCMD-pwd}`
8238 # Process the language and host/target makefile fragments.
8239 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8241 # Substitute configuration variables
8305 # Echo that links are built
8306 if test x
$host = x
$target
8314 if test x
$host != x
$build
8316 str3
=" on a $build system"
8319 if test "x$str2" != x ||
test "x$str3" != x
8324 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8326 if test "x$str2" != x ||
test "x$str3" != x
8328 echo " ${str2}${str3}." 1>&2
8331 # Truncate the target if necessary
8332 if test x
$host_truncate_target != x
; then
8333 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8336 # Configure the subdirectories
8337 # AC_CONFIG_SUBDIRS($subdirs)
8339 # Create the Makefile
8340 # and configure language subdirectories
8342 cat > confcache
<<\EOF
8343 # This file is a shell script that caches the results of configure
8344 # tests run on this system so they can be shared between configure
8345 # scripts and configure runs. It is not useful on other systems.
8346 # If it contains results you don't want to keep, you may remove or edit it.
8348 # By default, configure uses ./config.cache as the cache file,
8349 # creating it if it does not exist already. You can give configure
8350 # the --cache-file=FILE option to use a different cache file; that is
8351 # what configure does when it calls configure scripts in
8352 # subdirectories, so they share the cache.
8353 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8354 # config.status only pays attention to the cache file if you give it the
8355 # --recheck option to rerun configure.
8358 # The following way of writing the cache mishandles newlines in values,
8359 # but we know of no workaround that is simple, portable, and efficient.
8360 # So, don't put newlines in cache variables' values.
8361 # Ultrix sh set writes to stderr and can't be redirected directly,
8362 # and sets the high bit in the cache file unless we assign to the vars.
8364 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8366 # `set' does not quote correctly, so add quotes (double-quote substitution
8367 # turns \\\\ into \\, and sed turns \\ into \).
8369 -e "s/'/'\\\\''/g" \
8370 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8373 # `set' quotes correctly as required by POSIX, so do not add quotes.
8374 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8377 if cmp -s $cache_file confcache
; then
8380 if test -w $cache_file; then
8381 echo "updating cache $cache_file"
8382 cat confcache
> $cache_file
8384 echo "not updating unwritable cache $cache_file"
8389 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8391 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8392 # Let make expand exec_prefix.
8393 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8395 # Any assignment to VPATH causes Sun make to only execute
8396 # the first set of double-colon rules, so remove it if not needed.
8397 # If there is a colon in the path, we need to keep it.
8398 if test "x$srcdir" = x.
; then
8399 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8402 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8404 DEFS
=-DHAVE_CONFIG_H
8406 # Without the "./", some shells look in PATH for config.status.
8407 : ${CONFIG_STATUS=./config.status}
8409 echo creating
$CONFIG_STATUS
8410 rm -f $CONFIG_STATUS
8411 cat > $CONFIG_STATUS <<EOF
8413 # Generated automatically by configure.
8414 # Run this file to recreate the current configuration.
8415 # This directory was configured as follows,
8416 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8418 # $0 $ac_configure_args
8420 # Compiler output produced by configure, useful for debugging
8421 # configure, is in ./config.log if it exists.
8423 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8426 case "\$ac_option" in
8427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8428 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8429 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8430 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8431 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8433 -help | --help | --hel | --he | --h)
8434 echo "\$ac_cs_usage"; exit 0 ;;
8435 *) echo "\$ac_cs_usage"; exit 1 ;;
8439 ac_given_srcdir=$srcdir
8441 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8443 cat >> $CONFIG_STATUS <<EOF
8445 # Protect against being on the right side of a sed subst in config.status.
8446 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8447 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8451 s%@CFLAGS@%$CFLAGS%g
8452 s%@CPPFLAGS@%$CPPFLAGS%g
8453 s%@CXXFLAGS@%$CXXFLAGS%g
8454 s%@FFLAGS@%$FFLAGS%g
8456 s%@LDFLAGS@%$LDFLAGS%g
8458 s%@exec_prefix@%$exec_prefix%g
8459 s%@prefix@%$prefix%g
8460 s%@program_transform_name@%$program_transform_name%g
8461 s%@bindir@%$bindir%g
8462 s%@sbindir@%$sbindir%g
8463 s%@libexecdir@%$libexecdir%g
8464 s%@datadir@%$datadir%g
8465 s%@sysconfdir@%$sysconfdir%g
8466 s%@sharedstatedir@%$sharedstatedir%g
8467 s%@localstatedir@%$localstatedir%g
8468 s%@libdir@%$libdir%g
8469 s%@includedir@%$includedir%g
8470 s%@oldincludedir@%$oldincludedir%g
8471 s%@infodir@%$infodir%g
8472 s%@mandir@%$mandir%g
8473 s%@enable_multilib@%$enable_multilib%g
8474 s%@enable_shared@%$enable_shared%g
8476 s%@host_alias@%$host_alias%g
8477 s%@host_cpu@%$host_cpu%g
8478 s%@host_vendor@%$host_vendor%g
8479 s%@host_os@%$host_os%g
8480 s%@target@%$target%g
8481 s%@target_alias@%$target_alias%g
8482 s%@target_cpu@%$target_cpu%g
8483 s%@target_vendor@%$target_vendor%g
8484 s%@target_os@%$target_os%g
8486 s%@build_alias@%$build_alias%g
8487 s%@build_cpu@%$build_cpu%g
8488 s%@build_vendor@%$build_vendor%g
8489 s%@build_os@%$build_os%g
8491 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8492 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8493 s%@GNATBIND@%$GNATBIND%g
8495 s%@strict1_warn@%$strict1_warn%g
8497 s%@warn_cflags@%$warn_cflags%g
8498 s%@stage1_cflags@%$stage1_cflags%g
8499 s%@SET_MAKE@%$SET_MAKE%g
8503 s%@RANLIB@%$RANLIB%g
8504 s%@INSTALL@%$INSTALL%g
8505 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8506 s%@INSTALL_DATA@%$INSTALL_DATA%g
8507 s%@have_mktemp_command@%$have_mktemp_command%g
8508 s%@MAKEINFO@%$MAKEINFO%g
8509 s%@BUILD_INFO@%$BUILD_INFO%g
8510 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8513 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8514 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8515 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8516 s%@LIBICONV@%$LIBICONV%g
8517 s%@manext@%$manext%g
8518 s%@objext@%$objext%g
8519 s%@FORBUILD@%$FORBUILD%g
8520 s%@PACKAGE@%$PACKAGE%g
8521 s%@VERSION@%$VERSION%g
8522 s%@ALLOCA@%$ALLOCA%g
8523 s%@GLIBC21@%$GLIBC21%g
8524 s%@USE_NLS@%$USE_NLS%g
8525 s%@MSGFMT@%$MSGFMT%g
8526 s%@GMSGFMT@%$GMSGFMT%g
8527 s%@XGETTEXT@%$XGETTEXT%g
8528 s%@INTLBISON@%$INTLBISON%g
8529 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8530 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8531 s%@CATALOGS@%$CATALOGS%g
8532 s%@CATOBJEXT@%$CATOBJEXT%g
8533 s%@INTLLIBS@%$INTLLIBS%g
8534 s%@INTLDEPS@%$INTLDEPS%g
8535 s%@INTLOBJS@%$INTLOBJS%g
8537 s%@DATADIRNAME@%$DATADIRNAME%g
8538 s%@INSTOBJEXT@%$INSTOBJEXT%g
8539 s%@GENCAT@%$GENCAT%g
8540 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8541 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8544 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8545 s%@inhibit_libc@%$inhibit_libc%g
8546 s%@HOST_PREFIX@%$HOST_PREFIX%g
8547 s%@HOST_PREFIX_1@%$HOST_PREFIX_1%g
8548 s%@HOST_CC@%$HOST_CC%g
8549 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8550 s%@STMP_FIXINC@%$STMP_FIXINC%g
8551 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8552 s%@libgcc_visibility@%$libgcc_visibility%g
8553 s%@gthread_flags@%$gthread_flags%g
8555 s%@zlibdir@%$zlibdir%g
8556 s%@zlibinc@%$zlibinc%g
8558 s%@build_canonical@%$build_canonical%g
8559 s%@host_canonical@%$host_canonical%g
8560 s%@target_subdir@%$target_subdir%g
8561 s%@gcc_tooldir@%$gcc_tooldir%g
8562 s%@dollar@%$dollar%g
8563 s%@slibdir@%$slibdir%g
8564 s%@objdir@%$objdir%g
8565 s%@subdirs@%$subdirs%g
8566 s%@all_boot_languages@%$all_boot_languages%g
8567 s%@all_compilers@%$all_compilers%g
8568 s%@all_lang_makefiles@%$all_lang_makefiles%g
8569 s%@all_languages@%$all_languages%g
8570 s%@all_stagestuff@%$all_stagestuff%g
8571 s%@build_exeext@%$build_exeext%g
8572 s%@build_install_headers_dir@%$build_install_headers_dir%g
8573 s%@build_xm_file_list@%$build_xm_file_list%g
8574 s%@build_xm_file@%$build_xm_file%g
8575 s%@build_xm_defines@%$build_xm_defines%g
8576 s%@check_languages@%$check_languages%g
8577 s%@cc_set_by_configure@%$cc_set_by_configure%g
8578 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8579 s%@cpp_install_dir@%$cpp_install_dir%g
8580 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8581 s%@dep_tmake_file@%$dep_tmake_file%g
8582 s%@extra_headers_list@%$extra_headers_list%g
8583 s%@extra_objs@%$extra_objs%g
8584 s%@extra_parts@%$extra_parts%g
8585 s%@extra_passes@%$extra_passes%g
8586 s%@extra_programs@%$extra_programs%g
8587 s%@float_h_file@%$float_h_file%g
8588 s%@gcc_config_arguments@%$gcc_config_arguments%g
8589 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8590 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8591 s%@gcc_version@%$gcc_version%g
8592 s%@gcc_version_full@%$gcc_version_full%g
8593 s%@gcc_version_trigger@%$gcc_version_trigger%g
8594 s%@host_exeext@%$host_exeext%g
8595 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8596 s%@host_xm_file_list@%$host_xm_file_list%g
8597 s%@host_xm_file@%$host_xm_file%g
8598 s%@host_xm_defines@%$host_xm_defines%g
8599 s%@install@%$install%g
8600 s%@lang_options_files@%$lang_options_files%g
8601 s%@lang_specs_files@%$lang_specs_files%g
8602 s%@lang_tree_files@%$lang_tree_files%g
8603 s%@local_prefix@%$local_prefix%g
8604 s%@md_file@%$md_file%g
8605 s%@objc_boehm_gc@%$objc_boehm_gc%g
8606 s%@out_file@%$out_file%g
8607 s%@out_object_file@%$out_object_file%g
8608 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8609 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8610 s%@symbolic_link@%$symbolic_link%g
8611 s%@thread_file@%$thread_file%g
8612 s%@tm_file_list@%$tm_file_list%g
8613 s%@tm_file@%$tm_file%g
8614 s%@tm_p_file_list@%$tm_p_file_list%g
8615 s%@tm_p_file@%$tm_p_file%g
8616 s%@xm_file@%$xm_file%g
8617 s%@xm_defines@%$xm_defines%g
8618 s%@c_target_objs@%$c_target_objs%g
8619 s%@cxx_target_objs@%$cxx_target_objs%g
8620 s%@target_cpu_default@%$target_cpu_default%g
8621 /@target_overrides@/r $target_overrides
8622 s%@target_overrides@%%g
8623 /@host_overrides@/r $host_overrides
8624 s%@host_overrides@%%g
8625 /@language_fragments@/r $language_fragments
8626 s%@language_fragments@%%g
8627 /@language_hooks@/r $language_hooks
8628 s%@language_hooks@%%g
8633 cat >> $CONFIG_STATUS <<\EOF
8635 # Split the substitutions into bite-sized pieces for seds with
8636 # small command number limits, like on Digital OSF/1 and HP-UX.
8637 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8638 ac_file
=1 # Number of current file.
8639 ac_beg
=1 # First line for current file.
8640 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8643 while $ac_more_lines; do
8644 if test $ac_beg -gt 1; then
8645 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8647 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8649 if test ! -s conftest.s
$ac_file; then
8651 rm -f conftest.s
$ac_file
8653 if test -z "$ac_sed_cmds"; then
8654 ac_sed_cmds
="sed -f conftest.s$ac_file"
8656 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8658 ac_file
=`expr $ac_file + 1`
8660 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8663 if test -z "$ac_sed_cmds"; then
8668 cat >> $CONFIG_STATUS <<EOF
8670 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8672 cat >> $CONFIG_STATUS <<\EOF
8673 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8676 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8677 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8678 *) ac_file_in
="${ac_file}.in" ;;
8681 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8683 # Remove last slash and all that follows it. Not all systems have dirname.
8684 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8686 # The file is in a subdirectory.
8687 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8688 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8689 # A "../" for each directory in $ac_dir_suffix.
8690 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8692 ac_dir_suffix
= ac_dots
=
8695 case "$ac_given_srcdir" in
8697 if test -z "$ac_dots"; then top_srcdir
=.
8698 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8699 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8701 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8702 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8706 echo creating
"$ac_file"
8708 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8710 *Makefile
*) ac_comsub
="1i\\
8711 # $configure_input" ;;
8715 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8717 s%@configure_input@%$configure_input%g
8718 s%@srcdir@%$srcdir%g
8719 s%@top_srcdir@%$top_srcdir%g
8720 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8724 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8725 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8727 # ac_d sets the value in "#define NAME VALUE" lines.
8728 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8729 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8732 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8733 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8734 ac_uB
='\([ ]\)%\1#\2define\3'
8737 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8738 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8739 ac_eB
='$%\1#\2define\3'
8743 if test "${CONFIG_HEADERS+set}" != set; then
8745 cat >> $CONFIG_STATUS <<EOF
8746 CONFIG_HEADERS="auto-host.h:config.in"
8748 cat >> $CONFIG_STATUS <<\EOF
8750 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8753 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8754 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8755 *) ac_file_in
="${ac_file}.in" ;;
8758 echo creating
$ac_file
8760 rm -f conftest.frag conftest.
in conftest.out
8761 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8762 cat $ac_file_inputs > conftest.
in
8766 # Transform confdefs.h into a sed script conftest.vals that substitutes
8767 # the proper values into config.h.in to produce config.h. And first:
8768 # Protect against being on the right side of a sed subst in config.status.
8769 # Protect against being in an unquoted here document in config.status.
8771 cat > conftest.hdr
<<\EOF
8774 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8778 sed -n -f conftest.hdr confdefs.h > conftest.vals
8781 # This sed command replaces #undef with comments. This is necessary, for
8782 # example, in the case of _POSIX_SOURCE, which is predefined and required
8783 # on some systems where configure will not decide to define it.
8784 cat >> conftest.vals <<\EOF
8785 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8788 # Break up conftest.vals because some shells have a limit on
8789 # the size of here documents, and old seds have small limits too.
8794 ac_lines=`grep -c . conftest.vals
`
8795 # grep -c gives empty output for an empty file on some AIX systems.
8796 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8797 # Write a limited-size here document to conftest.frag.
8798 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8799 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8801 sed -f conftest.frag conftest.in > conftest.out
8803 mv conftest.out conftest.in
8805 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8807 mv conftest.tail conftest.vals
8811 cat >> $CONFIG_STATUS <<\EOF
8812 rm -f conftest.frag conftest.h
8813 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8814 cat conftest.in >> conftest.h
8816 if cmp -s $ac_file conftest.h 2>/dev/null; then
8817 echo "$ac_file is unchanged"
8820 # Remove last slash and all that follows it. Not all systems have dirname.
8821 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8822 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8823 # The file is in a subdirectory.
8824 test ! -d "$ac_dir" && mkdir "$ac_dir"
8827 mv conftest.h $ac_file
8832 cat >> $CONFIG_STATUS <<EOF
8835 symbolic_link='$symbolic_link'
8838 cat >> $CONFIG_STATUS <<\EOF
8839 for ac_file in $CONFIG_FILES; do
8840 # Support "outfile[:infile[:infile...]]"
8842 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8844 # PO directories have a Makefile.in generated from Makefile.in.in.
8845 case "$ac_file" in */Makefile.in)
8846 # Adjust a relative srcdir.
8847 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8848 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8849 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8850 # In autoconf-2.13 it is called $ac_given_srcdir.
8851 # In autoconf-2.50 it is called $srcdir.
8852 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8853 case "$ac_given_srcdir" in
8854 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8855 /*) top_srcdir="$ac_given_srcdir" ;;
8856 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8858 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8859 rm -f "$ac_dir/POTFILES"
8860 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8861 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8862 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8863 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8869 case x$CONFIG_HEADERS in
8870 xauto-host.h:config.in)
8873 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8874 # bootstrapping and the installation procedure can still use
8875 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8876 # FLAGS_TO_PASS has been modified to solve the problem there.
8877 # This is virtually a duplicate of what happens in configure.lang; we do
8878 # an extra check to make sure this only happens if ln -s can be used.
8879 if test "$symbolic_link" = "ln -s"; then
8880 for d in .. ${subdirs} fixinc ; do
8881 if test $d != ..; then
8882 STARTDIR=`${PWDCMD-pwd}`
8884 for t in stage1 stage2 stage3 stage4 include
8887 $symbolic_link ../$t $t 2>/dev/null
8893 # Avoid having to add intl to our include paths.
8894 if test -f intl/libintl.h; then
8895 echo creating libintl.h
8896 echo '#include "intl/libintl.h"' >libintl.h
8901 chmod +x $CONFIG_STATUS
8902 rm -fr confdefs* $ac_clean_files
8903 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1