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."
30 enable libstdc++-v3 for building and installation"
32 --with-gxx-include-dir=DIR
33 specifies directory to put g++ header files."
35 --enable-checking[=LIST]
36 enable expensive run-time checks. With LIST,
37 enable only specific categories of checks.
38 Categories are: misc,tree,rtl,gc,gcac; default
41 --disable-cpp don't provide a user-visible C preprocessor."
43 --with-cpp-install-dir=DIR
44 install the user visible C preprocessor in DIR
45 (relative to PREFIX) as well as PREFIX/bin."
47 --enable-c-mbchar Enable multibyte characters for C and C++."
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 --with-dwarf2 force the default debug format to be DWARF2."
57 --disable-shared don't provide a shared libgcc."
59 --enable-nls use Native Language Support (default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 --with-gc={simple,page} Choose the garbage collection mechanism to use
78 --with-system-zlib use installed libz"
81 select the new abi for g++. You must select an ABI
82 at configuration time, so that the correct runtime
83 support is built. You cannot mix ABIs."
85 --enable-maintainer-mode enable make rules and dependencies not useful
86 (and sometimes confusing) to the casual installer"
88 --enable-version-specific-runtime-libs Specify that runtime libraries shou
89 ld be installed in a compiler-specific directory "
91 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
93 # Initialize some variables set by options.
94 # The variables have the same names as the options, with
95 # dashes changed to underlines.
97 cache_file=./config.cache
106 program_transform_name=s,x,x,
114 bindir='${exec_prefix}/bin'
115 sbindir='${exec_prefix}/sbin'
116 libexecdir='${exec_prefix}/libexec'
117 datadir='${prefix}/share'
118 sysconfdir='${prefix}/etc'
119 sharedstatedir='${prefix}/com'
120 localstatedir='${prefix}/var'
121 libdir='${exec_prefix}/lib'
122 includedir='${prefix}/include'
123 oldincludedir='/usr/include'
124 infodir='${prefix}/info'
125 mandir='${prefix}/man'
127 # Initialize some other variables.
130 SHELL=${CONFIG_SHELL-/bin/sh}
131 # Maximum number of lines to put in a shell here document.
138 # If the previous option needs an argument, assign it.
139 if test -n "$ac_prev"; then
140 eval "$ac_prev=\$ac_option"
146 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
150 # Accept the important Cygnus configure options, so we can diagnose typos.
154 -bindir | --bindir | --bindi | --bind | --bin | --bi)
156 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
157 bindir="$ac_optarg" ;;
159 -build | --build | --buil | --bui | --bu)
161 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
162 build="$ac_optarg" ;;
164 -cache-file | --cache-file | --cache-fil | --cache-fi \
165 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
166 ac_prev=cache_file ;;
167 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
168 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
169 cache_file="$ac_optarg" ;;
171 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
173 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
175 datadir="$ac_optarg" ;;
177 -disable-* | --disable-*)
178 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}=no" ;;
186 -enable-* | --enable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
197 eval "enable_${ac_feature}='$ac_optarg'" ;;
199 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
200 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
201 | --exec | --exe | --ex)
202 ac_prev=exec_prefix ;;
203 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
204 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
205 | --exec=* | --exe=* | --ex=*)
206 exec_prefix="$ac_optarg" ;;
208 -gas | --gas | --ga | --g)
209 # Obsolete; use --with-gas.
212 -help | --help | --hel | --he)
213 # Omit some internal or obsolete options to make the list less imposing.
214 # This message is too long to be a string in the A/UX 3.1 sh.
216 Usage: configure [options] [host]
217 Options: [defaults in brackets after descriptions]
219 --cache-file=FILE cache test results in FILE
220 --help print this message
221 --no-create do not create output files
222 --quiet, --silent do not print \`checking...' messages
223 --version print the version of autoconf that created configure
224 Directory and file names:
225 --prefix=PREFIX install architecture-independent files in PREFIX
227 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
229 --bindir=DIR user executables in DIR [EPREFIX/bin]
230 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
231 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
232 --datadir=DIR read-only architecture-independent data in DIR
234 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
235 --sharedstatedir=DIR modifiable architecture-independent data in DIR
237 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
238 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
239 --includedir=DIR C header files in DIR [PREFIX/include]
240 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
241 --infodir=DIR info documentation in DIR [PREFIX/info]
242 --mandir=DIR man documentation in DIR [PREFIX/man]
243 --srcdir=DIR find the sources in DIR [configure dir or ..]
244 --program-prefix=PREFIX prepend PREFIX to installed program names
245 --program-suffix=SUFFIX append SUFFIX to installed program names
246 --program-transform-name=PROGRAM
247 run sed PROGRAM on installed program names
251 --build=BUILD configure for building on BUILD [BUILD=HOST]
252 --host=HOST configure for HOST [guessed]
253 --target=TARGET configure for TARGET [TARGET=HOST]
254 Features and packages:
255 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
256 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
257 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
258 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
259 --x-includes=DIR X include files are in DIR
260 --x-libraries=DIR X library files are in DIR
262 if test -n "$ac_help"; then
263 echo "--enable and --with options recognized:$ac_help"
267 -host | --host | --hos | --ho)
269 -host=* | --host=* | --hos=* | --ho=*)
272 -includedir | --includedir | --includedi | --included | --include \
273 | --includ | --inclu | --incl | --inc)
274 ac_prev=includedir ;;
275 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
276 | --includ=* | --inclu=* | --incl=* | --inc=*)
277 includedir="$ac_optarg" ;;
279 -infodir | --infodir | --infodi | --infod | --info | --inf)
281 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
282 infodir="$ac_optarg" ;;
284 -libdir | --libdir | --libdi | --libd)
286 -libdir=* | --libdir=* | --libdi=* | --libd=*)
287 libdir="$ac_optarg" ;;
289 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
290 | --libexe | --libex | --libe)
291 ac_prev=libexecdir ;;
292 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
293 | --libexe=* | --libex=* | --libe=*)
294 libexecdir="$ac_optarg" ;;
296 -localstatedir | --localstatedir | --localstatedi | --localstated \
297 | --localstate | --localstat | --localsta | --localst \
298 | --locals | --local | --loca | --loc | --lo)
299 ac_prev=localstatedir ;;
300 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
301 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
302 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
303 localstatedir="$ac_optarg" ;;
305 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
307 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
308 mandir="$ac_optarg" ;;
311 # Obsolete; use --without-fp.
314 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
318 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
319 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
322 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
323 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
324 | --oldin | --oldi | --old | --ol | --o)
325 ac_prev=oldincludedir ;;
326 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
327 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
328 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
329 oldincludedir="$ac_optarg" ;;
331 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
333 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
334 prefix="$ac_optarg" ;;
336 -program-prefix | --program-prefix | --program-prefi | --program-pref \
337 | --program-pre | --program-pr | --program-p)
338 ac_prev=program_prefix ;;
339 -program-prefix=* | --program-prefix=* | --program-prefi=* \
340 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
341 program_prefix="$ac_optarg" ;;
343 -program-suffix | --program-suffix | --program-suffi | --program-suff \
344 | --program-suf | --program-su | --program-s)
345 ac_prev=program_suffix ;;
346 -program-suffix=* | --program-suffix=* | --program-suffi=* \
347 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
348 program_suffix="$ac_optarg" ;;
350 -program-transform-name | --program-transform-name \
351 | --program-transform-nam | --program-transform-na \
352 | --program-transform-n | --program-transform- \
353 | --program-transform | --program-transfor \
354 | --program-transfo | --program-transf \
355 | --program-trans | --program-tran \
356 | --progr-tra | --program-tr | --program-t)
357 ac_prev=program_transform_name ;;
358 -program-transform-name=* | --program-transform-name=* \
359 | --program-transform-nam=* | --program-transform-na=* \
360 | --program-transform-n=* | --program-transform-=* \
361 | --program-transform=* | --program-transfor=* \
362 | --program-transfo=* | --program-transf=* \
363 | --program-trans=* | --program-tran=* \
364 | --progr-tra=* | --program-tr=* | --program-t=*)
365 program_transform_name="$ac_optarg" ;;
367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
368 | -silent | --silent | --silen | --sile | --sil)
371 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
373 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
375 sbindir="$ac_optarg" ;;
377 -sharedstatedir | --sharedstatedir | --sharedstatedi \
378 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
379 | --sharedst | --shareds | --shared | --share | --shar \
381 ac_prev=sharedstatedir ;;
382 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
383 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
384 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
386 sharedstatedir="$ac_optarg" ;;
388 -site | --site | --sit)
390 -site=* | --site=* | --sit=*)
393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
396 srcdir="$ac_optarg" ;;
398 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
399 | --syscon | --sysco | --sysc | --sys | --sy)
400 ac_prev=sysconfdir ;;
401 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
402 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
403 sysconfdir="$ac_optarg" ;;
405 -target | --target | --targe | --targ | --tar | --ta | --t)
407 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
408 target="$ac_optarg" ;;
410 -v | -verbose | --verbose | --verbos | --verbo | --verb)
413 -version | --version | --versio | --versi | --vers)
414 echo "configure generated by autoconf version 2.13"
418 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}='$ac_optarg'" ;;
430 -without-* | --without-*)
431 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
432 # Reject names that are not valid shell variable names.
433 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
434 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
436 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}=no" ;;
440 # Obsolete; use --with-x.
443 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
444 | --x-incl | --x-inc | --x-in | --x-i)
445 ac_prev=x_includes ;;
446 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
447 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
448 x_includes="$ac_optarg" ;;
450 -x-libraries | --x-libraries | --x-librarie | --x-librari \
451 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
452 ac_prev=x_libraries ;;
453 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
454 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
455 x_libraries="$ac_optarg" ;;
457 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
461 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
462 echo "configure: warning: $ac_option: invalid host type" 1>&2
464 if test "x$nonopt" != xNONE; then
465 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
473 if test -n "$ac_prev"; then
474 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
479 # File descriptor usage:
482 # 2 errors and warnings
483 # 3 some systems may open it to /dev/tty
484 # 4 used on the Kubota Titan
485 # 6 checking for... messages and results
486 # 5 compiler messages saved in config.log
487 if test "$silent" = yes; then
495 This file contains any messages produced by compilers while
496 running configure, to aid debugging if configure makes a mistake.
499 # Strip out --no-create and --no-recursion so they do not pile up.
500 # Also quote any args containing shell metacharacters.
505 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
506 | --no-cr | --no-c) ;;
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
509 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
510 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
511 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
516 # Only set these to C if already set. These must not be set unconditionally
517 # because not all systems understand e.g. LANG=C (notably SCO).
518 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
519 # Non-C LC_CTYPE values break the ctype check.
520 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
521 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
522 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
523 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
525 # confdefs.h avoids OS command line length limits that DEFS can exceed.
526 rm -rf conftest* confdefs.h
527 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
530 # A filename unique to this package, relative to the directory that
531 # configure is in, which we can look for to find out if srcdir is correct.
532 ac_unique_file=tree.c
534 # Find the source files, if location was not specified.
535 if test -z "$srcdir"; then
536 ac_srcdir_defaulted=yes
537 # Try the directory containing this script, then its parent.
539 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
540 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
542 if test ! -r $srcdir/$ac_unique_file; then
546 ac_srcdir_defaulted=no
548 if test ! -r $srcdir/$ac_unique_file; then
549 if test "$ac_srcdir_defaulted" = yes; then
550 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
552 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
555 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
557 # Prefer explicitly selected file to automatically selected ones.
558 if test -z "$CONFIG_SITE"; then
559 if test "x$prefix" != xNONE; then
560 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
562 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
565 for ac_site_file in $CONFIG_SITE; do
566 if test -r "$ac_site_file"; then
567 echo "loading site script $ac_site_file"
572 if test -r "$cache_file"; then
573 echo "loading cache $cache_file"
576 echo "creating cache $cache_file"
581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
582 ac_cpp='$CPP $CPPFLAGS'
583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
585 cross_compiling=$ac_cv_prog_cc_cross
589 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
590 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
591 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
598 ac_n= ac_c='\c' ac_t=
606 symbolic_link='ln -s'
609 # Check for bogus environment variables.
610 # Test if LIBRARY_PATH contains the notation for the current directory
611 # since this would lead to problems installing/building glibc.
612 # LIBRARY_PATH contains the current directory if one of the following
614 # - one of the terminals (":" and ";") is the first or last sign
615 # - two terminals occur directly after each other
616 # - the path contains an element with a dot in it
617 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
618 echo "configure:619: checking LIBRARY_PATH variable" >&5
619 case ${LIBRARY_PATH} in
620 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
621 library_path_setting="contains current directory"
624 library_path_setting="ok"
627 echo "$ac_t""$library_path_setting" 1>&6
628 if test "$library_path_setting" != "ok"; then
629 { echo "configure: error:
630 *** LIBRARY_PATH shouldn't contain the current directory when
631 *** building gcc. Please change the environment variable
632 *** and run configure again." 1>&2; exit 1; }
635 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
636 # since this would lead to problems installing/building glibc.
637 # GCC_EXEC_PREFIX contains the current directory if one of the following
639 # - one of the terminals (":" and ";") is the first or last sign
640 # - two terminals occur directly after each other
641 # - the path contains an element with a dot in it
642 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
643 echo "configure:644: checking GCC_EXEC_PREFIX variable" >&5
644 case ${GCC_EXEC_PREFIX} in
645 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
646 gcc_exec_prefix_setting="contains current directory"
649 gcc_exec_prefix_setting="ok"
652 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
653 if test "$gcc_exec_prefix_setting" != "ok"; then
654 { echo "configure: error:
655 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
656 *** building gcc. Please change the environment variable
657 *** and run configure again." 1>&2; exit 1; }
660 # Check for additional parameters
663 # Check whether --with-gnu-ld or --without-gnu-ld was given.
664 if test "${with_gnu_ld+set}" = set; then
665 withval="$with_gnu_ld"
666 gnu_ld_flag="$with_gnu_ld"
672 # With pre-defined ld
673 # Check whether --with-ld or --without-ld was given.
674 if test "${with_ld+set}" = set; then
676 DEFAULT_LINKER="$with_ld"
679 if test x"${DEFAULT_LINKER+set}" = x"set"; then
680 if test ! -x "$DEFAULT_LINKER"; then
681 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
682 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
685 cat >> confdefs.h <<EOF
686 #define DEFAULT_LINKER "$DEFAULT_LINKER"
692 # Check whether --with-gnu-as or --without-gnu-as was given.
693 if test "${with_gnu_as+set}" = set; then
694 withval="$with_gnu_as"
695 gas_flag="$with_gnu_as"
701 # Check whether --with-as or --without-as was given.
702 if test "${with_as+set}" = set; then
704 DEFAULT_ASSEMBLER="$with_as"
707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
708 if test ! -x "$DEFAULT_ASSEMBLER"; then
709 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
710 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
713 cat >> confdefs.h <<EOF
714 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
720 # Check whether --with-stabs or --without-stabs was given.
721 if test "${with_stabs+set}" = set; then
722 withval="$with_stabs"
730 # Check whether --with-elf or --without-elf was given.
731 if test "${with_elf+set}" = set; then
739 # Specify the local prefix
741 # Check whether --with-local-prefix or --without-local-prefix was given.
742 if test "${with_local_prefix+set}" = set; then
743 withval="$with_local_prefix"
745 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
747 *) local_prefix=$with_local_prefix ;;
752 # Default local prefix if it is empty
753 if test x$local_prefix = x; then
754 local_prefix=/usr/local
757 # Build a new-libstdc++ system (ie libstdc++-v3)
758 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
759 echo "configure:760: checking for libstdc++ to install" >&5
760 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
761 if test "${enable_libstdcxx_v3+set}" = set; then
762 enableval="$enable_libstdcxx_v3"
763 enable_libstdcxx_v3="$enableval"
765 enable_libstdcxx_v3=yes
769 if test x$enable_libstdcxx_v3 = xyes; then
770 echo "$ac_t""v3" 1>&6
774 echo "$ac_t""v2" 1>&6
779 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
780 # passed in by the toplevel make and thus we'd get different behavior
781 # depending on where we built the sources.
783 # Specify the g++ header file directory
784 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
785 if test "${with_gxx_include_dir+set}" = set; then
786 withval="$with_gxx_include_dir"
788 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
790 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
795 if test x${gcc_gxx_include_dir} = x; then
796 if test x${enable_version_specific_runtime_libs} = xyes; then
797 gcc_gxx_include_dir='${libsubdir}/include/g++'
799 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
800 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
804 # Enable expensive internal checks
805 # Check whether --enable-checking or --disable-checking was given.
806 if test "${enable_checking+set}" = set; then
807 enableval="$enable_checking"
812 ac_gc_always_collect=
813 case "${enableval}" in
814 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
816 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
817 set fnord $enableval; shift
822 misc) ac_checking=1 ;;
823 tree) ac_tree_checking=1 ;;
824 rtl) ac_rtl_checking=1 ;;
825 gc) ac_gc_checking=1 ;;
826 gcac) ac_gc_always_collect=1 ;;
827 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
834 # Enable some checks by default for development versions of GCC
835 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
838 if test x$ac_checking != x ; then
839 cat >> confdefs.h <<\EOF
840 #define ENABLE_CHECKING 1
844 if test x$ac_tree_checking != x ; then
845 cat >> confdefs.h <<\EOF
846 #define ENABLE_TREE_CHECKING 1
850 if test x$ac_rtl_checking != x ; then
851 cat >> confdefs.h <<\EOF
852 #define ENABLE_RTL_CHECKING 1
856 if test x$ac_gc_checking != x ; then
857 cat >> confdefs.h <<\EOF
858 #define ENABLE_GC_CHECKING 1
862 if test x$ac_gc_always_collect != x ; then
863 cat >> confdefs.h <<\EOF
864 #define ENABLE_GC_ALWAYS_COLLECT 1
870 # Check whether --enable-cpp or --disable-cpp was given.
871 if test "${enable_cpp+set}" = set; then
872 enableval="$enable_cpp"
879 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
880 if test "${with_cpp_install_dir+set}" = set; then
881 withval="$with_cpp_install_dir"
882 if test x$withval = xyes; then
883 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
884 elif test x$withval != xno; then
885 cpp_install_dir=$withval
890 # Enable Multibyte Characters for C/C++
891 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
892 if test "${enable_c_mbchar+set}" = set; then
893 enableval="$enable_c_mbchar"
894 if test x$enable_c_mbchar != xno; then
895 cat >> confdefs.h <<\EOF
896 #define MULTIBYTE_CHARS 1
904 # Pass with no value to take the default
905 # Pass with a value to specify a thread package
906 # Check whether --enable-threads or --disable-threads was given.
907 if test "${enable_threads+set}" = set; then
908 enableval="$enable_threads"
915 enable_threads_flag=$enable_threads
916 # Check if a valid thread package
917 case x${enable_threads_flag} in
920 target_thread_file='single'
924 target_thread_file=''
926 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
927 xsolaris | xwin32 | xdce | xvxworks | xaix)
928 target_thread_file=$enable_threads_flag
931 echo "$enable_threads is an unknown thread package" 1>&2
936 # Check whether --enable-objc-gc or --disable-objc-gc was given.
937 if test "${enable_objc_gc+set}" = set; then
938 enableval="$enable_objc_gc"
939 if test x$enable_objc_gc = xno; then
949 # Check whether --with-dwarf2 or --without-dwarf2 was given.
950 if test "${with_dwarf2+set}" = set; then
951 withval="$with_dwarf2"
952 dwarf2="$with_dwarf2"
958 # Check whether --enable-shared or --disable-shared was given.
959 if test "${enable_shared+set}" = set; then
960 enableval="$enable_shared"
968 # Determine the host, build, and target systems
970 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
971 if test -f $ac_dir/install-sh; then
973 ac_install_sh="$ac_aux_dir/install-sh -c"
975 elif test -f $ac_dir/install.sh; then
977 ac_install_sh="$ac_aux_dir/install.sh -c"
981 if test -z "$ac_aux_dir"; then
982 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
984 ac_config_guess=$ac_aux_dir/config.guess
985 ac_config_sub=$ac_aux_dir/config.sub
986 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
989 # Do some error checking and defaulting for the host and target type.
991 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
994 # 1. You are not allowed to specify --host, --target, and nonopt at the
996 # 2. Host defaults to nonopt.
997 # 3. If nonopt is not specified, then host defaults to the current host,
998 # as determined by config.guess.
999 # 4. Target and build default to nonopt.
1000 # 5. If nonopt is not specified, then target and build default to host.
1002 # The aliases save the names the user supplied, while $host etc.
1003 # will get canonicalized.
1004 case $host---$target---$nonopt in
1005 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1006 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1010 # Make sure we can run config.sub.
1011 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1012 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1015 echo $ac_n "checking host system type""... $ac_c" 1>&6
1016 echo "configure:1017: checking host system type" >&5
1019 case "$host_alias" in
1023 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1024 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1026 *) host_alias=$nonopt ;;
1030 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1031 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1032 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1033 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1034 echo "$ac_t""$host" 1>&6
1036 echo $ac_n "checking target system type""... $ac_c" 1>&6
1037 echo "configure:1038: checking target system type" >&5
1039 target_alias=$target
1040 case "$target_alias" in
1043 NONE) target_alias=$host_alias ;;
1044 *) target_alias=$nonopt ;;
1048 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1049 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1050 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1051 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1052 echo "$ac_t""$target" 1>&6
1054 echo $ac_n "checking build system type""... $ac_c" 1>&6
1055 echo "configure:1056: checking build system type" >&5
1058 case "$build_alias" in
1061 NONE) build_alias=$host_alias ;;
1062 *) build_alias=$nonopt ;;
1066 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1067 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1068 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1069 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1070 echo "$ac_t""$build" 1>&6
1072 test "$host_alias" != "$target_alias" &&
1073 test "$program_prefix$program_suffix$program_transform_name" = \
1075 program_prefix=${target_alias}-
1078 # Find the native compiler
1079 # Extract the first word of "gcc", so it can be a program name with args.
1080 set dummy gcc; ac_word=$2
1081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1082 echo "configure:1083: checking for $ac_word" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 if test -n "$CC"; then
1087 ac_cv_prog_CC="$CC" # Let the user override the test.
1089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1091 for ac_dir in $ac_dummy; do
1092 test -z "$ac_dir" && ac_dir=.
1093 if test -f $ac_dir/$ac_word; then
1102 if test -n "$CC"; then
1103 echo "$ac_t""$CC" 1>&6
1105 echo "$ac_t""no" 1>&6
1108 if test -z "$CC"; then
1109 # Extract the first word of "cc", so it can be a program name with args.
1110 set dummy cc; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$CC"; then
1117 ac_cv_prog_CC="$CC" # Let the user override the test.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1122 for ac_dir in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir=.
1124 if test -f $ac_dir/$ac_word; then
1125 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1126 ac_prog_rejected=yes
1134 if test $ac_prog_rejected = yes; then
1135 # We found a bogon in the path, so make sure we never use it.
1136 set dummy $ac_cv_prog_CC
1138 if test $# -gt 0; then
1139 # We chose a different compiler from the bogus one.
1140 # However, it has the same basename, so the bogon will be chosen
1141 # first if we set CC to just the basename; use the full file name.
1143 set dummy "$ac_dir/$ac_word" "$@"
1151 if test -n "$CC"; then
1152 echo "$ac_t""$CC" 1>&6
1154 echo "$ac_t""no" 1>&6
1157 if test -z "$CC"; then
1158 case "`uname -s`" in
1160 # Extract the first word of "cl", so it can be a program name with args.
1161 set dummy cl; ac_word=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 if test -n "$CC"; then
1168 ac_cv_prog_CC="$CC" # Let the user override the test.
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1172 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 if test -f $ac_dir/$ac_word; then
1183 if test -n "$CC"; then
1184 echo "$ac_t""$CC" 1>&6
1186 echo "$ac_t""no" 1>&6
1191 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1199 ac_cpp='$CPP $CPPFLAGS'
1200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1202 cross_compiling=$ac_cv_prog_cc_cross
1204 cat > conftest.$ac_ext << EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1211 if { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1212 ac_cv_prog_cc_works=yes
1213 # If we can't run a trivial program, we are probably using a cross compiler.
1214 if (./conftest; exit) 2>/dev/null; then
1215 ac_cv_prog_cc_cross=no
1217 ac_cv_prog_cc_cross=yes
1220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
1222 ac_cv_prog_cc_works=no
1226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1227 ac_cpp='$CPP $CPPFLAGS'
1228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1230 cross_compiling=$ac_cv_prog_cc_cross
1232 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1233 if test $ac_cv_prog_cc_works = no; then
1234 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1236 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1238 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1239 cross_compiling=$ac_cv_prog_cc_cross
1241 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether we are using GNU C" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 cat > conftest.c <<EOF
1251 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1258 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1260 if test $ac_cv_prog_gcc = yes; then
1266 ac_test_CFLAGS="${CFLAGS+set}"
1267 ac_save_CFLAGS="$CFLAGS"
1269 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether ${CC-cc} accepts -g" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 echo 'void f(){}' > conftest.c
1275 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1284 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1285 if test "$ac_test_CFLAGS" = set; then
1286 CFLAGS="$ac_save_CFLAGS"
1287 elif test $ac_cv_prog_cc_g = yes; then
1288 if test "$GCC" = yes; then
1294 if test "$GCC" = yes; then
1301 if test "x$CC" != xcc; then
1302 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1303 echo "configure:1304: checking whether $CC and cc understand -c and -o together" >&5
1305 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1306 echo "configure:1307: checking whether cc understands -c and -o together" >&5
1308 set dummy $CC; ac_cc="`echo $2 |
1309 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1310 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 echo 'foo(){}' > conftest.c
1314 # Make sure it works both with $CC and with simple cc.
1315 # We do the test twice because some compilers refuse to overwrite an
1316 # existing .o file with -o, though they will create one.
1317 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1318 if { (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1319 test -f conftest.o && { (eval echo configure:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1321 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1322 if test "x$CC" != xcc; then
1323 # Test first that cc exists at all.
1324 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1325 ac_try='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; };
1332 # cc exists but doesn't like -o.
1333 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1338 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1343 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1344 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1347 cat >> confdefs.h <<\EOF
1348 #define NO_MINUS_C_MINUS_O 1
1353 # autoconf is lame and doesn't give us any substitution variable for this.
1354 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1355 NO_MINUS_C_MINUS_O=yes
1357 OUTPUT_OPTION='-o $@'
1362 echo $ac_n "checking for long double""... $ac_c" 1>&6
1363 echo "configure:1364: checking for long double" >&5
1364 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1367 if test "$GCC" = yes; then
1368 gcc_cv_c_long_double=yes
1370 cat > conftest.$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1375 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1376 long double foo = 0.0;
1377 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1378 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1381 if { (eval echo configure:1382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1383 gcc_cv_c_long_double=yes
1385 echo "configure: failed program was:" >&5
1386 cat conftest.$ac_ext >&5
1388 gcc_cv_c_long_double=no
1394 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1395 if test $gcc_cv_c_long_double = yes; then
1396 cat >> confdefs.h <<\EOF
1397 #define HAVE_LONG_DOUBLE 1
1403 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1404 echo "configure:1405: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 save_CFLAGS="$CFLAGS"
1409 CFLAGS="-Wno-long-long"
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1418 if { (eval echo configure:1419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1420 ac_cv_prog_cc_no_long_long=yes
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1425 ac_cv_prog_cc_no_long_long=no
1428 CFLAGS="$save_CFLAGS"
1431 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1433 if test $ac_cv_prog_cc_no_long_long = yes; then
1434 strict1_warn="-pedantic -Wno-long-long"
1438 # If the native compiler is GCC, we can enable warnings even in stage1.
1439 # That's useful for people building cross-compilers, or just running a
1442 if test "x$GCC" = "xyes"; then
1443 warn_cflags='$(GCC_WARN_CFLAGS)'
1447 # Stage specific cflags for build.
1451 if test x$GCC = xyes
1453 stage1_cflags="-Wa,-J"
1461 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1462 echo "configure:1463: checking whether ${MAKE-make} sets \${MAKE}" >&5
1463 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1464 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 cat > conftestmake <<\EOF
1469 @echo 'ac_maketemp="${MAKE}"'
1471 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1472 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1473 if test -n "$ac_maketemp"; then
1474 eval ac_cv_prog_make_${ac_make}_set=yes
1476 eval ac_cv_prog_make_${ac_make}_set=no
1480 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1481 echo "$ac_t""yes" 1>&6
1484 echo "$ac_t""no" 1>&6
1485 SET_MAKE="MAKE=${MAKE-make}"
1489 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1490 echo "configure:1491: checking whether a default assembler was specified" >&5
1491 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1492 if test x"$gas_flag" = x"no"; then
1493 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1495 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1498 echo "$ac_t""no" 1>&6
1501 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether a default linker was specified" >&5
1503 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1504 if test x"$gnu_ld_flag" = x"no"; then
1505 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1507 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1510 echo "$ac_t""no" 1>&6
1513 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1514 echo "configure:1515: checking for GNU C library" >&5
1515 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1518 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1521 #include <features.h>
1524 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1525 #error Not a GNU C library system
1529 if { (eval echo configure:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1541 echo "$ac_t""$gcc_cv_glibc" 1>&6
1542 if test $gcc_cv_glibc = yes; then
1543 cat >> confdefs.h <<\EOF
1544 #define _GNU_SOURCE 1
1549 echo $ac_n "checking for inline""... $ac_c" 1>&6
1550 echo "configure:1551: checking for inline" >&5
1551 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1555 for ac_kw in inline __inline__ __inline; do
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1564 if { (eval echo configure:1565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1566 ac_cv_c_inline=$ac_kw; break
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1576 echo "$ac_t""$ac_cv_c_inline" 1>&6
1577 case "$ac_cv_c_inline" in
1579 no) cat >> confdefs.h <<\EOF
1583 *) cat >> confdefs.h <<EOF
1584 #define inline $ac_cv_c_inline
1590 # Find some useful tools
1591 for ac_prog in mawk gawk nawk awk
1593 # Extract the first word of "$ac_prog", so it can be a program name with args.
1594 set dummy $ac_prog; ac_word=$2
1595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1596 echo "configure:1597: checking for $ac_word" >&5
1597 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 if test -n "$AWK"; then
1601 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1605 for ac_dir in $ac_dummy; do
1606 test -z "$ac_dir" && ac_dir=.
1607 if test -f $ac_dir/$ac_word; then
1608 ac_cv_prog_AWK="$ac_prog"
1615 AWK="$ac_cv_prog_AWK"
1616 if test -n "$AWK"; then
1617 echo "$ac_t""$AWK" 1>&6
1619 echo "$ac_t""no" 1>&6
1622 test -n "$AWK" && break
1625 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1626 echo "configure:1627: checking whether ln works" >&5
1627 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 rm -f conftestdata_t
1631 echo >conftestdata_f
1632 if ln conftestdata_f conftestdata_t 2>/dev/null
1636 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1638 gcc_cv_prog_LN="ln -s"
1643 rm -f conftestdata_f conftestdata_t
1646 LN="$gcc_cv_prog_LN"
1647 if test "$gcc_cv_prog_LN" = "ln"; then
1648 echo "$ac_t""yes" 1>&6
1650 if test "$gcc_cv_prog_LN" = "ln -s"; then
1651 echo "$ac_t""no, using ln -s" 1>&6
1653 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1657 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1658 echo "configure:1659: checking whether ln -s works" >&5
1659 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 rm -f conftestdata_t
1663 echo >conftestdata_f
1664 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1666 gcc_cv_prog_LN_S="ln -s"
1668 if ln conftestdata_f conftestdata_t 2>/dev/null
1675 rm -f conftestdata_f conftestdata_t
1678 LN_S="$gcc_cv_prog_LN_S"
1679 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1680 echo "$ac_t""yes" 1>&6
1682 if test "$gcc_cv_prog_LN_S" = "ln"; then
1683 echo "$ac_t""no, using ln" 1>&6
1685 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1689 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1690 echo "configure:1691: checking for volatile" >&5
1691 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1702 if { (eval echo configure:1703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1704 gcc_cv_c_volatile=yes
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1709 gcc_cv_c_volatile=no
1714 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1715 if test $gcc_cv_c_volatile = yes ; then
1716 cat >> confdefs.h <<\EOF
1717 #define HAVE_VOLATILE 1
1722 # Extract the first word of "ranlib", so it can be a program name with args.
1723 set dummy ranlib; ac_word=$2
1724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_word" >&5
1726 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 if test -n "$RANLIB"; then
1730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1734 for ac_dir in $ac_dummy; do
1735 test -z "$ac_dir" && ac_dir=.
1736 if test -f $ac_dir/$ac_word; then
1737 ac_cv_prog_RANLIB="ranlib"
1742 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1745 RANLIB="$ac_cv_prog_RANLIB"
1746 if test -n "$RANLIB"; then
1747 echo "$ac_t""$RANLIB" 1>&6
1749 echo "$ac_t""no" 1>&6
1752 # Find a good install program. We prefer a C program (faster),
1753 # so one script is as good as another. But avoid the broken or
1754 # incompatible versions:
1755 # SysV /etc/install, /usr/sbin/install
1756 # SunOS /usr/etc/install
1757 # IRIX /sbin/install
1759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1761 # ./install, which can be erroneously created by make from ./install.sh.
1762 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1763 echo "configure:1764: checking for a BSD compatible install" >&5
1764 if test -z "$INSTALL"; then
1765 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1769 for ac_dir in $PATH; do
1770 # Account for people who put trailing slashes in PATH elements.
1772 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1774 # OSF1 and SCO ODT 3.0 have their own names for install.
1775 for ac_prog in ginstall scoinst install; do
1776 if test -f $ac_dir/$ac_prog; then
1777 if test $ac_prog = install &&
1778 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1779 # AIX install. It has an incompatible calling convention.
1780 # OSF/1 installbsd also uses dspmsg, but is usable.
1783 ac_cv_path_install="$ac_dir/$ac_prog -c"
1794 if test "${ac_cv_path_install+set}" = set; then
1795 INSTALL="$ac_cv_path_install"
1797 # As a last resort, use the slow shell script. We don't cache a
1798 # path for INSTALL within a source directory, because that will
1799 # break other packages using the cache if that directory is
1800 # removed, or if the path is relative.
1801 INSTALL="$ac_install_sh"
1804 echo "$ac_t""$INSTALL" 1>&6
1806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1807 # It thinks the first close brace ends the variable substitution.
1808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1810 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1813 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1814 echo "configure:1815: checking how to run the C preprocessor" >&5
1815 # On Suns, sometimes $CPP names a directory.
1816 if test -n "$CPP" && test -d "$CPP"; then
1819 if test -z "$CPP"; then
1820 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 # This must be in double quotes, not single quotes, because CPP may get
1824 # substituted into the Makefile and "${CC-cc}" will confuse make.
1826 # On the NeXT, cc -E runs the code through the compiler's parser,
1827 # not just through cpp.
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1841 echo "configure: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1844 CPP="${CC-cc} -E -traditional-cpp"
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 CPP="${CC-cc} -nologo -E"
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1885 ac_cv_prog_CPP="$CPP"
1887 CPP="$ac_cv_prog_CPP"
1889 ac_cv_prog_CPP="$CPP"
1891 echo "$ac_t""$CPP" 1>&6
1893 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1894 echo "configure:1895: checking for ANSI C header files" >&5
1895 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1907 { (eval echo configure:1908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1909 if test -z "$ac_err"; then
1911 ac_cv_header_stdc=yes
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1917 ac_cv_header_stdc=no
1921 if test $ac_cv_header_stdc = yes; then
1922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1929 egrep "memchr" >/dev/null 2>&1; then
1933 ac_cv_header_stdc=no
1939 if test $ac_cv_header_stdc = yes; then
1940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1947 egrep "free" >/dev/null 2>&1; then
1951 ac_cv_header_stdc=no
1957 if test $ac_cv_header_stdc = yes; then
1958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1959 if test "$cross_compiling" = yes; then
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1966 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1967 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1969 int main () { int i; for (i = 0; i < 256; i++)
1970 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1974 if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 ac_cv_header_stdc=no
1989 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1990 if test $ac_cv_header_stdc = yes; then
1991 cat >> confdefs.h <<\EOF
1992 #define STDC_HEADERS 1
1997 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether time.h and sys/time.h may both be included" >&5
1999 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2005 #include <sys/types.h>
2006 #include <sys/time.h>
2012 if { (eval echo configure:2013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2014 ac_cv_header_time=yes
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2019 ac_cv_header_time=no
2024 echo "$ac_t""$ac_cv_header_time" 1>&6
2025 if test $ac_cv_header_time = yes; then
2026 cat >> confdefs.h <<\EOF
2027 #define TIME_WITH_SYS_TIME 1
2032 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2033 echo "configure:2034: checking whether string.h and strings.h may both be included" >&5
2034 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2041 #include <strings.h>
2046 if { (eval echo configure:2047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2048 gcc_cv_header_string=yes
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2053 gcc_cv_header_string=no
2058 echo "$ac_t""$gcc_cv_header_string" 1>&6
2059 if test $gcc_cv_header_string = yes; then
2060 cat >> confdefs.h <<\EOF
2061 #define STRING_WITH_STRINGS 1
2066 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2067 echo "configure:2068: checking for sys/wait.h that is POSIX.1 compatible" >&5
2068 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 cat > conftest.$ac_ext <<EOF
2072 #line 2073 "configure"
2073 #include "confdefs.h"
2074 #include <sys/types.h>
2075 #include <sys/wait.h>
2077 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2080 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2085 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2088 if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090 ac_cv_header_sys_wait_h=yes
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 ac_cv_header_sys_wait_h=no
2100 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2101 if test $ac_cv_header_sys_wait_h = yes; then
2102 cat >> confdefs.h <<\EOF
2103 #define HAVE_SYS_WAIT_H 1
2108 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2109 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2110 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2111 direct.h malloc.h langinfo.h iconv.h
2113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_hdr" >&5
2116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2125 { (eval echo configure:2126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2127 if test -z "$ac_err"; then
2129 eval "ac_cv_header_$ac_safe=yes"
2132 echo "configure: failed program was:" >&5
2133 cat conftest.$ac_ext >&5
2135 eval "ac_cv_header_$ac_safe=no"
2139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2142 cat >> confdefs.h <<EOF
2143 #define $ac_tr_hdr 1
2147 echo "$ac_t""no" 1>&6
2152 # Check for thread headers.
2153 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2154 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2155 echo "configure:2156: checking for thread.h" >&5
2156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 cat > conftest.$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2167 if test -z "$ac_err"; then
2169 eval "ac_cv_header_$ac_safe=yes"
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2175 eval "ac_cv_header_$ac_safe=no"
2179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2183 echo "$ac_t""no" 1>&6
2187 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2189 echo "configure:2190: checking for pthread.h" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 #include <pthread.h>
2198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2217 echo "$ac_t""no" 1>&6
2222 # See if GNAT has been installed
2223 # Extract the first word of "gnatbind", so it can be a program name with args.
2224 set dummy gnatbind; ac_word=$2
2225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2226 echo "configure:2227: checking for $ac_word" >&5
2227 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 if test -n "$gnat"; then
2231 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2235 for ac_dir in $ac_dummy; do
2236 test -z "$ac_dir" && ac_dir=.
2237 if test -f $ac_dir/$ac_word; then
2238 ac_cv_prog_gnat="yes"
2243 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2246 gnat="$ac_cv_prog_gnat"
2247 if test -n "$gnat"; then
2248 echo "$ac_t""$gnat" 1>&6
2250 echo "$ac_t""no" 1>&6
2254 # See if we have the mktemp command.
2255 # Extract the first word of "mktemp", so it can be a program name with args.
2256 set dummy mktemp; ac_word=$2
2257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2258 echo "configure:2259: checking for $ac_word" >&5
2259 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 if test -n "$have_mktemp_command"; then
2263 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
2265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2267 for ac_dir in $ac_dummy; do
2268 test -z "$ac_dir" && ac_dir=.
2269 if test -f $ac_dir/$ac_word; then
2270 ac_cv_prog_have_mktemp_command="yes"
2275 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
2278 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
2279 if test -n "$have_mktemp_command"; then
2280 echo "$ac_t""$have_mktemp_command" 1>&6
2282 echo "$ac_t""no" 1>&6
2286 # Do we have a single-tree copy of texinfo?
2287 if test -f $srcdir/../texinfo/Makefile.in; then
2288 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2289 gcc_cv_prog_makeinfo_modern=yes
2290 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2292 # See if makeinfo has been installed and is modern enough
2293 # that we can use it.
2294 # Extract the first word of "makeinfo", so it can be a program name with args.
2295 set dummy makeinfo; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 if test -n "$MAKEINFO"; then
2302 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_MAKEINFO="makeinfo"
2316 MAKEINFO="$ac_cv_prog_MAKEINFO"
2317 if test -n "$MAKEINFO"; then
2318 echo "$ac_t""$MAKEINFO" 1>&6
2320 echo "$ac_t""no" 1>&6
2323 if test -n "$MAKEINFO"; then
2324 # Found it, now check the version.
2325 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2326 echo "configure:2327: checking for modern makeinfo" >&5
2327 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 ac_prog_version=`$MAKEINFO --version 2>&1 |
2331 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2332 echo "configure:2333: version of makeinfo is $ac_prog_version" >&5
2333 case $ac_prog_version in
2334 '') gcc_cv_prog_makeinfo_modern=no;;
2336 gcc_cv_prog_makeinfo_modern=yes;;
2337 *) gcc_cv_prog_makeinfo_modern=no;;
2342 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2344 gcc_cv_prog_makeinfo_modern=no
2349 if test $gcc_cv_prog_makeinfo_modern = no; then
2350 echo "configure: warning:
2351 *** Makeinfo is missing or too old.
2352 *** Info documentation will not be built." 1>&2
2358 # Are perl and pod2man recent enough to regenerate manpages?
2359 echo $ac_n "checking for recent perl and Pod::Man""... $ac_c" 1>&6
2360 echo "configure:2361: checking for recent perl and Pod::Man" >&5
2361 if perl -e 'use v5.6.0; use 1.10 Pod::Man' >/dev/null 2>&1; then
2362 echo "$ac_t""yes" 1>&6
2363 GENERATED_MANPAGES=generated-manpages
2365 echo "$ac_t""no" 1>&6
2370 if test -f $srcdir/../flex/skel.c; then
2371 FLEX='$(objdir)/../flex/flex'
2373 # Extract the first word of "flex", so it can be a program name with args.
2374 set dummy flex; ac_word=$2
2375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2376 echo "configure:2377: checking for $ac_word" >&5
2377 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 if test -n "$FLEX"; then
2381 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2385 for ac_dir in $ac_dummy; do
2386 test -z "$ac_dir" && ac_dir=.
2387 if test -f $ac_dir/$ac_word; then
2388 ac_cv_prog_FLEX="flex"
2393 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
2396 FLEX="$ac_cv_prog_FLEX"
2397 if test -n "$FLEX"; then
2398 echo "$ac_t""$FLEX" 1>&6
2400 echo "$ac_t""no" 1>&6
2406 # The -L switch is so bison can find its skeleton file.
2407 if test -f $srcdir/../bison/bison.simple; then
2408 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2410 # Extract the first word of "bison", so it can be a program name with args.
2411 set dummy bison; ac_word=$2
2412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_word" >&5
2414 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 if test -n "$BISON"; then
2418 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2422 for ac_dir in $ac_dummy; do
2423 test -z "$ac_dir" && ac_dir=.
2424 if test -f $ac_dir/$ac_word; then
2425 ac_cv_prog_BISON="bison"
2430 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
2433 BISON="$ac_cv_prog_BISON"
2434 if test -n "$BISON"; then
2435 echo "$ac_t""$BISON" 1>&6
2437 echo "$ac_t""no" 1>&6
2442 # See if the stage1 system preprocessor understands the ANSI C
2443 # preprocessor stringification operator.
2446 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2447 echo "configure:2448: checking for preprocessor stringizing operator" >&5
2448 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2457 char *s = x(teststring);
2460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2461 egrep "#teststring" >/dev/null 2>&1; then
2463 ac_cv_c_stringize=no
2466 ac_cv_c_stringize=yes
2472 if test "${ac_cv_c_stringize}" = yes
2474 cat >> confdefs.h <<\EOF
2475 #define HAVE_STRINGIZE 1
2479 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2482 # Use <inttypes.h> only if it exists,
2483 # doesn't clash with <sys/types.h>, and declares intmax_t.
2484 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2485 echo "configure:2486: checking for inttypes.h" >&5
2486 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 #include <sys/types.h>
2493 #include <inttypes.h>
2498 if { (eval echo configure:2499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2500 gcc_cv_header_inttypes_h=yes
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2505 gcc_cv_header_inttypes_h=no
2510 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2511 if test $gcc_cv_header_inttypes_h = yes; then
2512 cat >> confdefs.h <<\EOF
2513 #define HAVE_INTTYPES_H 1
2519 # Determine if enumerated bitfields are unsigned. ISO C says they can
2520 # be either signed or unsigned.
2522 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2523 echo "configure:2524: checking for unsigned enumerated bitfields" >&5
2524 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 if test "$cross_compiling" = yes; then
2528 gcc_cv_enum_bf_unsigned=yes
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2534 enum t { BLAH = 128 } ;
2535 struct s_t { enum t member : 8; } s ;
2539 if (s.member < 0) exit(1);
2544 if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2546 gcc_cv_enum_bf_unsigned=yes
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2551 gcc_cv_enum_bf_unsigned=no
2558 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2559 if test $gcc_cv_enum_bf_unsigned = yes; then
2560 cat >> confdefs.h <<\EOF
2561 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2566 for ac_func in strtoul bsearch putenv popen bcopy \
2567 strchr strrchr kill getrlimit setrlimit atoll atoq \
2568 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2569 fputs_unlocked getrusage iconv nl_langinfo
2571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2572 echo "configure:2573: checking for $ac_func" >&5
2573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2579 /* System header to define __stub macros and hopefully few prototypes,
2580 which can conflict with char $ac_func(); below. */
2582 /* Override any gcc2 internal prototype to avoid an error. */
2583 /* We use char because int might match the return type of a gcc2
2584 builtin and then its argument prototype would still apply. */
2589 /* The GNU C library defines this for functions which it implements
2590 to always fail with ENOSYS. Some functions are actually named
2591 something starting with __ and the normal name is an alias. */
2592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2600 if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2602 eval "ac_cv_func_$ac_func=yes"
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2607 eval "ac_cv_func_$ac_func=no"
2612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2613 echo "$ac_t""yes" 1>&6
2614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2615 cat >> confdefs.h <<EOF
2616 #define $ac_tr_func 1
2620 echo "$ac_t""no" 1>&6
2625 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2626 echo "configure:2627: checking for ssize_t" >&5
2627 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 #include <sys/types.h>
2639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2640 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2642 ac_cv_type_ssize_t=yes
2645 ac_cv_type_ssize_t=no
2650 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2651 if test $ac_cv_type_ssize_t = no; then
2652 cat >> confdefs.h <<\EOF
2659 # Try to determine the array type of the second argument of getgroups
2660 # for the target system (int or gid_t).
2661 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2662 echo "configure:2663: checking for uid_t in sys/types.h" >&5
2663 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 #include <sys/types.h>
2671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2672 egrep "uid_t" >/dev/null 2>&1; then
2674 ac_cv_type_uid_t=yes
2683 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2684 if test $ac_cv_type_uid_t = no; then
2685 cat >> confdefs.h <<\EOF
2689 cat >> confdefs.h <<\EOF
2695 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2696 echo "configure:2697: checking type of array argument to getgroups" >&5
2697 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 if test "$cross_compiling" = yes; then
2701 ac_cv_type_getgroups=cross
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2707 /* Thanks to Mike Rendell for this test. */
2708 #include <sys/types.h>
2711 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2716 union { gid_t gval; long lval; } val;
2719 for (i = 0; i < NGID; i++)
2720 gidset[i] = val.gval;
2721 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2723 /* Exit non-zero if getgroups seems to require an array of ints. This
2724 happens when gid_t is short but getgroups modifies an array of ints. */
2725 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2729 if { (eval echo configure:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2731 ac_cv_type_getgroups=gid_t
2733 echo "configure: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2736 ac_cv_type_getgroups=int
2741 if test $ac_cv_type_getgroups = cross; then
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2748 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2750 ac_cv_type_getgroups=gid_t
2753 ac_cv_type_getgroups=int
2760 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2761 cat >> confdefs.h <<EOF
2762 #define GETGROUPS_T $ac_cv_type_getgroups
2766 if test "${target}" = "${build}"; then
2767 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
2770 # This condition may need some tweaking. It should include all
2771 # targets where the array type of the second argument of getgroups
2772 # is int and the type of gid_t is not equivalent to int.
2773 *-*-sunos* | *-*-ultrix*)
2774 TARGET_GETGROUPS_T=int
2777 TARGET_GETGROUPS_T=gid_t
2783 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2784 echo "configure:2785: checking for vprintf" >&5
2785 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 /* System header to define __stub macros and hopefully few prototypes,
2792 which can conflict with char vprintf(); below. */
2794 /* Override any gcc2 internal prototype to avoid an error. */
2795 /* We use char because int might match the return type of a gcc2
2796 builtin and then its argument prototype would still apply. */
2801 /* The GNU C library defines this for functions which it implements
2802 to always fail with ENOSYS. Some functions are actually named
2803 something starting with __ and the normal name is an alias. */
2804 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2812 if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2814 eval "ac_cv_func_vprintf=yes"
2816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2819 eval "ac_cv_func_vprintf=no"
2824 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 cat >> confdefs.h <<\EOF
2827 #define HAVE_VPRINTF 1
2831 echo "$ac_t""no" 1>&6
2834 if test "$ac_cv_func_vprintf" != yes; then
2835 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2836 echo "configure:2837: checking for _doprnt" >&5
2837 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 /* System header to define __stub macros and hopefully few prototypes,
2844 which can conflict with char _doprnt(); below. */
2846 /* Override any gcc2 internal prototype to avoid an error. */
2847 /* We use char because int might match the return type of a gcc2
2848 builtin and then its argument prototype would still apply. */
2853 /* The GNU C library defines this for functions which it implements
2854 to always fail with ENOSYS. Some functions are actually named
2855 something starting with __ and the normal name is an alias. */
2856 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2864 if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2866 eval "ac_cv_func__doprnt=yes"
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2871 eval "ac_cv_func__doprnt=no"
2876 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2877 echo "$ac_t""yes" 1>&6
2878 cat >> confdefs.h <<\EOF
2879 #define HAVE_DOPRNT 1
2883 echo "$ac_t""no" 1>&6
2890 if test $ac_cv_func_vprintf != yes ; then
2892 if test $ac_cv_func__doprnt != yes ; then
2899 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2900 echo "configure:2901: checking whether the printf functions support %p" >&5
2901 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 if test "$cross_compiling" = yes; then
2905 gcc_cv_func_printf_ptr=no
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2915 char *p = buf, *q = NULL;
2916 sprintf(buf, "%p", p);
2917 sscanf(buf, "%p", &q);
2921 if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2923 gcc_cv_func_printf_ptr=yes
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2928 gcc_cv_func_printf_ptr=no
2933 rm -f core core.* *.core
2936 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2937 if test $gcc_cv_func_printf_ptr = yes ; then
2938 cat >> confdefs.h <<\EOF
2939 #define HAVE_PRINTF_PTR 1
2947 { echo "configure: error:
2948 *** UWIN may not be used as a host platform because
2949 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
2952 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2953 echo "configure:2954: checking for pid_t" >&5
2954 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2955 echo $ac_n "(cached) $ac_c" 1>&6
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2960 #include <sys/types.h>
2966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2967 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2969 ac_cv_type_pid_t=yes
2977 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2978 if test $ac_cv_type_pid_t = no; then
2979 cat >> confdefs.h <<\EOF
2985 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2986 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2987 echo "configure:2988: checking for vfork.h" >&5
2988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2997 { (eval echo configure:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2999 if test -z "$ac_err"; then
3001 eval "ac_cv_header_$ac_safe=yes"
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3007 eval "ac_cv_header_$ac_safe=no"
3011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 cat >> confdefs.h <<\EOF
3014 #define HAVE_VFORK_H 1
3018 echo "$ac_t""no" 1>&6
3021 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3022 echo "configure:3023: checking for working vfork" >&5
3023 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 if test "$cross_compiling" = yes; then
3027 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3028 echo "configure:3029: checking for vfork" >&5
3029 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* System header to define __stub macros and hopefully few prototypes,
3036 which can conflict with char vfork(); below. */
3038 /* Override any gcc2 internal prototype to avoid an error. */
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3045 /* The GNU C library defines this for functions which it implements
3046 to always fail with ENOSYS. Some functions are actually named
3047 something starting with __ and the normal name is an alias. */
3048 #if defined (__stub_vfork) || defined (__stub___vfork)
3056 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3058 eval "ac_cv_func_vfork=yes"
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3063 eval "ac_cv_func_vfork=no"
3068 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3069 echo "$ac_t""yes" 1>&6
3072 echo "$ac_t""no" 1>&6
3075 ac_cv_func_vfork_works=$ac_cv_func_vfork
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 /* Thanks to Paul Eggert for this test. */
3082 #include <sys/types.h>
3083 #include <sys/stat.h>
3084 #ifdef HAVE_UNISTD_H
3090 /* On some sparc systems, changes by the child to local and incoming
3091 argument registers are propagated back to the parent.
3092 The compiler is told about this with #include <vfork.h>,
3093 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3094 Test for this by using a static variable whose address
3095 is put into a register that is clobbered by the vfork. */
3098 sparc_address_test (int arg)
3100 sparc_address_test (arg) int arg;
3118 pid_t parent = getpid ();
3121 sparc_address_test ();
3126 /* Here is another test for sparc vfork register problems.
3127 This test uses lots of local variables, at least
3128 as many local variables as main has allocated so far
3129 including compiler temporaries. 4 locals are enough for
3130 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3131 A buggy compiler should reuse the register of parent
3132 for one of the local variables, since it will think that
3133 parent can't possibly be used any more in this routine.
3134 Assigning to the local variable will thus munge parent
3135 in the parent process. */
3137 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3138 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3139 /* Convince the compiler that p..p7 are live; otherwise, it might
3140 use the same hardware register for all 8 local variables. */
3141 if (p != p1 || p != p2 || p != p3 || p != p4
3142 || p != p5 || p != p6 || p != p7)
3145 /* On some systems (e.g. IRIX 3.3),
3146 vfork doesn't separate parent from child file descriptors.
3147 If the child closes a descriptor before it execs or exits,
3148 this munges the parent's descriptor as well.
3149 Test for this by closing stdout in the child. */
3150 _exit(close(fileno(stdout)) != 0);
3155 while (wait(&status) != child)
3158 /* Was there some problem with vforking? */
3161 /* Did the child fail? (This shouldn't happen.) */
3164 /* Did the vfork/compiler bug occur? */
3165 || parent != getpid()
3167 /* Did the file descriptor bug occur? */
3168 || fstat(fileno(stdout), &st) != 0
3173 if { (eval echo configure:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3175 ac_cv_func_vfork_works=yes
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3180 ac_cv_func_vfork_works=no
3187 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3188 if test $ac_cv_func_vfork_works = no; then
3189 cat >> confdefs.h <<\EOF
3195 for ac_func in getpagesize
3197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_func" >&5
3199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 /* System header to define __stub macros and hopefully few prototypes,
3206 which can conflict with char $ac_func(); below. */
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3215 /* The GNU C library defines this for functions which it implements
3216 to always fail with ENOSYS. Some functions are actually named
3217 something starting with __ and the normal name is an alias. */
3218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 eval "ac_cv_func_$ac_func=yes"
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3233 eval "ac_cv_func_$ac_func=no"
3238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3241 cat >> confdefs.h <<EOF
3242 #define $ac_tr_func 1
3246 echo "$ac_t""no" 1>&6
3250 # The test program for the next two tests is the same except for one
3252 cat >ct-mmap.inc <<'EOF'
3253 #include <sys/types.h>
3254 #include <sys/mman.h>
3260 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3261 # define MAP_ANONYMOUS MAP_ANON
3264 /* This mess was copied from the GNU getpagesize.h. */
3265 #ifndef HAVE_GETPAGESIZE
3266 # ifdef HAVE_UNISTD_H
3267 # include <unistd.h>
3270 /* Assume that all systems that can run configure have sys/param.h. */
3271 # ifndef HAVE_SYS_PARAM_H
3272 # define HAVE_SYS_PARAM_H 1
3275 # ifdef _SC_PAGESIZE
3276 # define getpagesize() sysconf(_SC_PAGESIZE)
3277 # else /* no _SC_PAGESIZE */
3278 # ifdef HAVE_SYS_PARAM_H
3279 # include <sys/param.h>
3280 # ifdef EXEC_PAGESIZE
3281 # define getpagesize() EXEC_PAGESIZE
3282 # else /* no EXEC_PAGESIZE */
3284 # define getpagesize() NBPG * CLSIZE
3287 # endif /* no CLSIZE */
3288 # else /* no NBPG */
3290 # define getpagesize() NBPC
3291 # else /* no NBPC */
3293 # define getpagesize() PAGESIZE
3294 # endif /* PAGESIZE */
3295 # endif /* no NBPC */
3296 # endif /* no NBPG */
3297 # endif /* no EXEC_PAGESIZE */
3298 # else /* no HAVE_SYS_PARAM_H */
3299 # define getpagesize() 8192 /* punt totally */
3300 # endif /* no HAVE_SYS_PARAM_H */
3301 # endif /* no _SC_PAGESIZE */
3303 #endif /* no HAVE_GETPAGESIZE */
3306 # define MAP_FAILED -1
3310 #define perror_exit(str, val) \
3311 do { perror(str); exit(val); } while (0)
3313 /* Some versions of cygwin mmap require that munmap is called with the
3314 same parameters as mmap. GCC expects that this is not the case.
3315 Test for various forms of this problem. Warning - icky signal games. */
3317 static sigset_t unblock_sigsegv;
3327 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3328 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
3330 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3331 MAP_PRIVATE, devzero, 0);
3339 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
3343 /* Basic functionality test. */
3347 char *x = anonmap (pg);
3348 if (x == (char *) MAP_FAILED)
3349 perror_exit("test 0 mmap", 2);
3353 if (munmap(x, pg) < 0)
3354 perror_exit("test 0 munmap", 3);
3357 /* 1. If we map a 2-page region and unmap its second page, the first page
3362 char *x = anonmap (pg * 2);
3363 if (x == (char *)MAP_FAILED)
3364 perror_exit ("test 1 mmap", 4);
3366 signal (SIGSEGV, sigsegv);
3368 perror_exit ("test 1 fault", 5);
3373 if (munmap (x + pg, pg) < 0)
3374 perror_exit ("test 1 munmap 1", 6);
3377 if (setjmp (r) == 0)
3380 perror_exit ("test 1 no fault", 7);
3382 if (munmap (x, pg) < 0)
3383 perror_exit ("test 1 munmap 2", 8);
3386 /* 2. If we map a 2-page region and unmap its first page, the second
3387 page must remain. */
3391 char *x = anonmap (pg * 2);
3392 if (x == (char *)MAP_FAILED)
3393 perror_exit ("test 2 mmap", 9);
3395 signal (SIGSEGV, sigsegv);
3397 perror_exit ("test 2 fault", 10);
3402 if (munmap (x, pg) < 0)
3403 perror_exit ("test 2 munmap 1", 11);
3407 if (setjmp (r) == 0)
3410 perror_exit ("test 2 no fault", 12);
3413 if (munmap (x+pg, pg) < 0)
3414 perror_exit ("test 2 munmap 2", 13);
3417 /* 3. If we map two adjacent 1-page regions and unmap them both with
3418 one munmap, both must go away.
3420 Getting two adjacent 1-page regions with two mmap calls is slightly
3421 tricky. All OS's tested skip over already-allocated blocks; therefore
3422 we have been careful to unmap all allocated regions in previous tests.
3423 HP/UX allocates pages backward in memory. No OS has yet been observed
3424 to be so perverse as to leave unmapped space between consecutive calls
3433 if (x == (char *)MAP_FAILED)
3434 perror_exit ("test 3 mmap 1", 14);
3436 if (y == (char *)MAP_FAILED)
3437 perror_exit ("test 3 mmap 2", 15);
3442 z = y, y = x, x = z;
3445 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
3446 (unsigned long)x, (unsigned long)y);
3451 signal (SIGSEGV, sigsegv);
3453 perror_exit ("test 3 fault", 17);
3458 if (munmap (x, pg*2) < 0)
3459 perror_exit ("test 3 munmap", 18);
3461 if (setjmp (r) == 0)
3464 perror_exit ("test 3 no fault 1", 19);
3467 signal (SIGSEGV, sigsegv);
3468 if (setjmp (r) == 0)
3471 perror_exit ("test 3 no fault 2", 20);
3478 sigemptyset (&unblock_sigsegv);
3479 sigaddset (&unblock_sigsegv, SIGSEGV);
3480 pg = getpagesize ();
3481 #ifndef USE_MAP_ANON
3482 devzero = open ("/dev/zero", O_RDWR);
3484 perror_exit ("open /dev/zero", 1);
3496 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3497 echo "configure:3498: checking for working mmap from /dev/zero" >&5
3498 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 if test "$cross_compiling" = yes; then
3502 # If this is not cygwin, and /dev/zero is a character device, it's probably
3503 # safe to assume it works.
3505 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
3506 * ) if test -c /dev/zero
3507 then ac_cv_func_mmap_dev_zero=yes
3508 else ac_cv_func_mmap_dev_zero=no
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 #include "ct-mmap.inc"
3517 if { (eval echo configure:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3519 ac_cv_func_mmap_dev_zero=yes
3521 echo "configure: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3525 then ac_cv_func_mmap_dev_zero=no
3526 else ac_cv_func_mmap_dev_zero=buggy
3535 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
3536 if test $ac_cv_func_mmap_dev_zero = yes; then
3537 cat >> confdefs.h <<\EOF
3538 #define HAVE_MMAP_DEV_ZERO 1
3543 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
3544 echo "configure:3545: checking for working mmap with MAP_ANON(YMOUS)" >&5
3545 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 if test "$cross_compiling" = yes; then
3549 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
3550 # just because it's there. Some SCO Un*xen define it but don't implement it.
3551 ac_cv_func_mmap_anon=no
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3556 #define USE_MAP_ANON
3557 #include "ct-mmap.inc"
3559 if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3561 ac_cv_func_mmap_anon=yes
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3567 then ac_cv_func_mmap_anon=no
3568 else ac_cv_func_mmap_anon=buggy
3577 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
3578 if test $ac_cv_func_mmap_anon = yes; then
3579 cat >> confdefs.h <<\EOF
3580 #define HAVE_MMAP_ANON 1
3586 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3587 echo "configure:3588: checking for working mmap of a file" >&5
3588 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 # Create a file one thousand bytes long.
3592 for i in 1 2 3 4 5 6 7 8 9 0
3593 do for j in 1 2 3 4 5 6 7 8 9 0
3596 done > conftestdata$$
3598 if test "$cross_compiling" = yes; then
3599 ac_cv_func_mmap_file=no
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3605 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3606 Richard Henderson and Alexandre Oliva.
3607 Check whether read-only mmap of a plain file works. */
3608 #include <sys/types.h>
3609 #include <sys/stat.h>
3611 #include <sys/mman.h>
3619 fd = open("conftestdata$$", O_RDONLY);
3623 if (fstat (fd, &st))
3626 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3627 if (x == (char *) -1)
3630 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3633 if (munmap(x, st.st_size) < 0)
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3641 ac_cv_func_mmap_file=yes
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3646 ac_cv_func_mmap_file=no
3653 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3654 if test $ac_cv_func_mmap_file = yes; then
3655 cat >> confdefs.h <<\EOF
3656 #define HAVE_MMAP_FILE 1
3662 # We will need to find libiberty.h and ansidecl.h
3663 saved_CFLAGS="$CFLAGS"
3664 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3665 for ac_func in bcopy \
3666 getenv atol sbrk abort atof getcwd getwd \
3667 strsignal putc_unlocked fputs_unlocked strstr environ \
3668 malloc realloc calloc free basename getopt
3670 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3671 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3672 echo "configure:3673: checking whether $ac_func is declared" >&5
3673 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 #include "gansidecl.h"
3684 char *(*pfn) = (char *(*)) $ac_func ;
3688 if { (eval echo configure:3689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3690 eval "gcc_cv_have_decl_$ac_func=yes"
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3695 eval "gcc_cv_have_decl_$ac_func=no"
3700 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3702 #define $ac_tr_decl 1
3706 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3707 #define $ac_tr_decl 0
3713 if test x = y ; then
3714 cat >> confdefs.h <<EOF
3715 #define HAVE_DECL_BCOPY 1
3718 cat >> confdefs.h <<EOF
3719 #define HAVE_DECL_GETENV 1
3721 cat >> confdefs.h <<EOF
3722 #define HAVE_DECL_ATOL 1
3724 cat >> confdefs.h <<EOF
3725 #define HAVE_DECL_SBRK 1
3727 cat >> confdefs.h <<EOF
3728 #define HAVE_DECL_ABORT 1
3730 cat >> confdefs.h <<EOF
3731 #define HAVE_DECL_ATOF 1
3733 cat >> confdefs.h <<EOF
3734 #define HAVE_DECL_GETCWD 1
3736 cat >> confdefs.h <<EOF
3737 #define HAVE_DECL_GETWD 1
3740 cat >> confdefs.h <<EOF
3741 #define HAVE_DECL_STRSIGNAL 1
3743 cat >> confdefs.h <<EOF
3744 #define HAVE_DECL_PUTC_UNLOCKED 1
3746 cat >> confdefs.h <<EOF
3747 #define HAVE_DECL_FPUTS_UNLOCKED 1
3749 cat >> confdefs.h <<EOF
3750 #define HAVE_DECL_STRSTR 1
3752 cat >> confdefs.h <<EOF
3753 #define HAVE_DECL_ENVIRON 1
3756 cat >> confdefs.h <<EOF
3757 #define HAVE_DECL_MALLOC 1
3759 cat >> confdefs.h <<EOF
3760 #define HAVE_DECL_REALLOC 1
3762 cat >> confdefs.h <<EOF
3763 #define HAVE_DECL_CALLOC 1
3765 cat >> confdefs.h <<EOF
3766 #define HAVE_DECL_FREE 1
3768 cat >> confdefs.h <<EOF
3769 #define HAVE_DECL_BASENAME 1
3771 cat >> confdefs.h <<EOF
3772 #define HAVE_DECL_GETOPT 1
3777 for ac_func in getrlimit setrlimit getrusage
3779 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3780 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3781 echo "configure:3782: checking whether $ac_func is declared" >&5
3782 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 #include "gansidecl.h"
3790 #ifdef HAVE_SYS_RESOURCE_H
3791 #include <sys/resource.h>
3797 char *(*pfn) = (char *(*)) $ac_func ;
3801 if { (eval echo configure:3802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3803 eval "gcc_cv_have_decl_$ac_func=yes"
3805 echo "configure: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3808 eval "gcc_cv_have_decl_$ac_func=no"
3813 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3814 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3815 #define $ac_tr_decl 1
3819 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3820 #define $ac_tr_decl 0
3826 if test x = y ; then
3827 cat >> confdefs.h <<EOF
3828 #define HAVE_DECL_GETRLIMIT 1
3830 cat >> confdefs.h <<EOF
3831 #define HAVE_DECL_SETRLIMIT 1
3833 cat >> confdefs.h <<EOF
3834 #define HAVE_DECL_GETRUSAGE 1
3839 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3840 CFLAGS="$saved_CFLAGS"
3842 # mkdir takes a single argument on some systems.
3843 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3844 echo "configure:3845: checking if mkdir takes one argument" >&5
3845 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3852 #include <sys/types.h>
3853 #ifdef HAVE_SYS_STAT_H
3854 # include <sys/stat.h>
3856 #ifdef HAVE_UNISTD_H
3857 # include <unistd.h>
3859 #ifdef HAVE_DIRECT_H
3860 # include <direct.h>
3866 if { (eval echo configure:3867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3868 gcc_cv_mkdir_takes_one_arg=no
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3873 gcc_cv_mkdir_takes_one_arg=yes
3878 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3879 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3880 cat >> confdefs.h <<\EOF
3881 #define MKDIR_TAKES_ONE_ARG 1
3895 build_install_headers_dir=install-headers-tar
3900 host_truncate_target=
3903 # Decode the host machine, then the target machine.
3904 # For the host machine, we save the xm_file variable as host_xm_file;
3905 # then we decode the target machine and forget everything else
3906 # that came from the host machine.
3907 for machine in $build $host $target; do
3908 . ${srcdir}/config.gcc
3911 extra_objs="${host_extra_objs} ${extra_objs}"
3913 # Default the target-machine variables that were not explicitly set.
3914 if test x"$tm_file" = x
3915 then tm_file=$cpu_type/$cpu_type.h; fi
3917 if test x"$extra_headers" = x
3918 then extra_headers=; fi
3920 if test x"$xm_file" = x
3921 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3923 if test x$md_file = x
3924 then md_file=$cpu_type/$cpu_type.md; fi
3926 if test x$out_file = x
3927 then out_file=$cpu_type/$cpu_type.c; fi
3929 if test x"$tmake_file" = x
3930 then tmake_file=$cpu_type/t-$cpu_type
3933 if test x"$dwarf2" = xyes
3934 then tm_file="$tm_file tm-dwarf2.h"
3937 if test x$float_format = x
3938 then float_format=i64
3941 if test $float_format = none
3942 then float_h_file=Makefile.in
3943 else float_h_file=float-$float_format.h
3946 # Handle cpp installation.
3947 if test x$enable_cpp != xno
3949 tmake_file="$tmake_file t-install-cpp"
3952 # Say what files are being used for the output code and MD file.
3953 echo "Using \`$srcdir/config/$out_file' to output insns."
3954 echo "Using \`$srcdir/config/$md_file' as machine description file."
3957 for f in $tm_file; do
3960 if test $count = ax; then
3961 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3963 echo "Using the following target machine macro files:"
3964 for f in $tm_file; do
3965 echo " $srcdir/config/$f"
3970 for f in $host_xm_file; do
3973 if test $count = ax; then
3974 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3976 echo "Using the following host machine macro files:"
3977 for f in $host_xm_file; do
3978 echo " $srcdir/config/$f"
3982 if test "$host_xm_file" != "$build_xm_file"; then
3984 for f in $build_xm_file; do
3987 if test $count = ax; then
3988 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3990 echo "Using the following build machine macro files:"
3991 for f in $build_xm_file; do
3992 echo " $srcdir/config/$f"
3997 if test x$thread_file = x; then
3998 if test x$target_thread_file != x; then
3999 thread_file=$target_thread_file
4001 thread_file='single'
4005 # Set up the header files.
4006 # $links is the list of header files to create.
4007 # $vars is the list of shell variables with file names to include.
4008 # auto-host.h is the file containing items generated by autoconf and is
4009 # the first file included by config.h.
4011 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4013 # If host=build, it is correct to have hconfig include auto-host.h
4014 # as well. If host!=build, we are in error and need to do more
4015 # work to find out the build config parameters.
4016 if test x$host = x$build
4018 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4020 # We create a subdir, then run autoconf in the subdir.
4021 # To prevent recursion we set host and build for the new
4022 # invocation of configure to the build for this invocation
4029 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4030 *) realsrcdir=../${srcdir};;
4032 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4033 --target=$target --host=$build --build=$build
4035 # We just finished tests for the build machine, so rename
4036 # the file auto-build.h in the gcc directory.
4037 mv auto-host.h ../auto-build.h
4040 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4043 xm_file="gansidecl.h ${xm_file}"
4044 tm_file="gansidecl.h ${tm_file}"
4046 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4047 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4048 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4051 if test -f config.status; then mv -f config.status config.bak; fi
4054 while test -n "$vars"
4056 set $vars; var=$1; shift; vars=$*
4057 set $links; link=$1; shift; links=$*
4058 set $defines; define=$1; shift; defines=$*
4061 # Make sure the file is created, even if it is empty.
4064 # Define TARGET_CPU_DEFAULT if the system wants one.
4065 # This substitutes for lots of *.h files.
4066 if test "$target_cpu_default" != "" -a $link = tm.h
4068 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4071 for file in `eval echo '$'$var`; do
4073 auto-host.h | auto-build.h )
4076 echo '#ifdef IN_GCC' >>$link
4079 echo "#include \"$file\"" >>$link
4081 auto-host.h | auto-build.h )
4084 echo '#endif' >>$link
4089 for def in `eval echo '$'$define`; do
4090 echo "#ifndef $def" >>$link
4091 echo "#define $def" >>$link
4092 echo "#endif" >>$link
4095 if test $link = tm.h
4097 # Include insn-codes.h last, because it includes machmode.h,
4098 # and we want EXTRA_CC_MODES to be taken into account.
4099 echo "#ifndef GENERATOR_FILE" >>$link
4100 echo "#include \"insn-codes.h\"" >>$link
4101 echo "#endif" >>$link
4105 # Truncate the target if necessary
4106 if test x$host_truncate_target != x; then
4107 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4110 # Get the version trigger filename from the toplevel
4111 if test "${with_gcc_version_trigger+set}" = set; then
4112 gcc_version_trigger=$with_gcc_version_trigger
4114 gcc_version_trigger=${srcdir}/version.c
4116 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4117 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4119 # Compile in configure arguments.
4120 if test -f configargs.h ; then
4121 # Being re-configured.
4122 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4123 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
4125 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
4127 cat > configargs.h <<EOF
4128 /* Generated automatically. */
4129 static const char configuration_arguments[] = "$gcc_config_arguments";
4132 # Internationalization
4134 VERSION="$gcc_version"
4135 cat >> confdefs.h <<EOF
4136 #define PACKAGE "$PACKAGE"
4139 cat >> confdefs.h <<EOF
4140 #define VERSION "$VERSION"
4148 # Enable NLS support by default
4149 # Check whether --enable-nls or --disable-nls was given.
4150 if test "${enable_nls+set}" = set; then
4151 enableval="$enable_nls"
4158 # if cross compiling, disable NLS support.
4159 # It's not worth the trouble, at least for now.
4161 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4162 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
4166 # if NLS is enabled, also enable check in po subdir
4167 if test $enable_nls = yes; then
4176 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
4177 echo "configure:4178: checking for strerror in -lcposix" >&5
4178 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
4179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 ac_save_LIBS="$LIBS"
4183 LIBS="-lcposix $LIBS"
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4198 eval "ac_cv_lib_$ac_lib_var=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4203 eval "ac_cv_lib_$ac_lib_var=no"
4206 LIBS="$ac_save_LIBS"
4209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 LIBS="$LIBS -lcposix"
4213 echo "$ac_t""no" 1>&6
4218 echo $ac_n "checking for working const""... $ac_c" 1>&6
4219 echo "configure:4220: checking for working const" >&5
4220 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4229 /* Ultrix mips cc rejects this. */
4230 typedef int charset[2]; const charset x;
4231 /* SunOS 4.1.1 cc rejects this. */
4232 char const *const *ccp;
4234 /* NEC SVR4.0.2 mips cc rejects this. */
4235 struct point {int x, y;};
4236 static struct point const zero = {0,0};
4237 /* AIX XL C 1.02.0.0 rejects this.
4238 It does not let you subtract one const X* pointer from another in an arm
4239 of an if-expression whose if-part is not a constant expression */
4240 const char *g = "string";
4241 ccp = &g + (g ? g-g : 0);
4242 /* HPUX 7.0 cc rejects these. */
4245 ccp = (char const *const *) p;
4246 { /* SCO 3.2v4 cc rejects this. */
4248 char const *s = 0 ? (char *) 0 : (char const *) 0;
4252 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4254 const int *foo = &x[0];
4257 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4258 typedef const int *iptr;
4262 { /* AIX XL C 1.02.0.0 rejects this saying
4263 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4264 struct s { int j; const int *ap[3]; };
4265 struct s *b; b->j = 5;
4267 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4273 if { (eval echo configure:4274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4285 echo "$ac_t""$ac_cv_c_const" 1>&6
4286 if test $ac_cv_c_const = no; then
4287 cat >> confdefs.h <<\EOF
4293 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4294 echo "configure:4295: checking for off_t" >&5
4295 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4301 #include <sys/types.h>
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4310 ac_cv_type_off_t=yes
4318 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4319 if test $ac_cv_type_off_t = no; then
4320 cat >> confdefs.h <<\EOF
4326 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4327 echo "configure:4328: checking for size_t" >&5
4328 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 #include <sys/types.h>
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4343 ac_cv_type_size_t=yes
4346 ac_cv_type_size_t=no
4351 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4352 if test $ac_cv_type_size_t = no; then
4353 cat >> confdefs.h <<\EOF
4354 #define size_t unsigned
4359 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4360 # for constant arguments. Useless!
4361 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4362 echo "configure:4363: checking for working alloca.h" >&5
4363 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4371 char *p = alloca(2 * sizeof(int));
4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4376 ac_cv_header_alloca_h=yes
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4381 ac_cv_header_alloca_h=no
4386 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4387 if test $ac_cv_header_alloca_h = yes; then
4388 cat >> confdefs.h <<\EOF
4389 #define HAVE_ALLOCA_H 1
4394 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4395 echo "configure:4396: checking for alloca" >&5
4396 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4404 # define alloca __builtin_alloca
4407 # include <malloc.h>
4408 # define alloca _alloca
4411 # include <alloca.h>
4416 # ifndef alloca /* predefined by HP cc +Olibcalls */
4425 char *p = (char *) alloca(1);
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4430 ac_cv_func_alloca_works=yes
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4435 ac_cv_func_alloca_works=no
4440 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4441 if test $ac_cv_func_alloca_works = yes; then
4442 cat >> confdefs.h <<\EOF
4443 #define HAVE_ALLOCA 1
4448 if test $ac_cv_func_alloca_works = no; then
4449 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4450 # that cause trouble. Some versions do not even contain alloca or
4451 # contain a buggy version. If you still want to use their alloca,
4452 # use ar to extract alloca.o from them instead of compiling alloca.c.
4453 ALLOCA=alloca.${ac_objext}
4454 cat >> confdefs.h <<\EOF
4459 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4460 echo "configure:4461: checking whether alloca needs Cray hooks" >&5
4461 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 #if defined(CRAY) && ! defined(CRAY2)
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 egrep "webecray" >/dev/null 2>&1; then
4486 echo "$ac_t""$ac_cv_os_cray" 1>&6
4487 if test $ac_cv_os_cray = yes; then
4488 for ac_func in _getb67 GETB67 getb67; do
4489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4490 echo "configure:4491: checking for $ac_func" >&5
4491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4497 /* System header to define __stub macros and hopefully few prototypes,
4498 which can conflict with char $ac_func(); below. */
4500 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4507 /* The GNU C library defines this for functions which it implements
4508 to always fail with ENOSYS. Some functions are actually named
4509 something starting with __ and the normal name is an alias. */
4510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4518 if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4520 eval "ac_cv_func_$ac_func=yes"
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4525 eval "ac_cv_func_$ac_func=no"
4530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4531 echo "$ac_t""yes" 1>&6
4532 cat >> confdefs.h <<EOF
4533 #define CRAY_STACKSEG_END $ac_func
4538 echo "$ac_t""no" 1>&6
4544 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4545 echo "configure:4546: checking stack direction for C alloca" >&5
4546 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4549 if test "$cross_compiling" = yes; then
4550 ac_cv_c_stack_direction=0
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 find_stack_direction ()
4557 static char *addr = 0;
4562 return find_stack_direction ();
4565 return (&dummy > addr) ? 1 : -1;
4569 exit (find_stack_direction() < 0);
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4574 ac_cv_c_stack_direction=1
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4579 ac_cv_c_stack_direction=-1
4586 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4587 cat >> confdefs.h <<EOF
4588 #define STACK_DIRECTION $ac_cv_c_stack_direction
4594 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4595 unistd.h sys/param.h
4597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4599 echo "configure:4600: checking for $ac_hdr" >&5
4600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4609 { (eval echo configure:4610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4611 if test -z "$ac_err"; then
4613 eval "ac_cv_header_$ac_safe=yes"
4616 echo "configure: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4619 eval "ac_cv_header_$ac_safe=no"
4623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4624 echo "$ac_t""yes" 1>&6
4625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4626 cat >> confdefs.h <<EOF
4627 #define $ac_tr_hdr 1
4631 echo "$ac_t""no" 1>&6
4635 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4636 strdup __argz_count __argz_stringify __argz_next
4638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_func" >&5
4640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* System header to define __stub macros and hopefully few prototypes,
4647 which can conflict with char $ac_func(); below. */
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4656 /* The GNU C library defines this for functions which it implements
4657 to always fail with ENOSYS. Some functions are actually named
4658 something starting with __ and the normal name is an alias. */
4659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4667 if { (eval echo configure:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4669 eval "ac_cv_func_$ac_func=yes"
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4674 eval "ac_cv_func_$ac_func=no"
4679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4680 echo "$ac_t""yes" 1>&6
4681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4682 cat >> confdefs.h <<EOF
4683 #define $ac_tr_func 1
4687 echo "$ac_t""no" 1>&6
4692 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4693 for ac_func in stpcpy
4695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_func" >&5
4697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 /* System header to define __stub macros and hopefully few prototypes,
4704 which can conflict with char $ac_func(); below. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726 eval "ac_cv_func_$ac_func=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 eval "ac_cv_func_$ac_func=no"
4736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4739 cat >> confdefs.h <<EOF
4740 #define $ac_tr_func 1
4744 echo "$ac_t""no" 1>&6
4749 if test "${ac_cv_func_stpcpy}" = "yes"; then
4750 cat >> confdefs.h <<\EOF
4751 #define HAVE_STPCPY 1
4756 if test $ac_cv_header_locale_h = yes; then
4757 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4758 echo "configure:4759: checking for LC_MESSAGES" >&5
4759 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772 am_cv_val_LC_MESSAGES=yes
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4777 am_cv_val_LC_MESSAGES=no
4782 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4783 if test $am_cv_val_LC_MESSAGES = yes; then
4784 cat >> confdefs.h <<\EOF
4785 #define HAVE_LC_MESSAGES 1
4790 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4791 echo "configure:4792: checking whether NLS is requested" >&5
4792 # Check whether --enable-nls or --disable-nls was given.
4793 if test "${enable_nls+set}" = set; then
4794 enableval="$enable_nls"
4800 echo "$ac_t""$USE_NLS" 1>&6
4803 USE_INCLUDED_LIBINTL=no
4805 if test "$USE_NLS" = "yes"; then
4806 cat >> confdefs.h <<\EOF
4807 #define ENABLE_NLS 1
4810 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4811 echo "configure:4812: checking whether included gettext is requested" >&5
4812 # Check whether --with-included-gettext or --without-included-gettext was given.
4813 if test "${with_included_gettext+set}" = set; then
4814 withval="$with_included_gettext"
4815 nls_cv_force_use_gnu_gettext=$withval
4817 nls_cv_force_use_gnu_gettext=no
4820 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4822 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4823 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4825 nls_cv_header_libgt=
4828 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4829 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4830 echo "configure:4831: checking for libintl.h" >&5
4831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 #include <libintl.h>
4839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4840 { (eval echo configure:4841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4842 if test -z "$ac_err"; then
4844 eval "ac_cv_header_$ac_safe=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4850 eval "ac_cv_header_$ac_safe=no"
4854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4855 echo "$ac_t""yes" 1>&6
4856 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4857 echo "configure:4858: checking for gettext in libc" >&5
4858 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <libintl.h>
4866 return (int) gettext ("")
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 gt_cv_func_gettext_libc=yes
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 gt_cv_func_gettext_libc=no
4881 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4883 if test "$gt_cv_func_gettext_libc" != "yes"; then
4884 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4885 echo "configure:4886: checking for bindtextdomain in -lintl" >&5
4886 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 ac_save_LIBS="$LIBS"
4892 cat > conftest.$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */
4898 char bindtextdomain();
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4906 eval "ac_cv_lib_$ac_lib_var=yes"
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 eval "ac_cv_lib_$ac_lib_var=no"
4914 LIBS="$ac_save_LIBS"
4917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4918 echo "$ac_t""yes" 1>&6
4919 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4920 echo "configure:4921: checking for gettext in libintl" >&5
4921 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4925 echo "configure:4926: checking for gettext in -lintl" >&5
4926 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 ac_save_LIBS="$LIBS"
4932 cat > conftest.$ac_ext <<EOF
4933 #line 4934 "configure"
4934 #include "confdefs.h"
4935 /* Override any gcc2 internal prototype to avoid an error. */
4936 /* We use char because int might match the return type of a gcc2
4937 builtin and then its argument prototype would still apply. */
4944 if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4946 eval "ac_cv_lib_$ac_lib_var=yes"
4948 echo "configure: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4951 eval "ac_cv_lib_$ac_lib_var=no"
4954 LIBS="$ac_save_LIBS"
4957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4958 echo "$ac_t""yes" 1>&6
4959 gt_cv_func_gettext_libintl=yes
4961 echo "$ac_t""no" 1>&6
4962 gt_cv_func_gettext_libintl=no
4967 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4969 echo "$ac_t""no" 1>&6
4974 if test "$gt_cv_func_gettext_libc" = "yes" \
4975 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4976 cat >> confdefs.h <<\EOF
4977 #define HAVE_GETTEXT 1
4980 # Extract the first word of "msgfmt", so it can be a program name with args.
4981 set dummy msgfmt; ac_word=$2
4982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4983 echo "configure:4984: checking for $ac_word" >&5
4984 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4989 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4993 for ac_dir in $PATH; do
4994 test -z "$ac_dir" && ac_dir=.
4995 if test -f $ac_dir/$ac_word; then
4996 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4997 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5003 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="no"
5007 MSGFMT="$gcc_cv_path_MSGFMT"
5008 if test -n "$MSGFMT"; then
5009 echo "$ac_t""$MSGFMT" 1>&6
5011 echo "$ac_t""no" 1>&6
5013 if test "$MSGFMT" != "no"; then
5014 for ac_func in dcgettext
5016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5017 echo "configure:5018: checking for $ac_func" >&5
5018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char $ac_func(); below. */
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5034 /* The GNU C library defines this for functions which it implements
5035 to always fail with ENOSYS. Some functions are actually named
5036 something starting with __ and the normal name is an alias. */
5037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5047 eval "ac_cv_func_$ac_func=yes"
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5052 eval "ac_cv_func_$ac_func=no"
5057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5060 cat >> confdefs.h <<EOF
5061 #define $ac_tr_func 1
5065 echo "$ac_t""no" 1>&6
5069 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5070 set dummy gmsgfmt; ac_word=$2
5071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5072 echo "configure:5073: checking for $ac_word" >&5
5073 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5078 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5081 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5086 for ac_dir in $ac_dummy; do
5087 test -z "$ac_dir" && ac_dir=.
5088 if test -f $ac_dir/$ac_word; then
5089 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5094 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5098 GMSGFMT="$gcc_cv_path_GMSGFMT"
5099 if test -n "$GMSGFMT"; then
5100 echo "$ac_t""$GMSGFMT" 1>&6
5102 echo "$ac_t""no" 1>&6
5105 # Extract the first word of "xgettext", so it can be a program name with args.
5106 set dummy xgettext; ac_word=$2
5107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5108 echo "configure:5109: checking for $ac_word" >&5
5109 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5114 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5118 for ac_dir in $PATH; do
5119 test -z "$ac_dir" && ac_dir=.
5120 if test -f $ac_dir/$ac_word; then
5121 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5122 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5128 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5132 XGETTEXT="$gcc_cv_path_XGETTEXT"
5133 if test -n "$XGETTEXT"; then
5134 echo "$ac_t""$XGETTEXT" 1>&6
5136 echo "$ac_t""no" 1>&6
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5144 extern int _nl_msg_cat_cntr;
5145 return _nl_msg_cat_cntr
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5162 create_catalogs="no"
5167 echo "$ac_t""no" 1>&6
5171 if test "$CATOBJEXT" = "NONE"; then
5172 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
5173 echo "configure:5174: checking whether catgets can be used" >&5
5174 # Check whether --with-catgets or --without-catgets was given.
5175 if test "${with_catgets+set}" = set; then
5176 withval="$with_catgets"
5177 nls_cv_use_catgets=$withval
5179 nls_cv_use_catgets=no
5182 echo "$ac_t""$nls_cv_use_catgets" 1>&6
5184 if test "$nls_cv_use_catgets" = "yes"; then
5185 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
5186 echo "configure:5187: checking for main in -li" >&5
5187 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
5188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5189 echo $ac_n "(cached) $ac_c" 1>&6
5191 ac_save_LIBS="$LIBS"
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 eval "ac_cv_lib_$ac_lib_var=yes"
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 eval "ac_cv_lib_$ac_lib_var=no"
5211 LIBS="$ac_save_LIBS"
5214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5215 echo "$ac_t""yes" 1>&6
5216 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5217 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5218 cat >> confdefs.h <<EOF
5219 #define $ac_tr_lib 1
5225 echo "$ac_t""no" 1>&6
5228 echo $ac_n "checking for catgets""... $ac_c" 1>&6
5229 echo "configure:5230: checking for catgets" >&5
5230 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 /* System header to define __stub macros and hopefully few prototypes,
5237 which can conflict with char catgets(); below. */
5239 /* Override any gcc2 internal prototype to avoid an error. */
5240 /* We use char because int might match the return type of a gcc2
5241 builtin and then its argument prototype would still apply. */
5246 /* The GNU C library defines this for functions which it implements
5247 to always fail with ENOSYS. Some functions are actually named
5248 something starting with __ and the normal name is an alias. */
5249 #if defined (__stub_catgets) || defined (__stub___catgets)
5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5259 eval "ac_cv_func_catgets=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 eval "ac_cv_func_catgets=no"
5269 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5270 echo "$ac_t""yes" 1>&6
5271 cat >> confdefs.h <<\EOF
5272 #define HAVE_CATGETS 1
5275 INTLOBJS="\$(CATOBJS)"
5276 # Extract the first word of "gencat", so it can be a program name with args.
5277 set dummy gencat; ac_word=$2
5278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5279 echo "configure:5280: checking for $ac_word" >&5
5280 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5285 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5288 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5293 for ac_dir in $ac_dummy; do
5294 test -z "$ac_dir" && ac_dir=.
5295 if test -f $ac_dir/$ac_word; then
5296 gcc_cv_path_GENCAT="$ac_dir/$ac_word"
5301 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT="no"
5305 GENCAT="$gcc_cv_path_GENCAT"
5306 if test -n "$GENCAT"; then
5307 echo "$ac_t""$GENCAT" 1>&6
5309 echo "$ac_t""no" 1>&6
5311 if test "$GENCAT" != "no"; then
5312 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5313 set dummy gmsgfmt; ac_word=$2
5314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5315 echo "configure:5316: checking for $ac_word" >&5
5316 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5321 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5324 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5329 for ac_dir in $ac_dummy; do
5330 test -z "$ac_dir" && ac_dir=.
5331 if test -f $ac_dir/$ac_word; then
5332 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5337 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="no"
5341 GMSGFMT="$gcc_cv_path_GMSGFMT"
5342 if test -n "$GMSGFMT"; then
5343 echo "$ac_t""$GMSGFMT" 1>&6
5345 echo "$ac_t""no" 1>&6
5348 if test "$GMSGFMT" = "no"; then
5349 # Extract the first word of "msgfmt", so it can be a program name with args.
5350 set dummy msgfmt; ac_word=$2
5351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5352 echo "configure:5353: checking for $ac_word" >&5
5353 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5358 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5362 for ac_dir in $PATH; do
5363 test -z "$ac_dir" && ac_dir=.
5364 if test -f $ac_dir/$ac_word; then
5365 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5366 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5372 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="msgfmt"
5376 GMSGFMT="$gcc_cv_path_GMSGFMT"
5377 if test -n "$GMSGFMT"; then
5378 echo "$ac_t""$GMSGFMT" 1>&6
5380 echo "$ac_t""no" 1>&6
5383 if test "$GMSGFMT" = "msgfmt"; then
5384 create_catalogs="no"
5387 # Extract the first word of "xgettext", so it can be a program name with args.
5388 set dummy xgettext; ac_word=$2
5389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5390 echo "configure:5391: checking for $ac_word" >&5
5391 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5396 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5400 for ac_dir in $PATH; do
5401 test -z "$ac_dir" && ac_dir=.
5402 if test -f $ac_dir/$ac_word; then
5403 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5404 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5410 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5414 XGETTEXT="$gcc_cv_path_XGETTEXT"
5415 if test -n "$XGETTEXT"; then
5416 echo "$ac_t""$XGETTEXT" 1>&6
5418 echo "$ac_t""no" 1>&6
5421 USE_INCLUDED_LIBINTL=yes
5425 INTLDEPS='$(top_builddir)/intl/libintl.a'
5427 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5428 nls_cv_header_intl=intl/libintl.h
5429 nls_cv_header_libgt=intl/libgettext.h
5432 echo "$ac_t""no" 1>&6
5438 if test "$CATOBJEXT" = "NONE"; then
5439 nls_cv_use_gnu_gettext=yes
5443 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5444 INTLOBJS="\$(GETTOBJS)"
5445 # Extract the first word of "msgfmt", so it can be a program name with args.
5446 set dummy msgfmt; ac_word=$2
5447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5448 echo "configure:5449: checking for $ac_word" >&5
5449 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5454 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5458 for ac_dir in $PATH; do
5459 test -z "$ac_dir" && ac_dir=.
5460 if test -f $ac_dir/$ac_word; then
5461 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5462 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5468 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="msgfmt"
5472 MSGFMT="$gcc_cv_path_MSGFMT"
5473 if test -n "$MSGFMT"; then
5474 echo "$ac_t""$MSGFMT" 1>&6
5476 echo "$ac_t""no" 1>&6
5479 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5480 set dummy gmsgfmt; ac_word=$2
5481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_word" >&5
5483 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5488 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5491 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5496 for ac_dir in $ac_dummy; do
5497 test -z "$ac_dir" && ac_dir=.
5498 if test -f $ac_dir/$ac_word; then
5499 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5504 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5508 GMSGFMT="$gcc_cv_path_GMSGFMT"
5509 if test -n "$GMSGFMT"; then
5510 echo "$ac_t""$GMSGFMT" 1>&6
5512 echo "$ac_t""no" 1>&6
5515 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
5516 create_catalogs="no"
5518 # Extract the first word of "xgettext", so it can be a program name with args.
5519 set dummy xgettext; ac_word=$2
5520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5521 echo "configure:5522: checking for $ac_word" >&5
5522 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5527 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5531 for ac_dir in $PATH; do
5532 test -z "$ac_dir" && ac_dir=.
5533 if test -f $ac_dir/$ac_word; then
5534 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5535 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5541 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5545 XGETTEXT="$gcc_cv_path_XGETTEXT"
5546 if test -n "$XGETTEXT"; then
5547 echo "$ac_t""$XGETTEXT" 1>&6
5549 echo "$ac_t""no" 1>&6
5553 USE_INCLUDED_LIBINTL=yes
5557 INTLDEPS='$(top_builddir)/intl/libintl.a'
5559 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5560 nls_cv_header_intl=intl/libintl.h
5561 nls_cv_header_libgt=intl/libgettext.h
5564 if test "$XGETTEXT" != ":"; then
5565 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5568 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5575 # We need to process the po/ directory.
5579 nls_cv_header_intl=intl/libintl.h
5580 nls_cv_header_libgt=intl/libgettext.h
5586 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5587 # because some of the sources are only built for this goal.
5588 if test "$PACKAGE" = gettext; then
5590 USE_INCLUDED_LIBINTL=yes
5593 for lang in $ALL_LINGUAS; do
5594 GMOFILES="$GMOFILES $lang.gmo"
5595 POFILES="$POFILES $lang.po"
5611 if test "x$create_catalogs" = "xno"; then
5612 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
5615 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
5616 if test "x$ALL_LINGUAS" = "x"; then
5619 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5620 echo "configure:5621: checking for catalogs to be installed" >&5
5621 if test "x$LINGUAS" = "x"; then
5622 LINGUAS=$ALL_LINGUAS
5625 for lang in $ALL_LINGUAS; do
5626 case " $LINGUAS " in
5627 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5630 LINGUAS=$NEW_LINGUAS
5632 echo "$ac_t""$LINGUAS" 1>&6
5635 if test -n "$LINGUAS"; then
5636 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5640 if test $ac_cv_header_locale_h = yes; then
5641 INCLUDE_LOCALE_H="#include <locale.h>"
5644 /* The system does not provide the header <locale.h>. Take care yourself. */"
5648 test -d intl || mkdir intl
5649 if test "$CATOBJEXT" = ".cat"; then
5650 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5651 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5652 echo "configure:5653: checking for linux/version.h" >&5
5653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 #include <linux/version.h>
5661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5662 { (eval echo configure:5663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5664 if test -z "$ac_err"; then
5666 eval "ac_cv_header_$ac_safe=yes"
5669 echo "configure: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 eval "ac_cv_header_$ac_safe=no"
5676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5677 echo "$ac_t""yes" 1>&6
5680 echo "$ac_t""no" 1>&6
5685 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
5687 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5688 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
5690 if test "$PACKAGE" = "gettext"; then
5701 if test -n "$ac_aux_dir"; then
5702 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5704 if test -z "$MKINSTALLDIRS"; then
5705 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5712 test -d po || mkdir po
5713 if test "x$srcdir" != "x."; then
5714 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5715 posrcprefix="$srcdir/"
5717 posrcprefix="../$srcdir/"
5723 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5724 < $srcdir/po/POTFILES.in > po/POTFILES
5726 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
5728 # Windows32 Registry support for specifying GCC installation paths.
5729 # Check whether --enable-win32-registry or --disable-win32-registry was given.
5730 if test "${enable_win32_registry+set}" = set; then
5731 enableval="$enable_win32_registry"
5736 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
5737 echo "configure:5738: checking whether windows registry support is requested" >&5
5738 if test x$enable_win32_registry != xno; then
5739 cat >> confdefs.h <<\EOF
5740 #define ENABLE_WIN32_REGISTRY 1
5743 echo "$ac_t""yes" 1>&6
5745 echo "$ac_t""no" 1>&6
5748 # Check if user specified a different registry key.
5749 case x${enable_win32_registry} in
5752 gcc_cv_win32_registry_key="$VERSION"
5755 # no registry lookup.
5756 gcc_cv_win32_registry_key=''
5759 # user-specified key.
5760 gcc_cv_win32_registry_key="$enable_win32_registry"
5764 if test x$enable_win32_registry != xno; then
5765 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
5766 echo "configure:5767: checking registry key on windows hosts" >&5
5767 cat >> confdefs.h <<EOF
5768 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
5771 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
5774 # Get an absolute path to the GCC top-level source directory
5780 # Conditionalize the makefile for this host machine.
5781 # Make-host contains the concatenation of all host makefile fragments
5782 # [there can be more than one]. This file is built by configure.frag.
5783 host_overrides=Make-host
5784 dep_host_xmake_file=
5785 for f in .. ${host_xmake_file}
5787 if test -f ${srcdir}/config/$f
5789 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5793 # Conditionalize the makefile for this target machine.
5794 # Make-target contains the concatenation of all host makefile fragments
5795 # [there can be more than one]. This file is built by configure.frag.
5796 target_overrides=Make-target
5798 for f in .. ${tmake_file}
5800 if test -f ${srcdir}/config/$f
5802 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5806 # If the host doesn't support symlinks, modify CC in
5807 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5808 # Otherwise, we can use "CC=$(CC)".
5810 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
5812 cc_set_by_configure="\$(CC)"
5813 quoted_cc_set_by_configure="\$(CC)"
5814 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5817 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5819 symbolic_link="cp -p"
5823 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5824 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
5825 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5829 out_object_file=`basename $out_file .c`.o
5832 for f in $tm_file; do
5835 tm_file_list="${tm_file_list} $f" ;;
5836 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
5841 for f in $host_xm_file; do
5843 auto-host.h | gansidecl.h | hwint.h )
5844 host_xm_file_list="${host_xm_file_list} $f" ;;
5845 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
5850 for f in $build_xm_file; do
5852 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
5853 build_xm_file_list="${build_xm_file_list} $f" ;;
5854 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
5858 # Define macro CROSS_COMPILE in compilation
5859 # if this is a cross-compiler.
5860 # Also use all.cross instead of all.internal
5861 # and add cross-make to Makefile.
5862 cross_overrides="/dev/null"
5863 if test x$host != x$target
5865 cross_defines="CROSS=-DCROSS_COMPILE"
5866 cross_overrides="${topdir}/cross-make"
5869 # If this is a cross-compiler that does not
5870 # have its own set of headers then define
5873 # If this is using newlib, then define inhibit_libc in
5874 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5875 # libgcc.a, but that's OK because newlib should have its own version of
5878 if test x$host != x$target && test x$with_headers = x; then
5879 inhibit_libc=-Dinhibit_libc
5881 if test x$with_newlib = xyes; then
5882 inhibit_libc=-Dinhibit_libc
5887 # When building gcc with a cross-compiler, we need to fix a few things.
5888 # This must come after cross-make as we want all.build to override
5890 build_overrides="/dev/null"
5891 if test x$build != x$host
5893 build_overrides="${topdir}/build-make"
5896 # Expand extra_headers to include complete path.
5897 # This substitutes for lots of t-* files.
5899 if test "x$extra_headers" = x
5902 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5903 for file in $extra_headers;
5905 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5909 if test x$use_collect2 = xno; then
5913 # Add a definition of USE_COLLECT2 if system wants one.
5914 # Also tell toplev.c what to do.
5915 # This substitutes for lots of t-* files.
5916 if test x$use_collect2 = x
5921 will_use_collect2="collect2"
5922 maybe_use_collect2="-DUSE_COLLECT2"
5925 # If we have gas in the build tree, make a link to it.
5926 if test -f ../gas/Makefile; then
5927 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5930 # If we have nm in the build tree, make a link to it.
5931 if test -f ../binutils/Makefile; then
5932 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
5935 # If we have ld in the build tree, make a link to it.
5936 if test -f ../ld/Makefile; then
5937 # if test x$use_collect2 = x; then
5938 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5940 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5944 # Figure out what assembler we will be using.
5945 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
5946 echo "configure:5947: checking what assembler to use" >&5
5948 gcc_cv_gas_major_version=
5949 gcc_cv_gas_minor_version=
5950 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5951 if test -x "$DEFAULT_ASSEMBLER"; then
5952 gcc_cv_as="$DEFAULT_ASSEMBLER"
5953 elif test -x "$AS"; then
5955 elif test -x as$host_exeext; then
5956 # Build using assembler in the current directory.
5957 gcc_cv_as=./as$host_exeext
5958 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
5959 # Single tree build which includes gas.
5960 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
5962 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5963 if test x$gcc_cv_gas_version != x; then
5967 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5968 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5971 if test "x$gcc_cv_as" = x -a x$host = x$target; then
5973 # Search the same directories that the installed compiler will
5974 # search. Else we may find the wrong assembler and lose. If we
5975 # do not find a suitable assembler binary, then try the user's
5978 # Also note we have to check MD_EXEC_PREFIX before checking the
5979 # user's path. Unfortunately, there is no good way to get at the
5980 # value of MD_EXEC_PREFIX here. So we do a brute force search
5981 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5982 # to be fixed as part of the make/configure rewrite too.
5984 if test "x$exec_prefix" = xNONE; then
5985 if test "x$prefix" = xNONE; then
5986 test_prefix=/usr/local
5991 test_prefix=$exec_prefix
5994 # If the loop below does not find an assembler, then use whatever
5995 # one we can find in the users's path.
5999 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6000 $test_prefix/lib/gcc-lib/$target \
6001 /usr/lib/gcc/$target/$gcc_version \
6002 /usr/lib/gcc/$target \
6003 $test_prefix/$target/bin/$target/$gcc_version \
6004 $test_prefix/$target/bin \
6009 /bsd43/usr/lib/cmplrs/cc \
6010 /usr/cross64/usr/bin \
6011 /usr/lib/cmplrs/cc \
6012 /sysv/usr/lib/cmplrs/cc \
6013 /svr4/usr/lib/cmplrs/cc \
6016 for dir in $test_dirs; do
6017 if test -f $dir/as$host_exeext; then
6018 gcc_cv_as=$dir/as$host_exeext
6023 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6024 echo "$ac_t"""newly built gas"" 1>&6
6026 echo "$ac_t""$gcc_cv_as" 1>&6
6029 # Figure out what nm we will be using.
6030 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
6031 echo "configure:6032: checking what nm to use" >&5
6032 if test -x nm$host_exeext; then
6033 gcc_cv_nm=./nm$host_exeext
6034 elif test x$host = x$target; then
6036 gcc_cv_nm=nm$host_exeext
6038 echo "$ac_t""$gcc_cv_nm" 1>&6
6040 # Figure out what assembler alignment features are present.
6041 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
6042 echo "configure:6043: checking assembler alignment features" >&5
6043 gcc_cv_as_alignment_features=none
6044 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6045 # Gas version 2.6 and later support for .balign and .p2align.
6046 # bytes to skip when using .p2align.
6047 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
6048 gcc_cv_as_alignment_features=".balign and .p2align"
6049 cat >> confdefs.h <<\EOF
6050 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6054 # Gas version 2.8 and later support specifying the maximum
6055 # bytes to skip when using .p2align.
6056 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
6057 gcc_cv_as_alignment_features=".p2align including maximum skip"
6058 cat >> confdefs.h <<\EOF
6059 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6063 elif test x$gcc_cv_as != x; then
6064 # Check if we have .balign and .p2align
6065 echo ".balign 4" > conftest.s
6066 echo ".p2align 2" >> conftest.s
6067 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6068 gcc_cv_as_alignment_features=".balign and .p2align"
6069 cat >> confdefs.h <<\EOF
6070 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6074 rm -f conftest.s conftest.o
6075 # Check if specifying the maximum bytes to skip when
6076 # using .p2align is supported.
6077 echo ".p2align 4,,7" > conftest.s
6078 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6079 gcc_cv_as_alignment_features=".p2align including maximum skip"
6080 cat >> confdefs.h <<\EOF
6081 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6085 rm -f conftest.s conftest.o
6087 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
6089 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
6090 echo "configure:6091: checking assembler subsection support" >&5
6091 gcc_cv_as_subsections=no
6092 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6093 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
6094 gcc_cv_as_subsections="working .subsection -1"
6096 elif test x$gcc_cv_as != x; then
6097 # Check if we have .subsection
6098 echo ".subsection 1" > conftest.s
6099 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6100 gcc_cv_as_subsections=".subsection"
6101 if test x$gcc_cv_nm != x; then
6102 cat > conftest.s <<EOF
6103 conftest_label1: .word 0
6105 conftest_label2: .word 0
6108 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6109 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
6110 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
6111 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
6114 gcc_cv_as_subsections="working .subsection -1"
6119 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6121 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
6122 cat >> confdefs.h <<\EOF
6123 #define HAVE_GAS_SUBSECTION_ORDERING 1
6127 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
6129 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
6130 echo "configure:6131: checking assembler weak support" >&5
6132 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6133 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
6134 gcc_cv_as_weak="yes"
6136 elif test x$gcc_cv_as != x; then
6137 # Check if we have .weak
6138 echo " .weak foobar" > conftest.s
6139 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6140 gcc_cv_as_weak="yes"
6142 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6144 if test x"$gcc_cv_as_weak" = xyes; then
6145 cat >> confdefs.h <<\EOF
6146 #define HAVE_GAS_WEAK 1
6150 echo "$ac_t""$gcc_cv_as_weak" 1>&6
6152 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
6153 echo "configure:6154: checking assembler hidden support" >&5
6155 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6156 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
6157 gcc_cv_as_hidden="yes"
6159 elif test x$gcc_cv_as != x; then
6160 # Check if we have .hidden
6161 echo " .hidden foobar" > conftest.s
6162 echo "foobar:" >> conftest.s
6163 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6164 gcc_cv_as_hidden="yes"
6166 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6168 if test x"$gcc_cv_as_hidden" = xyes; then
6169 cat >> confdefs.h <<\EOF
6170 #define HAVE_GAS_HIDDEN 1
6174 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
6178 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
6179 echo "configure:6180: checking assembler .register pseudo-op support" >&5
6180 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6184 gcc_cv_as_register_pseudo_op=unknown
6185 if test x$gcc_cv_as != x; then
6186 # Check if we have .register
6187 echo ".register %g2, #scratch" > conftest.s
6188 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6189 gcc_cv_as_register_pseudo_op=yes
6191 gcc_cv_as_register_pseudo_op=no
6193 rm -f conftest.s conftest.o
6198 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
6199 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
6200 cat >> confdefs.h <<\EOF
6201 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6206 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
6207 echo "configure:6208: checking assembler supports -relax" >&5
6208 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
6209 echo $ac_n "(cached) $ac_c" 1>&6
6212 gcc_cv_as_relax_opt=unknown
6213 if test x$gcc_cv_as != x; then
6214 # Check if gas supports -relax
6215 echo ".text" > conftest.s
6216 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
6217 gcc_cv_as_relax_opt=yes
6219 gcc_cv_as_relax_opt=no
6221 rm -f conftest.s conftest.o
6226 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
6227 if test "x$gcc_cv_as_relax_opt" = xyes; then
6228 cat >> confdefs.h <<\EOF
6229 #define HAVE_AS_RELAX_OPTION 1
6236 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
6237 echo "configure:6238: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
6238 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
6239 echo $ac_n "(cached) $ac_c" 1>&6
6242 if test -n "$gcc_cv_as"; then
6243 echo ".xword foo" > conftest.s
6244 gcc_cv_as_flags64=no
6245 for flag in "-xarch=v9" "-64 -Av9"; do
6246 if $gcc_cv_as $flag -o conftest.o conftest.s \
6247 > /dev/null 2>&1; then
6248 gcc_cv_as_flags64=$flag
6252 rm -f conftest.s conftest.o
6254 if test "$gas" = yes; then
6255 gcc_cv_as_flags64="-64 -Av9"
6257 gcc_cv_as_flags64="-xarch=v9"
6263 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
6264 if test "x$gcc_cv_as_flags64" = xno; then
6266 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6267 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6270 cat >> confdefs.h <<EOF
6271 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
6276 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
6280 if test "x$gcc_cv_as_flags64" != xno; then
6281 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6282 echo "configure:6283: checking for assembler offsetable %lo() support" >&5
6283 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6287 gcc_cv_as_offsetable_lo10=unknown
6288 if test "x$gcc_cv_as" != x; then
6289 # Check if assembler has offsetable %lo()
6290 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6291 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6292 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
6294 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
6295 > /dev/null 2>&1; then
6296 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
6297 gcc_cv_as_offsetable_lo10=no
6299 gcc_cv_as_offsetable_lo10=yes
6302 gcc_cv_as_offsetable_lo10=no
6304 rm -f conftest.s conftest.o conftest1.s conftest1.o
6309 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6310 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
6311 cat >> confdefs.h <<\EOF
6312 #define HAVE_AS_OFFSETABLE_LO10 1
6320 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6321 echo "configure:6322: checking assembler instructions" >&5
6322 gcc_cv_as_instructions=
6323 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6324 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
6325 gcc_cv_as_instructions="filds fists"
6327 elif test x$gcc_cv_as != x; then
6328 set "filds fists" "filds mem; fists mem"
6331 echo "$2" > conftest.s
6332 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6333 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
6337 rm -f conftest.s conftest.o
6339 if test x"$gcc_cv_as_instructions" != x; then
6340 cat >> confdefs.h <<EOF
6341 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6345 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6349 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6350 echo "configure:6351: checking assembler dwarf2 debug_line support" >&5
6351 gcc_cv_as_dwarf2_debug_line=no
6352 # ??? Not all targets support dwarf2 debug_line, even within a version
6353 # of gas. Moreover, we need to emit a valid instruction to trigger any
6354 # info to the output file. So, as supported targets are added to gas 2.11,
6355 # add some instruction here to (also) show we expect this might work.
6356 # ??? Once 2.11 is released, probably need to add first known working
6357 # version to the per-target configury.
6359 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-*)
6366 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
6368 if test "$gcc_cv_gas_major_version" -eq 2 \
6369 -a "$gcc_cv_gas_minor_version" -ge 11 \
6370 -o "$gcc_cv_gas_major_version" -gt 2 \
6371 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
6372 && test x"$insn" != x ; then
6373 gcc_cv_as_dwarf2_debug_line="yes"
6375 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
6376 echo ' .file 0 "conftest.s"' > conftest.s
6377 echo ' .loc 0 3 0' >> conftest.s
6378 echo " $insn" >> conftest.s
6379 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
6380 && grep debug_line conftest.o > /dev/null 2>&1 ; then
6381 gcc_cv_as_dwarf2_debug_line="yes"
6383 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6385 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
6386 cat >> confdefs.h <<\EOF
6387 #define HAVE_AS_DWARF2_DEBUG_LINE 1
6391 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
6393 # Figure out what language subdirectories are present.
6394 # Look if the user specified --enable-languages="..."; if not, use
6395 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6397 if test x"${enable_languages+set}" != xset; then
6398 if test x"${LANGUAGES+set}" = xset; then
6399 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
6401 enable_languages=all
6404 if test x"${enable_languages}" = x; then
6405 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
6409 for lang in ${srcdir}/*/config-lang.in ..
6413 # The odd quoting in the next line works around
6414 # an apparent bug in bash 1.12 on linux.
6415 ${srcdir}/[*]/config-lang.in) ;;
6417 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6418 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
6419 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
6420 if test "x$lang_alias" = x
6422 echo "$lang doesn't set \$language." 1>&2
6425 case ${build_by_default},${enable_languages}, in
6426 *,$lang_alias,*) add_this_lang=yes ;;
6427 no,*) add_this_lang=no ;;
6428 *,all,*) add_this_lang=yes ;;
6429 *) add_this_lang=no ;;
6431 if test x"${add_this_lang}" = xyes; then
6433 ${srcdir}/ada/config-lang.in)
6434 if test x$gnat = xyes ; then
6435 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6439 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6447 # Make gthr-default.h if we have a thread file.
6449 if test $thread_file != single; then
6450 rm -f gthr-default.h
6451 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
6452 gthread_flags=-DHAVE_GTHR_DEFAULT
6456 # Find out what GC implementation we want, or may, use.
6457 # Check whether --with-gc or --without-gc was given.
6458 if test "${with_gc+set}" = set; then
6465 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
6473 echo "Using $GGC for garbage collection."
6475 # Use the system's zlib library.
6477 zlibinc="-I\$(srcdir)/../zlib"
6478 # Check whether --with-system-zlib or --without-system-zlib was given.
6479 if test "${with_system_zlib+set}" = set; then
6480 withval="$with_system_zlib"
6489 # Build a new-abi (c++) system
6490 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
6491 if test "${enable_new_gxx_abi+set}" = set; then
6492 enableval="$enable_new_gxx_abi"
6495 enable_new_gxx_abi=yes
6499 if test x$enable_new_gxx_abi = xyes; then
6500 cat >> confdefs.h <<\EOF
6501 #define ENABLE_NEW_GXX_ABI 1
6504 GXX_ABI_FLAG='-fnew-abi'
6510 cat >> confdefs.h <<EOF
6511 #define ENABLE_STD_NAMESPACE $ac_esn
6517 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6518 echo "configure:6519: checking whether to enable maintainer-specific portions of Makefiles" >&5
6519 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6520 if test "${enable_maintainer_mode+set}" = set; then
6521 enableval="$enable_maintainer_mode"
6522 maintainer_mode=$enableval
6528 echo "$ac_t""$maintainer_mode" 1>&6
6530 if test "$maintainer_mode" = "yes"; then
6536 # Make empty files to contain the specs and options for each language.
6537 # Then add #include lines to for a compiler that has specs and/or options.
6542 rm -f specs.h options.h gencheck.h
6543 touch specs.h options.h gencheck.h
6544 for subdir in . $subdirs
6546 if test -f $srcdir/$subdir/lang-specs.h; then
6547 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
6548 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
6550 if test -f $srcdir/$subdir/lang-options.h; then
6551 echo "#include \"$subdir/lang-options.h\"" >>options.h
6552 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
6554 if test -f $srcdir/$subdir/$subdir-tree.def; then
6555 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
6556 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
6560 # These (without "all_") are set in each config-lang.in.
6561 # `language' must be a single word so is spelled singularly.
6567 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
6568 # List of language makefile fragments.
6573 # Add the language fragments.
6574 # Languages are added via two mechanisms. Some information must be
6575 # recorded in makefile variables, these are defined in config-lang.in.
6576 # We accumulate them and plug them into the main Makefile.
6577 # The other mechanism is a set of hooks for each of the main targets
6578 # like `clean', `install', etc.
6580 language_fragments="Make-lang"
6581 language_hooks="Make-hooks"
6583 for s in .. $subdirs
6595 . ${srcdir}/$s/config-lang.in
6596 if test "x$language" = x
6598 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
6601 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
6602 if test -f ${srcdir}/$s/Makefile.in
6603 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
6605 all_languages="$all_languages $language"
6606 if test "x$boot_language" = xyes
6608 all_boot_languages="$all_boot_languages $language"
6610 all_compilers="$all_compilers $compilers"
6611 all_stagestuff="$all_stagestuff $stagestuff"
6612 all_diff_excludes="$all_diff_excludes $diff_excludes"
6613 all_headers="$all_headers $headers"
6614 all_outputs="$all_outputs $outputs"
6615 all_lib2funcs="$all_lib2funcs $lib2funcs"
6619 # Since we can't use `::' targets, we link each language in
6620 # with a set of hooks, reached indirectly via lang.${target}.
6624 target_list="all.build all.cross start.encap rest.encap \
6626 install-normal install-common install-info install-man \
6628 mostlyclean clean distclean extraclean maintainer-clean \
6629 stage1 stage2 stage3 stage4"
6630 for t in $target_list
6633 for lang in .. $all_languages
6635 if test $lang != ".."; then
6639 echo "lang.$t: $x" >> Make-hooks
6642 # If we're not building in srcdir, create .gdbinit.
6644 if test ! -f Makefile.in; then
6645 echo "dir ." > .gdbinit
6646 echo "dir ${srcdir}" >> .gdbinit
6647 if test x$gdb_needs_out_file_path = xyes
6649 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
6651 if test "x$subdirs" != x; then
6654 echo "dir ${srcdir}/$s" >> .gdbinit
6657 echo "source ${srcdir}/.gdbinit" >> .gdbinit
6660 # Define variables host_canonical and build_canonical
6661 # because some Cygnus local changes in the Makefile depend on them.
6662 build_canonical=${build}
6663 host_canonical=${host}
6665 if test "${host}" != "${target}" ; then
6666 target_subdir=${target}/
6672 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
6673 # absolute path for gcc_tooldir based on inserting the number of up-directory
6674 # movements required to get from $(exec_prefix) to $(prefix) into the basic
6675 # $(libsubdir)/@(unlibsubdir) based path.
6676 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
6677 # make and thus we'd get different behavior depending on where we built the
6679 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
6680 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
6682 # An explanation of the sed strings:
6683 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
6684 # -e 's|/$||' match a trailing forward slash and eliminates it
6685 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
6686 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
6688 # (*) Note this pattern overwrites the first character of the string
6689 # with a forward slash if one is not already present. This is not a
6690 # problem because the exact names of the sub-directories concerned is
6691 # unimportant, just the number of them matters.
6693 # The practical upshot of these patterns is like this:
6695 # prefix exec_prefix result
6696 # ------ ----------- ------
6698 # /foo/ /foo/bar ../
6699 # /foo /foo/bar/ ../
6700 # /foo/ /foo/bar/ ../
6701 # /foo /foo/bar/ugg ../../
6704 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
6709 # Find a directory in which to install a shared libgcc.
6711 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
6712 if test "${enable_version_specific_runtime_libs+set}" = set; then
6713 enableval="$enable_version_specific_runtime_libs"
6718 # Check whether --with-slibdir or --without-slibdir was given.
6719 if test "${with_slibdir+set}" = set; then
6720 withval="$with_slibdir"
6721 slibdir="$with_slibdir"
6723 if test "${enable_version_specific_runtime_libs+set}" = set; then
6724 slibdir='$(libsubdir)'
6725 elif test "$host" != "$target"; then
6726 slibdir='$(build_tooldir)/lib'
6734 # Nothing to do for FLOAT_H, float_format already handled.
6738 # Process the language and host/target makefile fragments.
6739 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
6741 # Substitute configuration variables
6802 # Echo that links are built
6803 if test x$host = x$target
6811 if test x$host != x$build
6813 str3=" on a $build system"
6816 if test "x$str2" != x || test "x$str3" != x
6821 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
6823 if test "x$str2" != x || test "x$str3" != x
6825 echo " ${str2}${str3}." 1>&2
6828 # Truncate the target if necessary
6829 if test x$host_truncate_target != x; then
6830 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6833 # Configure the subdirectories
6834 # AC_CONFIG_SUBDIRS($subdirs)
6836 # Create the Makefile
6837 # and configure language subdirectories
6839 cat > confcache <<\EOF
6840 # This file is a shell script that caches the results of configure
6841 # tests run on this system so they can be shared between configure
6842 # scripts and configure runs. It is not useful on other systems.
6843 # If it contains results you don't want to keep, you may remove or edit it.
6845 # By default, configure uses ./config.cache as the cache file,
6846 # creating it if it does not exist already. You can give configure
6847 # the --cache-file=FILE option to use a different cache file; that is
6848 # what configure does when it calls configure scripts in
6849 # subdirectories, so they share the cache.
6850 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6851 # config.status only pays attention to the cache file if you give it the
6852 # --recheck option to rerun configure.
6855 # The following way of writing the cache mishandles newlines in values,
6856 # but we know of no workaround that is simple, portable, and efficient.
6857 # So, don't put newlines in cache variables' values.
6858 # Ultrix sh set writes to stderr and can't be redirected directly,
6859 # and sets the high bit in the cache file unless we assign to the vars.
6861 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6863 # `set' does not quote correctly, so add quotes (double-quote substitution
6864 # turns \\\\ into \\, and sed turns \\ into \).
6866 -e "s/'/'\\\\''/g" \
6867 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6870 # `set' quotes correctly as required by POSIX, so do not add quotes.
6871 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6874 if cmp -s $cache_file confcache; then
6877 if test -w $cache_file; then
6878 echo "updating cache $cache_file"
6879 cat confcache > $cache_file
6881 echo "not updating unwritable cache $cache_file"
6886 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6889 # Let make expand exec_prefix.
6890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6892 # Any assignment to VPATH causes Sun make to only execute
6893 # the first set of double-colon rules, so remove it if not needed.
6894 # If there is a colon in the path, we need to keep it.
6895 if test "x$srcdir" = x.; then
6896 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6899 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6901 DEFS=-DHAVE_CONFIG_H
6903 # Without the "./", some shells look in PATH for config.status.
6904 : ${CONFIG_STATUS=./config.status}
6906 echo creating $CONFIG_STATUS
6907 rm -f $CONFIG_STATUS
6908 cat > $CONFIG_STATUS <<EOF
6910 # Generated automatically by configure.
6911 # Run this file to recreate the current configuration.
6912 # This directory was configured as follows,
6913 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6915 # $0 $ac_configure_args
6917 # Compiler output produced by configure, useful for debugging
6918 # configure, is in ./config.log if it exists.
6920 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6923 case "\$ac_option" in
6924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6925 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6926 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6927 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6928 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6930 -help | --help | --hel | --he | --h)
6931 echo "\$ac_cs_usage"; exit 0 ;;
6932 *) echo "\$ac_cs_usage"; exit 1 ;;
6936 ac_given_srcdir=$srcdir
6938 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6940 cat >> $CONFIG_STATUS <<EOF
6942 # Protect against being on the right side of a sed subst in config.status.
6943 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6944 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6948 s%@CFLAGS@%$CFLAGS%g
6949 s%@CPPFLAGS@%$CPPFLAGS%g
6950 s%@CXXFLAGS@%$CXXFLAGS%g
6951 s%@FFLAGS@%$FFLAGS%g
6953 s%@LDFLAGS@%$LDFLAGS%g
6955 s%@exec_prefix@%$exec_prefix%g
6956 s%@prefix@%$prefix%g
6957 s%@program_transform_name@%$program_transform_name%g
6958 s%@bindir@%$bindir%g
6959 s%@sbindir@%$sbindir%g
6960 s%@libexecdir@%$libexecdir%g
6961 s%@datadir@%$datadir%g
6962 s%@sysconfdir@%$sysconfdir%g
6963 s%@sharedstatedir@%$sharedstatedir%g
6964 s%@localstatedir@%$localstatedir%g
6965 s%@libdir@%$libdir%g
6966 s%@includedir@%$includedir%g
6967 s%@oldincludedir@%$oldincludedir%g
6968 s%@infodir@%$infodir%g
6969 s%@mandir@%$mandir%g
6970 s%@enable_shared@%$enable_shared%g
6972 s%@host_alias@%$host_alias%g
6973 s%@host_cpu@%$host_cpu%g
6974 s%@host_vendor@%$host_vendor%g
6975 s%@host_os@%$host_os%g
6976 s%@target@%$target%g
6977 s%@target_alias@%$target_alias%g
6978 s%@target_cpu@%$target_cpu%g
6979 s%@target_vendor@%$target_vendor%g
6980 s%@target_os@%$target_os%g
6982 s%@build_alias@%$build_alias%g
6983 s%@build_cpu@%$build_cpu%g
6984 s%@build_vendor@%$build_vendor%g
6985 s%@build_os@%$build_os%g
6987 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
6988 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
6989 s%@strict1_warn@%$strict1_warn%g
6990 s%@warn_cflags@%$warn_cflags%g
6991 s%@stage1_cflags@%$stage1_cflags%g
6992 s%@SET_MAKE@%$SET_MAKE%g
6996 s%@RANLIB@%$RANLIB%g
6997 s%@INSTALL@%$INSTALL%g
6998 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6999 s%@INSTALL_DATA@%$INSTALL_DATA%g
7002 s%@have_mktemp_command@%$have_mktemp_command%g
7003 s%@MAKEINFO@%$MAKEINFO%g
7004 s%@BUILD_INFO@%$BUILD_INFO%g
7005 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
7008 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
7009 s%@vfprintf@%$vfprintf%g
7010 s%@doprint@%$doprint%g
7011 s%@manext@%$manext%g
7012 s%@objext@%$objext%g
7013 s%@PACKAGE@%$PACKAGE%g
7014 s%@VERSION@%$VERSION%g
7015 s%@CHECK_PO@%$CHECK_PO%g
7016 s%@ALLOCA@%$ALLOCA%g
7017 s%@USE_NLS@%$USE_NLS%g
7018 s%@MSGFMT@%$MSGFMT%g
7019 s%@GMSGFMT@%$GMSGFMT%g
7020 s%@XGETTEXT@%$XGETTEXT%g
7021 s%@GENCAT@%$GENCAT%g
7022 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7023 s%@CATALOGS@%$CATALOGS%g
7024 s%@CATOBJEXT@%$CATOBJEXT%g
7025 s%@DATADIRNAME@%$DATADIRNAME%g
7026 s%@GMOFILES@%$GMOFILES%g
7027 s%@INSTOBJEXT@%$INSTOBJEXT%g
7028 s%@INTLDEPS@%$INTLDEPS%g
7029 s%@INTLLIBS@%$INTLLIBS%g
7030 s%@INTLOBJS@%$INTLOBJS%g
7031 s%@POFILES@%$POFILES%g
7033 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7035 s%@GT_YES@%$GT_YES%g
7036 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7038 s%@inhibit_libc@%$inhibit_libc%g
7039 s%@gthread_flags@%$gthread_flags%g
7041 s%@zlibdir@%$zlibdir%g
7042 s%@zlibinc@%$zlibinc%g
7043 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
7044 s%@HAVE_LIBSTDCXX_V3@%$HAVE_LIBSTDCXX_V3%g
7046 s%@build_canonical@%$build_canonical%g
7047 s%@host_canonical@%$host_canonical%g
7048 s%@target_subdir@%$target_subdir%g
7049 s%@gcc_tooldir@%$gcc_tooldir%g
7050 s%@dollar@%$dollar%g
7051 s%@slibdir@%$slibdir%g
7052 s%@objdir@%$objdir%g
7053 s%@subdirs@%$subdirs%g
7054 s%@all_boot_languages@%$all_boot_languages%g
7055 s%@all_compilers@%$all_compilers%g
7056 s%@all_diff_excludes@%$all_diff_excludes%g
7057 s%@all_headers@%$all_headers%g
7058 s%@all_lang_makefiles@%$all_lang_makefiles%g
7059 s%@all_languages@%$all_languages%g
7060 s%@all_lib2funcs@%$all_lib2funcs%g
7061 s%@all_stagestuff@%$all_stagestuff%g
7062 s%@build_exeext@%$build_exeext%g
7063 s%@build_install_headers_dir@%$build_install_headers_dir%g
7064 s%@build_xm_file_list@%$build_xm_file_list%g
7065 s%@cc_set_by_configure@%$cc_set_by_configure%g
7066 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
7067 s%@cpp_install_dir@%$cpp_install_dir%g
7068 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
7069 s%@dep_tmake_file@%$dep_tmake_file%g
7070 s%@extra_c_flags@%$extra_c_flags%g
7071 s%@extra_headers_list@%$extra_headers_list%g
7072 s%@extra_objs@%$extra_objs%g
7073 s%@extra_parts@%$extra_parts%g
7074 s%@extra_passes@%$extra_passes%g
7075 s%@extra_programs@%$extra_programs%g
7076 s%@float_h_file@%$float_h_file%g
7077 s%@gcc_config_arguments@%$gcc_config_arguments%g
7078 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
7079 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
7080 s%@gcc_version@%$gcc_version%g
7081 s%@gcc_version_full@%$gcc_version_full%g
7082 s%@gcc_version_trigger@%$gcc_version_trigger%g
7083 s%@host_exeext@%$host_exeext%g
7084 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
7085 s%@host_xm_file_list@%$host_xm_file_list%g
7086 s%@install@%$install%g
7087 s%@lang_options_files@%$lang_options_files%g
7088 s%@lang_specs_files@%$lang_specs_files%g
7089 s%@lang_tree_files@%$lang_tree_files%g
7090 s%@local_prefix@%$local_prefix%g
7091 s%@maybe_use_collect2@%$maybe_use_collect2%g
7092 s%@md_file@%$md_file%g
7093 s%@objc_boehm_gc@%$objc_boehm_gc%g
7094 s%@out_file@%$out_file%g
7095 s%@out_object_file@%$out_object_file%g
7096 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
7097 s%@symbolic_link@%$symbolic_link%g
7098 s%@thread_file@%$thread_file%g
7099 s%@tm_file_list@%$tm_file_list%g
7100 s%@will_use_collect2@%$will_use_collect2%g
7101 s%@c_target_objs@%$c_target_objs%g
7102 s%@cxx_target_objs@%$cxx_target_objs%g
7103 /@target_overrides@/r $target_overrides
7104 s%@target_overrides@%%g
7105 /@host_overrides@/r $host_overrides
7106 s%@host_overrides@%%g
7107 s%@cross_defines@%$cross_defines%g
7108 /@cross_overrides@/r $cross_overrides
7109 s%@cross_overrides@%%g
7110 /@build_overrides@/r $build_overrides
7111 s%@build_overrides@%%g
7112 /@language_fragments@/r $language_fragments
7113 s%@language_fragments@%%g
7114 /@language_hooks@/r $language_hooks
7115 s%@language_hooks@%%g
7120 cat >> $CONFIG_STATUS <<\EOF
7122 # Split the substitutions into bite-sized pieces for seds with
7123 # small command number limits, like on Digital OSF/1 and HP-UX.
7124 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7125 ac_file=1 # Number of current file.
7126 ac_beg=1 # First line for current file.
7127 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7130 while $ac_more_lines; do
7131 if test $ac_beg -gt 1; then
7132 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7134 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7136 if test ! -s conftest.s$ac_file; then
7138 rm -f conftest.s$ac_file
7140 if test -z "$ac_sed_cmds"; then
7141 ac_sed_cmds="sed -f conftest.s$ac_file"
7143 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7145 ac_file=`expr $ac_file + 1`
7147 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7150 if test -z "$ac_sed_cmds"; then
7155 cat >> $CONFIG_STATUS <<EOF
7157 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
7159 cat >> $CONFIG_STATUS <<\EOF
7160 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7163 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7164 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7165 *) ac_file_in="${ac_file}.in" ;;
7168 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7170 # Remove last slash and all that follows it. Not all systems have dirname.
7171 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7172 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7173 # The file is in a subdirectory.
7174 test ! -d "$ac_dir" && mkdir "$ac_dir"
7175 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7176 # A "../" for each directory in $ac_dir_suffix.
7177 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7179 ac_dir_suffix= ac_dots=
7182 case "$ac_given_srcdir" in
7184 if test -z "$ac_dots"; then top_srcdir=.
7185 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7186 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7188 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7189 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7193 echo creating "$ac_file"
7195 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7197 *Makefile*) ac_comsub="1i\\
7198 # $configure_input" ;;
7202 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7204 s%@configure_input@%$configure_input%g
7205 s%@srcdir@%$srcdir%g
7206 s%@top_srcdir@%$top_srcdir%g
7207 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7211 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7212 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7214 # ac_d sets the value in "#define NAME VALUE" lines.
7215 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7216 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7219 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7220 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7221 ac_uB='\([ ]\)%\1#\2define\3'
7224 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7225 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7226 ac_eB='$%\1#\2define\3'
7230 if test "${CONFIG_HEADERS+set}" != set; then
7232 cat >> $CONFIG_STATUS <<EOF
7233 CONFIG_HEADERS="auto-host.h:config.in"
7235 cat >> $CONFIG_STATUS <<\EOF
7237 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7240 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7241 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7242 *) ac_file_in="${ac_file}.in" ;;
7245 echo creating $ac_file
7247 rm -f conftest.frag conftest.in conftest.out
7248 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7249 cat $ac_file_inputs > conftest.in
7253 # Transform confdefs.h into a sed script conftest.vals that substitutes
7254 # the proper values into config.h.in to produce config.h. And first:
7255 # Protect against being on the right side of a sed subst in config.status.
7256 # Protect against being in an unquoted here document in config.status.
7258 cat > conftest.hdr <<\EOF
7261 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7265 sed -n -f conftest.hdr confdefs.h > conftest.vals
7268 # This sed command replaces #undef with comments. This is necessary, for
7269 # example, in the case of _POSIX_SOURCE, which is predefined and required
7270 # on some systems where configure will not decide to define it.
7271 cat >> conftest.vals <<\EOF
7272 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7275 # Break up conftest.vals because some shells have a limit on
7276 # the size of here documents, and old seds have small limits too.
7281 ac_lines=`grep -c . conftest.vals`
7282 # grep -c gives empty output for an empty file on some AIX systems.
7283 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7284 # Write a limited-size here document to conftest.frag.
7285 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7286 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7288 sed -f conftest.frag conftest.in > conftest.out
7290 mv conftest.out conftest.in
7292 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7294 mv conftest.tail conftest.vals
7298 cat >> $CONFIG_STATUS <<\EOF
7299 rm -f conftest.frag conftest.h
7300 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7301 cat conftest.in >> conftest.h
7303 if cmp -s $ac_file conftest.h 2>/dev/null; then
7304 echo "$ac_file is unchanged"
7307 # Remove last slash and all that follows it. Not all systems have dirname.
7308 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7309 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7310 # The file is in a subdirectory.
7311 test ! -d "$ac_dir" && mkdir "$ac_dir"
7314 mv conftest.h $ac_file
7320 cat >> $CONFIG_STATUS <<EOF
7321 ac_sources="$nls_cv_header_libgt"
7322 ac_dests="$nls_cv_header_intl"
7325 cat >> $CONFIG_STATUS <<\EOF
7326 srcdir=$ac_given_srcdir
7327 while test -n "$ac_sources"; do
7328 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7329 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7331 echo "linking $srcdir/$ac_source to $ac_dest"
7333 if test ! -r $srcdir/$ac_source; then
7334 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7338 # Make relative symlinks.
7339 # Remove last slash and all that follows it. Not all systems have dirname.
7340 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7341 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7342 # The dest file is in a subdirectory.
7343 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7344 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7345 # A "../" for each directory in $ac_dest_dir_suffix.
7346 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7348 ac_dest_dir_suffix= ac_dots=
7352 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7353 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7356 # Make a symlink if possible; otherwise try a hard link.
7357 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7358 ln $srcdir/$ac_source $ac_dest; then :
7360 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7364 cat >> $CONFIG_STATUS <<EOF
7370 target_alias='${target_alias}'
7372 subdirs='${subdirs}'
7373 symbolic_link='${symbolic_link}'
7374 program_transform_set='${program_transform_set}'
7375 program_transform_name='${program_transform_name}'
7376 dep_host_xmake_file='${dep_host_xmake_file}'
7377 host_xmake_file='${host_xmake_file}'
7378 dep_tmake_file='${dep_tmake_file}'
7379 tmake_file='${tmake_file}'
7380 thread_file='${thread_file}'
7381 gcc_config_arguments='${gcc_config_arguments}'
7382 gcc_version='${gcc_version}'
7383 gcc_version_full='${gcc_version_full}'
7384 gcc_version_trigger='${gcc_version_trigger}'
7385 local_prefix='${local_prefix}'
7386 build_install_headers_dir='${build_install_headers_dir}'
7387 build_exeext='${build_exeext}'
7388 host_exeext='${host_exeext}'
7389 out_file='${out_file}'
7390 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7391 SET_MAKE='${SET_MAKE}'
7392 target_list='${target_list}'
7393 target_overrides='${target_overrides}'
7394 host_overrides='${host_overrides}'
7395 cross_defines='${cross_defines}'
7396 cross_overrides='${cross_overrides}'
7397 build_overrides='${build_overrides}'
7398 cpp_install_dir='${cpp_install_dir}'
7401 cat >> $CONFIG_STATUS <<\EOF
7402 case "$CONFIG_FILES" in *po/Makefile.in*)
7403 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7406 case x$CONFIG_HEADERS in
7407 xauto-host.h:config.in)
7410 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
7411 # bootstrapping and the installation procedure can still use
7412 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
7413 # FLAGS_TO_PASS has been modified to solve the problem there.
7414 # This is virtually a duplicate of what happens in configure.lang; we do
7415 # an extra check to make sure this only happens if ln -s can be used.
7416 if test "$symbolic_link" = "ln -s"; then
7417 for d in .. ${subdirs} ; do
7418 if test $d != ..; then
7421 for t in stage1 stage2 stage3 stage4 include
7424 $symbolic_link ../$t $t 2>/dev/null
7430 # Avoid having to add intl to our include paths.
7431 if test -f intl/libintl.h; then
7432 echo creating libintl.h
7433 echo '#include "intl/libintl.h"' >libintl.h
7438 chmod +x $CONFIG_STATUS
7439 rm -fr confdefs* $ac_clean_files
7440 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1