3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,gc,gcac; default
40 --disable-cpp don't provide a user-visible C preprocessor."
42 --with-cpp-install-dir=DIR
43 install the user visible C preprocessor in DIR
44 (relative to PREFIX) as well as PREFIX/bin."
46 --enable-c-mbchar Enable multibyte characters for C and C++."
48 --enable-threads enable thread usage for target GCC.
49 --enable-threads=LIB use LIB thread package for target GCC."
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime."
54 --with-dwarf2 force the default debug format to be DWARF2."
56 --disable-shared don't provide a shared libgcc."
58 --enable-nls use Native Language Support (default)"
60 --disable-nls do not use Native Language Support"
62 --with-included-gettext use the GNU gettext library included here"
64 --with-catgets use catgets functions if available"
66 --disable-win32-registry
67 Disable lookup of installation paths in the
68 Registry on Windows hosts.
69 --enable-win32-registry Enable registry lookup (default).
70 --enable-win32-registry=KEY
71 Use KEY instead of GCC version as the last portion
74 --with-gc={simple,page} Choose the garbage collection mechanism to use
77 --with-system-zlib use installed libz"
79 --enable-maintainer-mode enable make rules and dependencies not useful
80 (and sometimes confusing) to the casual installer"
82 --enable-version-specific-runtime-libs Specify that runtime libraries shou
83 ld be installed in a compiler-specific directory "
85 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file=./config.cache
100 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --site-file=FILE use FILE as the site file
219 --version print the version of autoconf that created configure
220 Directory and file names:
221 --prefix=PREFIX install architecture-independent files in PREFIX
223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 --bindir=DIR user executables in DIR [EPREFIX/bin]
226 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
227 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
228 --datadir=DIR read-only architecture-independent data in DIR
230 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
231 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
234 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
235 --includedir=DIR C header files in DIR [PREFIX/include]
236 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
237 --infodir=DIR info documentation in DIR [PREFIX/info]
238 --mandir=DIR man documentation in DIR [PREFIX/man]
239 --srcdir=DIR find the sources in DIR [configure dir or ..]
240 --program-prefix=PREFIX prepend PREFIX to installed program names
241 --program-suffix=SUFFIX append SUFFIX to installed program names
242 --program-transform-name=PROGRAM
243 run sed PROGRAM on installed program names
247 --build=BUILD configure for building on BUILD [BUILD=HOST]
248 --host=HOST configure for HOST [guessed]
249 --target=TARGET configure for TARGET [TARGET=HOST]
250 Features and packages:
251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
253 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
254 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
255 --x-includes=DIR X include files are in DIR
256 --x-libraries=DIR X library files are in DIR
258 if test -n "$ac_help"; then
259 echo "--enable and --with options recognized:$ac_help"
263 -host | --host | --hos | --ho)
265 -host=* | --host=* | --hos=* | --ho=*)
268 -includedir | --includedir | --includedi | --included | --include \
269 | --includ | --inclu | --incl | --inc)
270 ac_prev=includedir ;;
271 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
272 | --includ=* | --inclu=* | --incl=* | --inc=*)
273 includedir="$ac_optarg" ;;
275 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
278 infodir="$ac_optarg" ;;
280 -libdir | --libdir | --libdi | --libd)
282 -libdir=* | --libdir=* | --libdi=* | --libd=*)
283 libdir="$ac_optarg" ;;
285 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
286 | --libexe | --libex | --libe)
287 ac_prev=libexecdir ;;
288 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
289 | --libexe=* | --libex=* | --libe=*)
290 libexecdir="$ac_optarg" ;;
292 -localstatedir | --localstatedir | --localstatedi | --localstated \
293 | --localstate | --localstat | --localsta | --localst \
294 | --locals | --local | --loca | --loc | --lo)
295 ac_prev=localstatedir ;;
296 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
297 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
298 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
299 localstatedir="$ac_optarg" ;;
301 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
304 mandir="$ac_optarg" ;;
307 # Obsolete; use --without-fp.
310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
315 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
318 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
319 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
320 | --oldin | --oldi | --old | --ol | --o)
321 ac_prev=oldincludedir ;;
322 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
323 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
324 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
325 oldincludedir="$ac_optarg" ;;
327 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
330 prefix="$ac_optarg" ;;
332 -program-prefix | --program-prefix | --program-prefi | --program-pref \
333 | --program-pre | --program-pr | --program-p)
334 ac_prev=program_prefix ;;
335 -program-prefix=* | --program-prefix=* | --program-prefi=* \
336 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
337 program_prefix="$ac_optarg" ;;
339 -program-suffix | --program-suffix | --program-suffi | --program-suff \
340 | --program-suf | --program-su | --program-s)
341 ac_prev=program_suffix ;;
342 -program-suffix=* | --program-suffix=* | --program-suffi=* \
343 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
344 program_suffix="$ac_optarg" ;;
346 -program-transform-name | --program-transform-name \
347 | --program-transform-nam | --program-transform-na \
348 | --program-transform-n | --program-transform- \
349 | --program-transform | --program-transfor \
350 | --program-transfo | --program-transf \
351 | --program-trans | --program-tran \
352 | --progr-tra | --program-tr | --program-t)
353 ac_prev=program_transform_name ;;
354 -program-transform-name=* | --program-transform-name=* \
355 | --program-transform-nam=* | --program-transform-na=* \
356 | --program-transform-n=* | --program-transform-=* \
357 | --program-transform=* | --program-transfor=* \
358 | --program-transfo=* | --program-transf=* \
359 | --program-trans=* | --program-tran=* \
360 | --progr-tra=* | --program-tr=* | --program-t=*)
361 program_transform_name="$ac_optarg" ;;
363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
364 | -silent | --silent | --silen | --sile | --sil)
367 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 sbindir="$ac_optarg" ;;
373 -sharedstatedir | --sharedstatedir | --sharedstatedi \
374 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
375 | --sharedst | --shareds | --shared | --share | --shar \
377 ac_prev=sharedstatedir ;;
378 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
379 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
380 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 sharedstatedir="$ac_optarg" ;;
384 -site | --site | --sit)
386 -site=* | --site=* | --sit=*)
389 -site-file | --site-file | --site-fil | --site-fi | --site-f)
391 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
392 sitefile="$ac_optarg" ;;
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev=sysconfdir ;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev=x_includes ;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev=x_libraries ;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$sitefile"; then
560 if test -z "$CONFIG_SITE"; then
561 if test "x$prefix" != xNONE; then
562 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
564 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 CONFIG_SITE="$sitefile"
570 for ac_site_file in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp='$CPP $CPPFLAGS'
588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
603 ac_n= ac_c='\c' ac_t=
611 symbolic_link='ln -s'
614 # Check for bogus environment variables.
615 # Test if LIBRARY_PATH contains the notation for the current directory
616 # since this would lead to problems installing/building glibc.
617 # LIBRARY_PATH contains the current directory if one of the following
619 # - one of the terminals (":" and ";") is the first or last sign
620 # - two terminals occur directly after each other
621 # - the path contains an element with a dot in it
622 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
623 echo "configure:624: checking LIBRARY_PATH variable" >&5
624 case ${LIBRARY_PATH} in
625 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
626 library_path_setting="contains current directory"
629 library_path_setting="ok"
632 echo "$ac_t""$library_path_setting" 1>&6
633 if test "$library_path_setting" != "ok"; then
634 { echo "configure: error:
635 *** LIBRARY_PATH shouldn't contain the current directory when
636 *** building gcc. Please change the environment variable
637 *** and run configure again." 1>&2; exit 1; }
640 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
641 # since this would lead to problems installing/building glibc.
642 # GCC_EXEC_PREFIX contains the current directory if one of the following
644 # - one of the terminals (":" and ";") is the first or last sign
645 # - two terminals occur directly after each other
646 # - the path contains an element with a dot in it
647 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
648 echo "configure:649: checking GCC_EXEC_PREFIX variable" >&5
649 case ${GCC_EXEC_PREFIX} in
650 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
651 gcc_exec_prefix_setting="contains current directory"
654 gcc_exec_prefix_setting="ok"
657 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
658 if test "$gcc_exec_prefix_setting" != "ok"; then
659 { echo "configure: error:
660 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
661 *** building gcc. Please change the environment variable
662 *** and run configure again." 1>&2; exit 1; }
665 # Check for additional parameters
668 # Check whether --with-gnu-ld or --without-gnu-ld was given.
669 if test "${with_gnu_ld+set}" = set; then
670 withval="$with_gnu_ld"
671 gnu_ld_flag="$with_gnu_ld"
677 # With pre-defined ld
678 # Check whether --with-ld or --without-ld was given.
679 if test "${with_ld+set}" = set; then
681 DEFAULT_LINKER="$with_ld"
684 if test x"${DEFAULT_LINKER+set}" = x"set"; then
685 if test ! -x "$DEFAULT_LINKER"; then
686 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
687 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
690 cat >> confdefs.h <<EOF
691 #define DEFAULT_LINKER "$DEFAULT_LINKER"
697 # Check whether --with-gnu-as or --without-gnu-as was given.
698 if test "${with_gnu_as+set}" = set; then
699 withval="$with_gnu_as"
700 gas_flag="$with_gnu_as"
706 # Check whether --with-as or --without-as was given.
707 if test "${with_as+set}" = set; then
709 DEFAULT_ASSEMBLER="$with_as"
712 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
713 if test ! -x "$DEFAULT_ASSEMBLER"; then
714 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
715 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
718 cat >> confdefs.h <<EOF
719 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
725 # Check whether --with-stabs or --without-stabs was given.
726 if test "${with_stabs+set}" = set; then
727 withval="$with_stabs"
735 # Check whether --with-elf or --without-elf was given.
736 if test "${with_elf+set}" = set; then
744 # Specify the local prefix
746 # Check whether --with-local-prefix or --without-local-prefix was given.
747 if test "${with_local_prefix+set}" = set; then
748 withval="$with_local_prefix"
750 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
752 *) local_prefix=$with_local_prefix ;;
757 # Default local prefix if it is empty
758 if test x$local_prefix = x; then
759 local_prefix=/usr/local
762 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
763 # passed in by the toplevel make and thus we'd get different behavior
764 # depending on where we built the sources.
766 # Specify the g++ header file directory
767 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
768 if test "${with_gxx_include_dir+set}" = set; then
769 withval="$with_gxx_include_dir"
771 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
773 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
778 if test x${gcc_gxx_include_dir} = x; then
779 if test x${enable_version_specific_runtime_libs} = xyes; then
780 gcc_gxx_include_dir='${libsubdir}/include/g++'
782 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
783 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
787 # Determine whether or not multilibs are enabled.
788 # Check whether --enable-multilib or --disable-multilib was given.
789 if test "${enable_multilib+set}" = set; then
790 enableval="$enable_multilib"
798 # Enable expensive internal checks
799 # Check whether --enable-checking or --disable-checking was given.
800 if test "${enable_checking+set}" = set; then
801 enableval="$enable_checking"
806 ac_gc_always_collect=
807 case "${enableval}" in
808 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
810 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
811 set fnord $enableval; shift
816 misc) ac_checking=1 ;;
817 tree) ac_tree_checking=1 ;;
818 rtl) ac_rtl_checking=1 ;;
819 gc) ac_gc_checking=1 ;;
820 gcac) ac_gc_always_collect=1 ;;
821 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
828 # Enable some checks by default for development versions of GCC
829 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
832 if test x$ac_checking != x ; then
833 cat >> confdefs.h <<\EOF
834 #define ENABLE_CHECKING 1
838 if test x$ac_tree_checking != x ; then
839 cat >> confdefs.h <<\EOF
840 #define ENABLE_TREE_CHECKING 1
844 if test x$ac_rtl_checking != x ; then
845 cat >> confdefs.h <<\EOF
846 #define ENABLE_RTL_CHECKING 1
850 if test x$ac_gc_checking != x ; then
851 cat >> confdefs.h <<\EOF
852 #define ENABLE_GC_CHECKING 1
856 if test x$ac_gc_always_collect != x ; then
857 cat >> confdefs.h <<\EOF
858 #define ENABLE_GC_ALWAYS_COLLECT 1
864 # Check whether --enable-cpp or --disable-cpp was given.
865 if test "${enable_cpp+set}" = set; then
866 enableval="$enable_cpp"
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 # Enable Multibyte Characters for C/C++
885 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
886 if test "${enable_c_mbchar+set}" = set; then
887 enableval="$enable_c_mbchar"
888 if test x$enable_c_mbchar != xno; then
889 cat >> confdefs.h <<\EOF
890 #define MULTIBYTE_CHARS 1
898 # Pass with no value to take the default
899 # Pass with a value to specify a thread package
900 # Check whether --enable-threads or --disable-threads was given.
901 if test "${enable_threads+set}" = set; then
902 enableval="$enable_threads"
909 enable_threads_flag=$enable_threads
910 # Check if a valid thread package
911 case x${enable_threads_flag} in
914 target_thread_file='single'
918 target_thread_file=''
920 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
921 xsolaris | xwin32 | xdce | xvxworks | xaix)
922 target_thread_file=$enable_threads_flag
925 echo "$enable_threads is an unknown thread package" 1>&2
930 # Check whether --enable-objc-gc or --disable-objc-gc was given.
931 if test "${enable_objc_gc+set}" = set; then
932 enableval="$enable_objc_gc"
933 if test x$enable_objc_gc = xno; then
943 # Check whether --with-dwarf2 or --without-dwarf2 was given.
944 if test "${with_dwarf2+set}" = set; then
945 withval="$with_dwarf2"
946 dwarf2="$with_dwarf2"
952 # Check whether --enable-shared or --disable-shared was given.
953 if test "${enable_shared+set}" = set; then
954 enableval="$enable_shared"
956 case $enable_shared in
960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
961 for pkg in $enableval; do
962 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
976 # Determine the host, build, and target systems
978 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
979 if test -f $ac_dir/install-sh; then
981 ac_install_sh="$ac_aux_dir/install-sh -c"
983 elif test -f $ac_dir/install.sh; then
985 ac_install_sh="$ac_aux_dir/install.sh -c"
989 if test -z "$ac_aux_dir"; then
990 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
992 ac_config_guess=$ac_aux_dir/config.guess
993 ac_config_sub=$ac_aux_dir/config.sub
994 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
997 # Do some error checking and defaulting for the host and target type.
999 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1002 # 1. You are not allowed to specify --host, --target, and nonopt at the
1004 # 2. Host defaults to nonopt.
1005 # 3. If nonopt is not specified, then host defaults to the current host,
1006 # as determined by config.guess.
1007 # 4. Target and build default to nonopt.
1008 # 5. If nonopt is not specified, then target and build default to host.
1010 # The aliases save the names the user supplied, while $host etc.
1011 # will get canonicalized.
1012 case $host---$target---$nonopt in
1013 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1014 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1018 # Make sure we can run config.sub.
1019 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1020 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1023 echo $ac_n "checking host system type""... $ac_c" 1>&6
1024 echo "configure:1025: checking host system type" >&5
1027 case "$host_alias" in
1031 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1032 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1034 *) host_alias=$nonopt ;;
1038 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1039 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042 echo "$ac_t""$host" 1>&6
1044 echo $ac_n "checking target system type""... $ac_c" 1>&6
1045 echo "configure:1046: checking target system type" >&5
1047 target_alias=$target
1048 case "$target_alias" in
1051 NONE) target_alias=$host_alias ;;
1052 *) target_alias=$nonopt ;;
1056 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1057 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 echo "$ac_t""$target" 1>&6
1062 echo $ac_n "checking build system type""... $ac_c" 1>&6
1063 echo "configure:1064: checking build system type" >&5
1066 case "$build_alias" in
1069 NONE) build_alias=$host_alias ;;
1070 *) build_alias=$nonopt ;;
1074 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1075 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078 echo "$ac_t""$build" 1>&6
1080 test "$host_alias" != "$target_alias" &&
1081 test "$program_prefix$program_suffix$program_transform_name" = \
1083 program_prefix=${target_alias}-
1086 # Find the native compiler
1087 # Extract the first word of "gcc", so it can be a program name with args.
1088 set dummy gcc; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$CC"; then
1095 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1099 for ac_dir in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1113 echo "$ac_t""no" 1>&6
1116 if test -z "$CC"; then
1117 # Extract the first word of "cc", so it can be a program name with args.
1118 set dummy cc; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$CC"; then
1125 ac_cv_prog_CC="$CC" # Let the user override the test.
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 for ac_dir in $ac_dummy; do
1131 test -z "$ac_dir" && ac_dir=.
1132 if test -f $ac_dir/$ac_word; then
1133 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1134 ac_prog_rejected=yes
1142 if test $ac_prog_rejected = yes; then
1143 # We found a bogon in the path, so make sure we never use it.
1144 set dummy $ac_cv_prog_CC
1146 if test $# -gt 0; then
1147 # We chose a different compiler from the bogus one.
1148 # However, it has the same basename, so the bogon will be chosen
1149 # first if we set CC to just the basename; use the full file name.
1151 set dummy "$ac_dir/$ac_word" "$@"
1159 if test -n "$CC"; then
1160 echo "$ac_t""$CC" 1>&6
1162 echo "$ac_t""no" 1>&6
1165 if test -z "$CC"; then
1166 case "`uname -s`" in
1168 # Extract the first word of "cl", so it can be a program name with args.
1169 set dummy cl; ac_word=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 if test -n "$CC"; then
1176 ac_cv_prog_CC="$CC" # Let the user override the test.
1178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1180 for ac_dir in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1191 if test -n "$CC"; then
1192 echo "$ac_t""$CC" 1>&6
1194 echo "$ac_t""no" 1>&6
1199 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1202 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1207 ac_cpp='$CPP $CPPFLAGS'
1208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1210 cross_compiling=$ac_cv_prog_cc_cross
1212 cat > conftest.$ac_ext << EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1219 if { (eval echo configure:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1220 ac_cv_prog_cc_works=yes
1221 # If we can't run a trivial program, we are probably using a cross compiler.
1222 if (./conftest; exit) 2>/dev/null; then
1223 ac_cv_prog_cc_cross=no
1225 ac_cv_prog_cc_cross=yes
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1230 ac_cv_prog_cc_works=no
1234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1235 ac_cpp='$CPP $CPPFLAGS'
1236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1238 cross_compiling=$ac_cv_prog_cc_cross
1240 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1241 if test $ac_cv_prog_cc_works = no; then
1242 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1244 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1246 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1247 cross_compiling=$ac_cv_prog_cc_cross
1249 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1250 echo "configure:1251: checking whether we are using GNU C" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 cat > conftest.c <<EOF
1259 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1266 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1268 if test $ac_cv_prog_gcc = yes; then
1274 ac_test_CFLAGS="${CFLAGS+set}"
1275 ac_save_CFLAGS="$CFLAGS"
1277 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1278 echo "configure:1279: checking whether ${CC-cc} accepts -g" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 echo 'void f(){}' > conftest.c
1283 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1292 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1293 if test "$ac_test_CFLAGS" = set; then
1294 CFLAGS="$ac_save_CFLAGS"
1295 elif test $ac_cv_prog_cc_g = yes; then
1296 if test "$GCC" = yes; then
1302 if test "$GCC" = yes; then
1309 if test "x$CC" != xcc; then
1310 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether $CC and cc understand -c and -o together" >&5
1313 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1314 echo "configure:1315: checking whether cc understands -c and -o together" >&5
1316 set dummy $CC; ac_cc="`echo $2 |
1317 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1318 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 echo 'foo(){}' > conftest.c
1322 # Make sure it works both with $CC and with simple cc.
1323 # We do the test twice because some compilers refuse to overwrite an
1324 # existing .o file with -o, though they will create one.
1325 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1326 if { (eval echo configure:1327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1327 test -f conftest.o && { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1329 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1330 if test "x$CC" != xcc; then
1331 # Test first that cc exists at all.
1332 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1333 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1334 if { (eval echo configure:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1335 test -f conftest.o && { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1340 # cc exists but doesn't like -o.
1341 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1346 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1351 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1352 echo "$ac_t""yes" 1>&6
1354 echo "$ac_t""no" 1>&6
1355 cat >> confdefs.h <<\EOF
1356 #define NO_MINUS_C_MINUS_O 1
1361 # autoconf is lame and doesn't give us any substitution variable for this.
1362 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1363 NO_MINUS_C_MINUS_O=yes
1365 OUTPUT_OPTION='-o $@'
1370 echo $ac_n "checking for long double""... $ac_c" 1>&6
1371 echo "configure:1372: checking for long double" >&5
1372 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 if test "$GCC" = yes; then
1376 gcc_cv_c_long_double=yes
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1383 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1384 long double foo = 0.0;
1385 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1386 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1389 if { (eval echo configure:1390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1391 gcc_cv_c_long_double=yes
1393 echo "configure: failed program was:" >&5
1394 cat conftest.$ac_ext >&5
1396 gcc_cv_c_long_double=no
1402 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1403 if test $gcc_cv_c_long_double = yes; then
1404 cat >> confdefs.h <<\EOF
1405 #define HAVE_LONG_DOUBLE 1
1411 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1412 echo "configure:1413: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1413 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 save_CFLAGS="$CFLAGS"
1417 CFLAGS="-Wno-long-long"
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1426 if { (eval echo configure:1427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1428 ac_cv_prog_cc_no_long_long=yes
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1433 ac_cv_prog_cc_no_long_long=no
1436 CFLAGS="$save_CFLAGS"
1439 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1441 if test $ac_cv_prog_cc_no_long_long = yes; then
1442 strict1_warn="-pedantic -Wno-long-long"
1446 # If the native compiler is GCC, we can enable warnings even in stage1.
1447 # That's useful for people building cross-compilers, or just running a
1450 if test "x$GCC" = "xyes"; then
1451 warn_cflags='$(GCC_WARN_CFLAGS)'
1455 # Stage specific cflags for build.
1459 if test x$GCC = xyes
1461 stage1_cflags="-Wa,-J"
1469 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1470 echo "configure:1471: checking whether ${MAKE-make} sets \${MAKE}" >&5
1471 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1472 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 cat > conftestmake <<\EOF
1477 @echo 'ac_maketemp="${MAKE}"'
1479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1480 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1481 if test -n "$ac_maketemp"; then
1482 eval ac_cv_prog_make_${ac_make}_set=yes
1484 eval ac_cv_prog_make_${ac_make}_set=no
1488 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1492 echo "$ac_t""no" 1>&6
1493 SET_MAKE="MAKE=${MAKE-make}"
1497 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1498 echo "configure:1499: checking whether a default assembler was specified" >&5
1499 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1500 if test x"$gas_flag" = x"no"; then
1501 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1503 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1506 echo "$ac_t""no" 1>&6
1509 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1510 echo "configure:1511: checking whether a default linker was specified" >&5
1511 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1512 if test x"$gnu_ld_flag" = x"no"; then
1513 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1515 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1518 echo "$ac_t""no" 1>&6
1521 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1522 echo "configure:1523: checking for GNU C library" >&5
1523 if eval "test \"`echo '$''{'gcc_cv_glibc'+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"
1529 #include <features.h>
1532 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1533 #error Not a GNU C library system
1537 if { (eval echo configure:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1549 echo "$ac_t""$gcc_cv_glibc" 1>&6
1550 if test $gcc_cv_glibc = yes; then
1551 cat >> confdefs.h <<\EOF
1552 #define _GNU_SOURCE 1
1557 echo $ac_n "checking for inline""... $ac_c" 1>&6
1558 echo "configure:1559: checking for inline" >&5
1559 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1563 for ac_kw in inline __inline__ __inline; do
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1572 if { (eval echo configure:1573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574 ac_cv_c_inline=$ac_kw; break
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1584 echo "$ac_t""$ac_cv_c_inline" 1>&6
1585 case "$ac_cv_c_inline" in
1587 no) cat >> confdefs.h <<\EOF
1591 *) cat >> confdefs.h <<EOF
1592 #define inline $ac_cv_c_inline
1598 # Find some useful tools
1599 for ac_prog in mawk gawk nawk awk
1601 # Extract the first word of "$ac_prog", so it can be a program name with args.
1602 set dummy $ac_prog; ac_word=$2
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_word" >&5
1605 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 if test -n "$AWK"; then
1609 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1613 for ac_dir in $ac_dummy; do
1614 test -z "$ac_dir" && ac_dir=.
1615 if test -f $ac_dir/$ac_word; then
1616 ac_cv_prog_AWK="$ac_prog"
1623 AWK="$ac_cv_prog_AWK"
1624 if test -n "$AWK"; then
1625 echo "$ac_t""$AWK" 1>&6
1627 echo "$ac_t""no" 1>&6
1630 test -n "$AWK" && break
1633 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1634 echo "configure:1635: checking whether ln works" >&5
1635 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 rm -f conftestdata_t
1639 echo >conftestdata_f
1640 if ln conftestdata_f conftestdata_t 2>/dev/null
1644 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1646 gcc_cv_prog_LN="ln -s"
1651 rm -f conftestdata_f conftestdata_t
1654 LN="$gcc_cv_prog_LN"
1655 if test "$gcc_cv_prog_LN" = "ln"; then
1656 echo "$ac_t""yes" 1>&6
1658 if test "$gcc_cv_prog_LN" = "ln -s"; then
1659 echo "$ac_t""no, using ln -s" 1>&6
1661 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1665 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1666 echo "configure:1667: checking whether ln -s works" >&5
1667 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 rm -f conftestdata_t
1671 echo >conftestdata_f
1672 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1674 gcc_cv_prog_LN_S="ln -s"
1676 if ln conftestdata_f conftestdata_t 2>/dev/null
1683 rm -f conftestdata_f conftestdata_t
1686 LN_S="$gcc_cv_prog_LN_S"
1687 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1688 echo "$ac_t""yes" 1>&6
1690 if test "$gcc_cv_prog_LN_S" = "ln"; then
1691 echo "$ac_t""no, using ln" 1>&6
1693 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1697 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1698 echo "configure:1699: checking for volatile" >&5
1699 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1710 if { (eval echo configure:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1712 gcc_cv_c_volatile=yes
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1717 gcc_cv_c_volatile=no
1722 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1723 if test $gcc_cv_c_volatile = yes ; then
1724 cat >> confdefs.h <<\EOF
1725 #define HAVE_VOLATILE 1
1730 # Extract the first word of "ranlib", so it can be a program name with args.
1731 set dummy ranlib; ac_word=$2
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_word" >&5
1734 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test -n "$RANLIB"; then
1738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1742 for ac_dir in $ac_dummy; do
1743 test -z "$ac_dir" && ac_dir=.
1744 if test -f $ac_dir/$ac_word; then
1745 ac_cv_prog_RANLIB="ranlib"
1750 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1753 RANLIB="$ac_cv_prog_RANLIB"
1754 if test -n "$RANLIB"; then
1755 echo "$ac_t""$RANLIB" 1>&6
1757 echo "$ac_t""no" 1>&6
1760 # Find a good install program. We prefer a C program (faster),
1761 # so one script is as good as another. But avoid the broken or
1762 # incompatible versions:
1763 # SysV /etc/install, /usr/sbin/install
1764 # SunOS /usr/etc/install
1765 # IRIX /sbin/install
1767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1769 # ./install, which can be erroneously created by make from ./install.sh.
1770 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1771 echo "configure:1772: checking for a BSD compatible install" >&5
1772 if test -z "$INSTALL"; then
1773 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1777 for ac_dir in $PATH; do
1778 # Account for people who put trailing slashes in PATH elements.
1780 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1782 # OSF1 and SCO ODT 3.0 have their own names for install.
1783 for ac_prog in ginstall scoinst install; do
1784 if test -f $ac_dir/$ac_prog; then
1785 if test $ac_prog = install &&
1786 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1787 # AIX install. It has an incompatible calling convention.
1788 # OSF/1 installbsd also uses dspmsg, but is usable.
1791 ac_cv_path_install="$ac_dir/$ac_prog -c"
1802 if test "${ac_cv_path_install+set}" = set; then
1803 INSTALL="$ac_cv_path_install"
1805 # As a last resort, use the slow shell script. We don't cache a
1806 # path for INSTALL within a source directory, because that will
1807 # break other packages using the cache if that directory is
1808 # removed, or if the path is relative.
1809 INSTALL="$ac_install_sh"
1812 echo "$ac_t""$INSTALL" 1>&6
1814 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1815 # It thinks the first close brace ends the variable substitution.
1816 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1818 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1821 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1822 echo "configure:1823: checking how to run the C preprocessor" >&5
1823 # On Suns, sometimes $CPP names a directory.
1824 if test -n "$CPP" && test -d "$CPP"; then
1827 if test -z "$CPP"; then
1828 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 # This must be in double quotes, not single quotes, because CPP may get
1832 # substituted into the Makefile and "${CC-cc}" will confuse make.
1834 # On the NeXT, cc -E runs the code through the compiler's parser,
1835 # not just through cpp.
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 CPP="${CC-cc} -E -traditional-cpp"
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1860 { (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1862 if test -z "$ac_err"; then
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 CPP="${CC-cc} -nologo -E"
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1879 if test -z "$ac_err"; then
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1893 ac_cv_prog_CPP="$CPP"
1895 CPP="$ac_cv_prog_CPP"
1897 ac_cv_prog_CPP="$CPP"
1899 echo "$ac_t""$CPP" 1>&6
1901 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1902 echo "configure:1903: checking for ANSI C header files" >&5
1903 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1915 { (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1917 if test -z "$ac_err"; then
1919 ac_cv_header_stdc=yes
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 ac_cv_header_stdc=no
1929 if test $ac_cv_header_stdc = yes; then
1930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1937 egrep "memchr" >/dev/null 2>&1; then
1941 ac_cv_header_stdc=no
1947 if test $ac_cv_header_stdc = yes; then
1948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1949 cat > conftest.$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1955 egrep "free" >/dev/null 2>&1; then
1959 ac_cv_header_stdc=no
1965 if test $ac_cv_header_stdc = yes; then
1966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1967 if test "$cross_compiling" = yes; then
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1974 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1975 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1977 int main () { int i; for (i = 0; i < 256; i++)
1978 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1989 ac_cv_header_stdc=no
1997 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1998 if test $ac_cv_header_stdc = yes; then
1999 cat >> confdefs.h <<\EOF
2000 #define STDC_HEADERS 1
2005 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2006 echo "configure:2007: checking whether time.h and sys/time.h may both be included" >&5
2007 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2010 cat > conftest.$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2013 #include <sys/types.h>
2014 #include <sys/time.h>
2020 if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2022 ac_cv_header_time=yes
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2027 ac_cv_header_time=no
2032 echo "$ac_t""$ac_cv_header_time" 1>&6
2033 if test $ac_cv_header_time = yes; then
2034 cat >> confdefs.h <<\EOF
2035 #define TIME_WITH_SYS_TIME 1
2040 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2041 echo "configure:2042: checking whether string.h and strings.h may both be included" >&5
2042 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2049 #include <strings.h>
2054 if { (eval echo configure:2055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2056 gcc_cv_header_string=yes
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 gcc_cv_header_string=no
2066 echo "$ac_t""$gcc_cv_header_string" 1>&6
2067 if test $gcc_cv_header_string = yes; then
2068 cat >> confdefs.h <<\EOF
2069 #define STRING_WITH_STRINGS 1
2074 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2075 echo "configure:2076: checking for sys/wait.h that is POSIX.1 compatible" >&5
2076 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 cat > conftest.$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2082 #include <sys/types.h>
2083 #include <sys/wait.h>
2085 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2088 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2093 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2096 if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2098 ac_cv_header_sys_wait_h=yes
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2103 ac_cv_header_sys_wait_h=no
2108 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2109 if test $ac_cv_header_sys_wait_h = yes; then
2110 cat >> confdefs.h <<\EOF
2111 #define HAVE_SYS_WAIT_H 1
2116 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2117 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2118 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2119 direct.h malloc.h langinfo.h iconv.h stdbool.h
2121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_hdr" >&5
2124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2133 { (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2135 if test -z "$ac_err"; then
2137 eval "ac_cv_header_$ac_safe=yes"
2140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2143 eval "ac_cv_header_$ac_safe=no"
2147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2150 cat >> confdefs.h <<EOF
2151 #define $ac_tr_hdr 1
2155 echo "$ac_t""no" 1>&6
2160 # Check for thread headers.
2161 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2162 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2163 echo "configure:2164: checking for thread.h" >&5
2164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2173 { (eval echo configure:2174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2175 if test -z "$ac_err"; then
2177 eval "ac_cv_header_$ac_safe=yes"
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2183 eval "ac_cv_header_$ac_safe=no"
2187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2191 echo "$ac_t""no" 1>&6
2195 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2196 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2197 echo "configure:2198: checking for pthread.h" >&5
2198 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2201 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2204 #include <pthread.h>
2206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2207 { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2209 if test -z "$ac_err"; then
2211 eval "ac_cv_header_$ac_safe=yes"
2214 echo "configure: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2217 eval "ac_cv_header_$ac_safe=no"
2221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2222 echo "$ac_t""yes" 1>&6
2225 echo "$ac_t""no" 1>&6
2230 # See if GNAT has been installed
2231 # Extract the first word of "gnatbind", so it can be a program name with args.
2232 set dummy gnatbind; ac_word=$2
2233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_word" >&5
2235 if eval "test \"`echo '$''{'ac_cv_prog_have_gnat'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 if test -n "$have_gnat"; then
2239 ac_cv_prog_have_gnat="$have_gnat" # Let the user override the test.
2241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2243 for ac_dir in $ac_dummy; do
2244 test -z "$ac_dir" && ac_dir=.
2245 if test -f $ac_dir/$ac_word; then
2246 ac_cv_prog_have_gnat="yes"
2251 test -z "$ac_cv_prog_have_gnat" && ac_cv_prog_have_gnat="no"
2254 have_gnat="$ac_cv_prog_have_gnat"
2255 if test -n "$have_gnat"; then
2256 echo "$ac_t""$have_gnat" 1>&6
2258 echo "$ac_t""no" 1>&6
2262 # See if we have the mktemp command.
2263 # Extract the first word of "mktemp", so it can be a program name with args.
2264 set dummy mktemp; ac_word=$2
2265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2266 echo "configure:2267: checking for $ac_word" >&5
2267 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 if test -n "$have_mktemp_command"; then
2271 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
2273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2275 for ac_dir in $ac_dummy; do
2276 test -z "$ac_dir" && ac_dir=.
2277 if test -f $ac_dir/$ac_word; then
2278 ac_cv_prog_have_mktemp_command="yes"
2283 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
2286 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
2287 if test -n "$have_mktemp_command"; then
2288 echo "$ac_t""$have_mktemp_command" 1>&6
2290 echo "$ac_t""no" 1>&6
2294 # Do we have a single-tree copy of texinfo?
2295 if test -f $srcdir/../texinfo/Makefile.in; then
2296 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2297 gcc_cv_prog_makeinfo_modern=yes
2298 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2300 # See if makeinfo has been installed and is modern enough
2301 # that we can use it.
2302 # Extract the first word of "makeinfo", so it can be a program name with args.
2303 set dummy makeinfo; ac_word=$2
2304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2305 echo "configure:2306: checking for $ac_word" >&5
2306 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 if test -n "$MAKEINFO"; then
2310 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2314 for ac_dir in $ac_dummy; do
2315 test -z "$ac_dir" && ac_dir=.
2316 if test -f $ac_dir/$ac_word; then
2317 ac_cv_prog_MAKEINFO="makeinfo"
2324 MAKEINFO="$ac_cv_prog_MAKEINFO"
2325 if test -n "$MAKEINFO"; then
2326 echo "$ac_t""$MAKEINFO" 1>&6
2328 echo "$ac_t""no" 1>&6
2331 if test -n "$MAKEINFO"; then
2332 # Found it, now check the version.
2333 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2334 echo "configure:2335: checking for modern makeinfo" >&5
2335 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 ac_prog_version=`$MAKEINFO --version 2>&1 |
2339 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2340 echo "configure:2341: version of makeinfo is $ac_prog_version" >&5
2341 case $ac_prog_version in
2342 '') gcc_cv_prog_makeinfo_modern=no;;
2344 gcc_cv_prog_makeinfo_modern=yes;;
2345 *) gcc_cv_prog_makeinfo_modern=no;;
2350 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2352 gcc_cv_prog_makeinfo_modern=no
2357 if test $gcc_cv_prog_makeinfo_modern = no; then
2358 echo "configure: warning:
2359 *** Makeinfo is missing or too old.
2360 *** Info documentation will not be built." 1>&2
2366 # Is pod2man recent enough to regenerate manpages?
2367 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
2368 echo "configure:2369: checking for recent Pod::Man" >&5
2369 if perl -e 'use 1.10 Pod::Man' >/dev/null 2>&1; then
2370 echo "$ac_t""yes" 1>&6
2371 GENERATED_MANPAGES=generated-manpages
2373 echo "$ac_t""no" 1>&6
2378 if test -f $srcdir/../flex/skel.c; then
2379 FLEX='$(objdir)/../flex/flex'
2381 # Extract the first word of "flex", so it can be a program name with args.
2382 set dummy flex; ac_word=$2
2383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_word" >&5
2385 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 if test -n "$FLEX"; then
2389 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2393 for ac_dir in $ac_dummy; do
2394 test -z "$ac_dir" && ac_dir=.
2395 if test -f $ac_dir/$ac_word; then
2396 ac_cv_prog_FLEX="flex"
2401 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
2404 FLEX="$ac_cv_prog_FLEX"
2405 if test -n "$FLEX"; then
2406 echo "$ac_t""$FLEX" 1>&6
2408 echo "$ac_t""no" 1>&6
2414 # The -L switch is so bison can find its skeleton file.
2415 if test -f $srcdir/../bison/bison.simple; then
2416 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2418 # Extract the first word of "bison", so it can be a program name with args.
2419 set dummy bison; ac_word=$2
2420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2421 echo "configure:2422: checking for $ac_word" >&5
2422 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 if test -n "$BISON"; then
2426 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2430 for ac_dir in $ac_dummy; do
2431 test -z "$ac_dir" && ac_dir=.
2432 if test -f $ac_dir/$ac_word; then
2433 ac_cv_prog_BISON="bison"
2438 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
2441 BISON="$ac_cv_prog_BISON"
2442 if test -n "$BISON"; then
2443 echo "$ac_t""$BISON" 1>&6
2445 echo "$ac_t""no" 1>&6
2450 # See if the stage1 system preprocessor understands the ANSI C
2451 # preprocessor stringification operator.
2454 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2455 echo "configure:2456: checking for preprocessor stringizing operator" >&5
2456 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2465 char *s = x(teststring);
2468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2469 egrep "#teststring" >/dev/null 2>&1; then
2471 ac_cv_c_stringize=no
2474 ac_cv_c_stringize=yes
2480 if test "${ac_cv_c_stringize}" = yes
2482 cat >> confdefs.h <<\EOF
2483 #define HAVE_STRINGIZE 1
2487 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2490 # Use <inttypes.h> only if it exists,
2491 # doesn't clash with <sys/types.h>, and declares intmax_t.
2492 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2493 echo "configure:2494: checking for inttypes.h" >&5
2494 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2500 #include <sys/types.h>
2501 #include <inttypes.h>
2506 if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2508 gcc_cv_header_inttypes_h=yes
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2513 gcc_cv_header_inttypes_h=no
2518 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2519 if test $gcc_cv_header_inttypes_h = yes; then
2520 cat >> confdefs.h <<\EOF
2521 #define HAVE_INTTYPES_H 1
2527 # Determine if enumerated bitfields are unsigned. ISO C says they can
2528 # be either signed or unsigned.
2530 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2531 echo "configure:2532: checking for unsigned enumerated bitfields" >&5
2532 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 if test "$cross_compiling" = yes; then
2536 gcc_cv_enum_bf_unsigned=yes
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2542 enum t { BLAH = 128 } ;
2543 struct s_t { enum t member : 8; } s ;
2547 if (s.member < 0) exit(1);
2552 if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2554 gcc_cv_enum_bf_unsigned=yes
2556 echo "configure: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2559 gcc_cv_enum_bf_unsigned=no
2566 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2567 if test $gcc_cv_enum_bf_unsigned = yes; then
2568 cat >> confdefs.h <<\EOF
2569 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2574 for ac_func in strtoul bsearch putenv popen bcopy \
2575 strchr strrchr kill getrlimit setrlimit atoll atoq \
2576 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2577 fputs_unlocked getrusage iconv nl_langinfo
2579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_func" >&5
2581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 /* System header to define __stub macros and hopefully few prototypes,
2588 which can conflict with char $ac_func(); below. */
2590 /* Override any gcc2 internal prototype to avoid an error. */
2591 /* We use char because int might match the return type of a gcc2
2592 builtin and then its argument prototype would still apply. */
2597 /* The GNU C library defines this for functions which it implements
2598 to always fail with ENOSYS. Some functions are actually named
2599 something starting with __ and the normal name is an alias. */
2600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2610 eval "ac_cv_func_$ac_func=yes"
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 eval "ac_cv_func_$ac_func=no"
2620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2623 cat >> confdefs.h <<EOF
2624 #define $ac_tr_func 1
2628 echo "$ac_t""no" 1>&6
2633 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2634 echo "configure:2635: checking for ssize_t" >&5
2635 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 #include <sys/types.h>
2647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2648 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2650 ac_cv_type_ssize_t=yes
2653 ac_cv_type_ssize_t=no
2658 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2659 if test $ac_cv_type_ssize_t = no; then
2660 cat >> confdefs.h <<\EOF
2667 # Try to determine the array type of the second argument of getgroups
2668 # for the target system (int or gid_t).
2669 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2670 echo "configure:2671: checking for uid_t in sys/types.h" >&5
2671 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2677 #include <sys/types.h>
2679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2680 egrep "uid_t" >/dev/null 2>&1; then
2682 ac_cv_type_uid_t=yes
2691 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2692 if test $ac_cv_type_uid_t = no; then
2693 cat >> confdefs.h <<\EOF
2697 cat >> confdefs.h <<\EOF
2703 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2704 echo "configure:2705: checking type of array argument to getgroups" >&5
2705 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 if test "$cross_compiling" = yes; then
2709 ac_cv_type_getgroups=cross
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2715 /* Thanks to Mike Rendell for this test. */
2716 #include <sys/types.h>
2719 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2724 union { gid_t gval; long lval; } val;
2727 for (i = 0; i < NGID; i++)
2728 gidset[i] = val.gval;
2729 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2731 /* Exit non-zero if getgroups seems to require an array of ints. This
2732 happens when gid_t is short but getgroups modifies an array of ints. */
2733 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2739 ac_cv_type_getgroups=gid_t
2741 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2744 ac_cv_type_getgroups=int
2749 if test $ac_cv_type_getgroups = cross; then
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2756 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2758 ac_cv_type_getgroups=gid_t
2761 ac_cv_type_getgroups=int
2768 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2769 cat >> confdefs.h <<EOF
2770 #define GETGROUPS_T $ac_cv_type_getgroups
2774 if test "${target}" = "${build}"; then
2775 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
2778 # This condition may need some tweaking. It should include all
2779 # targets where the array type of the second argument of getgroups
2780 # is int and the type of gid_t is not equivalent to int.
2781 *-*-sunos* | *-*-ultrix*)
2782 TARGET_GETGROUPS_T=int
2785 TARGET_GETGROUPS_T=gid_t
2791 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2792 echo "configure:2793: checking for vprintf" >&5
2793 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 /* System header to define __stub macros and hopefully few prototypes,
2800 which can conflict with char vprintf(); below. */
2802 /* Override any gcc2 internal prototype to avoid an error. */
2803 /* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2809 /* The GNU C library defines this for functions which it implements
2810 to always fail with ENOSYS. Some functions are actually named
2811 something starting with __ and the normal name is an alias. */
2812 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2820 if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2822 eval "ac_cv_func_vprintf=yes"
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2827 eval "ac_cv_func_vprintf=no"
2832 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2834 cat >> confdefs.h <<\EOF
2835 #define HAVE_VPRINTF 1
2839 echo "$ac_t""no" 1>&6
2842 if test "$ac_cv_func_vprintf" != yes; then
2843 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2844 echo "configure:2845: checking for _doprnt" >&5
2845 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 /* System header to define __stub macros and hopefully few prototypes,
2852 which can conflict with char _doprnt(); below. */
2854 /* Override any gcc2 internal prototype to avoid an error. */
2855 /* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
2861 /* The GNU C library defines this for functions which it implements
2862 to always fail with ENOSYS. Some functions are actually named
2863 something starting with __ and the normal name is an alias. */
2864 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2872 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2874 eval "ac_cv_func__doprnt=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2879 eval "ac_cv_func__doprnt=no"
2884 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 cat >> confdefs.h <<\EOF
2887 #define HAVE_DOPRNT 1
2891 echo "$ac_t""no" 1>&6
2898 if test $ac_cv_func_vprintf != yes ; then
2900 if test $ac_cv_func__doprnt != yes ; then
2907 for ac_func in strstr
2909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2910 echo "configure:2911: checking for $ac_func" >&5
2911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 /* System header to define __stub macros and hopefully few prototypes,
2918 which can conflict with char $ac_func(); below. */
2920 /* Override any gcc2 internal prototype to avoid an error. */
2921 /* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2927 /* The GNU C library defines this for functions which it implements
2928 to always fail with ENOSYS. Some functions are actually named
2929 something starting with __ and the normal name is an alias. */
2930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2938 if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2940 eval "ac_cv_func_$ac_func=yes"
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2945 eval "ac_cv_func_$ac_func=no"
2950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2953 cat >> confdefs.h <<EOF
2954 #define $ac_tr_func 1
2958 echo "$ac_t""no" 1>&6
2964 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2965 echo "configure:2966: checking whether the printf functions support %p" >&5
2966 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 if test "$cross_compiling" = yes; then
2970 gcc_cv_func_printf_ptr=no
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2980 char *p = buf, *q = NULL;
2981 sprintf(buf, "%p", p);
2982 sscanf(buf, "%p", &q);
2986 if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2988 gcc_cv_func_printf_ptr=yes
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2993 gcc_cv_func_printf_ptr=no
2998 rm -f core core.* *.core
3001 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3002 if test $gcc_cv_func_printf_ptr = yes ; then
3003 cat >> confdefs.h <<\EOF
3004 #define HAVE_PRINTF_PTR 1
3012 { echo "configure: error:
3013 *** UWIN may not be used as a host platform because
3014 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3017 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3018 echo "configure:3019: checking for pid_t" >&5
3019 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3025 #include <sys/types.h>
3031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3032 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3034 ac_cv_type_pid_t=yes
3042 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3043 if test $ac_cv_type_pid_t = no; then
3044 cat >> confdefs.h <<\EOF
3050 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3051 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3052 echo "configure:3053: checking for vfork.h" >&5
3053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 cat > conftest.$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3062 { (eval echo configure:3063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3064 if test -z "$ac_err"; then
3066 eval "ac_cv_header_$ac_safe=yes"
3069 echo "configure: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3072 eval "ac_cv_header_$ac_safe=no"
3076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3077 echo "$ac_t""yes" 1>&6
3078 cat >> confdefs.h <<\EOF
3079 #define HAVE_VFORK_H 1
3083 echo "$ac_t""no" 1>&6
3086 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3087 echo "configure:3088: checking for working vfork" >&5
3088 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 if test "$cross_compiling" = yes; then
3092 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3093 echo "configure:3094: checking for vfork" >&5
3094 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 /* System header to define __stub macros and hopefully few prototypes,
3101 which can conflict with char vfork(); below. */
3103 /* Override any gcc2 internal prototype to avoid an error. */
3104 /* We use char because int might match the return type of a gcc2
3105 builtin and then its argument prototype would still apply. */
3110 /* The GNU C library defines this for functions which it implements
3111 to always fail with ENOSYS. Some functions are actually named
3112 something starting with __ and the normal name is an alias. */
3113 #if defined (__stub_vfork) || defined (__stub___vfork)
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 eval "ac_cv_func_vfork=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 eval "ac_cv_func_vfork=no"
3133 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3134 echo "$ac_t""yes" 1>&6
3137 echo "$ac_t""no" 1>&6
3140 ac_cv_func_vfork_works=$ac_cv_func_vfork
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 /* Thanks to Paul Eggert for this test. */
3147 #include <sys/types.h>
3148 #include <sys/stat.h>
3149 #ifdef HAVE_UNISTD_H
3155 /* On some sparc systems, changes by the child to local and incoming
3156 argument registers are propagated back to the parent.
3157 The compiler is told about this with #include <vfork.h>,
3158 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3159 Test for this by using a static variable whose address
3160 is put into a register that is clobbered by the vfork. */
3163 sparc_address_test (int arg)
3165 sparc_address_test (arg) int arg;
3183 pid_t parent = getpid ();
3186 sparc_address_test ();
3191 /* Here is another test for sparc vfork register problems.
3192 This test uses lots of local variables, at least
3193 as many local variables as main has allocated so far
3194 including compiler temporaries. 4 locals are enough for
3195 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3196 A buggy compiler should reuse the register of parent
3197 for one of the local variables, since it will think that
3198 parent can't possibly be used any more in this routine.
3199 Assigning to the local variable will thus munge parent
3200 in the parent process. */
3202 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3203 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3204 /* Convince the compiler that p..p7 are live; otherwise, it might
3205 use the same hardware register for all 8 local variables. */
3206 if (p != p1 || p != p2 || p != p3 || p != p4
3207 || p != p5 || p != p6 || p != p7)
3210 /* On some systems (e.g. IRIX 3.3),
3211 vfork doesn't separate parent from child file descriptors.
3212 If the child closes a descriptor before it execs or exits,
3213 this munges the parent's descriptor as well.
3214 Test for this by closing stdout in the child. */
3215 _exit(close(fileno(stdout)) != 0);
3220 while (wait(&status) != child)
3223 /* Was there some problem with vforking? */
3226 /* Did the child fail? (This shouldn't happen.) */
3229 /* Did the vfork/compiler bug occur? */
3230 || parent != getpid()
3232 /* Did the file descriptor bug occur? */
3233 || fstat(fileno(stdout), &st) != 0
3238 if { (eval echo configure:3239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3240 ac_cv_func_vfork_works=yes
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3245 ac_cv_func_vfork_works=no
3252 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3253 if test $ac_cv_func_vfork_works = no; then
3254 cat >> confdefs.h <<\EOF
3260 for ac_func in getpagesize
3262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_func" >&5
3264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 /* System header to define __stub macros and hopefully few prototypes,
3271 which can conflict with char $ac_func(); below. */
3273 /* Override any gcc2 internal prototype to avoid an error. */
3274 /* We use char because int might match the return type of a gcc2
3275 builtin and then its argument prototype would still apply. */
3280 /* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3291 if { (eval echo configure:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3293 eval "ac_cv_func_$ac_func=yes"
3295 echo "configure: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3298 eval "ac_cv_func_$ac_func=no"
3303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3306 cat >> confdefs.h <<EOF
3307 #define $ac_tr_func 1
3311 echo "$ac_t""no" 1>&6
3315 # The test program for the next two tests is the same except for one
3317 cat >ct-mmap.inc <<'EOF'
3318 #include <sys/types.h>
3319 #include <sys/mman.h>
3325 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3326 # define MAP_ANONYMOUS MAP_ANON
3329 /* This mess was copied from the GNU getpagesize.h. */
3330 #ifndef HAVE_GETPAGESIZE
3331 # ifdef HAVE_UNISTD_H
3332 # include <unistd.h>
3335 /* Assume that all systems that can run configure have sys/param.h. */
3336 # ifndef HAVE_SYS_PARAM_H
3337 # define HAVE_SYS_PARAM_H 1
3340 # ifdef _SC_PAGESIZE
3341 # define getpagesize() sysconf(_SC_PAGESIZE)
3342 # else /* no _SC_PAGESIZE */
3343 # ifdef HAVE_SYS_PARAM_H
3344 # include <sys/param.h>
3345 # ifdef EXEC_PAGESIZE
3346 # define getpagesize() EXEC_PAGESIZE
3347 # else /* no EXEC_PAGESIZE */
3349 # define getpagesize() NBPG * CLSIZE
3352 # endif /* no CLSIZE */
3353 # else /* no NBPG */
3355 # define getpagesize() NBPC
3356 # else /* no NBPC */
3358 # define getpagesize() PAGESIZE
3359 # endif /* PAGESIZE */
3360 # endif /* no NBPC */
3361 # endif /* no NBPG */
3362 # endif /* no EXEC_PAGESIZE */
3363 # else /* no HAVE_SYS_PARAM_H */
3364 # define getpagesize() 8192 /* punt totally */
3365 # endif /* no HAVE_SYS_PARAM_H */
3366 # endif /* no _SC_PAGESIZE */
3368 #endif /* no HAVE_GETPAGESIZE */
3371 # define MAP_FAILED -1
3375 #define perror_exit(str, val) \
3376 do { perror(str); exit(val); } while (0)
3378 /* Some versions of cygwin mmap require that munmap is called with the
3379 same parameters as mmap. GCC expects that this is not the case.
3380 Test for various forms of this problem. Warning - icky signal games. */
3382 static sigset_t unblock_sigsegv;
3392 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3393 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
3395 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3396 MAP_PRIVATE, devzero, 0);
3404 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
3408 /* Basic functionality test. */
3412 char *x = anonmap (pg);
3413 if (x == (char *) MAP_FAILED)
3414 perror_exit("test 0 mmap", 2);
3418 if (munmap(x, pg) < 0)
3419 perror_exit("test 0 munmap", 3);
3422 /* 1. If we map a 2-page region and unmap its second page, the first page
3427 char *x = anonmap (pg * 2);
3428 if (x == (char *)MAP_FAILED)
3429 perror_exit ("test 1 mmap", 4);
3431 signal (SIGSEGV, sigsegv);
3433 perror_exit ("test 1 fault", 5);
3438 if (munmap (x + pg, pg) < 0)
3439 perror_exit ("test 1 munmap 1", 6);
3442 if (setjmp (r) == 0)
3445 perror_exit ("test 1 no fault", 7);
3447 if (munmap (x, pg) < 0)
3448 perror_exit ("test 1 munmap 2", 8);
3451 /* 2. If we map a 2-page region and unmap its first page, the second
3452 page must remain. */
3456 char *x = anonmap (pg * 2);
3457 if (x == (char *)MAP_FAILED)
3458 perror_exit ("test 2 mmap", 9);
3460 signal (SIGSEGV, sigsegv);
3462 perror_exit ("test 2 fault", 10);
3467 if (munmap (x, pg) < 0)
3468 perror_exit ("test 2 munmap 1", 11);
3472 if (setjmp (r) == 0)
3475 perror_exit ("test 2 no fault", 12);
3478 if (munmap (x+pg, pg) < 0)
3479 perror_exit ("test 2 munmap 2", 13);
3482 /* 3. If we map two adjacent 1-page regions and unmap them both with
3483 one munmap, both must go away.
3485 Getting two adjacent 1-page regions with two mmap calls is slightly
3486 tricky. All OS's tested skip over already-allocated blocks; therefore
3487 we have been careful to unmap all allocated regions in previous tests.
3488 HP/UX allocates pages backward in memory. No OS has yet been observed
3489 to be so perverse as to leave unmapped space between consecutive calls
3498 if (x == (char *)MAP_FAILED)
3499 perror_exit ("test 3 mmap 1", 14);
3501 if (y == (char *)MAP_FAILED)
3502 perror_exit ("test 3 mmap 2", 15);
3507 z = y, y = x, x = z;
3510 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
3511 (unsigned long)x, (unsigned long)y);
3516 signal (SIGSEGV, sigsegv);
3518 perror_exit ("test 3 fault", 17);
3523 if (munmap (x, pg*2) < 0)
3524 perror_exit ("test 3 munmap", 18);
3526 if (setjmp (r) == 0)
3529 perror_exit ("test 3 no fault 1", 19);
3532 signal (SIGSEGV, sigsegv);
3533 if (setjmp (r) == 0)
3536 perror_exit ("test 3 no fault 2", 20);
3543 sigemptyset (&unblock_sigsegv);
3544 sigaddset (&unblock_sigsegv, SIGSEGV);
3545 pg = getpagesize ();
3546 #ifndef USE_MAP_ANON
3547 devzero = open ("/dev/zero", O_RDWR);
3549 perror_exit ("open /dev/zero", 1);
3561 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3562 echo "configure:3563: checking for working mmap from /dev/zero" >&5
3563 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 if test "$cross_compiling" = yes; then
3567 # If this is not cygwin, and /dev/zero is a character device, it's probably
3568 # safe to assume it works.
3570 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
3571 * ) if test -c /dev/zero
3572 then ac_cv_func_mmap_dev_zero=yes
3573 else ac_cv_func_mmap_dev_zero=no
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include "ct-mmap.inc"
3582 if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3584 ac_cv_func_mmap_dev_zero=yes
3586 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3590 then ac_cv_func_mmap_dev_zero=no
3591 else ac_cv_func_mmap_dev_zero=buggy
3600 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
3601 if test $ac_cv_func_mmap_dev_zero = yes; then
3602 cat >> confdefs.h <<\EOF
3603 #define HAVE_MMAP_DEV_ZERO 1
3608 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
3609 echo "configure:3610: checking for working mmap with MAP_ANON(YMOUS)" >&5
3610 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 if test "$cross_compiling" = yes; then
3614 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
3615 # just because it's there. Some SCO Un*xen define it but don't implement it.
3616 ac_cv_func_mmap_anon=no
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 #define USE_MAP_ANON
3622 #include "ct-mmap.inc"
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3626 ac_cv_func_mmap_anon=yes
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3632 then ac_cv_func_mmap_anon=no
3633 else ac_cv_func_mmap_anon=buggy
3642 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
3643 if test $ac_cv_func_mmap_anon = yes; then
3644 cat >> confdefs.h <<\EOF
3645 #define HAVE_MMAP_ANON 1
3651 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3652 echo "configure:3653: checking for working mmap of a file" >&5
3653 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 # Create a file one thousand bytes long.
3657 for i in 1 2 3 4 5 6 7 8 9 0
3658 do for j in 1 2 3 4 5 6 7 8 9 0
3661 done > conftestdata$$
3663 if test "$cross_compiling" = yes; then
3664 ac_cv_func_mmap_file=no
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3670 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3671 Richard Henderson and Alexandre Oliva.
3672 Check whether read-only mmap of a plain file works. */
3673 #include <sys/types.h>
3674 #include <sys/stat.h>
3676 #include <sys/mman.h>
3684 fd = open("conftestdata$$", O_RDONLY);
3688 if (fstat (fd, &st))
3691 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3692 if (x == (char *) -1)
3695 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3698 if (munmap(x, st.st_size) < 0)
3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3706 ac_cv_func_mmap_file=yes
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 ac_cv_func_mmap_file=no
3718 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3719 if test $ac_cv_func_mmap_file = yes; then
3720 cat >> confdefs.h <<\EOF
3721 #define HAVE_MMAP_FILE 1
3727 # We will need to find libiberty.h and ansidecl.h
3728 saved_CFLAGS="$CFLAGS"
3729 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3730 for ac_func in bcopy \
3731 getenv atol sbrk abort atof getcwd getwd \
3732 strsignal putc_unlocked fputs_unlocked strstr environ \
3733 malloc realloc calloc free basename getopt
3735 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3736 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3737 echo "configure:3738: checking whether $ac_func is declared" >&5
3738 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3745 #define $ac_tr_decl 1
3747 #include "gansidecl.h"
3752 char *(*pfn) = (char *(*)) $ac_func ;
3756 if { (eval echo configure:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3758 eval "gcc_cv_have_decl_$ac_func=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 eval "gcc_cv_have_decl_$ac_func=no"
3768 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3770 #define $ac_tr_decl 1
3774 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3775 #define $ac_tr_decl 0
3781 if test x = y ; then
3782 cat >> confdefs.h <<EOF
3783 #define HAVE_DECL_BCOPY 1
3786 cat >> confdefs.h <<EOF
3787 #define HAVE_DECL_GETENV 1
3789 cat >> confdefs.h <<EOF
3790 #define HAVE_DECL_ATOL 1
3792 cat >> confdefs.h <<EOF
3793 #define HAVE_DECL_SBRK 1
3795 cat >> confdefs.h <<EOF
3796 #define HAVE_DECL_ABORT 1
3798 cat >> confdefs.h <<EOF
3799 #define HAVE_DECL_ATOF 1
3801 cat >> confdefs.h <<EOF
3802 #define HAVE_DECL_GETCWD 1
3804 cat >> confdefs.h <<EOF
3805 #define HAVE_DECL_GETWD 1
3808 cat >> confdefs.h <<EOF
3809 #define HAVE_DECL_STRSIGNAL 1
3811 cat >> confdefs.h <<EOF
3812 #define HAVE_DECL_PUTC_UNLOCKED 1
3814 cat >> confdefs.h <<EOF
3815 #define HAVE_DECL_FPUTS_UNLOCKED 1
3817 cat >> confdefs.h <<EOF
3818 #define HAVE_DECL_STRSTR 1
3820 cat >> confdefs.h <<EOF
3821 #define HAVE_DECL_ENVIRON 1
3824 cat >> confdefs.h <<EOF
3825 #define HAVE_DECL_MALLOC 1
3827 cat >> confdefs.h <<EOF
3828 #define HAVE_DECL_REALLOC 1
3830 cat >> confdefs.h <<EOF
3831 #define HAVE_DECL_CALLOC 1
3833 cat >> confdefs.h <<EOF
3834 #define HAVE_DECL_FREE 1
3836 cat >> confdefs.h <<EOF
3837 #define HAVE_DECL_BASENAME 1
3839 cat >> confdefs.h <<EOF
3840 #define HAVE_DECL_GETOPT 1
3845 for ac_func in getrlimit setrlimit getrusage
3847 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3848 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3849 echo "configure:3850: checking whether $ac_func is declared" >&5
3850 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3857 #define $ac_tr_decl 1
3859 #include "gansidecl.h"
3861 #ifdef HAVE_SYS_RESOURCE_H
3862 #include <sys/resource.h>
3868 char *(*pfn) = (char *(*)) $ac_func ;
3872 if { (eval echo configure:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3874 eval "gcc_cv_have_decl_$ac_func=yes"
3876 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3879 eval "gcc_cv_have_decl_$ac_func=no"
3884 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3886 #define $ac_tr_decl 1
3890 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3891 #define $ac_tr_decl 0
3897 if test x = y ; then
3898 cat >> confdefs.h <<EOF
3899 #define HAVE_DECL_GETRLIMIT 1
3901 cat >> confdefs.h <<EOF
3902 #define HAVE_DECL_SETRLIMIT 1
3904 cat >> confdefs.h <<EOF
3905 #define HAVE_DECL_GETRUSAGE 1
3910 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3911 CFLAGS="$saved_CFLAGS"
3913 # mkdir takes a single argument on some systems.
3914 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3915 echo "configure:3916: checking if mkdir takes one argument" >&5
3916 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3923 #include <sys/types.h>
3924 #ifdef HAVE_SYS_STAT_H
3925 # include <sys/stat.h>
3927 #ifdef HAVE_UNISTD_H
3928 # include <unistd.h>
3930 #ifdef HAVE_DIRECT_H
3931 # include <direct.h>
3937 if { (eval echo configure:3938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3939 gcc_cv_mkdir_takes_one_arg=no
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 gcc_cv_mkdir_takes_one_arg=yes
3949 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3950 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3951 cat >> confdefs.h <<\EOF
3952 #define MKDIR_TAKES_ONE_ARG 1
3966 build_install_headers_dir=install-headers-tar
3971 host_truncate_target=
3974 # Decode the host machine, then the target machine.
3975 # For the host machine, we save the xm_file variable as host_xm_file;
3976 # then we decode the target machine and forget everything else
3977 # that came from the host machine.
3978 for machine in $build $host $target; do
3979 . ${srcdir}/config.gcc
3982 extra_objs="${host_extra_objs} ${extra_objs}"
3984 # Default the target-machine variables that were not explicitly set.
3985 if test x"$tm_file" = x
3986 then tm_file=$cpu_type/$cpu_type.h; fi
3988 if test x"$extra_headers" = x
3989 then extra_headers=; fi
3991 if test x"$xm_file" = x
3992 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3994 if test x$md_file = x
3995 then md_file=$cpu_type/$cpu_type.md; fi
3997 if test x$out_file = x
3998 then out_file=$cpu_type/$cpu_type.c; fi
4000 if test x"$tmake_file" = x
4001 then tmake_file=$cpu_type/t-$cpu_type
4004 if test x"$dwarf2" = xyes
4005 then tm_file="$tm_file tm-dwarf2.h"
4008 if test x$float_format = x
4009 then float_format=i64
4012 if test $float_format = none
4013 then float_h_file=Makefile.in
4014 else float_h_file=float-$float_format.h
4017 # Handle cpp installation.
4018 if test x$enable_cpp != xno
4020 tmake_file="$tmake_file t-install-cpp"
4023 # Say what files are being used for the output code and MD file.
4024 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4025 echo "Using \`$srcdir/config/$md_file' as machine description file."
4027 # If any of the xm_file variables contain nonexistent files, warn
4028 # about them and drop them. But $cpu/xm-$cpu.h is allowed not to
4029 # exist, if we have nothing for it to do.
4032 for x in $build_xm_file; do
4033 if test -f $srcdir/config/$x
4035 elif echo $x | grep '\(a-z0-9a-z0-9*\)/xm-\1\.h' >/dev/null
4037 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4043 for x in $host_xm_file; do
4044 if test -f $srcdir/config/$x
4046 elif echo $x | grep '\(a-z0-9a-z0-9*\)/xm-\1\.h' >/dev/null
4048 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4054 for x in $xm_file; do
4055 if test -f $srcdir/config/$x
4057 elif echo $x | grep '\(a-z0-9a-z0-9*\)/xm-\1\.h' >/dev/null
4059 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4065 for f in $tm_file; do
4068 if test $count = ax; then
4069 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4071 echo "Using the following target machine macro files:"
4072 for f in $tm_file; do
4073 echo " $srcdir/config/$f"
4078 for f in $host_xm_file; do
4081 if test $count = a; then
4083 elif test $count = ax; then
4084 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4086 echo "Using the following host machine macro files:"
4087 for f in $host_xm_file; do
4088 echo " $srcdir/config/$f"
4092 if test "$host_xm_file" != "$build_xm_file"; then
4094 for f in $build_xm_file; do
4097 if test $count = a; then
4099 elif test $count = ax; then
4100 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4102 echo "Using the following build machine macro files:"
4103 for f in $build_xm_file; do
4104 echo " $srcdir/config/$f"
4109 if test x$thread_file = x; then
4110 if test x$target_thread_file != x; then
4111 thread_file=$target_thread_file
4113 thread_file='single'
4117 # auto-host.h is the file containing items generated by autoconf and is
4118 # the first file included by config.h.
4119 # If host=build, it is correct to have hconfig include auto-host.h
4120 # as well. If host!=build, we are in error and need to do more
4121 # work to find out the build config parameters.
4122 if test x$host = x$build
4124 build_auto=auto-host.h
4126 # We create a subdir, then run autoconf in the subdir.
4127 # To prevent recursion we set host and build for the new
4128 # invocation of configure to the build for this invocation
4135 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4136 *) realsrcdir=../${srcdir};;
4138 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4139 --target=$target --host=$build --build=$build
4141 # We just finished tests for the build machine, so rename
4142 # the file auto-build.h in the gcc directory.
4143 mv auto-host.h ../auto-build.h
4146 build_auto=auto-build.h
4149 tm_file="${tm_file} defaults.h"
4150 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} ${tm_file} hwint.h"
4151 build_xm_file="${build_auto} gansidecl.h ${build_xm_file} ${tm_file} hwint.h"
4152 xm_file="gansidecl.h ${xm_file} ${tm_file}"
4154 # Truncate the target if necessary
4155 if test x$host_truncate_target != x; then
4156 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4159 # Get the version trigger filename from the toplevel
4160 if test "${with_gcc_version_trigger+set}" = set; then
4161 gcc_version_trigger=$with_gcc_version_trigger
4163 gcc_version_trigger=${srcdir}/version.c
4165 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4166 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4168 # Compile in configure arguments.
4169 if test -f configargs.h ; then
4170 # Being re-configured.
4171 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4172 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
4174 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
4176 cat > configargs.h <<EOF
4177 /* Generated automatically. */
4178 static const char configuration_arguments[] = "$gcc_config_arguments";
4181 # Internationalization
4183 VERSION="$gcc_version"
4184 cat >> confdefs.h <<EOF
4185 #define PACKAGE "$PACKAGE"
4188 cat >> confdefs.h <<EOF
4189 #define VERSION "$VERSION"
4197 # Enable NLS support by default
4198 # Check whether --enable-nls or --disable-nls was given.
4199 if test "${enable_nls+set}" = set; then
4200 enableval="$enable_nls"
4207 # if cross compiling, disable NLS support.
4208 # It's not worth the trouble, at least for now.
4210 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4211 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
4215 # if NLS is enabled, also enable check in po subdir
4216 if test $enable_nls = yes; then
4225 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
4226 echo "configure:4227: checking for strerror in -lcposix" >&5
4227 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
4228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 ac_save_LIBS="$LIBS"
4232 LIBS="-lcposix $LIBS"
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 /* Override any gcc2 internal prototype to avoid an error. */
4237 /* We use char because int might match the return type of a gcc2
4238 builtin and then its argument prototype would still apply. */
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4247 eval "ac_cv_lib_$ac_lib_var=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 eval "ac_cv_lib_$ac_lib_var=no"
4255 LIBS="$ac_save_LIBS"
4258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4259 echo "$ac_t""yes" 1>&6
4260 LIBS="$LIBS -lcposix"
4262 echo "$ac_t""no" 1>&6
4267 echo $ac_n "checking for working const""... $ac_c" 1>&6
4268 echo "configure:4269: checking for working const" >&5
4269 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4278 /* Ultrix mips cc rejects this. */
4279 typedef int charset[2]; const charset x;
4280 /* SunOS 4.1.1 cc rejects this. */
4281 char const *const *ccp;
4283 /* NEC SVR4.0.2 mips cc rejects this. */
4284 struct point {int x, y;};
4285 static struct point const zero = {0,0};
4286 /* AIX XL C 1.02.0.0 rejects this.
4287 It does not let you subtract one const X* pointer from another in an arm
4288 of an if-expression whose if-part is not a constant expression */
4289 const char *g = "string";
4290 ccp = &g + (g ? g-g : 0);
4291 /* HPUX 7.0 cc rejects these. */
4294 ccp = (char const *const *) p;
4295 { /* SCO 3.2v4 cc rejects this. */
4297 char const *s = 0 ? (char *) 0 : (char const *) 0;
4301 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4303 const int *foo = &x[0];
4306 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4307 typedef const int *iptr;
4311 { /* AIX XL C 1.02.0.0 rejects this saying
4312 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4313 struct s { int j; const int *ap[3]; };
4314 struct s *b; b->j = 5;
4316 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4322 if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4334 echo "$ac_t""$ac_cv_c_const" 1>&6
4335 if test $ac_cv_c_const = no; then
4336 cat >> confdefs.h <<\EOF
4342 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4343 echo "configure:4344: checking for off_t" >&5
4344 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 #include <sys/types.h>
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4359 ac_cv_type_off_t=yes
4367 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4368 if test $ac_cv_type_off_t = no; then
4369 cat >> confdefs.h <<\EOF
4375 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4376 echo "configure:4377: checking for size_t" >&5
4377 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 #include <sys/types.h>
4389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4392 ac_cv_type_size_t=yes
4395 ac_cv_type_size_t=no
4400 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4401 if test $ac_cv_type_size_t = no; then
4402 cat >> confdefs.h <<\EOF
4403 #define size_t unsigned
4409 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4410 unistd.h sys/param.h
4412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4414 echo "configure:4415: checking for $ac_hdr" >&5
4415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4424 { (eval echo configure:4425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4426 if test -z "$ac_err"; then
4428 eval "ac_cv_header_$ac_safe=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_header_$ac_safe=no"
4438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4441 cat >> confdefs.h <<EOF
4442 #define $ac_tr_hdr 1
4446 echo "$ac_t""no" 1>&6
4450 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4451 strdup __argz_count __argz_stringify __argz_next
4453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_func" >&5
4455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462 which can conflict with char $ac_func(); below. */
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4471 /* The GNU C library defines this for functions which it implements
4472 to always fail with ENOSYS. Some functions are actually named
4473 something starting with __ and the normal name is an alias. */
4474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4484 eval "ac_cv_func_$ac_func=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4489 eval "ac_cv_func_$ac_func=no"
4494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4497 cat >> confdefs.h <<EOF
4498 #define $ac_tr_func 1
4502 echo "$ac_t""no" 1>&6
4507 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4508 for ac_func in stpcpy
4510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4511 echo "configure:4512: checking for $ac_func" >&5
4512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 /* System header to define __stub macros and hopefully few prototypes,
4519 which can conflict with char $ac_func(); below. */
4521 /* Override any gcc2 internal prototype to avoid an error. */
4522 /* We use char because int might match the return type of a gcc2
4523 builtin and then its argument prototype would still apply. */
4528 /* The GNU C library defines this for functions which it implements
4529 to always fail with ENOSYS. Some functions are actually named
4530 something starting with __ and the normal name is an alias. */
4531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4541 eval "ac_cv_func_$ac_func=yes"
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4546 eval "ac_cv_func_$ac_func=no"
4551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4552 echo "$ac_t""yes" 1>&6
4553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4554 cat >> confdefs.h <<EOF
4555 #define $ac_tr_func 1
4559 echo "$ac_t""no" 1>&6
4564 if test "${ac_cv_func_stpcpy}" = "yes"; then
4565 cat >> confdefs.h <<\EOF
4566 #define HAVE_STPCPY 1
4571 if test $ac_cv_header_locale_h = yes; then
4572 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4573 echo "configure:4574: checking for LC_MESSAGES" >&5
4574 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 am_cv_val_LC_MESSAGES=yes
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 am_cv_val_LC_MESSAGES=no
4597 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4598 if test $am_cv_val_LC_MESSAGES = yes; then
4599 cat >> confdefs.h <<\EOF
4600 #define HAVE_LC_MESSAGES 1
4605 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4606 echo "configure:4607: checking whether NLS is requested" >&5
4607 # Check whether --enable-nls or --disable-nls was given.
4608 if test "${enable_nls+set}" = set; then
4609 enableval="$enable_nls"
4615 echo "$ac_t""$USE_NLS" 1>&6
4618 USE_INCLUDED_LIBINTL=no
4620 if test "$USE_NLS" = "yes"; then
4621 cat >> confdefs.h <<\EOF
4622 #define ENABLE_NLS 1
4625 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4626 echo "configure:4627: checking whether included gettext is requested" >&5
4627 # Check whether --with-included-gettext or --without-included-gettext was given.
4628 if test "${with_included_gettext+set}" = set; then
4629 withval="$with_included_gettext"
4630 nls_cv_force_use_gnu_gettext=$withval
4632 nls_cv_force_use_gnu_gettext=no
4635 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4637 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4638 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4640 nls_cv_header_libgt=
4643 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4644 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4645 echo "configure:4646: checking for libintl.h" >&5
4646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 #include <libintl.h>
4654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4655 { (eval echo configure:4656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4657 if test -z "$ac_err"; then
4659 eval "ac_cv_header_$ac_safe=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_header_$ac_safe=no"
4669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4670 echo "$ac_t""yes" 1>&6
4671 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4672 echo "configure:4673: checking for gettext in libc" >&5
4673 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <libintl.h>
4681 return (int) gettext ("")
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686 gt_cv_func_gettext_libc=yes
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4691 gt_cv_func_gettext_libc=no
4696 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4698 if test "$gt_cv_func_gettext_libc" != "yes"; then
4699 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4700 echo "configure:4701: checking for bindtextdomain in -lintl" >&5
4701 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 ac_save_LIBS="$LIBS"
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4713 char bindtextdomain();
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4721 eval "ac_cv_lib_$ac_lib_var=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4726 eval "ac_cv_lib_$ac_lib_var=no"
4729 LIBS="$ac_save_LIBS"
4732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4735 echo "configure:4736: checking for gettext in libintl" >&5
4736 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4739 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4740 echo "configure:4741: checking for gettext in -lintl" >&5
4741 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4745 ac_save_LIBS="$LIBS"
4747 cat > conftest.$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 /* Override any gcc2 internal prototype to avoid an error. */
4751 /* We use char because int might match the return type of a gcc2
4752 builtin and then its argument prototype would still apply. */
4759 if { (eval echo configure:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4761 eval "ac_cv_lib_$ac_lib_var=yes"
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4766 eval "ac_cv_lib_$ac_lib_var=no"
4769 LIBS="$ac_save_LIBS"
4772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4773 echo "$ac_t""yes" 1>&6
4774 gt_cv_func_gettext_libintl=yes
4776 echo "$ac_t""no" 1>&6
4777 gt_cv_func_gettext_libintl=no
4782 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4784 echo "$ac_t""no" 1>&6
4789 if test "$gt_cv_func_gettext_libintl" = "yes"; then
4793 if test "$gt_cv_func_gettext_libc" = "yes" \
4794 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4795 cat >> confdefs.h <<\EOF
4796 #define HAVE_GETTEXT 1
4799 # Extract the first word of "msgfmt", so it can be a program name with args.
4800 set dummy msgfmt; ac_word=$2
4801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4802 echo "configure:4803: checking for $ac_word" >&5
4803 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4808 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4812 for ac_dir in $PATH; do
4813 test -z "$ac_dir" && ac_dir=.
4814 if test -f $ac_dir/$ac_word; then
4815 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4816 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
4822 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="no"
4826 MSGFMT="$gcc_cv_path_MSGFMT"
4827 if test -n "$MSGFMT"; then
4828 echo "$ac_t""$MSGFMT" 1>&6
4830 echo "$ac_t""no" 1>&6
4832 if test "$MSGFMT" != "no"; then
4833 for ac_func in dcgettext
4835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_func" >&5
4837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 /* System header to define __stub macros and hopefully few prototypes,
4844 which can conflict with char $ac_func(); below. */
4846 /* Override any gcc2 internal prototype to avoid an error. */
4847 /* We use char because int might match the return type of a gcc2
4848 builtin and then its argument prototype would still apply. */
4853 /* The GNU C library defines this for functions which it implements
4854 to always fail with ENOSYS. Some functions are actually named
4855 something starting with __ and the normal name is an alias. */
4856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866 eval "ac_cv_func_$ac_func=yes"
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4871 eval "ac_cv_func_$ac_func=no"
4876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4877 echo "$ac_t""yes" 1>&6
4878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4879 cat >> confdefs.h <<EOF
4880 #define $ac_tr_func 1
4884 echo "$ac_t""no" 1>&6
4888 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4889 set dummy gmsgfmt; ac_word=$2
4890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4891 echo "configure:4892: checking for $ac_word" >&5
4892 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4897 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4900 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4905 for ac_dir in $ac_dummy; do
4906 test -z "$ac_dir" && ac_dir=.
4907 if test -f $ac_dir/$ac_word; then
4908 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
4913 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
4917 GMSGFMT="$gcc_cv_path_GMSGFMT"
4918 if test -n "$GMSGFMT"; then
4919 echo "$ac_t""$GMSGFMT" 1>&6
4921 echo "$ac_t""no" 1>&6
4924 # Extract the first word of "xgettext", so it can be a program name with args.
4925 set dummy xgettext; ac_word=$2
4926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4927 echo "configure:4928: checking for $ac_word" >&5
4928 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4933 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4937 for ac_dir in $PATH; do
4938 test -z "$ac_dir" && ac_dir=.
4939 if test -f $ac_dir/$ac_word; then
4940 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4941 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
4947 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
4951 XGETTEXT="$gcc_cv_path_XGETTEXT"
4952 if test -n "$XGETTEXT"; then
4953 echo "$ac_t""$XGETTEXT" 1>&6
4955 echo "$ac_t""no" 1>&6
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4963 extern int _nl_msg_cat_cntr;
4964 return _nl_msg_cat_cntr
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4981 create_catalogs="no"
4986 echo "$ac_t""no" 1>&6
4990 if test "$CATOBJEXT" = "NONE"; then
4991 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4992 echo "configure:4993: checking whether catgets can be used" >&5
4993 # Check whether --with-catgets or --without-catgets was given.
4994 if test "${with_catgets+set}" = set; then
4995 withval="$with_catgets"
4996 nls_cv_use_catgets=$withval
4998 nls_cv_use_catgets=no
5001 echo "$ac_t""$nls_cv_use_catgets" 1>&6
5003 if test "$nls_cv_use_catgets" = "yes"; then
5004 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
5005 echo "configure:5006: checking for main in -li" >&5
5006 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
5007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 ac_save_LIBS="$LIBS"
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022 eval "ac_cv_lib_$ac_lib_var=yes"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 eval "ac_cv_lib_$ac_lib_var=no"
5030 LIBS="$ac_save_LIBS"
5033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_lib 1
5044 echo "$ac_t""no" 1>&6
5047 echo $ac_n "checking for catgets""... $ac_c" 1>&6
5048 echo "configure:5049: checking for catgets" >&5
5049 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 /* System header to define __stub macros and hopefully few prototypes,
5056 which can conflict with char catgets(); below. */
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5065 /* The GNU C library defines this for functions which it implements
5066 to always fail with ENOSYS. Some functions are actually named
5067 something starting with __ and the normal name is an alias. */
5068 #if defined (__stub_catgets) || defined (__stub___catgets)
5076 if { (eval echo configure:5077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5078 eval "ac_cv_func_catgets=yes"
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5083 eval "ac_cv_func_catgets=no"
5088 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5089 echo "$ac_t""yes" 1>&6
5090 cat >> confdefs.h <<\EOF
5091 #define HAVE_CATGETS 1
5094 INTLOBJS="\$(CATOBJS)"
5095 # Extract the first word of "gencat", so it can be a program name with args.
5096 set dummy gencat; ac_word=$2
5097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5098 echo "configure:5099: checking for $ac_word" >&5
5099 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5104 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5107 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5112 for ac_dir in $ac_dummy; do
5113 test -z "$ac_dir" && ac_dir=.
5114 if test -f $ac_dir/$ac_word; then
5115 gcc_cv_path_GENCAT="$ac_dir/$ac_word"
5120 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT="no"
5124 GENCAT="$gcc_cv_path_GENCAT"
5125 if test -n "$GENCAT"; then
5126 echo "$ac_t""$GENCAT" 1>&6
5128 echo "$ac_t""no" 1>&6
5130 if test "$GENCAT" != "no"; then
5131 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5132 set dummy gmsgfmt; ac_word=$2
5133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5134 echo "configure:5135: checking for $ac_word" >&5
5135 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5140 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5143 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5148 for ac_dir in $ac_dummy; do
5149 test -z "$ac_dir" && ac_dir=.
5150 if test -f $ac_dir/$ac_word; then
5151 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5156 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="no"
5160 GMSGFMT="$gcc_cv_path_GMSGFMT"
5161 if test -n "$GMSGFMT"; then
5162 echo "$ac_t""$GMSGFMT" 1>&6
5164 echo "$ac_t""no" 1>&6
5167 if test "$GMSGFMT" = "no"; then
5168 # Extract the first word of "msgfmt", so it can be a program name with args.
5169 set dummy msgfmt; ac_word=$2
5170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5171 echo "configure:5172: checking for $ac_word" >&5
5172 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5177 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5181 for ac_dir in $PATH; do
5182 test -z "$ac_dir" && ac_dir=.
5183 if test -f $ac_dir/$ac_word; then
5184 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5185 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5191 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="msgfmt"
5195 GMSGFMT="$gcc_cv_path_GMSGFMT"
5196 if test -n "$GMSGFMT"; then
5197 echo "$ac_t""$GMSGFMT" 1>&6
5199 echo "$ac_t""no" 1>&6
5202 if test "$GMSGFMT" = "msgfmt"; then
5203 create_catalogs="no"
5206 # Extract the first word of "xgettext", so it can be a program name with args.
5207 set dummy xgettext; ac_word=$2
5208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5209 echo "configure:5210: checking for $ac_word" >&5
5210 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5215 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5219 for ac_dir in $PATH; do
5220 test -z "$ac_dir" && ac_dir=.
5221 if test -f $ac_dir/$ac_word; then
5222 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5223 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5229 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5233 XGETTEXT="$gcc_cv_path_XGETTEXT"
5234 if test -n "$XGETTEXT"; then
5235 echo "$ac_t""$XGETTEXT" 1>&6
5237 echo "$ac_t""no" 1>&6
5240 USE_INCLUDED_LIBINTL=yes
5244 INTLDEPS='$(top_builddir)/intl/libintl.a'
5246 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5247 nls_cv_header_intl=intl/libintl.h
5248 nls_cv_header_libgt=intl/libgettext.h
5251 echo "$ac_t""no" 1>&6
5257 if test "$CATOBJEXT" = "NONE"; then
5258 nls_cv_use_gnu_gettext=yes
5262 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5263 INTLOBJS="\$(GETTOBJS)"
5264 # Extract the first word of "msgfmt", so it can be a program name with args.
5265 set dummy msgfmt; ac_word=$2
5266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5267 echo "configure:5268: checking for $ac_word" >&5
5268 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5273 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5277 for ac_dir in $PATH; do
5278 test -z "$ac_dir" && ac_dir=.
5279 if test -f $ac_dir/$ac_word; then
5280 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5281 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5287 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="msgfmt"
5291 MSGFMT="$gcc_cv_path_MSGFMT"
5292 if test -n "$MSGFMT"; then
5293 echo "$ac_t""$MSGFMT" 1>&6
5295 echo "$ac_t""no" 1>&6
5298 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5299 set dummy gmsgfmt; ac_word=$2
5300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5301 echo "configure:5302: checking for $ac_word" >&5
5302 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5307 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5310 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5315 for ac_dir in $ac_dummy; do
5316 test -z "$ac_dir" && ac_dir=.
5317 if test -f $ac_dir/$ac_word; then
5318 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5323 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5327 GMSGFMT="$gcc_cv_path_GMSGFMT"
5328 if test -n "$GMSGFMT"; then
5329 echo "$ac_t""$GMSGFMT" 1>&6
5331 echo "$ac_t""no" 1>&6
5334 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
5335 create_catalogs="no"
5337 # Extract the first word of "xgettext", so it can be a program name with args.
5338 set dummy xgettext; ac_word=$2
5339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5340 echo "configure:5341: checking for $ac_word" >&5
5341 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5346 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5350 for ac_dir in $PATH; do
5351 test -z "$ac_dir" && ac_dir=.
5352 if test -f $ac_dir/$ac_word; then
5353 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5354 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5360 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5364 XGETTEXT="$gcc_cv_path_XGETTEXT"
5365 if test -n "$XGETTEXT"; then
5366 echo "$ac_t""$XGETTEXT" 1>&6
5368 echo "$ac_t""no" 1>&6
5372 USE_INCLUDED_LIBINTL=yes
5376 INTLDEPS='$(top_builddir)/intl/libintl.a'
5378 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5379 nls_cv_header_intl=intl/libintl.h
5380 nls_cv_header_libgt=intl/libgettext.h
5383 if test "$XGETTEXT" != ":"; then
5384 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5387 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5394 # We need to process the po/ directory.
5398 nls_cv_header_intl=intl/libintl.h
5399 nls_cv_header_libgt=intl/libgettext.h
5405 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5406 # because some of the sources are only built for this goal.
5407 if test "$PACKAGE" = gettext; then
5409 USE_INCLUDED_LIBINTL=yes
5412 for lang in $ALL_LINGUAS; do
5413 GMOFILES="$GMOFILES $lang.gmo"
5414 POFILES="$POFILES $lang.po"
5430 if test "x$create_catalogs" = "xno"; then
5431 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
5434 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
5435 if test "x$ALL_LINGUAS" = "x"; then
5438 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5439 echo "configure:5440: checking for catalogs to be installed" >&5
5440 if test "x$LINGUAS" = "x"; then
5441 LINGUAS=$ALL_LINGUAS
5444 for lang in $ALL_LINGUAS; do
5445 case " $LINGUAS " in
5446 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5449 LINGUAS=$NEW_LINGUAS
5451 echo "$ac_t""$LINGUAS" 1>&6
5454 if test -n "$LINGUAS"; then
5455 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5459 if test $ac_cv_header_locale_h = yes; then
5460 INCLUDE_LOCALE_H="#include <locale.h>"
5463 /* The system does not provide the header <locale.h>. Take care yourself. */"
5467 test -d intl || mkdir intl
5468 if test "$CATOBJEXT" = ".cat"; then
5469 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5470 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5471 echo "configure:5472: checking for linux/version.h" >&5
5472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5475 cat > conftest.$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5478 #include <linux/version.h>
5480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5481 { (eval echo configure:5482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5483 if test -z "$ac_err"; then
5485 eval "ac_cv_header_$ac_safe=yes"
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5491 eval "ac_cv_header_$ac_safe=no"
5495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5496 echo "$ac_t""yes" 1>&6
5499 echo "$ac_t""no" 1>&6
5504 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
5506 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5507 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
5509 if test "$PACKAGE" = "gettext"; then
5520 if test -n "$ac_aux_dir"; then
5521 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5523 if test -z "$MKINSTALLDIRS"; then
5524 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5531 test -d po || mkdir po
5532 if test "x$srcdir" != "x."; then
5533 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5534 posrcprefix="$srcdir/"
5536 posrcprefix="../$srcdir/"
5542 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5543 < $srcdir/po/POTFILES.in > po/POTFILES
5545 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
5547 # Windows32 Registry support for specifying GCC installation paths.
5548 # Check whether --enable-win32-registry or --disable-win32-registry was given.
5549 if test "${enable_win32_registry+set}" = set; then
5550 enableval="$enable_win32_registry"
5555 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
5556 echo "configure:5557: checking whether windows registry support is requested" >&5
5557 if test x$enable_win32_registry != xno; then
5558 cat >> confdefs.h <<\EOF
5559 #define ENABLE_WIN32_REGISTRY 1
5562 echo "$ac_t""yes" 1>&6
5564 echo "$ac_t""no" 1>&6
5567 # Check if user specified a different registry key.
5568 case x${enable_win32_registry} in
5571 gcc_cv_win32_registry_key="$VERSION"
5574 # no registry lookup.
5575 gcc_cv_win32_registry_key=''
5578 # user-specified key.
5579 gcc_cv_win32_registry_key="$enable_win32_registry"
5583 if test x$enable_win32_registry != xno; then
5584 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
5585 echo "configure:5586: checking registry key on windows hosts" >&5
5586 cat >> confdefs.h <<EOF
5587 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
5590 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
5593 # Get an absolute path to the GCC top-level source directory
5599 # Conditionalize the makefile for this host machine.
5600 # Make-host contains the concatenation of all host makefile fragments
5601 # [there can be more than one]. This file is built by configure.frag.
5602 host_overrides=Make-host
5603 dep_host_xmake_file=
5604 for f in .. ${host_xmake_file}
5606 if test -f ${srcdir}/config/$f
5608 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5612 # Conditionalize the makefile for this target machine.
5613 # Make-target contains the concatenation of all host makefile fragments
5614 # [there can be more than one]. This file is built by configure.frag.
5615 target_overrides=Make-target
5617 for f in .. ${tmake_file}
5619 if test -f ${srcdir}/config/$f
5621 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5625 # If the host doesn't support symlinks, modify CC in
5626 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5627 # Otherwise, we can use "CC=$(CC)".
5629 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
5631 cc_set_by_configure="\$(CC)"
5632 quoted_cc_set_by_configure="\$(CC)"
5633 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5636 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5638 symbolic_link="cp -p"
5642 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5643 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
5644 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5648 out_object_file=`basename $out_file .c`.o
5651 for f in $tm_file; do
5653 gansidecl.h | defaults.h )
5654 tm_file_list="${tm_file_list} $f" ;;
5655 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
5660 for f in $tm_p_file; do
5661 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
5665 for f in $host_xm_file; do
5667 auto-host.h | gansidecl.h | defaults.h | hwint.h )
5668 host_xm_file_list="${host_xm_file_list} $f" ;;
5669 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
5674 for f in $build_xm_file; do
5676 auto-build.h | auto-host.h | gansidecl.h | defaults.h | hwint.h )
5677 build_xm_file_list="${build_xm_file_list} $f" ;;
5678 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
5682 # Define macro CROSS_COMPILE in compilation
5683 # if this is a cross-compiler.
5684 # Also use all.cross instead of all.internal
5685 # and add cross-make to Makefile.
5686 cross_overrides="/dev/null"
5687 if test x$host != x$target
5689 cross_defines="CROSS=-DCROSS_COMPILE"
5690 cross_overrides="${topdir}/cross-make"
5693 # If this is a cross-compiler that does not
5694 # have its own set of headers then define
5697 # If this is using newlib, then define inhibit_libc in
5698 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5699 # libgcc.a, but that's OK because newlib should have its own version of
5702 if test x$host != x$target && test x$with_headers = x; then
5703 inhibit_libc=-Dinhibit_libc
5705 if test x$with_newlib = xyes; then
5706 inhibit_libc=-Dinhibit_libc
5711 # When building gcc with a cross-compiler, we need to fix a few things.
5712 # This must come after cross-make as we want all.build to override
5714 build_overrides="/dev/null"
5715 if test x$build != x$host
5717 build_overrides="${topdir}/build-make"
5720 # Expand extra_headers to include complete path.
5721 # This substitutes for lots of t-* files.
5723 if test "x$extra_headers" = x
5726 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5727 for file in $extra_headers;
5729 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5733 if test x$use_collect2 = xno; then
5737 # Add a definition of USE_COLLECT2 if system wants one.
5738 # Also tell toplev.c what to do.
5739 # This substitutes for lots of t-* files.
5740 if test x$use_collect2 = x
5745 will_use_collect2="collect2"
5746 maybe_use_collect2="-DUSE_COLLECT2"
5749 # If we have gas in the build tree, make a link to it.
5750 if test -f ../gas/Makefile; then
5751 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5754 # If we have nm in the build tree, make a link to it.
5755 if test -f ../binutils/Makefile; then
5756 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
5759 # If we have ld in the build tree, make a link to it.
5760 if test -f ../ld/Makefile; then
5761 # if test x$use_collect2 = x; then
5762 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5764 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5768 # Figure out what assembler we will be using.
5769 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
5770 echo "configure:5771: checking what assembler to use" >&5
5772 gcc_cv_gas_major_version=
5773 gcc_cv_gas_minor_version=
5774 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5775 if test -x "$DEFAULT_ASSEMBLER"; then
5776 gcc_cv_as="$DEFAULT_ASSEMBLER"
5777 elif test -x "$AS"; then
5779 elif test -x as$host_exeext; then
5780 # Build using assembler in the current directory.
5781 gcc_cv_as=./as$host_exeext
5782 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
5783 # Single tree build which includes gas.
5784 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
5786 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5787 if test x$gcc_cv_gas_version != x; then
5791 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5792 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5795 if test "x$gcc_cv_as" = x -a x$host = x$target; then
5797 # Search the same directories that the installed compiler will
5798 # search. Else we may find the wrong assembler and lose. If we
5799 # do not find a suitable assembler binary, then try the user's
5802 # Also note we have to check MD_EXEC_PREFIX before checking the
5803 # user's path. Unfortunately, there is no good way to get at the
5804 # value of MD_EXEC_PREFIX here. So we do a brute force search
5805 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5806 # to be fixed as part of the make/configure rewrite too.
5808 if test "x$exec_prefix" = xNONE; then
5809 if test "x$prefix" = xNONE; then
5810 test_prefix=/usr/local
5815 test_prefix=$exec_prefix
5818 # If the loop below does not find an assembler, then use whatever
5819 # one we can find in the users's path.
5823 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
5824 $test_prefix/lib/gcc-lib/$target \
5825 /usr/lib/gcc/$target/$gcc_version \
5826 /usr/lib/gcc/$target \
5827 $test_prefix/$target/bin/$target/$gcc_version \
5828 $test_prefix/$target/bin \
5833 /bsd43/usr/lib/cmplrs/cc \
5834 /usr/cross64/usr/bin \
5835 /usr/lib/cmplrs/cc \
5836 /sysv/usr/lib/cmplrs/cc \
5837 /svr4/usr/lib/cmplrs/cc \
5840 for dir in $test_dirs; do
5841 if test -f $dir/as$host_exeext; then
5842 gcc_cv_as=$dir/as$host_exeext
5847 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5848 echo "$ac_t"""newly built gas"" 1>&6
5850 echo "$ac_t""$gcc_cv_as" 1>&6
5853 # Figure out what nm we will be using.
5854 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
5855 echo "configure:5856: checking what nm to use" >&5
5856 if test -x nm$host_exeext; then
5857 gcc_cv_nm=./nm$host_exeext
5858 elif test x$host = x$target; then
5860 gcc_cv_nm=nm$host_exeext
5862 echo "$ac_t""$gcc_cv_nm" 1>&6
5864 # Figure out what assembler alignment features are present.
5865 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5866 echo "configure:5867: checking assembler alignment features" >&5
5867 gcc_cv_as_alignment_features=none
5868 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5869 # Gas version 2.6 and later support for .balign and .p2align.
5870 # bytes to skip when using .p2align.
5871 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
5872 gcc_cv_as_alignment_features=".balign and .p2align"
5873 cat >> confdefs.h <<\EOF
5874 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5878 # Gas version 2.8 and later support specifying the maximum
5879 # bytes to skip when using .p2align.
5880 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
5881 gcc_cv_as_alignment_features=".p2align including maximum skip"
5882 cat >> confdefs.h <<\EOF
5883 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5887 elif test x$gcc_cv_as != x; then
5888 # Check if we have .balign and .p2align
5889 echo ".balign 4" > conftest.s
5890 echo ".p2align 2" >> conftest.s
5891 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5892 gcc_cv_as_alignment_features=".balign and .p2align"
5893 cat >> confdefs.h <<\EOF
5894 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5898 rm -f conftest.s conftest.o
5899 # Check if specifying the maximum bytes to skip when
5900 # using .p2align is supported.
5901 echo ".p2align 4,,7" > conftest.s
5902 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5903 gcc_cv_as_alignment_features=".p2align including maximum skip"
5904 cat >> confdefs.h <<\EOF
5905 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5909 rm -f conftest.s conftest.o
5911 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5913 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5914 echo "configure:5915: checking assembler subsection support" >&5
5915 gcc_cv_as_subsections=no
5916 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5917 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
5918 gcc_cv_as_subsections="working .subsection -1"
5920 elif test x$gcc_cv_as != x; then
5921 # Check if we have .subsection
5922 echo ".subsection 1" > conftest.s
5923 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5924 gcc_cv_as_subsections=".subsection"
5925 if test x$gcc_cv_nm != x; then
5926 cat > conftest.s <<EOF
5927 conftest_label1: .word 0
5929 conftest_label2: .word 0
5932 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5933 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
5934 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
5935 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
5938 gcc_cv_as_subsections="working .subsection -1"
5943 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5945 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
5946 cat >> confdefs.h <<\EOF
5947 #define HAVE_GAS_SUBSECTION_ORDERING 1
5951 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
5953 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
5954 echo "configure:5955: checking assembler weak support" >&5
5956 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5957 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
5958 gcc_cv_as_weak="yes"
5960 elif test x$gcc_cv_as != x; then
5961 # Check if we have .weak
5962 echo " .weak foobar" > conftest.s
5963 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5964 gcc_cv_as_weak="yes"
5966 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5968 if test x"$gcc_cv_as_weak" = xyes; then
5969 cat >> confdefs.h <<\EOF
5970 #define HAVE_GAS_WEAK 1
5974 echo "$ac_t""$gcc_cv_as_weak" 1>&6
5976 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
5977 echo "configure:5978: checking assembler hidden support" >&5
5979 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5980 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
5981 gcc_cv_as_hidden="yes"
5983 elif test x$gcc_cv_as != x; then
5984 # Check if we have .hidden
5985 echo " .hidden foobar" > conftest.s
5986 echo "foobar:" >> conftest.s
5987 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5988 gcc_cv_as_hidden="yes"
5990 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5992 if test x"$gcc_cv_as_hidden" = xyes; then
5993 cat >> confdefs.h <<\EOF
5994 #define HAVE_GAS_HIDDEN 1
5998 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
6000 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
6001 echo "configure:6002: checking assembler leb128 support" >&5
6003 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6004 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
6005 gcc_cv_as_leb128="yes"
6007 elif test x$gcc_cv_as != x; then
6008 # Check if we have .[us]leb128, and support symbol arithmetic with it.
6009 cat > conftest.s <<EOF
6017 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6018 gcc_cv_as_leb128="yes"
6020 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6022 if test x"$gcc_cv_as_leb128" = xyes; then
6023 cat >> confdefs.h <<\EOF
6024 #define HAVE_AS_LEB128 1
6028 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
6032 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
6033 echo "configure:6034: checking assembler .register pseudo-op support" >&5
6034 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
6035 echo $ac_n "(cached) $ac_c" 1>&6
6038 gcc_cv_as_register_pseudo_op=unknown
6039 if test x$gcc_cv_as != x; then
6040 # Check if we have .register
6041 echo ".register %g2, #scratch" > conftest.s
6042 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6043 gcc_cv_as_register_pseudo_op=yes
6045 gcc_cv_as_register_pseudo_op=no
6047 rm -f conftest.s conftest.o
6052 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
6053 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
6054 cat >> confdefs.h <<\EOF
6055 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6060 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
6061 echo "configure:6062: checking assembler supports -relax" >&5
6062 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6066 gcc_cv_as_relax_opt=unknown
6067 if test x$gcc_cv_as != x; then
6068 # Check if gas supports -relax
6069 echo ".text" > conftest.s
6070 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
6071 gcc_cv_as_relax_opt=yes
6073 gcc_cv_as_relax_opt=no
6075 rm -f conftest.s conftest.o
6080 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
6081 if test "x$gcc_cv_as_relax_opt" = xyes; then
6082 cat >> confdefs.h <<\EOF
6083 #define HAVE_AS_RELAX_OPTION 1
6090 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
6091 echo "configure:6092: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
6092 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6096 if test -n "$gcc_cv_as"; then
6097 echo ".xword foo" > conftest.s
6098 gcc_cv_as_flags64=no
6099 for flag in "-xarch=v9" "-64 -Av9"; do
6100 if $gcc_cv_as $flag -o conftest.o conftest.s \
6101 > /dev/null 2>&1; then
6102 gcc_cv_as_flags64=$flag
6106 rm -f conftest.s conftest.o
6108 if test "$gas" = yes; then
6109 gcc_cv_as_flags64="-64 -Av9"
6111 gcc_cv_as_flags64="-xarch=v9"
6117 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
6118 if test "x$gcc_cv_as_flags64" = xno; then
6120 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6121 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6124 cat >> confdefs.h <<EOF
6125 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
6130 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
6134 if test "x$gcc_cv_as_flags64" != xno; then
6135 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6136 echo "configure:6137: checking for assembler offsetable %lo() support" >&5
6137 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6141 gcc_cv_as_offsetable_lo10=unknown
6142 if test "x$gcc_cv_as" != x; then
6143 # Check if assembler has offsetable %lo()
6144 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6145 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6146 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
6148 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
6149 > /dev/null 2>&1; then
6150 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
6151 gcc_cv_as_offsetable_lo10=no
6153 gcc_cv_as_offsetable_lo10=yes
6156 gcc_cv_as_offsetable_lo10=no
6158 rm -f conftest.s conftest.o conftest1.s conftest1.o
6163 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6164 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
6165 cat >> confdefs.h <<\EOF
6166 #define HAVE_AS_OFFSETABLE_LO10 1
6174 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6175 echo "configure:6176: checking assembler instructions" >&5
6176 gcc_cv_as_instructions=
6177 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6178 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
6179 gcc_cv_as_instructions="filds fists"
6181 elif test x$gcc_cv_as != x; then
6182 set "filds fists" "filds mem; fists mem"
6185 echo "$2" > conftest.s
6186 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6187 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
6191 rm -f conftest.s conftest.o
6193 if test x"$gcc_cv_as_instructions" != x; then
6194 cat >> confdefs.h <<EOF
6195 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6199 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6203 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6204 echo "configure:6205: checking assembler dwarf2 debug_line support" >&5
6205 gcc_cv_as_dwarf2_debug_line=no
6206 # ??? Not all targets support dwarf2 debug_line, even within a version
6207 # of gas. Moreover, we need to emit a valid instruction to trigger any
6208 # info to the output file. So, as supported targets are added to gas 2.11,
6209 # add some instruction here to (also) show we expect this might work.
6210 # ??? Once 2.11 is released, probably need to add first known working
6211 # version to the per-target configury.
6213 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-*)
6220 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
6222 if test "$gcc_cv_gas_major_version" -eq 2 \
6223 -a "$gcc_cv_gas_minor_version" -ge 11 \
6224 -o "$gcc_cv_gas_major_version" -gt 2 \
6225 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
6226 && test x"$insn" != x ; then
6227 gcc_cv_as_dwarf2_debug_line="yes"
6229 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
6230 echo ' .file 0 "conftest.s"' > conftest.s
6231 echo ' .loc 0 3 0' >> conftest.s
6232 echo " $insn" >> conftest.s
6233 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
6234 && grep debug_line conftest.o > /dev/null 2>&1 ; then
6235 gcc_cv_as_dwarf2_debug_line="yes"
6237 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6239 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
6240 cat >> confdefs.h <<\EOF
6241 #define HAVE_AS_DWARF2_DEBUG_LINE 1
6245 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
6247 # Figure out what language subdirectories are present.
6248 # Look if the user specified --enable-languages="..."; if not, use
6249 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6251 if test x"${enable_languages+set}" != xset; then
6252 if test x"${LANGUAGES+set}" = xset; then
6253 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
6255 enable_languages=all
6258 if test x"${enable_languages}" = x; then
6259 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
6263 # First scan to see if an enabled language requires some other language.
6264 # We assume that a given config-lang.in will list all the language
6265 # front ends it requires, even if some are required indirectly.
6266 for lang in ${srcdir}/*/config-lang.in ..
6271 # The odd quoting in the next line works around
6272 # an apparent bug in bash 1.12 on linux.
6273 ${srcdir}/[*]/config-lang.in)
6276 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6277 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
6278 for other in $this_lang_requires
6280 case ,${enable_languages}, in
6286 enable_languages="$enable_languages,$other"
6295 for lang in ${srcdir}/*/config-lang.in ..
6299 # The odd quoting in the next line works around
6300 # an apparent bug in bash 1.12 on linux.
6301 ${srcdir}/[*]/config-lang.in) ;;
6303 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6304 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
6305 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
6306 if test "x$lang_alias" = x
6308 echo "$lang doesn't set \$language." 1>&2
6311 case ${build_by_default},${enable_languages}, in
6312 *,$lang_alias,*) add_this_lang=yes ;;
6313 no,*) add_this_lang=no ;;
6314 *,all,*) add_this_lang=yes ;;
6315 *) add_this_lang=no ;;
6317 if test x"${add_this_lang}" = xyes; then
6319 ${srcdir}/ada/config-lang.in)
6320 if test x$have_gnat = xyes ; then
6321 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6325 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6333 # Make gthr-default.h if we have a thread file.
6335 if test $thread_file != single; then
6336 rm -f gthr-default.h
6337 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
6338 gthread_flags=-DHAVE_GTHR_DEFAULT
6342 # Find out what GC implementation we want, or may, use.
6343 # Check whether --with-gc or --without-gc was given.
6344 if test "${with_gc+set}" = set; then
6351 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
6359 echo "Using $GGC for garbage collection."
6361 # Use the system's zlib library.
6363 zlibinc="-I\$(srcdir)/../zlib"
6364 # Check whether --with-system-zlib or --without-system-zlib was given.
6365 if test "${with_system_zlib+set}" = set; then
6366 withval="$with_system_zlib"
6375 cat >> confdefs.h <<EOF
6376 #define ENABLE_STD_NAMESPACE 1
6381 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6382 echo "configure:6383: checking whether to enable maintainer-specific portions of Makefiles" >&5
6383 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6384 if test "${enable_maintainer_mode+set}" = set; then
6385 enableval="$enable_maintainer_mode"
6386 maintainer_mode=$enableval
6392 echo "$ac_t""$maintainer_mode" 1>&6
6394 if test "$maintainer_mode" = "yes"; then
6400 # Make empty files to contain the specs and options for each language.
6401 # Then add #include lines to for a compiler that has specs and/or options.
6406 rm -f specs.h options.h gencheck.h
6407 touch specs.h options.h gencheck.h
6408 for subdir in . $subdirs
6410 if test -f $srcdir/$subdir/lang-specs.h; then
6411 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
6412 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
6414 if test -f $srcdir/$subdir/lang-options.h; then
6415 echo "#include \"$subdir/lang-options.h\"" >>options.h
6416 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
6418 if test -f $srcdir/$subdir/$subdir-tree.def; then
6419 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
6420 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
6424 # These (without "all_") are set in each config-lang.in.
6425 # `language' must be a single word so is spelled singularly.
6431 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
6432 # List of language makefile fragments.
6437 # Add the language fragments.
6438 # Languages are added via two mechanisms. Some information must be
6439 # recorded in makefile variables, these are defined in config-lang.in.
6440 # We accumulate them and plug them into the main Makefile.
6441 # The other mechanism is a set of hooks for each of the main targets
6442 # like `clean', `install', etc.
6444 language_fragments="Make-lang"
6445 language_hooks="Make-hooks"
6447 for s in .. $subdirs
6459 . ${srcdir}/$s/config-lang.in
6460 if test "x$language" = x
6462 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
6465 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
6466 if test -f ${srcdir}/$s/Makefile.in
6467 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
6469 all_languages="$all_languages $language"
6470 if test "x$boot_language" = xyes
6472 all_boot_languages="$all_boot_languages $language"
6474 all_compilers="$all_compilers $compilers"
6475 all_stagestuff="$all_stagestuff $stagestuff"
6476 all_diff_excludes="$all_diff_excludes $diff_excludes"
6477 all_headers="$all_headers $headers"
6478 all_outputs="$all_outputs $outputs"
6479 all_lib2funcs="$all_lib2funcs $lib2funcs"
6484 for language in .. $all_languages
6486 if test $language != ".."
6488 check_languages="$check_languages check-$language"
6492 # Since we can't use `::' targets, we link each language in
6493 # with a set of hooks, reached indirectly via lang.${target}.
6497 target_list="all.build all.cross start.encap rest.encap \
6499 install-normal install-common install-info install-man \
6501 mostlyclean clean distclean extraclean maintainer-clean \
6502 stage1 stage2 stage3 stage4"
6503 for t in $target_list
6506 for lang in .. $all_languages
6508 if test $lang != ".."; then
6512 echo "lang.$t: $x" >> Make-hooks
6517 echo "dir ." > .gdbinit
6518 echo "dir ${srcdir}" >> .gdbinit
6519 if test x$gdb_needs_out_file_path = xyes
6521 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
6523 if test "x$subdirs" != x; then
6526 echo "dir ${srcdir}/$s" >> .gdbinit
6529 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
6531 # Define variables host_canonical and build_canonical
6532 # because some Cygnus local changes in the Makefile depend on them.
6533 build_canonical=${build}
6534 host_canonical=${host}
6536 if test "${host}" != "${target}" ; then
6537 target_subdir=${target}/
6543 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
6544 # absolute path for gcc_tooldir based on inserting the number of up-directory
6545 # movements required to get from $(exec_prefix) to $(prefix) into the basic
6546 # $(libsubdir)/@(unlibsubdir) based path.
6547 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
6548 # make and thus we'd get different behavior depending on where we built the
6550 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
6551 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
6553 # An explanation of the sed strings:
6554 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
6555 # -e 's|/$||' match a trailing forward slash and eliminates it
6556 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
6557 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
6559 # (*) Note this pattern overwrites the first character of the string
6560 # with a forward slash if one is not already present. This is not a
6561 # problem because the exact names of the sub-directories concerned is
6562 # unimportant, just the number of them matters.
6564 # The practical upshot of these patterns is like this:
6566 # prefix exec_prefix result
6567 # ------ ----------- ------
6569 # /foo/ /foo/bar ../
6570 # /foo /foo/bar/ ../
6571 # /foo/ /foo/bar/ ../
6572 # /foo /foo/bar/ugg ../../
6575 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
6580 # Find a directory in which to install a shared libgcc.
6582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
6583 if test "${enable_version_specific_runtime_libs+set}" = set; then
6584 enableval="$enable_version_specific_runtime_libs"
6589 # Check whether --with-slibdir or --without-slibdir was given.
6590 if test "${with_slibdir+set}" = set; then
6591 withval="$with_slibdir"
6592 slibdir="$with_slibdir"
6594 if test "${enable_version_specific_runtime_libs+set}" = set; then
6595 slibdir='$(libsubdir)'
6596 elif test "$host" != "$target"; then
6597 slibdir='$(build_tooldir)/lib'
6605 # Nothing to do for FLOAT_H, float_format already handled.
6609 # Process the language and host/target makefile fragments.
6610 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
6612 # Substitute configuration variables
6682 # Echo that links are built
6683 if test x$host = x$target
6691 if test x$host != x$build
6693 str3=" on a $build system"
6696 if test "x$str2" != x || test "x$str3" != x
6701 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
6703 if test "x$str2" != x || test "x$str3" != x
6705 echo " ${str2}${str3}." 1>&2
6708 # Truncate the target if necessary
6709 if test x$host_truncate_target != x; then
6710 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6713 # Configure the subdirectories
6714 # AC_CONFIG_SUBDIRS($subdirs)
6716 # Create the Makefile
6717 # and configure language subdirectories
6719 cat > confcache <<\EOF
6720 # This file is a shell script that caches the results of configure
6721 # tests run on this system so they can be shared between configure
6722 # scripts and configure runs. It is not useful on other systems.
6723 # If it contains results you don't want to keep, you may remove or edit it.
6725 # By default, configure uses ./config.cache as the cache file,
6726 # creating it if it does not exist already. You can give configure
6727 # the --cache-file=FILE option to use a different cache file; that is
6728 # what configure does when it calls configure scripts in
6729 # subdirectories, so they share the cache.
6730 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6731 # config.status only pays attention to the cache file if you give it the
6732 # --recheck option to rerun configure.
6735 # The following way of writing the cache mishandles newlines in values,
6736 # but we know of no workaround that is simple, portable, and efficient.
6737 # So, don't put newlines in cache variables' values.
6738 # Ultrix sh set writes to stderr and can't be redirected directly,
6739 # and sets the high bit in the cache file unless we assign to the vars.
6741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6743 # `set' does not quote correctly, so add quotes (double-quote substitution
6744 # turns \\\\ into \\, and sed turns \\ into \).
6746 -e "s/'/'\\\\''/g" \
6747 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6750 # `set' quotes correctly as required by POSIX, so do not add quotes.
6751 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6754 if cmp -s $cache_file confcache; then
6757 if test -w $cache_file; then
6758 echo "updating cache $cache_file"
6759 cat confcache > $cache_file
6761 echo "not updating unwritable cache $cache_file"
6766 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6768 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6769 # Let make expand exec_prefix.
6770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6772 # Any assignment to VPATH causes Sun make to only execute
6773 # the first set of double-colon rules, so remove it if not needed.
6774 # If there is a colon in the path, we need to keep it.
6775 if test "x$srcdir" = x.; then
6776 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6779 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6781 DEFS=-DHAVE_CONFIG_H
6783 # Without the "./", some shells look in PATH for config.status.
6784 : ${CONFIG_STATUS=./config.status}
6786 echo creating $CONFIG_STATUS
6787 rm -f $CONFIG_STATUS
6788 cat > $CONFIG_STATUS <<EOF
6790 # Generated automatically by configure.
6791 # Run this file to recreate the current configuration.
6792 # This directory was configured as follows,
6793 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6795 # $0 $ac_configure_args
6797 # Compiler output produced by configure, useful for debugging
6798 # configure, is in ./config.log if it exists.
6800 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6803 case "\$ac_option" in
6804 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6805 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6806 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6807 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6808 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6810 -help | --help | --hel | --he | --h)
6811 echo "\$ac_cs_usage"; exit 0 ;;
6812 *) echo "\$ac_cs_usage"; exit 1 ;;
6816 ac_given_srcdir=$srcdir
6818 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6820 cat >> $CONFIG_STATUS <<EOF
6822 # Protect against being on the right side of a sed subst in config.status.
6823 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6824 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6828 s%@CFLAGS@%$CFLAGS%g
6829 s%@CPPFLAGS@%$CPPFLAGS%g
6830 s%@CXXFLAGS@%$CXXFLAGS%g
6831 s%@FFLAGS@%$FFLAGS%g
6833 s%@LDFLAGS@%$LDFLAGS%g
6835 s%@exec_prefix@%$exec_prefix%g
6836 s%@prefix@%$prefix%g
6837 s%@program_transform_name@%$program_transform_name%g
6838 s%@bindir@%$bindir%g
6839 s%@sbindir@%$sbindir%g
6840 s%@libexecdir@%$libexecdir%g
6841 s%@datadir@%$datadir%g
6842 s%@sysconfdir@%$sysconfdir%g
6843 s%@sharedstatedir@%$sharedstatedir%g
6844 s%@localstatedir@%$localstatedir%g
6845 s%@libdir@%$libdir%g
6846 s%@includedir@%$includedir%g
6847 s%@oldincludedir@%$oldincludedir%g
6848 s%@infodir@%$infodir%g
6849 s%@mandir@%$mandir%g
6850 s%@enable_multilib@%$enable_multilib%g
6851 s%@enable_shared@%$enable_shared%g
6853 s%@host_alias@%$host_alias%g
6854 s%@host_cpu@%$host_cpu%g
6855 s%@host_vendor@%$host_vendor%g
6856 s%@host_os@%$host_os%g
6857 s%@target@%$target%g
6858 s%@target_alias@%$target_alias%g
6859 s%@target_cpu@%$target_cpu%g
6860 s%@target_vendor@%$target_vendor%g
6861 s%@target_os@%$target_os%g
6863 s%@build_alias@%$build_alias%g
6864 s%@build_cpu@%$build_cpu%g
6865 s%@build_vendor@%$build_vendor%g
6866 s%@build_os@%$build_os%g
6868 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
6869 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
6870 s%@strict1_warn@%$strict1_warn%g
6871 s%@warn_cflags@%$warn_cflags%g
6872 s%@stage1_cflags@%$stage1_cflags%g
6873 s%@SET_MAKE@%$SET_MAKE%g
6877 s%@RANLIB@%$RANLIB%g
6878 s%@INSTALL@%$INSTALL%g
6879 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6880 s%@INSTALL_DATA@%$INSTALL_DATA%g
6882 s%@have_gnat@%$have_gnat%g
6883 s%@have_mktemp_command@%$have_mktemp_command%g
6884 s%@MAKEINFO@%$MAKEINFO%g
6885 s%@BUILD_INFO@%$BUILD_INFO%g
6886 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
6889 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
6890 s%@vfprintf@%$vfprintf%g
6891 s%@doprint@%$doprint%g
6892 s%@strstr@%$strstr%g
6893 s%@manext@%$manext%g
6894 s%@objext@%$objext%g
6895 s%@PACKAGE@%$PACKAGE%g
6896 s%@VERSION@%$VERSION%g
6897 s%@CHECK_PO@%$CHECK_PO%g
6898 s%@USE_NLS@%$USE_NLS%g
6899 s%@MSGFMT@%$MSGFMT%g
6900 s%@GMSGFMT@%$GMSGFMT%g
6901 s%@XGETTEXT@%$XGETTEXT%g
6902 s%@GENCAT@%$GENCAT%g
6903 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6904 s%@CATALOGS@%$CATALOGS%g
6905 s%@CATOBJEXT@%$CATOBJEXT%g
6906 s%@DATADIRNAME@%$DATADIRNAME%g
6907 s%@GMOFILES@%$GMOFILES%g
6908 s%@INSTOBJEXT@%$INSTOBJEXT%g
6909 s%@INTLDEPS@%$INTLDEPS%g
6910 s%@INTLLIBS@%$INTLLIBS%g
6911 s%@INTLOBJS@%$INTLOBJS%g
6912 s%@POFILES@%$POFILES%g
6914 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6916 s%@GT_YES@%$GT_YES%g
6917 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6919 s%@inhibit_libc@%$inhibit_libc%g
6920 s%@gthread_flags@%$gthread_flags%g
6922 s%@zlibdir@%$zlibdir%g
6923 s%@zlibinc@%$zlibinc%g
6925 s%@build_canonical@%$build_canonical%g
6926 s%@host_canonical@%$host_canonical%g
6927 s%@target_subdir@%$target_subdir%g
6928 s%@gcc_tooldir@%$gcc_tooldir%g
6929 s%@dollar@%$dollar%g
6930 s%@slibdir@%$slibdir%g
6931 s%@objdir@%$objdir%g
6932 s%@subdirs@%$subdirs%g
6933 s%@all_boot_languages@%$all_boot_languages%g
6934 s%@all_compilers@%$all_compilers%g
6935 s%@all_diff_excludes@%$all_diff_excludes%g
6936 s%@all_headers@%$all_headers%g
6937 s%@all_lang_makefiles@%$all_lang_makefiles%g
6938 s%@all_languages@%$all_languages%g
6939 s%@all_lib2funcs@%$all_lib2funcs%g
6940 s%@all_stagestuff@%$all_stagestuff%g
6941 s%@build_exeext@%$build_exeext%g
6942 s%@build_install_headers_dir@%$build_install_headers_dir%g
6943 s%@build_xm_file_list@%$build_xm_file_list%g
6944 s%@build_xm_file@%$build_xm_file%g
6945 s%@build_xm_defines@%$build_xm_defines%g
6946 s%@check_languages@%$check_languages%g
6947 s%@cc_set_by_configure@%$cc_set_by_configure%g
6948 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
6949 s%@cpp_install_dir@%$cpp_install_dir%g
6950 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6951 s%@dep_tmake_file@%$dep_tmake_file%g
6952 s%@extra_c_flags@%$extra_c_flags%g
6953 s%@extra_headers_list@%$extra_headers_list%g
6954 s%@extra_objs@%$extra_objs%g
6955 s%@extra_parts@%$extra_parts%g
6956 s%@extra_passes@%$extra_passes%g
6957 s%@extra_programs@%$extra_programs%g
6958 s%@float_h_file@%$float_h_file%g
6959 s%@gcc_config_arguments@%$gcc_config_arguments%g
6960 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
6961 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
6962 s%@gcc_version@%$gcc_version%g
6963 s%@gcc_version_full@%$gcc_version_full%g
6964 s%@gcc_version_trigger@%$gcc_version_trigger%g
6965 s%@host_exeext@%$host_exeext%g
6966 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6967 s%@host_xm_file_list@%$host_xm_file_list%g
6968 s%@host_xm_file@%$host_xm_file%g
6969 s%@host_xm_defines@%$host_xm_defines%g
6970 s%@install@%$install%g
6971 s%@lang_options_files@%$lang_options_files%g
6972 s%@lang_specs_files@%$lang_specs_files%g
6973 s%@lang_tree_files@%$lang_tree_files%g
6974 s%@local_prefix@%$local_prefix%g
6975 s%@maybe_use_collect2@%$maybe_use_collect2%g
6976 s%@md_file@%$md_file%g
6977 s%@objc_boehm_gc@%$objc_boehm_gc%g
6978 s%@out_file@%$out_file%g
6979 s%@out_object_file@%$out_object_file%g
6980 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6981 s%@symbolic_link@%$symbolic_link%g
6982 s%@thread_file@%$thread_file%g
6983 s%@tm_file_list@%$tm_file_list%g
6984 s%@tm_file@%$tm_file%g
6985 s%@tm_p_file_list@%$tm_p_file_list%g
6986 s%@tm_p_file@%$tm_p_file%g
6987 s%@xm_file@%$xm_file%g
6988 s%@will_use_collect2@%$will_use_collect2%g
6989 s%@c_target_objs@%$c_target_objs%g
6990 s%@cxx_target_objs@%$cxx_target_objs%g
6991 s%@target_cpu_default@%$target_cpu_default%g
6992 /@target_overrides@/r $target_overrides
6993 s%@target_overrides@%%g
6994 /@host_overrides@/r $host_overrides
6995 s%@host_overrides@%%g
6996 s%@cross_defines@%$cross_defines%g
6997 /@cross_overrides@/r $cross_overrides
6998 s%@cross_overrides@%%g
6999 /@build_overrides@/r $build_overrides
7000 s%@build_overrides@%%g
7001 /@language_fragments@/r $language_fragments
7002 s%@language_fragments@%%g
7003 /@language_hooks@/r $language_hooks
7004 s%@language_hooks@%%g
7009 cat >> $CONFIG_STATUS <<\EOF
7011 # Split the substitutions into bite-sized pieces for seds with
7012 # small command number limits, like on Digital OSF/1 and HP-UX.
7013 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7014 ac_file=1 # Number of current file.
7015 ac_beg=1 # First line for current file.
7016 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7019 while $ac_more_lines; do
7020 if test $ac_beg -gt 1; then
7021 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7023 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7025 if test ! -s conftest.s$ac_file; then
7027 rm -f conftest.s$ac_file
7029 if test -z "$ac_sed_cmds"; then
7030 ac_sed_cmds="sed -f conftest.s$ac_file"
7032 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7034 ac_file=`expr $ac_file + 1`
7036 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7039 if test -z "$ac_sed_cmds"; then
7044 cat >> $CONFIG_STATUS <<EOF
7046 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
7048 cat >> $CONFIG_STATUS <<\EOF
7049 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7052 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7053 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7054 *) ac_file_in="${ac_file}.in" ;;
7057 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7059 # Remove last slash and all that follows it. Not all systems have dirname.
7060 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7061 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7062 # The file is in a subdirectory.
7063 test ! -d "$ac_dir" && mkdir "$ac_dir"
7064 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7065 # A "../" for each directory in $ac_dir_suffix.
7066 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7068 ac_dir_suffix= ac_dots=
7071 case "$ac_given_srcdir" in
7073 if test -z "$ac_dots"; then top_srcdir=.
7074 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7075 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7077 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7078 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7082 echo creating "$ac_file"
7084 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7086 *Makefile*) ac_comsub="1i\\
7087 # $configure_input" ;;
7091 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7093 s%@configure_input@%$configure_input%g
7094 s%@srcdir@%$srcdir%g
7095 s%@top_srcdir@%$top_srcdir%g
7096 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7100 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7101 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7103 # ac_d sets the value in "#define NAME VALUE" lines.
7104 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7105 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7108 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7109 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7110 ac_uB='\([ ]\)%\1#\2define\3'
7113 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7114 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7115 ac_eB='$%\1#\2define\3'
7119 if test "${CONFIG_HEADERS+set}" != set; then
7121 cat >> $CONFIG_STATUS <<EOF
7122 CONFIG_HEADERS="auto-host.h:config.in"
7124 cat >> $CONFIG_STATUS <<\EOF
7126 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7127 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7129 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7130 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7131 *) ac_file_in="${ac_file}.in" ;;
7134 echo creating $ac_file
7136 rm -f conftest.frag conftest.in conftest.out
7137 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7138 cat $ac_file_inputs > conftest.in
7142 # Transform confdefs.h into a sed script conftest.vals that substitutes
7143 # the proper values into config.h.in to produce config.h. And first:
7144 # Protect against being on the right side of a sed subst in config.status.
7145 # Protect against being in an unquoted here document in config.status.
7147 cat > conftest.hdr <<\EOF
7150 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7154 sed -n -f conftest.hdr confdefs.h > conftest.vals
7157 # This sed command replaces #undef with comments. This is necessary, for
7158 # example, in the case of _POSIX_SOURCE, which is predefined and required
7159 # on some systems where configure will not decide to define it.
7160 cat >> conftest.vals <<\EOF
7161 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7164 # Break up conftest.vals because some shells have a limit on
7165 # the size of here documents, and old seds have small limits too.
7170 ac_lines=`grep -c . conftest.vals`
7171 # grep -c gives empty output for an empty file on some AIX systems.
7172 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7173 # Write a limited-size here document to conftest.frag.
7174 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7175 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7177 sed -f conftest.frag conftest.in > conftest.out
7179 mv conftest.out conftest.in
7181 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7183 mv conftest.tail conftest.vals
7187 cat >> $CONFIG_STATUS <<\EOF
7188 rm -f conftest.frag conftest.h
7189 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7190 cat conftest.in >> conftest.h
7192 if cmp -s $ac_file conftest.h 2>/dev/null; then
7193 echo "$ac_file is unchanged"
7196 # Remove last slash and all that follows it. Not all systems have dirname.
7197 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7198 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7199 # The file is in a subdirectory.
7200 test ! -d "$ac_dir" && mkdir "$ac_dir"
7203 mv conftest.h $ac_file
7209 cat >> $CONFIG_STATUS <<EOF
7210 ac_sources="$nls_cv_header_libgt"
7211 ac_dests="$nls_cv_header_intl"
7214 cat >> $CONFIG_STATUS <<\EOF
7215 srcdir=$ac_given_srcdir
7216 while test -n "$ac_sources"; do
7217 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7218 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7220 echo "linking $srcdir/$ac_source to $ac_dest"
7222 if test ! -r $srcdir/$ac_source; then
7223 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7227 # Make relative symlinks.
7228 # Remove last slash and all that follows it. Not all systems have dirname.
7229 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7230 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7231 # The dest file is in a subdirectory.
7232 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7233 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7234 # A "../" for each directory in $ac_dest_dir_suffix.
7235 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7237 ac_dest_dir_suffix= ac_dots=
7241 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7242 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7245 # Make a symlink if possible; otherwise try a hard link.
7246 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7247 ln $srcdir/$ac_source $ac_dest; then :
7249 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7253 cat >> $CONFIG_STATUS <<EOF
7259 target_alias='${target_alias}'
7261 subdirs='${subdirs}'
7262 symbolic_link='${symbolic_link}'
7263 program_transform_set='${program_transform_set}'
7264 program_transform_name='${program_transform_name}'
7265 dep_host_xmake_file='${dep_host_xmake_file}'
7266 host_xmake_file='${host_xmake_file}'
7267 dep_tmake_file='${dep_tmake_file}'
7268 tmake_file='${tmake_file}'
7269 thread_file='${thread_file}'
7270 gcc_config_arguments='${gcc_config_arguments}'
7271 gcc_version='${gcc_version}'
7272 gcc_version_full='${gcc_version_full}'
7273 gcc_version_trigger='${gcc_version_trigger}'
7274 local_prefix='${local_prefix}'
7275 build_install_headers_dir='${build_install_headers_dir}'
7276 build_exeext='${build_exeext}'
7277 host_exeext='${host_exeext}'
7278 out_file='${out_file}'
7279 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7280 SET_MAKE='${SET_MAKE}'
7281 target_list='${target_list}'
7282 target_overrides='${target_overrides}'
7283 host_overrides='${host_overrides}'
7284 cross_defines='${cross_defines}'
7285 cross_overrides='${cross_overrides}'
7286 build_overrides='${build_overrides}'
7287 cpp_install_dir='${cpp_install_dir}'
7290 cat >> $CONFIG_STATUS <<\EOF
7291 case "$CONFIG_FILES" in *po/Makefile.in*)
7292 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7295 case x$CONFIG_HEADERS in
7296 xauto-host.h:config.in)
7299 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
7300 # bootstrapping and the installation procedure can still use
7301 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
7302 # FLAGS_TO_PASS has been modified to solve the problem there.
7303 # This is virtually a duplicate of what happens in configure.lang; we do
7304 # an extra check to make sure this only happens if ln -s can be used.
7305 if test "$symbolic_link" = "ln -s"; then
7306 for d in .. ${subdirs} ; do
7307 if test $d != ..; then
7310 for t in stage1 stage2 stage3 stage4 include
7313 $symbolic_link ../$t $t 2>/dev/null
7319 # Avoid having to add intl to our include paths.
7320 if test -f intl/libintl.h; then
7321 echo creating libintl.h
7322 echo '#include "intl/libintl.h"' >libintl.h
7327 chmod +x $CONFIG_STATUS
7328 rm -fr confdefs* $ac_clean_files
7329 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1