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,gc,gcac; default
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-__cxa_atexit enable __cxa_atexit for C++"
48 --enable-c-mbchar enable multibyte characters for C and C++"
50 --enable-threads enable thread usage for target GCC
51 --enable-threads=LIB use LIB thread package for target GCC"
53 --enable-objc-gc enable the use of Boehm's garbage collector with
54 the GNU Objective-C runtime"
56 --with-dwarf2 force the default debug format to be DWARF 2"
58 --disable-shared don't provide a shared libgcc"
60 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
62 --enable-nls use Native Language Support (default)"
64 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
66 --disable-nls do not use Native Language Support"
68 --with-included-gettext use the GNU gettext library included here"
70 --disable-win32-registry
71 disable lookup of installation paths in the
72 Registry on Windows hosts
73 --enable-win32-registry enable registry lookup (default)
74 --enable-win32-registry=KEY
75 use KEY instead of GCC version as the last portion
78 --with-gc={simple,page} choose the garbage collection mechanism to use
81 --with-system-zlib use installed libz"
83 --enable-maintainer-mode
84 enable make rules and dependencies not useful
85 (and sometimes confusing) to the casual installer"
87 --enable-sjlj-exceptions
88 arrange to use setjmp/longjmp exception handling"
90 --enable-version-specific-runtime-libs
91 specify that runtime libraries should be
92 installed in a compiler-specific directory"
94 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
96 # Initialize some variables set by options.
97 # The variables have the same names as the options, with
98 # dashes changed to underlines.
100 cache_file
=.
/config.cache
109 program_transform_name
=s
,x
,x
,
118 bindir
='${exec_prefix}/bin'
119 sbindir
='${exec_prefix}/sbin'
120 libexecdir
='${exec_prefix}/libexec'
121 datadir
='${prefix}/share'
122 sysconfdir
='${prefix}/etc'
123 sharedstatedir
='${prefix}/com'
124 localstatedir
='${prefix}/var'
125 libdir
='${exec_prefix}/lib'
126 includedir
='${prefix}/include'
127 oldincludedir
='/usr/include'
128 infodir
='${prefix}/info'
129 mandir
='${prefix}/man'
131 # Initialize some other variables.
134 SHELL
=${CONFIG_SHELL-/bin/sh}
135 # Maximum number of lines to put in a shell here document.
142 # If the previous option needs an argument, assign it.
143 if test -n "$ac_prev"; then
144 eval "$ac_prev=\$ac_option"
150 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
154 # Accept the important Cygnus configure options, so we can diagnose typos.
158 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
160 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
161 bindir
="$ac_optarg" ;;
163 -build |
--build |
--buil |
--bui |
--bu)
165 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
166 build
="$ac_optarg" ;;
168 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
169 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
170 ac_prev
=cache_file
;;
171 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
172 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
173 cache_file
="$ac_optarg" ;;
175 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
177 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
179 datadir
="$ac_optarg" ;;
181 -disable-* |
--disable-*)
182 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}=no" ;;
190 -enable-* |
--enable-*)
191 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
192 # Reject names that are not valid shell variable names.
193 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
194 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
196 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
201 eval "enable_${ac_feature}='$ac_optarg'" ;;
203 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
204 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
205 |
--exec |
--exe |
--ex)
206 ac_prev
=exec_prefix
;;
207 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
208 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
209 |
--exec=* |
--exe=* |
--ex=*)
210 exec_prefix
="$ac_optarg" ;;
212 -gas |
--gas |
--ga |
--g)
213 # Obsolete; use --with-gas.
216 -help |
--help |
--hel |
--he)
217 # Omit some internal or obsolete options to make the list less imposing.
218 # This message is too long to be a string in the A/UX 3.1 sh.
220 Usage: configure [options] [host]
221 Options: [defaults in brackets after descriptions]
223 --cache-file=FILE cache test results in FILE
224 --help print this message
225 --no-create do not create output files
226 --quiet, --silent do not print \`checking...' messages
227 --site-file=FILE use FILE as the site file
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
272 -host |
--host |
--hos |
--ho)
274 -host=* |
--host=* |
--hos=* |
--ho=*)
277 -includedir |
--includedir |
--includedi |
--included |
--include \
278 |
--includ |
--inclu |
--incl |
--inc)
279 ac_prev
=includedir
;;
280 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
281 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
282 includedir
="$ac_optarg" ;;
284 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
286 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
287 infodir
="$ac_optarg" ;;
289 -libdir |
--libdir |
--libdi |
--libd)
291 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
292 libdir
="$ac_optarg" ;;
294 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
295 |
--libexe |
--libex |
--libe)
296 ac_prev
=libexecdir
;;
297 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
298 |
--libexe=* |
--libex=* |
--libe=*)
299 libexecdir
="$ac_optarg" ;;
301 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
302 |
--localstate |
--localstat |
--localsta |
--localst \
303 |
--locals |
--local |
--loca |
--loc |
--lo)
304 ac_prev
=localstatedir
;;
305 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
306 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
307 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
308 localstatedir
="$ac_optarg" ;;
310 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
312 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
313 mandir
="$ac_optarg" ;;
316 # Obsolete; use --without-fp.
319 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
323 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
324 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
327 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
328 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
329 |
--oldin |
--oldi |
--old |
--ol |
--o)
330 ac_prev
=oldincludedir
;;
331 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
332 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
333 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
334 oldincludedir
="$ac_optarg" ;;
336 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
338 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
339 prefix
="$ac_optarg" ;;
341 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
342 |
--program-pre |
--program-pr |
--program-p)
343 ac_prev
=program_prefix
;;
344 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
345 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
346 program_prefix
="$ac_optarg" ;;
348 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
349 |
--program-suf |
--program-su |
--program-s)
350 ac_prev
=program_suffix
;;
351 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
352 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
353 program_suffix
="$ac_optarg" ;;
355 -program-transform-name |
--program-transform-name \
356 |
--program-transform-nam |
--program-transform-na \
357 |
--program-transform-n |
--program-transform- \
358 |
--program-transform |
--program-transfor \
359 |
--program-transfo |
--program-transf \
360 |
--program-trans |
--program-tran \
361 |
--progr-tra |
--program-tr |
--program-t)
362 ac_prev
=program_transform_name
;;
363 -program-transform-name=* |
--program-transform-name=* \
364 |
--program-transform-nam=* |
--program-transform-na=* \
365 |
--program-transform-n=* |
--program-transform-=* \
366 |
--program-transform=* |
--program-transfor=* \
367 |
--program-transfo=* |
--program-transf=* \
368 |
--program-trans=* |
--program-tran=* \
369 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
370 program_transform_name
="$ac_optarg" ;;
372 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
373 |
-silent |
--silent |
--silen |
--sile |
--sil)
376 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
378 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
380 sbindir
="$ac_optarg" ;;
382 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
383 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
384 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
386 ac_prev
=sharedstatedir
;;
387 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
388 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
389 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
391 sharedstatedir
="$ac_optarg" ;;
393 -site |
--site |
--sit)
395 -site=* |
--site=* |
--sit=*)
398 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
400 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
401 sitefile
="$ac_optarg" ;;
403 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
405 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
406 srcdir
="$ac_optarg" ;;
408 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
409 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
410 ac_prev
=sysconfdir
;;
411 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
412 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
413 sysconfdir
="$ac_optarg" ;;
415 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
417 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
418 target
="$ac_optarg" ;;
420 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
423 -version |
--version |
--versio |
--versi |
--vers)
424 echo "configure generated by autoconf version 2.13"
428 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}='$ac_optarg'" ;;
440 -without-* |
--without-*)
441 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
446 ac_package
=`echo $ac_package| sed 's/-/_/g'`
447 eval "with_${ac_package}=no" ;;
450 # Obsolete; use --with-x.
453 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
454 |
--x-incl |
--x-inc |
--x-in |
--x-i)
455 ac_prev
=x_includes
;;
456 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
457 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
458 x_includes
="$ac_optarg" ;;
460 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
461 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
462 ac_prev
=x_libraries
;;
463 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
464 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
465 x_libraries
="$ac_optarg" ;;
467 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
471 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
472 echo "configure: warning: $ac_option: invalid host type" 1>&2
474 if test "x$nonopt" != xNONE
; then
475 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
483 if test -n "$ac_prev"; then
484 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
489 # File descriptor usage:
492 # 2 errors and warnings
493 # 3 some systems may open it to /dev/tty
494 # 4 used on the Kubota Titan
495 # 6 checking for... messages and results
496 # 5 compiler messages saved in config.log
497 if test "$silent" = yes; then
505 This file contains any messages produced by compilers while
506 running configure, to aid debugging if configure makes a mistake.
509 # Strip out --no-create and --no-recursion so they do not pile up.
510 # Also quote any args containing shell metacharacters.
515 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
516 |
--no-cr |
--no-c) ;;
517 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
518 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
519 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
520 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
521 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
526 # Only set these to C if already set. These must not be set unconditionally
527 # because not all systems understand e.g. LANG=C (notably SCO).
528 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
529 # Non-C LC_CTYPE values break the ctype check.
530 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
531 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
532 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
533 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
535 # confdefs.h avoids OS command line length limits that DEFS can exceed.
536 rm -rf conftest
* confdefs.h
537 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
540 # A filename unique to this package, relative to the directory that
541 # configure is in, which we can look for to find out if srcdir is correct.
542 ac_unique_file
=tree.c
544 # Find the source files, if location was not specified.
545 if test -z "$srcdir"; then
546 ac_srcdir_defaulted
=yes
547 # Try the directory containing this script, then its parent.
549 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
550 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
552 if test ! -r $srcdir/$ac_unique_file; then
556 ac_srcdir_defaulted
=no
558 if test ! -r $srcdir/$ac_unique_file; then
559 if test "$ac_srcdir_defaulted" = yes; then
560 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
562 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
565 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
567 # Prefer explicitly selected file to automatically selected ones.
568 if test -z "$sitefile"; then
569 if test -z "$CONFIG_SITE"; then
570 if test "x$prefix" != xNONE
; then
571 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
573 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
577 CONFIG_SITE
="$sitefile"
579 for ac_site_file
in $CONFIG_SITE; do
580 if test -r "$ac_site_file"; then
581 echo "loading site script $ac_site_file"
586 if test -r "$cache_file"; then
587 echo "loading cache $cache_file"
590 echo "creating cache $cache_file"
595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
596 ac_cpp
='$CPP $CPPFLAGS'
597 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
598 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
599 cross_compiling
=$ac_cv_prog_cc_cross
603 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
604 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
605 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
612 ac_n
= ac_c
='\c' ac_t
=
620 symbolic_link
='ln -s'
623 # Check for bogus environment variables.
624 # Test if LIBRARY_PATH contains the notation for the current directory
625 # since this would lead to problems installing/building glibc.
626 # LIBRARY_PATH contains the current directory if one of the following
628 # - one of the terminals (":" and ";") is the first or last sign
629 # - two terminals occur directly after each other
630 # - the path contains an element with a dot in it
631 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
632 echo "configure:633: checking LIBRARY_PATH variable" >&5
633 case ${LIBRARY_PATH} in
634 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
635 library_path_setting
="contains current directory"
638 library_path_setting
="ok"
641 echo "$ac_t""$library_path_setting" 1>&6
642 if test "$library_path_setting" != "ok"; then
643 { echo "configure: error:
644 *** LIBRARY_PATH shouldn't contain the current directory when
645 *** building gcc. Please change the environment variable
646 *** and run configure again." 1>&2; exit 1; }
649 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
650 # since this would lead to problems installing/building glibc.
651 # GCC_EXEC_PREFIX contains the current directory if one of the following
653 # - one of the terminals (":" and ";") is the first or last sign
654 # - two terminals occur directly after each other
655 # - the path contains an element with a dot in it
656 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
657 echo "configure:658: checking GCC_EXEC_PREFIX variable" >&5
658 case ${GCC_EXEC_PREFIX} in
659 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
660 gcc_exec_prefix_setting
="contains current directory"
663 gcc_exec_prefix_setting
="ok"
666 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
667 if test "$gcc_exec_prefix_setting" != "ok"; then
668 { echo "configure: error:
669 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
670 *** building gcc. Please change the environment variable
671 *** and run configure again." 1>&2; exit 1; }
674 # Check for additional parameters
677 # Check whether --with-gnu-ld or --without-gnu-ld was given.
678 if test "${with_gnu_ld+set}" = set; then
679 withval
="$with_gnu_ld"
680 gnu_ld_flag
="$with_gnu_ld"
686 # With pre-defined ld
687 # Check whether --with-ld or --without-ld was given.
688 if test "${with_ld+set}" = set; then
690 DEFAULT_LINKER
="$with_ld"
693 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
694 if test ! -x "$DEFAULT_LINKER"; then
695 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
696 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
699 cat >> confdefs.h
<<EOF
700 #define DEFAULT_LINKER "$DEFAULT_LINKER"
706 # Check whether --with-gnu-as or --without-gnu-as was given.
707 if test "${with_gnu_as+set}" = set; then
708 withval
="$with_gnu_as"
709 gas_flag
="$with_gnu_as"
715 # Check whether --with-as or --without-as was given.
716 if test "${with_as+set}" = set; then
718 DEFAULT_ASSEMBLER
="$with_as"
721 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
722 if test ! -x "$DEFAULT_ASSEMBLER"; then
723 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
724 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
727 cat >> confdefs.h
<<EOF
728 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
734 # Check whether --with-stabs or --without-stabs was given.
735 if test "${with_stabs+set}" = set; then
736 withval
="$with_stabs"
744 # Check whether --with-elf or --without-elf was given.
745 if test "${with_elf+set}" = set; then
753 # Specify the local prefix
755 # Check whether --with-local-prefix or --without-local-prefix was given.
756 if test "${with_local_prefix+set}" = set; then
757 withval
="$with_local_prefix"
759 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
761 *) local_prefix
=$with_local_prefix ;;
766 # Default local prefix if it is empty
767 if test x
$local_prefix = x
; then
768 local_prefix
=/usr
/local
771 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
772 # passed in by the toplevel make and thus we'd get different behavior
773 # depending on where we built the sources.
775 # Specify the g++ header file directory
776 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
777 if test "${with_gxx_include_dir+set}" = set; then
778 withval
="$with_gxx_include_dir"
780 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
782 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
787 if test x
${gcc_gxx_include_dir} = x
; then
788 if test x
${enable_version_specific_runtime_libs} = xyes
; then
789 gcc_gxx_include_dir
='${libsubdir}/include/c++'
791 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
792 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
796 # Determine whether or not multilibs are enabled.
797 # Check whether --enable-multilib or --disable-multilib was given.
798 if test "${enable_multilib+set}" = set; then
799 enableval
="$enable_multilib"
807 # Enable expensive internal checks
808 # Check whether --enable-checking or --disable-checking was given.
809 if test "${enable_checking+set}" = set; then
810 enableval
="$enable_checking"
815 ac_gc_always_collect
=
816 case "${enableval}" in
817 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
819 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
820 set fnord
$enableval; shift
825 misc
) ac_checking
=1 ;;
826 tree
) ac_tree_checking
=1 ;;
827 rtl
) ac_rtl_checking
=1 ;;
828 gc
) ac_gc_checking
=1 ;;
829 gcac
) ac_gc_always_collect
=1 ;;
830 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
838 if test x
$ac_checking != x
; then
839 cat >> confdefs.h
<<\EOF
840 #define ENABLE_CHECKING 1
844 if test x
$ac_tree_checking != x
; then
845 cat >> confdefs.h
<<\EOF
846 #define ENABLE_TREE_CHECKING 1
850 if test x
$ac_rtl_checking != x
; then
851 cat >> confdefs.h
<<\EOF
852 #define ENABLE_RTL_CHECKING 1
856 if test x
$ac_gc_checking != x
; then
857 cat >> confdefs.h
<<\EOF
858 #define ENABLE_GC_CHECKING 1
862 if test x
$ac_gc_always_collect != x
; then
863 cat >> confdefs.h
<<\EOF
864 #define ENABLE_GC_ALWAYS_COLLECT 1
870 # Check whether --enable-cpp or --disable-cpp was given.
871 if test "${enable_cpp+set}" = set; then
872 enableval
="$enable_cpp"
879 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
880 if test "${with_cpp_install_dir+set}" = set; then
881 withval
="$with_cpp_install_dir"
882 if test x
$withval = xyes
; then
883 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
884 elif test x
$withval != xno
; then
885 cpp_install_dir
=$withval
890 # Enable __cxa_atexit for C++.
891 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
892 if test "${enable___cxa_atexit+set}" = set; then
893 enableval
="$enable___cxa_atexit"
897 if test x
$enable___cxa_atexit = xyes
; then
898 cat >> confdefs.h
<<\EOF
899 #define DEFAULT_USE_CXA_ATEXIT 1
904 # Enable Multibyte Characters for C/C++
905 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
906 if test "${enable_c_mbchar+set}" = set; then
907 enableval
="$enable_c_mbchar"
908 if test x
$enable_c_mbchar != xno
; then
909 cat >> confdefs.h
<<\EOF
910 #define MULTIBYTE_CHARS 1
918 # Pass with no value to take the default
919 # Pass with a value to specify a thread package
920 # Check whether --enable-threads or --disable-threads was given.
921 if test "${enable_threads+set}" = set; then
922 enableval
="$enable_threads"
929 enable_threads_flag
=$enable_threads
930 # Check if a valid thread package
931 case x
${enable_threads_flag} in
934 target_thread_file
='single'
938 target_thread_file
=''
940 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
941 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
942 target_thread_file
=$enable_threads_flag
945 echo "$enable_threads is an unknown thread package" 1>&2
950 # Check whether --enable-objc-gc or --disable-objc-gc was given.
951 if test "${enable_objc_gc+set}" = set; then
952 enableval
="$enable_objc_gc"
953 if test x
$enable_objc_gc = xno
; then
963 # Check whether --with-dwarf2 or --without-dwarf2 was given.
964 if test "${with_dwarf2+set}" = set; then
965 withval
="$with_dwarf2"
966 dwarf2
="$with_dwarf2"
972 # Check whether --enable-shared or --disable-shared was given.
973 if test "${enable_shared+set}" = set; then
974 enableval
="$enable_shared"
976 case $enable_shared in
980 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
981 for pkg
in $enableval; do
982 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
996 # Determine the host, build, and target systems
998 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
999 if test -f $ac_dir/install-sh
; then
1001 ac_install_sh
="$ac_aux_dir/install-sh -c"
1003 elif test -f $ac_dir/install.sh
; then
1005 ac_install_sh
="$ac_aux_dir/install.sh -c"
1009 if test -z "$ac_aux_dir"; then
1010 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1012 ac_config_guess
=$ac_aux_dir/config.guess
1013 ac_config_sub
=$ac_aux_dir/config.sub
1014 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1017 # Do some error checking and defaulting for the host and target type.
1019 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1022 # 1. You are not allowed to specify --host, --target, and nonopt at the
1024 # 2. Host defaults to nonopt.
1025 # 3. If nonopt is not specified, then host defaults to the current host,
1026 # as determined by config.guess.
1027 # 4. Target and build default to nonopt.
1028 # 5. If nonopt is not specified, then target and build default to host.
1030 # The aliases save the names the user supplied, while $host etc.
1031 # will get canonicalized.
1032 case $host---$target---$nonopt in
1033 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1034 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1038 # Make sure we can run config.sub.
1039 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1040 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1043 echo $ac_n "checking host system type""... $ac_c" 1>&6
1044 echo "configure:1045: checking host system type" >&5
1047 case "$host_alias" in
1051 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1052 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1054 *) host_alias
=$nonopt ;;
1058 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1059 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062 echo "$ac_t""$host" 1>&6
1064 echo $ac_n "checking target system type""... $ac_c" 1>&6
1065 echo "configure:1066: checking target system type" >&5
1067 target_alias
=$target
1068 case "$target_alias" in
1071 NONE
) target_alias
=$host_alias ;;
1072 *) target_alias
=$nonopt ;;
1076 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1077 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1078 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1079 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1080 echo "$ac_t""$target" 1>&6
1082 echo $ac_n "checking build system type""... $ac_c" 1>&6
1083 echo "configure:1084: checking build system type" >&5
1086 case "$build_alias" in
1089 NONE
) build_alias
=$host_alias ;;
1090 *) build_alias
=$nonopt ;;
1094 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1095 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1096 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1097 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1098 echo "$ac_t""$build" 1>&6
1100 test "$host_alias" != "$target_alias" &&
1101 test "$program_prefix$program_suffix$program_transform_name" = \
1103 program_prefix
=${target_alias}-
1106 # Set program_transform_name
1107 if test "$program_transform_name" = s
,x
,x
,; then
1108 program_transform_name
=
1110 # Double any \ or $. echo might interpret backslashes.
1111 cat <<\EOF_SED
> conftestsed
1112 s
,\\,\\\\,g
; s
,\$
,$$
,g
1114 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1117 test "$program_prefix" != NONE
&&
1118 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1119 # Use a double $ so make ignores it.
1120 test "$program_suffix" != NONE
&&
1121 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1123 # sed with no file args requires a program.
1124 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1127 # Find the native compiler
1128 # Extract the first word of "gcc", so it can be a program name with args.
1129 set dummy gcc
; ac_word
=$2
1130 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1131 echo "configure:1132: checking for $ac_word" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 if test -n "$CC"; then
1136 ac_cv_prog_CC
="$CC" # Let the user override the test.
1138 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1140 for ac_dir
in $ac_dummy; do
1141 test -z "$ac_dir" && ac_dir
=.
1142 if test -f $ac_dir/$ac_word; then
1151 if test -n "$CC"; then
1152 echo "$ac_t""$CC" 1>&6
1154 echo "$ac_t""no" 1>&6
1157 if test -z "$CC"; then
1158 # Extract the first word of "cc", so it can be a program name with args.
1159 set dummy cc
; ac_word
=$2
1160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161 echo "configure:1162: checking for $ac_word" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 if test -n "$CC"; then
1166 ac_cv_prog_CC
="$CC" # Let the user override the test.
1168 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1171 for ac_dir
in $ac_dummy; do
1172 test -z "$ac_dir" && ac_dir
=.
1173 if test -f $ac_dir/$ac_word; then
1174 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1175 ac_prog_rejected
=yes
1183 if test $ac_prog_rejected = yes; then
1184 # We found a bogon in the path, so make sure we never use it.
1185 set dummy
$ac_cv_prog_CC
1187 if test $# -gt 0; then
1188 # We chose a different compiler from the bogus one.
1189 # However, it has the same basename, so the bogon will be chosen
1190 # first if we set CC to just the basename; use the full file name.
1192 set dummy
"$ac_dir/$ac_word" "$@"
1200 if test -n "$CC"; then
1201 echo "$ac_t""$CC" 1>&6
1203 echo "$ac_t""no" 1>&6
1206 if test -z "$CC"; then
1207 case "`uname -s`" in
1209 # Extract the first word of "cl", so it can be a program name with args.
1210 set dummy cl
; ac_word
=$2
1211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212 echo "configure:1213: checking for $ac_word" >&5
1213 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 if test -n "$CC"; then
1217 ac_cv_prog_CC
="$CC" # Let the user override the test.
1219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1221 for ac_dir
in $ac_dummy; do
1222 test -z "$ac_dir" && ac_dir
=.
1223 if test -f $ac_dir/$ac_word; then
1232 if test -n "$CC"; then
1233 echo "$ac_t""$CC" 1>&6
1235 echo "$ac_t""no" 1>&6
1240 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1243 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1247 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1248 ac_cpp
='$CPP $CPPFLAGS'
1249 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1250 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1251 cross_compiling
=$ac_cv_prog_cc_cross
1253 cat > conftest.
$ac_ext << EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1260 if { (eval echo configure
:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1261 ac_cv_prog_cc_works
=yes
1262 # If we can't run a trivial program, we are probably using a cross compiler.
1263 if (.
/conftest
; exit) 2>/dev
/null
; then
1264 ac_cv_prog_cc_cross
=no
1266 ac_cv_prog_cc_cross
=yes
1269 echo "configure: failed program was:" >&5
1270 cat conftest.
$ac_ext >&5
1271 ac_cv_prog_cc_works
=no
1275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1276 ac_cpp
='$CPP $CPPFLAGS'
1277 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1278 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1279 cross_compiling
=$ac_cv_prog_cc_cross
1281 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1282 if test $ac_cv_prog_cc_works = no
; then
1283 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1285 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1286 echo "configure:1287: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1287 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1288 cross_compiling
=$ac_cv_prog_cc_cross
1290 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1291 echo "configure:1292: checking whether we are using GNU C" >&5
1292 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 cat > conftest.c
<<EOF
1300 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1307 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1309 if test $ac_cv_prog_gcc = yes; then
1315 ac_test_CFLAGS
="${CFLAGS+set}"
1316 ac_save_CFLAGS
="$CFLAGS"
1318 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether ${CC-cc} accepts -g" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 echo 'void f(){}' > conftest.c
1324 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1333 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1334 if test "$ac_test_CFLAGS" = set; then
1335 CFLAGS
="$ac_save_CFLAGS"
1336 elif test $ac_cv_prog_cc_g = yes; then
1337 if test "$GCC" = yes; then
1343 if test "$GCC" = yes; then
1350 if test "x$CC" != xcc
; then
1351 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1352 echo "configure:1353: checking whether $CC and cc understand -c and -o together" >&5
1354 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether cc understands -c and -o together" >&5
1357 set dummy
$CC; ac_cc
="`echo $2 |
1358 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1359 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 echo 'foo(){}' > conftest.c
1363 # Make sure it works both with $CC and with simple cc.
1364 # We do the test twice because some compilers refuse to overwrite an
1365 # existing .o file with -o, though they will create one.
1366 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1367 if { (eval echo configure
:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1368 test -f conftest.o
&& { (eval echo configure
:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1370 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1371 if test "x$CC" != xcc
; then
1372 # Test first that cc exists at all.
1373 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1374 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1375 if { (eval echo configure
:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1376 test -f conftest.o
&& { (eval echo configure
:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1381 # cc exists but doesn't like -o.
1382 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1387 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1392 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1393 echo "$ac_t""yes" 1>&6
1395 echo "$ac_t""no" 1>&6
1396 cat >> confdefs.h
<<\EOF
1397 #define NO_MINUS_C_MINUS_O 1
1402 # autoconf is lame and doesn't give us any substitution variable for this.
1403 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1404 NO_MINUS_C_MINUS_O
=yes
1406 OUTPUT_OPTION
='-o $@'
1411 # See if GNAT has been installed
1412 if test $host != $build; then
1413 ac_tool_prefix
=${host_alias}-
1419 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1420 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1422 echo "configure:1423: checking for $ac_word" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 if test -n "$GNATBIND"; then
1427 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1429 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1431 for ac_dir
in $ac_dummy; do
1432 test -z "$ac_dir" && ac_dir
=.
1433 if test -f $ac_dir/$ac_word; then
1434 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1441 GNATBIND
="$ac_cv_prog_GNATBIND"
1442 if test -n "$GNATBIND"; then
1443 echo "$ac_t""$GNATBIND" 1>&6
1445 echo "$ac_t""no" 1>&6
1449 if test -z "$ac_cv_prog_GNATBIND"; then
1450 if test -n "$ac_tool_prefix"; then
1451 # Extract the first word of "gnatbind", so it can be a program name with args.
1452 set dummy gnatbind
; ac_word
=$2
1453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_word" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 if test -n "$GNATBIND"; then
1459 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1461 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1463 for ac_dir
in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir
=.
1465 if test -f $ac_dir/$ac_word; then
1466 ac_cv_prog_GNATBIND
="gnatbind"
1471 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1474 GNATBIND
="$ac_cv_prog_GNATBIND"
1475 if test -n "$GNATBIND"; then
1476 echo "$ac_t""$GNATBIND" 1>&6
1478 echo "$ac_t""no" 1>&6
1486 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1487 echo "configure:1488: checking for compiler driver that understands Ada" >&5
1488 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 cat >conftest.adb
<<EOF
1492 procedure conftest is begin null; end conftest;
1495 # Have to do ac_tool_prefix and user overrides by hand.
1498 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
1499 ${ac_tool_prefix}$user_cc $user_cc \
1500 ${ac_tool_prefix}gcc gcc \
1501 ${ac_tool_prefix}cc cc \
1502 ${ac_tool_prefix}gnatgcc gnatgcc \
1503 ${ac_tool_prefix}gnatcc gnatcc \
1504 ${ac_tool_prefix}adagcc adagcc \
1505 ${ac_tool_prefix}adacc adacc
; do
1506 # There is a bug in all released versions of GCC which causes the
1507 # driver to exit successfully when the appropriate language module
1508 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1509 # Therefore we must check for the error message as well as an
1510 # unsuccessful exit.
1511 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1512 if test x
"$errors" = x
; then
1513 gcc_cv_prog_adac
=$cand
1520 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1521 ADAC
=$gcc_cv_prog_adac
1524 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1531 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1532 echo "configure:1533: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1533 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 save_CFLAGS
="$CFLAGS"
1537 CFLAGS
="-Wno-long-long"
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1546 if { (eval echo configure
:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1548 ac_cv_prog_cc_no_long_long
=yes
1550 echo "configure: failed program was:" >&5
1551 cat conftest.
$ac_ext >&5
1553 ac_cv_prog_cc_no_long_long
=no
1556 CFLAGS
="$save_CFLAGS"
1559 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1561 if test x
$have_gnat != xno
; then
1562 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1563 echo "configure:1564: checking whether ${ADAC} accepts -Wno-long-long" >&5
1564 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 cat >conftest.adb
<<EOF
1568 procedure conftest is begin null; end conftest;
1570 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1571 ac_cv_prog_adac_no_long_long
=yes
1573 ac_cv_prog_adac_no_long_long
=no
1578 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1580 ac_cv_prog_adac_no_long_long
=yes
1584 if test $ac_cv_prog_cc_no_long_long = yes && \
1585 test $ac_cv_prog_adac_no_long_long = yes ; then
1586 strict1_warn
="-pedantic -Wno-long-long"
1590 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1591 echo "configure:1592: checking how to run the C preprocessor" >&5
1592 # On Suns, sometimes $CPP names a directory.
1593 if test -n "$CPP" && test -d "$CPP"; then
1596 if test -z "$CPP"; then
1597 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 # This must be in double quotes, not single quotes, because CPP may get
1601 # substituted into the Makefile and "${CC-cc}" will confuse make.
1603 # On the NeXT, cc -E runs the code through the compiler's parser,
1604 # not just through cpp.
1605 cat > conftest.
$ac_ext <<EOF
1606 #line 1607 "configure"
1607 #include "confdefs.h"
1611 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1612 { (eval echo configure
:1613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1613 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1614 if test -z "$ac_err"; then
1618 echo "configure: failed program was:" >&5
1619 cat conftest.
$ac_ext >&5
1621 CPP
="${CC-cc} -E -traditional-cpp"
1622 cat > conftest.
$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1628 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1629 { (eval echo configure
:1630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1630 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1631 if test -z "$ac_err"; then
1635 echo "configure: failed program was:" >&5
1636 cat conftest.
$ac_ext >&5
1638 CPP
="${CC-cc} -nologo -E"
1639 cat > conftest.
$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1645 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1646 { (eval echo configure
:1647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1647 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1648 if test -z "$ac_err"; then
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1662 ac_cv_prog_CPP
="$CPP"
1664 CPP
="$ac_cv_prog_CPP"
1666 ac_cv_prog_CPP
="$CPP"
1668 echo "$ac_t""$CPP" 1>&6
1670 echo $ac_n "checking for inline""... $ac_c" 1>&6
1671 echo "configure:1672: checking for inline" >&5
1672 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1676 for ac_kw
in inline __inline__ __inline
; do
1677 cat > conftest.
$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1685 if { (eval echo configure
:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1687 ac_cv_c_inline
=$ac_kw; break
1689 echo "configure: failed program was:" >&5
1690 cat conftest.
$ac_ext >&5
1697 echo "$ac_t""$ac_cv_c_inline" 1>&6
1698 case "$ac_cv_c_inline" in
1700 no
) cat >> confdefs.h
<<\EOF
1704 *) cat >> confdefs.h
<<EOF
1705 #define inline $ac_cv_c_inline
1710 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1711 echo "configure:1712: checking for volatile" >&5
1712 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 cat > conftest.
$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1723 if { (eval echo configure
:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1725 gcc_cv_c_volatile
=yes
1727 echo "configure: failed program was:" >&5
1728 cat conftest.
$ac_ext >&5
1730 gcc_cv_c_volatile
=no
1735 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1736 if test $gcc_cv_c_volatile = yes ; then
1737 cat >> confdefs.h
<<\EOF
1738 #define HAVE_VOLATILE 1
1744 echo $ac_n "checking for long double""... $ac_c" 1>&6
1745 echo "configure:1746: checking for long double" >&5
1746 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 if test "$GCC" = yes; then
1750 gcc_cv_c_long_double
=yes
1752 cat > conftest.
$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1757 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1758 long double foo = 0.0;
1759 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1760 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1763 if { (eval echo configure
:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1765 gcc_cv_c_long_double
=yes
1767 echo "configure: failed program was:" >&5
1768 cat conftest.
$ac_ext >&5
1770 gcc_cv_c_long_double
=no
1776 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1777 if test $gcc_cv_c_long_double = yes; then
1778 cat >> confdefs.h
<<\EOF
1779 #define HAVE_LONG_DOUBLE 1
1784 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1785 echo "configure:1786: checking for long long int" >&5
1786 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 cat > conftest.
$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1797 if { (eval echo configure
:1798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1799 ac_cv_c_long_long
=yes
1801 echo "configure: failed program was:" >&5
1802 cat conftest.
$ac_ext >&5
1804 ac_cv_c_long_long
=no
1809 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1810 if test $ac_cv_c_long_long = yes; then
1811 cat >> confdefs.h
<<\EOF
1812 #define HAVE_LONG_LONG 1
1816 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1817 echo "configure:1818: checking for __int64" >&5
1818 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1829 if { (eval echo configure
:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833 echo "configure: failed program was:" >&5
1834 cat conftest.
$ac_ext >&5
1841 echo "$ac_t""$ac_cv_c___int64" 1>&6
1842 if test $ac_cv_c___int64 = yes; then
1843 cat >> confdefs.h
<<\EOF
1844 #define HAVE___INT64 1
1849 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1850 echo "configure:1851: checking for built-in _Bool" >&5
1851 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 cat > conftest.
$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1862 if { (eval echo configure
:1863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1866 echo "configure: failed program was:" >&5
1867 cat conftest.
$ac_ext >&5
1875 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1876 if test $gcc_cv_c__bool = yes; then
1877 cat >> confdefs.h
<<\EOF
1878 #define HAVE__BOOL 1
1884 # sizeof(char) is 1 by definition.
1885 echo $ac_n "checking size of short""... $ac_c" 1>&6
1886 echo "configure:1887: checking size of short" >&5
1887 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1891 cat > conftest.
$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 #include "confdefs.h"
1895 #include <sys/types.h>
1899 switch (0) case 0: case (sizeof (short) == $ac_size):;
1902 if { (eval echo configure
:1903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1904 ac_cv_sizeof_short
=$ac_size
1906 echo "configure: failed program was:" >&5
1907 cat conftest.
$ac_ext >&5
1910 if test x
$ac_cv_sizeof_short != x
; then break; fi
1915 if test x
$ac_cv_sizeof_short = x
; then
1916 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1918 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1919 cat >> confdefs.h
<<EOF
1920 #define SIZEOF_SHORT $ac_cv_sizeof_short
1924 echo $ac_n "checking size of int""... $ac_c" 1>&6
1925 echo "configure:1926: checking size of int" >&5
1926 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1930 cat > conftest.
$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 #include "confdefs.h"
1934 #include <sys/types.h>
1938 switch (0) case 0: case (sizeof (int) == $ac_size):;
1941 if { (eval echo configure
:1942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1943 ac_cv_sizeof_int
=$ac_size
1945 echo "configure: failed program was:" >&5
1946 cat conftest.
$ac_ext >&5
1949 if test x
$ac_cv_sizeof_int != x
; then break; fi
1954 if test x
$ac_cv_sizeof_int = x
; then
1955 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1957 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1958 cat >> confdefs.h
<<EOF
1959 #define SIZEOF_INT $ac_cv_sizeof_int
1963 echo $ac_n "checking size of long""... $ac_c" 1>&6
1964 echo "configure:1965: checking size of long" >&5
1965 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1969 cat > conftest.
$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 #include "confdefs.h"
1973 #include <sys/types.h>
1977 switch (0) case 0: case (sizeof (long) == $ac_size):;
1980 if { (eval echo configure
:1981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1982 ac_cv_sizeof_long
=$ac_size
1984 echo "configure: failed program was:" >&5
1985 cat conftest.
$ac_ext >&5
1988 if test x
$ac_cv_sizeof_long != x
; then break; fi
1993 if test x
$ac_cv_sizeof_long = x
; then
1994 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1996 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1997 cat >> confdefs.h
<<EOF
1998 #define SIZEOF_LONG $ac_cv_sizeof_long
2002 if test $ac_cv_c_long_long = yes; then
2003 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2004 echo "configure:2005: checking size of long long" >&5
2005 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2009 cat > conftest.
$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2012 #include "confdefs.h"
2013 #include <sys/types.h>
2017 switch (0) case 0: case (sizeof (long long) == $ac_size):;
2020 if { (eval echo configure
:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2022 ac_cv_sizeof_long_long
=$ac_size
2024 echo "configure: failed program was:" >&5
2025 cat conftest.
$ac_ext >&5
2028 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2033 if test x
$ac_cv_sizeof_long_long = x
; then
2034 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2036 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2037 cat >> confdefs.h
<<EOF
2038 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2043 if test $ac_cv_c___int64 = yes; then
2044 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
2045 echo "configure:2046: checking size of __int64" >&5
2046 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2050 cat > conftest.
$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2053 #include "confdefs.h"
2054 #include <sys/types.h>
2058 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
2061 if { (eval echo configure
:2062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2063 ac_cv_sizeof___int64
=$ac_size
2065 echo "configure: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2069 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
2074 if test x
$ac_cv_sizeof___int64 = x
; then
2075 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
2077 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
2078 cat >> confdefs.h
<<EOF
2079 #define SIZEOF___INT64 $ac_cv_sizeof___int64
2085 echo $ac_n "checking execution character set""... $ac_c" 1>&6
2086 echo "configure:2087: checking execution character set" >&5
2087 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 cat > conftest.
$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2093 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2094 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2099 egrep "ASCII" >/dev
/null
2>&1; then
2101 ac_cv_c_charset
=ASCII
2105 if test x
${ac_cv_c_charset+set} != xset
; then
2106 cat > conftest.
$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2110 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2115 egrep "EBCDIC" >/dev
/null
2>&1; then
2117 ac_cv_c_charset
=EBCDIC
2122 if test x
${ac_cv_c_charset+set} != xset
; then
2123 ac_cv_c_charset
=unknown
2127 echo "$ac_t""$ac_cv_c_charset" 1>&6
2128 if test $ac_cv_c_charset = unknown
; then
2129 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
2130 elif test $ac_cv_c_charset = EBCDIC
; then
2131 cat >> confdefs.h
<<\EOF
2132 #define HOST_EBCDIC 1
2137 # If the native compiler is GCC, we can enable warnings even in stage1.
2138 # That's useful for people building cross-compilers, or just running a
2141 if test "x$GCC" = "xyes"; then
2142 warn_cflags
='$(GCC_WARN_CFLAGS)'
2146 # Stage specific cflags for build.
2150 if test x
$GCC = xyes
2152 stage1_cflags
="-Wa,-J"
2158 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
2159 # sources; use -no-cpp-precomp to get to GNU cpp.
2160 # Apple's GCC has bugs in designated initializer handling, so disable
2162 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
2167 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2168 echo "configure:2169: checking whether ${MAKE-make} sets \${MAKE}" >&5
2169 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2170 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftestmake
<<\EOF
2175 @
echo 'ac_maketemp="${MAKE}"'
2177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2178 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2179 if test -n "$ac_maketemp"; then
2180 eval ac_cv_prog_make_
${ac_make}_set
=yes
2182 eval ac_cv_prog_make_
${ac_make}_set
=no
2186 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2190 echo "$ac_t""no" 1>&6
2191 SET_MAKE
="MAKE=${MAKE-make}"
2195 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2196 echo "configure:2197: checking whether a default assembler was specified" >&5
2197 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2198 if test x
"$gas_flag" = x
"no"; then
2199 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2201 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2204 echo "$ac_t""no" 1>&6
2207 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2208 echo "configure:2209: checking whether a default linker was specified" >&5
2209 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2210 if test x
"$gnu_ld_flag" = x
"no"; then
2211 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2213 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2216 echo "$ac_t""no" 1>&6
2219 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2220 echo "configure:2221: checking for GNU C library" >&5
2221 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 #include <features.h>
2230 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2231 #error Not a GNU C library system
2235 if { (eval echo configure
:2236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2247 echo "$ac_t""$gcc_cv_glibc" 1>&6
2248 if test $gcc_cv_glibc = yes; then
2249 cat >> confdefs.h
<<\EOF
2250 #define _GNU_SOURCE 1
2255 # Find some useful tools
2256 for ac_prog
in mawk gawk nawk
awk
2258 # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy
$ac_prog; ac_word
=$2
2260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2261 echo "configure:2262: checking for $ac_word" >&5
2262 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 if test -n "$AWK"; then
2266 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2268 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2270 for ac_dir
in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir
=.
2272 if test -f $ac_dir/$ac_word; then
2273 ac_cv_prog_AWK
="$ac_prog"
2280 AWK
="$ac_cv_prog_AWK"
2281 if test -n "$AWK"; then
2282 echo "$ac_t""$AWK" 1>&6
2284 echo "$ac_t""no" 1>&6
2287 test -n "$AWK" && break
2290 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether ln works" >&5
2292 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 rm -f conftestdata_t
2296 echo >conftestdata_f
2297 if ln conftestdata_f conftestdata_t
2>/dev
/null
2301 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2303 gcc_cv_prog_LN
="ln -s"
2308 rm -f conftestdata_f conftestdata_t
2311 LN
="$gcc_cv_prog_LN"
2312 if test "$gcc_cv_prog_LN" = "ln"; then
2313 echo "$ac_t""yes" 1>&6
2315 if test "$gcc_cv_prog_LN" = "ln -s"; then
2316 echo "$ac_t""no, using ln -s" 1>&6
2318 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2322 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2323 echo "configure:2324: checking whether ln -s works" >&5
2324 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 rm -f conftestdata_t
2328 echo >conftestdata_f
2329 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2331 gcc_cv_prog_LN_S
="ln -s"
2333 if ln conftestdata_f conftestdata_t
2>/dev
/null
2340 rm -f conftestdata_f conftestdata_t
2343 LN_S
="$gcc_cv_prog_LN_S"
2344 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2345 echo "$ac_t""yes" 1>&6
2347 if test "$gcc_cv_prog_LN_S" = "ln"; then
2348 echo "$ac_t""no, using ln" 1>&6
2350 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2354 # Extract the first word of "ranlib", so it can be a program name with args.
2355 set dummy ranlib
; ac_word
=$2
2356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2357 echo "configure:2358: checking for $ac_word" >&5
2358 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 if test -n "$RANLIB"; then
2362 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2364 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2366 for ac_dir
in $ac_dummy; do
2367 test -z "$ac_dir" && ac_dir
=.
2368 if test -f $ac_dir/$ac_word; then
2369 ac_cv_prog_RANLIB
="ranlib"
2374 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2377 RANLIB
="$ac_cv_prog_RANLIB"
2378 if test -n "$RANLIB"; then
2379 echo "$ac_t""$RANLIB" 1>&6
2381 echo "$ac_t""no" 1>&6
2384 # Find a good install program. We prefer a C program (faster),
2385 # so one script is as good as another. But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2393 # ./install, which can be erroneously created by make from ./install.sh.
2394 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2395 echo "configure:2396: checking for a BSD compatible install" >&5
2396 if test -z "$INSTALL"; then
2397 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2401 for ac_dir
in $PATH; do
2402 # Account for people who put trailing slashes in PATH elements.
2404 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2406 # OSF1 and SCO ODT 3.0 have their own names for install.
2407 for ac_prog
in ginstall scoinst
install; do
2408 if test -f $ac_dir/$ac_prog; then
2409 if test $ac_prog = install &&
2410 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2411 # AIX install. It has an incompatible calling convention.
2412 # OSF/1 installbsd also uses dspmsg, but is usable.
2415 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2426 if test "${ac_cv_path_install+set}" = set; then
2427 INSTALL
="$ac_cv_path_install"
2429 # As a last resort, use the slow shell script. We don't cache a
2430 # path for INSTALL within a source directory, because that will
2431 # break other packages using the cache if that directory is
2432 # removed, or if the path is relative.
2433 INSTALL
="$ac_install_sh"
2436 echo "$ac_t""$INSTALL" 1>&6
2438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2439 # It thinks the first close brace ends the variable substitution.
2440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2442 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2445 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2446 echo "configure:2447: checking for ANSI C header files" >&5
2447 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2458 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2459 { (eval echo configure
:2460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2460 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2461 if test -z "$ac_err"; then
2463 ac_cv_header_stdc
=yes
2466 echo "configure: failed program was:" >&5
2467 cat conftest.
$ac_ext >&5
2469 ac_cv_header_stdc
=no
2473 if test $ac_cv_header_stdc = yes; then
2474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2481 egrep "memchr" >/dev
/null
2>&1; then
2485 ac_cv_header_stdc
=no
2491 if test $ac_cv_header_stdc = yes; then
2492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2499 egrep "free" >/dev
/null
2>&1; then
2503 ac_cv_header_stdc
=no
2509 if test $ac_cv_header_stdc = yes; then
2510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2511 if test "$cross_compiling" = yes; then
2514 cat > conftest.
$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2518 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2519 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2521 int main () { int i; for (i = 0; i < 256; i++)
2522 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2526 if { (eval echo configure
:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2530 echo "configure: failed program was:" >&5
2531 cat conftest.
$ac_ext >&5
2533 ac_cv_header_stdc
=no
2541 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2542 if test $ac_cv_header_stdc = yes; then
2543 cat >> confdefs.h
<<\EOF
2544 #define STDC_HEADERS 1
2549 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2550 echo "configure:2551: checking whether time.h and sys/time.h may both be included" >&5
2551 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.
$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 #include <sys/types.h>
2558 #include <sys/time.h>
2564 if { (eval echo configure
:2565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2566 ac_cv_header_time
=yes
2568 echo "configure: failed program was:" >&5
2569 cat conftest.
$ac_ext >&5
2571 ac_cv_header_time
=no
2576 echo "$ac_t""$ac_cv_header_time" 1>&6
2577 if test $ac_cv_header_time = yes; then
2578 cat >> confdefs.h
<<\EOF
2579 #define TIME_WITH_SYS_TIME 1
2584 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2585 echo "configure:2586: checking for working stdbool.h" >&5
2586 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2592 #include <stdbool.h>
2597 if { (eval echo configure
:2598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2599 ac_cv_header_stdbool_h
=yes
2601 echo "configure: failed program was:" >&5
2602 cat conftest.
$ac_ext >&5
2604 ac_cv_header_stdbool_h
=no
2609 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2610 if test $ac_cv_header_stdbool_h = yes; then
2611 cat >> confdefs.h
<<\EOF
2612 #define HAVE_STDBOOL_H 1
2617 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2618 echo "configure:2619: checking whether string.h and strings.h may both be included" >&5
2619 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 cat > conftest.
$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2626 #include <strings.h>
2631 if { (eval echo configure
:2632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2633 gcc_cv_header_string
=yes
2635 echo "configure: failed program was:" >&5
2636 cat conftest.
$ac_ext >&5
2638 gcc_cv_header_string
=no
2643 echo "$ac_t""$gcc_cv_header_string" 1>&6
2644 if test $gcc_cv_header_string = yes; then
2645 cat >> confdefs.h
<<\EOF
2646 #define STRING_WITH_STRINGS 1
2651 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2652 echo "configure:2653: checking for sys/wait.h that is POSIX.1 compatible" >&5
2653 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.
$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2659 #include <sys/types.h>
2660 #include <sys/wait.h>
2662 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2665 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2670 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2673 if { (eval echo configure
:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2675 ac_cv_header_sys_wait_h
=yes
2677 echo "configure: failed program was:" >&5
2678 cat conftest.
$ac_ext >&5
2680 ac_cv_header_sys_wait_h
=no
2685 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2686 if test $ac_cv_header_sys_wait_h = yes; then
2687 cat >> confdefs.h
<<\EOF
2688 #define HAVE_SYS_WAIT_H 1
2693 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2694 fcntl.h unistd.h sys
/file.h sys
/time.h \
2695 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2696 direct.h malloc.h langinfo.h
2698 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_hdr" >&5
2701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.
$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2709 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2710 { (eval echo configure
:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2711 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2712 if test -z "$ac_err"; then
2714 eval "ac_cv_header_$ac_safe=yes"
2717 echo "configure: failed program was:" >&5
2718 cat conftest.
$ac_ext >&5
2720 eval "ac_cv_header_$ac_safe=no"
2724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2725 echo "$ac_t""yes" 1>&6
2726 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2727 cat >> confdefs.h
<<EOF
2728 #define $ac_tr_hdr 1
2732 echo "$ac_t""no" 1>&6
2737 # Check for thread headers.
2738 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2739 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2740 echo "configure:2741: checking for thread.h" >&5
2741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 cat > conftest.
$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2750 { (eval echo configure
:2751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2752 if test -z "$ac_err"; then
2754 eval "ac_cv_header_$ac_safe=yes"
2757 echo "configure: failed program was:" >&5
2758 cat conftest.
$ac_ext >&5
2760 eval "ac_cv_header_$ac_safe=no"
2764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2768 echo "$ac_t""no" 1>&6
2772 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2773 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2774 echo "configure:2775: checking for pthread.h" >&5
2775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <pthread.h>
2783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2784 { (eval echo configure
:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2785 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2786 if test -z "$ac_err"; then
2788 eval "ac_cv_header_$ac_safe=yes"
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2794 eval "ac_cv_header_$ac_safe=no"
2798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2802 echo "$ac_t""no" 1>&6
2807 # These tests can't be done till we know if we have limits.h.
2808 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2809 echo "configure:2810: checking for CHAR_BIT" >&5
2810 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.
$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 #ifdef HAVE_LIMITS_H
2823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2824 egrep "found" >/dev
/null
2>&1; then
2826 gcc_cv_decl_char_bit
=yes
2829 gcc_cv_decl_char_bit
=no
2836 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2837 if test $gcc_cv_decl_char_bit = no
; then
2838 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2839 echo "configure:2840: checking number of bits in a byte" >&5
2840 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2845 while test $i -lt 65; do
2846 cat > conftest.
$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2852 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2853 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2857 if { (eval echo configure
:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2859 gcc_cv_c_nbby
=$i; break
2861 echo "configure: failed program was:" >&5
2862 cat conftest.
$ac_ext >&5
2867 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2871 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2872 if test $gcc_cv_c_nbby = failed
; then
2873 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2875 cat >> confdefs.h
<<EOF
2876 #define CHAR_BIT $gcc_cv_c_nbby
2881 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2882 echo "configure:2883: checking byte ordering" >&5
2883 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 ac_cv_c_compile_endian
=unknown
2889 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2890 ac_cpp
='$CPP $CPPFLAGS'
2891 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2892 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2893 cross_compiling
=$ac_cv_prog_cc_cross
2895 cat > conftest.
$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2899 #ifdef HAVE_LIMITS_H
2900 # include <limits.h>
2902 /* This structure must have no internal padding. */
2904 char prefix[sizeof "\nendian:" - 1];
2909 #if SIZEOF_SHORT == 4
2910 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2912 ('A' << CHAR_BIT) | 'B',
2916 if { (eval echo configure
:2917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2918 sed 's/^[0-7]*[ ]*/ /
2921 s/ [0-9][0-9][0-9]/./g
2927 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2928 ac_cv_c_compile_endian
=big-endian
2929 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2930 ac_cv_c_compile_endian
=little-endian
2935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2936 ac_cpp
='$CPP $CPPFLAGS'
2937 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2938 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2939 cross_compiling
=$ac_cv_prog_cc_cross
2944 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2945 if test $ac_cv_c_compile_endian = unknown
; then
2946 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2947 elif test $ac_cv_c_compile_endian = big-endian
; then
2948 cat >> confdefs.h
<<\EOF
2949 #define HOST_WORDS_BIG_ENDIAN 1
2954 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2955 echo "configure:2956: checking floating point format" >&5
2956 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2962 ac_cpp
='$CPP $CPPFLAGS'
2963 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2964 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2965 cross_compiling
=$ac_cv_prog_cc_cross
2967 cat > conftest.
$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2970 /* This will not work unless sizeof(double) == 8. */
2971 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2973 /* This structure must have no internal padding. */
2974 struct possibility {
2980 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2981 struct possibility table [] =
2983 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2984 C( 3.53802595280598432000e+18), /* D__float - VAX */
2985 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2986 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2987 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2990 if { (eval echo configure
:2991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2992 sed 's/^[0-7]*[ ]*/ /
2995 s/ [0-9][0-9][0-9]/./g
3001 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3002 ac_cv_c_float_format
='IEEE (big-endian)'
3003 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3004 ac_cv_c_float_format
='IEEE (big-endian)'
3005 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3006 ac_cv_c_float_format
='IEEE (little-endian)'
3007 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3008 ac_cv_c_float_format
='IEEE (little-endian)'
3009 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3010 ac_cv_c_float_format
='VAX D-float'
3011 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3012 ac_cv_c_float_format
='PDP-10'
3013 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3014 ac_cv_c_float_format
='IBM 370 hex'
3016 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
3019 { echo "configure: error: compile failed" 1>&2; exit 1; }
3023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3024 ac_cpp
='$CPP $CPPFLAGS'
3025 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3026 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3027 cross_compiling
=$ac_cv_prog_cc_cross
3032 echo "$ac_t""$ac_cv_c_float_format" 1>&6
3033 # IEEE is the default format. If the float endianness isn't the same
3034 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
3035 # (which is a tristate: yes, no, default). This is only an issue with
3036 # IEEE; the other formats are only supported by a few machines each,
3037 # all with the same endianness.
3040 case $ac_cv_c_float_format in
3041 'IEEE (big-endian)' )
3042 if test $ac_cv_c_compile_endian = little-endian
; then
3046 'IEEE (little-endian)' )
3047 if test $ac_cv_c_compile_endian = big-endian
; then
3052 format
=VAX_FLOAT_FORMAT
3055 format
=PDP10_FLOAT_FORMAT
3058 format
=IBM_FLOAT_FORMAT
3061 if test -n "$format"; then
3062 cat >> confdefs.h
<<EOF
3063 #define HOST_FLOAT_FORMAT $format
3067 if test -n "$fbigend"; then
3068 cat >> confdefs.h
<<EOF
3069 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
3075 # See if we have the mktemp command.
3076 # Extract the first word of "mktemp", so it can be a program name with args.
3077 set dummy mktemp
; ac_word
=$2
3078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_word" >&5
3080 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 if test -n "$have_mktemp_command"; then
3084 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3086 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3088 for ac_dir
in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir
=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_prog_have_mktemp_command
="yes"
3096 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3099 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3100 if test -n "$have_mktemp_command"; then
3101 echo "$ac_t""$have_mktemp_command" 1>&6
3103 echo "$ac_t""no" 1>&6
3107 # Do we have a single-tree copy of texinfo?
3108 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3109 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3110 gcc_cv_prog_makeinfo_modern
=yes
3111 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3113 # See if makeinfo has been installed and is modern enough
3114 # that we can use it.
3115 # Extract the first word of "makeinfo", so it can be a program name with args.
3116 set dummy makeinfo
; ac_word
=$2
3117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_word" >&5
3119 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 if test -n "$MAKEINFO"; then
3123 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3125 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3127 for ac_dir
in $ac_dummy; do
3128 test -z "$ac_dir" && ac_dir
=.
3129 if test -f $ac_dir/$ac_word; then
3130 ac_cv_prog_MAKEINFO
="makeinfo"
3137 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3138 if test -n "$MAKEINFO"; then
3139 echo "$ac_t""$MAKEINFO" 1>&6
3141 echo "$ac_t""no" 1>&6
3144 if test -n "$MAKEINFO"; then
3145 # Found it, now check the version.
3146 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3147 echo "configure:3148: checking for modern makeinfo" >&5
3148 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3152 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3153 echo "configure:3154: version of makeinfo is $ac_prog_version" >&5
3154 case $ac_prog_version in
3155 '') gcc_cv_prog_makeinfo_modern
=no
;;
3157 gcc_cv_prog_makeinfo_modern
=yes;;
3158 *) gcc_cv_prog_makeinfo_modern
=no
;;
3163 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3165 gcc_cv_prog_makeinfo_modern
=no
3170 if test $gcc_cv_prog_makeinfo_modern = no
; then
3171 echo "configure: warning:
3172 *** Makeinfo is missing or too old.
3173 *** Info documentation will not be built." 1>&2
3179 # Is pod2man recent enough to regenerate manpages?
3180 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3181 echo "configure:3182: checking for recent Pod::Man" >&5
3182 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3183 echo "$ac_t""yes" 1>&6
3184 GENERATED_MANPAGES
=generated-manpages
3186 echo "$ac_t""no" 1>&6
3191 if test -f $srcdir/..
/flex
/skel.c
; then
3192 FLEX
='$(objdir)/../flex/flex'
3194 # Extract the first word of "flex", so it can be a program name with args.
3195 set dummy flex
; ac_word
=$2
3196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_word" >&5
3198 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 if test -n "$FLEX"; then
3202 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3206 for ac_dir
in $ac_dummy; do
3207 test -z "$ac_dir" && ac_dir
=.
3208 if test -f $ac_dir/$ac_word; then
3209 ac_cv_prog_FLEX
="flex"
3214 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3217 FLEX
="$ac_cv_prog_FLEX"
3218 if test -n "$FLEX"; then
3219 echo "$ac_t""$FLEX" 1>&6
3221 echo "$ac_t""no" 1>&6
3227 # The -L switch is so bison can find its skeleton file.
3228 if test -f $srcdir/..
/bison
/bison.simple
; then
3229 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3231 # Extract the first word of "bison", so it can be a program name with args.
3232 set dummy bison
; ac_word
=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_word" >&5
3235 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$BISON"; then
3239 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3243 for ac_dir
in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir
=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_BISON
="bison"
3251 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3254 BISON
="$ac_cv_prog_BISON"
3255 if test -n "$BISON"; then
3256 echo "$ac_t""$BISON" 1>&6
3258 echo "$ac_t""no" 1>&6
3263 # These libraries may be used by collect2.
3264 # We may need a special search path to get them linked.
3265 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3266 echo "configure:3267: checking for collect2 libraries" >&5
3267 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3271 for libs
in '' -lld -lmld \
3272 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3273 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3276 cat > conftest.
$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 /* Override any gcc2 internal prototype to avoid an error. */
3280 /* We use char because int might match the return type of a gcc2
3281 builtin and then its argument prototype would still apply. */
3288 if { (eval echo configure
:3289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3290 gcc_cv_collect2_libs
="$libs"; break
3292 echo "configure: failed program was:" >&5
3293 cat conftest.
$ac_ext >&5
3298 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3301 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3302 case $gcc_cv_collect2_libs in
3304 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3308 # When building Ada code on Alpha, we need exc_resume which is usually in
3309 # -lexc. So test for it.
3313 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3314 echo "configure:3315: checking for library containing exc_resume" >&5
3315 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_func_search_save_LIBS
="$LIBS"
3319 ac_cv_search_exc_resume
="no"
3320 cat > conftest.
$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3332 if { (eval echo configure
:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3334 ac_cv_search_exc_resume
="none required"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.
$ac_ext >&5
3340 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3341 LIBS
="-l$i $ac_func_search_save_LIBS"
3342 cat > conftest.
$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 /* Override any gcc2 internal prototype to avoid an error. */
3346 /* We use char because int might match the return type of a gcc2
3347 builtin and then its argument prototype would still apply. */
3354 if { (eval echo configure
:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3356 ac_cv_search_exc_resume
="-l$i"
3359 echo "configure: failed program was:" >&5
3360 cat conftest.
$ac_ext >&5
3364 LIBS
="$ac_func_search_save_LIBS"
3367 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3368 if test "$ac_cv_search_exc_resume" != "no"; then
3369 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3378 # See if the stage1 system preprocessor understands the ANSI C
3379 # preprocessor stringification operator. (Used by symcat.h.)
3382 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3383 echo "configure:3384: checking for preprocessor stringizing operator" >&5
3384 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.
$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3393 char *s = x(teststring);
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "#teststring" >/dev
/null
2>&1; then
3399 ac_cv_c_stringize
=no
3402 ac_cv_c_stringize
=yes
3408 if test "${ac_cv_c_stringize}" = yes
3410 cat >> confdefs.h
<<\EOF
3411 #define HAVE_STRINGIZE 1
3415 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3418 # Use <inttypes.h> only if it exists,
3419 # doesn't clash with <sys/types.h>, and declares intmax_t.
3420 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3421 echo "configure:3422: checking for inttypes.h" >&5
3422 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 cat > conftest.
$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 #include <sys/types.h>
3429 #include <inttypes.h>
3434 if { (eval echo configure
:3435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3436 gcc_cv_header_inttypes_h
=yes
3438 echo "configure: failed program was:" >&5
3439 cat conftest.
$ac_ext >&5
3441 gcc_cv_header_inttypes_h
=no
3446 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3447 if test $gcc_cv_header_inttypes_h = yes; then
3448 cat >> confdefs.h
<<\EOF
3449 #define HAVE_INTTYPES_H 1
3455 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3456 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3457 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat
3459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3460 echo "configure:3461: checking for $ac_func" >&5
3461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 cat > conftest.
$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3467 /* System header to define __stub macros and hopefully few prototypes,
3468 which can conflict with char $ac_func(); below. */
3470 /* Override any gcc2 internal prototype to avoid an error. */
3471 /* We use char because int might match the return type of a gcc2
3472 builtin and then its argument prototype would still apply. */
3477 /* The GNU C library defines this for functions which it implements
3478 to always fail with ENOSYS. Some functions are actually named
3479 something starting with __ and the normal name is an alias. */
3480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3488 if { (eval echo configure
:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3490 eval "ac_cv_func_$ac_func=yes"
3492 echo "configure: failed program was:" >&5
3493 cat conftest.
$ac_ext >&5
3495 eval "ac_cv_func_$ac_func=no"
3500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3503 cat >> confdefs.h
<<EOF
3504 #define $ac_tr_func 1
3508 echo "$ac_t""no" 1>&6
3513 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3514 echo "configure:3515: checking for ssize_t" >&5
3515 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 cat > conftest.
$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 #include <sys/types.h>
3527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3530 ac_cv_type_ssize_t
=yes
3533 ac_cv_type_ssize_t
=no
3538 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3539 if test $ac_cv_type_ssize_t = no
; then
3540 cat >> confdefs.h
<<\EOF
3547 # Try to determine the array type of the second argument of getgroups
3548 # for the target system (int or gid_t).
3549 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3550 echo "configure:3551: checking for uid_t in sys/types.h" >&5
3551 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 cat > conftest.
$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3557 #include <sys/types.h>
3559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3560 egrep "uid_t" >/dev
/null
2>&1; then
3562 ac_cv_type_uid_t
=yes
3571 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3572 if test $ac_cv_type_uid_t = no
; then
3573 cat >> confdefs.h
<<\EOF
3577 cat >> confdefs.h
<<\EOF
3583 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3584 echo "configure:3585: checking type of array argument to getgroups" >&5
3585 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 if test "$cross_compiling" = yes; then
3589 ac_cv_type_getgroups
=cross
3591 cat > conftest.
$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3595 /* Thanks to Mike Rendell for this test. */
3596 #include <sys/types.h>
3599 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3604 union { gid_t gval; long lval; } val;
3607 for (i = 0; i < NGID; i++)
3608 gidset[i] = val.gval;
3609 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3611 /* Exit non-zero if getgroups seems to require an array of ints. This
3612 happens when gid_t is short but getgroups modifies an array of ints. */
3613 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3617 if { (eval echo configure
:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3619 ac_cv_type_getgroups
=gid_t
3621 echo "configure: failed program was:" >&5
3622 cat conftest.
$ac_ext >&5
3624 ac_cv_type_getgroups
=int
3629 if test $ac_cv_type_getgroups = cross
; then
3630 cat > conftest.
$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3638 ac_cv_type_getgroups
=gid_t
3641 ac_cv_type_getgroups
=int
3648 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3649 cat >> confdefs.h
<<EOF
3650 #define GETGROUPS_T $ac_cv_type_getgroups
3654 if test "${target}" = "${build}"; then
3655 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3658 # This condition may need some tweaking. It should include all
3659 # targets where the array type of the second argument of getgroups
3660 # is int and the type of gid_t is not equivalent to int.
3661 *-*-sunos* |
*-*-ultrix*)
3662 TARGET_GETGROUPS_T
=int
3665 TARGET_GETGROUPS_T
=gid_t
3671 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3672 echo "configure:3673: checking whether the printf functions support %p" >&5
3673 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 if test "$cross_compiling" = yes; then
3677 gcc_cv_func_printf_ptr
=no
3679 cat > conftest.
$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3687 char *p = buf, *q = NULL;
3688 sprintf(buf, "%p", p);
3689 sscanf(buf, "%p", &q);
3693 if { (eval echo configure
:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3695 gcc_cv_func_printf_ptr
=yes
3697 echo "configure: failed program was:" >&5
3698 cat conftest.
$ac_ext >&5
3700 gcc_cv_func_printf_ptr
=no
3705 rm -f core core.
* *.core
3708 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3709 if test $gcc_cv_func_printf_ptr = yes ; then
3710 cat >> confdefs.h
<<\EOF
3711 #define HAVE_PRINTF_PTR 1
3719 { echo "configure: error:
3720 *** UWIN may not be used as a host platform because
3721 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3724 # Under VMS, vfork works very different than on Unix. The standard test
3725 # won't work, and it isn't easily adaptable. It makes more sense to
3727 ac_cv_func_vfork_works
=yes
3730 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3731 echo "configure:3732: checking for pid_t" >&5
3732 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 cat > conftest.
$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 #include <sys/types.h>
3744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3745 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3747 ac_cv_type_pid_t
=yes
3755 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3756 if test $ac_cv_type_pid_t = no
; then
3757 cat >> confdefs.h
<<\EOF
3763 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3764 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3765 echo "configure:3766: checking for vfork.h" >&5
3766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 cat > conftest.
$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3774 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3775 { (eval echo configure
:3776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3776 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3777 if test -z "$ac_err"; then
3779 eval "ac_cv_header_$ac_safe=yes"
3782 echo "configure: failed program was:" >&5
3783 cat conftest.
$ac_ext >&5
3785 eval "ac_cv_header_$ac_safe=no"
3789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3790 echo "$ac_t""yes" 1>&6
3791 cat >> confdefs.h
<<\EOF
3792 #define HAVE_VFORK_H 1
3796 echo "$ac_t""no" 1>&6
3799 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3800 echo "configure:3801: checking for working vfork" >&5
3801 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 if test "$cross_compiling" = yes; then
3805 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3806 echo "configure:3807: checking for vfork" >&5
3807 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3813 /* System header to define __stub macros and hopefully few prototypes,
3814 which can conflict with char vfork(); below. */
3816 /* Override any gcc2 internal prototype to avoid an error. */
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3823 /* The GNU C library defines this for functions which it implements
3824 to always fail with ENOSYS. Some functions are actually named
3825 something starting with __ and the normal name is an alias. */
3826 #if defined (__stub_vfork) || defined (__stub___vfork)
3834 if { (eval echo configure
:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3836 eval "ac_cv_func_vfork=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.
$ac_ext >&5
3841 eval "ac_cv_func_vfork=no"
3846 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3847 echo "$ac_t""yes" 1>&6
3850 echo "$ac_t""no" 1>&6
3853 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3855 cat > conftest.
$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 /* Thanks to Paul Eggert for this test. */
3860 #include <sys/types.h>
3861 #include <sys/stat.h>
3862 #ifdef HAVE_UNISTD_H
3868 /* On some sparc systems, changes by the child to local and incoming
3869 argument registers are propagated back to the parent.
3870 The compiler is told about this with #include <vfork.h>,
3871 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3872 Test for this by using a static variable whose address
3873 is put into a register that is clobbered by the vfork. */
3876 sparc_address_test (int arg)
3878 sparc_address_test (arg) int arg;
3896 pid_t parent = getpid ();
3899 sparc_address_test ();
3904 /* Here is another test for sparc vfork register problems.
3905 This test uses lots of local variables, at least
3906 as many local variables as main has allocated so far
3907 including compiler temporaries. 4 locals are enough for
3908 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3909 A buggy compiler should reuse the register of parent
3910 for one of the local variables, since it will think that
3911 parent can't possibly be used any more in this routine.
3912 Assigning to the local variable will thus munge parent
3913 in the parent process. */
3915 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3916 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3917 /* Convince the compiler that p..p7 are live; otherwise, it might
3918 use the same hardware register for all 8 local variables. */
3919 if (p != p1 || p != p2 || p != p3 || p != p4
3920 || p != p5 || p != p6 || p != p7)
3923 /* On some systems (e.g. IRIX 3.3),
3924 vfork doesn't separate parent from child file descriptors.
3925 If the child closes a descriptor before it execs or exits,
3926 this munges the parent's descriptor as well.
3927 Test for this by closing stdout in the child. */
3928 _exit(close(fileno(stdout)) != 0);
3933 while (wait(&status) != child)
3936 /* Was there some problem with vforking? */
3939 /* Did the child fail? (This shouldn't happen.) */
3942 /* Did the vfork/compiler bug occur? */
3943 || parent != getpid()
3945 /* Did the file descriptor bug occur? */
3946 || fstat(fileno(stdout), &st) != 0
3951 if { (eval echo configure
:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3953 ac_cv_func_vfork_works
=yes
3955 echo "configure: failed program was:" >&5
3956 cat conftest.
$ac_ext >&5
3958 ac_cv_func_vfork_works
=no
3965 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3966 if test $ac_cv_func_vfork_works = no
; then
3967 cat >> confdefs.h
<<\EOF
3973 for ac_func
in getpagesize
3975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3976 echo "configure:3977: checking for $ac_func" >&5
3977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 cat > conftest.
$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 /* System header to define __stub macros and hopefully few prototypes,
3984 which can conflict with char $ac_func(); below. */
3986 /* Override any gcc2 internal prototype to avoid an error. */
3987 /* We use char because int might match the return type of a gcc2
3988 builtin and then its argument prototype would still apply. */
3993 /* The GNU C library defines this for functions which it implements
3994 to always fail with ENOSYS. Some functions are actually named
3995 something starting with __ and the normal name is an alias. */
3996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4004 if { (eval echo configure
:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4006 eval "ac_cv_func_$ac_func=yes"
4008 echo "configure: failed program was:" >&5
4009 cat conftest.
$ac_ext >&5
4011 eval "ac_cv_func_$ac_func=no"
4016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4017 echo "$ac_t""yes" 1>&6
4018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4019 cat >> confdefs.h
<<EOF
4020 #define $ac_tr_func 1
4024 echo "$ac_t""no" 1>&6
4028 # The test program for the next two tests is the same except for one
4030 cat >ct-mmap.inc
<<'EOF'
4031 #include <sys/types.h>
4032 #include <sys/mman.h>
4038 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4039 # define MAP_ANONYMOUS MAP_ANON
4042 /* This mess was copied from the GNU getpagesize.h. */
4043 #ifndef HAVE_GETPAGESIZE
4044 # ifdef HAVE_UNISTD_H
4045 # include <unistd.h>
4048 /* Assume that all systems that can run configure have sys/param.h. */
4049 # ifndef HAVE_SYS_PARAM_H
4050 # define HAVE_SYS_PARAM_H 1
4053 # ifdef _SC_PAGESIZE
4054 # define getpagesize() sysconf(_SC_PAGESIZE)
4055 # else /* no _SC_PAGESIZE */
4056 # ifdef HAVE_SYS_PARAM_H
4057 # include <sys/param.h>
4058 # ifdef EXEC_PAGESIZE
4059 # define getpagesize() EXEC_PAGESIZE
4060 # else /* no EXEC_PAGESIZE */
4062 # define getpagesize() NBPG * CLSIZE
4065 # endif /* no CLSIZE */
4066 # else /* no NBPG */
4068 # define getpagesize() NBPC
4069 # else /* no NBPC */
4071 # define getpagesize() PAGESIZE
4072 # endif /* PAGESIZE */
4073 # endif /* no NBPC */
4074 # endif /* no NBPG */
4075 # endif /* no EXEC_PAGESIZE */
4076 # else /* no HAVE_SYS_PARAM_H */
4077 # define getpagesize() 8192 /* punt totally */
4078 # endif /* no HAVE_SYS_PARAM_H */
4079 # endif /* no _SC_PAGESIZE */
4081 #endif /* no HAVE_GETPAGESIZE */
4084 # define MAP_FAILED -1
4088 #define perror_exit(str, val) \
4089 do { perror(str); exit(val); } while (0)
4091 /* Some versions of cygwin mmap require that munmap is called with the
4092 same parameters as mmap. GCC expects that this is not the case.
4093 Test for various forms of this problem. Warning - icky signal games. */
4095 static sigset_t unblock_sigsegv;
4105 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4106 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4108 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4109 MAP_PRIVATE, devzero, 0);
4117 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4121 /* Basic functionality test. */
4125 char *x = anonmap (pg);
4126 if (x == (char *) MAP_FAILED)
4127 perror_exit("test 0 mmap", 2);
4131 if (munmap(x, pg) < 0)
4132 perror_exit("test 0 munmap", 3);
4135 /* 1. If we map a 2-page region and unmap its second page, the first page
4140 char *x = anonmap (pg * 2);
4141 if (x == (char *)MAP_FAILED)
4142 perror_exit ("test 1 mmap", 4);
4144 signal (SIGSEGV, sigsegv);
4146 perror_exit ("test 1 fault", 5);
4151 if (munmap (x + pg, pg) < 0)
4152 perror_exit ("test 1 munmap 1", 6);
4155 if (setjmp (r) == 0)
4158 perror_exit ("test 1 no fault", 7);
4160 if (munmap (x, pg) < 0)
4161 perror_exit ("test 1 munmap 2", 8);
4164 /* 2. If we map a 2-page region and unmap its first page, the second
4165 page must remain. */
4169 char *x = anonmap (pg * 2);
4170 if (x == (char *)MAP_FAILED)
4171 perror_exit ("test 2 mmap", 9);
4173 signal (SIGSEGV, sigsegv);
4175 perror_exit ("test 2 fault", 10);
4180 if (munmap (x, pg) < 0)
4181 perror_exit ("test 2 munmap 1", 11);
4185 if (setjmp (r) == 0)
4188 perror_exit ("test 2 no fault", 12);
4191 if (munmap (x+pg, pg) < 0)
4192 perror_exit ("test 2 munmap 2", 13);
4195 /* 3. If we map two adjacent 1-page regions and unmap them both with
4196 one munmap, both must go away.
4198 Getting two adjacent 1-page regions with two mmap calls is slightly
4199 tricky. All OS's tested skip over already-allocated blocks; therefore
4200 we have been careful to unmap all allocated regions in previous tests.
4201 HP/UX allocates pages backward in memory. No OS has yet been observed
4202 to be so perverse as to leave unmapped space between consecutive calls
4211 if (x == (char *)MAP_FAILED)
4212 perror_exit ("test 3 mmap 1", 14);
4214 if (y == (char *)MAP_FAILED)
4215 perror_exit ("test 3 mmap 2", 15);
4220 z = y, y = x, x = z;
4223 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4224 (unsigned long)x, (unsigned long)y);
4229 signal (SIGSEGV, sigsegv);
4231 perror_exit ("test 3 fault", 17);
4236 if (munmap (x, pg*2) < 0)
4237 perror_exit ("test 3 munmap", 18);
4239 if (setjmp (r) == 0)
4242 perror_exit ("test 3 no fault 1", 19);
4245 signal (SIGSEGV, sigsegv);
4246 if (setjmp (r) == 0)
4249 perror_exit ("test 3 no fault 2", 20);
4256 sigemptyset (&unblock_sigsegv);
4257 sigaddset (&unblock_sigsegv, SIGSEGV);
4258 pg = getpagesize ();
4259 #ifndef USE_MAP_ANON
4260 devzero = open ("/dev/zero", O_RDWR);
4262 perror_exit ("open /dev/zero", 1);
4274 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4275 echo "configure:4276: checking for working mmap from /dev/zero" >&5
4276 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 if test "$cross_compiling" = yes; then
4280 # If this is not cygwin, and /dev/zero is a character device, it's probably
4281 # safe to assume it works.
4283 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4284 * ) if test -c /dev
/zero
4285 then ac_cv_func_mmap_dev_zero
=yes
4286 else ac_cv_func_mmap_dev_zero
=no
4290 cat > conftest.
$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 #include "ct-mmap.inc"
4295 if { (eval echo configure
:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4297 ac_cv_func_mmap_dev_zero
=yes
4299 echo "configure: failed program was:" >&5
4300 cat conftest.
$ac_ext >&5
4303 then ac_cv_func_mmap_dev_zero
=no
4304 else ac_cv_func_mmap_dev_zero
=buggy
4313 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4314 if test $ac_cv_func_mmap_dev_zero = yes; then
4315 cat >> confdefs.h
<<\EOF
4316 #define HAVE_MMAP_DEV_ZERO 1
4321 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4322 echo "configure:4323: checking for working mmap with MAP_ANON(YMOUS)" >&5
4323 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 if test "$cross_compiling" = yes; then
4327 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4328 # just because it's there. Some SCO Un*xen define it but don't implement it.
4329 ac_cv_func_mmap_anon
=no
4331 cat > conftest.
$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 #define USE_MAP_ANON
4335 #include "ct-mmap.inc"
4337 if { (eval echo configure
:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4339 ac_cv_func_mmap_anon
=yes
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4345 then ac_cv_func_mmap_anon
=no
4346 else ac_cv_func_mmap_anon
=buggy
4355 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4356 if test $ac_cv_func_mmap_anon = yes; then
4357 cat >> confdefs.h
<<\EOF
4358 #define HAVE_MMAP_ANON 1
4364 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4365 echo "configure:4366: checking for working mmap of a file" >&5
4366 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 # Create a file one thousand bytes long.
4370 for i
in 1 2 3 4 5 6 7 8 9 0
4371 do for j
in 1 2 3 4 5 6 7 8 9 0
4374 done > conftestdata$$
4376 if test "$cross_compiling" = yes; then
4377 ac_cv_func_mmap_file
=no
4379 cat > conftest.
$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4383 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4384 Richard Henderson and Alexandre Oliva.
4385 Check whether read-only mmap of a plain file works. */
4386 #include <sys/types.h>
4387 #include <sys/stat.h>
4389 #include <sys/mman.h>
4397 fd = open("conftestdata$$", O_RDONLY);
4401 if (fstat (fd, &st))
4404 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4405 if (x == (char *) -1)
4408 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4411 if (munmap(x, st.st_size) < 0)
4417 if { (eval echo configure
:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4419 ac_cv_func_mmap_file
=yes
4421 echo "configure: failed program was:" >&5
4422 cat conftest.
$ac_ext >&5
4424 ac_cv_func_mmap_file
=no
4431 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4432 if test $ac_cv_func_mmap_file = yes; then
4433 cat >> confdefs.h
<<\EOF
4434 #define HAVE_MMAP_FILE 1
4442 am_cv_lib_iconv_ldpath
=
4443 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4444 if test "${with_libiconv_prefix+set}" = set; then
4445 withval
="$with_libiconv_prefix"
4447 for dir
in `echo "$withval" | tr : ' '`; do
4448 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4449 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4455 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4456 echo "configure:4457: checking for iconv" >&5
4457 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4461 am_cv_func_iconv
="no, consider installing GNU libiconv"
4463 cat > conftest.
$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4469 iconv_t cd = iconv_open("","");
4470 iconv(cd,NULL,NULL,NULL,NULL);
4474 if { (eval echo configure
:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4476 am_cv_func_iconv
=yes
4478 echo "configure: failed program was:" >&5
4479 cat conftest.
$ac_ext >&5
4482 if test "$am_cv_func_iconv" != yes; then
4483 am_save_LIBS
="$LIBS"
4484 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4485 cat > conftest.
$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4491 iconv_t cd = iconv_open("","");
4492 iconv(cd,NULL,NULL,NULL,NULL);
4496 if { (eval echo configure
:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4499 am_cv_func_iconv
=yes
4501 echo "configure: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4505 LIBS
="$am_save_LIBS"
4510 echo "$ac_t""$am_cv_func_iconv" 1>&6
4511 if test "$am_cv_func_iconv" = yes; then
4512 cat >> confdefs.h
<<\EOF
4513 #define HAVE_ICONV 1
4516 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4517 echo "configure:4518: checking for iconv declaration" >&5
4518 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4522 cat > conftest.
$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4532 #if defined(__STDC__) || defined(__cplusplus)
4533 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4542 if { (eval echo configure
:4543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4544 am_cv_proto_iconv_arg1
=""
4546 echo "configure: failed program was:" >&5
4547 cat conftest.
$ac_ext >&5
4549 am_cv_proto_iconv_arg1
="const"
4552 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);"
4555 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4556 echo "$ac_t""${ac_t:-
4557 }$am_cv_proto_iconv" 1>&6
4558 cat >> confdefs.h
<<EOF
4559 #define ICONV_CONST $am_cv_proto_iconv_arg1
4564 if test "$am_cv_lib_iconv" = yes; then
4565 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4570 # We will need to find libiberty.h and ansidecl.h
4571 saved_CFLAGS
="$CFLAGS"
4572 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4573 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4574 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4575 fprintf_unlocked strstr errno \
4576 malloc realloc calloc free
basename getopt
clock
4578 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4579 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4580 echo "configure:4581: checking whether $ac_func is declared" >&5
4581 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 cat > conftest.
$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4588 #define $ac_tr_decl 1
4590 #include "ansidecl.h"
4595 char *(*pfn) = (char *(*)) $ac_func ;
4599 if { (eval echo configure
:4600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4601 eval "gcc_cv_have_decl_$ac_func=yes"
4603 echo "configure: failed program was:" >&5
4604 cat conftest.
$ac_ext >&5
4606 eval "gcc_cv_have_decl_$ac_func=no"
4611 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4612 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4613 #define $ac_tr_decl 1
4617 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4618 #define $ac_tr_decl 0
4624 if test x
= y
; then
4625 cat >> confdefs.h
<<\EOF
4626 #define HAVE_DECL_GETENV 1
4628 cat >> confdefs.h
<<\EOF
4629 #define HAVE_DECL_ATOL 1
4631 cat >> confdefs.h
<<\EOF
4632 #define HAVE_DECL_SBRK 1
4634 cat >> confdefs.h
<<\EOF
4635 #define HAVE_DECL_ABORT 1
4637 cat >> confdefs.h
<<\EOF
4638 #define HAVE_DECL_ATOF 1
4640 cat >> confdefs.h
<<\EOF
4641 #define HAVE_DECL_GETCWD 1
4643 cat >> confdefs.h
<<\EOF
4644 #define HAVE_DECL_GETWD 1
4647 cat >> confdefs.h
<<\EOF
4648 #define HAVE_DECL_STRSIGNAL 1
4650 cat >> confdefs.h
<<\EOF
4651 #define HAVE_DECL_PUTC_UNLOCKED 1
4653 cat >> confdefs.h
<<\EOF
4654 #define HAVE_DECL_FPUTS_UNLOCKED 1
4656 cat >> confdefs.h
<<\EOF
4657 #define HAVE_DECL_FWRITE_UNLOCKED 1
4660 cat >> confdefs.h
<<\EOF
4661 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4663 cat >> confdefs.h
<<\EOF
4664 #define HAVE_DECL_STRSTR 1
4666 cat >> confdefs.h
<<\EOF
4667 #define HAVE_DECL_ERRNO 1
4670 cat >> confdefs.h
<<\EOF
4671 #define HAVE_DECL_MALLOC 1
4673 cat >> confdefs.h
<<\EOF
4674 #define HAVE_DECL_REALLOC 1
4676 cat >> confdefs.h
<<\EOF
4677 #define HAVE_DECL_CALLOC 1
4679 cat >> confdefs.h
<<\EOF
4680 #define HAVE_DECL_FREE 1
4682 cat >> confdefs.h
<<\EOF
4683 #define HAVE_DECL_BASENAME 1
4685 cat >> confdefs.h
<<\EOF
4686 #define HAVE_DECL_GETOPT 1
4688 cat >> confdefs.h
<<\EOF
4689 #define HAVE_DECL_CLOCK 1
4694 for ac_func
in getrlimit setrlimit getrusage
4696 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4697 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4698 echo "configure:4699: checking whether $ac_func is declared" >&5
4699 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.
$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4706 #define $ac_tr_decl 1
4708 #include "ansidecl.h"
4710 #ifdef HAVE_SYS_RESOURCE_H
4711 #include <sys/resource.h>
4717 char *(*pfn) = (char *(*)) $ac_func ;
4721 if { (eval echo configure
:4722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4723 eval "gcc_cv_have_decl_$ac_func=yes"
4725 echo "configure: failed program was:" >&5
4726 cat conftest.
$ac_ext >&5
4728 eval "gcc_cv_have_decl_$ac_func=no"
4733 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4734 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4735 #define $ac_tr_decl 1
4739 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4740 #define $ac_tr_decl 0
4746 if test x
= y
; then
4747 cat >> confdefs.h
<<\EOF
4748 #define HAVE_DECL_GETRLIMIT 1
4750 cat >> confdefs.h
<<\EOF
4751 #define HAVE_DECL_SETRLIMIT 1
4753 cat >> confdefs.h
<<\EOF
4754 #define HAVE_DECL_GETRUSAGE 1
4759 for ac_func
in times
4761 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4763 echo "configure:4764: checking whether $ac_func is declared" >&5
4764 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.
$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4771 #define $ac_tr_decl 1
4773 #include "ansidecl.h"
4775 #ifdef HAVE_SYS_TIMES_H
4776 #include <sys/times.h>
4782 char *(*pfn) = (char *(*)) $ac_func ;
4786 if { (eval echo configure
:4787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4788 eval "gcc_cv_have_decl_$ac_func=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.
$ac_ext >&5
4793 eval "gcc_cv_have_decl_$ac_func=no"
4798 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4800 #define $ac_tr_decl 1
4804 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4805 #define $ac_tr_decl 0
4811 if test x
= y
; then
4812 cat >> confdefs.h
<<\EOF
4813 #define HAVE_DECL_TIMES 1
4818 # More time-related stuff.
4819 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4820 echo "configure:4821: checking for struct tms" >&5
4821 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4825 cat > conftest.
$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4829 #include "ansidecl.h"
4831 #ifdef HAVE_SYS_TIMES_H
4832 #include <sys/times.h>
4839 if { (eval echo configure
:4840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4841 ac_cv_struct_tms
=yes
4843 echo "configure: failed program was:" >&5
4844 cat conftest.
$ac_ext >&5
4851 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4852 if test $ac_cv_struct_tms = yes; then
4853 cat >> confdefs.h
<<\EOF
4854 #define HAVE_STRUCT_TMS 1
4859 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4860 # revisit after autoconf 2.50.
4861 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4862 echo "configure:4863: checking for clock_t" >&5
4863 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.
$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4871 #include "ansidecl.h"
4878 if { (eval echo configure
:4879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4880 gcc_cv_type_clock_t
=yes
4882 echo "configure: failed program was:" >&5
4883 cat conftest.
$ac_ext >&5
4885 gcc_cv_type_clock_t
=no
4890 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4891 if test $gcc_cv_type_clock_t = yes; then
4892 cat >> confdefs.h
<<\EOF
4893 #define HAVE_CLOCK_T 1
4898 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4899 CFLAGS
="$saved_CFLAGS"
4901 # mkdir takes a single argument on some systems.
4902 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4903 echo "configure:4904: checking if mkdir takes one argument" >&5
4904 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4907 cat > conftest.
$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4911 #include <sys/types.h>
4912 #ifdef HAVE_SYS_STAT_H
4913 # include <sys/stat.h>
4915 #ifdef HAVE_UNISTD_H
4916 # include <unistd.h>
4918 #ifdef HAVE_DIRECT_H
4919 # include <direct.h>
4925 if { (eval echo configure
:4926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4927 gcc_cv_mkdir_takes_one_arg
=no
4929 echo "configure: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4932 gcc_cv_mkdir_takes_one_arg
=yes
4937 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4938 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4939 cat >> confdefs.h
<<\EOF
4940 #define MKDIR_TAKES_ONE_ARG 1
4954 build_install_headers_dir
=install-headers-tar
4959 host_truncate_target
=
4962 # Decode the host machine, then the target machine.
4963 # For the host machine, we save the xm_file variable as host_xm_file;
4964 # then we decode the target machine and forget everything else
4965 # that came from the host machine.
4966 for machine
in $build $host $target; do
4967 .
${srcdir}/config.gcc
4970 extra_objs
="${host_extra_objs} ${extra_objs}"
4972 # Default the target-machine variables that were not explicitly set.
4973 if test x
"$tm_file" = x
4974 then tm_file
=$cpu_type/$cpu_type.h
; fi
4976 if test x
"$extra_headers" = x
4977 then extra_headers
=; fi
4979 if test x
$md_file = x
4980 then md_file
=$cpu_type/$cpu_type.md
; fi
4982 if test x
$out_file = x
4983 then out_file
=$cpu_type/$cpu_type.c
; fi
4985 if test x
"$tmake_file" = x
4986 then tmake_file
=$cpu_type/t-
$cpu_type
4989 if test x
"$dwarf2" = xyes
4990 then tm_file
="$tm_file tm-dwarf2.h"
4993 if test x
$float_format = x
4994 then float_format
=i64
4997 if test $float_format = none
4998 then float_h_file
=Makefile.
in
4999 else float_h_file
=float-
$float_format.h
5002 # Handle cpp installation.
5003 if test x
$enable_cpp != xno
5005 tmake_file
="$tmake_file t-install-cpp"
5008 # Say what files are being used for the output code and MD file.
5009 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
5010 echo "Using \`$srcdir/config/$md_file' as machine description file."
5012 # If any of the xm_file variables contain nonexistent files, warn
5013 # about them and drop them.
5016 for x
in $build_xm_file; do
5017 if test -f $srcdir/config
/$x
5019 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5025 for x
in $host_xm_file; do
5026 if test -f $srcdir/config
/$x
5028 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5034 for x
in $xm_file; do
5035 if test -f $srcdir/config
/$x
5037 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5043 for f
in $tm_file; do
5046 if test $count = ax
; then
5047 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5049 echo "Using the following target machine macro files:"
5050 for f
in $tm_file; do
5051 echo " $srcdir/config/$f"
5056 for f
in $host_xm_file; do
5059 if test $count = a
; then
5061 elif test $count = ax
; then
5062 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5064 echo "Using the following host machine macro files:"
5065 for f
in $host_xm_file; do
5066 echo " $srcdir/config/$f"
5070 if test "$host_xm_file" != "$build_xm_file"; then
5072 for f
in $build_xm_file; do
5075 if test $count = a
; then
5077 elif test $count = ax
; then
5078 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5080 echo "Using the following build machine macro files:"
5081 for f
in $build_xm_file; do
5082 echo " $srcdir/config/$f"
5087 if test x
$thread_file = x
; then
5088 if test x
$target_thread_file != x
; then
5089 thread_file
=$target_thread_file
5091 thread_file
='single'
5095 # auto-host.h is the file containing items generated by autoconf and is
5096 # the first file included by config.h.
5097 # If host=build, it is correct to have hconfig include auto-host.h
5098 # as well. If host!=build, we are in error and need to do more
5099 # work to find out the build config parameters.
5100 if test x
$host = x
$build
5102 build_auto
=auto-host.h
5105 # We create a subdir, then run autoconf in the subdir.
5106 # To prevent recursion we set host and build for the new
5107 # invocation of configure to the build for this invocation
5114 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5115 *) realsrcdir
=..
/${srcdir};;
5117 saved_CFLAGS
="${CFLAGS}"
5118 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5119 ${realsrcdir}/configure \
5120 --target=$target_alias --host=$build_alias --build=$build_alias
5121 CFLAGS
="${saved_CFLAGS}"
5123 # We just finished tests for the build machine, so rename
5124 # the file auto-build.h in the gcc directory.
5125 mv auto-host.h ..
/auto-build.h
5128 build_auto
=auto-build.h
5133 tm_file
="${tm_file} defaults.h"
5134 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5135 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5136 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5138 # Truncate the target if necessary
5139 if test x
$host_truncate_target != x
; then
5140 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5143 # Get the version trigger filename from the toplevel
5144 if test "${with_gcc_version_trigger+set}" = set; then
5145 gcc_version_trigger
=$with_gcc_version_trigger
5147 gcc_version_trigger
=${srcdir}/version.c
5149 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5150 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5152 # Compile in configure arguments.
5153 if test -f configargs.h
; then
5154 # Being re-configured.
5155 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5156 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5158 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5160 cat > configargs.h
<<EOF
5161 /* Generated automatically. */
5162 static const char configuration_arguments[] = "$gcc_config_arguments";
5163 static const char thread_model[] = "$thread_file";
5166 # Internationalization
5168 VERSION
="$gcc_version"
5172 # Enable NLS support by default
5173 # Check whether --enable-nls or --disable-nls was given.
5174 if test "${enable_nls+set}" = set; then
5175 enableval
="$enable_nls"
5182 # if cross compiling, disable NLS support.
5183 # It's not worth the trouble, at least for now.
5185 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5186 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5192 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5193 echo "configure:5194: checking for library containing strerror" >&5
5194 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 ac_func_search_save_LIBS
="$LIBS"
5198 ac_cv_search_strerror
="no"
5199 cat > conftest.
$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5211 if { (eval echo configure
:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5213 ac_cv_search_strerror
="none required"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.
$ac_ext >&5
5219 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5220 LIBS
="-l$i $ac_func_search_save_LIBS"
5221 cat > conftest.
$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5233 if { (eval echo configure
:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5235 ac_cv_search_strerror
="-l$i"
5238 echo "configure: failed program was:" >&5
5239 cat conftest.
$ac_ext >&5
5243 LIBS
="$ac_func_search_save_LIBS"
5246 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5247 if test "$ac_cv_search_strerror" != "no"; then
5248 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5255 echo $ac_n "checking for working const""... $ac_c" 1>&6
5256 echo "configure:5257: checking for working const" >&5
5257 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 cat > conftest.
$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5266 /* Ultrix mips cc rejects this. */
5267 typedef int charset[2]; const charset x;
5268 /* SunOS 4.1.1 cc rejects this. */
5269 char const *const *ccp;
5271 /* NEC SVR4.0.2 mips cc rejects this. */
5272 struct point {int x, y;};
5273 static struct point const zero = {0,0};
5274 /* AIX XL C 1.02.0.0 rejects this.
5275 It does not let you subtract one const X* pointer from another in an arm
5276 of an if-expression whose if-part is not a constant expression */
5277 const char *g = "string";
5278 ccp = &g + (g ? g-g : 0);
5279 /* HPUX 7.0 cc rejects these. */
5282 ccp = (char const *const *) p;
5283 { /* SCO 3.2v4 cc rejects this. */
5285 char const *s = 0 ? (char *) 0 : (char const *) 0;
5289 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5291 const int *foo = &x[0];
5294 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5295 typedef const int *iptr;
5299 { /* AIX XL C 1.02.0.0 rejects this saying
5300 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5301 struct s { int j; const int *ap[3]; };
5302 struct s *b; b->j = 5;
5304 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5310 if { (eval echo configure
:5311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5314 echo "configure: failed program was:" >&5
5315 cat conftest.
$ac_ext >&5
5322 echo "$ac_t""$ac_cv_c_const" 1>&6
5323 if test $ac_cv_c_const = no
; then
5324 cat >> confdefs.h
<<\EOF
5330 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5331 echo "configure:5332: checking for off_t" >&5
5332 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 cat > conftest.
$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 #include <sys/types.h>
5344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5345 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5347 ac_cv_type_off_t
=yes
5355 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5356 if test $ac_cv_type_off_t = no
; then
5357 cat >> confdefs.h
<<\EOF
5363 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5364 echo "configure:5365: checking for size_t" >&5
5365 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.
$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 #include <sys/types.h>
5377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5378 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5380 ac_cv_type_size_t
=yes
5383 ac_cv_type_size_t
=no
5388 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5389 if test $ac_cv_type_size_t = no
; then
5390 cat >> confdefs.h
<<\EOF
5391 #define size_t unsigned
5396 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5397 # for constant arguments. Useless!
5398 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5399 echo "configure:5400: checking for working alloca.h" >&5
5400 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5403 cat > conftest.
$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5408 char *p = alloca(2 * sizeof(int));
5411 if { (eval echo configure
:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5413 ac_cv_header_alloca_h
=yes
5415 echo "configure: failed program was:" >&5
5416 cat conftest.
$ac_ext >&5
5418 ac_cv_header_alloca_h
=no
5423 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5424 if test $ac_cv_header_alloca_h = yes; then
5425 cat >> confdefs.h
<<\EOF
5426 #define HAVE_ALLOCA_H 1
5431 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5432 echo "configure:5433: checking for alloca" >&5
5433 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 cat > conftest.
$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5441 # define alloca __builtin_alloca
5444 # include <malloc.h>
5445 # define alloca _alloca
5448 # include <alloca.h>
5453 # ifndef alloca /* predefined by HP cc +Olibcalls */
5462 char *p = (char *) alloca(1);
5465 if { (eval echo configure
:5466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5467 ac_cv_func_alloca_works
=yes
5469 echo "configure: failed program was:" >&5
5470 cat conftest.
$ac_ext >&5
5472 ac_cv_func_alloca_works
=no
5477 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5478 if test $ac_cv_func_alloca_works = yes; then
5479 cat >> confdefs.h
<<\EOF
5480 #define HAVE_ALLOCA 1
5485 if test $ac_cv_func_alloca_works = no
; then
5486 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5487 # that cause trouble. Some versions do not even contain alloca or
5488 # contain a buggy version. If you still want to use their alloca,
5489 # use ar to extract alloca.o from them instead of compiling alloca.c.
5490 ALLOCA
=alloca.
${ac_objext}
5491 cat >> confdefs.h
<<\EOF
5496 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5497 echo "configure:5498: checking whether alloca needs Cray hooks" >&5
5498 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.
$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5504 #if defined(CRAY) && ! defined(CRAY2)
5511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5512 egrep "webecray" >/dev
/null
2>&1; then
5523 echo "$ac_t""$ac_cv_os_cray" 1>&6
5524 if test $ac_cv_os_cray = yes; then
5525 for ac_func
in _getb67 GETB67 getb67
; do
5526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5527 echo "configure:5528: checking for $ac_func" >&5
5528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5531 cat > conftest.
$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 /* System header to define __stub macros and hopefully few prototypes,
5535 which can conflict with char $ac_func(); below. */
5537 /* Override any gcc2 internal prototype to avoid an error. */
5538 /* We use char because int might match the return type of a gcc2
5539 builtin and then its argument prototype would still apply. */
5544 /* The GNU C library defines this for functions which it implements
5545 to always fail with ENOSYS. Some functions are actually named
5546 something starting with __ and the normal name is an alias. */
5547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5555 if { (eval echo configure
:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5557 eval "ac_cv_func_$ac_func=yes"
5559 echo "configure: failed program was:" >&5
5560 cat conftest.
$ac_ext >&5
5562 eval "ac_cv_func_$ac_func=no"
5567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5568 echo "$ac_t""yes" 1>&6
5569 cat >> confdefs.h
<<EOF
5570 #define CRAY_STACKSEG_END $ac_func
5575 echo "$ac_t""no" 1>&6
5581 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5582 echo "configure:5583: checking stack direction for C alloca" >&5
5583 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5586 if test "$cross_compiling" = yes; then
5587 ac_cv_c_stack_direction
=0
5589 cat > conftest.
$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 find_stack_direction ()
5594 static char *addr = 0;
5599 return find_stack_direction ();
5602 return (&dummy > addr) ? 1 : -1;
5606 exit (find_stack_direction() < 0);
5609 if { (eval echo configure
:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5611 ac_cv_c_stack_direction
=1
5613 echo "configure: failed program was:" >&5
5614 cat conftest.
$ac_ext >&5
5616 ac_cv_c_stack_direction
=-1
5623 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5624 cat >> confdefs.h
<<EOF
5625 #define STACK_DIRECTION $ac_cv_c_stack_direction
5631 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5632 echo "configure:5633: checking whether we are using the GNU C Library 2.1 or newer" >&5
5633 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5634 echo $ac_n "(cached) $ac_c" 1>&6
5636 cat > conftest.
$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5640 #include <features.h>
5641 #ifdef __GNU_LIBRARY__
5642 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5651 ac_cv_gnu_library_2_1
=yes
5654 ac_cv_gnu_library_2_1
=no
5662 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5664 GLIBC21
="$ac_cv_gnu_library_2_1"
5668 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5669 stdlib.h string.h unistd.h sys
/param.h
5671 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5673 echo "configure:5674: checking for $ac_hdr" >&5
5674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5675 echo $ac_n "(cached) $ac_c" 1>&6
5677 cat > conftest.
$ac_ext <<EOF
5678 #line 5679 "configure"
5679 #include "confdefs.h"
5682 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5683 { (eval echo configure
:5684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5684 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5685 if test -z "$ac_err"; then
5687 eval "ac_cv_header_$ac_safe=yes"
5690 echo "configure: failed program was:" >&5
5691 cat conftest.
$ac_ext >&5
5693 eval "ac_cv_header_$ac_safe=no"
5697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5698 echo "$ac_t""yes" 1>&6
5699 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5700 cat >> confdefs.h
<<EOF
5701 #define $ac_tr_hdr 1
5705 echo "$ac_t""no" 1>&6
5709 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5710 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5711 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_func" >&5
5715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 cat > conftest.
$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5721 /* System header to define __stub macros and hopefully few prototypes,
5722 which can conflict with char $ac_func(); below. */
5724 /* Override any gcc2 internal prototype to avoid an error. */
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5731 /* The GNU C library defines this for functions which it implements
5732 to always fail with ENOSYS. Some functions are actually named
5733 something starting with __ and the normal name is an alias. */
5734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5742 if { (eval echo configure
:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5744 eval "ac_cv_func_$ac_func=yes"
5746 echo "configure: failed program was:" >&5
5747 cat conftest.
$ac_ext >&5
5749 eval "ac_cv_func_$ac_func=no"
5754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5755 echo "$ac_t""yes" 1>&6
5756 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5757 cat >> confdefs.h
<<EOF
5758 #define $ac_tr_func 1
5762 echo "$ac_t""no" 1>&6
5769 am_cv_lib_iconv_ldpath
=
5770 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5771 if test "${with_libiconv_prefix+set}" = set; then
5772 withval
="$with_libiconv_prefix"
5774 for dir
in `echo "$withval" | tr : ' '`; do
5775 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5776 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5782 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5783 echo "configure:5784: checking for iconv" >&5
5784 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5788 am_cv_func_iconv
="no, consider installing GNU libiconv"
5790 cat > conftest.
$ac_ext <<EOF
5791 #line 5792 "configure"
5792 #include "confdefs.h"
5796 iconv_t cd = iconv_open("","");
5797 iconv(cd,NULL,NULL,NULL,NULL);
5801 if { (eval echo configure
:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5803 am_cv_func_iconv
=yes
5805 echo "configure: failed program was:" >&5
5806 cat conftest.
$ac_ext >&5
5809 if test "$am_cv_func_iconv" != yes; then
5810 am_save_LIBS
="$LIBS"
5811 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5812 cat > conftest.
$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5818 iconv_t cd = iconv_open("","");
5819 iconv(cd,NULL,NULL,NULL,NULL);
5823 if { (eval echo configure
:5824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5826 am_cv_func_iconv
=yes
5828 echo "configure: failed program was:" >&5
5829 cat conftest.
$ac_ext >&5
5832 LIBS
="$am_save_LIBS"
5837 echo "$ac_t""$am_cv_func_iconv" 1>&6
5838 if test "$am_cv_func_iconv" = yes; then
5839 cat >> confdefs.h
<<\EOF
5840 #define HAVE_ICONV 1
5843 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5844 echo "configure:5845: checking for iconv declaration" >&5
5845 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5849 cat > conftest.
$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5859 #if defined(__STDC__) || defined(__cplusplus)
5860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5869 if { (eval echo configure
:5870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5871 am_cv_proto_iconv_arg1
=""
5873 echo "configure: failed program was:" >&5
5874 cat conftest.
$ac_ext >&5
5876 am_cv_proto_iconv_arg1
="const"
5879 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);"
5882 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5883 echo "$ac_t""${ac_t:-
5884 }$am_cv_proto_iconv" 1>&6
5885 cat >> confdefs.h
<<EOF
5886 #define ICONV_CONST $am_cv_proto_iconv_arg1
5891 if test "$am_cv_lib_iconv" = yes; then
5892 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5897 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5898 echo "configure:5899: checking for nl_langinfo and CODESET" >&5
5899 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5902 cat > conftest.
$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 #include <langinfo.h>
5907 char* cs = nl_langinfo(CODESET);
5910 if { (eval echo configure
:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5912 am_cv_langinfo_codeset
=yes
5914 echo "configure: failed program was:" >&5
5915 cat conftest.
$ac_ext >&5
5917 am_cv_langinfo_codeset
=no
5923 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5924 if test $am_cv_langinfo_codeset = yes; then
5925 cat >> confdefs.h
<<\EOF
5926 #define HAVE_LANGINFO_CODESET 1
5931 if test $ac_cv_header_locale_h = yes; then
5932 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5933 echo "configure:5934: checking for LC_MESSAGES" >&5
5934 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5937 cat > conftest.
$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5945 if { (eval echo configure
:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5947 am_cv_val_LC_MESSAGES
=yes
5949 echo "configure: failed program was:" >&5
5950 cat conftest.
$ac_ext >&5
5952 am_cv_val_LC_MESSAGES
=no
5957 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5958 if test $am_cv_val_LC_MESSAGES = yes; then
5959 cat >> confdefs.h
<<\EOF
5960 #define HAVE_LC_MESSAGES 1
5965 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5966 echo "configure:5967: checking whether NLS is requested" >&5
5967 # Check whether --enable-nls or --disable-nls was given.
5968 if test "${enable_nls+set}" = set; then
5969 enableval
="$enable_nls"
5975 echo "$ac_t""$USE_NLS" 1>&6
5978 BUILD_INCLUDED_LIBINTL
=no
5979 USE_INCLUDED_LIBINTL
=no
5983 if test "$USE_NLS" = "yes"; then
5984 cat >> confdefs.h
<<\EOF
5985 #define ENABLE_NLS 1
5988 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5989 echo "configure:5990: checking whether included gettext is requested" >&5
5990 # Check whether --with-included-gettext or --without-included-gettext was given.
5991 if test "${with_included_gettext+set}" = set; then
5992 withval
="$with_included_gettext"
5993 nls_cv_force_use_gnu_gettext
=$withval
5995 nls_cv_force_use_gnu_gettext
=no
5998 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6000 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6001 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6007 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6008 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6009 echo "configure:6010: checking for libintl.h" >&5
6010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6011 echo $ac_n "(cached) $ac_c" 1>&6
6013 cat > conftest.
$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6016 #include <libintl.h>
6018 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6019 { (eval echo configure
:6020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6020 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6021 if test -z "$ac_err"; then
6023 eval "ac_cv_header_$ac_safe=yes"
6026 echo "configure: failed program was:" >&5
6027 cat conftest.
$ac_ext >&5
6029 eval "ac_cv_header_$ac_safe=no"
6033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6034 echo "$ac_t""yes" 1>&6
6035 cat >> confdefs.h
<<\EOF
6036 #define HAVE_LIBINTL_H 1
6039 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6040 echo "configure:6041: checking for GNU gettext in libc" >&5
6041 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 cat > conftest.
$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <libintl.h>
6048 extern int _nl_msg_cat_cntr;
6050 bindtextdomain ("", "");
6051 return (int) gettext ("") + _nl_msg_cat_cntr
6054 if { (eval echo configure
:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6056 gt_cv_func_gnugettext1_libc
=yes
6058 echo "configure: failed program was:" >&5
6059 cat conftest.
$ac_ext >&5
6061 gt_cv_func_gnugettext1_libc
=no
6066 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6068 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6069 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6070 echo "configure:6071: checking for GNU gettext in libintl" >&5
6071 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6074 gt_save_LIBS
="$LIBS"
6075 LIBS
="$LIBS -lintl $LIBICONV"
6076 cat > conftest.
$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 #include <libintl.h>
6080 extern int _nl_msg_cat_cntr;
6082 bindtextdomain ("", "");
6083 return (int) gettext ("") + _nl_msg_cat_cntr
6086 if { (eval echo configure
:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6088 gt_cv_func_gnugettext1_libintl
=yes
6090 echo "configure: failed program was:" >&5
6091 cat conftest.
$ac_ext >&5
6093 gt_cv_func_gnugettext1_libintl
=no
6096 LIBS
="$gt_save_LIBS"
6099 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6102 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6103 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6104 && test "$PACKAGE" != gettext; }; then
6105 cat >> confdefs.h
<<\EOF
6106 #define HAVE_GETTEXT 1
6110 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6111 INTLLIBS
="-lintl $LIBICONV"
6114 gt_save_LIBS
="$LIBS"
6115 LIBS
="$LIBS $INTLLIBS"
6116 for ac_func
in dcgettext
6118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6119 echo "configure:6120: checking for $ac_func" >&5
6120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6123 cat > conftest.
$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6126 /* System header to define __stub macros and hopefully few prototypes,
6127 which can conflict with char $ac_func(); below. */
6129 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6136 /* The GNU C library defines this for functions which it implements
6137 to always fail with ENOSYS. Some functions are actually named
6138 something starting with __ and the normal name is an alias. */
6139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6147 if { (eval echo configure
:6148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6149 eval "ac_cv_func_$ac_func=yes"
6151 echo "configure: failed program was:" >&5
6152 cat conftest.
$ac_ext >&5
6154 eval "ac_cv_func_$ac_func=no"
6159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6160 echo "$ac_t""yes" 1>&6
6161 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6162 cat >> confdefs.h
<<EOF
6163 #define $ac_tr_func 1
6167 echo "$ac_t""no" 1>&6
6171 LIBS
="$gt_save_LIBS"
6173 # Extract the first word of "msgfmt", so it can be a program name with args.
6174 set dummy msgfmt
; ac_word
=$2
6175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6176 echo "configure:6177: checking for $ac_word" >&5
6177 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6178 echo $ac_n "(cached) $ac_c" 1>&6
6182 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6186 for ac_dir
in $PATH; do
6187 test -z "$ac_dir" && ac_dir
=.
6188 if test -f $ac_dir/$ac_word; then
6189 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6190 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6196 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6200 MSGFMT
="$ac_cv_path_MSGFMT"
6201 if test "$MSGFMT" != ":"; then
6202 echo "$ac_t""$MSGFMT" 1>&6
6204 echo "$ac_t""no" 1>&6
6207 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6208 set dummy gmsgfmt
; ac_word
=$2
6209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6210 echo "configure:6211: checking for $ac_word" >&5
6211 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6216 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6219 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6222 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6224 for ac_dir
in $ac_dummy; do
6225 test -z "$ac_dir" && ac_dir
=.
6226 if test -f $ac_dir/$ac_word; then
6227 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6232 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6236 GMSGFMT
="$ac_cv_path_GMSGFMT"
6237 if test -n "$GMSGFMT"; then
6238 echo "$ac_t""$GMSGFMT" 1>&6
6240 echo "$ac_t""no" 1>&6
6244 # Extract the first word of "xgettext", so it can be a program name with args.
6245 set dummy xgettext
; ac_word
=$2
6246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6247 echo "configure:6248: checking for $ac_word" >&5
6248 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6253 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6256 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6257 for ac_dir
in $PATH; do
6258 test -z "$ac_dir" && ac_dir
=.
6259 if test -f $ac_dir/$ac_word; then
6260 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6261 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6267 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6271 XGETTEXT
="$ac_cv_path_XGETTEXT"
6272 if test "$XGETTEXT" != ":"; then
6273 echo "$ac_t""$XGETTEXT" 1>&6
6275 echo "$ac_t""no" 1>&6
6283 echo "$ac_t""no" 1>&6
6287 if test "$CATOBJEXT" = "NONE"; then
6288 nls_cv_use_gnu_gettext
=yes
6292 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6293 INTLOBJS
="\$(GETTOBJS)"
6294 # Extract the first word of "msgfmt", so it can be a program name with args.
6295 set dummy msgfmt
; ac_word
=$2
6296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6297 echo "configure:6298: checking for $ac_word" >&5
6298 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6299 echo $ac_n "(cached) $ac_c" 1>&6
6303 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6306 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6307 for ac_dir
in $PATH; do
6308 test -z "$ac_dir" && ac_dir
=.
6309 if test -f $ac_dir/$ac_word; then
6310 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6311 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6317 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6321 MSGFMT
="$ac_cv_path_MSGFMT"
6322 if test "$MSGFMT" != ":"; then
6323 echo "$ac_t""$MSGFMT" 1>&6
6325 echo "$ac_t""no" 1>&6
6328 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6329 set dummy gmsgfmt
; ac_word
=$2
6330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6331 echo "configure:6332: checking for $ac_word" >&5
6332 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6333 echo $ac_n "(cached) $ac_c" 1>&6
6337 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6340 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6343 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6345 for ac_dir
in $ac_dummy; do
6346 test -z "$ac_dir" && ac_dir
=.
6347 if test -f $ac_dir/$ac_word; then
6348 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6353 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6357 GMSGFMT
="$ac_cv_path_GMSGFMT"
6358 if test -n "$GMSGFMT"; then
6359 echo "$ac_t""$GMSGFMT" 1>&6
6361 echo "$ac_t""no" 1>&6
6364 # Extract the first word of "xgettext", so it can be a program name with args.
6365 set dummy xgettext
; ac_word
=$2
6366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6367 echo "configure:6368: checking for $ac_word" >&5
6368 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6373 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6376 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6377 for ac_dir
in $PATH; do
6378 test -z "$ac_dir" && ac_dir
=.
6379 if test -f $ac_dir/$ac_word; then
6380 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6381 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6387 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6391 XGETTEXT
="$ac_cv_path_XGETTEXT"
6392 if test "$XGETTEXT" != ":"; then
6393 echo "$ac_t""$XGETTEXT" 1>&6
6395 echo "$ac_t""no" 1>&6
6399 BUILD_INCLUDED_LIBINTL
=yes
6400 USE_INCLUDED_LIBINTL
=yes
6402 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6403 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6404 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6407 if test "$GMSGFMT" != ":"; then
6408 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6411 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6416 if test "$XGETTEXT" != ":"; then
6417 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6420 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6430 if test "$PACKAGE" = gettext; then
6431 BUILD_INCLUDED_LIBINTL
=yes
6434 for ac_prog
in bison
6436 # Extract the first word of "$ac_prog", so it can be a program name with args.
6437 set dummy
$ac_prog; ac_word
=$2
6438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_word" >&5
6440 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6443 if test -n "$INTLBISON"; then
6444 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6446 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6448 for ac_dir
in $ac_dummy; do
6449 test -z "$ac_dir" && ac_dir
=.
6450 if test -f $ac_dir/$ac_word; then
6451 ac_cv_prog_INTLBISON
="$ac_prog"
6458 INTLBISON
="$ac_cv_prog_INTLBISON"
6459 if test -n "$INTLBISON"; then
6460 echo "$ac_t""$INTLBISON" 1>&6
6462 echo "$ac_t""no" 1>&6
6465 test -n "$INTLBISON" && break
6468 if test -z "$INTLBISON"; then
6471 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6472 echo "configure:6473: checking version of bison" >&5
6473 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6474 case $ac_prog_version in
6475 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6476 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6477 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6478 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6480 echo "$ac_t""$ac_prog_version" 1>&6
6482 if test $ac_verc_fail = yes; then
6495 if test $USE_INCLUDED_LIBINTL = yes; then
6496 cat >> confdefs.h
<<\EOF
6497 #define USE_INCLUDED_LIBINTL 1
6503 nls_cv_header_libgt
=
6515 if test "x$CATOBJEXT" != x
; then
6516 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6517 echo "configure:6518: checking for catalogs to be installed" >&5
6518 # Look for .po and .gmo files in the source directory.
6521 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6522 # If there aren't any .gmo files the shell will give us the
6523 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6525 case "$cat" in *\
**)
6528 # The quadruple backslash is collapsed to a double backslash
6529 # by the backticks, then collapsed again by the double quotes,
6530 # leaving us with one backslash in the sed expression (right
6531 # before the dot that mustn't act as a wildcard). The dot to
6532 # be escaped in the second expression is hiding inside CATOBJEXT.
6533 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6534 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6535 # The user is allowed to set LINGUAS to a list of languages to
6536 # install catalogs for. If it's empty that means "all of them."
6537 if test "x$LINGUAS" = x
; then
6538 CATALOGS
="$CATALOGS $cat"
6539 XLINGUAS
="$XLINGUAS $lang"
6541 case "$LINGUAS" in *$lang*)
6542 CATALOGS
="$CATALOGS $cat"
6543 XLINGUAS
="$XLINGUAS $lang"
6549 echo "$ac_t""$LINGUAS" 1>&6
6553 if test -n "$ac_aux_dir"; then
6554 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6556 if test -z "$MKINSTALLDIRS"; then
6557 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6561 INTL_LIBTOOL_SUFFIX_PREFIX
=
6565 # Windows32 Registry support for specifying GCC installation paths.
6566 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6567 if test "${enable_win32_registry+set}" = set; then
6568 enableval
="$enable_win32_registry"
6573 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6574 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6575 echo "configure:6576: checking whether windows registry support is requested" >&5
6576 if test "x$enable_win32_registry" != xno
; then
6577 cat >> confdefs.h
<<\EOF
6578 #define ENABLE_WIN32_REGISTRY 1
6581 echo "$ac_t""yes" 1>&6
6583 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6584 echo "configure:6585: checking for library containing RegOpenKeyExA" >&5
6585 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6588 ac_func_search_save_LIBS
="$LIBS"
6589 ac_cv_search_RegOpenKeyExA
="no"
6590 cat > conftest.
$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* Override any gcc2 internal prototype to avoid an error. */
6594 /* We use char because int might match the return type of a gcc2
6595 builtin and then its argument prototype would still apply. */
6596 char RegOpenKeyExA();
6602 if { (eval echo configure
:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6604 ac_cv_search_RegOpenKeyExA
="none required"
6606 echo "configure: failed program was:" >&5
6607 cat conftest.
$ac_ext >&5
6610 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6611 LIBS
="-l$i $ac_func_search_save_LIBS"
6612 cat > conftest.
$ac_ext <<EOF
6613 #line 6614 "configure"
6614 #include "confdefs.h"
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6618 char RegOpenKeyExA();
6624 if { (eval echo configure
:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6626 ac_cv_search_RegOpenKeyExA
="-l$i"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.
$ac_ext >&5
6634 LIBS
="$ac_func_search_save_LIBS"
6637 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6638 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6639 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6645 echo "$ac_t""no" 1>&6
6648 # Check if user specified a different registry key.
6649 case "x${enable_win32_registry}" in
6652 gcc_cv_win32_registry_key
="$VERSION"
6655 # no registry lookup.
6656 gcc_cv_win32_registry_key
=''
6659 # user-specified key.
6660 gcc_cv_win32_registry_key
="$enable_win32_registry"
6664 if test "x$enable_win32_registry" != xno
; then
6665 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6666 echo "configure:6667: checking registry key on windows hosts" >&5
6667 cat >> confdefs.h
<<EOF
6668 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6671 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6676 # Get an absolute path to the GCC top-level source directory
6682 # Conditionalize the makefile for this host machine.
6683 # Make-host contains the concatenation of all host makefile fragments
6684 # [there can be more than one]. This file is built by configure.frag.
6685 host_overrides
=Make-host
6686 dep_host_xmake_file
=
6687 for f
in ..
${host_xmake_file}
6689 if test -f ${srcdir}/config
/$f
6691 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6695 # Conditionalize the makefile for this target machine.
6696 # Make-target contains the concatenation of all host makefile fragments
6697 # [there can be more than one]. This file is built by configure.frag.
6698 target_overrides
=Make-target
6700 for f
in ..
${tmake_file}
6702 if test -f ${srcdir}/config
/$f
6704 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6708 # If the host doesn't support symlinks, modify CC in
6709 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6710 # Otherwise, we can use "CC=$(CC)".
6712 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6714 cc_set_by_configure
="\$(CC)"
6715 quoted_cc_set_by_configure
="\$(CC)"
6716 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6717 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6720 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6722 symbolic_link
="cp -p"
6726 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6727 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6728 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6729 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6733 out_object_file
=`basename $out_file .c`.o
6736 for f
in $tm_file; do
6739 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6741 tm_file_list
="${tm_file_list} $f" ;;
6742 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6747 for f
in $tm_p_file; do
6748 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6752 for f
in $host_xm_file; do
6755 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6756 auto-host.h | defaults.h
)
6757 host_xm_file_list
="${host_xm_file_list} $f" ;;
6758 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6763 for f
in $build_xm_file; do
6766 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6767 auto-build.h | auto-host.h | defaults.h
)
6768 build_xm_file_list
="${build_xm_file_list} $f" ;;
6769 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6773 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6774 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6777 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6778 if test x
$host != x
$target
6780 CROSS
="-DCROSS_COMPILE"
6782 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6785 # If this is a cross-compiler that does not
6786 # have its own set of headers then define
6789 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6790 # This prevents libgcc2 from containing any code which requires libc
6793 if test x
$host != x
$target && test x
$with_headers = x
; then
6794 inhibit_libc
=-Dinhibit_libc
6796 if test x
$with_newlib = xyes
; then
6797 inhibit_libc
=-Dinhibit_libc
6802 # When building gcc with a cross-compiler, we need to adjust things so
6803 # that the generator programs are still built with the native compiler.
6804 # Also, we cannot run fixincludes or fix-header.
6805 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6808 # These are the normal (build=host) settings:
6810 HOST_PREFIX_1
=ignore-
6812 HOST_CFLAGS
='$(ALL_CFLAGS)'
6814 STMP_FIXINC
=stmp-fixinc
6815 STMP_FIXPROTO
=stmp-fixproto
6817 # And these apply if build != host.
6818 if test x
$build != x
$host
6821 HOST_PREFIX_1
=build-
6822 HOST_CC
='$(CC_FOR_BUILD)'
6823 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6829 # Expand extra_headers to include complete path.
6830 # This substitutes for lots of t-* files.
6832 if test "x$extra_headers" = x
6835 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6836 for file in $extra_headers;
6838 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6842 if test x
$use_collect2 = xno
; then
6846 # Add a definition of USE_COLLECT2 if system wants one.
6847 if test x
$use_collect2 != x
6849 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6850 xm_defines
="${xm_defines} USE_COLLECT2"
6853 # If we have gas in the build tree, make a link to it.
6854 if test -f ..
/gas
/Makefile
; then
6855 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6858 # If we have nm and objdump in the build tree, make a link to them.
6859 if test -f ..
/binutils
/Makefile
; then
6860 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6861 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6864 # If we have ld in the build tree, make a link to it.
6865 if test -f ..
/ld
/Makefile
; then
6866 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6869 # Figure out what assembler we will be using.
6870 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6871 echo "configure:6872: checking what assembler to use" >&5
6873 gcc_cv_gas_major_version
=
6874 gcc_cv_gas_minor_version
=
6875 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6876 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6877 if test -x "$DEFAULT_ASSEMBLER"; then
6878 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6879 elif test -x "$AS"; then
6881 elif test -x as
$host_exeext; then
6882 # Build using assembler in the current directory.
6883 gcc_cv_as
=.
/as
$host_exeext
6884 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6885 # Single tree build which includes gas.
6886 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
6888 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6889 if test x
$gcc_cv_gas_version != x
; then
6893 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6894 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6895 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
6898 if test "x$gcc_cv_as" = x
; then
6899 # Search the same directories that the installed compiler will
6900 # search. Else we may find the wrong assembler and lose. If we
6901 # do not find a suitable assembler binary, then try the user's
6904 # Also note we have to check MD_EXEC_PREFIX before checking the
6905 # user's path. Unfortunately, there is no good way to get at the
6906 # value of MD_EXEC_PREFIX here. So we do a brute force search
6907 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6908 # to be fixed as part of the make/configure rewrite too.
6910 if test "x$exec_prefix" = xNONE
; then
6911 if test "x$prefix" = xNONE
; then
6912 test_prefix
=/usr
/local
6917 test_prefix
=$exec_prefix
6920 # If the loop below does not find an assembler, then use whatever
6921 # one we can find in the users's path.
6923 if test "x$program_prefix" != xNONE
; then
6924 gcc_cv_as
=${program_prefix}as
$host_exeext
6926 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
6929 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
6930 $test_prefix/lib/gcc-lib/$target_alias \
6931 /usr/lib/gcc/$target_alias/$gcc_version \
6932 /usr/lib/gcc/$target_alias \
6933 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
6934 $test_prefix/$target_alias/bin"
6936 if test x
$host = x
$target; then
6937 test_dirs
="$test_dirs \
6942 /bsd43/usr/lib/cmplrs/cc \
6943 /usr/cross64/usr/bin \
6944 /usr/lib/cmplrs/cc \
6945 /sysv/usr/lib/cmplrs/cc \
6946 /svr4/usr/lib/cmplrs/cc \
6950 for dir
in $test_dirs; do
6951 if test -x $dir/as
$host_exeext; then
6952 gcc_cv_as
=$dir/as
$host_exeext
6957 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6958 echo "$ac_t"""newly built gas
"" 1>&6
6960 echo "$ac_t""$gcc_cv_as" 1>&6
6963 # Figure out what linker we will be using.
6964 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6965 echo "configure:6966: checking what linker to use" >&5
6967 gcc_cv_gld_major_version
=
6968 gcc_cv_gld_minor_version
=
6969 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6970 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6971 if test -x "$DEFAULT_LINKER"; then
6972 gcc_cv_ld
="$DEFAULT_LINKER"
6973 elif test -x "$LD"; then
6975 elif test -x ld
$host_exeext; then
6976 # Build using linker in the current directory.
6977 gcc_cv_ld
=.
/ld
$host_exeext
6978 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
6979 # Single tree build which includes ld.
6980 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
6982 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6983 if test x
$gcc_cv_gld_version != x
; then
6987 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6988 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6991 if test "x$gcc_cv_ld" = x
; then
6992 # Search the same directories that the installed compiler will
6993 # search. Else we may find the wrong linker and lose. If we
6994 # do not find a suitable linker binary, then try the user's
6997 # Also note we have to check MD_EXEC_PREFIX before checking the
6998 # user's path. Unfortunately, there is no good way to get at the
6999 # value of MD_EXEC_PREFIX here. So we do a brute force search
7000 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
7001 # to be fixed as part of the make/configure rewrite too.
7003 if test "x$exec_prefix" = xNONE
; then
7004 if test "x$prefix" = xNONE
; then
7005 test_prefix
=/usr
/local
7010 test_prefix
=$exec_prefix
7013 # If the loop below does not find an linker, then use whatever
7014 # one we can find in the users's path.
7016 if test "x$program_prefix" != xNONE
; then
7017 gcc_cv_ld
=${program_prefix}ld
$host_exeext
7019 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
7022 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7023 $test_prefix/lib/gcc-lib/$target_alias \
7024 /usr/lib/gcc/$target_alias/$gcc_version \
7025 /usr/lib/gcc/$target_alias \
7026 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7027 $test_prefix/$target_alias/bin"
7029 if test x
$host = x
$target; then
7030 test_dirs
="$test_dirs \
7035 /bsd43/usr/lib/cmplrs/cc \
7036 /usr/cross64/usr/bin \
7037 /usr/lib/cmplrs/cc \
7038 /sysv/usr/lib/cmplrs/cc \
7039 /svr4/usr/lib/cmplrs/cc \
7043 for dir
in $test_dirs; do
7044 if test -x $dir/ld
$host_exeext; then
7045 gcc_cv_ld
=$dir/ld
$host_exeext
7050 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7051 echo "$ac_t"""newly built ld
"" 1>&6
7053 echo "$ac_t""$gcc_cv_ld" 1>&6
7056 # Figure out what nm we will be using.
7057 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7058 echo "configure:7059: checking what nm to use" >&5
7059 if test -x nm
$host_exeext; then
7060 gcc_cv_nm
=.
/nm
$host_exeext
7061 elif test "x$program_prefix" != xNONE
; then
7062 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7064 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7066 echo "$ac_t""$gcc_cv_nm" 1>&6
7068 # Figure out what objdump we will be using.
7069 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7070 echo "configure:7071: checking what objdump to use" >&5
7071 if test -x objdump
$host_exeext; then
7072 gcc_cv_objdump
=.
/objdump
$host_exeext
7073 elif test "x$program_prefix" != xNONE
; then
7074 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7076 gcc_cv_objdump
=`echo objdump | sed ${program_transform_name}`$host_exeext
7078 echo "$ac_t""$gcc_cv_objdump" 1>&6
7080 # Figure out what assembler alignment features are present.
7081 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7082 echo "configure:7083: checking assembler alignment features" >&5
7083 gcc_cv_as_alignment_features
=none
7084 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7085 # Gas version 2.6 and later support for .balign and .p2align.
7086 # bytes to skip when using .p2align.
7087 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
7088 gcc_cv_as_alignment_features
=".balign and .p2align"
7089 cat >> confdefs.h
<<\EOF
7090 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7094 # Gas version 2.8 and later support specifying the maximum
7095 # bytes to skip when using .p2align.
7096 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
7097 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7098 cat >> confdefs.h
<<\EOF
7099 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7103 elif test x
$gcc_cv_as != x
; then
7104 # Check if we have .balign and .p2align
7105 echo ".balign 4" > conftest.s
7106 echo ".p2align 2" >> conftest.s
7107 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7108 gcc_cv_as_alignment_features
=".balign and .p2align"
7109 cat >> confdefs.h
<<\EOF
7110 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7114 rm -f conftest.s conftest.o
7115 # Check if specifying the maximum bytes to skip when
7116 # using .p2align is supported.
7117 echo ".p2align 4,,7" > conftest.s
7118 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7119 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7120 cat >> confdefs.h
<<\EOF
7121 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7125 rm -f conftest.s conftest.o
7127 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7129 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7130 echo "configure:7131: checking assembler subsection support" >&5
7131 gcc_cv_as_subsections
=no
7132 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7133 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
7134 gcc_cv_as_subsections
="working .subsection -1"
7136 elif test x
$gcc_cv_as != x
; then
7137 # Check if we have .subsection
7138 echo ".subsection 1" > conftest.s
7139 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7140 gcc_cv_as_subsections
=".subsection"
7141 if test x
$gcc_cv_nm != x
; then
7142 cat > conftest.s
<<EOF
7143 conftest_label1: .word 0
7145 conftest_label2: .word 0
7148 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7149 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7150 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7151 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7154 gcc_cv_as_subsections
="working .subsection -1"
7159 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7161 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7162 cat >> confdefs.h
<<\EOF
7163 #define HAVE_GAS_SUBSECTION_ORDERING 1
7167 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7169 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7170 echo "configure:7171: checking assembler weak support" >&5
7172 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7173 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
7174 gcc_cv_as_weak
="yes"
7176 elif test x
$gcc_cv_as != x
; then
7177 # Check if we have .weak
7178 echo " .weak foobar" > conftest.s
7179 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7180 gcc_cv_as_weak
="yes"
7182 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7184 if test x
"$gcc_cv_as_weak" = xyes
; then
7185 cat >> confdefs.h
<<\EOF
7186 #define HAVE_GAS_WEAK 1
7190 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7192 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7193 echo "configure:7194: checking assembler hidden support" >&5
7195 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7196 if test "$gcc_cv_gas_major_version" -eq 2 \
7197 -a "$gcc_cv_gas_minor_version" -eq 12 \
7198 -a "$gcc_cv_gas_patch_version" -ge 1 \
7199 -o "$gcc_cv_gas_major_version" -eq 2 \
7200 -a "$gcc_cv_gas_minor_version" -gt 12 \
7201 -o "$gcc_cv_gas_major_version" -gt 2 \
7202 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7203 gcc_cv_as_hidden
="yes"
7205 elif test x
$gcc_cv_as != x
; then
7206 # Check if we have .hidden
7207 echo " .hidden foobar" > conftest.s
7208 echo "foobar:" >> conftest.s
7209 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7210 gcc_cv_as_hidden
="yes"
7212 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7214 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7215 # This is irritatingly difficult to feature test for. Look for
7216 # the date string after the version number.
7217 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7218 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7219 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
7220 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'`
7221 if test 0"$ld_date" -lt 20020404; then
7222 if test -n "$ld_date"; then
7223 # If there was date string, but was earlier than 2002-04-04, fail
7224 gcc_cv_as_hidden
="no"
7225 elif test -z "$ld_vers"; then
7226 # If there was no date string nor ld version number, something is wrong
7227 gcc_cv_as_hidden
="no"
7229 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
7230 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
7231 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7232 test -z "$ld_vers_patch" && ld_vers_patch
=0
7233 if test "$ld_vers_major" -lt 2; then
7234 gcc_cv_as_hidden
="no"
7235 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
7236 gcc_cv_as_hidden
="no"
7237 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
7238 -a "$ld_vers_patch" -eq 0; then
7239 gcc_cv_as_hidden
="no"
7246 if test x
"$gcc_cv_as_hidden" = xyes
; then
7247 cat >> confdefs.h
<<\EOF
7248 #define HAVE_GAS_HIDDEN 1
7252 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7253 libgcc_visibility
=$gcc_cv_as_hidden
7256 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7257 echo "configure:7258: checking assembler leb128 support" >&5
7259 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7260 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
7261 gcc_cv_as_leb128
="yes"
7263 elif test x
$gcc_cv_as != x
; then
7264 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7265 cat > conftest.s
<<EOF
7273 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7274 gcc_cv_as_leb128
="yes"
7276 # GAS versions before 2.11 do not support uleb128,
7277 # despite appearing to.
7278 # ??? There exists an elf-specific test that will crash
7279 # the assembler. Perhaps it's better to figure out whether
7280 # arbitrary sections are supported and try the test.
7281 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7282 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7283 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7284 as_major
=`echo $as_ver | sed 's/\..*//'`
7285 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7286 if test $as_major -eq 2 -a $as_minor -lt 11; then
7287 gcc_cv_as_leb128
="no"
7291 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7293 if test x
"$gcc_cv_as_leb128" = xyes
; then
7294 cat >> confdefs.h
<<\EOF
7295 #define HAVE_AS_LEB128 1
7299 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7301 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7302 echo "configure:7303: checking assembler eh_frame optimization" >&5
7303 gcc_cv_as_eh_frame
=no
7304 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7305 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
7306 gcc_cv_as_eh_frame
="yes"
7308 elif test x
$gcc_cv_as != x
; then
7309 # Check if this is GAS.
7310 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7311 rm -f a.out
2> /dev
/null
7312 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7313 # Versions up to and including 2.11.0 may mis-optimize
7314 # .eh_frame data. Try something.
7315 cat > conftest.s
<<EOF
7322 .section .eh_frame,"aw",@progbits
7324 .4byte .LECIE1-.LSCIE1
7338 .4byte .LEFDE1-.LASFDE1
7340 .4byte .LASFDE1-__FRAME_BEGIN__
7349 cat > conftest.lit
<<EOF
7350 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7351 0010 01000000 12000000 18000000 00000000 ................
7352 0020 08000000 04080000 0044 .........D
7354 cat > conftest.big
<<EOF
7355 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7356 0010 00000001 00000012 00000018 00000000 ................
7357 0020 00000008 04000000 0844 .........D
7359 # If the assembler didn't choke, and we can objdump,
7360 # and we got the correct data, then succeed.
7361 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7362 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7363 |
tail -3 > conftest.got \
7364 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7365 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7367 gcc_cv_as_eh_frame
="yes"
7369 gcc_cv_as_eh_frame
="bad"
7370 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7371 cat >> confdefs.h
<<\EOF
7372 #define USE_AS_TRADITIONAL_FORMAT 1
7380 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7382 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7383 echo "configure:7384: checking assembler section merging support" >&5
7384 gcc_cv_as_shf_merge
=no
7385 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7386 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
7387 gcc_cv_as_shf_merge
=yes
7389 elif test x
$gcc_cv_as != x
; then
7390 # Check if we support SHF_MERGE sections
7391 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7392 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7393 gcc_cv_as_shf_merge
=yes
7395 rm -f conftest.s conftest.o
7397 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7398 cat >> confdefs.h
<<\EOF
7399 #define HAVE_GAS_SHF_MERGE 1
7403 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7406 # All TARGET_ABI_OSF targets.
7407 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7408 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7409 echo "configure:7410: checking assembler supports explicit relocations" >&5
7410 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7411 echo $ac_n "(cached) $ac_c" 1>&6
7414 gcc_cv_as_explicit_relocs
=unknown
7415 if test x
$gcc_cv_gas_major_version != x \
7416 -a x
$gcc_cv_gas_minor_version != x
7418 if test "$gcc_cv_gas_major_version" -eq 2 \
7419 -a "$gcc_cv_gas_minor_version" -ge 12 \
7420 -o "$gcc_cv_gas_major_version" -gt 2; then
7421 gcc_cv_as_explicit_relocs
=yes
7423 elif test x
$gcc_cv_as != x
; then
7424 cat > conftest.s
<< 'EOF'
7427 extbl
$3, $2, $3 !lituse_bytoff
!1
7428 ldq
$2, a
($29) !literal
!1
7429 ldq
$4, b
($29) !literal
!2
7430 ldq_u
$3, 0($2) !lituse_base
!1
7431 ldq
$27, f
($29) !literal
!5
7432 jsr
$26, ($27), f
!lituse_jsr
!5
7433 ldah
$29, 0($26) !gpdisp
!3
7434 lda
$0, c
($29) !gprel
7435 ldah
$1, d
($29) !gprelhigh
7436 lda
$1, d
($1) !gprellow
7437 lda
$29, 0($29) !gpdisp
!3
7439 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7440 gcc_cv_as_explicit_relocs
=yes
7442 gcc_cv_as_explicit_relocs
=no
7444 rm -f conftest.s conftest.o
7449 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7450 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7451 cat >> confdefs.h
<<\EOF
7452 #define HAVE_AS_EXPLICIT_RELOCS 1
7458 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7459 echo "configure:7460: checking assembler .register pseudo-op support" >&5
7460 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7464 gcc_cv_as_register_pseudo_op
=unknown
7465 if test x
$gcc_cv_as != x
; then
7466 # Check if we have .register
7467 echo ".register %g2, #scratch" > conftest.s
7468 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7469 gcc_cv_as_register_pseudo_op
=yes
7471 gcc_cv_as_register_pseudo_op
=no
7473 rm -f conftest.s conftest.o
7478 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7479 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7480 cat >> confdefs.h
<<\EOF
7481 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7486 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7487 echo "configure:7488: checking assembler supports -relax" >&5
7488 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7489 echo $ac_n "(cached) $ac_c" 1>&6
7492 gcc_cv_as_relax_opt
=unknown
7493 if test x
$gcc_cv_as != x
; then
7494 # Check if gas supports -relax
7495 echo ".text" > conftest.s
7496 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7497 gcc_cv_as_relax_opt
=yes
7499 gcc_cv_as_relax_opt
=no
7501 rm -f conftest.s conftest.o
7506 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7507 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7508 cat >> confdefs.h
<<\EOF
7509 #define HAVE_AS_RELAX_OPTION 1
7514 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7515 echo "configure:7516: checking assembler and linker support unaligned pc related relocs" >&5
7516 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7520 gcc_cv_as_sparc_ua_pcrel
=unknown
7521 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7522 gcc_cv_as_sparc_ua_pcrel
=no
7523 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7524 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7525 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7526 gcc_cv_as_sparc_ua_pcrel
=yes
7528 rm -f conftest.s conftest.o conftest
7533 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7534 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7535 cat >> confdefs.h
<<\EOF
7536 #define HAVE_AS_SPARC_UA_PCREL 1
7541 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
7542 echo "configure:7543: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
7543 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
7544 echo $ac_n "(cached) $ac_c" 1>&6
7547 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7548 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
7549 if test x
$gcc_cv_objdump != x
; then
7550 gcc_cv_as_sparc_ua_pcrel_hidden
=no
7551 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
7552 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
7553 echo "foo: .skip 4" >> conftest.s
7554 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7555 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
7556 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
7557 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
7558 if $gcc_cv_objdump -R conftest
2> /dev
/null \
7559 |
grep 'DISP32' > /dev
/null
2>&1; then
7562 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
7566 rm -f conftest.s conftest.o conftest
7568 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
7573 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
7574 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
7575 cat >> confdefs.h
<<\EOF
7576 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
7581 if test "x$gcc_cv_as_flags64" != xno
; then
7582 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7583 echo "configure:7584: checking for assembler offsetable %lo() support" >&5
7584 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7585 echo $ac_n "(cached) $ac_c" 1>&6
7588 gcc_cv_as_offsetable_lo10
=unknown
7589 if test "x$gcc_cv_as" != x
; then
7590 # Check if assembler has offsetable %lo()
7591 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7592 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7593 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7595 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7596 > /dev
/null
2>&1; then
7597 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7598 gcc_cv_as_offsetable_lo10
=no
7600 gcc_cv_as_offsetable_lo10
=yes
7603 gcc_cv_as_offsetable_lo10
=no
7605 rm -f conftest.s conftest.o conftest1.s conftest1.o
7610 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7611 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7612 cat >> confdefs.h
<<\EOF
7613 #define HAVE_AS_OFFSETABLE_LO10 1
7621 i
[34567]86-*-* | x86_64-
*-*)
7622 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7623 echo "configure:7624: checking assembler instructions" >&5
7624 gcc_cv_as_instructions
=
7625 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7626 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
7627 gcc_cv_as_instructions
="filds fists"
7629 elif test x
$gcc_cv_as != x
; then
7630 set "filds fists" "filds mem; fists mem"
7633 echo "$2" > conftest.s
7634 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7635 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7639 rm -f conftest.s conftest.o
7641 if test x
"$gcc_cv_as_instructions" != x
; then
7642 cat >> confdefs.h
<<EOF
7643 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7647 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7649 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7650 echo "configure:7651: checking assembler GOTOFF in data directives" >&5
7651 gcc_cv_as_gotoff_in_data
=no
7652 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7654 if test "$gcc_cv_gas_major_version" -eq 2 \
7655 -a "$gcc_cv_gas_minor_version" -ge 11 \
7656 -o "$gcc_cv_gas_major_version" -gt 2; then
7657 gcc_cv_as_gotoff_in_data
=yes
7659 elif test x
$gcc_cv_as != x
; then
7660 cat > conftest.s
<<EOF
7667 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7668 gcc_cv_as_gotoff_in_data
=yes
7671 cat >> confdefs.h
<<EOF
7672 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7675 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7679 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7680 echo "configure:7681: checking assembler dwarf2 debug_line support" >&5
7681 gcc_cv_as_dwarf2_debug_line
=no
7682 # ??? Not all targets support dwarf2 debug_line, even within a version
7683 # of gas. Moreover, we need to emit a valid instruction to trigger any
7684 # info to the output file. So, as supported targets are added to gas 2.11,
7685 # add some instruction here to (also) show we expect this might work.
7686 # ??? Once 2.11 is released, probably need to add first known working
7687 # version to the per-target configury.
7689 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-*)
7696 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7698 if test "$gcc_cv_gas_major_version" -eq 2 \
7699 -a "$gcc_cv_gas_minor_version" -ge 11 \
7700 -o "$gcc_cv_gas_major_version" -gt 2 \
7701 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7702 && test x
"$insn" != x
; then
7703 gcc_cv_as_dwarf2_debug_line
="yes"
7705 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7706 echo ' .file 1 "conftest.s"' > conftest.s
7707 echo ' .loc 1 3 0' >> conftest.s
7708 echo " $insn" >> conftest.s
7709 # ??? This fails with non-gnu grep.
7710 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7711 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7712 # The .debug_line file table must be in the exact order that
7713 # we specified the files, since these indices are also used
7714 # by DW_AT_decl_file. Approximate this test by testing if
7715 # the assembler bitches if the same index is assigned twice.
7716 echo ' .file 1 "foo.s"' > conftest.s
7717 echo ' .file 1 "bar.s"' >> conftest.s
7718 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7720 gcc_cv_as_dwarf2_debug_line
="no"
7722 gcc_cv_as_dwarf2_debug_line
="yes"
7725 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7727 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7728 cat >> confdefs.h
<<\EOF
7729 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7733 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7735 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7736 echo "configure:7737: checking assembler --gdwarf2 support" >&5
7737 gcc_cv_as_gdwarf2_flag
=no
7738 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7740 if test "$gcc_cv_gas_major_version" -eq 2 \
7741 -a "$gcc_cv_gas_minor_version" -ge 11 \
7742 -o "$gcc_cv_gas_major_version" -gt 2 \
7743 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7744 && test x
"$insn" != x
; then
7745 gcc_cv_as_gdwarf2_debug_flag
="yes"
7747 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7748 echo '' > conftest.s
7749 # ??? This fails with non-gnu grep.
7750 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7752 gcc_cv_as_gdwarf2_flag
="yes"
7754 rm -f conftest.s conftest.o
7756 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7757 cat >> confdefs.h
<<\EOF
7758 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7762 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7764 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7765 echo "configure:7766: checking assembler --gstabs support" >&5
7766 gcc_cv_as_gstabs_flag
=no
7767 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7769 if test "$gcc_cv_gas_major_version" -eq 2 \
7770 -a "$gcc_cv_gas_minor_version" -ge 11 \
7771 -o "$gcc_cv_gas_major_version" -gt 2 \
7772 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7773 && test x
"$insn" != x
; then
7774 gcc_cv_as_gstabs_debug_flag
="yes"
7776 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7777 echo '' > conftest.s
7778 # ??? This fails with non-gnu grep.
7779 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7780 gcc_cv_as_gstabs_flag
="yes"
7782 rm -f conftest.s conftest.o
7784 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7785 cat >> confdefs.h
<<\EOF
7786 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7790 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7792 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7793 echo "configure:7794: checking linker PT_GNU_EH_FRAME support" >&5
7794 gcc_cv_ld_eh_frame_hdr
=no
7795 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7796 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
7797 gcc_cv_ld_eh_frame_hdr
=yes
7799 elif test x
$gcc_cv_ld != x
; then
7800 # Check if linker supports --eh-frame-hdr option
7801 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7802 gcc_cv_ld_eh_frame_hdr
=yes
7805 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7806 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7807 echo $ac_n "checking whether linker eh_frame optimizations work properly""... $ac_c" 1>&6
7808 echo "configure:7809: checking whether linker eh_frame optimizations work properly" >&5
7809 gcc_cv_ld_eh_frame_hdr_works
=no
7810 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7811 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ..
/ld
/Makefile
> /dev
/null
; then
7812 gcc_cv_ld_eh_frame_hdr_works
=yes
7814 elif test x
$gcc_cv_ld != x
; then
7815 for gcc_WS
in 4 8; do
7816 cat > conftest.s
<<EOF
7824 .section .eh_frame,"aw",@progbits
7826 .4byte .LECIE1-.LSCIE1
7844 .4byte .LEFDE1-.LASFDE1
7846 .4byte .LASFDE1-.Lframe1
7847 .${gcc_WS}byte .LFB1
7848 .${gcc_WS}byte .LFE1-.LFB1
7853 .4byte .LEFDE2-.LASFDE2
7855 .4byte .LASFDE2-.Lframe1
7856 .${gcc_WS}byte .LFB2
7857 .${gcc_WS}byte .LFE2-.LFB2
7862 .4byte .LEFDE3-.LASFDE3
7864 .4byte .LASFDE3-.Lframe1
7865 .${gcc_WS}byte .LFB3
7866 .${gcc_WS}byte .LFE3-.LFB3
7872 if ($gcc_cv_as -o conftest.o conftest.s
; exit $?
) 1>&5 2>&1; then
7873 if ($gcc_cv_ld --eh-frame-hdr -shared -o conftest.so conftest.o
; exit $?
) 1>&5 2>&1; then
7874 if $gcc_cv_objdump -h conftest.so
2>&5 \
7875 |
grep 'eh_frame_hdr[ ]*0*[01][048cC][ ]' 1>&5 2>&1; then
7876 gcc_cv_ld_eh_frame_hdr_works
=yes; break
7878 $gcc_cv_objdump -h conftest.so
2>/dev
/null |
grep eh_frame_hdr
1>&5 2>&1
7885 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr_works" 1>&6
7887 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes \
7888 && test x
"$gcc_cv_ld_eh_frame_hdr_works" = xyes
; then
7889 cat >> confdefs.h
<<\EOF
7890 #define HAVE_LD_EH_FRAME_HDR 1
7895 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7896 cat >> confdefs.h
<<EOF
7897 #define PREFIX_INCLUDE_DIR "$prefix/include"
7902 # Figure out what language subdirectories are present.
7903 # Look if the user specified --enable-languages="..."; if not, use
7904 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7906 # NB: embedded tabs in this IF block -- do not untabify
7907 if test x
"${enable_languages+set}" != xset
; then
7908 if test x
"${LANGUAGES+set}" = xset
; then
7909 enable_languages
="${LANGUAGES}"
7910 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7913 enable_languages
=all
7916 if test x
"${enable_languages}" = x ||
7917 test x
"${enable_languages}" = xyes
;
7919 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7922 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7924 # First scan to see if an enabled language requires some other language.
7925 # We assume that a given config-lang.in will list all the language
7926 # front ends it requires, even if some are required indirectly.
7927 for lang
in ${srcdir}/*/config-lang.
in ..
7932 # The odd quoting in the next line works around
7933 # an apparent bug in bash 1.12 on linux.
7934 ${srcdir}/[*]/config-lang.
in)
7937 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7938 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7939 for other
in $this_lang_requires
7941 case ,${enable_languages}, in
7947 enable_languages
="$enable_languages,$other"
7956 for lang
in ${srcdir}/*/config-lang.
in ..
7960 # The odd quoting in the next line works around
7961 # an apparent bug in bash 1.12 on linux.
7962 ${srcdir}/[*]/config-lang.
in) ;;
7964 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7965 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7966 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7967 if test "x$lang_alias" = x
7969 echo "$lang doesn't set \$language." 1>&2
7972 case ${build_by_default},${enable_languages}, in
7973 *,$lang_alias,*) add_this_lang
=yes ;;
7974 no
,*) add_this_lang
=no
;;
7975 *,all
,*) add_this_lang
=yes ;;
7976 *) add_this_lang
=no
;;
7978 if test x
"${add_this_lang}" = xyes
; then
7980 ${srcdir}/ada
/config-lang.
in)
7981 if test x
$have_gnat = xyes
; then
7982 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7986 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7994 # Make gthr-default.h if we have a thread file.
7996 if test $thread_file != single
; then
7997 rm -f gthr-default.h
7998 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7999 gthread_flags
=-DHAVE_GTHR_DEFAULT
8003 # Find out what GC implementation we want, or may, use.
8004 # Check whether --with-gc or --without-gc was given.
8005 if test "${with_gc+set}" = set; then
8012 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8020 echo "Using $GGC for garbage collection."
8022 # Use the system's zlib library.
8024 zlibinc
="-I\$(srcdir)/../zlib"
8025 # Check whether --with-system-zlib or --without-system-zlib was given.
8026 if test "${with_system_zlib+set}" = set; then
8027 withval
="$with_system_zlib"
8037 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8038 echo "configure:8039: checking whether to enable maintainer-specific portions of Makefiles" >&5
8039 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8040 if test "${enable_maintainer_mode+set}" = set; then
8041 enableval
="$enable_maintainer_mode"
8042 maintainer_mode
=$enableval
8048 echo "$ac_t""$maintainer_mode" 1>&6
8050 if test "$maintainer_mode" = "yes"; then
8056 # With Setjmp/Longjmp based exception handling.
8057 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8058 if test "${enable_sjlj_exceptions+set}" = set; then
8059 enableval
="$enable_sjlj_exceptions"
8060 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8061 cat >> confdefs.h
<<EOF
8062 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8068 # Make empty files to contain the specs and options for each language.
8069 # Then add #include lines to for a compiler that has specs and/or options.
8074 for subdir
in .
$subdirs
8076 if test -f $srcdir/$subdir/lang-specs.h
; then
8077 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8079 if test -f $srcdir/$subdir/lang-options.h
; then
8080 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8082 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8083 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8087 # These (without "all_") are set in each config-lang.in.
8088 # `language' must be a single word so is spelled singularly.
8093 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc'
8094 # List of language makefile fragments.
8097 # Add the language fragments.
8098 # Languages are added via two mechanisms. Some information must be
8099 # recorded in makefile variables, these are defined in config-lang.in.
8100 # We accumulate them and plug them into the main Makefile.
8101 # The other mechanism is a set of hooks for each of the main targets
8102 # like `clean', `install', etc.
8104 language_fragments
="Make-lang"
8105 language_hooks
="Make-hooks"
8107 for s
in ..
$subdirs
8116 .
${srcdir}/$s/config-lang.
in
8117 if test "x$language" = x
8119 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8122 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8123 if test -f ${srcdir}/$s/Makefile.
in
8124 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8126 all_languages
="$all_languages $language"
8127 if test "x$boot_language" = xyes
8129 all_boot_languages
="$all_boot_languages $language"
8131 all_compilers
="$all_compilers $compilers"
8132 all_stagestuff
="$all_stagestuff $stagestuff"
8133 all_outputs
="$all_outputs $outputs"
8138 for language
in ..
$all_languages
8140 if test $language != ".."
8142 check_languages
="$check_languages check-$language"
8146 # Since we can't use `::' targets, we link each language in
8147 # with a set of hooks, reached indirectly via lang.${target}.
8151 target_list
="all.build all.cross start.encap rest.encap \
8152 info dvi generated-manpages \
8153 install-normal install-common install-info install-man \
8155 mostlyclean clean distclean extraclean maintainer-clean \
8156 stage1 stage2 stage3 stage4"
8157 for t
in $target_list
8160 for lang
in ..
$all_languages
8162 if test $lang != ".."; then
8166 echo "lang.$t: $x" >> Make-hooks
8171 echo "dir ." > .gdbinit
8172 echo "dir ${srcdir}" >> .gdbinit
8173 if test x
$gdb_needs_out_file_path = xyes
8175 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8177 if test "x$subdirs" != x
; then
8180 echo "dir ${srcdir}/$s" >> .gdbinit
8183 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8185 # Define variables host_canonical and build_canonical
8186 # because some Cygnus local changes in the Makefile depend on them.
8187 build_canonical
=${build}
8188 host_canonical
=${host}
8190 if test "${host}" != "${target}" ; then
8191 target_subdir
=${target_alias}/
8197 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8198 # absolute path for gcc_tooldir based on inserting the number of up-directory
8199 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8200 # $(libsubdir)/@(unlibsubdir) based path.
8201 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8202 # make and thus we'd get different behavior depending on where we built the
8204 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8205 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8207 # An explanation of the sed strings:
8208 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8209 # -e 's|/$||' match a trailing forward slash and eliminates it
8210 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8211 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8213 # (*) Note this pattern overwrites the first character of the string
8214 # with a forward slash if one is not already present. This is not a
8215 # problem because the exact names of the sub-directories concerned is
8216 # unimportant, just the number of them matters.
8218 # The practical upshot of these patterns is like this:
8220 # prefix exec_prefix result
8221 # ------ ----------- ------
8223 # /foo/ /foo/bar ../
8224 # /foo /foo/bar/ ../
8225 # /foo/ /foo/bar/ ../
8226 # /foo /foo/bar/ugg ../../
8229 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8234 # Find a directory in which to install a shared libgcc.
8236 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8237 if test "${enable_version_specific_runtime_libs+set}" = set; then
8238 enableval
="$enable_version_specific_runtime_libs"
8243 # Check whether --with-slibdir or --without-slibdir was given.
8244 if test "${with_slibdir+set}" = set; then
8245 withval
="$with_slibdir"
8246 slibdir
="$with_slibdir"
8248 if test "${enable_version_specific_runtime_libs+set}" = set; then
8249 slibdir
='$(libsubdir)'
8250 elif test "$host" != "$target"; then
8251 slibdir
='$(build_tooldir)/lib'
8259 # Nothing to do for FLOAT_H, float_format already handled.
8263 # Process the language and host/target makefile fragments.
8264 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8266 # Substitute configuration variables
8330 # Echo that links are built
8331 if test x
$host = x
$target
8339 if test x
$host != x
$build
8341 str3
=" on a $build system"
8344 if test "x$str2" != x ||
test "x$str3" != x
8349 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8351 if test "x$str2" != x ||
test "x$str3" != x
8353 echo " ${str2}${str3}." 1>&2
8356 # Truncate the target if necessary
8357 if test x
$host_truncate_target != x
; then
8358 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8361 # Configure the subdirectories
8362 # AC_CONFIG_SUBDIRS($subdirs)
8364 # Create the Makefile
8365 # and configure language subdirectories
8367 cat > confcache
<<\EOF
8368 # This file is a shell script that caches the results of configure
8369 # tests run on this system so they can be shared between configure
8370 # scripts and configure runs. It is not useful on other systems.
8371 # If it contains results you don't want to keep, you may remove or edit it.
8373 # By default, configure uses ./config.cache as the cache file,
8374 # creating it if it does not exist already. You can give configure
8375 # the --cache-file=FILE option to use a different cache file; that is
8376 # what configure does when it calls configure scripts in
8377 # subdirectories, so they share the cache.
8378 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8379 # config.status only pays attention to the cache file if you give it the
8380 # --recheck option to rerun configure.
8383 # The following way of writing the cache mishandles newlines in values,
8384 # but we know of no workaround that is simple, portable, and efficient.
8385 # So, don't put newlines in cache variables' values.
8386 # Ultrix sh set writes to stderr and can't be redirected directly,
8387 # and sets the high bit in the cache file unless we assign to the vars.
8389 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8391 # `set' does not quote correctly, so add quotes (double-quote substitution
8392 # turns \\\\ into \\, and sed turns \\ into \).
8394 -e "s/'/'\\\\''/g" \
8395 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8398 # `set' quotes correctly as required by POSIX, so do not add quotes.
8399 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8402 if cmp -s $cache_file confcache
; then
8405 if test -w $cache_file; then
8406 echo "updating cache $cache_file"
8407 cat confcache
> $cache_file
8409 echo "not updating unwritable cache $cache_file"
8414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8416 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8417 # Let make expand exec_prefix.
8418 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8420 # Any assignment to VPATH causes Sun make to only execute
8421 # the first set of double-colon rules, so remove it if not needed.
8422 # If there is a colon in the path, we need to keep it.
8423 if test "x$srcdir" = x.
; then
8424 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8427 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8429 DEFS
=-DHAVE_CONFIG_H
8431 # Without the "./", some shells look in PATH for config.status.
8432 : ${CONFIG_STATUS=./config.status}
8434 echo creating
$CONFIG_STATUS
8435 rm -f $CONFIG_STATUS
8436 cat > $CONFIG_STATUS <<EOF
8438 # Generated automatically by configure.
8439 # Run this file to recreate the current configuration.
8440 # This directory was configured as follows,
8441 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8443 # $0 $ac_configure_args
8445 # Compiler output produced by configure, useful for debugging
8446 # configure, is in ./config.log if it exists.
8448 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8451 case "\$ac_option" in
8452 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8453 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8454 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8455 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8456 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8458 -help | --help | --hel | --he | --h)
8459 echo "\$ac_cs_usage"; exit 0 ;;
8460 *) echo "\$ac_cs_usage"; exit 1 ;;
8464 ac_given_srcdir=$srcdir
8466 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8468 cat >> $CONFIG_STATUS <<EOF
8470 # Protect against being on the right side of a sed subst in config.status.
8471 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8472 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8476 s%@CFLAGS@%$CFLAGS%g
8477 s%@CPPFLAGS@%$CPPFLAGS%g
8478 s%@CXXFLAGS@%$CXXFLAGS%g
8479 s%@FFLAGS@%$FFLAGS%g
8481 s%@LDFLAGS@%$LDFLAGS%g
8483 s%@exec_prefix@%$exec_prefix%g
8484 s%@prefix@%$prefix%g
8485 s%@program_transform_name@%$program_transform_name%g
8486 s%@bindir@%$bindir%g
8487 s%@sbindir@%$sbindir%g
8488 s%@libexecdir@%$libexecdir%g
8489 s%@datadir@%$datadir%g
8490 s%@sysconfdir@%$sysconfdir%g
8491 s%@sharedstatedir@%$sharedstatedir%g
8492 s%@localstatedir@%$localstatedir%g
8493 s%@libdir@%$libdir%g
8494 s%@includedir@%$includedir%g
8495 s%@oldincludedir@%$oldincludedir%g
8496 s%@infodir@%$infodir%g
8497 s%@mandir@%$mandir%g
8498 s%@enable_multilib@%$enable_multilib%g
8499 s%@enable_shared@%$enable_shared%g
8501 s%@host_alias@%$host_alias%g
8502 s%@host_cpu@%$host_cpu%g
8503 s%@host_vendor@%$host_vendor%g
8504 s%@host_os@%$host_os%g
8505 s%@target@%$target%g
8506 s%@target_alias@%$target_alias%g
8507 s%@target_cpu@%$target_cpu%g
8508 s%@target_vendor@%$target_vendor%g
8509 s%@target_os@%$target_os%g
8511 s%@build_alias@%$build_alias%g
8512 s%@build_cpu@%$build_cpu%g
8513 s%@build_vendor@%$build_vendor%g
8514 s%@build_os@%$build_os%g
8516 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8517 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8518 s%@GNATBIND@%$GNATBIND%g
8520 s%@strict1_warn@%$strict1_warn%g
8522 s%@warn_cflags@%$warn_cflags%g
8523 s%@stage1_cflags@%$stage1_cflags%g
8524 s%@SET_MAKE@%$SET_MAKE%g
8528 s%@RANLIB@%$RANLIB%g
8529 s%@INSTALL@%$INSTALL%g
8530 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8531 s%@INSTALL_DATA@%$INSTALL_DATA%g
8532 s%@have_mktemp_command@%$have_mktemp_command%g
8533 s%@MAKEINFO@%$MAKEINFO%g
8534 s%@BUILD_INFO@%$BUILD_INFO%g
8535 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8538 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8539 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8540 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8541 s%@LIBICONV@%$LIBICONV%g
8542 s%@manext@%$manext%g
8543 s%@objext@%$objext%g
8544 s%@FORBUILD@%$FORBUILD%g
8545 s%@PACKAGE@%$PACKAGE%g
8546 s%@VERSION@%$VERSION%g
8547 s%@ALLOCA@%$ALLOCA%g
8548 s%@GLIBC21@%$GLIBC21%g
8549 s%@USE_NLS@%$USE_NLS%g
8550 s%@MSGFMT@%$MSGFMT%g
8551 s%@GMSGFMT@%$GMSGFMT%g
8552 s%@XGETTEXT@%$XGETTEXT%g
8553 s%@INTLBISON@%$INTLBISON%g
8554 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8555 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8556 s%@CATALOGS@%$CATALOGS%g
8557 s%@CATOBJEXT@%$CATOBJEXT%g
8558 s%@INTLLIBS@%$INTLLIBS%g
8559 s%@INTLDEPS@%$INTLDEPS%g
8560 s%@INTLOBJS@%$INTLOBJS%g
8562 s%@DATADIRNAME@%$DATADIRNAME%g
8563 s%@INSTOBJEXT@%$INSTOBJEXT%g
8564 s%@GENCAT@%$GENCAT%g
8565 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8566 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8569 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8570 s%@inhibit_libc@%$inhibit_libc%g
8571 s%@HOST_PREFIX@%$HOST_PREFIX%g
8572 s%@HOST_PREFIX_1@%$HOST_PREFIX_1%g
8573 s%@HOST_CC@%$HOST_CC%g
8574 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8575 s%@STMP_FIXINC@%$STMP_FIXINC%g
8576 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8577 s%@libgcc_visibility@%$libgcc_visibility%g
8578 s%@gthread_flags@%$gthread_flags%g
8580 s%@zlibdir@%$zlibdir%g
8581 s%@zlibinc@%$zlibinc%g
8583 s%@build_canonical@%$build_canonical%g
8584 s%@host_canonical@%$host_canonical%g
8585 s%@target_subdir@%$target_subdir%g
8586 s%@gcc_tooldir@%$gcc_tooldir%g
8587 s%@dollar@%$dollar%g
8588 s%@slibdir@%$slibdir%g
8589 s%@objdir@%$objdir%g
8590 s%@subdirs@%$subdirs%g
8591 s%@all_boot_languages@%$all_boot_languages%g
8592 s%@all_compilers@%$all_compilers%g
8593 s%@all_lang_makefiles@%$all_lang_makefiles%g
8594 s%@all_languages@%$all_languages%g
8595 s%@all_stagestuff@%$all_stagestuff%g
8596 s%@build_exeext@%$build_exeext%g
8597 s%@build_install_headers_dir@%$build_install_headers_dir%g
8598 s%@build_xm_file_list@%$build_xm_file_list%g
8599 s%@build_xm_file@%$build_xm_file%g
8600 s%@build_xm_defines@%$build_xm_defines%g
8601 s%@check_languages@%$check_languages%g
8602 s%@cc_set_by_configure@%$cc_set_by_configure%g
8603 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8604 s%@cpp_install_dir@%$cpp_install_dir%g
8605 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8606 s%@dep_tmake_file@%$dep_tmake_file%g
8607 s%@extra_headers_list@%$extra_headers_list%g
8608 s%@extra_objs@%$extra_objs%g
8609 s%@extra_parts@%$extra_parts%g
8610 s%@extra_passes@%$extra_passes%g
8611 s%@extra_programs@%$extra_programs%g
8612 s%@float_h_file@%$float_h_file%g
8613 s%@gcc_config_arguments@%$gcc_config_arguments%g
8614 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8615 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8616 s%@gcc_version@%$gcc_version%g
8617 s%@gcc_version_full@%$gcc_version_full%g
8618 s%@gcc_version_trigger@%$gcc_version_trigger%g
8619 s%@host_exeext@%$host_exeext%g
8620 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8621 s%@host_xm_file_list@%$host_xm_file_list%g
8622 s%@host_xm_file@%$host_xm_file%g
8623 s%@host_xm_defines@%$host_xm_defines%g
8624 s%@install@%$install%g
8625 s%@lang_options_files@%$lang_options_files%g
8626 s%@lang_specs_files@%$lang_specs_files%g
8627 s%@lang_tree_files@%$lang_tree_files%g
8628 s%@local_prefix@%$local_prefix%g
8629 s%@md_file@%$md_file%g
8630 s%@objc_boehm_gc@%$objc_boehm_gc%g
8631 s%@out_file@%$out_file%g
8632 s%@out_object_file@%$out_object_file%g
8633 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8634 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8635 s%@symbolic_link@%$symbolic_link%g
8636 s%@thread_file@%$thread_file%g
8637 s%@tm_file_list@%$tm_file_list%g
8638 s%@tm_file@%$tm_file%g
8639 s%@tm_p_file_list@%$tm_p_file_list%g
8640 s%@tm_p_file@%$tm_p_file%g
8641 s%@xm_file@%$xm_file%g
8642 s%@xm_defines@%$xm_defines%g
8643 s%@c_target_objs@%$c_target_objs%g
8644 s%@cxx_target_objs@%$cxx_target_objs%g
8645 s%@target_cpu_default@%$target_cpu_default%g
8646 /@target_overrides@/r $target_overrides
8647 s%@target_overrides@%%g
8648 /@host_overrides@/r $host_overrides
8649 s%@host_overrides@%%g
8650 /@language_fragments@/r $language_fragments
8651 s%@language_fragments@%%g
8652 /@language_hooks@/r $language_hooks
8653 s%@language_hooks@%%g
8658 cat >> $CONFIG_STATUS <<\EOF
8660 # Split the substitutions into bite-sized pieces for seds with
8661 # small command number limits, like on Digital OSF/1 and HP-UX.
8662 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8663 ac_file
=1 # Number of current file.
8664 ac_beg
=1 # First line for current file.
8665 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8668 while $ac_more_lines; do
8669 if test $ac_beg -gt 1; then
8670 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8672 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8674 if test ! -s conftest.s
$ac_file; then
8676 rm -f conftest.s
$ac_file
8678 if test -z "$ac_sed_cmds"; then
8679 ac_sed_cmds
="sed -f conftest.s$ac_file"
8681 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8683 ac_file
=`expr $ac_file + 1`
8685 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8688 if test -z "$ac_sed_cmds"; then
8693 cat >> $CONFIG_STATUS <<EOF
8695 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8697 cat >> $CONFIG_STATUS <<\EOF
8698 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8699 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8701 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8702 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8703 *) ac_file_in
="${ac_file}.in" ;;
8706 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8708 # Remove last slash and all that follows it. Not all systems have dirname.
8709 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8710 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8711 # The file is in a subdirectory.
8712 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8713 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8714 # A "../" for each directory in $ac_dir_suffix.
8715 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8717 ac_dir_suffix
= ac_dots
=
8720 case "$ac_given_srcdir" in
8722 if test -z "$ac_dots"; then top_srcdir
=.
8723 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8724 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8726 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8727 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8731 echo creating
"$ac_file"
8733 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8735 *Makefile
*) ac_comsub
="1i\\
8736 # $configure_input" ;;
8740 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8742 s%@configure_input@%$configure_input%g
8743 s%@srcdir@%$srcdir%g
8744 s%@top_srcdir@%$top_srcdir%g
8745 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8749 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8750 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8752 # ac_d sets the value in "#define NAME VALUE" lines.
8753 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8754 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8757 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8758 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8759 ac_uB
='\([ ]\)%\1#\2define\3'
8762 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8763 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8764 ac_eB
='$%\1#\2define\3'
8768 if test "${CONFIG_HEADERS+set}" != set; then
8770 cat >> $CONFIG_STATUS <<EOF
8771 CONFIG_HEADERS="auto-host.h:config.in"
8773 cat >> $CONFIG_STATUS <<\EOF
8775 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8778 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8779 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8780 *) ac_file_in
="${ac_file}.in" ;;
8783 echo creating
$ac_file
8785 rm -f conftest.frag conftest.
in conftest.out
8786 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8787 cat $ac_file_inputs > conftest.
in
8791 # Transform confdefs.h into a sed script conftest.vals that substitutes
8792 # the proper values into config.h.in to produce config.h. And first:
8793 # Protect against being on the right side of a sed subst in config.status.
8794 # Protect against being in an unquoted here document in config.status.
8796 cat > conftest.hdr
<<\EOF
8799 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8803 sed -n -f conftest.hdr confdefs.h > conftest.vals
8806 # This sed command replaces #undef with comments. This is necessary, for
8807 # example, in the case of _POSIX_SOURCE, which is predefined and required
8808 # on some systems where configure will not decide to define it.
8809 cat >> conftest.vals <<\EOF
8810 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8813 # Break up conftest.vals because some shells have a limit on
8814 # the size of here documents, and old seds have small limits too.
8819 ac_lines=`grep -c . conftest.vals
`
8820 # grep -c gives empty output for an empty file on some AIX systems.
8821 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8822 # Write a limited-size here document to conftest.frag.
8823 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8824 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8826 sed -f conftest.frag conftest.in > conftest.out
8828 mv conftest.out conftest.in
8830 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8832 mv conftest.tail conftest.vals
8836 cat >> $CONFIG_STATUS <<\EOF
8837 rm -f conftest.frag conftest.h
8838 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8839 cat conftest.in >> conftest.h
8841 if cmp -s $ac_file conftest.h 2>/dev/null; then
8842 echo "$ac_file is unchanged"
8845 # Remove last slash and all that follows it. Not all systems have dirname.
8846 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8847 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8848 # The file is in a subdirectory.
8849 test ! -d "$ac_dir" && mkdir "$ac_dir"
8852 mv conftest.h $ac_file
8857 cat >> $CONFIG_STATUS <<EOF
8860 symbolic_link='$symbolic_link'
8863 cat >> $CONFIG_STATUS <<\EOF
8864 for ac_file in $CONFIG_FILES; do
8865 # Support "outfile[:infile[:infile...]]"
8867 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8869 # PO directories have a Makefile.in generated from Makefile.in.in.
8870 case "$ac_file" in */Makefile.in)
8871 # Adjust a relative srcdir.
8872 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8873 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8874 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8875 # In autoconf-2.13 it is called $ac_given_srcdir.
8876 # In autoconf-2.50 it is called $srcdir.
8877 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8878 case "$ac_given_srcdir" in
8879 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8880 /*) top_srcdir="$ac_given_srcdir" ;;
8881 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8883 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8884 rm -f "$ac_dir/POTFILES"
8885 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8886 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8887 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8888 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8894 case x$CONFIG_HEADERS in
8895 xauto-host.h:config.in)
8898 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8899 # bootstrapping and the installation procedure can still use
8900 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8901 # FLAGS_TO_PASS has been modified to solve the problem there.
8902 # This is virtually a duplicate of what happens in configure.lang; we do
8903 # an extra check to make sure this only happens if ln -s can be used.
8904 if test "$symbolic_link" = "ln -s"; then
8905 for d in .. ${subdirs} fixinc ; do
8906 if test $d != ..; then
8909 for t in stage1 stage2 stage3 stage4 include
8912 $symbolic_link ../$t $t 2>/dev/null
8918 # Avoid having to add intl to our include paths.
8919 if test -f intl/libintl.h; then
8920 echo creating libintl.h
8921 echo '#include "intl/libintl.h"' >libintl.h
8926 chmod +x $CONFIG_STATUS
8927 rm -fr confdefs* $ac_clean_files
8928 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1