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-local-prefix=DIR specifies directory to put local include"
17 --with-gxx-include-dir=DIR
18 specifies directory to put g++ header files"
20 --with-cpp-install-dir=DIR
21 install the user visible C preprocessor in DIR
22 (relative to PREFIX) as well as PREFIX/bin"
24 --with-gnu-ld arrange to work with GNU ld."
26 --with-ld arrange to use the specified ld (full pathname)"
28 --with-gnu-as arrange to work with GNU as"
30 --with-as arrange to use the specified as (full pathname)"
32 --enable-werror enable -Werror in bootstrap stage2 and later"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,rtlflag,gc,gcac;
38 default is misc,tree,gc,rtlflag"
40 --enable-coverage[=LEVEL]
41 enable compiler\'s code coverage collection.
42 Use to measure compiler performance and locate
43 unused parts of the compiler. With LEVEL, specify
44 optimization. Values are opt, noopt,
47 --with-stabs arrange to use stabs instead of host debug format"
49 --with-elf arrange to use ELF instead of host debug format"
51 --enable-multilib enable library support for multiple ABIs"
53 --enable-__cxa_atexit enable __cxa_atexit for C++"
55 --enable-c-mbchar enable multibyte characters for C and C++"
57 --enable-threads enable thread usage for target GCC
58 --enable-threads=LIB use LIB thread package for target GCC"
60 --enable-objc-gc enable the use of Boehm's garbage collector with
61 the GNU Objective-C runtime"
63 --with-dwarf2 force the default debug format to be DWARF 2"
65 --disable-shared don't provide a shared libgcc"
67 --with-sysroot[=DIR] Search for usr/lib, usr/include, et al, within DIR."
69 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
71 --enable-initfini-array use .init_array/.fini_array sections"
73 --enable-sjlj-exceptions
74 arrange to use setjmp/longjmp exception handling"
76 --enable-libunwind-exceptions force use libunwind for exceptions"
78 --enable-nls use Native Language Support (default)"
80 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
82 --disable-nls do not use Native Language Support"
84 --with-included-gettext use the GNU gettext library included here"
86 --disable-win32-registry
87 disable lookup of installation paths in the
88 Registry on Windows hosts
89 --enable-win32-registry enable registry lookup (default)
90 --enable-win32-registry=KEY
91 use KEY instead of GCC version as the last portion
94 --with-gc={simple,page} choose the garbage collection mechanism to use
97 --with-system-zlib use installed libz"
99 --enable-maintainer-mode
100 enable make rules and dependencies not useful
101 (and sometimes confusing) to the casual installer"
103 --enable-version-specific-runtime-libs
104 specify that runtime libraries should be
105 installed in a compiler-specific directory"
107 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
109 # Initialize some variables set by options.
110 # The variables have the same names as the options, with
111 # dashes changed to underlines.
113 cache_file
=.
/config.cache
122 program_transform_name
=s
,x
,x
,
130 bindir
='${exec_prefix}/bin'
131 sbindir
='${exec_prefix}/sbin'
132 libexecdir
='${exec_prefix}/libexec'
133 datadir
='${prefix}/share'
134 sysconfdir
='${prefix}/etc'
135 sharedstatedir
='${prefix}/com'
136 localstatedir
='${prefix}/var'
137 libdir
='${exec_prefix}/lib'
138 includedir
='${prefix}/include'
139 oldincludedir
='/usr/include'
140 infodir
='${prefix}/info'
141 mandir
='${prefix}/man'
143 # Initialize some other variables.
146 SHELL
=${CONFIG_SHELL-/bin/sh}
147 # Maximum number of lines to put in a shell here document.
154 # If the previous option needs an argument, assign it.
155 if test -n "$ac_prev"; then
156 eval "$ac_prev=\$ac_option"
162 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
172 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
173 bindir
="$ac_optarg" ;;
175 -build |
--build |
--buil |
--bui |
--bu)
177 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
178 build
="$ac_optarg" ;;
180 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
181 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
182 ac_prev
=cache_file
;;
183 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
184 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
185 cache_file
="$ac_optarg" ;;
187 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
189 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
191 datadir
="$ac_optarg" ;;
193 -disable-* |
--disable-*)
194 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}=no" ;;
202 -enable-* |
--enable-*)
203 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}='$ac_optarg'" ;;
215 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
216 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
217 |
--exec |
--exe |
--ex)
218 ac_prev
=exec_prefix
;;
219 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
220 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
221 |
--exec=* |
--exe=* |
--ex=*)
222 exec_prefix
="$ac_optarg" ;;
224 -gas |
--gas |
--ga |
--g)
225 # Obsolete; use --with-gas.
228 -help |
--help |
--hel |
--he)
229 # Omit some internal or obsolete options to make the list less imposing.
230 # This message is too long to be a string in the A/UX 3.1 sh.
232 Usage: configure [options] [host]
233 Options: [defaults in brackets after descriptions]
235 --cache-file=FILE cache test results in FILE
236 --help print this message
237 --no-create do not create output files
238 --quiet, --silent do not print \`checking...' messages
239 --version print the version of autoconf that created configure
240 Directory and file names:
241 --prefix=PREFIX install architecture-independent files in PREFIX
243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
245 --bindir=DIR user executables in DIR [EPREFIX/bin]
246 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
247 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
248 --datadir=DIR read-only architecture-independent data in DIR
250 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
251 --sharedstatedir=DIR modifiable architecture-independent data in DIR
253 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
254 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
255 --includedir=DIR C header files in DIR [PREFIX/include]
256 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
257 --infodir=DIR info documentation in DIR [PREFIX/info]
258 --mandir=DIR man documentation in DIR [PREFIX/man]
259 --srcdir=DIR find the sources in DIR [configure dir or ..]
260 --program-prefix=PREFIX prepend PREFIX to installed program names
261 --program-suffix=SUFFIX append SUFFIX to installed program names
262 --program-transform-name=PROGRAM
263 run sed PROGRAM on installed program names
267 --build=BUILD configure for building on BUILD [BUILD=HOST]
268 --host=HOST configure for HOST [guessed]
269 --target=TARGET configure for TARGET [TARGET=HOST]
270 Features and packages:
271 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
272 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
273 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
274 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
275 --x-includes=DIR X include files are in DIR
276 --x-libraries=DIR X library files are in DIR
278 if test -n "$ac_help"; then
279 echo "--enable and --with options recognized:$ac_help"
283 -host |
--host |
--hos |
--ho)
285 -host=* |
--host=* |
--hos=* |
--ho=*)
288 -includedir |
--includedir |
--includedi |
--included |
--include \
289 |
--includ |
--inclu |
--incl |
--inc)
290 ac_prev
=includedir
;;
291 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
292 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
293 includedir
="$ac_optarg" ;;
295 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
297 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
298 infodir
="$ac_optarg" ;;
300 -libdir |
--libdir |
--libdi |
--libd)
302 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
303 libdir
="$ac_optarg" ;;
305 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
306 |
--libexe |
--libex |
--libe)
307 ac_prev
=libexecdir
;;
308 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
309 |
--libexe=* |
--libex=* |
--libe=*)
310 libexecdir
="$ac_optarg" ;;
312 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
313 |
--localstate |
--localstat |
--localsta |
--localst \
314 |
--locals |
--local |
--loca |
--loc |
--lo)
315 ac_prev
=localstatedir
;;
316 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
317 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
318 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
319 localstatedir
="$ac_optarg" ;;
321 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
323 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
324 mandir
="$ac_optarg" ;;
327 # Obsolete; use --without-fp.
330 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
334 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
335 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
338 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
339 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
340 |
--oldin |
--oldi |
--old |
--ol |
--o)
341 ac_prev
=oldincludedir
;;
342 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
343 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
344 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
345 oldincludedir
="$ac_optarg" ;;
347 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
349 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
350 prefix
="$ac_optarg" ;;
352 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
353 |
--program-pre |
--program-pr |
--program-p)
354 ac_prev
=program_prefix
;;
355 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
356 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
357 program_prefix
="$ac_optarg" ;;
359 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
360 |
--program-suf |
--program-su |
--program-s)
361 ac_prev
=program_suffix
;;
362 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
363 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
364 program_suffix
="$ac_optarg" ;;
366 -program-transform-name |
--program-transform-name \
367 |
--program-transform-nam |
--program-transform-na \
368 |
--program-transform-n |
--program-transform- \
369 |
--program-transform |
--program-transfor \
370 |
--program-transfo |
--program-transf \
371 |
--program-trans |
--program-tran \
372 |
--progr-tra |
--program-tr |
--program-t)
373 ac_prev
=program_transform_name
;;
374 -program-transform-name=* |
--program-transform-name=* \
375 |
--program-transform-nam=* |
--program-transform-na=* \
376 |
--program-transform-n=* |
--program-transform-=* \
377 |
--program-transform=* |
--program-transfor=* \
378 |
--program-transfo=* |
--program-transf=* \
379 |
--program-trans=* |
--program-tran=* \
380 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
381 program_transform_name
="$ac_optarg" ;;
383 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
384 |
-silent |
--silent |
--silen |
--sile |
--sil)
387 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
389 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
391 sbindir
="$ac_optarg" ;;
393 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
394 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
395 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
397 ac_prev
=sharedstatedir
;;
398 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
399 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
400 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
402 sharedstatedir
="$ac_optarg" ;;
404 -site |
--site |
--sit)
406 -site=* |
--site=* |
--sit=*)
409 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
411 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
412 srcdir
="$ac_optarg" ;;
414 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
415 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
416 ac_prev
=sysconfdir
;;
417 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
418 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
419 sysconfdir
="$ac_optarg" ;;
421 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
423 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
424 target
="$ac_optarg" ;;
426 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
429 -version |
--version |
--versio |
--versi |
--vers)
430 echo "configure generated by autoconf version 2.13"
434 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package
=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}='$ac_optarg'" ;;
446 -without-* |
--without-*)
447 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package
=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}=no" ;;
456 # Obsolete; use --with-x.
459 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
460 |
--x-incl |
--x-inc |
--x-in |
--x-i)
461 ac_prev
=x_includes
;;
462 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
463 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
464 x_includes
="$ac_optarg" ;;
466 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
467 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
468 ac_prev
=x_libraries
;;
469 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
470 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
471 x_libraries
="$ac_optarg" ;;
473 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
477 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
478 echo "configure: warning: $ac_option: invalid host type" 1>&2
480 if test "x$nonopt" != xNONE
; then
481 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
489 if test -n "$ac_prev"; then
490 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
493 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
495 # File descriptor usage:
498 # 2 errors and warnings
499 # 3 some systems may open it to /dev/tty
500 # 4 used on the Kubota Titan
501 # 6 checking for... messages and results
502 # 5 compiler messages saved in config.log
503 if test "$silent" = yes; then
511 This file contains any messages produced by compilers while
512 running configure, to aid debugging if configure makes a mistake.
515 # Strip out --no-create and --no-recursion so they do not pile up.
516 # Also quote any args containing shell metacharacters.
521 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
522 |
--no-cr |
--no-c) ;;
523 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
524 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
525 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
526 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
527 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
532 # Only set these to C if already set. These must not be set unconditionally
533 # because not all systems understand e.g. LANG=C (notably SCO).
534 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
535 # Non-C LC_CTYPE values break the ctype check.
536 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
537 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
538 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
539 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
542 rm -rf conftest
* confdefs.h
543 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
546 # A filename unique to this package, relative to the directory that
547 # configure is in, which we can look for to find out if srcdir is correct.
548 ac_unique_file
=tree.c
550 # Find the source files, if location was not specified.
551 if test -z "$srcdir"; then
552 ac_srcdir_defaulted
=yes
553 # Try the directory containing this script, then its parent.
555 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
556 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
558 if test ! -r $srcdir/$ac_unique_file; then
562 ac_srcdir_defaulted
=no
564 if test ! -r $srcdir/$ac_unique_file; then
565 if test "$ac_srcdir_defaulted" = yes; then
566 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
568 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
571 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
573 # Prefer explicitly selected file to automatically selected ones.
574 if test -z "$CONFIG_SITE"; then
575 if test "x$prefix" != xNONE
; then
576 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
578 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
581 for ac_site_file
in $CONFIG_SITE; do
582 if test -r "$ac_site_file"; then
583 echo "loading site script $ac_site_file"
588 if test -r "$cache_file"; then
589 echo "loading cache $cache_file"
592 echo "creating cache $cache_file"
597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
598 ac_cpp
='$CPP $CPPFLAGS'
599 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
600 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
601 cross_compiling
=$ac_cv_prog_cc_cross
605 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
606 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
607 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
614 ac_n
= ac_c
='\c' ac_t
=
620 # Determine the host, build, and target systems
622 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
623 if test -f $ac_dir/install-sh
; then
625 ac_install_sh
="$ac_aux_dir/install-sh -c"
627 elif test -f $ac_dir/install.sh
; then
629 ac_install_sh
="$ac_aux_dir/install.sh -c"
633 if test -z "$ac_aux_dir"; then
634 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
636 ac_config_guess
=$ac_aux_dir/config.guess
637 ac_config_sub
=$ac_aux_dir/config.sub
638 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
641 # Do some error checking and defaulting for the host and target type.
643 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
646 # 1. You are not allowed to specify --host, --target, and nonopt at the
648 # 2. Host defaults to nonopt.
649 # 3. If nonopt is not specified, then host defaults to the current host,
650 # as determined by config.guess.
651 # 4. Target and build default to nonopt.
652 # 5. If nonopt is not specified, then target and build default to host.
654 # The aliases save the names the user supplied, while $host etc.
655 # will get canonicalized.
656 case $host---$target---$nonopt in
657 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
658 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
662 # Make sure we can run config.sub.
663 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
664 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
667 echo $ac_n "checking host system type""... $ac_c" 1>&6
668 echo "configure:669: checking host system type" >&5
671 case "$host_alias" in
675 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
676 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
678 *) host_alias
=$nonopt ;;
682 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
683 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686 echo "$ac_t""$host" 1>&6
688 echo $ac_n "checking target system type""... $ac_c" 1>&6
689 echo "configure:690: checking target system type" >&5
692 case "$target_alias" in
695 NONE
) target_alias
=$host_alias ;;
696 *) target_alias
=$nonopt ;;
700 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
701 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
702 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
703 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
704 echo "$ac_t""$target" 1>&6
706 echo $ac_n "checking build system type""... $ac_c" 1>&6
707 echo "configure:708: checking build system type" >&5
710 case "$build_alias" in
713 NONE
) build_alias
=$host_alias ;;
714 *) build_alias
=$nonopt ;;
718 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
719 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
720 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
721 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
722 echo "$ac_t""$build" 1>&6
724 test "$host_alias" != "$target_alias" &&
725 test "$program_prefix$program_suffix$program_transform_name" = \
727 program_prefix
=${target_alias}-
730 # Determine the target- and build-specific subdirectories
731 case ${build_alias} in
732 "") build_noncanonical
=${build} ;;
733 *) build_noncanonical
=${build_alias} ;;
736 case ${host_alias} in
737 "") host_noncanonical
=${build_noncanonical} ;;
738 *) host_noncanonical
=${host_alias} ;;
741 case ${target_alias} in
742 "") target_noncanonical
=${host_noncanonical} ;;
743 *) target_noncanonical
=${target_alias} ;;
746 # Prefix 'build-' so this never conflicts with target_subdir.
747 build_subdir
="build-${build_noncanonical}"
748 # Not really a subdirectory, but here for completeness.
751 target_subdir
=${target_noncanonical}
754 # Set program_transform_name
755 if test "$program_transform_name" = s
,x
,x
,; then
756 program_transform_name
=
758 # Double any \ or $. echo might interpret backslashes.
759 cat <<\EOF_SED
> conftestsed
760 s
,\\,\\\\,g
; s
,\$
,$$
,g
762 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
765 test "$program_prefix" != NONE
&&
766 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
767 # Use a double $ so make ignores it.
768 test "$program_suffix" != NONE
&&
769 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
771 # sed with no file args requires a program.
772 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
775 # Check for bogus environment variables.
776 # Test if LIBRARY_PATH contains the notation for the current directory
777 # since this would lead to problems installing/building glibc.
778 # LIBRARY_PATH contains the current directory if one of the following
780 # - one of the terminals (":" and ";") is the first or last sign
781 # - two terminals occur directly after each other
782 # - the path contains an element with a dot in it
783 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
784 echo "configure:785: checking LIBRARY_PATH variable" >&5
785 case ${LIBRARY_PATH} in
786 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
787 library_path_setting
="contains current directory"
790 library_path_setting
="ok"
793 echo "$ac_t""$library_path_setting" 1>&6
794 if test "$library_path_setting" != "ok"; then
795 { echo "configure: error:
796 *** LIBRARY_PATH shouldn't contain the current directory when
797 *** building gcc. Please change the environment variable
798 *** and run configure again." 1>&2; exit 1; }
801 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
802 # since this would lead to problems installing/building glibc.
803 # GCC_EXEC_PREFIX contains the current directory if one of the following
805 # - one of the terminals (":" and ";") is the first or last sign
806 # - two terminals occur directly after each other
807 # - the path contains an element with a dot in it
808 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
809 echo "configure:810: checking GCC_EXEC_PREFIX variable" >&5
810 case ${GCC_EXEC_PREFIX} in
811 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
812 gcc_exec_prefix_setting
="contains current directory"
815 gcc_exec_prefix_setting
="ok"
818 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
819 if test "$gcc_exec_prefix_setting" != "ok"; then
820 { echo "configure: error:
821 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
822 *** building gcc. Please change the environment variable
823 *** and run configure again." 1>&2; exit 1; }
830 # Specify the local prefix
832 # Check whether --with-local-prefix or --without-local-prefix was given.
833 if test "${with_local_prefix+set}" = set; then
834 withval
="$with_local_prefix"
836 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
838 *) local_prefix
=$with_local_prefix ;;
843 # Default local prefix if it is empty
844 if test x
$local_prefix = x
; then
845 local_prefix
=/usr
/local
848 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
849 # passed in by the toplevel make and thus we'd get different behavior
850 # depending on where we built the sources.
852 # Specify the g++ header file directory
853 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
854 if test "${with_gxx_include_dir+set}" = set; then
855 withval
="$with_gxx_include_dir"
857 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
859 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
864 if test x
${gcc_gxx_include_dir} = x
; then
865 if test x
${enable_version_specific_runtime_libs} = xyes
; then
866 gcc_gxx_include_dir
='${libsubdir}/include/c++'
868 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
869 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
873 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
874 if test "${with_cpp_install_dir+set}" = set; then
875 withval
="$with_cpp_install_dir"
876 if test x
$withval = xyes
; then
877 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
878 elif test x
$withval != xno
; then
879 cpp_install_dir
=$withval
884 # -------------------
885 # Find default linker
886 # -------------------
889 # Check whether --with-gnu-ld or --without-gnu-ld was given.
890 if test "${with_gnu_ld+set}" = set; then
891 withval
="$with_gnu_ld"
892 gnu_ld_flag
="$with_gnu_ld"
898 # With pre-defined ld
899 # Check whether --with-ld or --without-ld was given.
900 if test "${with_ld+set}" = set; then
902 DEFAULT_LINKER
="$with_ld"
905 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
906 if test ! -x "$DEFAULT_LINKER"; then
907 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
908 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
911 cat >> confdefs.h
<<EOF
912 #define DEFAULT_LINKER "$DEFAULT_LINKER"
917 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
918 echo "configure:919: checking whether a default linker was specified" >&5
919 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
920 if test x
"$gnu_ld_flag" = x
"no"; then
921 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
923 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
926 echo "$ac_t""no" 1>&6
929 # ----------------------
930 # Find default assembler
931 # ----------------------
934 # Check whether --with-gnu-as or --without-gnu-as was given.
935 if test "${with_gnu_as+set}" = set; then
936 withval
="$with_gnu_as"
937 gas_flag
="$with_gnu_as"
943 # Check whether --with-as or --without-as was given.
944 if test "${with_as+set}" = set; then
946 DEFAULT_ASSEMBLER
="$with_as"
949 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
950 if test ! -x "$DEFAULT_ASSEMBLER"; then
951 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
952 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
955 cat >> confdefs.h
<<EOF
956 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
961 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
962 echo "configure:963: checking whether a default assembler was specified" >&5
963 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
964 if test x
"$gas_flag" = x
"no"; then
965 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
967 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
970 echo "$ac_t""no" 1>&6
977 # Find the native compiler
978 # Extract the first word of "gcc", so it can be a program name with args.
979 set dummy gcc
; ac_word
=$2
980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981 echo "configure:982: checking for $ac_word" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 if test -n "$CC"; then
986 ac_cv_prog_CC
="$CC" # Let the user override the test.
988 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
990 for ac_dir
in $ac_dummy; do
991 test -z "$ac_dir" && ac_dir
=.
992 if test -f $ac_dir/$ac_word; then
1001 if test -n "$CC"; then
1002 echo "$ac_t""$CC" 1>&6
1004 echo "$ac_t""no" 1>&6
1007 if test -z "$CC"; then
1008 # Extract the first word of "cc", so it can be a program name with args.
1009 set dummy cc
; ac_word
=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 if test -n "$CC"; then
1016 ac_cv_prog_CC
="$CC" # Let the user override the test.
1018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1021 for ac_dir
in $ac_dummy; do
1022 test -z "$ac_dir" && ac_dir
=.
1023 if test -f $ac_dir/$ac_word; then
1024 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1025 ac_prog_rejected
=yes
1033 if test $ac_prog_rejected = yes; then
1034 # We found a bogon in the path, so make sure we never use it.
1035 set dummy
$ac_cv_prog_CC
1037 if test $# -gt 0; then
1038 # We chose a different compiler from the bogus one.
1039 # However, it has the same basename, so the bogon will be chosen
1040 # first if we set CC to just the basename; use the full file name.
1042 set dummy
"$ac_dir/$ac_word" "$@"
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1053 echo "$ac_t""no" 1>&6
1056 if test -z "$CC"; then
1057 case "`uname -s`" in
1059 # Extract the first word of "cl", so it can be a program name with args.
1060 set dummy cl
; ac_word
=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 echo "configure:1063: checking for $ac_word" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 if test -n "$CC"; then
1067 ac_cv_prog_CC
="$CC" # Let the user override the test.
1069 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1071 for ac_dir
in $ac_dummy; do
1072 test -z "$ac_dir" && ac_dir
=.
1073 if test -f $ac_dir/$ac_word; then
1082 if test -n "$CC"; then
1083 echo "$ac_t""$CC" 1>&6
1085 echo "$ac_t""no" 1>&6
1090 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1093 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1094 echo "configure:1095: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1098 ac_cpp
='$CPP $CPPFLAGS'
1099 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1100 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1101 cross_compiling
=$ac_cv_prog_cc_cross
1103 cat > conftest.
$ac_ext << EOF
1105 #line 1106 "configure"
1106 #include "confdefs.h"
1110 if { (eval echo configure
:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1111 ac_cv_prog_cc_works
=yes
1112 # If we can't run a trivial program, we are probably using a cross compiler.
1113 if (.
/conftest
; exit) 2>/dev
/null
; then
1114 ac_cv_prog_cc_cross
=no
1116 ac_cv_prog_cc_cross
=yes
1119 echo "configure: failed program was:" >&5
1120 cat conftest.
$ac_ext >&5
1121 ac_cv_prog_cc_works
=no
1125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1126 ac_cpp
='$CPP $CPPFLAGS'
1127 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1128 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1129 cross_compiling
=$ac_cv_prog_cc_cross
1131 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1132 if test $ac_cv_prog_cc_works = no
; then
1133 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1135 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1137 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1138 cross_compiling
=$ac_cv_prog_cc_cross
1140 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether we are using GNU C" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 cat > conftest.c
<<EOF
1150 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1157 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1159 if test $ac_cv_prog_gcc = yes; then
1165 ac_test_CFLAGS
="${CFLAGS+set}"
1166 ac_save_CFLAGS
="$CFLAGS"
1168 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1183 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1184 if test "$ac_test_CFLAGS" = set; then
1185 CFLAGS
="$ac_save_CFLAGS"
1186 elif test $ac_cv_prog_cc_g = yes; then
1187 if test "$GCC" = yes; then
1193 if test "$GCC" = yes; then
1200 if test "x$CC" != xcc
; then
1201 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether $CC and cc understand -c and -o together" >&5
1204 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether cc understands -c and -o together" >&5
1207 set dummy
$CC; ac_cc
="`echo $2 |
1208 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1209 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 echo 'foo(){}' > conftest.c
1213 # Make sure it works both with $CC and with simple cc.
1214 # We do the test twice because some compilers refuse to overwrite an
1215 # existing .o file with -o, though they will create one.
1216 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1217 if { (eval echo configure
:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1218 test -f conftest.o
&& { (eval echo configure
:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1220 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1221 if test "x$CC" != xcc
; then
1222 # Test first that cc exists at all.
1223 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1224 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1225 if { (eval echo configure
:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1226 test -f conftest.o
&& { (eval echo configure
:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1231 # cc exists but doesn't like -o.
1232 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1237 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1242 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1243 echo "$ac_t""yes" 1>&6
1245 echo "$ac_t""no" 1>&6
1246 cat >> confdefs.h
<<\EOF
1247 #define NO_MINUS_C_MINUS_O 1
1252 # autoconf is lame and doesn't give us any substitution variable for this.
1253 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1254 NO_MINUS_C_MINUS_O
=yes
1256 OUTPUT_OPTION
='-o $@'
1261 # -------------------------
1262 # Check C compiler features
1263 # -------------------------
1265 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1266 echo "configure:1267: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 save_CFLAGS
="$CFLAGS"
1271 CFLAGS
="-Wno-long-long"
1272 cat > conftest.
$ac_ext <<EOF
1273 #line 1274 "configure"
1274 #include "confdefs.h"
1280 if { (eval echo configure
:1281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1282 ac_cv_prog_cc_no_long_long
=yes
1284 echo "configure: failed program was:" >&5
1285 cat conftest.
$ac_ext >&5
1287 ac_cv_prog_cc_no_long_long
=no
1290 CFLAGS
="$save_CFLAGS"
1293 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1295 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1296 echo "configure:1297: checking how to run the C preprocessor" >&5
1297 # On Suns, sometimes $CPP names a directory.
1298 if test -n "$CPP" && test -d "$CPP"; then
1301 if test -z "$CPP"; then
1302 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 # This must be in double quotes, not single quotes, because CPP may get
1306 # substituted into the Makefile and "${CC-cc}" will confuse make.
1308 # On the NeXT, cc -E runs the code through the compiler's parser,
1309 # not just through cpp.
1310 cat > conftest.
$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1316 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1317 { (eval echo configure
:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1318 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1319 if test -z "$ac_err"; then
1323 echo "configure: failed program was:" >&5
1324 cat conftest.
$ac_ext >&5
1326 CPP
="${CC-cc} -E -traditional-cpp"
1327 cat > conftest.
$ac_ext <<EOF
1328 #line 1329 "configure"
1329 #include "confdefs.h"
1333 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1334 { (eval echo configure
:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1335 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1336 if test -z "$ac_err"; then
1340 echo "configure: failed program was:" >&5
1341 cat conftest.
$ac_ext >&5
1343 CPP
="${CC-cc} -nologo -E"
1344 cat > conftest.
$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1350 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1351 { (eval echo configure
:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1352 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1353 if test -z "$ac_err"; then
1357 echo "configure: failed program was:" >&5
1358 cat conftest.
$ac_ext >&5
1367 ac_cv_prog_CPP
="$CPP"
1369 CPP
="$ac_cv_prog_CPP"
1371 ac_cv_prog_CPP
="$CPP"
1373 echo "$ac_t""$CPP" 1>&6
1375 echo $ac_n "checking for inline""... $ac_c" 1>&6
1376 echo "configure:1377: checking for inline" >&5
1377 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1381 for ac_kw
in inline __inline__ __inline
; do
1382 cat > conftest.
$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1390 if { (eval echo configure
:1391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1392 ac_cv_c_inline
=$ac_kw; break
1394 echo "configure: failed program was:" >&5
1395 cat conftest.
$ac_ext >&5
1402 echo "$ac_t""$ac_cv_c_inline" 1>&6
1403 case "$ac_cv_c_inline" in
1405 no
) cat >> confdefs.h
<<\EOF
1409 *) cat >> confdefs.h
<<EOF
1410 #define inline $ac_cv_c_inline
1415 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1416 echo "configure:1417: checking for volatile" >&5
1417 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 cat > conftest.
$ac_ext <<EOF
1421 #line 1422 "configure"
1422 #include "confdefs.h"
1428 if { (eval echo configure
:1429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1430 gcc_cv_c_volatile
=yes
1432 echo "configure: failed program was:" >&5
1433 cat conftest.
$ac_ext >&5
1435 gcc_cv_c_volatile
=no
1440 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1441 if test $gcc_cv_c_volatile = yes ; then
1442 cat >> confdefs.h
<<\EOF
1443 #define HAVE_VOLATILE 1
1449 echo $ac_n "checking for long double""... $ac_c" 1>&6
1450 echo "configure:1451: checking for long double" >&5
1451 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 if test "$GCC" = yes; then
1455 gcc_cv_c_long_double
=yes
1457 cat > conftest.
$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1462 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1463 long double foo = 0.0;
1464 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1465 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1468 if { (eval echo configure
:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1470 gcc_cv_c_long_double
=yes
1472 echo "configure: failed program was:" >&5
1473 cat conftest.
$ac_ext >&5
1475 gcc_cv_c_long_double
=no
1481 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1482 if test $gcc_cv_c_long_double = yes; then
1483 cat >> confdefs.h
<<\EOF
1484 #define HAVE_LONG_DOUBLE 1
1489 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1490 echo "configure:1491: checking for long long int" >&5
1491 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 cat > conftest.
$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1502 if { (eval echo configure
:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1504 ac_cv_c_long_long
=yes
1506 echo "configure: failed program was:" >&5
1507 cat conftest.
$ac_ext >&5
1509 ac_cv_c_long_long
=no
1514 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1515 if test $ac_cv_c_long_long = yes; then
1516 cat >> confdefs.h
<<\EOF
1517 #define HAVE_LONG_LONG 1
1521 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1522 echo "configure:1523: checking for __int64" >&5
1523 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 cat > conftest.
$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1534 if { (eval echo configure
:1535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1546 echo "$ac_t""$ac_cv_c___int64" 1>&6
1547 if test $ac_cv_c___int64 = yes; then
1548 cat >> confdefs.h
<<\EOF
1549 #define HAVE___INT64 1
1554 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1555 echo "configure:1556: checking for built-in _Bool" >&5
1556 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.
$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1567 if { (eval echo configure
:1568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1571 echo "configure: failed program was:" >&5
1572 cat conftest.
$ac_ext >&5
1580 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1581 if test $gcc_cv_c__bool = yes; then
1582 cat >> confdefs.h
<<\EOF
1583 #define HAVE__BOOL 1
1589 # sizeof(char) is 1 by definition.
1590 echo $ac_n "checking size of short""... $ac_c" 1>&6
1591 echo "configure:1592: checking size of short" >&5
1592 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1596 cat > conftest.
$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 #include "confdefs.h"
1600 #include <sys/types.h>
1604 switch (0) case 0: case (sizeof (short) == $ac_size):;
1607 if { (eval echo configure
:1608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1609 ac_cv_sizeof_short
=$ac_size
1611 echo "configure: failed program was:" >&5
1612 cat conftest.
$ac_ext >&5
1615 if test x
$ac_cv_sizeof_short != x
; then break; fi
1620 if test x
$ac_cv_sizeof_short = x
; then
1621 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1623 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1624 cat >> confdefs.h
<<EOF
1625 #define SIZEOF_SHORT $ac_cv_sizeof_short
1629 echo $ac_n "checking size of int""... $ac_c" 1>&6
1630 echo "configure:1631: checking size of int" >&5
1631 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1638 #include "confdefs.h"
1639 #include <sys/types.h>
1643 switch (0) case 0: case (sizeof (int) == $ac_size):;
1646 if { (eval echo configure
:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648 ac_cv_sizeof_int
=$ac_size
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1654 if test x
$ac_cv_sizeof_int != x
; then break; fi
1659 if test x
$ac_cv_sizeof_int = x
; then
1660 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1662 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1663 cat >> confdefs.h
<<EOF
1664 #define SIZEOF_INT $ac_cv_sizeof_int
1668 echo $ac_n "checking size of long""... $ac_c" 1>&6
1669 echo "configure:1670: checking size of long" >&5
1670 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1674 cat > conftest.
$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 #include "confdefs.h"
1678 #include <sys/types.h>
1682 switch (0) case 0: case (sizeof (long) == $ac_size):;
1685 if { (eval echo configure
:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1687 ac_cv_sizeof_long
=$ac_size
1689 echo "configure: failed program was:" >&5
1690 cat conftest.
$ac_ext >&5
1693 if test x
$ac_cv_sizeof_long != x
; then break; fi
1698 if test x
$ac_cv_sizeof_long = x
; then
1699 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1701 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1702 cat >> confdefs.h
<<EOF
1703 #define SIZEOF_LONG $ac_cv_sizeof_long
1707 if test $ac_cv_c_long_long = yes; then
1708 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1709 echo "configure:1710: checking size of long long" >&5
1710 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 #include "confdefs.h"
1718 #include <sys/types.h>
1722 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1725 if { (eval echo configure
:1726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1727 ac_cv_sizeof_long_long
=$ac_size
1729 echo "configure: failed program was:" >&5
1730 cat conftest.
$ac_ext >&5
1733 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
1738 if test x
$ac_cv_sizeof_long_long = x
; then
1739 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1741 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1742 cat >> confdefs.h
<<EOF
1743 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1748 if test $ac_cv_c___int64 = yes; then
1749 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1750 echo "configure:1751: checking size of __int64" >&5
1751 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
1755 cat > conftest.
$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 #include "confdefs.h"
1759 #include <sys/types.h>
1763 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
1766 if { (eval echo configure
:1767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1768 ac_cv_sizeof___int64
=$ac_size
1770 echo "configure: failed program was:" >&5
1771 cat conftest.
$ac_ext >&5
1774 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
1779 if test x
$ac_cv_sizeof___int64 = x
; then
1780 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1782 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1783 cat >> confdefs.h
<<EOF
1784 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1790 echo $ac_n "checking execution character set""... $ac_c" 1>&6
1791 echo "configure:1792: checking execution character set" >&5
1792 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 cat > conftest.
$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
1799 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
1803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1804 egrep "ASCII" >/dev
/null
2>&1; then
1806 ac_cv_c_charset
=ASCII
1810 if test x
${ac_cv_c_charset+set} != xset
; then
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
1815 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
1819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1820 egrep "EBCDIC" >/dev
/null
2>&1; then
1822 ac_cv_c_charset
=EBCDIC
1827 if test x
${ac_cv_c_charset+set} != xset
; then
1828 ac_cv_c_charset
=unknown
1832 echo "$ac_t""$ac_cv_c_charset" 1>&6
1833 if test $ac_cv_c_charset = unknown
; then
1834 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
1835 elif test $ac_cv_c_charset = EBCDIC
; then
1836 cat >> confdefs.h
<<\EOF
1837 #define HOST_EBCDIC 1
1846 # See if GNAT has been installed
1847 if test $host != $build; then
1848 ac_tool_prefix
=${host_alias}-
1854 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1855 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1857 echo "configure:1858: checking for $ac_word" >&5
1858 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 if test -n "$GNATBIND"; then
1862 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1866 for ac_dir
in $ac_dummy; do
1867 test -z "$ac_dir" && ac_dir
=.
1868 if test -f $ac_dir/$ac_word; then
1869 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1876 GNATBIND
="$ac_cv_prog_GNATBIND"
1877 if test -n "$GNATBIND"; then
1878 echo "$ac_t""$GNATBIND" 1>&6
1880 echo "$ac_t""no" 1>&6
1884 if test -z "$ac_cv_prog_GNATBIND"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "gnatbind", so it can be a program name with args.
1887 set dummy gnatbind
; ac_word
=$2
1888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1889 echo "configure:1890: checking for $ac_word" >&5
1890 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1891 echo $ac_n "(cached) $ac_c" 1>&6
1893 if test -n "$GNATBIND"; then
1894 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1898 for ac_dir
in $ac_dummy; do
1899 test -z "$ac_dir" && ac_dir
=.
1900 if test -f $ac_dir/$ac_word; then
1901 ac_cv_prog_GNATBIND
="gnatbind"
1906 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1909 GNATBIND
="$ac_cv_prog_GNATBIND"
1910 if test -n "$GNATBIND"; then
1911 echo "$ac_t""$GNATBIND" 1>&6
1913 echo "$ac_t""no" 1>&6
1921 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1922 echo "configure:1923: checking for compiler driver that understands Ada" >&5
1923 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 cat >conftest.adb
<<EOF
1927 procedure conftest is begin null; end conftest;
1930 # Have to do ac_tool_prefix and user overrides by hand.
1931 for cand
in ${ADAC+"$ADAC"} ${CC+"$CC"} \
1932 ${ac_tool_prefix}gcc gcc \
1933 ${ac_tool_prefix}cc cc \
1934 ${ac_tool_prefix}gnatgcc gnatgcc \
1935 ${ac_tool_prefix}gnatcc gnatcc \
1936 ${ac_tool_prefix}adagcc adagcc \
1937 ${ac_tool_prefix}adacc adacc
; do
1938 # There is a bug in all released versions of GCC which causes the
1939 # driver to exit successfully when the appropriate language module
1940 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1941 # Therefore we must check for the error message as well as an
1942 # unsuccessful exit.
1943 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1944 if test x
"$errors" = x
; then
1945 gcc_cv_prog_adac
=$cand
1952 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1953 ADAC
=$gcc_cv_prog_adac
1956 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1963 if test x
$have_gnat != xno
; then
1964 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1965 echo "configure:1966: checking whether ${ADAC} accepts -Wno-long-long" >&5
1966 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 cat >conftest.adb
<<EOF
1970 procedure conftest is begin null; end conftest;
1972 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1973 ac_cv_prog_adac_no_long_long
=yes
1975 ac_cv_prog_adac_no_long_long
=no
1980 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1982 ac_cv_prog_adac_no_long_long
=yes
1985 # ---------------------
1986 # Warnings and checking
1987 # ---------------------
1990 if test $ac_cv_prog_cc_no_long_long = yes && \
1991 test $ac_cv_prog_adac_no_long_long = yes ; then
1992 strict1_warn
="-pedantic -Wno-long-long"
1996 # If the native compiler is GCC, we can enable warnings even in stage1.
1997 # That's useful for people building cross-compilers, or just running a
2000 if test "x$GCC" = "xyes"; then
2001 warn_cflags
='$(GCC_WARN_CFLAGS)'
2005 # Enable -Werror in bootstrap stage2 and later.
2006 # Change the default to "no" on release branches.
2007 # Check whether --enable-werror or --disable-werror was given.
2008 if test "${enable_werror+set}" = set; then
2009 enableval
="$enable_werror"
2015 if test x
$enable_werror = xyes
; then
2020 # Enable expensive internal checks
2021 # Check whether --enable-checking or --disable-checking was given.
2022 if test "${enable_checking+set}" = set; then
2023 enableval
="$enable_checking"
2027 ac_rtlflag_checking
=
2029 ac_gc_always_collect
=
2030 case "${enableval}" in
2031 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
2032 ac_rtlflag_checking
=1 ;;
2034 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2035 set fnord
$enableval; shift
2040 misc
) ac_checking
=1 ;;
2041 tree
) ac_tree_checking
=1 ;;
2042 rtlflag
) ac_rtlflag_checking
=1 ;;
2043 rtl
) ac_rtl_checking
=1 ;;
2044 gc
) ac_gc_checking
=1 ;;
2045 gcac
) ac_gc_always_collect
=1 ;;
2046 valgrind
) ac_checking_valgrind
=1 ;;
2047 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
2054 # Enable some checks by default for development versions of GCC
2055 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
2059 if test x
$ac_checking != x
; then
2060 cat >> confdefs.h
<<\EOF
2061 #define ENABLE_CHECKING 1
2064 nocommon_flag
=-fno-common
2067 if test x
$ac_tree_checking != x
; then
2068 cat >> confdefs.h
<<\EOF
2069 #define ENABLE_TREE_CHECKING 1
2073 if test x
$ac_rtl_checking != x
; then
2074 cat >> confdefs.h
<<\EOF
2075 #define ENABLE_RTL_CHECKING 1
2079 if test x
$ac_rtlflag_checking != x
; then
2080 cat >> confdefs.h
<<\EOF
2081 #define ENABLE_RTL_FLAG_CHECKING 1
2085 if test x
$ac_gc_checking != x
; then
2086 cat >> confdefs.h
<<\EOF
2087 #define ENABLE_GC_CHECKING 1
2091 if test x
$ac_gc_always_collect != x
; then
2092 cat >> confdefs.h
<<\EOF
2093 #define ENABLE_GC_ALWAYS_COLLECT 1
2097 valgrind_path_defines
=
2099 if test x
$ac_checking_valgrind != x
; then
2100 # It is certainly possible that there's valgrind but no valgrind.h.
2101 # GCC relies on making annotations so we must have both.
2102 echo $ac_n "checking for VALGRIND_DISCARD in <memcheck.h>""... $ac_c" 1>&6
2103 echo "configure:2104: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
2104 cat > conftest.
$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107 #include <memcheck.h>
2108 #ifndef VALGRIND_DISCARD
2109 #error VALGRIND_DISCARD not defined
2112 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2113 { (eval echo configure
:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2114 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2115 if test -z "$ac_err"; then
2117 gcc_cv_header_memcheck_h
=yes
2120 echo "configure: failed program was:" >&5
2121 cat conftest.
$ac_ext >&5
2123 gcc_cv_header_memcheck_h
=no
2126 echo "$ac_t""$gcc_cv_header_memcheck_h" 1>&6
2127 ac_safe
=`echo "valgrind.h" | sed 'y%./+-%__p_%'`
2128 echo $ac_n "checking for valgrind.h""... $ac_c" 1>&6
2129 echo "configure:2130: checking for valgrind.h" >&5
2130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.
$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 #include <valgrind.h>
2138 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2139 { (eval echo configure
:2140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2140 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2141 if test -z "$ac_err"; then
2143 eval "ac_cv_header_$ac_safe=yes"
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 eval "ac_cv_header_$ac_safe=no"
2153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2157 echo "$ac_t""no" 1>&6
2161 # Extract the first word of "valgrind", so it can be a program name with args.
2162 set dummy valgrind
; ac_word
=$2
2163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2164 echo "configure:2165: checking for $ac_word" >&5
2165 if eval "test \"`echo '$''{'ac_cv_path_valgrind_path'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 case "$valgrind_path" in
2170 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
2173 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2174 for ac_dir
in $PATH; do
2175 test -z "$ac_dir" && ac_dir
=.
2176 if test -f $ac_dir/$ac_word; then
2177 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
2178 ac_cv_path_valgrind_path
="$ac_dir/$ac_word"
2187 valgrind_path
="$ac_cv_path_valgrind_path"
2188 if test -n "$valgrind_path"; then
2189 echo "$ac_t""$valgrind_path" 1>&6
2191 echo "$ac_t""no" 1>&6
2194 if test "x$valgrind_path" = "x" ||
(test $have_valgrind_h = no
&& test $gcc_cv_header_memcheck_h = no
); then
2195 { echo "configure: error: *** Can't find both valgrind and valgrind.h/memcheck.h" 1>&2; exit 1; }
2197 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
2198 valgrind_command
="$valgrind_path -q"
2199 cat >> confdefs.h
<<\EOF
2200 #define ENABLE_VALGRIND_CHECKING 1
2203 if test $gcc_cv_header_memcheck_h = yes; then
2204 cat >> confdefs.h
<<\EOF
2205 #define HAVE_MEMCHECK_H 1
2213 # Enable code coverage collection
2214 # Check whether --enable-coverage or --disable-coverage was given.
2215 if test "${enable_coverage+set}" = set; then
2216 enableval
="$enable_coverage"
2217 case "${enableval}" in
2219 coverage_flags
="-fprofile-arcs -ftest-coverage -O0 -DSELF_COVERAGE=1"
2222 coverage_flags
="-fprofile-arcs -ftest-coverage -O2 -DSELF_COVERAGE=2"
2225 { echo "configure: error: unknown coverage setting $enableval" 1>&2; exit 1; }
2234 # -------------------------------
2235 # Miscenalleous configure options
2236 # -------------------------------
2239 # Check whether --with-stabs or --without-stabs was given.
2240 if test "${with_stabs+set}" = set; then
2241 withval
="$with_stabs"
2249 # Check whether --with-elf or --without-elf was given.
2250 if test "${with_elf+set}" = set; then
2258 # Determine whether or not multilibs are enabled.
2259 # Check whether --enable-multilib or --disable-multilib was given.
2260 if test "${enable_multilib+set}" = set; then
2261 enableval
="$enable_multilib"
2269 # Enable __cxa_atexit for C++.
2270 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
2271 if test "${enable___cxa_atexit+set}" = set; then
2272 enableval
="$enable___cxa_atexit"
2277 # Enable Multibyte Characters for C/C++
2278 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
2279 if test "${enable_c_mbchar+set}" = set; then
2280 enableval
="$enable_c_mbchar"
2281 if test x
$enable_c_mbchar != xno
; then
2282 cat >> confdefs.h
<<\EOF
2283 #define MULTIBYTE_CHARS 1
2291 # Pass with no value to take the default
2292 # Pass with a value to specify a thread package
2293 # Check whether --enable-threads or --disable-threads was given.
2294 if test "${enable_threads+set}" = set; then
2295 enableval
="$enable_threads"
2302 enable_threads_flag
=$enable_threads
2303 # Check if a valid thread package
2304 case x
${enable_threads_flag} in
2307 target_thread_file
='single'
2311 target_thread_file
=''
2313 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
2314 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix | xgnat
)
2315 target_thread_file
=$enable_threads_flag
2318 echo "$enable_threads is an unknown thread package" 1>&2
2323 # Check whether --enable-objc-gc or --disable-objc-gc was given.
2324 if test "${enable_objc_gc+set}" = set; then
2325 enableval
="$enable_objc_gc"
2326 if test x
$enable_objc_gc = xno
; then
2336 # Check whether --with-dwarf2 or --without-dwarf2 was given.
2337 if test "${with_dwarf2+set}" = set; then
2338 withval
="$with_dwarf2"
2339 dwarf2
="$with_dwarf2"
2345 # Check whether --enable-shared or --disable-shared was given.
2346 if test "${enable_shared+set}" = set; then
2347 enableval
="$enable_shared"
2349 case $enable_shared in
2353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2354 for pkg
in $enableval; do
2355 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
2369 # Check whether --with-sysroot or --without-sysroot was given.
2370 if test "${with_sysroot+set}" = set; then
2371 withval
="$with_sysroot"
2373 case ${with_sysroot} in
2374 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
2375 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
2378 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
2379 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
2381 if test "x$exec_prefix" = xNONE
; then
2382 if test "x$prefix" = xNONE
; then
2383 test_prefix
=/usr
/local
2388 test_prefix
=$exec_prefix
2390 case ${TARGET_SYSTEM_ROOT} in
2391 "${test_prefix}"|
"${test_prefix}/"*|\
2392 '${exec_prefix}'|
'${exec_prefix}/'*)
2393 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
2394 TARGET_SYSTEM_ROOT_DEFINE
="$t"
2401 TARGET_SYSTEM_ROOT_DEFINE
=
2402 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
2410 # -------------------------
2411 # Checks for other programs
2412 # -------------------------
2414 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2415 echo "configure:2416: checking whether ${MAKE-make} sets \${MAKE}" >&5
2416 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2417 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2418 echo $ac_n "(cached) $ac_c" 1>&6
2420 cat > conftestmake
<<\EOF
2422 @
echo 'ac_maketemp="${MAKE}"'
2424 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2425 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2426 if test -n "$ac_maketemp"; then
2427 eval ac_cv_prog_make_
${ac_make}_set
=yes
2429 eval ac_cv_prog_make_
${ac_make}_set
=no
2433 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2437 echo "$ac_t""no" 1>&6
2438 SET_MAKE
="MAKE=${MAKE-make}"
2442 # Find some useful tools
2443 for ac_prog
in mawk gawk nawk
awk
2445 # Extract the first word of "$ac_prog", so it can be a program name with args.
2446 set dummy
$ac_prog; ac_word
=$2
2447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2448 echo "configure:2449: checking for $ac_word" >&5
2449 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 if test -n "$AWK"; then
2453 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2455 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2457 for ac_dir
in $ac_dummy; do
2458 test -z "$ac_dir" && ac_dir
=.
2459 if test -f $ac_dir/$ac_word; then
2460 ac_cv_prog_AWK
="$ac_prog"
2467 AWK
="$ac_cv_prog_AWK"
2468 if test -n "$AWK"; then
2469 echo "$ac_t""$AWK" 1>&6
2471 echo "$ac_t""no" 1>&6
2474 test -n "$AWK" && break
2477 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2478 echo "configure:2479: checking whether ln works" >&5
2479 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 rm -f conftestdata_t
2483 echo >conftestdata_f
2484 if ln conftestdata_f conftestdata_t
2>/dev
/null
2488 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2490 gcc_cv_prog_LN
="ln -s"
2495 rm -f conftestdata_f conftestdata_t
2498 LN
="$gcc_cv_prog_LN"
2499 if test "$gcc_cv_prog_LN" = "ln"; then
2500 echo "$ac_t""yes" 1>&6
2502 if test "$gcc_cv_prog_LN" = "ln -s"; then
2503 echo "$ac_t""no, using ln -s" 1>&6
2505 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2509 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2510 echo "configure:2511: checking whether ln -s works" >&5
2511 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 rm -f conftestdata_t
2515 echo >conftestdata_f
2516 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2518 gcc_cv_prog_LN_S
="ln -s"
2520 if ln conftestdata_f conftestdata_t
2>/dev
/null
2527 rm -f conftestdata_f conftestdata_t
2530 LN_S
="$gcc_cv_prog_LN_S"
2531 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2532 echo "$ac_t""yes" 1>&6
2534 if test "$gcc_cv_prog_LN_S" = "ln"; then
2535 echo "$ac_t""no, using ln" 1>&6
2537 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2541 # Extract the first word of "ranlib", so it can be a program name with args.
2542 set dummy ranlib
; ac_word
=$2
2543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_word" >&5
2545 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 if test -n "$RANLIB"; then
2549 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2551 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2553 for ac_dir
in $ac_dummy; do
2554 test -z "$ac_dir" && ac_dir
=.
2555 if test -f $ac_dir/$ac_word; then
2556 ac_cv_prog_RANLIB
="ranlib"
2561 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2564 RANLIB
="$ac_cv_prog_RANLIB"
2565 if test -n "$RANLIB"; then
2566 echo "$ac_t""$RANLIB" 1>&6
2568 echo "$ac_t""no" 1>&6
2571 # Find a good install program. We prefer a C program (faster),
2572 # so one script is as good as another. But avoid the broken or
2573 # incompatible versions:
2574 # SysV /etc/install, /usr/sbin/install
2575 # SunOS /usr/etc/install
2576 # IRIX /sbin/install
2578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2580 # ./install, which can be erroneously created by make from ./install.sh.
2581 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2582 echo "configure:2583: checking for a BSD compatible install" >&5
2583 if test -z "$INSTALL"; then
2584 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2588 for ac_dir
in $PATH; do
2589 # Account for people who put trailing slashes in PATH elements.
2591 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2593 # OSF1 and SCO ODT 3.0 have their own names for install.
2594 for ac_prog
in ginstall scoinst
install; do
2595 if test -f $ac_dir/$ac_prog; then
2596 if test $ac_prog = install &&
2597 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2598 # AIX install. It has an incompatible calling convention.
2599 # OSF/1 installbsd also uses dspmsg, but is usable.
2602 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2613 if test "${ac_cv_path_install+set}" = set; then
2614 INSTALL
="$ac_cv_path_install"
2616 # As a last resort, use the slow shell script. We don't cache a
2617 # path for INSTALL within a source directory, because that will
2618 # break other packages using the cache if that directory is
2619 # removed, or if the path is relative.
2620 INSTALL
="$ac_install_sh"
2623 echo "$ac_t""$INSTALL" 1>&6
2625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2626 # It thinks the first close brace ends the variable substitution.
2627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2629 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2632 # See if we have the mktemp command.
2633 # Extract the first word of "mktemp", so it can be a program name with args.
2634 set dummy mktemp
; ac_word
=$2
2635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2636 echo "configure:2637: checking for $ac_word" >&5
2637 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 if test -n "$have_mktemp_command"; then
2641 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
2643 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2645 for ac_dir
in $ac_dummy; do
2646 test -z "$ac_dir" && ac_dir
=.
2647 if test -f $ac_dir/$ac_word; then
2648 ac_cv_prog_have_mktemp_command
="yes"
2653 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
2656 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
2657 if test -n "$have_mktemp_command"; then
2658 echo "$ac_t""$have_mktemp_command" 1>&6
2660 echo "$ac_t""no" 1>&6
2664 # Do we have a single-tree copy of texinfo?
2665 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2666 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2667 gcc_cv_prog_makeinfo_modern
=yes
2668 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2670 # See if makeinfo has been installed and is modern enough
2671 # that we can use it.
2672 # Extract the first word of "makeinfo", so it can be a program name with args.
2673 set dummy makeinfo
; ac_word
=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 if test -n "$MAKEINFO"; then
2680 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2684 for ac_dir
in $ac_dummy; do
2685 test -z "$ac_dir" && ac_dir
=.
2686 if test -f $ac_dir/$ac_word; then
2687 ac_cv_prog_MAKEINFO
="makeinfo"
2694 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2695 if test -n "$MAKEINFO"; then
2696 echo "$ac_t""$MAKEINFO" 1>&6
2698 echo "$ac_t""no" 1>&6
2701 if test -n "$MAKEINFO"; then
2702 # Found it, now check the version.
2703 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2704 echo "configure:2705: checking for modern makeinfo" >&5
2705 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2709 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2710 echo "configure:2711: version of makeinfo is $ac_prog_version" >&5
2711 case $ac_prog_version in
2712 '') gcc_cv_prog_makeinfo_modern
=no
;;
2714 gcc_cv_prog_makeinfo_modern
=yes;;
2715 *) gcc_cv_prog_makeinfo_modern
=no
;;
2720 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2722 gcc_cv_prog_makeinfo_modern
=no
2727 if test $gcc_cv_prog_makeinfo_modern = no
; then
2728 echo "configure: warning:
2729 *** Makeinfo is missing or too old.
2730 *** Info documentation will not be built." 1>&2
2736 # Is pod2man recent enough to regenerate manpages?
2737 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
2738 echo "configure:2739: checking for recent Pod::Man" >&5
2739 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
2740 echo "$ac_t""yes" 1>&6
2741 GENERATED_MANPAGES
=generated-manpages
2743 echo "$ac_t""no" 1>&6
2747 # 'make compare' can be significantly faster, if cmp itself can
2748 # skip bytes instead of using tail. The test being performed is
2749 # "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
2750 # but we need to sink errors and handle broken shells.
2751 echo $ac_n "checking for cmp's capabilities""... $ac_c" 1>&6
2752 echo "configure:2753: checking for cmp's capabilities" >&5
2755 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2756 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2757 make_compare_target
=slowcompare
2759 make_compare_target
=gnucompare
2762 make_compare_target
=slowcompare
2766 echo "$ac_t""$make_compare_target" 1>&6
2769 if test -f $srcdir/..
/flex
/skel.c
; then
2770 FLEX
='$(objdir)/../flex/flex'
2772 # Extract the first word of "flex", so it can be a program name with args.
2773 set dummy flex
; ac_word
=$2
2774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_word" >&5
2776 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 if test -n "$FLEX"; then
2780 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
2782 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2784 for ac_dir
in $ac_dummy; do
2785 test -z "$ac_dir" && ac_dir
=.
2786 if test -f $ac_dir/$ac_word; then
2787 ac_cv_prog_FLEX
="flex"
2792 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
2795 FLEX
="$ac_cv_prog_FLEX"
2796 if test -n "$FLEX"; then
2797 echo "$ac_t""$FLEX" 1>&6
2799 echo "$ac_t""no" 1>&6
2805 # The -L switch is so bison can find its skeleton file.
2806 if test -f $srcdir/..
/bison
/bison.simple
; then
2807 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2809 # Extract the first word of "bison", so it can be a program name with args.
2810 set dummy bison
; ac_word
=$2
2811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2812 echo "configure:2813: checking for $ac_word" >&5
2813 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 if test -n "$BISON"; then
2817 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
2819 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2821 for ac_dir
in $ac_dummy; do
2822 test -z "$ac_dir" && ac_dir
=.
2823 if test -f $ac_dir/$ac_word; then
2824 ac_cv_prog_BISON
="bison"
2829 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
2832 BISON
="$ac_cv_prog_BISON"
2833 if test -n "$BISON"; then
2834 echo "$ac_t""$BISON" 1>&6
2836 echo "$ac_t""no" 1>&6
2841 # --------------------
2842 # Checks for C headers
2843 # --------------------
2845 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2846 echo "configure:2847: checking for GNU C library" >&5
2847 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #include <features.h>
2856 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2857 #error Not a GNU C library system
2861 if { (eval echo configure
:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2873 echo "$ac_t""$gcc_cv_glibc" 1>&6
2874 if test $gcc_cv_glibc = yes; then
2875 cat >> confdefs.h
<<\EOF
2876 #define _GNU_SOURCE 1
2881 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2882 echo "configure:2883: checking for ANSI C header files" >&5
2883 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.
$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2894 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2895 { (eval echo configure
:2896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2896 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2897 if test -z "$ac_err"; then
2899 ac_cv_header_stdc
=yes
2902 echo "configure: failed program was:" >&5
2903 cat conftest.
$ac_ext >&5
2905 ac_cv_header_stdc
=no
2909 if test $ac_cv_header_stdc = yes; then
2910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2911 cat > conftest.
$ac_ext <<EOF
2912 #line 2913 "configure"
2913 #include "confdefs.h"
2916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917 egrep "memchr" >/dev
/null
2>&1; then
2921 ac_cv_header_stdc
=no
2927 if test $ac_cv_header_stdc = yes; then
2928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2929 cat > conftest.
$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2935 egrep "free" >/dev
/null
2>&1; then
2939 ac_cv_header_stdc
=no
2945 if test $ac_cv_header_stdc = yes; then
2946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2947 if test "$cross_compiling" = yes; then
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2954 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2955 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2957 int main () { int i; for (i = 0; i < 256; i++)
2958 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2962 if { (eval echo configure
:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2966 echo "configure: failed program was:" >&5
2967 cat conftest.
$ac_ext >&5
2969 ac_cv_header_stdc
=no
2977 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2978 if test $ac_cv_header_stdc = yes; then
2979 cat >> confdefs.h
<<\EOF
2980 #define STDC_HEADERS 1
2985 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2986 echo "configure:2987: checking whether time.h and sys/time.h may both be included" >&5
2987 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.
$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2994 #include <sys/time.h>
3000 if { (eval echo configure
:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002 ac_cv_header_time
=yes
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 ac_cv_header_time
=no
3012 echo "$ac_t""$ac_cv_header_time" 1>&6
3013 if test $ac_cv_header_time = yes; then
3014 cat >> confdefs.h
<<\EOF
3015 #define TIME_WITH_SYS_TIME 1
3020 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
3021 echo "configure:3022: checking for working stdbool.h" >&5
3022 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.
$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 #include <stdbool.h>
3033 if { (eval echo configure
:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 ac_cv_header_stdbool_h
=yes
3037 echo "configure: failed program was:" >&5
3038 cat conftest.
$ac_ext >&5
3040 ac_cv_header_stdbool_h
=no
3045 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
3046 if test $ac_cv_header_stdbool_h = yes; then
3047 cat >> confdefs.h
<<\EOF
3048 #define HAVE_STDBOOL_H 1
3053 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
3054 echo "configure:3055: checking whether string.h and strings.h may both be included" >&5
3055 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 cat > conftest.
$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3062 #include <strings.h>
3067 if { (eval echo configure
:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3069 gcc_cv_header_string
=yes
3071 echo "configure: failed program was:" >&5
3072 cat conftest.
$ac_ext >&5
3074 gcc_cv_header_string
=no
3079 echo "$ac_t""$gcc_cv_header_string" 1>&6
3080 if test $gcc_cv_header_string = yes; then
3081 cat >> confdefs.h
<<\EOF
3082 #define STRING_WITH_STRINGS 1
3087 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3088 echo "configure:3089: checking for sys/wait.h that is POSIX.1 compatible" >&5
3089 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.
$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 #include <sys/types.h>
3096 #include <sys/wait.h>
3098 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3101 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3106 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3109 if { (eval echo configure
:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3111 ac_cv_header_sys_wait_h
=yes
3113 echo "configure: failed program was:" >&5
3114 cat conftest.
$ac_ext >&5
3116 ac_cv_header_sys_wait_h
=no
3121 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3122 if test $ac_cv_header_sys_wait_h = yes; then
3123 cat >> confdefs.h
<<\EOF
3124 #define HAVE_SYS_WAIT_H 1
3129 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
3130 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
3131 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
3132 direct.h malloc.h langinfo.h ldfcn.h wchar.h
3134 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3136 echo "configure:3137: checking for $ac_hdr" >&5
3137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3145 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3146 { (eval echo configure
:3147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3147 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3148 if test -z "$ac_err"; then
3150 eval "ac_cv_header_$ac_safe=yes"
3153 echo "configure: failed program was:" >&5
3154 cat conftest.
$ac_ext >&5
3156 eval "ac_cv_header_$ac_safe=no"
3160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3163 cat >> confdefs.h
<<EOF
3164 #define $ac_tr_hdr 1
3168 echo "$ac_t""no" 1>&6
3173 # Check for thread headers.
3174 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
3175 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
3176 echo "configure:3177: checking for thread.h" >&5
3177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3185 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3186 { (eval echo configure
:3187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3187 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3188 if test -z "$ac_err"; then
3190 eval "ac_cv_header_$ac_safe=yes"
3193 echo "configure: failed program was:" >&5
3194 cat conftest.
$ac_ext >&5
3196 eval "ac_cv_header_$ac_safe=no"
3200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3204 echo "$ac_t""no" 1>&6
3208 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
3209 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
3210 echo "configure:3211: checking for pthread.h" >&5
3211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 cat > conftest.
$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3217 #include <pthread.h>
3219 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3220 { (eval echo configure
:3221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3221 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3222 if test -z "$ac_err"; then
3224 eval "ac_cv_header_$ac_safe=yes"
3227 echo "configure: failed program was:" >&5
3228 cat conftest.
$ac_ext >&5
3230 eval "ac_cv_header_$ac_safe=no"
3234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3235 echo "$ac_t""yes" 1>&6
3238 echo "$ac_t""no" 1>&6
3243 # These tests can't be done till we know if we have limits.h.
3244 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
3245 echo "configure:3246: checking for CHAR_BIT" >&5
3246 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 cat > conftest.
$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 #ifdef HAVE_LIMITS_H
3259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3260 egrep "found" >/dev
/null
2>&1; then
3262 gcc_cv_decl_char_bit
=yes
3265 gcc_cv_decl_char_bit
=no
3272 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
3273 if test $gcc_cv_decl_char_bit = no
; then
3274 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
3275 echo "configure:3276: checking number of bits in a byte" >&5
3276 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3281 while test $i -lt 65; do
3282 cat > conftest.
$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3288 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
3289 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
3293 if { (eval echo configure
:3294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3295 gcc_cv_c_nbby
=$i; break
3297 echo "configure: failed program was:" >&5
3298 cat conftest.
$ac_ext >&5
3303 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
3307 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
3308 if test $gcc_cv_c_nbby = failed
; then
3309 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
3311 cat >> confdefs.h
<<EOF
3312 #define CHAR_BIT $gcc_cv_c_nbby
3317 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3318 echo "configure:3319: checking whether byte ordering is bigendian" >&5
3319 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 ac_cv_c_bigendian
=unknown
3323 # See if sys/param.h defines the BYTE_ORDER macro.
3324 cat > conftest.
$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3327 #include <sys/types.h>
3328 #include <sys/param.h>
3331 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3336 if { (eval echo configure
:3337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3338 # It does; now see whether it defined to BIG_ENDIAN or not.
3339 cat > conftest.
$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 #include <sys/types.h>
3343 #include <sys/param.h>
3346 #if BYTE_ORDER != BIG_ENDIAN
3351 if { (eval echo configure
:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3353 ac_cv_c_bigendian
=yes
3355 echo "configure: failed program was:" >&5
3356 cat conftest.
$ac_ext >&5
3358 ac_cv_c_bigendian
=no
3362 echo "configure: failed program was:" >&5
3363 cat conftest.
$ac_ext >&5
3366 if test $ac_cv_c_bigendian = unknown
; then
3367 if test "$cross_compiling" = yes; then
3368 echo $ac_n "cross-compiling... " 2>&6
3370 cat > conftest.
$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3374 /* Are we little or big endian? From Harbison&Steele. */
3378 char c[sizeof (long)];
3381 exit (u.c[sizeof (long) - 1] == 1);
3384 if { (eval echo configure
:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3386 ac_cv_c_bigendian
=no
3388 echo "configure: failed program was:" >&5
3389 cat conftest.
$ac_ext >&5
3391 ac_cv_c_bigendian
=yes
3399 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3400 if test $ac_cv_c_bigendian = unknown
; then
3401 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3402 echo "configure:3403: checking to probe for byte ordering" >&5
3404 cat >conftest.c
<<EOF
3405 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3406 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3407 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3408 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3409 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3410 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3411 int main() { _ascii (); _ebcdic (); return 0; }
3413 if test -f conftest.c
; then
3414 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
3415 if test `grep -l BIGenDianSyS conftest.o` ; then
3416 echo $ac_n ' big endian probe OK, ' 1>&6
3417 ac_cv_c_bigendian
=yes
3419 if test `grep -l LiTTleEnDian conftest.o` ; then
3420 echo $ac_n ' little endian probe OK, ' 1>&6
3421 if test $ac_cv_c_bigendian = yes ; then
3422 ac_cv_c_bigendian
=unknown
;
3424 ac_cv_c_bigendian
=no
3427 echo $ac_n 'guessing bigendian ... ' >&6
3430 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3432 if test $ac_cv_c_bigendian = yes; then
3433 cat >> confdefs.h
<<\EOF
3434 #define WORDS_BIGENDIAN 1
3437 cat >> confdefs.h
<<\EOF
3438 #define HOST_WORDS_BIG_ENDIAN 1
3445 cat >> confdefs.h
<<EOF
3446 #define BYTEORDER $BYTEORDER
3449 if test $ac_cv_c_bigendian = unknown
; then
3450 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3458 # Stage specific cflags for build.
3462 if test x
$GCC = xyes
3464 stage1_cflags
="-Wa,-J"
3470 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
3471 # sources; use -no-cpp-precomp to get to GNU cpp.
3472 # Apple's GCC has bugs in designated initializer handling, so disable
3474 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
3479 # These libraries may be used by collect2.
3480 # We may need a special search path to get them linked.
3481 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3482 echo "configure:3483: checking for collect2 libraries" >&5
3483 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3487 for libs
in '' -lld -lmld \
3488 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3489 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3492 cat > conftest.
$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 /* Override any gcc2 internal prototype to avoid an error. */
3496 /* We use char because int might match the return type of a gcc2
3497 builtin and then its argument prototype would still apply. */
3504 if { (eval echo configure
:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3506 gcc_cv_collect2_libs
="$libs"; break
3508 echo "configure: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3514 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3517 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3518 case $gcc_cv_collect2_libs in
3520 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3524 # When building Ada code on Alpha, we need exc_resume which is usually in
3525 # -lexc. So test for it.
3529 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3530 echo "configure:3531: checking for library containing exc_resume" >&5
3531 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 ac_func_search_save_LIBS
="$LIBS"
3535 ac_cv_search_exc_resume
="no"
3536 cat > conftest.
$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3548 if { (eval echo configure
:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3550 ac_cv_search_exc_resume
="none required"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3556 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3557 LIBS
="-l$i $ac_func_search_save_LIBS"
3558 cat > conftest.
$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3570 if { (eval echo configure
:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3572 ac_cv_search_exc_resume
="-l$i"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.
$ac_ext >&5
3580 LIBS
="$ac_func_search_save_LIBS"
3583 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3584 if test "$ac_cv_search_exc_resume" != "no"; then
3585 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3594 # Some systems put ldexp and frexp in libm instead of libc; assume
3595 # they're both in the same place. jcf-dump needs them.
3599 echo $ac_n "checking for library containing ldexp""... $ac_c" 1>&6
3600 echo "configure:3601: checking for library containing ldexp" >&5
3601 if eval "test \"`echo '$''{'ac_cv_search_ldexp'+set}'`\" = set"; then
3602 echo $ac_n "(cached) $ac_c" 1>&6
3604 ac_func_search_save_LIBS
="$LIBS"
3605 ac_cv_search_ldexp
="no"
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 /* Override any gcc2 internal prototype to avoid an error. */
3610 /* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3618 if { (eval echo configure
:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3620 ac_cv_search_ldexp
="none required"
3622 echo "configure: failed program was:" >&5
3623 cat conftest.
$ac_ext >&5
3626 test "$ac_cv_search_ldexp" = "no" && for i
in m
; do
3627 LIBS
="-l$i $ac_func_search_save_LIBS"
3628 cat > conftest.
$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 /* Override any gcc2 internal prototype to avoid an error. */
3632 /* We use char because int might match the return type of a gcc2
3633 builtin and then its argument prototype would still apply. */
3640 if { (eval echo configure
:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3642 ac_cv_search_ldexp
="-l$i"
3645 echo "configure: failed program was:" >&5
3646 cat conftest.
$ac_ext >&5
3650 LIBS
="$ac_func_search_save_LIBS"
3653 echo "$ac_t""$ac_cv_search_ldexp" 1>&6
3654 if test "$ac_cv_search_ldexp" != "no"; then
3655 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
3664 # Use <inttypes.h> only if it exists,
3665 # doesn't clash with <sys/types.h>, and declares intmax_t.
3666 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3667 echo "configure:3668: checking for inttypes.h" >&5
3668 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 cat > conftest.
$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3675 #include <inttypes.h>
3680 if { (eval echo configure
:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682 gcc_cv_header_inttypes_h
=yes
3684 echo "configure: failed program was:" >&5
3685 cat conftest.
$ac_ext >&5
3687 gcc_cv_header_inttypes_h
=no
3692 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3693 if test $gcc_cv_header_inttypes_h = yes; then
3694 cat >> confdefs.h
<<\EOF
3695 #define HAVE_INTTYPES_H 1
3701 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3702 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3703 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
3704 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore
3706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3707 echo "configure:3708: checking for $ac_func" >&5
3708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 cat > conftest.
$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 /* System header to define __stub macros and hopefully few prototypes,
3715 which can conflict with char $ac_func(); below. */
3717 /* Override any gcc2 internal prototype to avoid an error. */
3718 /* We use char because int might match the return type of a gcc2
3719 builtin and then its argument prototype would still apply. */
3724 /* The GNU C library defines this for functions which it implements
3725 to always fail with ENOSYS. Some functions are actually named
3726 something starting with __ and the normal name is an alias. */
3727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3735 if { (eval echo configure
:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3737 eval "ac_cv_func_$ac_func=yes"
3739 echo "configure: failed program was:" >&5
3740 cat conftest.
$ac_ext >&5
3742 eval "ac_cv_func_$ac_func=no"
3747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3748 echo "$ac_t""yes" 1>&6
3749 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3750 cat >> confdefs.h
<<EOF
3751 #define $ac_tr_func 1
3755 echo "$ac_t""no" 1>&6
3760 if test x
$ac_cv_func_mbstowcs = xyes
; then
3761 echo $ac_n "checking whether mbstowcs works""... $ac_c" 1>&6
3762 echo "configure:3763: checking whether mbstowcs works" >&5
3763 if eval "test \"`echo '$''{'gcc_cv_func_mbstowcs_works'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 if test "$cross_compiling" = yes; then
3767 gcc_cv_func_mbstowcs_works
=yes
3769 cat > conftest.
$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3779 if { (eval echo configure
:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3781 gcc_cv_func_mbstowcs_works
=yes
3783 echo "configure: failed program was:" >&5
3784 cat conftest.
$ac_ext >&5
3786 gcc_cv_func_mbstowcs_works
=no
3793 echo "$ac_t""$gcc_cv_func_mbstowcs_works" 1>&6
3794 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
3795 cat >> confdefs.h
<<\EOF
3796 #define HAVE_WORKING_MBSTOWCS 1
3802 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3803 echo "configure:3804: checking for ssize_t" >&5
3804 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 cat > conftest.
$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 #include <sys/types.h>
3816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3817 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3819 ac_cv_type_ssize_t
=yes
3822 ac_cv_type_ssize_t
=no
3827 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3828 if test $ac_cv_type_ssize_t = no
; then
3829 cat >> confdefs.h
<<\EOF
3836 # Try to determine the array type of the second argument of getgroups
3837 # for the target system (int or gid_t).
3838 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3839 echo "configure:3840: checking for uid_t in sys/types.h" >&5
3840 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3843 cat > conftest.
$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3846 #include <sys/types.h>
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 egrep "uid_t" >/dev
/null
2>&1; then
3851 ac_cv_type_uid_t
=yes
3860 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3861 if test $ac_cv_type_uid_t = no
; then
3862 cat >> confdefs.h
<<\EOF
3866 cat >> confdefs.h
<<\EOF
3872 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3873 echo "configure:3874: checking type of array argument to getgroups" >&5
3874 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3877 if test "$cross_compiling" = yes; then
3878 ac_cv_type_getgroups
=cross
3880 cat > conftest.
$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3884 /* Thanks to Mike Rendell for this test. */
3885 #include <sys/types.h>
3888 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3893 union { gid_t gval; long lval; } val;
3896 for (i = 0; i < NGID; i++)
3897 gidset[i] = val.gval;
3898 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3900 /* Exit non-zero if getgroups seems to require an array of ints. This
3901 happens when gid_t is short but getgroups modifies an array of ints. */
3902 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3906 if { (eval echo configure
:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3908 ac_cv_type_getgroups
=gid_t
3910 echo "configure: failed program was:" >&5
3911 cat conftest.
$ac_ext >&5
3913 ac_cv_type_getgroups
=int
3918 if test $ac_cv_type_getgroups = cross
; then
3919 cat > conftest.
$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3925 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3927 ac_cv_type_getgroups
=gid_t
3930 ac_cv_type_getgroups
=int
3937 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3938 cat >> confdefs.h
<<EOF
3939 #define GETGROUPS_T $ac_cv_type_getgroups
3943 if test "${target}" = "${build}"; then
3944 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3947 # This condition may need some tweaking. It should include all
3948 # targets where the array type of the second argument of getgroups
3949 # is int and the type of gid_t is not equivalent to int.
3950 *-*-sunos* |
*-*-ultrix*)
3951 TARGET_GETGROUPS_T
=int
3954 TARGET_GETGROUPS_T
=gid_t
3960 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3961 echo "configure:3962: checking whether the printf functions support %p" >&5
3962 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 if test "$cross_compiling" = yes; then
3966 gcc_cv_func_printf_ptr
=no
3968 cat > conftest.
$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3976 char *p = buf, *q = NULL;
3977 sprintf(buf, "%p", p);
3978 sscanf(buf, "%p", &q);
3982 if { (eval echo configure
:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3984 gcc_cv_func_printf_ptr
=yes
3986 echo "configure: failed program was:" >&5
3987 cat conftest.
$ac_ext >&5
3989 gcc_cv_func_printf_ptr
=no
3994 rm -f core core.
* *.core
3997 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3998 if test $gcc_cv_func_printf_ptr = yes ; then
3999 cat >> confdefs.h
<<\EOF
4000 #define HAVE_PRINTF_PTR 1
4005 if test $ac_cv_header_sys_mman_h != yes \
4006 ||
test $ac_cv_func_mmap != yes; then
4007 gcc_cv_func_mmap_file
=no
4008 gcc_cv_func_mmap_dev_zero
=no
4009 gcc_cv_func_mmap_anon
=no
4011 echo $ac_n "checking whether read-only mmap of a plain file works""... $ac_c" 1>&6
4012 echo "configure:4013: checking whether read-only mmap of a plain file works" >&5
4013 if eval "test \"`echo '$''{'gcc_cv_func_mmap_file'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 # Add a system to this blacklist if
4017 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
4018 # memory area containing the same data that you'd get if you applied
4019 # read() to the same fd. The only system known to have a problem here
4020 # is VMS, where text files have record structure.
4023 gcc_cv_func_mmap_file
=no
;;
4025 gcc_cv_func_mmap_file
=yes;;
4029 echo "$ac_t""$gcc_cv_func_mmap_file" 1>&6
4030 echo $ac_n "checking whether mmap from /dev/zero works""... $ac_c" 1>&6
4031 echo "configure:4032: checking whether mmap from /dev/zero works" >&5
4032 if eval "test \"`echo '$''{'gcc_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 # Add a system to this blacklist if it has mmap() but /dev/zero
4036 # does not exist, or if mmapping /dev/zero does not give anonymous
4037 # zeroed pages with both the following properties:
4038 # 1. If you map N consecutive pages in with one call, and then
4039 # unmap any subset of those pages, the pages that were not
4040 # explicitly unmapped remain accessible.
4041 # 2. If you map two adjacent blocks of memory and then unmap them
4042 # both at once, they must both go away.
4043 # Systems known to be in this category are Windows (all variants),
4046 vms
* | cygwin
* | pe | mingw
* | darwin
*)
4047 gcc_cv_func_mmap_dev_zero
=no
;;
4049 gcc_cv_func_mmap_dev_zero
=yes;;
4053 echo "$ac_t""$gcc_cv_func_mmap_dev_zero" 1>&6
4055 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
4056 echo $ac_n "checking for MAP_ANON(YMOUS)""... $ac_c" 1>&6
4057 echo "configure:4058: checking for MAP_ANON(YMOUS)" >&5
4058 if eval "test \"`echo '$''{'gcc_cv_decl_map_anon'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.
$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 #include <sys/types.h>
4065 #include <sys/mman.h>
4068 #ifndef MAP_ANONYMOUS
4069 #define MAP_ANONYMOUS MAP_ANON
4073 int n = MAP_ANONYMOUS;
4076 if { (eval echo configure
:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 gcc_cv_decl_map_anon
=yes
4080 echo "configure: failed program was:" >&5
4081 cat conftest.
$ac_ext >&5
4083 gcc_cv_decl_map_anon
=no
4088 echo "$ac_t""$gcc_cv_decl_map_anon" 1>&6
4090 if test $gcc_cv_decl_map_anon = no
; then
4091 gcc_cv_func_mmap_anon
=no
4093 echo $ac_n "checking whether mmap with MAP_ANON(YMOUS) works""... $ac_c" 1>&6
4094 echo "configure:4095: checking whether mmap with MAP_ANON(YMOUS) works" >&5
4095 if eval "test \"`echo '$''{'gcc_cv_func_mmap_anon'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 # Add a system to this blacklist if it has mmap() and MAP_ANON or
4099 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
4100 # doesn't give anonymous zeroed pages with the same properties listed
4101 # above for use of /dev/zero.
4102 # Systems known to be in this category are Windows, VMS, and SCO Unix.
4104 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
4105 gcc_cv_func_mmap_anon
=no
;;
4107 gcc_cv_func_mmap_anon
=yes;;
4111 echo "$ac_t""$gcc_cv_func_mmap_anon" 1>&6
4115 if test $gcc_cv_func_mmap_file = yes; then
4116 cat >> confdefs.h
<<\EOF
4117 #define HAVE_MMAP_FILE 1
4121 if test $gcc_cv_func_mmap_dev_zero = yes; then
4122 cat >> confdefs.h
<<\EOF
4123 #define HAVE_MMAP_DEV_ZERO 1
4127 if test $gcc_cv_func_mmap_anon = yes; then
4128 cat >> confdefs.h
<<\EOF
4129 #define HAVE_MMAP_ANON 1
4137 { echo "configure: error:
4138 *** UWIN may not be used as a host platform because
4139 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
4142 # Under VMS, vfork works very different than on Unix. The standard test
4143 # won't work, and it isn't easily adaptable. It makes more sense to
4145 ac_cv_func_vfork_works
=yes
4148 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4149 echo "configure:4150: checking for pid_t" >&5
4150 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4153 cat > conftest.
$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 #include <sys/types.h>
4162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4163 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4165 ac_cv_type_pid_t
=yes
4173 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4174 if test $ac_cv_type_pid_t = no
; then
4175 cat >> confdefs.h
<<\EOF
4181 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
4182 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
4183 echo "configure:4184: checking for vfork.h" >&5
4184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 cat > conftest.
$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4192 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4193 { (eval echo configure
:4194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4194 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4195 if test -z "$ac_err"; then
4197 eval "ac_cv_header_$ac_safe=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.
$ac_ext >&5
4203 eval "ac_cv_header_$ac_safe=no"
4207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4209 cat >> confdefs.h
<<\EOF
4210 #define HAVE_VFORK_H 1
4214 echo "$ac_t""no" 1>&6
4217 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
4218 echo "configure:4219: checking for working vfork" >&5
4219 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 if test "$cross_compiling" = yes; then
4223 echo $ac_n "checking for vfork""... $ac_c" 1>&6
4224 echo "configure:4225: checking for vfork" >&5
4225 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* System header to define __stub macros and hopefully few prototypes,
4232 which can conflict with char vfork(); below. */
4234 /* Override any gcc2 internal prototype to avoid an error. */
4235 /* We use char because int might match the return type of a gcc2
4236 builtin and then its argument prototype would still apply. */
4241 /* The GNU C library defines this for functions which it implements
4242 to always fail with ENOSYS. Some functions are actually named
4243 something starting with __ and the normal name is an alias. */
4244 #if defined (__stub_vfork) || defined (__stub___vfork)
4252 if { (eval echo configure
:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4254 eval "ac_cv_func_vfork=yes"
4256 echo "configure: failed program was:" >&5
4257 cat conftest.
$ac_ext >&5
4259 eval "ac_cv_func_vfork=no"
4264 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
4265 echo "$ac_t""yes" 1>&6
4268 echo "$ac_t""no" 1>&6
4271 ac_cv_func_vfork_works
=$ac_cv_func_vfork
4273 cat > conftest.
$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4276 /* Thanks to Paul Eggert for this test. */
4278 #include <sys/types.h>
4279 #include <sys/stat.h>
4280 #ifdef HAVE_UNISTD_H
4286 /* On some sparc systems, changes by the child to local and incoming
4287 argument registers are propagated back to the parent.
4288 The compiler is told about this with #include <vfork.h>,
4289 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
4290 Test for this by using a static variable whose address
4291 is put into a register that is clobbered by the vfork. */
4294 sparc_address_test (int arg)
4296 sparc_address_test (arg) int arg;
4314 pid_t parent = getpid ();
4317 sparc_address_test ();
4322 /* Here is another test for sparc vfork register problems.
4323 This test uses lots of local variables, at least
4324 as many local variables as main has allocated so far
4325 including compiler temporaries. 4 locals are enough for
4326 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4327 A buggy compiler should reuse the register of parent
4328 for one of the local variables, since it will think that
4329 parent can't possibly be used any more in this routine.
4330 Assigning to the local variable will thus munge parent
4331 in the parent process. */
4333 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4334 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4335 /* Convince the compiler that p..p7 are live; otherwise, it might
4336 use the same hardware register for all 8 local variables. */
4337 if (p != p1 || p != p2 || p != p3 || p != p4
4338 || p != p5 || p != p6 || p != p7)
4341 /* On some systems (e.g. IRIX 3.3),
4342 vfork doesn't separate parent from child file descriptors.
4343 If the child closes a descriptor before it execs or exits,
4344 this munges the parent's descriptor as well.
4345 Test for this by closing stdout in the child. */
4346 _exit(close(fileno(stdout)) != 0);
4351 while (wait(&status) != child)
4354 /* Was there some problem with vforking? */
4357 /* Did the child fail? (This shouldn't happen.) */
4360 /* Did the vfork/compiler bug occur? */
4361 || parent != getpid()
4363 /* Did the file descriptor bug occur? */
4364 || fstat(fileno(stdout), &st) != 0
4369 if { (eval echo configure
:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4371 ac_cv_func_vfork_works
=yes
4373 echo "configure: failed program was:" >&5
4374 cat conftest.
$ac_ext >&5
4376 ac_cv_func_vfork_works
=no
4383 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4384 if test $ac_cv_func_vfork_works = no
; then
4385 cat >> confdefs.h
<<\EOF
4394 am_cv_lib_iconv_ldpath
=
4395 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4396 if test "${with_libiconv_prefix+set}" = set; then
4397 withval
="$with_libiconv_prefix"
4399 for dir
in `echo "$withval" | tr : ' '`; do
4400 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4401 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4407 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4408 echo "configure:4409: checking for iconv" >&5
4409 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4413 am_cv_func_iconv
="no, consider installing GNU libiconv"
4415 cat > conftest.
$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4421 iconv_t cd = iconv_open("","");
4422 iconv(cd,NULL,NULL,NULL,NULL);
4426 if { (eval echo configure
:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4428 am_cv_func_iconv
=yes
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4434 if test "$am_cv_func_iconv" != yes; then
4435 am_save_LIBS
="$LIBS"
4436 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4437 cat > conftest.
$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4443 iconv_t cd = iconv_open("","");
4444 iconv(cd,NULL,NULL,NULL,NULL);
4448 if { (eval echo configure
:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4451 am_cv_func_iconv
=yes
4453 echo "configure: failed program was:" >&5
4454 cat conftest.
$ac_ext >&5
4457 LIBS
="$am_save_LIBS"
4462 echo "$ac_t""$am_cv_func_iconv" 1>&6
4463 if test "$am_cv_func_iconv" = yes; then
4464 cat >> confdefs.h
<<\EOF
4465 #define HAVE_ICONV 1
4468 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4469 echo "configure:4470: checking for iconv declaration" >&5
4470 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4474 cat > conftest.
$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4484 #if defined(__STDC__) || defined(__cplusplus)
4485 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4494 if { (eval echo configure
:4495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4496 am_cv_proto_iconv_arg1
=""
4498 echo "configure: failed program was:" >&5
4499 cat conftest.
$ac_ext >&5
4501 am_cv_proto_iconv_arg1
="const"
4504 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);"
4507 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4508 echo "$ac_t""${ac_t:-
4509 }$am_cv_proto_iconv" 1>&6
4510 cat >> confdefs.h
<<EOF
4511 #define ICONV_CONST $am_cv_proto_iconv_arg1
4516 if test "$am_cv_lib_iconv" = yes; then
4517 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4522 # We will need to find libiberty.h and ansidecl.h
4523 saved_CFLAGS
="$CFLAGS"
4524 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4525 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4526 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4527 fprintf_unlocked strstr errno vasprintf \
4528 malloc realloc calloc free
basename getopt
clock
4530 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4531 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4532 echo "configure:4533: checking whether $ac_func is declared" >&5
4533 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.
$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4540 #define $ac_tr_decl 1
4542 #include "ansidecl.h"
4547 char *(*pfn) = (char *(*)) $ac_func ;
4551 if { (eval echo configure
:4552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4553 eval "gcc_cv_have_decl_$ac_func=yes"
4555 echo "configure: failed program was:" >&5
4556 cat conftest.
$ac_ext >&5
4558 eval "gcc_cv_have_decl_$ac_func=no"
4563 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4565 #define $ac_tr_decl 1
4569 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4570 #define $ac_tr_decl 0
4576 if test x
= y
; then
4577 cat >> confdefs.h
<<\EOF
4578 #define HAVE_DECL_GETENV 1
4580 cat >> confdefs.h
<<\EOF
4581 #define HAVE_DECL_ATOL 1
4583 cat >> confdefs.h
<<\EOF
4584 #define HAVE_DECL_SBRK 1
4586 cat >> confdefs.h
<<\EOF
4587 #define HAVE_DECL_ABORT 1
4589 cat >> confdefs.h
<<\EOF
4590 #define HAVE_DECL_ATOF 1
4592 cat >> confdefs.h
<<\EOF
4593 #define HAVE_DECL_GETCWD 1
4595 cat >> confdefs.h
<<\EOF
4596 #define HAVE_DECL_GETWD 1
4599 cat >> confdefs.h
<<\EOF
4600 #define HAVE_DECL_STRSIGNAL 1
4602 cat >> confdefs.h
<<\EOF
4603 #define HAVE_DECL_PUTC_UNLOCKED 1
4605 cat >> confdefs.h
<<\EOF
4606 #define HAVE_DECL_FPUTS_UNLOCKED 1
4608 cat >> confdefs.h
<<\EOF
4609 #define HAVE_DECL_FWRITE_UNLOCKED 1
4612 cat >> confdefs.h
<<\EOF
4613 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4615 cat >> confdefs.h
<<\EOF
4616 #define HAVE_DECL_STRSTR 1
4618 cat >> confdefs.h
<<\EOF
4619 #define HAVE_DECL_ERRNO 1
4621 cat >> confdefs.h
<<\EOF
4622 #define HAVE_DECL_VASPRINTF 1
4625 cat >> confdefs.h
<<\EOF
4626 #define HAVE_DECL_MALLOC 1
4628 cat >> confdefs.h
<<\EOF
4629 #define HAVE_DECL_REALLOC 1
4631 cat >> confdefs.h
<<\EOF
4632 #define HAVE_DECL_CALLOC 1
4634 cat >> confdefs.h
<<\EOF
4635 #define HAVE_DECL_FREE 1
4637 cat >> confdefs.h
<<\EOF
4638 #define HAVE_DECL_BASENAME 1
4640 cat >> confdefs.h
<<\EOF
4641 #define HAVE_DECL_GETOPT 1
4643 cat >> confdefs.h
<<\EOF
4644 #define HAVE_DECL_CLOCK 1
4649 for ac_func
in getrlimit setrlimit getrusage
4651 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4652 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4653 echo "configure:4654: checking whether $ac_func is declared" >&5
4654 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.
$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4661 #define $ac_tr_decl 1
4663 #include "ansidecl.h"
4665 #ifdef HAVE_SYS_RESOURCE_H
4666 #include <sys/resource.h>
4672 char *(*pfn) = (char *(*)) $ac_func ;
4676 if { (eval echo configure
:4677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4678 eval "gcc_cv_have_decl_$ac_func=yes"
4680 echo "configure: failed program was:" >&5
4681 cat conftest.
$ac_ext >&5
4683 eval "gcc_cv_have_decl_$ac_func=no"
4688 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4689 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4690 #define $ac_tr_decl 1
4694 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4695 #define $ac_tr_decl 0
4701 if test x
= y
; then
4702 cat >> confdefs.h
<<\EOF
4703 #define HAVE_DECL_GETRLIMIT 1
4705 cat >> confdefs.h
<<\EOF
4706 #define HAVE_DECL_SETRLIMIT 1
4708 cat >> confdefs.h
<<\EOF
4709 #define HAVE_DECL_GETRUSAGE 1
4714 cat > conftest.
$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4718 #include "ansidecl.h"
4720 #ifdef HAVE_SYS_RESOURCE_H
4721 #include <sys/resource.h>
4728 if { (eval echo configure
:4729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4731 echo "configure: failed program was:" >&5
4732 cat conftest.
$ac_ext >&5
4734 cat >> confdefs.h
<<\EOF
4741 for ac_func
in ldgetname
4743 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4744 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4745 echo "configure:4746: checking whether $ac_func is declared" >&5
4746 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 cat > conftest.
$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4753 #define $ac_tr_decl 1
4755 #include "ansidecl.h"
4764 char *(*pfn) = (char *(*)) $ac_func ;
4768 if { (eval echo configure
:4769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4770 eval "gcc_cv_have_decl_$ac_func=yes"
4772 echo "configure: failed program was:" >&5
4773 cat conftest.
$ac_ext >&5
4775 eval "gcc_cv_have_decl_$ac_func=no"
4780 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4781 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4782 #define $ac_tr_decl 1
4786 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4787 #define $ac_tr_decl 0
4793 if test x
= y
; then
4794 cat >> confdefs.h
<<\EOF
4795 #define HAVE_DECL_LDGETNAME 1
4800 for ac_func
in times
4802 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4803 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4804 echo "configure:4805: checking whether $ac_func is declared" >&5
4805 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 cat > conftest.
$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4812 #define $ac_tr_decl 1
4814 #include "ansidecl.h"
4816 #ifdef HAVE_SYS_TIMES_H
4817 #include <sys/times.h>
4823 char *(*pfn) = (char *(*)) $ac_func ;
4827 if { (eval echo configure
:4828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829 eval "gcc_cv_have_decl_$ac_func=yes"
4831 echo "configure: failed program was:" >&5
4832 cat conftest.
$ac_ext >&5
4834 eval "gcc_cv_have_decl_$ac_func=no"
4839 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4840 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4841 #define $ac_tr_decl 1
4845 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4846 #define $ac_tr_decl 0
4852 if test x
= y
; then
4853 cat >> confdefs.h
<<\EOF
4854 #define HAVE_DECL_TIMES 1
4859 # More time-related stuff.
4860 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4861 echo "configure:4862: checking for struct tms" >&5
4862 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4866 cat > conftest.
$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4870 #include "ansidecl.h"
4872 #ifdef HAVE_SYS_TIMES_H
4873 #include <sys/times.h>
4880 if { (eval echo configure
:4881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4882 ac_cv_struct_tms
=yes
4884 echo "configure: failed program was:" >&5
4885 cat conftest.
$ac_ext >&5
4892 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4893 if test $ac_cv_struct_tms = yes; then
4894 cat >> confdefs.h
<<\EOF
4895 #define HAVE_STRUCT_TMS 1
4900 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4901 # revisit after autoconf 2.50.
4902 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4903 echo "configure:4904: checking for clock_t" >&5
4904 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4908 cat > conftest.
$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4912 #include "ansidecl.h"
4919 if { (eval echo configure
:4920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4921 gcc_cv_type_clock_t
=yes
4923 echo "configure: failed program was:" >&5
4924 cat conftest.
$ac_ext >&5
4926 gcc_cv_type_clock_t
=no
4931 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4932 if test $gcc_cv_type_clock_t = yes; then
4933 cat >> confdefs.h
<<\EOF
4934 #define HAVE_CLOCK_T 1
4939 echo $ac_n "checking for uchar""... $ac_c" 1>&6
4940 echo "configure:4941: checking for uchar" >&5
4941 if eval "test \"`echo '$''{'gcc_cv_type_uchar'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 cat > conftest.
$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4948 #include "ansidecl.h"
4952 if ((uchar *)0) return 0;
4953 if (sizeof(uchar)) return 0;
4956 if { (eval echo configure
:4957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4958 ac_cv_type_uchar
=yes
4960 echo "configure: failed program was:" >&5
4961 cat conftest.
$ac_ext >&5
4968 echo "$ac_t""$gcc_cv_type_uchar" 1>&6
4969 if test $ac_cv_type_uchar = yes; then
4970 cat >> confdefs.h
<<\EOF
4971 #define HAVE_UCHAR 1
4976 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4977 CFLAGS
="$saved_CFLAGS"
4979 # Check whether --enable-initfini-array or --disable-initfini-array was given.
4980 if test "${enable_initfini_array+set}" = set; then
4981 enableval
="$enable_initfini_array"
4985 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
4986 echo "configure:4987: checking for .preinit_array/.init_array/.fini_array support" >&5
4987 if eval "test \"`echo '$''{'gcc_cv_initfini_array'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 if test "$cross_compiling" = yes; then
4991 gcc_cv_initfini_array
=no
4993 cat > conftest.
$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4998 int main (void) { return x; }
4999 int foo (void) { x = 0; }
5000 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5002 if { (eval echo configure
:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5004 gcc_cv_initfini_array
=yes
5006 echo "configure: failed program was:" >&5
5007 cat conftest.
$ac_ext >&5
5009 gcc_cv_initfini_array
=no
5016 echo "$ac_t""$gcc_cv_initfini_array" 1>&6
5017 enable_initfini_array
=$gcc_cv_initfini_array
5021 if test $enable_initfini_array = yes; then
5022 cat >> confdefs.h
<<\EOF
5023 #define HAVE_INITFINI_ARRAY 1
5028 # mkdir takes a single argument on some systems.
5029 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
5030 echo "configure:5031: checking if mkdir takes one argument" >&5
5031 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 cat > conftest.
$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5038 #include <sys/types.h>
5039 #ifdef HAVE_SYS_STAT_H
5040 # include <sys/stat.h>
5042 #ifdef HAVE_UNISTD_H
5043 # include <unistd.h>
5045 #ifdef HAVE_DIRECT_H
5046 # include <direct.h>
5052 if { (eval echo configure
:5053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5054 gcc_cv_mkdir_takes_one_arg
=no
5056 echo "configure: failed program was:" >&5
5057 cat conftest.
$ac_ext >&5
5059 gcc_cv_mkdir_takes_one_arg
=yes
5064 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
5065 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
5066 cat >> confdefs.h
<<\EOF
5067 #define MKDIR_TAKES_ONE_ARG 1
5079 # With Setjmp/Longjmp based exception handling.
5080 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5081 if test "${enable_sjlj_exceptions+set}" = set; then
5082 enableval
="$enable_sjlj_exceptions"
5083 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
5084 cat >> confdefs.h
<<EOF
5085 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
5091 echo $ac_n "checking for main in -lunwind""... $ac_c" 1>&6
5092 echo "configure:5093: checking for main in -lunwind" >&5
5093 ac_lib_var
=`echo unwind'_'main | sed 'y%./+-%__p_%'`
5094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 ac_save_LIBS
="$LIBS"
5098 LIBS
="-lunwind $LIBS"
5099 cat > conftest.
$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5107 if { (eval echo configure
:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5109 eval "ac_cv_lib_$ac_lib_var=yes"
5111 echo "configure: failed program was:" >&5
5112 cat conftest.
$ac_ext >&5
5114 eval "ac_cv_lib_$ac_lib_var=no"
5117 LIBS
="$ac_save_LIBS"
5120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 use_libunwind_default
=yes
5124 echo "$ac_t""no" 1>&6
5125 use_libunwind_default
=no
5128 # Use libunwind based exception handling.
5129 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
5130 if test "${enable_libunwind_exceptions+set}" = set; then
5131 enableval
="$enable_libunwind_exceptions"
5132 use_libunwind_exceptions
=$enableval
5134 use_libunwind_exceptions
=$use_libunwind_default
5137 if test x
"$use_libunwind_exceptions" = xyes
; then
5138 cat >> confdefs.h
<<\EOF
5139 #define USE_LIBUNWIND_EXCEPTIONS 1
5144 # --------------------------------------------------------
5145 # Build, host, and target specific configuration fragments
5146 # --------------------------------------------------------
5151 build_install_headers_dir
=install-headers-tar
5158 # Decode the host machine, then the target machine.
5159 # For the host machine, we save the xm_file variable as host_xm_file;
5160 # then we decode the target machine and forget everything else
5161 # that came from the host machine.
5162 for machine
in $build $host $target; do
5163 .
${srcdir}/config.gcc
5166 extra_objs
="${host_extra_objs} ${extra_objs}"
5168 # Default the target-machine variables that were not explicitly set.
5169 if test x
"$tm_file" = x
5170 then tm_file
=$cpu_type/$cpu_type.h
; fi
5172 if test x
"$extra_headers" = x
5173 then extra_headers
=; fi
5175 if test x
$md_file = x
5176 then md_file
=$cpu_type/$cpu_type.md
; fi
5178 if test x
$out_file = x
5179 then out_file
=$cpu_type/$cpu_type.c
; fi
5181 if test x
"$tmake_file" = x
5182 then tmake_file
=$cpu_type/t-
$cpu_type
5185 if test x
"$dwarf2" = xyes
5186 then tm_file
="$tm_file tm-dwarf2.h"
5189 # Say what files are being used for the output code and MD file.
5190 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
5191 echo "Using \`$srcdir/config/$md_file' as machine description file."
5193 # If any of the xm_file variables contain nonexistent files, warn
5194 # about them and drop them.
5197 for x
in $build_xm_file; do
5198 if test -f $srcdir/config
/$x
5200 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5206 for x
in $host_xm_file; do
5207 if test -f $srcdir/config
/$x
5209 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5215 for x
in $xm_file; do
5216 if test -f $srcdir/config
/$x
5218 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5224 for f
in $tm_file; do
5227 if test $count = ax
; then
5228 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5230 echo "Using the following target machine macro files:"
5231 for f
in $tm_file; do
5232 echo " $srcdir/config/$f"
5236 if test x
$need_64bit_hwint = xyes
; then
5237 cat >> confdefs.h
<<\EOF
5238 #define NEED_64BIT_HOST_WIDE_INT 1
5244 for f
in $host_xm_file; do
5247 if test $count = a
; then
5249 elif test $count = ax
; then
5250 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5252 echo "Using the following host machine macro files:"
5253 for f
in $host_xm_file; do
5254 echo " $srcdir/config/$f"
5257 echo "Using ${out_host_hook_obj} for host machine hooks."
5259 if test "$host_xm_file" != "$build_xm_file"; then
5261 for f
in $build_xm_file; do
5264 if test $count = a
; then
5266 elif test $count = ax
; then
5267 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5269 echo "Using the following build machine macro files:"
5270 for f
in $build_xm_file; do
5271 echo " $srcdir/config/$f"
5276 if test x
$thread_file = x
; then
5277 if test x
$target_thread_file != x
; then
5278 thread_file
=$target_thread_file
5280 thread_file
='single'
5284 if test x
$enable___cxa_atexit = xyes || \
5285 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
5286 cat >> confdefs.h
<<\EOF
5287 #define DEFAULT_USE_CXA_ATEXIT 1
5292 # Look for a file containing extra machine modes.
5293 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
5294 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
5296 cat >> confdefs.h
<<EOF
5297 #define EXTRA_MODES_FILE "$extra_modes"
5300 cat >> confdefs.h
<<\EOF
5301 #define EXTRA_CC_MODES 1
5306 # auto-host.h is the file containing items generated by autoconf and is
5307 # the first file included by config.h.
5308 # If host=build, it is correct to have bconfig include auto-host.h
5309 # as well. If host!=build, we are in error and need to do more
5310 # work to find out the build config parameters.
5311 if test x
$host = x
$build
5313 build_auto
=auto-host.h
5316 # We create a subdir, then run autoconf in the subdir.
5317 # To prevent recursion we set host and build for the new
5318 # invocation of configure to the build for this invocation
5325 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5326 *) realsrcdir
=..
/${srcdir};;
5328 saved_CFLAGS
="${CFLAGS}"
5329 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5330 ${realsrcdir}/configure \
5331 --target=$target_alias --host=$build_alias --build=$build_alias
5332 CFLAGS
="${saved_CFLAGS}"
5334 # We just finished tests for the build machine, so rename
5335 # the file auto-build.h in the gcc directory.
5336 mv auto-host.h ..
/auto-build.h
5339 build_auto
=auto-build.h
5340 FORBUILD
=..
/${build_subdir}
5344 tm_file
="${tm_file} defaults.h"
5345 tm_p_file
="${tm_p_file} tm-preds.h"
5346 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
5347 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
5348 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
5349 # put this back in temporarily.
5350 xm_file
="ansidecl.h ${xm_file}"
5356 # Get the version trigger filename from the toplevel
5357 if test "${with_gcc_version_trigger+set}" = set; then
5358 gcc_version_trigger
=$with_gcc_version_trigger
5360 gcc_version_trigger
=${srcdir}/version.c
5362 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5363 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5365 # Compile in configure arguments.
5366 if test -f configargs.h
; then
5367 # Being re-configured.
5368 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5369 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5371 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5373 cat > configargs.h
<<EOF
5374 /* Generated automatically. */
5375 static const char configuration_arguments[] = "$gcc_config_arguments";
5376 static const char thread_model[] = "$thread_file";
5378 static const struct {
5379 const char *name, *value;
5380 } configure_default_options[] = $configure_default_options;
5383 # Internationalization
5385 VERSION
="$gcc_version"
5389 # Enable NLS support by default
5390 # Check whether --enable-nls or --disable-nls was given.
5391 if test "${enable_nls+set}" = set; then
5392 enableval
="$enable_nls"
5399 # if cross compiling, disable NLS support.
5400 # It's not worth the trouble, at least for now.
5402 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5403 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5409 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5410 echo "configure:5411: checking for library containing strerror" >&5
5411 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5414 ac_func_search_save_LIBS
="$LIBS"
5415 ac_cv_search_strerror
="no"
5416 cat > conftest.
$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5419 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5428 if { (eval echo configure
:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5430 ac_cv_search_strerror
="none required"
5432 echo "configure: failed program was:" >&5
5433 cat conftest.
$ac_ext >&5
5436 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5437 LIBS
="-l$i $ac_func_search_save_LIBS"
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5450 if { (eval echo configure
:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5452 ac_cv_search_strerror
="-l$i"
5455 echo "configure: failed program was:" >&5
5456 cat conftest.
$ac_ext >&5
5460 LIBS
="$ac_func_search_save_LIBS"
5463 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5464 if test "$ac_cv_search_strerror" != "no"; then
5465 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5472 echo $ac_n "checking for working const""... $ac_c" 1>&6
5473 echo "configure:5474: checking for working const" >&5
5474 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 cat > conftest.
$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5483 /* Ultrix mips cc rejects this. */
5484 typedef int charset[2]; const charset x;
5485 /* SunOS 4.1.1 cc rejects this. */
5486 char const *const *ccp;
5488 /* NEC SVR4.0.2 mips cc rejects this. */
5489 struct point {int x, y;};
5490 static struct point const zero = {0,0};
5491 /* AIX XL C 1.02.0.0 rejects this.
5492 It does not let you subtract one const X* pointer from another in an arm
5493 of an if-expression whose if-part is not a constant expression */
5494 const char *g = "string";
5495 ccp = &g + (g ? g-g : 0);
5496 /* HPUX 7.0 cc rejects these. */
5499 ccp = (char const *const *) p;
5500 { /* SCO 3.2v4 cc rejects this. */
5502 char const *s = 0 ? (char *) 0 : (char const *) 0;
5506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5508 const int *foo = &x[0];
5511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5512 typedef const int *iptr;
5516 { /* AIX XL C 1.02.0.0 rejects this saying
5517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5518 struct s { int j; const int *ap[3]; };
5519 struct s *b; b->j = 5;
5521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5527 if { (eval echo configure
:5528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5531 echo "configure: failed program was:" >&5
5532 cat conftest.
$ac_ext >&5
5539 echo "$ac_t""$ac_cv_c_const" 1>&6
5540 if test $ac_cv_c_const = no
; then
5541 cat >> confdefs.h
<<\EOF
5547 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5548 echo "configure:5549: checking for off_t" >&5
5549 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5550 echo $ac_n "(cached) $ac_c" 1>&6
5552 cat > conftest.
$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5555 #include <sys/types.h>
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5564 ac_cv_type_off_t
=yes
5572 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5573 if test $ac_cv_type_off_t = no
; then
5574 cat >> confdefs.h
<<\EOF
5580 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5581 echo "configure:5582: checking for size_t" >&5
5582 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5583 echo $ac_n "(cached) $ac_c" 1>&6
5585 cat > conftest.
$ac_ext <<EOF
5586 #line 5587 "configure"
5587 #include "confdefs.h"
5588 #include <sys/types.h>
5594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5595 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5597 ac_cv_type_size_t
=yes
5600 ac_cv_type_size_t
=no
5605 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5606 if test $ac_cv_type_size_t = no
; then
5607 cat >> confdefs.h
<<\EOF
5608 #define size_t unsigned
5613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5614 # for constant arguments. Useless!
5615 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5616 echo "configure:5617: checking for working alloca.h" >&5
5617 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5620 cat > conftest.
$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5625 char *p = alloca(2 * sizeof(int));
5628 if { (eval echo configure
:5629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5630 ac_cv_header_alloca_h
=yes
5632 echo "configure: failed program was:" >&5
5633 cat conftest.
$ac_ext >&5
5635 ac_cv_header_alloca_h
=no
5640 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5641 if test $ac_cv_header_alloca_h = yes; then
5642 cat >> confdefs.h
<<\EOF
5643 #define HAVE_ALLOCA_H 1
5648 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5649 echo "configure:5650: checking for alloca" >&5
5650 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.
$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5658 # define alloca __builtin_alloca
5661 # include <malloc.h>
5662 # define alloca _alloca
5665 # include <alloca.h>
5670 # ifndef alloca /* predefined by HP cc +Olibcalls */
5679 char *p = (char *) alloca(1);
5682 if { (eval echo configure
:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5684 ac_cv_func_alloca_works
=yes
5686 echo "configure: failed program was:" >&5
5687 cat conftest.
$ac_ext >&5
5689 ac_cv_func_alloca_works
=no
5694 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5695 if test $ac_cv_func_alloca_works = yes; then
5696 cat >> confdefs.h
<<\EOF
5697 #define HAVE_ALLOCA 1
5702 if test $ac_cv_func_alloca_works = no
; then
5703 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5704 # that cause trouble. Some versions do not even contain alloca or
5705 # contain a buggy version. If you still want to use their alloca,
5706 # use ar to extract alloca.o from them instead of compiling alloca.c.
5707 ALLOCA
=alloca.
${ac_objext}
5708 cat >> confdefs.h
<<\EOF
5713 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5714 echo "configure:5715: checking whether alloca needs Cray hooks" >&5
5715 if eval "test \"`echo '$''{'ac_cv_os_cray'+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 #if defined(CRAY) && ! defined(CRAY2)
5728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729 egrep "webecray" >/dev
/null
2>&1; then
5740 echo "$ac_t""$ac_cv_os_cray" 1>&6
5741 if test $ac_cv_os_cray = yes; then
5742 for ac_func
in _getb67 GETB67 getb67
; do
5743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5744 echo "configure:5745: checking for $ac_func" >&5
5745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 cat > conftest.
$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5751 /* System header to define __stub macros and hopefully few prototypes,
5752 which can conflict with char $ac_func(); below. */
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 /* We use char because int might match the return type of a gcc2
5756 builtin and then its argument prototype would still apply. */
5761 /* The GNU C library defines this for functions which it implements
5762 to always fail with ENOSYS. Some functions are actually named
5763 something starting with __ and the normal name is an alias. */
5764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5772 if { (eval echo configure
:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5774 eval "ac_cv_func_$ac_func=yes"
5776 echo "configure: failed program was:" >&5
5777 cat conftest.
$ac_ext >&5
5779 eval "ac_cv_func_$ac_func=no"
5784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5785 echo "$ac_t""yes" 1>&6
5786 cat >> confdefs.h
<<EOF
5787 #define CRAY_STACKSEG_END $ac_func
5792 echo "$ac_t""no" 1>&6
5798 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5799 echo "configure:5800: checking stack direction for C alloca" >&5
5800 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5803 if test "$cross_compiling" = yes; then
5804 ac_cv_c_stack_direction
=0
5806 cat > conftest.
$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5809 find_stack_direction ()
5811 static char *addr = 0;
5816 return find_stack_direction ();
5819 return (&dummy > addr) ? 1 : -1;
5823 exit (find_stack_direction() < 0);
5826 if { (eval echo configure
:5827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5828 ac_cv_c_stack_direction
=1
5830 echo "configure: failed program was:" >&5
5831 cat conftest.
$ac_ext >&5
5833 ac_cv_c_stack_direction
=-1
5840 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5841 cat >> confdefs.h
<<EOF
5842 #define STACK_DIRECTION $ac_cv_c_stack_direction
5848 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5849 echo "configure:5850: checking whether we are using the GNU C Library 2.1 or newer" >&5
5850 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6
5853 cat > conftest.
$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5857 #include <features.h>
5858 #ifdef __GNU_LIBRARY__
5859 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5868 ac_cv_gnu_library_2_1
=yes
5871 ac_cv_gnu_library_2_1
=no
5879 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5881 GLIBC21
="$ac_cv_gnu_library_2_1"
5885 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5886 stdlib.h string.h unistd.h sys
/param.h
5888 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5890 echo "configure:5891: checking for $ac_hdr" >&5
5891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5894 cat > conftest.
$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5899 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5900 { (eval echo configure
:5901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5901 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5902 if test -z "$ac_err"; then
5904 eval "ac_cv_header_$ac_safe=yes"
5907 echo "configure: failed program was:" >&5
5908 cat conftest.
$ac_ext >&5
5910 eval "ac_cv_header_$ac_safe=no"
5914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5917 cat >> confdefs.h
<<EOF
5918 #define $ac_tr_hdr 1
5922 echo "$ac_t""no" 1>&6
5926 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5927 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5928 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5931 echo "configure:5932: checking for $ac_func" >&5
5932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5935 cat > conftest.
$ac_ext <<EOF
5936 #line 5937 "configure"
5937 #include "confdefs.h"
5938 /* System header to define __stub macros and hopefully few prototypes,
5939 which can conflict with char $ac_func(); below. */
5941 /* Override any gcc2 internal prototype to avoid an error. */
5942 /* We use char because int might match the return type of a gcc2
5943 builtin and then its argument prototype would still apply. */
5948 /* The GNU C library defines this for functions which it implements
5949 to always fail with ENOSYS. Some functions are actually named
5950 something starting with __ and the normal name is an alias. */
5951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5959 if { (eval echo configure
:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5961 eval "ac_cv_func_$ac_func=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.
$ac_ext >&5
5966 eval "ac_cv_func_$ac_func=no"
5971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5974 cat >> confdefs.h
<<EOF
5975 #define $ac_tr_func 1
5979 echo "$ac_t""no" 1>&6
5986 am_cv_lib_iconv_ldpath
=
5987 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5988 if test "${with_libiconv_prefix+set}" = set; then
5989 withval
="$with_libiconv_prefix"
5991 for dir
in `echo "$withval" | tr : ' '`; do
5992 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5993 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5999 echo $ac_n "checking for iconv""... $ac_c" 1>&6
6000 echo "configure:6001: checking for iconv" >&5
6001 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6005 am_cv_func_iconv
="no, consider installing GNU libiconv"
6007 cat > conftest.
$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6013 iconv_t cd = iconv_open("","");
6014 iconv(cd,NULL,NULL,NULL,NULL);
6018 if { (eval echo configure
:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6020 am_cv_func_iconv
=yes
6022 echo "configure: failed program was:" >&5
6023 cat conftest.
$ac_ext >&5
6026 if test "$am_cv_func_iconv" != yes; then
6027 am_save_LIBS
="$LIBS"
6028 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
6029 cat > conftest.
$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6035 iconv_t cd = iconv_open("","");
6036 iconv(cd,NULL,NULL,NULL,NULL);
6040 if { (eval echo configure
:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6043 am_cv_func_iconv
=yes
6045 echo "configure: failed program was:" >&5
6046 cat conftest.
$ac_ext >&5
6049 LIBS
="$am_save_LIBS"
6054 echo "$ac_t""$am_cv_func_iconv" 1>&6
6055 if test "$am_cv_func_iconv" = yes; then
6056 cat >> confdefs.h
<<\EOF
6057 #define HAVE_ICONV 1
6060 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
6061 echo "configure:6062: checking for iconv declaration" >&5
6062 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6066 cat > conftest.
$ac_ext <<EOF
6067 #line 6068 "configure"
6068 #include "confdefs.h"
6076 #if defined(__STDC__) || defined(__cplusplus)
6077 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6086 if { (eval echo configure
:6087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6088 am_cv_proto_iconv_arg1
=""
6090 echo "configure: failed program was:" >&5
6091 cat conftest.
$ac_ext >&5
6093 am_cv_proto_iconv_arg1
="const"
6096 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);"
6099 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6100 echo "$ac_t""${ac_t:-
6101 }$am_cv_proto_iconv" 1>&6
6102 cat >> confdefs.h
<<EOF
6103 #define ICONV_CONST $am_cv_proto_iconv_arg1
6108 if test "$am_cv_lib_iconv" = yes; then
6109 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
6114 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
6115 echo "configure:6116: checking for nl_langinfo and CODESET" >&5
6116 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
6117 echo $ac_n "(cached) $ac_c" 1>&6
6119 cat > conftest.
$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6122 #include <langinfo.h>
6124 char* cs = nl_langinfo(CODESET);
6127 if { (eval echo configure
:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6129 am_cv_langinfo_codeset
=yes
6131 echo "configure: failed program was:" >&5
6132 cat conftest.
$ac_ext >&5
6134 am_cv_langinfo_codeset
=no
6140 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
6141 if test $am_cv_langinfo_codeset = yes; then
6142 cat >> confdefs.h
<<\EOF
6143 #define HAVE_LANGINFO_CODESET 1
6148 if test $ac_cv_header_locale_h = yes; then
6149 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6150 echo "configure:6151: checking for LC_MESSAGES" >&5
6151 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6152 echo $ac_n "(cached) $ac_c" 1>&6
6154 cat > conftest.
$ac_ext <<EOF
6155 #line 6156 "configure"
6156 #include "confdefs.h"
6162 if { (eval echo configure
:6163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6164 am_cv_val_LC_MESSAGES
=yes
6166 echo "configure: failed program was:" >&5
6167 cat conftest.
$ac_ext >&5
6169 am_cv_val_LC_MESSAGES
=no
6174 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
6175 if test $am_cv_val_LC_MESSAGES = yes; then
6176 cat >> confdefs.h
<<\EOF
6177 #define HAVE_LC_MESSAGES 1
6182 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
6183 echo "configure:6184: checking whether NLS is requested" >&5
6184 # Check whether --enable-nls or --disable-nls was given.
6185 if test "${enable_nls+set}" = set; then
6186 enableval
="$enable_nls"
6192 echo "$ac_t""$USE_NLS" 1>&6
6195 BUILD_INCLUDED_LIBINTL
=no
6196 USE_INCLUDED_LIBINTL
=no
6200 if test "$USE_NLS" = "yes"; then
6201 cat >> confdefs.h
<<\EOF
6202 #define ENABLE_NLS 1
6205 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
6206 echo "configure:6207: checking whether included gettext is requested" >&5
6207 # Check whether --with-included-gettext or --without-included-gettext was given.
6208 if test "${with_included_gettext+set}" = set; then
6209 withval
="$with_included_gettext"
6210 nls_cv_force_use_gnu_gettext
=$withval
6212 nls_cv_force_use_gnu_gettext
=no
6215 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6217 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6218 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6224 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6225 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6226 echo "configure:6227: checking for libintl.h" >&5
6227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6230 cat > conftest.
$ac_ext <<EOF
6231 #line 6232 "configure"
6232 #include "confdefs.h"
6233 #include <libintl.h>
6235 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6236 { (eval echo configure
:6237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6237 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6238 if test -z "$ac_err"; then
6240 eval "ac_cv_header_$ac_safe=yes"
6243 echo "configure: failed program was:" >&5
6244 cat conftest.
$ac_ext >&5
6246 eval "ac_cv_header_$ac_safe=no"
6250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6251 echo "$ac_t""yes" 1>&6
6252 cat >> confdefs.h
<<\EOF
6253 #define HAVE_LIBINTL_H 1
6256 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6257 echo "configure:6258: checking for GNU gettext in libc" >&5
6258 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6261 cat > conftest.
$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6264 #include <libintl.h>
6265 extern int _nl_msg_cat_cntr;
6267 bindtextdomain ("", "");
6268 return (int) gettext ("") + _nl_msg_cat_cntr
6271 if { (eval echo configure
:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6273 gt_cv_func_gnugettext1_libc
=yes
6275 echo "configure: failed program was:" >&5
6276 cat conftest.
$ac_ext >&5
6278 gt_cv_func_gnugettext1_libc
=no
6283 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6285 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6286 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6287 echo "configure:6288: checking for GNU gettext in libintl" >&5
6288 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6
6291 gt_save_LIBS
="$LIBS"
6292 LIBS
="$LIBS -lintl $LIBICONV"
6293 cat > conftest.
$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 #include <libintl.h>
6297 extern int _nl_msg_cat_cntr;
6299 bindtextdomain ("", "");
6300 return (int) gettext ("") + _nl_msg_cat_cntr
6303 if { (eval echo configure
:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6305 gt_cv_func_gnugettext1_libintl
=yes
6307 echo "configure: failed program was:" >&5
6308 cat conftest.
$ac_ext >&5
6310 gt_cv_func_gnugettext1_libintl
=no
6313 LIBS
="$gt_save_LIBS"
6316 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6319 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6320 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6321 && test "$PACKAGE" != gettext; }; then
6322 cat >> confdefs.h
<<\EOF
6323 #define HAVE_GETTEXT 1
6327 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6328 INTLLIBS
="-lintl $LIBICONV"
6331 gt_save_LIBS
="$LIBS"
6332 LIBS
="$LIBS $INTLLIBS"
6333 for ac_func
in dcgettext
6335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6336 echo "configure:6337: checking for $ac_func" >&5
6337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6338 echo $ac_n "(cached) $ac_c" 1>&6
6340 cat > conftest.
$ac_ext <<EOF
6341 #line 6342 "configure"
6342 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char $ac_func(); below. */
6346 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6353 /* The GNU C library defines this for functions which it implements
6354 to always fail with ENOSYS. Some functions are actually named
6355 something starting with __ and the normal name is an alias. */
6356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6364 if { (eval echo configure
:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6366 eval "ac_cv_func_$ac_func=yes"
6368 echo "configure: failed program was:" >&5
6369 cat conftest.
$ac_ext >&5
6371 eval "ac_cv_func_$ac_func=no"
6376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6378 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6379 cat >> confdefs.h
<<EOF
6380 #define $ac_tr_func 1
6384 echo "$ac_t""no" 1>&6
6388 LIBS
="$gt_save_LIBS"
6390 # Extract the first word of "msgfmt", so it can be a program name with args.
6391 set dummy msgfmt
; ac_word
=$2
6392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6393 echo "configure:6394: checking for $ac_word" >&5
6394 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6399 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6402 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6403 for ac_dir
in $PATH; do
6404 test -z "$ac_dir" && ac_dir
=.
6405 if test -f $ac_dir/$ac_word; then
6406 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6407 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6413 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6417 MSGFMT
="$ac_cv_path_MSGFMT"
6418 if test "$MSGFMT" != ":"; then
6419 echo "$ac_t""$MSGFMT" 1>&6
6421 echo "$ac_t""no" 1>&6
6424 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6425 set dummy gmsgfmt
; ac_word
=$2
6426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6427 echo "configure:6428: checking for $ac_word" >&5
6428 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6429 echo $ac_n "(cached) $ac_c" 1>&6
6433 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6436 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6439 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6441 for ac_dir
in $ac_dummy; do
6442 test -z "$ac_dir" && ac_dir
=.
6443 if test -f $ac_dir/$ac_word; then
6444 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6453 GMSGFMT
="$ac_cv_path_GMSGFMT"
6454 if test -n "$GMSGFMT"; then
6455 echo "$ac_t""$GMSGFMT" 1>&6
6457 echo "$ac_t""no" 1>&6
6461 # Extract the first word of "xgettext", so it can be a program name with args.
6462 set dummy xgettext
; ac_word
=$2
6463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6464 echo "configure:6465: checking for $ac_word" >&5
6465 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6466 echo $ac_n "(cached) $ac_c" 1>&6
6470 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6473 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6474 for ac_dir
in $PATH; do
6475 test -z "$ac_dir" && ac_dir
=.
6476 if test -f $ac_dir/$ac_word; then
6477 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6478 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6484 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6488 XGETTEXT
="$ac_cv_path_XGETTEXT"
6489 if test "$XGETTEXT" != ":"; then
6490 echo "$ac_t""$XGETTEXT" 1>&6
6492 echo "$ac_t""no" 1>&6
6500 echo "$ac_t""no" 1>&6
6504 if test "$CATOBJEXT" = "NONE"; then
6505 nls_cv_use_gnu_gettext
=yes
6509 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6510 INTLOBJS
="\$(GETTOBJS)"
6511 # Extract the first word of "msgfmt", so it can be a program name with args.
6512 set dummy msgfmt
; ac_word
=$2
6513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_word" >&5
6515 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6520 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6523 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6524 for ac_dir
in $PATH; do
6525 test -z "$ac_dir" && ac_dir
=.
6526 if test -f $ac_dir/$ac_word; then
6527 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6528 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6534 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6538 MSGFMT
="$ac_cv_path_MSGFMT"
6539 if test "$MSGFMT" != ":"; then
6540 echo "$ac_t""$MSGFMT" 1>&6
6542 echo "$ac_t""no" 1>&6
6545 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6546 set dummy gmsgfmt
; ac_word
=$2
6547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6548 echo "configure:6549: checking for $ac_word" >&5
6549 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6554 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6557 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6560 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6562 for ac_dir
in $ac_dummy; do
6563 test -z "$ac_dir" && ac_dir
=.
6564 if test -f $ac_dir/$ac_word; then
6565 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6570 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6574 GMSGFMT
="$ac_cv_path_GMSGFMT"
6575 if test -n "$GMSGFMT"; then
6576 echo "$ac_t""$GMSGFMT" 1>&6
6578 echo "$ac_t""no" 1>&6
6581 # Extract the first word of "xgettext", so it can be a program name with args.
6582 set dummy xgettext
; ac_word
=$2
6583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6584 echo "configure:6585: checking for $ac_word" >&5
6585 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6590 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6593 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6594 for ac_dir
in $PATH; do
6595 test -z "$ac_dir" && ac_dir
=.
6596 if test -f $ac_dir/$ac_word; then
6597 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6598 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6604 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6608 XGETTEXT
="$ac_cv_path_XGETTEXT"
6609 if test "$XGETTEXT" != ":"; then
6610 echo "$ac_t""$XGETTEXT" 1>&6
6612 echo "$ac_t""no" 1>&6
6616 BUILD_INCLUDED_LIBINTL
=yes
6617 USE_INCLUDED_LIBINTL
=yes
6619 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6620 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6621 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6624 if test "$GMSGFMT" != ":"; then
6625 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6628 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6633 if test "$XGETTEXT" != ":"; then
6634 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6637 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6647 if test "$PACKAGE" = gettext; then
6648 BUILD_INCLUDED_LIBINTL
=yes
6651 for ac_prog
in bison
6653 # Extract the first word of "$ac_prog", so it can be a program name with args.
6654 set dummy
$ac_prog; ac_word
=$2
6655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6656 echo "configure:6657: checking for $ac_word" >&5
6657 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6
6660 if test -n "$INTLBISON"; then
6661 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6663 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6665 for ac_dir
in $ac_dummy; do
6666 test -z "$ac_dir" && ac_dir
=.
6667 if test -f $ac_dir/$ac_word; then
6668 ac_cv_prog_INTLBISON
="$ac_prog"
6675 INTLBISON
="$ac_cv_prog_INTLBISON"
6676 if test -n "$INTLBISON"; then
6677 echo "$ac_t""$INTLBISON" 1>&6
6679 echo "$ac_t""no" 1>&6
6682 test -n "$INTLBISON" && break
6685 if test -z "$INTLBISON"; then
6688 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6689 echo "configure:6690: checking version of bison" >&5
6690 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6691 case $ac_prog_version in
6692 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6693 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6694 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6695 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6697 echo "$ac_t""$ac_prog_version" 1>&6
6699 if test $ac_verc_fail = yes; then
6712 if test $USE_INCLUDED_LIBINTL = yes; then
6713 cat >> confdefs.h
<<\EOF
6714 #define USE_INCLUDED_LIBINTL 1
6720 nls_cv_header_libgt
=
6732 if test "x$CATOBJEXT" != x
; then
6733 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6734 echo "configure:6735: checking for catalogs to be installed" >&5
6735 # Look for .po and .gmo files in the source directory.
6738 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6739 # If there aren't any .gmo files the shell will give us the
6740 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6742 case "$cat" in *\
**)
6745 # The quadruple backslash is collapsed to a double backslash
6746 # by the backticks, then collapsed again by the double quotes,
6747 # leaving us with one backslash in the sed expression (right
6748 # before the dot that mustn't act as a wildcard). The dot to
6749 # be escaped in the second expression is hiding inside CATOBJEXT.
6750 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6751 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6752 # The user is allowed to set LINGUAS to a list of languages to
6753 # install catalogs for. If it's empty that means "all of them."
6754 if test "x$LINGUAS" = x
; then
6755 CATALOGS
="$CATALOGS $cat"
6756 XLINGUAS
="$XLINGUAS $lang"
6758 case "$LINGUAS" in *$lang*)
6759 CATALOGS
="$CATALOGS $cat"
6760 XLINGUAS
="$XLINGUAS $lang"
6766 echo "$ac_t""$LINGUAS" 1>&6
6770 if test -n "$ac_aux_dir"; then
6771 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6773 if test -z "$MKINSTALLDIRS"; then
6774 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6778 INTL_LIBTOOL_SUFFIX_PREFIX
=
6782 # Windows32 Registry support for specifying GCC installation paths.
6783 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6784 if test "${enable_win32_registry+set}" = set; then
6785 enableval
="$enable_win32_registry"
6790 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6791 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6792 echo "configure:6793: checking whether windows registry support is requested" >&5
6793 if test "x$enable_win32_registry" != xno
; then
6794 cat >> confdefs.h
<<\EOF
6795 #define ENABLE_WIN32_REGISTRY 1
6798 echo "$ac_t""yes" 1>&6
6800 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6801 echo "configure:6802: checking for library containing RegOpenKeyExA" >&5
6802 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6805 ac_func_search_save_LIBS
="$LIBS"
6806 ac_cv_search_RegOpenKeyExA
="no"
6807 cat > conftest.
$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6810 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6813 char RegOpenKeyExA();
6819 if { (eval echo configure
:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6821 ac_cv_search_RegOpenKeyExA
="none required"
6823 echo "configure: failed program was:" >&5
6824 cat conftest.
$ac_ext >&5
6827 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6828 LIBS
="-l$i $ac_func_search_save_LIBS"
6829 cat > conftest.
$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6835 char RegOpenKeyExA();
6841 if { (eval echo configure
:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6843 ac_cv_search_RegOpenKeyExA
="-l$i"
6846 echo "configure: failed program was:" >&5
6847 cat conftest.
$ac_ext >&5
6851 LIBS
="$ac_func_search_save_LIBS"
6854 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6855 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6856 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6862 echo "$ac_t""no" 1>&6
6865 # Check if user specified a different registry key.
6866 case "x${enable_win32_registry}" in
6869 gcc_cv_win32_registry_key
="$VERSION"
6872 # no registry lookup.
6873 gcc_cv_win32_registry_key
=''
6876 # user-specified key.
6877 gcc_cv_win32_registry_key
="$enable_win32_registry"
6881 if test "x$enable_win32_registry" != xno
; then
6882 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6883 echo "configure:6884: checking registry key on windows hosts" >&5
6884 cat >> confdefs.h
<<EOF
6885 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6888 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6893 # Get an absolute path to the GCC top-level source directory
6894 holddir
=`${PWDCMD-pwd}`
6896 topdir
=`${PWDCMD-pwd}`
6899 # Conditionalize the makefile for this host machine.
6900 # Make-host contains the concatenation of all host makefile fragments
6901 # [there can be more than one]. This file is built by configure.frag.
6902 host_overrides
=Make-host
6903 dep_host_xmake_file
=
6904 for f
in ..
${host_xmake_file}
6906 if test -f ${srcdir}/config
/$f
6908 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6912 # Conditionalize the makefile for this target machine.
6913 # Make-target contains the concatenation of all host makefile fragments
6914 # [there can be more than one]. This file is built by configure.frag.
6915 target_overrides
=Make-target
6917 for f
in ..
${tmake_file}
6919 if test -f ${srcdir}/config
/$f
6921 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6925 symbolic_link
='ln -s'
6927 # If the host doesn't support symlinks, modify CC in
6928 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6929 # Otherwise, we can use "CC=$(CC)".
6931 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6933 cc_set_by_configure
="\$(CC)"
6934 quoted_cc_set_by_configure
="\$(CC)"
6935 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6936 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6939 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6941 symbolic_link
="cp -p"
6945 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6946 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6947 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6948 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6952 out_object_file
=`basename $out_file .c`.o
6955 for f
in $tm_file; do
6958 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6960 tm_file_list
="${tm_file_list} \$(srcdir)/$f" ;;
6961 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6966 for f
in $tm_p_file; do
6969 tm_p_file_list
="${tm_p_file_list} $f" ;;
6970 *) tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f" ;;
6975 for f
in $host_xm_file; do
6978 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6980 host_xm_file_list
="${host_xm_file_list} $f" ;;
6982 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6983 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6988 for f
in $build_xm_file; do
6991 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6992 auto-build.h | auto-host.h
)
6993 build_xm_file_list
="${build_xm_file_list} $f" ;;
6995 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6996 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
7000 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
7001 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
7004 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
7005 if test x
$host != x
$target
7007 CROSS
="-DCROSS_COMPILE"
7009 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
7010 case "$host","$target" in
7011 i?
86-*-*,x86_64-
*-* \
7012 | powerpc
*-*-*,powerpc64
*-*-*)
7013 CROSS
="$CROSS -DNATIVE_CROSS" ;;
7015 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
7016 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
7017 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
7020 # If this is a cross-compiler that does not
7021 # have its own set of headers then define
7024 # If this is using newlib, without having the headers available now,
7025 # then define inhibit_libc in LIBGCC2_CFLAGS.
7026 # This prevents libgcc2 from containing any code which requires libc
7029 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
7030 test x
$with_newlib = xyes
; } &&
7031 test "x$with_headers" = x
; then
7032 inhibit_libc
=-Dinhibit_libc
7036 # When building gcc with a cross-compiler, we need to adjust things so
7037 # that the generator programs are still built with the native compiler.
7038 # Also, we cannot run fixincludes or fix-header.
7040 # These are the normal (build=host) settings:
7042 BUILD_PREFIX_1
=ignore-
7044 BUILD_CFLAGS
='$(ALL_CFLAGS)'
7046 STMP_FIXINC
=stmp-fixinc
7047 STMP_FIXPROTO
=stmp-fixproto
7049 # And these apply if build != host.
7050 if test x
$build != x
$host
7053 BUILD_PREFIX_1
=build-
7054 BUILD_CC
='$(CC_FOR_BUILD)'
7055 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
7057 if test "x$TARGET_SYSTEM_ROOT" = x
; then
7063 # Expand extra_headers to include complete path.
7064 # This substitutes for lots of t-* files.
7066 if test "x$extra_headers" = x
7069 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
7070 for file in $extra_headers;
7072 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
7076 # Add a definition of USE_COLLECT2 if system wants one.
7077 case $use_collect2 in
7078 no
) use_collect2
= ;;
7081 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
7082 xm_defines
="${xm_defines} USE_COLLECT2"
7086 # Identify the assembler which will work hand-in-glove with the newly
7087 # built GCC, so that we can examine its features. This is the assembler
7088 # which will be driven by the driver program.
7090 # If build != host, and we aren't building gas in-tree, we identify a
7091 # build->target assembler and hope that it will have the same features
7092 # as the host->target assembler we'll be using.
7093 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
7094 echo "configure:7095: checking what assembler to use" >&5
7097 gcc_cv_gas_major_version
=
7098 gcc_cv_gas_minor_version
=
7099 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
7100 if test -x "$DEFAULT_ASSEMBLER"; then
7101 gcc_cv_as
="$DEFAULT_ASSEMBLER"
7102 elif test -x "$AS"; then
7104 elif test -x as
$host_exeext; then
7105 # Build using assembler in the current directory.
7106 gcc_cv_as
=.
/as
$host_exeext
7107 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
7108 && test -f ..
/gas
/Makefile
; then
7109 # Single tree build which includes gas.
7111 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
7112 for f
in $gcc_cv_as_bfd_srcdir/configure \
7113 $gcc_cv_as_gas_srcdir/configure \
7114 $gcc_cv_as_gas_srcdir/configure.
in \
7115 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
7116 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
7117 if test x
$gcc_cv_gas_version != x
; then
7121 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
7122 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
7123 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
7125 rm -f as
$host_exeext
7126 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
7129 if test "x$gcc_cv_as" = x
; then
7130 # Search the same directories that the installed compiler will
7131 # search. Else we may find the wrong assembler and lose. If we
7132 # do not find a suitable assembler binary, then try the user's
7135 # Also note we have to check MD_EXEC_PREFIX before checking the
7136 # user's path. Unfortunately, there is no good way to get at the
7137 # value of MD_EXEC_PREFIX here. So we do a brute force search
7138 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
7139 # to be fixed as part of the make/configure rewrite too.
7141 if test "x$exec_prefix" = xNONE
; then
7142 if test "x$prefix" = xNONE
; then
7143 test_prefix
=/usr
/local
7148 test_prefix
=$exec_prefix
7151 # If the loop below does not find an assembler, then use whatever
7152 # one we can find in the users's path.
7154 if test "x$program_prefix" != xNONE
; then
7155 gcc_cv_as
=${program_prefix}as
$host_exeext
7157 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
7160 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7161 $test_prefix/lib/gcc-lib/$target_alias \
7162 /usr/lib/gcc/$target_alias/$gcc_version \
7163 /usr/lib/gcc/$target_alias \
7164 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7165 $test_prefix/$target_alias/bin"
7167 if test x
$host = x
$target; then
7168 test_dirs
="$test_dirs \
7173 /bsd43/usr/lib/cmplrs/cc \
7174 /usr/cross64/usr/bin \
7175 /usr/lib/cmplrs/cc \
7176 /sysv/usr/lib/cmplrs/cc \
7177 /svr4/usr/lib/cmplrs/cc \
7181 for dir
in $test_dirs; do
7182 if test -x $dir/as
$host_exeext; then
7183 gcc_cv_as
=$dir/as
$host_exeext
7188 case $in_tree_gas in
7190 echo "$ac_t"""newly built gas
"" 1>&6
7193 echo "$ac_t""$gcc_cv_as" 1>&6
7197 # Identify the linker which will work hand-in-glove with the newly
7198 # built GCC, so that we can examine its features. This is the linker
7199 # which will be driven by the driver program.
7201 # If build != host, and we aren't building gas in-tree, we identify a
7202 # build->target linker and hope that it will have the same features
7203 # as the host->target linker we'll be using.
7204 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
7205 echo "configure:7206: checking what linker to use" >&5
7208 gcc_cv_gld_major_version
=
7209 gcc_cv_gld_minor_version
=
7210 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
7211 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
7212 if test -x "$DEFAULT_LINKER"; then
7213 gcc_cv_ld
="$DEFAULT_LINKER"
7214 elif test -x "$LD"; then
7216 elif test -x collect-ld
$host_exeext; then
7217 # Build using linker in the current directory.
7218 gcc_cv_ld
=.
/collect-ld
$host_exeext
7219 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
7220 && test -f ..
/ld
/Makefile
; then
7221 # Single tree build which includes ld.
7223 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
7225 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
7226 if test x
$gcc_cv_gld_version != x
; then
7230 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
7231 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
7232 rm -f collect-ld
$host_exeext
7233 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
7237 if test "x$gcc_cv_ld" = x
; then
7238 # Search the same directories that the installed compiler will
7239 # search. Else we may find the wrong linker and lose. If we
7240 # do not find a suitable linker binary, then try the user's
7243 # Also note we have to check MD_EXEC_PREFIX before checking the
7244 # user's path. Unfortunately, there is no good way to get at the
7245 # value of MD_EXEC_PREFIX here. So we do a brute force search
7246 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
7247 # to be fixed as part of the make/configure rewrite too.
7249 if test "x$exec_prefix" = xNONE
; then
7250 if test "x$prefix" = xNONE
; then
7251 test_prefix
=/usr
/local
7256 test_prefix
=$exec_prefix
7259 # If the loop below does not find an linker, then use whatever
7260 # one we can find in the users's path.
7262 if test "x$program_prefix" != xNONE
; then
7263 gcc_cv_ld
=${program_prefix}ld
$host_exeext
7265 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
7268 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7269 $test_prefix/lib/gcc-lib/$target_alias \
7270 /usr/lib/gcc/$target_alias/$gcc_version \
7271 /usr/lib/gcc/$target_alias \
7272 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7273 $test_prefix/$target_alias/bin"
7275 if test x
$host = x
$target; then
7276 test_dirs
="$test_dirs \
7281 /bsd43/usr/lib/cmplrs/cc \
7282 /usr/cross64/usr/bin \
7283 /usr/lib/cmplrs/cc \
7284 /sysv/usr/lib/cmplrs/cc \
7285 /svr4/usr/lib/cmplrs/cc \
7289 for dir
in $test_dirs; do
7290 if test -x $dir/ld
$host_exeext; then
7291 gcc_cv_ld
=$dir/ld
$host_exeext
7298 echo "$ac_t"""newly built ld
"" 1>&6
7301 echo "$ac_t""$gcc_cv_ld" 1>&6
7305 # Figure out what nm we will be using.
7306 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
7307 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7308 echo "configure:7309: checking what nm to use" >&5
7310 if test -x nm
$host_exeext; then
7311 gcc_cv_nm
=.
/nm
$host_exeext
7312 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
7313 && test -f ..
/binutils
/Makefile
; then
7314 # Single tree build which includes binutils.
7316 gcc_cv_nm
=.
/nm
$host_exeext
7317 rm -f nm
$host_exeext
7318 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
7319 elif test "x$program_prefix" != xNONE
; then
7320 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7322 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7325 yes) echo "$ac_t"""newly built nm
"" 1>&6 ;;
7326 no
) echo "$ac_t""$gcc_cv_nm" 1>&6 ;;
7329 # Figure out what objdump we will be using.
7330 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7331 echo "configure:7332: checking what objdump to use" >&5
7333 if test -x objdump
$host_exeext; then
7334 gcc_cv_objdump
=.
/objdump
$host_exeext
7335 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
7336 && test -f ..
/binutils
/Makefile
; then
7337 # Single tree build which includes binutils.
7339 gcc_cv_objdump
=.
/objdump
$host_exeext
7340 rm -f objdump
$host_exeext
7341 $symbolic_link ..
/binutils
/objdump
$host_exeext \
7342 objdump
$host_exeext 2>/dev
/null
7343 elif test "x$program_prefix" != xNONE
; then
7344 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7346 gcc_cv_objdump
=`echo objdump | \
7347 sed ${program_transform_name}`$host_exeext
7349 case $in_tree_objdump in
7350 yes) echo "$ac_t"""newly built objdump
"" 1>&6 ;;
7351 no
) echo "$ac_t""$gcc_cv_objdump" 1>&6 ;;
7354 # Figure out what assembler alignment features are present.
7355 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7356 echo "configure:7357: checking assembler alignment features" >&5
7357 gcc_cv_as_alignment_features
=none
7358 if test $in_tree_gas = yes; then
7359 # Gas version 2.6 and later support for .balign and .p2align.
7360 if test $gcc_cv_gas_major_version -eq 2 \
7361 && test $gcc_cv_gas_minor_version -ge 6 \
7362 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7365 gcc_cv_as_alignment_features
=".balign and .p2align"
7366 cat >> confdefs.h
<<\EOF
7367 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7374 # Gas version 2.8 and later support specifying the maximum
7375 # bytes to skip when using .p2align.
7376 if test $gcc_cv_gas_major_version -eq 2 \
7377 && test $gcc_cv_gas_minor_version -ge 8 \
7378 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7381 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7382 cat >> confdefs.h
<<\EOF
7383 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7390 elif test x
$gcc_cv_as != x
; then
7391 # Check if we have .balign and .p2align
7392 echo ".balign 4" > conftest.s
7393 echo ".p2align 2" >> conftest.s
7394 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7395 gcc_cv_as_alignment_features
=".balign and .p2align"
7396 cat >> confdefs.h
<<\EOF
7397 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7401 rm -f conftest.s conftest.o
7402 # Check if specifying the maximum bytes to skip when
7403 # using .p2align is supported.
7404 echo ".p2align 4,,7" > conftest.s
7405 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7406 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7407 cat >> confdefs.h
<<\EOF
7408 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7412 rm -f conftest.s conftest.o
7414 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7416 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7417 echo "configure:7418: checking assembler subsection support" >&5
7418 gcc_cv_as_subsections
=no
7419 if test $in_tree_gas = yes ; then
7420 if test $gcc_cv_gas_major_version -eq 2 \
7421 && test $gcc_cv_gas_minor_version -ge 9 \
7422 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7425 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7426 gcc_cv_as_subsections
="working .subsection -1"
7432 elif test x
$gcc_cv_as != x
; then
7433 # Check if we have .subsection
7434 echo ".subsection 1" > conftest.s
7435 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7436 gcc_cv_as_subsections
=".subsection"
7437 if test x
$gcc_cv_nm != x
; then
7438 cat > conftest.s
<<EOF
7439 conftest_label1: .word 0
7441 conftest_label2: .word 0
7444 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7445 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7446 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7447 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7450 gcc_cv_as_subsections
="working .subsection -1"
7455 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7457 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7458 cat >> confdefs.h
<<\EOF
7459 #define HAVE_GAS_SUBSECTION_ORDERING 1
7463 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7465 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7466 echo "configure:7467: checking assembler weak support" >&5
7468 if test $in_tree_gas = yes ; then
7469 if test $gcc_cv_gas_major_version -eq 2 \
7470 && test $gcc_cv_gas_minor_version -ge 2 \
7471 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7474 gcc_cv_as_weak
="yes"
7479 elif test x
$gcc_cv_as != x
; then
7480 # Check if we have .weak
7481 echo " .weak foobar" > conftest.s
7482 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7483 gcc_cv_as_weak
="yes"
7485 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7487 if test x
"$gcc_cv_as_weak" = xyes
; then
7488 cat >> confdefs.h
<<\EOF
7489 #define HAVE_GAS_WEAK 1
7493 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7495 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7496 echo "configure:7497: checking assembler hidden support" >&5
7498 if test $in_tree_gas = yes ; then
7499 if test $gcc_cv_gas_major_version -eq 2 \
7500 && (test $gcc_cv_gas_minor_version -gt 12 \
7501 ||
(test $gcc_cv_gas_minor_version -eq 12 \
7502 && test $gcc_cv_gas_patch_version -ge 1 )) \
7503 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7506 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7507 gcc_cv_as_hidden
="yes"
7513 elif test x
$gcc_cv_as != x
; then
7514 # Check if we have .hidden
7515 echo " .hidden foobar" > conftest.s
7516 echo "foobar:" >> conftest.s
7517 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7518 gcc_cv_as_hidden
="yes"
7520 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7522 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7523 # This is irritatingly difficult to feature test for. Look for
7524 # the date string after the version number.
7525 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7526 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7527 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([ ].*\|\)$,\1,p'`
7528 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'`
7529 if test 0"$ld_date" -lt 20020404; then
7530 if test -n "$ld_date"; then
7531 # If there was date string, but was earlier than 2002-04-04, fail
7532 gcc_cv_as_hidden
="no"
7533 elif test -z "$ld_vers"; then
7534 # If there was no date string nor ld version number, something is wrong
7535 gcc_cv_as_hidden
="no"
7537 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
7538 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
7539 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7540 test -z "$ld_vers_patch" && ld_vers_patch
=0
7541 if test "$ld_vers_major" -lt 2; then
7542 gcc_cv_as_hidden
="no"
7543 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
7544 gcc_cv_as_hidden
="no"
7545 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
7546 -a "$ld_vers_patch" -eq 0; then
7547 gcc_cv_as_hidden
="no"
7555 if test x
"$gnu_ld_flag" = x
"no"; then
7556 # Even if using gas with .hidden support, the resulting object files
7557 # cannot be linked with the IRIX 6 O32 linker. With the N32 and
7558 # N64 linkers, the problem is that the linker refuses to accept
7559 # -call_shared (passed by default to the linker) and -r (used to
7560 # link the object file generated without .hidden directives with
7561 # one that hides symbols), so we also lose.
7566 if test x
"$gcc_cv_as_hidden" = xyes
; then
7567 cat >> confdefs.h
<<\EOF
7568 #define HAVE_GAS_HIDDEN 1
7572 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7573 libgcc_visibility
=$gcc_cv_as_hidden
7576 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7577 echo "configure:7578: checking assembler leb128 support" >&5
7579 if test $in_tree_gas = yes ; then
7580 if test $gcc_cv_gas_major_version -eq 2 \
7581 && test $gcc_cv_gas_minor_version -ge 11 \
7582 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7585 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7586 gcc_cv_as_leb128
="yes"
7592 elif test x
$gcc_cv_as != x
; then
7593 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7594 cat > conftest.s
<<EOF
7602 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7603 gcc_cv_as_leb128
="yes"
7605 # GAS versions before 2.11 do not support uleb128,
7606 # despite appearing to.
7607 # ??? There exists an elf-specific test that will crash
7608 # the assembler. Perhaps it's better to figure out whether
7609 # arbitrary sections are supported and try the test.
7610 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7611 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7612 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7613 as_major
=`echo $as_ver | sed 's/\..*//'`
7614 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7615 if test $as_major -eq 2 -a $as_minor -lt 11; then
7616 gcc_cv_as_leb128
="no"
7620 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7622 if test x
"$gcc_cv_as_leb128" = xyes
; then
7623 cat >> confdefs.h
<<\EOF
7624 #define HAVE_AS_LEB128 1
7628 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7630 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7631 echo "configure:7632: checking assembler eh_frame optimization" >&5
7632 gcc_cv_as_eh_frame
=no
7633 if test $in_tree_gas = yes ; then
7634 if test $gcc_cv_gas_major_version -eq 2 \
7635 && test $gcc_cv_gas_minor_version -ge 12 \
7636 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7639 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7640 gcc_cv_as_eh_frame
="yes"
7646 elif test x
$gcc_cv_as != x
; then
7647 # Check if this is GAS.
7648 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7649 rm -f a.out
2> /dev
/null
7650 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7651 # Versions up to and including 2.11.0 may mis-optimize
7652 # .eh_frame data. Try something.
7653 cat > conftest.s
<<EOF
7660 .section .eh_frame,"aw",@progbits
7662 .4byte .LECIE1-.LSCIE1
7676 .4byte .LEFDE1-.LASFDE1
7678 .4byte .LASFDE1-__FRAME_BEGIN__
7687 cat > conftest.lit
<<EOF
7688 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7689 0010 01000000 12000000 18000000 00000000 ................
7690 0020 08000000 04080000 0044 .........D
7692 cat > conftest.big
<<EOF
7693 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7694 0010 00000001 00000012 00000018 00000000 ................
7695 0020 00000008 04000000 0844 .........D
7697 # If the assembler didn't choke, and we can objdump,
7698 # and we got the correct data, then succeed.
7699 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7700 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7701 |
tail -3 > conftest.got \
7702 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7703 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7705 gcc_cv_as_eh_frame
="yes"
7707 gcc_cv_as_eh_frame
="bad"
7708 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7709 cat >> confdefs.h
<<\EOF
7710 #define USE_AS_TRADITIONAL_FORMAT 1
7718 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7720 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7721 echo "configure:7722: checking assembler section merging support" >&5
7722 gcc_cv_as_shf_merge
=no
7723 if test $in_tree_gas = yes ; then
7724 if test $gcc_cv_gas_major_version -eq 2 \
7725 && test $gcc_cv_gas_minor_version -ge 12 \
7726 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7729 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7730 gcc_cv_as_shf_merge
=yes
7736 elif test x
$gcc_cv_as != x
; then
7737 # Check if we support SHF_MERGE sections
7738 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7739 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7740 gcc_cv_as_shf_merge
=yes
7742 rm -f conftest.s conftest.o
7744 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7745 cat >> confdefs.h
<<\EOF
7746 #define HAVE_GAS_SHF_MERGE 1
7750 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7752 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6
7753 echo "configure:7754: checking assembler thread-local storage support" >&5
7762 .section ".tdata","awT",@progbits
7765 ldq $27,__tls_get_addr($29) !literal!1
7766 lda $16,foo($29) !tlsgd!1
7767 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
7768 ldq $27,__tls_get_addr($29) !literal!2
7769 lda $16,foo($29) !tlsldm!2
7770 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
7771 ldq $1,foo($29) !gotdtprel
7772 ldah $2,foo($29) !dtprelhi
7773 lda $3,foo($2) !dtprello
7774 lda $4,foo($29) !dtprel
7775 ldq $1,foo($29) !gottprel
7776 ldah $2,foo($29) !tprelhi
7777 lda $3,foo($2) !tprello
7778 lda $4,foo($29) !tprel'
7784 .section ".tdata","awT",@progbits
7788 leal foo@TLSGD(,%ebx,1), %eax
7789 leal foo@TLSLDM(%ebx), %eax
7790 leal foo@DTPOFF(%eax), %edx
7791 movl foo@GOTTPOFF(%ebx), %eax
7792 subl foo@GOTTPOFF(%ebx), %eax
7793 addl foo@GOTNTPOFF(%ebx), %eax
7794 movl foo@INDNTPOFF, %eax
7795 movl $foo@TPOFF, %eax
7796 subl $foo@TPOFF, %eax
7797 leal foo@NTPOFF(%ecx), %eax'
7803 .section ".tdata","awT",@progbits
7807 leaq foo@TLSGD(%rip), %rdi
7808 leaq foo@TLSLD(%rip), %rdi
7809 leaq foo@DTPOFF(%rax), %rdx
7810 movq foo@GOTTPOFF(%rip), %rax
7811 movq $foo@TPOFF, %rax'
7817 .section ".tdata","awT",@progbits
7820 addl r16 = @ltoff(@dtpmod(foo#)), gp
7821 addl r17 = @ltoff(@dtprel(foo#)), gp
7822 addl r18 = @ltoff(@tprel(foo#)), gp
7823 addl r19 = @dtprel(foo#), gp
7824 adds r21 = @dtprel(foo#), r13
7825 movl r23 = @dtprel(foo#)
7826 addl r20 = @tprel(foo#), gp
7827 adds r22 = @tprel(foo#), r13
7828 movl r24 = @tprel(foo#)'
7834 .section ".tdata","awT",@progbits
7842 addi 3,31,ld0@got@tlsgd
7844 addi 3,31,x1@got@tlsld
7847 addis 9,3,x2@dtprel@ha
7848 addi 9,9,x2@dtprel@l
7849 lwz 9,x3@got@tprel(31)
7852 addis 9,2,x2@tprel@ha
7853 addi 9,9,x2@tprel@l'
7860 .section ".tdata","awT",@progbits
7868 addi 3,2,ld0@got@tlsgd
7874 addi 3,2,x1@got@tlsld
7880 addis 9,3,x2@dtprel@ha
7881 addi 9,9,x2@dtprel@l
7884 ld 9,x3@got@dtprel(2)
7894 .section ".tdata","awT",@progbits
7903 l %r1,foo@GOTNTPOFF(%r12)
7904 l %r1,0(%r1):tls_load:foo
7905 bas %r14,0(%r1,%r13):tls_gdcall:foo
7906 bas %r14,0(%r1,%r13):tls_ldcall:foo'
7913 .section ".tdata","awT",@progbits
7921 lg %r1,foo@GOTNTPOFF(%r12)
7922 larl %r1,foo@INDNTPOFF
7923 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
7924 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
7927 tls_as_opt
="-m64 -Aesame"
7930 if test -z "$tls_first_major"; then
7932 elif test $in_tree_gas = yes ; then
7933 if test $gcc_cv_gas_major_version -eq $tls_first_major \
7934 && test $gcc_cv_gas_minor_version -ge $tls_first_minor \
7935 ||
test $gcc_cv_gas_major_version -gt $tls_first_major ; then
7943 elif test x
$gcc_cv_as != x
; then
7944 echo "$conftest_s" > conftest.s
7945 if $gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
7949 rm -f conftest.s conftest.o
7951 if test "$gcc_cv_as_tls" = yes; then
7952 cat >> confdefs.h
<<\EOF
7953 #define HAVE_AS_TLS 1
7957 echo "$ac_t""$gcc_cv_as_tls" 1>&6
7960 # All TARGET_ABI_OSF targets.
7961 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7962 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7963 echo "configure:7964: checking assembler supports explicit relocations" >&5
7964 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7968 gcc_cv_as_explicit_relocs
=unknown
7969 if test $in_tree_gas = yes ; then
7970 if test $gcc_cv_gas_major_version -eq 2 \
7971 && test $gcc_cv_gas_minor_version -ge 12 \
7972 ||
test $gcc_cv_gas_major_version -gt 2 ; then
7975 gcc_cv_as_explicit_relocs
=yes
7980 elif test x
$gcc_cv_as != x
; then
7981 cat > conftest.s
<< 'EOF'
7984 extbl
$3, $2, $3 !lituse_bytoff
!1
7985 ldq
$2, a
($29) !literal
!1
7986 ldq
$4, b
($29) !literal
!2
7987 ldq_u
$3, 0($2) !lituse_base
!1
7988 ldq
$27, f
($29) !literal
!5
7989 jsr
$26, ($27), f
!lituse_jsr
!5
7990 ldah
$29, 0($26) !gpdisp
!3
7991 lda
$0, c
($29) !gprel
7992 ldah
$1, d
($29) !gprelhigh
7993 lda
$1, d
($1) !gprellow
7994 lda
$29, 0($29) !gpdisp
!3
7996 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7997 gcc_cv_as_explicit_relocs
=yes
7999 gcc_cv_as_explicit_relocs
=no
8001 rm -f conftest.s conftest.o
8006 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
8007 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
8008 cat >> confdefs.h
<<\EOF
8009 #define HAVE_AS_EXPLICIT_RELOCS 1
8015 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8016 echo "configure:8017: checking assembler .register pseudo-op support" >&5
8017 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8018 echo $ac_n "(cached) $ac_c" 1>&6
8021 gcc_cv_as_register_pseudo_op
=unknown
8022 if test x
$gcc_cv_as != x
; then
8023 # Check if we have .register
8024 echo ".register %g2, #scratch" > conftest.s
8025 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8026 gcc_cv_as_register_pseudo_op
=yes
8028 gcc_cv_as_register_pseudo_op
=no
8030 rm -f conftest.s conftest.o
8035 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8036 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8037 cat >> confdefs.h
<<\EOF
8038 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8043 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
8044 echo "configure:8045: checking assembler supports -relax" >&5
8045 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6
8049 gcc_cv_as_relax_opt
=unknown
8050 if test x
$gcc_cv_as != x
; then
8051 # Check if gas supports -relax
8052 echo ".text" > conftest.s
8053 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
8054 gcc_cv_as_relax_opt
=yes
8056 gcc_cv_as_relax_opt
=no
8058 rm -f conftest.s conftest.o
8063 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
8064 if test "x$gcc_cv_as_relax_opt" = xyes
; then
8065 cat >> confdefs.h
<<\EOF
8066 #define HAVE_AS_RELAX_OPTION 1
8071 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
8072 echo "configure:8073: checking assembler and linker support unaligned pc related relocs" >&5
8073 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8077 gcc_cv_as_sparc_ua_pcrel
=unknown
8078 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
8079 gcc_cv_as_sparc_ua_pcrel
=no
8080 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
8081 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
8082 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
8083 gcc_cv_as_sparc_ua_pcrel
=yes
8085 rm -f conftest.s conftest.o conftest
8090 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
8091 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
8092 cat >> confdefs.h
<<\EOF
8093 #define HAVE_AS_SPARC_UA_PCREL 1
8098 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
8099 echo "configure:8100: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
8100 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8104 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
8105 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
8106 if test x
$gcc_cv_objdump != x
; then
8107 gcc_cv_as_sparc_ua_pcrel_hidden
=no
8108 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
8109 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
8110 echo "foo: .skip 4" >> conftest.s
8111 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
8112 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
8113 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
8114 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
8115 if $gcc_cv_objdump -R conftest
2> /dev
/null \
8116 |
grep 'DISP32' > /dev
/null
2>&1; then
8119 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
8123 rm -f conftest.s conftest.o conftest
8125 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
8130 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
8131 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
8132 cat >> confdefs.h
<<\EOF
8133 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
8138 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8139 echo "configure:8140: checking for assembler offsetable %lo() support" >&5
8140 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8144 gcc_cv_as_offsetable_lo10
=unknown
8145 if test "x$gcc_cv_as" != x
; then
8146 # Check if assembler has offsetable %lo()
8147 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8148 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8149 if $gcc_cv_as -xarch=v9
-o conftest.o conftest.s \
8151 $gcc_cv_as -xarch=v9
-o conftest1.o conftest1.s \
8152 > /dev
/null
2>&1; then
8153 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8154 gcc_cv_as_offsetable_lo10
=no
8156 gcc_cv_as_offsetable_lo10
=yes
8159 gcc_cv_as_offsetable_lo10
=no
8161 rm -f conftest.s conftest.o conftest1.s conftest1.o
8166 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8167 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8168 cat >> confdefs.h
<<\EOF
8169 #define HAVE_AS_OFFSETABLE_LO10 1
8176 i
[34567]86-*-* | x86_64-
*-*)
8177 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8178 echo "configure:8179: checking assembler instructions" >&5
8179 gcc_cv_as_instructions
=
8180 if test $in_tree_gas = yes ; then
8181 if test $gcc_cv_gas_major_version -eq 2 \
8182 && test $gcc_cv_gas_minor_version -ge 9 \
8183 ||
test $gcc_cv_gas_major_version -gt 2 ; then
8186 gcc_cv_as_instructions
="filds fists"
8191 elif test x
$gcc_cv_as != x
; then
8192 set "filds fists" "filds mem; fists mem"
8195 echo "$2" > conftest.s
8196 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8197 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8201 rm -f conftest.s conftest.o
8203 if test x
"$gcc_cv_as_instructions" != x
; then
8204 cat >> confdefs.h
<<EOF
8205 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
8209 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8211 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
8212 echo "configure:8213: checking assembler GOTOFF in data directives" >&5
8213 gcc_cv_as_gotoff_in_data
=no
8214 if test $in_tree_gas = yes ; then
8215 if test $gcc_cv_gas_major_version -eq 2 \
8216 && test $gcc_cv_gas_minor_version -ge 11 \
8217 ||
test $gcc_cv_gas_major_version -gt 2 ; then
8220 gcc_cv_as_gotoff_in_data
=yes
8225 elif test x
$gcc_cv_as != x
; then
8226 cat > conftest.s
<<EOF
8233 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8234 gcc_cv_as_gotoff_in_data
=yes
8237 cat >> confdefs.h
<<EOF
8238 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
8241 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
8245 echo $ac_n "checking assembler supports ltoffx and ldxmov""... $ac_c" 1>&6
8246 echo "configure:8247: checking assembler supports ltoffx and ldxmov" >&5
8247 if eval "test \"`echo '$''{'gcc_cv_as_ltoffx_ldxmov_relocs'+set}'`\" = set"; then
8248 echo $ac_n "(cached) $ac_c" 1>&6
8251 gcc_cv_as_ltoffx_ldxmov_relocs
=unknown
8252 if test $in_tree_gas = yes ; then
8253 if test $gcc_cv_gas_major_version -eq 2 \
8254 && test $gcc_cv_gas_minor_version -ge 14 \
8255 ||
test $gcc_cv_gas_major_version -gt 2 ; then
8258 gcc_cv_as_ltoffx_ldxmov_relocs
=yes
8263 elif test x
$gcc_cv_as != x
; then
8264 cat > conftest.s
<< 'EOF'
8266 addl r15
= @ltoffx
(x
#), gp
8268 ld8.mov r16
= [r15
], x
#
8270 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8271 gcc_cv_as_ltoffx_ldxmov_relocs
=yes
8273 gcc_cv_as_ltoffx_ldxmov_relocs
=no
8275 rm -f conftest.s conftest.o
8280 echo "$ac_t""$gcc_cv_as_ltoffx_ldxmov_relocs" 1>&6
8281 if test "x$gcc_cv_as_ltoffx_ldxmov_relocs" = xyes
; then
8282 cat >> confdefs.h
<<\EOF
8283 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
8290 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
8291 echo "configure:8292: checking assembler dwarf2 debug_line support" >&5
8292 gcc_cv_as_dwarf2_debug_line
=no
8293 # ??? Not all targets support dwarf2 debug_line, even within a version
8294 # of gas. Moreover, we need to emit a valid instruction to trigger any
8295 # info to the output file. So, as supported targets are added to gas 2.11,
8296 # add some instruction here to (also) show we expect this might work.
8297 # ??? Once 2.11 is released, probably need to add first known working
8298 # version to the per-target configury.
8300 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
8301 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
8302 | xstormy16
*-*-* | cris-
*-*)
8312 if test $in_tree_gas = yes ; then
8313 if test $gcc_cv_gas_major_version -eq 2 \
8314 && test $gcc_cv_gas_minor_version -ge 11 \
8315 ||
test $gcc_cv_gas_major_version -gt 2 ; then
8318 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
8319 && test x
"$insn" != x
; then
8320 gcc_cv_as_dwarf2_debug_line
="yes"
8326 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
8327 echo ' .file 1 "conftest.s"' > conftest.s
8328 echo ' .loc 1 3 0' >> conftest.s
8329 echo " $insn" >> conftest.s
8330 # ??? This fails with non-gnu grep.
8331 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
8332 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
8333 # The .debug_line file table must be in the exact order that
8334 # we specified the files, since these indices are also used
8335 # by DW_AT_decl_file. Approximate this test by testing if
8336 # the assembler bitches if the same index is assigned twice.
8337 echo ' .file 1 "foo.s"' > conftest.s
8338 echo ' .file 1 "bar.s"' >> conftest.s
8339 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
8341 gcc_cv_as_dwarf2_debug_line
="no"
8343 gcc_cv_as_dwarf2_debug_line
="yes"
8346 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8348 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
8349 cat >> confdefs.h
<<\EOF
8350 #define HAVE_AS_DWARF2_DEBUG_LINE 1
8354 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
8356 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
8357 echo "configure:8358: checking assembler --gdwarf2 support" >&5
8358 gcc_cv_as_gdwarf2_flag
=no
8359 if test $in_tree_gas = yes ; then
8360 if test $gcc_cv_gas_major_version -eq 2 \
8361 && test $gcc_cv_gas_minor_version -ge 11 \
8362 ||
test $gcc_cv_gas_major_version -gt 2 ; then
8365 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
8366 && test x
"$insn" != x
; then
8367 gcc_cv_as_gdwarf2_flag
="yes"
8373 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
8374 echo '' > conftest.s
8375 # ??? This fails with non-gnu grep.
8376 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
8378 gcc_cv_as_gdwarf2_flag
="yes"
8380 rm -f conftest.s conftest.o
8382 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
8383 cat >> confdefs.h
<<\EOF
8384 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
8388 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
8390 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
8391 echo "configure:8392: checking assembler --gstabs support" >&5
8392 gcc_cv_as_gstabs_flag
=no
8393 if test $in_tree_gas = yes ; then
8394 if test $gcc_cv_gas_major_version -eq 2 \
8395 && test $gcc_cv_gas_minor_version -ge 11 \
8396 ||
test $gcc_cv_gas_major_version -gt 2 ; then
8399 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
8400 && test x
"$insn" != x
; then
8401 gcc_cv_as_gstabs_flag
="yes"
8407 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
8408 echo '' > conftest.s
8409 # ??? This fails with non-gnu grep.
8410 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
8411 gcc_cv_as_gstabs_flag
="yes"
8413 rm -f conftest.s conftest.o
8415 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
8416 cat >> confdefs.h
<<\EOF
8417 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
8421 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
8423 echo $ac_n "checking linker read-only and read-write section mixing""... $ac_c" 1>&6
8424 echo "configure:8425: checking linker read-only and read-write section mixing" >&5
8425 gcc_cv_ld_ro_rw_mix
=unknown
8426 if test $in_tree_ld = yes ; then
8427 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ..
/ld
/Makefile
> /dev
/null
; then
8428 gcc_cv_ld_ro_rw_mix
=read-write
8430 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
8431 echo '.section myfoosect, "a"' > conftest1.s
8432 echo '.section myfoosect, "aw"' > conftest2.s
8433 echo '.byte 1' >> conftest2.s
8434 echo '.section myfoosect, "a"' > conftest3.s
8435 echo '.byte 0' >> conftest3.s
8436 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
8437 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
8438 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
8439 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
8440 conftest2.o conftest3.o
> /dev
/null
2>&1; then
8441 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
8442 | sed -e '/myfoosect/!d' -e N`
8443 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
8444 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
8445 gcc_cv_ld_ro_rw_mix
=read-only
8447 gcc_cv_ld_ro_rw_mix
=read-write
8451 rm -f conftest.
* conftest
[123].
*
8453 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
8454 cat >> confdefs.h
<<\EOF
8455 #define HAVE_LD_RO_RW_SECTION_MIXING 1
8459 echo "$ac_t""$gcc_cv_ld_ro_rw_mix" 1>&6
8461 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
8462 echo "configure:8463: checking linker PT_GNU_EH_FRAME support" >&5
8463 gcc_cv_ld_eh_frame_hdr
=no
8464 if test $in_tree_ld = yes ; then
8465 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
8466 gcc_cv_ld_eh_frame_hdr
=yes
8468 elif test x
$gcc_cv_ld != x
; then
8469 # Check if linker supports --eh-frame-hdr option
8470 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
8471 gcc_cv_ld_eh_frame_hdr
=yes
8474 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
8475 cat >> confdefs.h
<<\EOF
8476 #define HAVE_LD_EH_FRAME_HDR 1
8480 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
8482 echo $ac_n "checking linker position independent executable support""... $ac_c" 1>&6
8483 echo "configure:8484: checking linker position independent executable support" >&5
8485 if test $in_tree_ld = yes ; then
8486 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ..
/ld
/Makefile
> /dev
/null
; then
8489 elif test x
$gcc_cv_ld != x
; then
8490 # Check if linker supports -pie option
8491 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
8495 if test x
"$gcc_cv_ld_pie" = xyes
; then
8496 cat >> confdefs.h
<<\EOF
8497 #define HAVE_LD_PIE 1
8501 echo "$ac_t""$gcc_cv_ld_pie" 1>&6
8503 # Miscellaneous target-specific checks.
8506 echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6
8507 echo "configure:8508: checking whether libgloss uses STARTUP directives consistently" >&5
8508 gcc_cv_mips_libgloss_startup
=no
8509 gcc_cv_libgloss_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
8510 if test "x$exec_prefix" = xNONE
; then
8511 if test "x$prefix" = xNONE
; then
8512 test_prefix
=/usr
/local
8517 test_prefix
=$exec_prefix
8519 for f
in $gcc_cv_libgloss_srcdir/mips
/idt.ld
$test_prefix/$target_alias/lib
/idt.ld
8521 if grep '^STARTUP' $f > /dev
/null
2>&1; then
8522 gcc_cv_mips_libgloss_startup
=yes
8526 if test x
"$gcc_cv_mips_libgloss_startup" = xyes
; then
8527 cat >> confdefs.h
<<\EOF
8528 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
8532 echo "$ac_t""$gcc_cv_mips_libgloss_startup" 1>&6
8534 echo $ac_n "checking whether the assembler has explicit relocation support""... $ac_c" 1>&6
8535 echo "configure:8536: checking whether the assembler has explicit relocation support" >&5
8536 if test x
$gcc_cv_mips_explicit_relocs = x
; then
8537 gcc_cv_mips_explicit_relocs
=no
8538 if test $in_tree_gas = yes; then
8539 if test $gcc_cv_gas_major_version -eq 2 \
8540 && test $gcc_cv_gas_minor_version -ge 14 \
8541 ||
test $gcc_cv_gas_major_version -gt 2 ; then
8544 gcc_cv_mips_explicit_relocs
=yes
8549 elif test x
$gcc_cv_as != x
; then
8550 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
8551 if $gcc_cv_as conftest.s
-o conftest.o
> /dev
/null
2>&1; then
8552 gcc_cv_mips_explicit_relocs
=yes
8554 rm -f conftest.s conftest.o
8557 if test $gcc_cv_mips_explicit_relocs = yes; then
8558 test x
$target_cpu_default != x || target_cpu_default
=0
8559 target_cpu_default
="(${target_cpu_default}|MASK_EXPLICIT_RELOCS)"
8561 echo "$ac_t""$gcc_cv_mips_explicit_relocs" 1>&6
8565 if test x
$with_sysroot = x
&& test x
$host = x
$target \
8566 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
8567 cat >> confdefs.h
<<EOF
8568 #define PREFIX_INCLUDE_DIR "$prefix/include"
8573 # Figure out what language subdirectories are present.
8574 # Look if the user specified --enable-languages="..."; if not, use
8575 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8577 # NB: embedded tabs in this IF block -- do not untabify
8578 if test x
"${enable_languages+set}" != xset
; then
8579 if test x
"${LANGUAGES+set}" = xset
; then
8580 enable_languages
="${LANGUAGES}"
8581 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
8584 enable_languages
=all
8587 if test x
"${enable_languages}" = x \
8588 ||
test x
"${enable_languages}" = xyes
;
8590 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
8593 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8595 # First scan to see if an enabled language requires some other language.
8596 # We assume that a given config-lang.in will list all the language
8597 # front ends it requires, even if some are required indirectly.
8598 for lang
in ${srcdir}/*/config-lang.
in ..
8603 # The odd quoting in the next line works around
8604 # an apparent bug in bash 1.12 on linux.
8605 ${srcdir}/[*]/config-lang.
in)
8608 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8609 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
8610 for other
in $this_lang_requires
8612 case ,${enable_languages}, in
8618 enable_languages
="$enable_languages,$other"
8626 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
8629 for lang
in ${srcdir}/*/config-lang.
in ..
8633 # The odd quoting in the next line works around
8634 # an apparent bug in bash 1.12 on linux.
8635 ${srcdir}/[*]/config-lang.
in) ;;
8637 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8638 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
8639 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
8640 if test "x$lang_alias" = x
8642 echo "$lang doesn't set \$language." 1>&2
8645 case ${build_by_default},${enable_languages}, in
8646 *,$lang_alias,*) add_this_lang
=yes ;;
8647 no
,*) add_this_lang
=no
;;
8648 *,all
,*) add_this_lang
=yes ;;
8649 *) add_this_lang
=no
;;
8651 found_languages
="${found_languages} ${lang_alias}"
8652 if test x
"${add_this_lang}" = xyes
; then
8654 ${srcdir}/ada
/config-lang.
in)
8655 if test x
$have_gnat = xyes
; then
8656 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8660 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8669 for expected_language
in ${expected_languages} ..
8671 if test "${expected_language}" != ..
; then
8672 missing_language
="${expected_language}"
8673 if test "${expected_language}" = "c" \
8674 ||
test "${expected_language}" = "all"; then
8677 for found_language
in ${found_languages} ..
8679 if test "${found_language}" != ..
; then
8680 if test "${expected_language}" = "${found_language}"; then
8685 if test "x${missing_language}" != x
; then
8686 missing_languages
="${missing_languages} ${missing_language}"
8691 if test "x$missing_languages" != x
; then
8692 { echo "configure: error:
8693 The following requested languages were not found:${missing_languages}
8694 The following languages were available: c${found_languages}" 1>&2; exit 1; }
8697 # Make gthr-default.h if we have a thread file.
8699 if test $thread_file != single
; then
8700 rm -f gthr-default.h
8701 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8702 gthread_flags
=-DHAVE_GTHR_DEFAULT
8706 # Find out what GC implementation we want, or may, use.
8707 # Check whether --with-gc or --without-gc was given.
8708 if test "${with_gc+set}" = set; then
8715 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8723 echo "Using $GGC for garbage collection."
8725 # Use the system's zlib library.
8727 zlibinc
="-I\$(srcdir)/../zlib"
8728 # Check whether --with-system-zlib or --without-system-zlib was given.
8729 if test "${with_system_zlib+set}" = set; then
8730 withval
="$with_system_zlib"
8740 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8741 echo "configure:8742: checking whether to enable maintainer-specific portions of Makefiles" >&5
8742 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8743 if test "${enable_maintainer_mode+set}" = set; then
8744 enableval
="$enable_maintainer_mode"
8745 maintainer_mode
=$enableval
8751 echo "$ac_t""$maintainer_mode" 1>&6
8753 if test "$maintainer_mode" = "yes"; then
8759 # Make empty files to contain the specs and options for each language.
8760 # Then add #include lines to for a compiler that has specs and/or options.
8766 for subdir
in .
$subdirs
8768 if test -f $srcdir/$subdir/lang.opt
; then
8769 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
8771 if test -f $srcdir/$subdir/lang-specs.h
; then
8772 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8774 if test -f $srcdir/$subdir/lang-options.h
; then
8775 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8777 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8778 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8782 # These (without "all_") are set in each config-lang.in.
8783 # `language' must be a single word so is spelled singularly.
8788 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
8789 # List of language makefile fragments.
8791 # Files for gengtype
8792 all_gtfiles
="$target_gtfiles"
8793 # Files for gengtype with language
8794 all_gtfiles_files_langs
=
8795 all_gtfiles_files_files
=
8797 # Add the language fragments.
8798 # Languages are added via two mechanisms. Some information must be
8799 # recorded in makefile variables, these are defined in config-lang.in.
8800 # We accumulate them and plug them into the main Makefile.
8801 # The other mechanism is a set of hooks for each of the main targets
8802 # like `clean', `install', etc.
8804 language_fragments
="Make-lang"
8805 language_hooks
="Make-hooks"
8807 for s
in ..
$subdirs
8817 .
${srcdir}/$s/config-lang.
in
8818 if test "x$language" = x
8820 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8823 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8824 if test -f ${srcdir}/$s/Makefile.
in
8825 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8827 all_languages
="$all_languages $language"
8828 if test "x$boot_language" = xyes
8830 all_boot_languages
="$all_boot_languages $language"
8832 all_compilers
="$all_compilers $compilers"
8833 all_stagestuff
="$all_stagestuff $stagestuff"
8834 all_outputs
="$all_outputs $outputs"
8835 all_gtfiles
="$all_gtfiles $gtfiles"
8836 for f
in ..
$gtfiles
8840 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
8841 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
8847 # Pick up gtfiles for c
8850 .
${srcdir}/c-config-lang.
in
8851 all_gtfiles
="$all_gtfiles $gtfiles"
8852 for f
in ..
$gtfiles
8856 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
8857 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
8862 for language
in ..
$all_languages
8864 if test $language != ".."
8866 check_languages
="$check_languages check-$language"
8870 # Since we can't use `::' targets, we link each language in
8871 # with a set of hooks, reached indirectly via lang.${target}.
8875 target_list
="all.build all.cross start.encap rest.encap tags \
8876 info dvi generated-manpages \
8877 install-normal install-common install-info install-man \
8879 mostlyclean clean distclean extraclean maintainer-clean \
8880 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
8881 for t
in $target_list
8884 for lang
in ..
$all_languages
8886 if test $lang != ".."; then
8890 echo "lang.$t: $x" >> Make-hooks
8895 echo "dir ." > .gdbinit
8896 echo "dir ${srcdir}" >> .gdbinit
8897 if test x
$gdb_needs_out_file_path = xyes
8899 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8901 if test "x$subdirs" != x
; then
8904 echo "dir ${srcdir}/$s" >> .gdbinit
8907 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8909 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8910 # absolute path for gcc_tooldir based on inserting the number of up-directory
8911 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8912 # $(libsubdir)/@(unlibsubdir) based path.
8913 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8914 # make and thus we'd get different behavior depending on where we built the
8916 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8917 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8919 # An explanation of the sed strings:
8920 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8921 # -e 's|/$||' match a trailing forward slash and eliminates it
8922 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8923 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8925 # (*) Note this pattern overwrites the first character of the string
8926 # with a forward slash if one is not already present. This is not a
8927 # problem because the exact names of the sub-directories concerned is
8928 # unimportant, just the number of them matters.
8930 # The practical upshot of these patterns is like this:
8932 # prefix exec_prefix result
8933 # ------ ----------- ------
8935 # /foo/ /foo/bar ../
8936 # /foo /foo/bar/ ../
8937 # /foo/ /foo/bar/ ../
8938 # /foo /foo/bar/ugg ../../
8941 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8946 # Find a directory in which to install a shared libgcc.
8948 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8949 if test "${enable_version_specific_runtime_libs+set}" = set; then
8950 enableval
="$enable_version_specific_runtime_libs"
8955 # Check whether --with-slibdir or --without-slibdir was given.
8956 if test "${with_slibdir+set}" = set; then
8957 withval
="$with_slibdir"
8958 slibdir
="$with_slibdir"
8960 if test "${enable_version_specific_runtime_libs+set}" = set; then
8961 slibdir
='$(libsubdir)'
8962 elif test "$host" != "$target"; then
8963 slibdir
='$(build_tooldir)/lib'
8971 objdir
=`${PWDCMD-pwd}`
8974 # Process the language and host/target makefile fragments.
8975 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8977 # Substitute configuration variables
9048 # Echo that links are built
9049 if test x
$host = x
$target
9057 if test x
$host != x
$build
9059 str3
=" on a $build system"
9062 if test "x$str2" != x ||
test "x$str3" != x
9067 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9069 if test "x$str2" != x ||
test "x$str3" != x
9071 echo " ${str2}${str3}." 1>&2
9074 # Configure the subdirectories
9075 # AC_CONFIG_SUBDIRS($subdirs)
9077 # Create the Makefile
9078 # and configure language subdirectories
9080 cat > confcache
<<\EOF
9081 # This file is a shell script that caches the results of configure
9082 # tests run on this system so they can be shared between configure
9083 # scripts and configure runs. It is not useful on other systems.
9084 # If it contains results you don't want to keep, you may remove or edit it.
9086 # By default, configure uses ./config.cache as the cache file,
9087 # creating it if it does not exist already. You can give configure
9088 # the --cache-file=FILE option to use a different cache file; that is
9089 # what configure does when it calls configure scripts in
9090 # subdirectories, so they share the cache.
9091 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9092 # config.status only pays attention to the cache file if you give it the
9093 # --recheck option to rerun configure.
9096 # The following way of writing the cache mishandles newlines in values,
9097 # but we know of no workaround that is simple, portable, and efficient.
9098 # So, don't put newlines in cache variables' values.
9099 # Ultrix sh set writes to stderr and can't be redirected directly,
9100 # and sets the high bit in the cache file unless we assign to the vars.
9102 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9104 # `set' does not quote correctly, so add quotes (double-quote substitution
9105 # turns \\\\ into \\, and sed turns \\ into \).
9107 -e "s/'/'\\\\''/g" \
9108 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9111 # `set' quotes correctly as required by POSIX, so do not add quotes.
9112 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9115 if cmp -s $cache_file confcache
; then
9118 if test -w $cache_file; then
9119 echo "updating cache $cache_file"
9120 cat confcache
> $cache_file
9122 echo "not updating unwritable cache $cache_file"
9127 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9129 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9130 # Let make expand exec_prefix.
9131 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9133 # Any assignment to VPATH causes Sun make to only execute
9134 # the first set of double-colon rules, so remove it if not needed.
9135 # If there is a colon in the path, we need to keep it.
9136 if test "x$srcdir" = x.
; then
9137 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9140 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9142 DEFS
=-DHAVE_CONFIG_H
9144 # Without the "./", some shells look in PATH for config.status.
9145 : ${CONFIG_STATUS=./config.status}
9147 echo creating
$CONFIG_STATUS
9148 rm -f $CONFIG_STATUS
9149 cat > $CONFIG_STATUS <<EOF
9151 # Generated automatically by configure.
9152 # Run this file to recreate the current configuration.
9153 # This directory was configured as follows,
9154 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9156 # $0 $ac_configure_args
9158 # Compiler output produced by configure, useful for debugging
9159 # configure, is in ./config.log if it exists.
9161 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9164 case "\$ac_option" in
9165 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9166 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9167 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9168 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9169 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9171 -help | --help | --hel | --he | --h)
9172 echo "\$ac_cs_usage"; exit 0 ;;
9173 *) echo "\$ac_cs_usage"; exit 1 ;;
9177 ac_given_srcdir=$srcdir
9179 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9181 cat >> $CONFIG_STATUS <<EOF
9183 # Protect against being on the right side of a sed subst in config.status.
9184 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9185 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9189 s%@CFLAGS@%$CFLAGS%g
9190 s%@CPPFLAGS@%$CPPFLAGS%g
9191 s%@CXXFLAGS@%$CXXFLAGS%g
9192 s%@FFLAGS@%$FFLAGS%g
9194 s%@LDFLAGS@%$LDFLAGS%g
9196 s%@exec_prefix@%$exec_prefix%g
9197 s%@prefix@%$prefix%g
9198 s%@program_transform_name@%$program_transform_name%g
9199 s%@bindir@%$bindir%g
9200 s%@sbindir@%$sbindir%g
9201 s%@libexecdir@%$libexecdir%g
9202 s%@datadir@%$datadir%g
9203 s%@sysconfdir@%$sysconfdir%g
9204 s%@sharedstatedir@%$sharedstatedir%g
9205 s%@localstatedir@%$localstatedir%g
9206 s%@libdir@%$libdir%g
9207 s%@includedir@%$includedir%g
9208 s%@oldincludedir@%$oldincludedir%g
9209 s%@infodir@%$infodir%g
9210 s%@mandir@%$mandir%g
9212 s%@host_alias@%$host_alias%g
9213 s%@host_cpu@%$host_cpu%g
9214 s%@host_vendor@%$host_vendor%g
9215 s%@host_os@%$host_os%g
9216 s%@target@%$target%g
9217 s%@target_alias@%$target_alias%g
9218 s%@target_cpu@%$target_cpu%g
9219 s%@target_vendor@%$target_vendor%g
9220 s%@target_os@%$target_os%g
9222 s%@build_alias@%$build_alias%g
9223 s%@build_cpu@%$build_cpu%g
9224 s%@build_vendor@%$build_vendor%g
9225 s%@build_os@%$build_os%g
9226 s%@build_subdir@%$build_subdir%g
9227 s%@host_subdir@%$host_subdir%g
9228 s%@target_subdir@%$target_subdir%g
9230 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9231 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
9233 s%@GNATBIND@%$GNATBIND%g
9235 s%@strict1_warn@%$strict1_warn%g
9236 s%@warn_cflags@%$warn_cflags%g
9237 s%@WERROR@%$WERROR%g
9238 s%@nocommon_flag@%$nocommon_flag%g
9239 s%@valgrind_path@%$valgrind_path%g
9240 s%@valgrind_path_defines@%$valgrind_path_defines%g
9241 s%@valgrind_command@%$valgrind_command%g
9242 s%@coverage_flags@%$coverage_flags%g
9243 s%@enable_multilib@%$enable_multilib%g
9244 s%@enable_shared@%$enable_shared%g
9245 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g
9246 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g
9247 s%@CROSS_SYSTEM_HEADER_DIR@%$CROSS_SYSTEM_HEADER_DIR%g
9248 s%@SET_MAKE@%$SET_MAKE%g
9252 s%@RANLIB@%$RANLIB%g
9253 s%@INSTALL@%$INSTALL%g
9254 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9255 s%@INSTALL_DATA@%$INSTALL_DATA%g
9256 s%@have_mktemp_command@%$have_mktemp_command%g
9257 s%@MAKEINFO@%$MAKEINFO%g
9258 s%@BUILD_INFO@%$BUILD_INFO%g
9259 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
9260 s%@make_compare_target@%$make_compare_target%g
9263 s%@stage1_cflags@%$stage1_cflags%g
9264 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
9265 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
9266 s%@LDEXP_LIB@%$LDEXP_LIB%g
9267 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9268 s%@LIBICONV@%$LIBICONV%g
9269 s%@manext@%$manext%g
9270 s%@objext@%$objext%g
9271 s%@extra_modes_file@%$extra_modes_file%g
9272 s%@FORBUILD@%$FORBUILD%g
9273 s%@PACKAGE@%$PACKAGE%g
9274 s%@VERSION@%$VERSION%g
9275 s%@ALLOCA@%$ALLOCA%g
9276 s%@GLIBC21@%$GLIBC21%g
9277 s%@USE_NLS@%$USE_NLS%g
9278 s%@MSGFMT@%$MSGFMT%g
9279 s%@GMSGFMT@%$GMSGFMT%g
9280 s%@XGETTEXT@%$XGETTEXT%g
9281 s%@INTLBISON@%$INTLBISON%g
9282 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9283 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9284 s%@CATALOGS@%$CATALOGS%g
9285 s%@CATOBJEXT@%$CATOBJEXT%g
9286 s%@INTLLIBS@%$INTLLIBS%g
9287 s%@INTLDEPS@%$INTLDEPS%g
9288 s%@INTLOBJS@%$INTLOBJS%g
9290 s%@DATADIRNAME@%$DATADIRNAME%g
9291 s%@INSTOBJEXT@%$INSTOBJEXT%g
9292 s%@GENCAT@%$GENCAT%g
9293 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9294 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9297 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
9298 s%@inhibit_libc@%$inhibit_libc%g
9299 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
9300 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
9301 s%@BUILD_CC@%$BUILD_CC%g
9302 s%@BUILD_CFLAGS@%$BUILD_CFLAGS%g
9303 s%@STMP_FIXINC@%$STMP_FIXINC%g
9304 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
9305 s%@libgcc_visibility@%$libgcc_visibility%g
9306 s%@gthread_flags@%$gthread_flags%g
9308 s%@zlibdir@%$zlibdir%g
9309 s%@zlibinc@%$zlibinc%g
9311 s%@gcc_tooldir@%$gcc_tooldir%g
9312 s%@dollar@%$dollar%g
9313 s%@slibdir@%$slibdir%g
9314 s%@objdir@%$objdir%g
9315 s%@subdirs@%$subdirs%g
9316 s%@srcdir@%$srcdir%g
9317 s%@all_boot_languages@%$all_boot_languages%g
9318 s%@all_compilers@%$all_compilers%g
9319 s%@all_gtfiles@%$all_gtfiles%g
9320 s%@all_gtfiles_files_langs@%$all_gtfiles_files_langs%g
9321 s%@all_gtfiles_files_files@%$all_gtfiles_files_files%g
9322 s%@all_lang_makefiles@%$all_lang_makefiles%g
9323 s%@all_languages@%$all_languages%g
9324 s%@all_stagestuff@%$all_stagestuff%g
9325 s%@build_exeext@%$build_exeext%g
9326 s%@build_install_headers_dir@%$build_install_headers_dir%g
9327 s%@build_xm_file_list@%$build_xm_file_list%g
9328 s%@build_xm_file@%$build_xm_file%g
9329 s%@build_xm_defines@%$build_xm_defines%g
9330 s%@check_languages@%$check_languages%g
9331 s%@cc_set_by_configure@%$cc_set_by_configure%g
9332 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9333 s%@cpp_install_dir@%$cpp_install_dir%g
9334 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9335 s%@dep_tmake_file@%$dep_tmake_file%g
9336 s%@extra_headers_list@%$extra_headers_list%g
9337 s%@extra_objs@%$extra_objs%g
9338 s%@extra_parts@%$extra_parts%g
9339 s%@extra_passes@%$extra_passes%g
9340 s%@extra_programs@%$extra_programs%g
9341 s%@float_h_file@%$float_h_file%g
9342 s%@gcc_config_arguments@%$gcc_config_arguments%g
9343 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9344 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
9345 s%@gcc_version@%$gcc_version%g
9346 s%@gcc_version_full@%$gcc_version_full%g
9347 s%@gcc_version_trigger@%$gcc_version_trigger%g
9348 s%@host_exeext@%$host_exeext%g
9349 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9350 s%@host_xm_file_list@%$host_xm_file_list%g
9351 s%@host_xm_file@%$host_xm_file%g
9352 s%@host_xm_defines@%$host_xm_defines%g
9353 s%@out_host_hook_obj@%$out_host_hook_obj%g
9354 s%@install@%$install%g
9355 s%@lang_opt_files@%$lang_opt_files%g
9356 s%@lang_options_files@%$lang_options_files%g
9357 s%@lang_specs_files@%$lang_specs_files%g
9358 s%@lang_tree_files@%$lang_tree_files%g
9359 s%@local_prefix@%$local_prefix%g
9360 s%@md_file@%$md_file%g
9361 s%@objc_boehm_gc@%$objc_boehm_gc%g
9362 s%@out_file@%$out_file%g
9363 s%@out_object_file@%$out_object_file%g
9364 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9365 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
9366 s%@symbolic_link@%$symbolic_link%g
9367 s%@thread_file@%$thread_file%g
9368 s%@tm_file_list@%$tm_file_list%g
9369 s%@tm_file@%$tm_file%g
9370 s%@tm_defines@%$tm_defines%g
9371 s%@tm_p_file_list@%$tm_p_file_list%g
9372 s%@tm_p_file@%$tm_p_file%g
9373 s%@xm_file@%$xm_file%g
9374 s%@xm_defines@%$xm_defines%g
9375 s%@c_target_objs@%$c_target_objs%g
9376 s%@cxx_target_objs@%$cxx_target_objs%g
9377 s%@target_cpu_default@%$target_cpu_default%g
9378 /@target_overrides@/r $target_overrides
9379 s%@target_overrides@%%g
9380 /@host_overrides@/r $host_overrides
9381 s%@host_overrides@%%g
9382 /@language_fragments@/r $language_fragments
9383 s%@language_fragments@%%g
9384 /@language_hooks@/r $language_hooks
9385 s%@language_hooks@%%g
9390 cat >> $CONFIG_STATUS <<\EOF
9392 # Split the substitutions into bite-sized pieces for seds with
9393 # small command number limits, like on Digital OSF/1 and HP-UX.
9394 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9395 ac_file
=1 # Number of current file.
9396 ac_beg
=1 # First line for current file.
9397 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9400 while $ac_more_lines; do
9401 if test $ac_beg -gt 1; then
9402 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9404 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9406 if test ! -s conftest.s
$ac_file; then
9408 rm -f conftest.s
$ac_file
9410 if test -z "$ac_sed_cmds"; then
9411 ac_sed_cmds
="sed -f conftest.s$ac_file"
9413 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9415 ac_file
=`expr $ac_file + 1`
9417 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9420 if test -z "$ac_sed_cmds"; then
9425 cat >> $CONFIG_STATUS <<EOF
9427 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9429 cat >> $CONFIG_STATUS <<\EOF
9430 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9433 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9434 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9435 *) ac_file_in
="${ac_file}.in" ;;
9438 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9440 # Remove last slash and all that follows it. Not all systems have dirname.
9441 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9442 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9443 # The file is in a subdirectory.
9444 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9445 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9446 # A "../" for each directory in $ac_dir_suffix.
9447 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9449 ac_dir_suffix
= ac_dots
=
9452 case "$ac_given_srcdir" in
9454 if test -z "$ac_dots"; then top_srcdir
=.
9455 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9456 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9458 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9459 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9463 echo creating
"$ac_file"
9465 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9467 *Makefile
*) ac_comsub
="1i\\
9468 # $configure_input" ;;
9472 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9474 s%@configure_input@%$configure_input%g
9475 s%@srcdir@%$srcdir%g
9476 s%@top_srcdir@%$top_srcdir%g
9477 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9481 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9482 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9484 # ac_d sets the value in "#define NAME VALUE" lines.
9485 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9486 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9489 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9490 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9491 ac_uB
='\([ ]\)%\1#\2define\3'
9494 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9495 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9496 ac_eB
='$%\1#\2define\3'
9500 if test "${CONFIG_HEADERS+set}" != set; then
9502 cat >> $CONFIG_STATUS <<EOF
9503 CONFIG_HEADERS="auto-host.h:config.in"
9505 cat >> $CONFIG_STATUS <<\EOF
9507 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9510 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9511 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9512 *) ac_file_in
="${ac_file}.in" ;;
9515 echo creating
$ac_file
9517 rm -f conftest.frag conftest.
in conftest.out
9518 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9519 cat $ac_file_inputs > conftest.
in
9523 # Transform confdefs.h into a sed script conftest.vals that substitutes
9524 # the proper values into config.h.in to produce config.h. And first:
9525 # Protect against being on the right side of a sed subst in config.status.
9526 # Protect against being in an unquoted here document in config.status.
9528 cat > conftest.hdr
<<\EOF
9531 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9535 sed -n -f conftest.hdr confdefs.h > conftest.vals
9538 # This sed command replaces #undef with comments. This is necessary, for
9539 # example, in the case of _POSIX_SOURCE, which is predefined and required
9540 # on some systems where configure will not decide to define it.
9541 cat >> conftest.vals <<\EOF
9542 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9545 # Break up conftest.vals because some shells have a limit on
9546 # the size of here documents, and old seds have small limits too.
9551 ac_lines=`grep -c . conftest.vals
`
9552 # grep -c gives empty output for an empty file on some AIX systems.
9553 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9554 # Write a limited-size here document to conftest.frag.
9555 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9556 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9558 sed -f conftest.frag conftest.in > conftest.out
9560 mv conftest.out conftest.in
9562 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9564 mv conftest.tail conftest.vals
9568 cat >> $CONFIG_STATUS <<\EOF
9569 rm -f conftest.frag conftest.h
9570 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9571 cat conftest.in >> conftest.h
9573 if cmp -s $ac_file conftest.h 2>/dev/null; then
9574 echo "$ac_file is unchanged"
9577 # Remove last slash and all that follows it. Not all systems have dirname.
9578 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9579 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9580 # The file is in a subdirectory.
9581 test ! -d "$ac_dir" && mkdir "$ac_dir"
9584 mv conftest.h $ac_file
9589 cat >> $CONFIG_STATUS <<EOF
9592 symbolic_link='$symbolic_link'
9595 cat >> $CONFIG_STATUS <<\EOF
9596 for ac_file in $CONFIG_FILES; do
9597 # Support "outfile[:infile[:infile...]]"
9599 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
9601 # PO directories have a Makefile.in generated from Makefile.in.in.
9602 case "$ac_file" in */Makefile.in)
9603 # Adjust a relative srcdir.
9604 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
9605 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
9606 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
9607 # In autoconf-2.13 it is called $ac_given_srcdir.
9608 # In autoconf-2.50 it is called $srcdir.
9609 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9610 case "$ac_given_srcdir" in
9611 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
9612 /*) top_srcdir="$ac_given_srcdir" ;;
9613 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9615 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9616 rm -f "$ac_dir/POTFILES"
9617 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9618 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9619 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9620 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9626 case x$CONFIG_HEADERS in
9627 xauto-host.h:config.in)
9630 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9631 # bootstrapping and the installation procedure can still use
9632 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9633 # FLAGS_TO_PASS has been modified to solve the problem there.
9634 # This is virtually a duplicate of what happens in configure.lang; we do
9635 # an extra check to make sure this only happens if ln -s can be used.
9636 if test "$symbolic_link" = "ln -s"; then
9637 for d in .. ${subdirs} fixinc ; do
9638 if test $d != ..; then
9639 STARTDIR=`${PWDCMD-pwd}`
9641 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
9644 $symbolic_link ../$t $t 2>/dev/null
9650 # Avoid having to add intl to our include paths.
9651 if test -f intl/libintl.h; then
9652 echo creating libintl.h
9653 echo '#include "intl/libintl.h"' >libintl.h
9658 chmod +x $CONFIG_STATUS
9659 rm -fr confdefs* $ac_clean_files
9660 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1