3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,gc,gcac; default
40 --disable-cpp don't provide a user-visible C preprocessor."
42 --with-cpp-install-dir=DIR
43 install the user visible C preprocessor in DIR
44 (relative to PREFIX) as well as PREFIX/bin."
46 --enable-c-mbchar Enable multibyte characters for C and C++."
48 --enable-threads enable thread usage for target GCC.
49 --enable-threads=LIB use LIB thread package for target GCC."
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime."
54 --with-dwarf2 force the default debug format to be DWARF2."
56 --disable-shared don't provide a shared libgcc."
58 --enable-nls use Native Language Support (default)"
60 --disable-nls do not use Native Language Support"
62 --with-included-gettext use the GNU gettext library included here"
64 --with-catgets use catgets functions if available"
66 --disable-win32-registry
67 Disable lookup of installation paths in the
68 Registry on Windows hosts.
69 --enable-win32-registry Enable registry lookup (default).
70 --enable-win32-registry=KEY
71 Use KEY instead of GCC version as the last portion
74 --with-gc={simple,page} Choose the garbage collection mechanism to use
77 --with-system-zlib use installed libz"
79 --enable-maintainer-mode enable make rules and dependencies not useful
80 (and sometimes confusing) to the casual installer"
82 --enable-sjlj-exceptions arrange to use setjmp/longjmp exception handling."
84 --enable-version-specific-runtime-libs Specify that runtime libraries shou
85 ld be installed in a compiler-specific directory "
87 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
89 # Initialize some variables set by options.
90 # The variables have the same names as the options, with
91 # dashes changed to underlines.
93 cache_file=./config.cache
102 program_transform_name=s,x,x,
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
143 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
147 # Accept the important Cygnus configure options, so we can diagnose typos.
151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154 bindir="$ac_optarg" ;;
156 -build | --build | --buil | --bui | --bu)
158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159 build="$ac_optarg" ;;
161 -cache-file | --cache-file | --cache-fil | --cache-fi \
162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163 ac_prev=cache_file ;;
164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166 cache_file="$ac_optarg" ;;
168 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
170 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
172 datadir="$ac_optarg" ;;
174 -disable-* | --disable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* | --enable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198 | --exec | --exe | --ex)
199 ac_prev=exec_prefix ;;
200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202 | --exec=* | --exe=* | --ex=*)
203 exec_prefix="$ac_optarg" ;;
205 -gas | --gas | --ga | --g)
206 # Obsolete; use --with-gas.
209 -help | --help | --hel | --he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --site-file=FILE use FILE as the site file
221 --version print the version of autoconf that created configure
222 Directory and file names:
223 --prefix=PREFIX install architecture-independent files in PREFIX
225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 --bindir=DIR user executables in DIR [EPREFIX/bin]
228 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
229 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
230 --datadir=DIR read-only architecture-independent data in DIR
232 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
233 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
236 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
237 --includedir=DIR C header files in DIR [PREFIX/include]
238 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
239 --infodir=DIR info documentation in DIR [PREFIX/info]
240 --mandir=DIR man documentation in DIR [PREFIX/man]
241 --srcdir=DIR find the sources in DIR [configure dir or ..]
242 --program-prefix=PREFIX prepend PREFIX to installed program names
243 --program-suffix=SUFFIX append SUFFIX to installed program names
244 --program-transform-name=PROGRAM
245 run sed PROGRAM on installed program names
249 --build=BUILD configure for building on BUILD [BUILD=HOST]
250 --host=HOST configure for HOST [guessed]
251 --target=TARGET configure for TARGET [TARGET=HOST]
252 Features and packages:
253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
255 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
256 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
257 --x-includes=DIR X include files are in DIR
258 --x-libraries=DIR X library files are in DIR
260 if test -n "$ac_help"; then
261 echo "--enable and --with options recognized:$ac_help"
265 -host | --host | --hos | --ho)
267 -host=* | --host=* | --hos=* | --ho=*)
270 -includedir | --includedir | --includedi | --included | --include \
271 | --includ | --inclu | --incl | --inc)
272 ac_prev=includedir ;;
273 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
274 | --includ=* | --inclu=* | --incl=* | --inc=*)
275 includedir="$ac_optarg" ;;
277 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
280 infodir="$ac_optarg" ;;
282 -libdir | --libdir | --libdi | --libd)
284 -libdir=* | --libdir=* | --libdi=* | --libd=*)
285 libdir="$ac_optarg" ;;
287 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
288 | --libexe | --libex | --libe)
289 ac_prev=libexecdir ;;
290 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
291 | --libexe=* | --libex=* | --libe=*)
292 libexecdir="$ac_optarg" ;;
294 -localstatedir | --localstatedir | --localstatedi | --localstated \
295 | --localstate | --localstat | --localsta | --localst \
296 | --locals | --local | --loca | --loc | --lo)
297 ac_prev=localstatedir ;;
298 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
299 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
300 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
301 localstatedir="$ac_optarg" ;;
303 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
306 mandir="$ac_optarg" ;;
309 # Obsolete; use --without-fp.
312 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
320 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
321 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
322 | --oldin | --oldi | --old | --ol | --o)
323 ac_prev=oldincludedir ;;
324 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
325 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
326 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
327 oldincludedir="$ac_optarg" ;;
329 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
332 prefix="$ac_optarg" ;;
334 -program-prefix | --program-prefix | --program-prefi | --program-pref \
335 | --program-pre | --program-pr | --program-p)
336 ac_prev=program_prefix ;;
337 -program-prefix=* | --program-prefix=* | --program-prefi=* \
338 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
339 program_prefix="$ac_optarg" ;;
341 -program-suffix | --program-suffix | --program-suffi | --program-suff \
342 | --program-suf | --program-su | --program-s)
343 ac_prev=program_suffix ;;
344 -program-suffix=* | --program-suffix=* | --program-suffi=* \
345 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
346 program_suffix="$ac_optarg" ;;
348 -program-transform-name | --program-transform-name \
349 | --program-transform-nam | --program-transform-na \
350 | --program-transform-n | --program-transform- \
351 | --program-transform | --program-transfor \
352 | --program-transfo | --program-transf \
353 | --program-trans | --program-tran \
354 | --progr-tra | --program-tr | --program-t)
355 ac_prev=program_transform_name ;;
356 -program-transform-name=* | --program-transform-name=* \
357 | --program-transform-nam=* | --program-transform-na=* \
358 | --program-transform-n=* | --program-transform-=* \
359 | --program-transform=* | --program-transfor=* \
360 | --program-transfo=* | --program-transf=* \
361 | --program-trans=* | --program-tran=* \
362 | --progr-tra=* | --program-tr=* | --program-t=*)
363 program_transform_name="$ac_optarg" ;;
365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
366 | -silent | --silent | --silen | --sile | --sil)
369 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 sbindir="$ac_optarg" ;;
375 -sharedstatedir | --sharedstatedir | --sharedstatedi \
376 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
377 | --sharedst | --shareds | --shared | --share | --shar \
379 ac_prev=sharedstatedir ;;
380 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
381 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
382 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 sharedstatedir="$ac_optarg" ;;
386 -site | --site | --sit)
388 -site=* | --site=* | --sit=*)
391 -site-file | --site-file | --site-fil | --site-fi | --site-f)
393 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
394 sitefile="$ac_optarg" ;;
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev=sysconfdir ;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.13"
421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev=x_includes ;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev=x_libraries ;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file=tree.c
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$sitefile"; then
562 if test -z "$CONFIG_SITE"; then
563 if test "x$prefix" != xNONE; then
564 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
566 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 CONFIG_SITE="$sitefile"
572 for ac_site_file in $CONFIG_SITE; do
573 if test -r "$ac_site_file"; then
574 echo "loading site script $ac_site_file"
579 if test -r "$cache_file"; then
580 echo "loading cache $cache_file"
583 echo "creating cache $cache_file"
588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
589 ac_cpp='$CPP $CPPFLAGS'
590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
592 cross_compiling=$ac_cv_prog_cc_cross
596 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
597 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
598 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
605 ac_n= ac_c='\c' ac_t=
613 symbolic_link='ln -s'
616 # Check for bogus environment variables.
617 # Test if LIBRARY_PATH contains the notation for the current directory
618 # since this would lead to problems installing/building glibc.
619 # LIBRARY_PATH contains the current directory if one of the following
621 # - one of the terminals (":" and ";") is the first or last sign
622 # - two terminals occur directly after each other
623 # - the path contains an element with a dot in it
624 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
625 echo "configure:626: checking LIBRARY_PATH variable" >&5
626 case ${LIBRARY_PATH} in
627 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
628 library_path_setting="contains current directory"
631 library_path_setting="ok"
634 echo "$ac_t""$library_path_setting" 1>&6
635 if test "$library_path_setting" != "ok"; then
636 { echo "configure: error:
637 *** LIBRARY_PATH shouldn't contain the current directory when
638 *** building gcc. Please change the environment variable
639 *** and run configure again." 1>&2; exit 1; }
642 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
643 # since this would lead to problems installing/building glibc.
644 # GCC_EXEC_PREFIX contains the current directory if one of the following
646 # - one of the terminals (":" and ";") is the first or last sign
647 # - two terminals occur directly after each other
648 # - the path contains an element with a dot in it
649 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
650 echo "configure:651: checking GCC_EXEC_PREFIX variable" >&5
651 case ${GCC_EXEC_PREFIX} in
652 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
653 gcc_exec_prefix_setting="contains current directory"
656 gcc_exec_prefix_setting="ok"
659 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
660 if test "$gcc_exec_prefix_setting" != "ok"; then
661 { echo "configure: error:
662 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
663 *** building gcc. Please change the environment variable
664 *** and run configure again." 1>&2; exit 1; }
667 # Check for additional parameters
670 # Check whether --with-gnu-ld or --without-gnu-ld was given.
671 if test "${with_gnu_ld+set}" = set; then
672 withval="$with_gnu_ld"
673 gnu_ld_flag="$with_gnu_ld"
679 # With pre-defined ld
680 # Check whether --with-ld or --without-ld was given.
681 if test "${with_ld+set}" = set; then
683 DEFAULT_LINKER="$with_ld"
686 if test x"${DEFAULT_LINKER+set}" = x"set"; then
687 if test ! -x "$DEFAULT_LINKER"; then
688 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
689 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
692 cat >> confdefs.h <<EOF
693 #define DEFAULT_LINKER "$DEFAULT_LINKER"
699 # Check whether --with-gnu-as or --without-gnu-as was given.
700 if test "${with_gnu_as+set}" = set; then
701 withval="$with_gnu_as"
702 gas_flag="$with_gnu_as"
708 # Check whether --with-as or --without-as was given.
709 if test "${with_as+set}" = set; then
711 DEFAULT_ASSEMBLER="$with_as"
714 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
715 if test ! -x "$DEFAULT_ASSEMBLER"; then
716 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
717 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
720 cat >> confdefs.h <<EOF
721 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
727 # Check whether --with-stabs or --without-stabs was given.
728 if test "${with_stabs+set}" = set; then
729 withval="$with_stabs"
737 # Check whether --with-elf or --without-elf was given.
738 if test "${with_elf+set}" = set; then
746 # Specify the local prefix
748 # Check whether --with-local-prefix or --without-local-prefix was given.
749 if test "${with_local_prefix+set}" = set; then
750 withval="$with_local_prefix"
752 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
754 *) local_prefix=$with_local_prefix ;;
759 # Default local prefix if it is empty
760 if test x$local_prefix = x; then
761 local_prefix=/usr/local
764 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
765 # passed in by the toplevel make and thus we'd get different behavior
766 # depending on where we built the sources.
768 # Specify the g++ header file directory
769 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
770 if test "${with_gxx_include_dir+set}" = set; then
771 withval="$with_gxx_include_dir"
773 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
775 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
780 if test x${gcc_gxx_include_dir} = x; then
781 if test x${enable_version_specific_runtime_libs} = xyes; then
782 gcc_gxx_include_dir='${libsubdir}/include/g++'
784 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
785 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
789 # Determine whether or not multilibs are enabled.
790 # Check whether --enable-multilib or --disable-multilib was given.
791 if test "${enable_multilib+set}" = set; then
792 enableval="$enable_multilib"
800 # Enable expensive internal checks
801 # Check whether --enable-checking or --disable-checking was given.
802 if test "${enable_checking+set}" = set; then
803 enableval="$enable_checking"
808 ac_gc_always_collect=
809 case "${enableval}" in
810 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
812 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
813 set fnord $enableval; shift
818 misc) ac_checking=1 ;;
819 tree) ac_tree_checking=1 ;;
820 rtl) ac_rtl_checking=1 ;;
821 gc) ac_gc_checking=1 ;;
822 gcac) ac_gc_always_collect=1 ;;
823 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
830 # Enable some checks by default for development versions of GCC
831 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
834 if test x$ac_checking != x ; then
835 cat >> confdefs.h <<\EOF
836 #define ENABLE_CHECKING 1
840 if test x$ac_tree_checking != x ; then
841 cat >> confdefs.h <<\EOF
842 #define ENABLE_TREE_CHECKING 1
846 if test x$ac_rtl_checking != x ; then
847 cat >> confdefs.h <<\EOF
848 #define ENABLE_RTL_CHECKING 1
852 if test x$ac_gc_checking != x ; then
853 cat >> confdefs.h <<\EOF
854 #define ENABLE_GC_CHECKING 1
858 if test x$ac_gc_always_collect != x ; then
859 cat >> confdefs.h <<\EOF
860 #define ENABLE_GC_ALWAYS_COLLECT 1
866 # Check whether --enable-cpp or --disable-cpp was given.
867 if test "${enable_cpp+set}" = set; then
868 enableval="$enable_cpp"
875 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
876 if test "${with_cpp_install_dir+set}" = set; then
877 withval="$with_cpp_install_dir"
878 if test x$withval = xyes; then
879 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
880 elif test x$withval != xno; then
881 cpp_install_dir=$withval
886 # Enable Multibyte Characters for C/C++
887 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
888 if test "${enable_c_mbchar+set}" = set; then
889 enableval="$enable_c_mbchar"
890 if test x$enable_c_mbchar != xno; then
891 cat >> confdefs.h <<\EOF
892 #define MULTIBYTE_CHARS 1
900 # Pass with no value to take the default
901 # Pass with a value to specify a thread package
902 # Check whether --enable-threads or --disable-threads was given.
903 if test "${enable_threads+set}" = set; then
904 enableval="$enable_threads"
911 enable_threads_flag=$enable_threads
912 # Check if a valid thread package
913 case x${enable_threads_flag} in
916 target_thread_file='single'
920 target_thread_file=''
922 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
923 xsolaris | xwin32 | xdce | xvxworks | xaix)
924 target_thread_file=$enable_threads_flag
927 echo "$enable_threads is an unknown thread package" 1>&2
932 # Check whether --enable-objc-gc or --disable-objc-gc was given.
933 if test "${enable_objc_gc+set}" = set; then
934 enableval="$enable_objc_gc"
935 if test x$enable_objc_gc = xno; then
945 # Check whether --with-dwarf2 or --without-dwarf2 was given.
946 if test "${with_dwarf2+set}" = set; then
947 withval="$with_dwarf2"
948 dwarf2="$with_dwarf2"
954 # Check whether --enable-shared or --disable-shared was given.
955 if test "${enable_shared+set}" = set; then
956 enableval="$enable_shared"
958 case $enable_shared in
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
963 for pkg in $enableval; do
964 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
978 # Determine the host, build, and target systems
980 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
981 if test -f $ac_dir/install-sh; then
983 ac_install_sh="$ac_aux_dir/install-sh -c"
985 elif test -f $ac_dir/install.sh; then
987 ac_install_sh="$ac_aux_dir/install.sh -c"
991 if test -z "$ac_aux_dir"; then
992 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
994 ac_config_guess=$ac_aux_dir/config.guess
995 ac_config_sub=$ac_aux_dir/config.sub
996 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
999 # Do some error checking and defaulting for the host and target type.
1001 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1004 # 1. You are not allowed to specify --host, --target, and nonopt at the
1006 # 2. Host defaults to nonopt.
1007 # 3. If nonopt is not specified, then host defaults to the current host,
1008 # as determined by config.guess.
1009 # 4. Target and build default to nonopt.
1010 # 5. If nonopt is not specified, then target and build default to host.
1012 # The aliases save the names the user supplied, while $host etc.
1013 # will get canonicalized.
1014 case $host---$target---$nonopt in
1015 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1016 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1020 # Make sure we can run config.sub.
1021 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1022 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1025 echo $ac_n "checking host system type""... $ac_c" 1>&6
1026 echo "configure:1027: checking host system type" >&5
1029 case "$host_alias" in
1033 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1034 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1036 *) host_alias=$nonopt ;;
1040 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1041 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1042 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1043 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1044 echo "$ac_t""$host" 1>&6
1046 echo $ac_n "checking target system type""... $ac_c" 1>&6
1047 echo "configure:1048: checking target system type" >&5
1049 target_alias=$target
1050 case "$target_alias" in
1053 NONE) target_alias=$host_alias ;;
1054 *) target_alias=$nonopt ;;
1058 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1059 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062 echo "$ac_t""$target" 1>&6
1064 echo $ac_n "checking build system type""... $ac_c" 1>&6
1065 echo "configure:1066: checking build system type" >&5
1068 case "$build_alias" in
1071 NONE) build_alias=$host_alias ;;
1072 *) build_alias=$nonopt ;;
1076 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1077 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1078 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1079 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1080 echo "$ac_t""$build" 1>&6
1082 test "$host_alias" != "$target_alias" &&
1083 test "$program_prefix$program_suffix$program_transform_name" = \
1085 program_prefix=${target_alias}-
1088 # Find the native compiler
1089 # Extract the first word of "gcc", so it can be a program name with args.
1090 set dummy gcc; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 if test -n "$CC"; then
1097 ac_cv_prog_CC="$CC" # Let the user override the test.
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1112 if test -n "$CC"; then
1113 echo "$ac_t""$CC" 1>&6
1115 echo "$ac_t""no" 1>&6
1118 if test -z "$CC"; then
1119 # Extract the first word of "cc", so it can be a program name with args.
1120 set dummy cc; ac_word=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$CC"; then
1127 ac_cv_prog_CC="$CC" # Let the user override the test.
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1132 for ac_dir in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir=.
1134 if test -f $ac_dir/$ac_word; then
1135 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1136 ac_prog_rejected=yes
1144 if test $ac_prog_rejected = yes; then
1145 # We found a bogon in the path, so make sure we never use it.
1146 set dummy $ac_cv_prog_CC
1148 if test $# -gt 0; then
1149 # We chose a different compiler from the bogus one.
1150 # However, it has the same basename, so the bogon will be chosen
1151 # first if we set CC to just the basename; use the full file name.
1153 set dummy "$ac_dir/$ac_word" "$@"
1161 if test -n "$CC"; then
1162 echo "$ac_t""$CC" 1>&6
1164 echo "$ac_t""no" 1>&6
1167 if test -z "$CC"; then
1168 case "`uname -s`" in
1170 # Extract the first word of "cl", so it can be a program name with args.
1171 set dummy cl; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 if test -n "$CC"; then
1178 ac_cv_prog_CC="$CC" # Let the user override the test.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1193 if test -n "$CC"; then
1194 echo "$ac_t""$CC" 1>&6
1196 echo "$ac_t""no" 1>&6
1201 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1204 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1208 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1209 ac_cpp='$CPP $CPPFLAGS'
1210 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1211 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1212 cross_compiling=$ac_cv_prog_cc_cross
1214 cat > conftest.$ac_ext << EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1221 if { (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1222 ac_cv_prog_cc_works=yes
1223 # If we can't run a trivial program, we are probably using a cross compiler.
1224 if (./conftest; exit) 2>/dev/null; then
1225 ac_cv_prog_cc_cross=no
1227 ac_cv_prog_cc_cross=yes
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1232 ac_cv_prog_cc_works=no
1236 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1239 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1240 cross_compiling=$ac_cv_prog_cc_cross
1242 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1243 if test $ac_cv_prog_cc_works = no; then
1244 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1246 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1247 echo "configure:1248: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1248 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1249 cross_compiling=$ac_cv_prog_cc_cross
1251 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether we are using GNU C" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 cat > conftest.c <<EOF
1261 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1268 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1270 if test $ac_cv_prog_gcc = yes; then
1276 ac_test_CFLAGS="${CFLAGS+set}"
1277 ac_save_CFLAGS="$CFLAGS"
1279 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1280 echo "configure:1281: checking whether ${CC-cc} accepts -g" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 echo 'void f(){}' > conftest.c
1285 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1294 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1295 if test "$ac_test_CFLAGS" = set; then
1296 CFLAGS="$ac_save_CFLAGS"
1297 elif test $ac_cv_prog_cc_g = yes; then
1298 if test "$GCC" = yes; then
1304 if test "$GCC" = yes; then
1311 if test "x$CC" != xcc; then
1312 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether $CC and cc understand -c and -o together" >&5
1315 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1316 echo "configure:1317: checking whether cc understands -c and -o together" >&5
1318 set dummy $CC; ac_cc="`echo $2 |
1319 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1320 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 echo 'foo(){}' > conftest.c
1324 # Make sure it works both with $CC and with simple cc.
1325 # We do the test twice because some compilers refuse to overwrite an
1326 # existing .o file with -o, though they will create one.
1327 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1328 if { (eval echo configure:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1329 test -f conftest.o && { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1331 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1332 if test "x$CC" != xcc; then
1333 # Test first that cc exists at all.
1334 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1335 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1336 if { (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1337 test -f conftest.o && { (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1342 # cc exists but doesn't like -o.
1343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1348 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1353 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1356 echo "$ac_t""no" 1>&6
1357 cat >> confdefs.h <<\EOF
1358 #define NO_MINUS_C_MINUS_O 1
1363 # autoconf is lame and doesn't give us any substitution variable for this.
1364 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1365 NO_MINUS_C_MINUS_O=yes
1367 OUTPUT_OPTION='-o $@'
1372 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1373 echo "configure:1374: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1374 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 save_CFLAGS="$CFLAGS"
1378 CFLAGS="-Wno-long-long"
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1387 if { (eval echo configure:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1389 ac_cv_prog_cc_no_long_long=yes
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1394 ac_cv_prog_cc_no_long_long=no
1397 CFLAGS="$save_CFLAGS"
1400 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1402 if test $ac_cv_prog_cc_no_long_long = yes; then
1403 strict1_warn="-pedantic -Wno-long-long"
1407 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1408 echo "configure:1409: checking how to run the C preprocessor" >&5
1409 # On Suns, sometimes $CPP names a directory.
1410 if test -n "$CPP" && test -d "$CPP"; then
1413 if test -z "$CPP"; then
1414 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 # This must be in double quotes, not single quotes, because CPP may get
1418 # substituted into the Makefile and "${CC-cc}" will confuse make.
1420 # On the NeXT, cc -E runs the code through the compiler's parser,
1421 # not just through cpp.
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1429 { (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1431 if test -z "$ac_err"; then
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1438 CPP="${CC-cc} -E -traditional-cpp"
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1446 { (eval echo configure:1447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1448 if test -z "$ac_err"; then
1452 echo "configure: failed program was:" >&5
1453 cat conftest.$ac_ext >&5
1455 CPP="${CC-cc} -nologo -E"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1463 { (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1465 if test -z "$ac_err"; then
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1479 ac_cv_prog_CPP="$CPP"
1481 CPP="$ac_cv_prog_CPP"
1483 ac_cv_prog_CPP="$CPP"
1485 echo "$ac_t""$CPP" 1>&6
1487 echo $ac_n "checking for inline""... $ac_c" 1>&6
1488 echo "configure:1489: checking for inline" >&5
1489 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1493 for ac_kw in inline __inline__ __inline; do
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1502 if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1504 ac_cv_c_inline=$ac_kw; break
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1514 echo "$ac_t""$ac_cv_c_inline" 1>&6
1515 case "$ac_cv_c_inline" in
1517 no) cat >> confdefs.h <<\EOF
1521 *) cat >> confdefs.h <<EOF
1522 #define inline $ac_cv_c_inline
1527 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1528 echo "configure:1529: checking for volatile" >&5
1529 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1540 if { (eval echo configure:1541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1542 gcc_cv_c_volatile=yes
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1547 gcc_cv_c_volatile=no
1552 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1553 if test $gcc_cv_c_volatile = yes ; then
1554 cat >> confdefs.h <<\EOF
1555 #define HAVE_VOLATILE 1
1561 echo $ac_n "checking for long double""... $ac_c" 1>&6
1562 echo "configure:1563: checking for long double" >&5
1563 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 if test "$GCC" = yes; then
1567 gcc_cv_c_long_double=yes
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1574 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1575 long double foo = 0.0;
1576 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1577 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1580 if { (eval echo configure:1581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1582 gcc_cv_c_long_double=yes
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1587 gcc_cv_c_long_double=no
1593 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1594 if test $gcc_cv_c_long_double = yes; then
1595 cat >> confdefs.h <<\EOF
1596 #define HAVE_LONG_DOUBLE 1
1601 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1602 echo "configure:1603: checking for long long int" >&5
1603 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1614 if { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1616 ac_cv_c_long_long=yes
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 ac_cv_c_long_long=no
1626 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1627 if test $ac_cv_c_long_long = yes; then
1628 cat >> confdefs.h <<\EOF
1629 #define HAVE_LONG_LONG 1
1633 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1634 echo "configure:1635: checking for __int64" >&5
1635 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1646 if { (eval echo configure:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1658 echo "$ac_t""$ac_cv_c___int64" 1>&6
1659 if test $ac_cv_c___int64 = yes; then
1660 cat >> confdefs.h <<\EOF
1661 #define HAVE___INT64 1
1667 # sizeof(char) is 1 by definition.
1668 echo $ac_n "checking size of short""... $ac_c" 1>&6
1669 echo "configure:1670: checking size of short" >&5
1670 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 #include "confdefs.h"
1678 #include <sys/types.h>
1682 switch (0) case 0: case (sizeof (short) == $ac_size):;
1685 if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1687 ac_cv_sizeof_short=$ac_size
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1693 if test x$ac_cv_sizeof_short != x ; then break; fi
1698 if test x$ac_cv_sizeof_short = x ; then
1699 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1701 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1702 cat >> confdefs.h <<EOF
1703 #define SIZEOF_SHORT $ac_cv_sizeof_short
1707 echo $ac_n "checking size of int""... $ac_c" 1>&6
1708 echo "configure:1709: checking size of int" >&5
1709 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1713 cat > conftest.$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1716 #include "confdefs.h"
1717 #include <sys/types.h>
1721 switch (0) case 0: case (sizeof (int) == $ac_size):;
1724 if { (eval echo configure:1725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1726 ac_cv_sizeof_int=$ac_size
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1732 if test x$ac_cv_sizeof_int != x ; then break; fi
1737 if test x$ac_cv_sizeof_int = x ; then
1738 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1740 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1741 cat >> confdefs.h <<EOF
1742 #define SIZEOF_INT $ac_cv_sizeof_int
1746 echo $ac_n "checking size of long""... $ac_c" 1>&6
1747 echo "configure:1748: checking size of long" >&5
1748 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 #include "confdefs.h"
1756 #include <sys/types.h>
1760 switch (0) case 0: case (sizeof (long) == $ac_size):;
1763 if { (eval echo configure:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1765 ac_cv_sizeof_long=$ac_size
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1771 if test x$ac_cv_sizeof_long != x ; then break; fi
1776 if test x$ac_cv_sizeof_long = x ; then
1777 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1779 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1780 cat >> confdefs.h <<EOF
1781 #define SIZEOF_LONG $ac_cv_sizeof_long
1785 if test $ac_cv_c_long_long = yes; then
1786 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1787 echo "configure:1788: checking size of long long" >&5
1788 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 #include "confdefs.h"
1796 #include <sys/types.h>
1800 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1803 if { (eval echo configure:1804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1805 ac_cv_sizeof_long_long=$ac_size
1807 echo "configure: failed program was:" >&5
1808 cat conftest.$ac_ext >&5
1811 if test x$ac_cv_sizeof_long_long != x ; then break; fi
1816 if test x$ac_cv_sizeof_long_long = x ; then
1817 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1819 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1820 cat >> confdefs.h <<EOF
1821 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1826 if test $ac_cv_c___int64 = yes; then
1827 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1828 echo "configure:1829: checking size of __int64" >&5
1829 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1833 cat > conftest.$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 #include "confdefs.h"
1837 #include <sys/types.h>
1841 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
1844 if { (eval echo configure:1845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1846 ac_cv_sizeof___int64=$ac_size
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1852 if test x$ac_cv_sizeof___int64 != x ; then break; fi
1857 if test x$ac_cv_sizeof___int64 = x ; then
1858 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1860 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1861 cat >> confdefs.h <<EOF
1862 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1868 echo $ac_n "checking execution character set""... $ac_c" 1>&6
1869 echo "configure:1870: checking execution character set" >&5
1870 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1876 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
1877 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
1881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1882 egrep "ASCII" >/dev/null 2>&1; then
1884 ac_cv_c_charset=ASCII
1888 if test x${ac_cv_c_charset+set} != xset; then
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1892 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
1893 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
1897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1898 egrep "EBCDIC" >/dev/null 2>&1; then
1900 ac_cv_c_charset=EBCDIC
1905 if test x${ac_cv_c_charset+set} != xset; then
1906 ac_cv_c_charset=unknown
1910 echo "$ac_t""$ac_cv_c_charset" 1>&6
1911 if test $ac_cv_c_charset = unknown; then
1912 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
1913 elif test $ac_cv_c_charset = EBCDIC; then
1914 cat >> confdefs.h <<\EOF
1915 #define HOST_EBCDIC 1
1920 # If the native compiler is GCC, we can enable warnings even in stage1.
1921 # That's useful for people building cross-compilers, or just running a
1924 if test "x$GCC" = "xyes"; then
1925 warn_cflags='$(GCC_WARN_CFLAGS)'
1929 # Stage specific cflags for build.
1933 if test x$GCC = xyes
1935 stage1_cflags="-Wa,-J"
1943 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1944 echo "configure:1945: checking whether ${MAKE-make} sets \${MAKE}" >&5
1945 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1946 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 cat > conftestmake <<\EOF
1951 @echo 'ac_maketemp="${MAKE}"'
1953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1954 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1955 if test -n "$ac_maketemp"; then
1956 eval ac_cv_prog_make_${ac_make}_set=yes
1958 eval ac_cv_prog_make_${ac_make}_set=no
1962 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1963 echo "$ac_t""yes" 1>&6
1966 echo "$ac_t""no" 1>&6
1967 SET_MAKE="MAKE=${MAKE-make}"
1971 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether a default assembler was specified" >&5
1973 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1974 if test x"$gas_flag" = x"no"; then
1975 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1977 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1980 echo "$ac_t""no" 1>&6
1983 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1984 echo "configure:1985: checking whether a default linker was specified" >&5
1985 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1986 if test x"$gnu_ld_flag" = x"no"; then
1987 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1989 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1992 echo "$ac_t""no" 1>&6
1995 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1996 echo "configure:1997: checking for GNU C library" >&5
1997 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2003 #include <features.h>
2006 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2007 #error Not a GNU C library system
2011 if { (eval echo configure:2012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2023 echo "$ac_t""$gcc_cv_glibc" 1>&6
2024 if test $gcc_cv_glibc = yes; then
2025 cat >> confdefs.h <<\EOF
2026 #define _GNU_SOURCE 1
2031 # Find some useful tools
2032 for ac_prog in mawk gawk nawk awk
2034 # Extract the first word of "$ac_prog", so it can be a program name with args.
2035 set dummy $ac_prog; ac_word=$2
2036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_word" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 if test -n "$AWK"; then
2042 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2046 for ac_dir in $ac_dummy; do
2047 test -z "$ac_dir" && ac_dir=.
2048 if test -f $ac_dir/$ac_word; then
2049 ac_cv_prog_AWK="$ac_prog"
2056 AWK="$ac_cv_prog_AWK"
2057 if test -n "$AWK"; then
2058 echo "$ac_t""$AWK" 1>&6
2060 echo "$ac_t""no" 1>&6
2063 test -n "$AWK" && break
2066 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2067 echo "configure:2068: checking whether ln works" >&5
2068 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 rm -f conftestdata_t
2072 echo >conftestdata_f
2073 if ln conftestdata_f conftestdata_t 2>/dev/null
2077 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2079 gcc_cv_prog_LN="ln -s"
2084 rm -f conftestdata_f conftestdata_t
2087 LN="$gcc_cv_prog_LN"
2088 if test "$gcc_cv_prog_LN" = "ln"; then
2089 echo "$ac_t""yes" 1>&6
2091 if test "$gcc_cv_prog_LN" = "ln -s"; then
2092 echo "$ac_t""no, using ln -s" 1>&6
2094 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2098 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether ln -s works" >&5
2100 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 rm -f conftestdata_t
2104 echo >conftestdata_f
2105 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2107 gcc_cv_prog_LN_S="ln -s"
2109 if ln conftestdata_f conftestdata_t 2>/dev/null
2116 rm -f conftestdata_f conftestdata_t
2119 LN_S="$gcc_cv_prog_LN_S"
2120 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2121 echo "$ac_t""yes" 1>&6
2123 if test "$gcc_cv_prog_LN_S" = "ln"; then
2124 echo "$ac_t""no, using ln" 1>&6
2126 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2130 # Extract the first word of "ranlib", so it can be a program name with args.
2131 set dummy ranlib; ac_word=$2
2132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_word" >&5
2134 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 if test -n "$RANLIB"; then
2138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2142 for ac_dir in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f $ac_dir/$ac_word; then
2145 ac_cv_prog_RANLIB="ranlib"
2150 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2153 RANLIB="$ac_cv_prog_RANLIB"
2154 if test -n "$RANLIB"; then
2155 echo "$ac_t""$RANLIB" 1>&6
2157 echo "$ac_t""no" 1>&6
2160 # Find a good install program. We prefer a C program (faster),
2161 # so one script is as good as another. But avoid the broken or
2162 # incompatible versions:
2163 # SysV /etc/install, /usr/sbin/install
2164 # SunOS /usr/etc/install
2165 # IRIX /sbin/install
2167 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2168 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2171 echo "configure:2172: checking for a BSD compatible install" >&5
2172 if test -z "$INSTALL"; then
2173 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2177 for ac_dir in $PATH; do
2178 # Account for people who put trailing slashes in PATH elements.
2180 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2182 # OSF1 and SCO ODT 3.0 have their own names for install.
2183 for ac_prog in ginstall scoinst install; do
2184 if test -f $ac_dir/$ac_prog; then
2185 if test $ac_prog = install &&
2186 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2187 # AIX install. It has an incompatible calling convention.
2188 # OSF/1 installbsd also uses dspmsg, but is usable.
2191 ac_cv_path_install="$ac_dir/$ac_prog -c"
2202 if test "${ac_cv_path_install+set}" = set; then
2203 INSTALL="$ac_cv_path_install"
2205 # As a last resort, use the slow shell script. We don't cache a
2206 # path for INSTALL within a source directory, because that will
2207 # break other packages using the cache if that directory is
2208 # removed, or if the path is relative.
2209 INSTALL="$ac_install_sh"
2212 echo "$ac_t""$INSTALL" 1>&6
2214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2215 # It thinks the first close brace ends the variable substitution.
2216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2221 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2222 echo "configure:2223: checking for ANSI C header files" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2235 { (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2237 if test -z "$ac_err"; then
2239 ac_cv_header_stdc=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 ac_cv_header_stdc=no
2249 if test $ac_cv_header_stdc = yes; then
2250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2257 egrep "memchr" >/dev/null 2>&1; then
2261 ac_cv_header_stdc=no
2267 if test $ac_cv_header_stdc = yes; then
2268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2275 egrep "free" >/dev/null 2>&1; then
2279 ac_cv_header_stdc=no
2285 if test $ac_cv_header_stdc = yes; then
2286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2287 if test "$cross_compiling" = yes; then
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2294 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2295 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2297 int main () { int i; for (i = 0; i < 256; i++)
2298 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 ac_cv_header_stdc=no
2317 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2318 if test $ac_cv_header_stdc = yes; then
2319 cat >> confdefs.h <<\EOF
2320 #define STDC_HEADERS 1
2325 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2326 echo "configure:2327: checking whether time.h and sys/time.h may both be included" >&5
2327 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <sys/types.h>
2334 #include <sys/time.h>
2340 if { (eval echo configure:2341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2342 ac_cv_header_time=yes
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2347 ac_cv_header_time=no
2352 echo "$ac_t""$ac_cv_header_time" 1>&6
2353 if test $ac_cv_header_time = yes; then
2354 cat >> confdefs.h <<\EOF
2355 #define TIME_WITH_SYS_TIME 1
2360 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2361 echo "configure:2362: checking whether string.h and strings.h may both be included" >&5
2362 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2369 #include <strings.h>
2374 if { (eval echo configure:2375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2376 gcc_cv_header_string=yes
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2381 gcc_cv_header_string=no
2386 echo "$ac_t""$gcc_cv_header_string" 1>&6
2387 if test $gcc_cv_header_string = yes; then
2388 cat >> confdefs.h <<\EOF
2389 #define STRING_WITH_STRINGS 1
2394 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2395 echo "configure:2396: checking for sys/wait.h that is POSIX.1 compatible" >&5
2396 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 #include <sys/types.h>
2403 #include <sys/wait.h>
2405 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2408 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2413 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2416 if { (eval echo configure:2417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2418 ac_cv_header_sys_wait_h=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 ac_cv_header_sys_wait_h=no
2428 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2429 if test $ac_cv_header_sys_wait_h = yes; then
2430 cat >> confdefs.h <<\EOF
2431 #define HAVE_SYS_WAIT_H 1
2436 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2437 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2438 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2439 direct.h malloc.h langinfo.h iconv.h stdbool.h
2441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2443 echo "configure:2444: checking for $ac_hdr" >&5
2444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2453 { (eval echo configure:2454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2455 if test -z "$ac_err"; then
2457 eval "ac_cv_header_$ac_safe=yes"
2460 echo "configure: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2463 eval "ac_cv_header_$ac_safe=no"
2467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2468 echo "$ac_t""yes" 1>&6
2469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2470 cat >> confdefs.h <<EOF
2471 #define $ac_tr_hdr 1
2475 echo "$ac_t""no" 1>&6
2480 # Check for thread headers.
2481 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2482 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2483 echo "configure:2484: checking for thread.h" >&5
2484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2493 { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2495 if test -z "$ac_err"; then
2497 eval "ac_cv_header_$ac_safe=yes"
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 eval "ac_cv_header_$ac_safe=no"
2507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2511 echo "$ac_t""no" 1>&6
2515 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2516 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2517 echo "configure:2518: checking for pthread.h" >&5
2518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2524 #include <pthread.h>
2526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2527 { (eval echo configure:2528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2529 if test -z "$ac_err"; then
2531 eval "ac_cv_header_$ac_safe=yes"
2534 echo "configure: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2537 eval "ac_cv_header_$ac_safe=no"
2541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2542 echo "$ac_t""yes" 1>&6
2545 echo "$ac_t""no" 1>&6
2550 # These tests can't be done till we know if we have limits.h.
2551 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2552 echo "configure:2553: checking for CHAR_BIT" >&5
2553 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2559 #ifdef HAVE_LIMITS_H
2566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2567 egrep "found" >/dev/null 2>&1; then
2569 gcc_cv_decl_char_bit=yes
2572 gcc_cv_decl_char_bit=no
2579 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2580 if test $gcc_cv_decl_char_bit = no; then
2581 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2582 echo "configure:2583: checking number of bits in a byte" >&5
2583 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2588 while test $i -lt 65; do
2589 cat > conftest.$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2594 switch(0) { case 0: case (char)(1 << $i) && (char)(1 << $i) != 1: ; }
2597 if { (eval echo configure:2598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2602 echo "configure: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2608 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
2612 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2613 if test $gcc_cv_c_nbby = failed; then
2614 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2616 cat >> confdefs.h <<EOF
2617 #define CHAR_BIT $gcc_cv_c_nbby
2622 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2623 echo "configure:2624: checking byte ordering" >&5
2624 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 ac_cv_c_compile_endian=unknown
2630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2631 ac_cpp='$CPP $CPPFLAGS'
2632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2634 cross_compiling=$ac_cv_prog_cc_cross
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2640 #ifdef HAVE_LIMITS_H
2641 # include <limits.h>
2643 /* This structure must have no internal padding. */
2645 char prefix[sizeof "\nendian:" - 1];
2650 #if SIZEOF_SHORT == 4
2651 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2653 ('A' << CHAR_BIT) | 'B',
2657 if { (eval echo configure:2658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2659 sed 's/^[0-7]*[ ]*/ /
2662 s/ [0-9][0-9][0-9]/./g
2668 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
2669 ac_cv_c_compile_endian=big-endian
2670 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
2671 ac_cv_c_compile_endian=little-endian
2676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2680 cross_compiling=$ac_cv_prog_cc_cross
2685 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2686 if test $ac_cv_c_compile_endian = unknown; then
2687 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2688 elif test $ac_cv_c_compile_endian = big-endian; then
2689 cat >> confdefs.h <<\EOF
2690 #define HOST_WORDS_BIG_ENDIAN 1
2695 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2696 echo "configure:2697: checking floating point format" >&5
2697 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2702 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2705 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2706 cross_compiling=$ac_cv_prog_cc_cross
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 /* This will not work unless sizeof(double) == 8. */
2712 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2714 /* This structure must have no internal padding. */
2715 struct possibility {
2721 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2722 struct possibility table [] =
2724 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2725 C( 3.53802595280598432000e+18), /* D__float - VAX */
2726 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2727 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2728 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2731 if { (eval echo configure:2732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2733 sed 's/^[0-7]*[ ]*/ /
2736 s/ [0-9][0-9][0-9]/./g
2742 if grep 'format:.@IEEEF.:tamrof' conftest.dmp >/dev/null 2>&1; then
2743 ac_cv_c_float_format='IEEE (big-endian)'
2744 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp >/dev/null 2>&1; then
2745 ac_cv_c_float_format='IEEE (big-endian)'
2746 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp >/dev/null 2>&1; then
2747 ac_cv_c_float_format='IEEE (little-endian)'
2748 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp >/dev/null 2>&1; then
2749 ac_cv_c_float_format='IEEE (little-endian)'
2750 elif grep 'format:.__floa.:tamrof' conftest.dmp >/dev/null 2>&1; then
2751 ac_cv_c_float_format='VAX D-float'
2752 elif grep 'format:..PDP-1.:tamrof' conftest.dmp >/dev/null 2>&1; then
2753 ac_cv_c_float_format='PDP-10'
2754 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp >/dev/null 2>&1; then
2755 ac_cv_c_float_format='IBM 370 hex'
2757 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
2760 { echo "configure: error: compile failed" 1>&2; exit 1; }
2764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2765 ac_cpp='$CPP $CPPFLAGS'
2766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2768 cross_compiling=$ac_cv_prog_cc_cross
2773 echo "$ac_t""$ac_cv_c_float_format" 1>&6
2774 # IEEE is the default format. If the float endianness isn't the same
2775 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
2776 # (which is a tristate: yes, no, default). This is only an issue with
2777 # IEEE; the other formats are only supported by a few machines each,
2778 # all with the same endianness.
2781 case $ac_cv_c_float_format in
2782 'IEEE (big-endian)' )
2783 if test $ac_cv_c_compile_endian = little-endian; then
2787 'IEEE (little-endian)' )
2788 if test $ac_cv_c_compile_endian = big-endian; then
2793 format=VAX_FLOAT_FORMAT
2796 format=PDP10_FLOAT_FORMAT
2799 format=IBM_FLOAT_FORMAT
2802 if test -n "$format"; then
2803 cat >> confdefs.h <<EOF
2804 #define HOST_FLOAT_FORMAT $format
2808 if test -n "$fbigend"; then
2809 cat >> confdefs.h <<EOF
2810 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
2816 # See if GNAT has been installed
2817 # Extract the first word of "gnatbind", so it can be a program name with args.
2818 set dummy gnatbind; ac_word=$2
2819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_word" >&5
2821 if eval "test \"`echo '$''{'ac_cv_prog_have_gnat'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 if test -n "$have_gnat"; then
2825 ac_cv_prog_have_gnat="$have_gnat" # Let the user override the test.
2827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2829 for ac_dir in $ac_dummy; do
2830 test -z "$ac_dir" && ac_dir=.
2831 if test -f $ac_dir/$ac_word; then
2832 ac_cv_prog_have_gnat="yes"
2837 test -z "$ac_cv_prog_have_gnat" && ac_cv_prog_have_gnat="no"
2840 have_gnat="$ac_cv_prog_have_gnat"
2841 if test -n "$have_gnat"; then
2842 echo "$ac_t""$have_gnat" 1>&6
2844 echo "$ac_t""no" 1>&6
2848 # See if we have the mktemp command.
2849 # Extract the first word of "mktemp", so it can be a program name with args.
2850 set dummy mktemp; ac_word=$2
2851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2852 echo "configure:2853: checking for $ac_word" >&5
2853 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 if test -n "$have_mktemp_command"; then
2857 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
2859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2861 for ac_dir in $ac_dummy; do
2862 test -z "$ac_dir" && ac_dir=.
2863 if test -f $ac_dir/$ac_word; then
2864 ac_cv_prog_have_mktemp_command="yes"
2869 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
2872 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
2873 if test -n "$have_mktemp_command"; then
2874 echo "$ac_t""$have_mktemp_command" 1>&6
2876 echo "$ac_t""no" 1>&6
2880 # Do we have a single-tree copy of texinfo?
2881 if test -f $srcdir/../texinfo/Makefile.in; then
2882 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2883 gcc_cv_prog_makeinfo_modern=yes
2884 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2886 # See if makeinfo has been installed and is modern enough
2887 # that we can use it.
2888 # Extract the first word of "makeinfo", so it can be a program name with args.
2889 set dummy makeinfo; ac_word=$2
2890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2891 echo "configure:2892: checking for $ac_word" >&5
2892 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 if test -n "$MAKEINFO"; then
2896 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2900 for ac_dir in $ac_dummy; do
2901 test -z "$ac_dir" && ac_dir=.
2902 if test -f $ac_dir/$ac_word; then
2903 ac_cv_prog_MAKEINFO="makeinfo"
2910 MAKEINFO="$ac_cv_prog_MAKEINFO"
2911 if test -n "$MAKEINFO"; then
2912 echo "$ac_t""$MAKEINFO" 1>&6
2914 echo "$ac_t""no" 1>&6
2917 if test -n "$MAKEINFO"; then
2918 # Found it, now check the version.
2919 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2920 echo "configure:2921: checking for modern makeinfo" >&5
2921 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 ac_prog_version=`$MAKEINFO --version 2>&1 |
2925 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2926 echo "configure:2927: version of makeinfo is $ac_prog_version" >&5
2927 case $ac_prog_version in
2928 '') gcc_cv_prog_makeinfo_modern=no;;
2930 gcc_cv_prog_makeinfo_modern=yes;;
2931 *) gcc_cv_prog_makeinfo_modern=no;;
2936 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2938 gcc_cv_prog_makeinfo_modern=no
2943 if test $gcc_cv_prog_makeinfo_modern = no; then
2944 echo "configure: warning:
2945 *** Makeinfo is missing or too old.
2946 *** Info documentation will not be built." 1>&2
2952 # Is pod2man recent enough to regenerate manpages?
2953 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
2954 echo "configure:2955: checking for recent Pod::Man" >&5
2955 if perl -e 'use 1.10 Pod::Man' >/dev/null 2>&1; then
2956 echo "$ac_t""yes" 1>&6
2957 GENERATED_MANPAGES=generated-manpages
2959 echo "$ac_t""no" 1>&6
2964 if test -f $srcdir/../flex/skel.c; then
2965 FLEX='$(objdir)/../flex/flex'
2967 # Extract the first word of "flex", so it can be a program name with args.
2968 set dummy flex; ac_word=$2
2969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2970 echo "configure:2971: checking for $ac_word" >&5
2971 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 if test -n "$FLEX"; then
2975 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2979 for ac_dir in $ac_dummy; do
2980 test -z "$ac_dir" && ac_dir=.
2981 if test -f $ac_dir/$ac_word; then
2982 ac_cv_prog_FLEX="flex"
2987 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
2990 FLEX="$ac_cv_prog_FLEX"
2991 if test -n "$FLEX"; then
2992 echo "$ac_t""$FLEX" 1>&6
2994 echo "$ac_t""no" 1>&6
3000 # The -L switch is so bison can find its skeleton file.
3001 if test -f $srcdir/../bison/bison.simple; then
3002 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3004 # Extract the first word of "bison", so it can be a program name with args.
3005 set dummy bison; ac_word=$2
3006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3007 echo "configure:3008: checking for $ac_word" >&5
3008 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 if test -n "$BISON"; then
3012 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3016 for ac_dir in $ac_dummy; do
3017 test -z "$ac_dir" && ac_dir=.
3018 if test -f $ac_dir/$ac_word; then
3019 ac_cv_prog_BISON="bison"
3024 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
3027 BISON="$ac_cv_prog_BISON"
3028 if test -n "$BISON"; then
3029 echo "$ac_t""$BISON" 1>&6
3031 echo "$ac_t""no" 1>&6
3036 # See if the stage1 system preprocessor understands the ANSI C
3037 # preprocessor stringification operator. (Used by symcat.h.)
3040 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3041 echo "configure:3042: checking for preprocessor stringizing operator" >&5
3042 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3051 char *s = x(teststring);
3054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3055 egrep "#teststring" >/dev/null 2>&1; then
3057 ac_cv_c_stringize=no
3060 ac_cv_c_stringize=yes
3066 if test "${ac_cv_c_stringize}" = yes
3068 cat >> confdefs.h <<\EOF
3069 #define HAVE_STRINGIZE 1
3073 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3076 # Use <inttypes.h> only if it exists,
3077 # doesn't clash with <sys/types.h>, and declares intmax_t.
3078 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3079 echo "configure:3080: checking for inttypes.h" >&5
3080 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 #include <sys/types.h>
3087 #include <inttypes.h>
3092 if { (eval echo configure:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3094 gcc_cv_header_inttypes_h=yes
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 gcc_cv_header_inttypes_h=no
3104 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3105 if test $gcc_cv_header_inttypes_h = yes; then
3106 cat >> confdefs.h <<\EOF
3107 #define HAVE_INTTYPES_H 1
3113 for ac_func in strtoul bsearch popen times clock \
3114 strchr strrchr kill getrlimit setrlimit atoll atoq \
3115 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
3116 fputs_unlocked getrusage iconv nl_langinfo lstat
3118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3119 echo "configure:3120: checking for $ac_func" >&5
3120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 /* System header to define __stub macros and hopefully few prototypes,
3127 which can conflict with char $ac_func(); below. */
3129 /* Override any gcc2 internal prototype to avoid an error. */
3130 /* We use char because int might match the return type of a gcc2
3131 builtin and then its argument prototype would still apply. */
3136 /* The GNU C library defines this for functions which it implements
3137 to always fail with ENOSYS. Some functions are actually named
3138 something starting with __ and the normal name is an alias. */
3139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3147 if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3149 eval "ac_cv_func_$ac_func=yes"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3154 eval "ac_cv_func_$ac_func=no"
3159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3160 echo "$ac_t""yes" 1>&6
3161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3162 cat >> confdefs.h <<EOF
3163 #define $ac_tr_func 1
3167 echo "$ac_t""no" 1>&6
3172 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3173 echo "configure:3174: checking for ssize_t" >&5
3174 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 #include <sys/types.h>
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3189 ac_cv_type_ssize_t=yes
3192 ac_cv_type_ssize_t=no
3197 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3198 if test $ac_cv_type_ssize_t = no; then
3199 cat >> confdefs.h <<\EOF
3206 # Try to determine the array type of the second argument of getgroups
3207 # for the target system (int or gid_t).
3208 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3209 echo "configure:3210: checking for uid_t in sys/types.h" >&5
3210 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <sys/types.h>
3218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3219 egrep "uid_t" >/dev/null 2>&1; then
3221 ac_cv_type_uid_t=yes
3230 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3231 if test $ac_cv_type_uid_t = no; then
3232 cat >> confdefs.h <<\EOF
3236 cat >> confdefs.h <<\EOF
3242 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3243 echo "configure:3244: checking type of array argument to getgroups" >&5
3244 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 if test "$cross_compiling" = yes; then
3248 ac_cv_type_getgroups=cross
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3254 /* Thanks to Mike Rendell for this test. */
3255 #include <sys/types.h>
3258 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3263 union { gid_t gval; long lval; } val;
3266 for (i = 0; i < NGID; i++)
3267 gidset[i] = val.gval;
3268 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3270 /* Exit non-zero if getgroups seems to require an array of ints. This
3271 happens when gid_t is short but getgroups modifies an array of ints. */
3272 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3278 ac_cv_type_getgroups=gid_t
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 ac_cv_type_getgroups=int
3288 if test $ac_cv_type_getgroups = cross; then
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3297 ac_cv_type_getgroups=gid_t
3300 ac_cv_type_getgroups=int
3307 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3308 cat >> confdefs.h <<EOF
3309 #define GETGROUPS_T $ac_cv_type_getgroups
3313 if test "${target}" = "${build}"; then
3314 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
3317 # This condition may need some tweaking. It should include all
3318 # targets where the array type of the second argument of getgroups
3319 # is int and the type of gid_t is not equivalent to int.
3320 *-*-sunos* | *-*-ultrix*)
3321 TARGET_GETGROUPS_T=int
3324 TARGET_GETGROUPS_T=gid_t
3330 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3331 echo "configure:3332: checking for vprintf" >&5
3332 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 /* System header to define __stub macros and hopefully few prototypes,
3339 which can conflict with char vprintf(); below. */
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3348 /* The GNU C library defines this for functions which it implements
3349 to always fail with ENOSYS. Some functions are actually named
3350 something starting with __ and the normal name is an alias. */
3351 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3359 if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3361 eval "ac_cv_func_vprintf=yes"
3363 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5
3366 eval "ac_cv_func_vprintf=no"
3371 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3373 cat >> confdefs.h <<\EOF
3374 #define HAVE_VPRINTF 1
3378 echo "$ac_t""no" 1>&6
3381 if test "$ac_cv_func_vprintf" != yes; then
3382 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3383 echo "configure:3384: checking for _doprnt" >&5
3384 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 /* System header to define __stub macros and hopefully few prototypes,
3391 which can conflict with char _doprnt(); below. */
3393 /* Override any gcc2 internal prototype to avoid an error. */
3394 /* We use char because int might match the return type of a gcc2
3395 builtin and then its argument prototype would still apply. */
3400 /* The GNU C library defines this for functions which it implements
3401 to always fail with ENOSYS. Some functions are actually named
3402 something starting with __ and the normal name is an alias. */
3403 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3411 if { (eval echo configure:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3413 eval "ac_cv_func__doprnt=yes"
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3418 eval "ac_cv_func__doprnt=no"
3423 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3424 echo "$ac_t""yes" 1>&6
3425 cat >> confdefs.h <<\EOF
3426 #define HAVE_DOPRNT 1
3430 echo "$ac_t""no" 1>&6
3437 if test $ac_cv_func_vprintf != yes ; then
3439 if test $ac_cv_func__doprnt != yes ; then
3446 for ac_func in strstr
3448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3449 echo "configure:3450: checking for $ac_func" >&5
3450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 /* System header to define __stub macros and hopefully few prototypes,
3457 which can conflict with char $ac_func(); below. */
3459 /* Override any gcc2 internal prototype to avoid an error. */
3460 /* We use char because int might match the return type of a gcc2
3461 builtin and then its argument prototype would still apply. */
3466 /* The GNU C library defines this for functions which it implements
3467 to always fail with ENOSYS. Some functions are actually named
3468 something starting with __ and the normal name is an alias. */
3469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3477 if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3479 eval "ac_cv_func_$ac_func=yes"
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3484 eval "ac_cv_func_$ac_func=no"
3489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3490 echo "$ac_t""yes" 1>&6
3491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3492 cat >> confdefs.h <<EOF
3493 #define $ac_tr_func 1
3497 echo "$ac_t""no" 1>&6
3503 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3504 echo "configure:3505: checking whether the printf functions support %p" >&5
3505 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 if test "$cross_compiling" = yes; then
3509 gcc_cv_func_printf_ptr=no
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3519 char *p = buf, *q = NULL;
3520 sprintf(buf, "%p", p);
3521 sscanf(buf, "%p", &q);
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3527 gcc_cv_func_printf_ptr=yes
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3532 gcc_cv_func_printf_ptr=no
3537 rm -f core core.* *.core
3540 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3541 if test $gcc_cv_func_printf_ptr = yes ; then
3542 cat >> confdefs.h <<\EOF
3543 #define HAVE_PRINTF_PTR 1
3551 { echo "configure: error:
3552 *** UWIN may not be used as a host platform because
3553 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3556 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3557 echo "configure:3558: checking for pid_t" >&5
3558 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3564 #include <sys/types.h>
3570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3573 ac_cv_type_pid_t=yes
3581 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3582 if test $ac_cv_type_pid_t = no; then
3583 cat >> confdefs.h <<\EOF
3589 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3590 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3591 echo "configure:3592: checking for vfork.h" >&5
3592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3601 { (eval echo configure:3602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3603 if test -z "$ac_err"; then
3605 eval "ac_cv_header_$ac_safe=yes"
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 eval "ac_cv_header_$ac_safe=no"
3615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3616 echo "$ac_t""yes" 1>&6
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_VFORK_H 1
3622 echo "$ac_t""no" 1>&6
3625 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3626 echo "configure:3627: checking for working vfork" >&5
3627 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 if test "$cross_compiling" = yes; then
3631 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3632 echo "configure:3633: checking for vfork" >&5
3633 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 /* System header to define __stub macros and hopefully few prototypes,
3640 which can conflict with char vfork(); below. */
3642 /* Override any gcc2 internal prototype to avoid an error. */
3643 /* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3649 /* The GNU C library defines this for functions which it implements
3650 to always fail with ENOSYS. Some functions are actually named
3651 something starting with __ and the normal name is an alias. */
3652 #if defined (__stub_vfork) || defined (__stub___vfork)
3660 if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3662 eval "ac_cv_func_vfork=yes"
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 eval "ac_cv_func_vfork=no"
3672 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3673 echo "$ac_t""yes" 1>&6
3676 echo "$ac_t""no" 1>&6
3679 ac_cv_func_vfork_works=$ac_cv_func_vfork
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Thanks to Paul Eggert for this test. */
3686 #include <sys/types.h>
3687 #include <sys/stat.h>
3688 #ifdef HAVE_UNISTD_H
3694 /* On some sparc systems, changes by the child to local and incoming
3695 argument registers are propagated back to the parent.
3696 The compiler is told about this with #include <vfork.h>,
3697 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3698 Test for this by using a static variable whose address
3699 is put into a register that is clobbered by the vfork. */
3702 sparc_address_test (int arg)
3704 sparc_address_test (arg) int arg;
3722 pid_t parent = getpid ();
3725 sparc_address_test ();
3730 /* Here is another test for sparc vfork register problems.
3731 This test uses lots of local variables, at least
3732 as many local variables as main has allocated so far
3733 including compiler temporaries. 4 locals are enough for
3734 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3735 A buggy compiler should reuse the register of parent
3736 for one of the local variables, since it will think that
3737 parent can't possibly be used any more in this routine.
3738 Assigning to the local variable will thus munge parent
3739 in the parent process. */
3741 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3742 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3743 /* Convince the compiler that p..p7 are live; otherwise, it might
3744 use the same hardware register for all 8 local variables. */
3745 if (p != p1 || p != p2 || p != p3 || p != p4
3746 || p != p5 || p != p6 || p != p7)
3749 /* On some systems (e.g. IRIX 3.3),
3750 vfork doesn't separate parent from child file descriptors.
3751 If the child closes a descriptor before it execs or exits,
3752 this munges the parent's descriptor as well.
3753 Test for this by closing stdout in the child. */
3754 _exit(close(fileno(stdout)) != 0);
3759 while (wait(&status) != child)
3762 /* Was there some problem with vforking? */
3765 /* Did the child fail? (This shouldn't happen.) */
3768 /* Did the vfork/compiler bug occur? */
3769 || parent != getpid()
3771 /* Did the file descriptor bug occur? */
3772 || fstat(fileno(stdout), &st) != 0
3777 if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3779 ac_cv_func_vfork_works=yes
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3784 ac_cv_func_vfork_works=no
3791 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3792 if test $ac_cv_func_vfork_works = no; then
3793 cat >> confdefs.h <<\EOF
3799 for ac_func in getpagesize
3801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3802 echo "configure:3803: checking for $ac_func" >&5
3803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 /* System header to define __stub macros and hopefully few prototypes,
3810 which can conflict with char $ac_func(); below. */
3812 /* Override any gcc2 internal prototype to avoid an error. */
3813 /* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3819 /* The GNU C library defines this for functions which it implements
3820 to always fail with ENOSYS. Some functions are actually named
3821 something starting with __ and the normal name is an alias. */
3822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 eval "ac_cv_func_$ac_func=yes"
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3837 eval "ac_cv_func_$ac_func=no"
3842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3843 echo "$ac_t""yes" 1>&6
3844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3845 cat >> confdefs.h <<EOF
3846 #define $ac_tr_func 1
3850 echo "$ac_t""no" 1>&6
3854 # The test program for the next two tests is the same except for one
3856 cat >ct-mmap.inc <<'EOF'
3857 #include <sys/types.h>
3858 #include <sys/mman.h>
3864 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3865 # define MAP_ANONYMOUS MAP_ANON
3868 /* This mess was copied from the GNU getpagesize.h. */
3869 #ifndef HAVE_GETPAGESIZE
3870 # ifdef HAVE_UNISTD_H
3871 # include <unistd.h>
3874 /* Assume that all systems that can run configure have sys/param.h. */
3875 # ifndef HAVE_SYS_PARAM_H
3876 # define HAVE_SYS_PARAM_H 1
3879 # ifdef _SC_PAGESIZE
3880 # define getpagesize() sysconf(_SC_PAGESIZE)
3881 # else /* no _SC_PAGESIZE */
3882 # ifdef HAVE_SYS_PARAM_H
3883 # include <sys/param.h>
3884 # ifdef EXEC_PAGESIZE
3885 # define getpagesize() EXEC_PAGESIZE
3886 # else /* no EXEC_PAGESIZE */
3888 # define getpagesize() NBPG * CLSIZE
3891 # endif /* no CLSIZE */
3892 # else /* no NBPG */
3894 # define getpagesize() NBPC
3895 # else /* no NBPC */
3897 # define getpagesize() PAGESIZE
3898 # endif /* PAGESIZE */
3899 # endif /* no NBPC */
3900 # endif /* no NBPG */
3901 # endif /* no EXEC_PAGESIZE */
3902 # else /* no HAVE_SYS_PARAM_H */
3903 # define getpagesize() 8192 /* punt totally */
3904 # endif /* no HAVE_SYS_PARAM_H */
3905 # endif /* no _SC_PAGESIZE */
3907 #endif /* no HAVE_GETPAGESIZE */
3910 # define MAP_FAILED -1
3914 #define perror_exit(str, val) \
3915 do { perror(str); exit(val); } while (0)
3917 /* Some versions of cygwin mmap require that munmap is called with the
3918 same parameters as mmap. GCC expects that this is not the case.
3919 Test for various forms of this problem. Warning - icky signal games. */
3921 static sigset_t unblock_sigsegv;
3931 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3932 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
3934 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3935 MAP_PRIVATE, devzero, 0);
3943 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
3947 /* Basic functionality test. */
3951 char *x = anonmap (pg);
3952 if (x == (char *) MAP_FAILED)
3953 perror_exit("test 0 mmap", 2);
3957 if (munmap(x, pg) < 0)
3958 perror_exit("test 0 munmap", 3);
3961 /* 1. If we map a 2-page region and unmap its second page, the first page
3966 char *x = anonmap (pg * 2);
3967 if (x == (char *)MAP_FAILED)
3968 perror_exit ("test 1 mmap", 4);
3970 signal (SIGSEGV, sigsegv);
3972 perror_exit ("test 1 fault", 5);
3977 if (munmap (x + pg, pg) < 0)
3978 perror_exit ("test 1 munmap 1", 6);
3981 if (setjmp (r) == 0)
3984 perror_exit ("test 1 no fault", 7);
3986 if (munmap (x, pg) < 0)
3987 perror_exit ("test 1 munmap 2", 8);
3990 /* 2. If we map a 2-page region and unmap its first page, the second
3991 page must remain. */
3995 char *x = anonmap (pg * 2);
3996 if (x == (char *)MAP_FAILED)
3997 perror_exit ("test 2 mmap", 9);
3999 signal (SIGSEGV, sigsegv);
4001 perror_exit ("test 2 fault", 10);
4006 if (munmap (x, pg) < 0)
4007 perror_exit ("test 2 munmap 1", 11);
4011 if (setjmp (r) == 0)
4014 perror_exit ("test 2 no fault", 12);
4017 if (munmap (x+pg, pg) < 0)
4018 perror_exit ("test 2 munmap 2", 13);
4021 /* 3. If we map two adjacent 1-page regions and unmap them both with
4022 one munmap, both must go away.
4024 Getting two adjacent 1-page regions with two mmap calls is slightly
4025 tricky. All OS's tested skip over already-allocated blocks; therefore
4026 we have been careful to unmap all allocated regions in previous tests.
4027 HP/UX allocates pages backward in memory. No OS has yet been observed
4028 to be so perverse as to leave unmapped space between consecutive calls
4037 if (x == (char *)MAP_FAILED)
4038 perror_exit ("test 3 mmap 1", 14);
4040 if (y == (char *)MAP_FAILED)
4041 perror_exit ("test 3 mmap 2", 15);
4046 z = y, y = x, x = z;
4049 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4050 (unsigned long)x, (unsigned long)y);
4055 signal (SIGSEGV, sigsegv);
4057 perror_exit ("test 3 fault", 17);
4062 if (munmap (x, pg*2) < 0)
4063 perror_exit ("test 3 munmap", 18);
4065 if (setjmp (r) == 0)
4068 perror_exit ("test 3 no fault 1", 19);
4071 signal (SIGSEGV, sigsegv);
4072 if (setjmp (r) == 0)
4075 perror_exit ("test 3 no fault 2", 20);
4082 sigemptyset (&unblock_sigsegv);
4083 sigaddset (&unblock_sigsegv, SIGSEGV);
4084 pg = getpagesize ();
4085 #ifndef USE_MAP_ANON
4086 devzero = open ("/dev/zero", O_RDWR);
4088 perror_exit ("open /dev/zero", 1);
4100 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4101 echo "configure:4102: checking for working mmap from /dev/zero" >&5
4102 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 if test "$cross_compiling" = yes; then
4106 # If this is not cygwin, and /dev/zero is a character device, it's probably
4107 # safe to assume it works.
4109 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
4110 * ) if test -c /dev/zero
4111 then ac_cv_func_mmap_dev_zero=yes
4112 else ac_cv_func_mmap_dev_zero=no
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4119 #include "ct-mmap.inc"
4121 if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4123 ac_cv_func_mmap_dev_zero=yes
4125 echo "configure: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4129 then ac_cv_func_mmap_dev_zero=no
4130 else ac_cv_func_mmap_dev_zero=buggy
4139 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4140 if test $ac_cv_func_mmap_dev_zero = yes; then
4141 cat >> confdefs.h <<\EOF
4142 #define HAVE_MMAP_DEV_ZERO 1
4147 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4148 echo "configure:4149: checking for working mmap with MAP_ANON(YMOUS)" >&5
4149 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 if test "$cross_compiling" = yes; then
4153 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4154 # just because it's there. Some SCO Un*xen define it but don't implement it.
4155 ac_cv_func_mmap_anon=no
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 #define USE_MAP_ANON
4161 #include "ct-mmap.inc"
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4165 ac_cv_func_mmap_anon=yes
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4171 then ac_cv_func_mmap_anon=no
4172 else ac_cv_func_mmap_anon=buggy
4181 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4182 if test $ac_cv_func_mmap_anon = yes; then
4183 cat >> confdefs.h <<\EOF
4184 #define HAVE_MMAP_ANON 1
4190 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4191 echo "configure:4192: checking for working mmap of a file" >&5
4192 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 # Create a file one thousand bytes long.
4196 for i in 1 2 3 4 5 6 7 8 9 0
4197 do for j in 1 2 3 4 5 6 7 8 9 0
4200 done > conftestdata$$
4202 if test "$cross_compiling" = yes; then
4203 ac_cv_func_mmap_file=no
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4209 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4210 Richard Henderson and Alexandre Oliva.
4211 Check whether read-only mmap of a plain file works. */
4212 #include <sys/types.h>
4213 #include <sys/stat.h>
4215 #include <sys/mman.h>
4223 fd = open("conftestdata$$", O_RDONLY);
4227 if (fstat (fd, &st))
4230 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4231 if (x == (char *) -1)
4234 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4237 if (munmap(x, st.st_size) < 0)
4243 if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4245 ac_cv_func_mmap_file=yes
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4250 ac_cv_func_mmap_file=no
4257 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4258 if test $ac_cv_func_mmap_file = yes; then
4259 cat >> confdefs.h <<\EOF
4260 #define HAVE_MMAP_FILE 1
4266 # We will need to find libiberty.h and ansidecl.h
4267 saved_CFLAGS="$CFLAGS"
4268 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4269 for ac_func in getenv atol sbrk abort atof getcwd getwd \
4270 strsignal putc_unlocked fputs_unlocked strstr environ errno \
4271 malloc realloc calloc free basename getopt clock
4273 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4274 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4275 echo "configure:4276: checking whether $ac_func is declared" >&5
4276 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4283 #define $ac_tr_decl 1
4285 #include "ansidecl.h"
4290 char *(*pfn) = (char *(*)) $ac_func ;
4294 if { (eval echo configure:4295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4296 eval "gcc_cv_have_decl_$ac_func=yes"
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4301 eval "gcc_cv_have_decl_$ac_func=no"
4306 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4308 #define $ac_tr_decl 1
4312 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4313 #define $ac_tr_decl 0
4319 if test x = y ; then
4320 cat >> confdefs.h <<EOF
4321 #define HAVE_DECL_GETENV 1
4323 cat >> confdefs.h <<EOF
4324 #define HAVE_DECL_ATOL 1
4326 cat >> confdefs.h <<EOF
4327 #define HAVE_DECL_SBRK 1
4329 cat >> confdefs.h <<EOF
4330 #define HAVE_DECL_ABORT 1
4332 cat >> confdefs.h <<EOF
4333 #define HAVE_DECL_ATOF 1
4335 cat >> confdefs.h <<EOF
4336 #define HAVE_DECL_GETCWD 1
4338 cat >> confdefs.h <<EOF
4339 #define HAVE_DECL_GETWD 1
4342 cat >> confdefs.h <<EOF
4343 #define HAVE_DECL_STRSIGNAL 1
4345 cat >> confdefs.h <<EOF
4346 #define HAVE_DECL_PUTC_UNLOCKED 1
4348 cat >> confdefs.h <<EOF
4349 #define HAVE_DECL_FPUTS_UNLOCKED 1
4351 cat >> confdefs.h <<EOF
4352 #define HAVE_DECL_STRSTR 1
4354 cat >> confdefs.h <<EOF
4355 #define HAVE_DECL_ENVIRON 1
4357 cat >> confdefs.h <<EOF
4358 #define HAVE_DECL_ERRNO 1
4361 cat >> confdefs.h <<EOF
4362 #define HAVE_DECL_MALLOC 1
4364 cat >> confdefs.h <<EOF
4365 #define HAVE_DECL_REALLOC 1
4367 cat >> confdefs.h <<EOF
4368 #define HAVE_DECL_CALLOC 1
4370 cat >> confdefs.h <<EOF
4371 #define HAVE_DECL_FREE 1
4373 cat >> confdefs.h <<EOF
4374 #define HAVE_DECL_BASENAME 1
4376 cat >> confdefs.h <<EOF
4377 #define HAVE_DECL_GETOPT 1
4379 cat >> confdefs.h <<EOF
4380 #define HAVE_DECL_CLOCK 1
4385 for ac_func in getrlimit setrlimit getrusage
4387 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4388 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4389 echo "configure:4390: checking whether $ac_func is declared" >&5
4390 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4397 #define $ac_tr_decl 1
4399 #include "ansidecl.h"
4401 #ifdef HAVE_SYS_RESOURCE_H
4402 #include <sys/resource.h>
4408 char *(*pfn) = (char *(*)) $ac_func ;
4412 if { (eval echo configure:4413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4414 eval "gcc_cv_have_decl_$ac_func=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 eval "gcc_cv_have_decl_$ac_func=no"
4424 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4426 #define $ac_tr_decl 1
4430 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4431 #define $ac_tr_decl 0
4437 if test x = y ; then
4438 cat >> confdefs.h <<EOF
4439 #define HAVE_DECL_GETRLIMIT 1
4441 cat >> confdefs.h <<EOF
4442 #define HAVE_DECL_SETRLIMIT 1
4444 cat >> confdefs.h <<EOF
4445 #define HAVE_DECL_GETRUSAGE 1
4450 for ac_func in times
4452 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4453 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4454 echo "configure:4455: checking whether $ac_func is declared" >&5
4455 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4462 #define $ac_tr_decl 1
4464 #include "ansidecl.h"
4466 #ifdef HAVE_SYS_TIMES_H
4467 #include <sys/times.h>
4473 char *(*pfn) = (char *(*)) $ac_func ;
4477 if { (eval echo configure:4478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4479 eval "gcc_cv_have_decl_$ac_func=yes"
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4484 eval "gcc_cv_have_decl_$ac_func=no"
4489 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4491 #define $ac_tr_decl 1
4495 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4496 #define $ac_tr_decl 0
4502 if test x = y ; then
4503 cat >> confdefs.h <<EOF
4504 #define HAVE_DECL_TIMES 1
4509 # More time-related stuff.
4510 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4511 echo "configure:4512: checking for struct tms" >&5
4512 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4520 #include "ansidecl.h"
4522 #ifdef HAVE_SYS_TIMES_H
4523 #include <sys/times.h>
4530 if { (eval echo configure:4531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4532 ac_cv_struct_tms=yes
4534 echo "configure: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4542 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4543 if test $ac_cv_struct_tms = yes; then
4544 cat >> confdefs.h <<\EOF
4545 #define HAVE_STRUCT_TMS 1
4550 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4551 # revisit after autoconf 2.50.
4552 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4553 echo "configure:4554: checking for clock_t" >&5
4554 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4562 #include "ansidecl.h"
4569 if { (eval echo configure:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4571 gcc_cv_type_clock_t=yes
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4576 gcc_cv_type_clock_t=no
4581 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4582 if test $gcc_cv_type_clock_t = yes; then
4583 cat >> confdefs.h <<\EOF
4584 #define HAVE_CLOCK_T 1
4589 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4590 CFLAGS="$saved_CFLAGS"
4592 # mkdir takes a single argument on some systems.
4593 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4594 echo "configure:4595: checking if mkdir takes one argument" >&5
4595 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4602 #include <sys/types.h>
4603 #ifdef HAVE_SYS_STAT_H
4604 # include <sys/stat.h>
4606 #ifdef HAVE_UNISTD_H
4607 # include <unistd.h>
4609 #ifdef HAVE_DIRECT_H
4610 # include <direct.h>
4616 if { (eval echo configure:4617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4618 gcc_cv_mkdir_takes_one_arg=no
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 gcc_cv_mkdir_takes_one_arg=yes
4628 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4629 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4630 cat >> confdefs.h <<\EOF
4631 #define MKDIR_TAKES_ONE_ARG 1
4645 build_install_headers_dir=install-headers-tar
4650 host_truncate_target=
4653 # Decode the host machine, then the target machine.
4654 # For the host machine, we save the xm_file variable as host_xm_file;
4655 # then we decode the target machine and forget everything else
4656 # that came from the host machine.
4657 for machine in $build $host $target; do
4658 . ${srcdir}/config.gcc
4661 extra_objs="${host_extra_objs} ${extra_objs}"
4663 # Default the target-machine variables that were not explicitly set.
4664 if test x"$tm_file" = x
4665 then tm_file=$cpu_type/$cpu_type.h; fi
4667 if test x"$extra_headers" = x
4668 then extra_headers=; fi
4670 if test x$md_file = x
4671 then md_file=$cpu_type/$cpu_type.md; fi
4673 if test x$out_file = x
4674 then out_file=$cpu_type/$cpu_type.c; fi
4676 if test x"$tmake_file" = x
4677 then tmake_file=$cpu_type/t-$cpu_type
4680 if test x"$dwarf2" = xyes
4681 then tm_file="$tm_file tm-dwarf2.h"
4684 if test x$float_format = x
4685 then float_format=i64
4688 if test $float_format = none
4689 then float_h_file=Makefile.in
4690 else float_h_file=float-$float_format.h
4693 # Handle cpp installation.
4694 if test x$enable_cpp != xno
4696 tmake_file="$tmake_file t-install-cpp"
4699 # Say what files are being used for the output code and MD file.
4700 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4701 echo "Using \`$srcdir/config/$md_file' as machine description file."
4703 # If any of the xm_file variables contain nonexistent files, warn
4704 # about them and drop them.
4707 for x in $build_xm_file; do
4708 if test -f $srcdir/config/$x
4710 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4716 for x in $host_xm_file; do
4717 if test -f $srcdir/config/$x
4719 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4725 for x in $xm_file; do
4726 if test -f $srcdir/config/$x
4728 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4734 for f in $tm_file; do
4737 if test $count = ax; then
4738 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4740 echo "Using the following target machine macro files:"
4741 for f in $tm_file; do
4742 echo " $srcdir/config/$f"
4747 for f in $host_xm_file; do
4750 if test $count = a; then
4752 elif test $count = ax; then
4753 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4755 echo "Using the following host machine macro files:"
4756 for f in $host_xm_file; do
4757 echo " $srcdir/config/$f"
4761 if test "$host_xm_file" != "$build_xm_file"; then
4763 for f in $build_xm_file; do
4766 if test $count = a; then
4768 elif test $count = ax; then
4769 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4771 echo "Using the following build machine macro files:"
4772 for f in $build_xm_file; do
4773 echo " $srcdir/config/$f"
4778 if test x$thread_file = x; then
4779 if test x$target_thread_file != x; then
4780 thread_file=$target_thread_file
4782 thread_file='single'
4786 # auto-host.h is the file containing items generated by autoconf and is
4787 # the first file included by config.h.
4788 # If host=build, it is correct to have hconfig include auto-host.h
4789 # as well. If host!=build, we are in error and need to do more
4790 # work to find out the build config parameters.
4791 if test x$host = x$build
4793 build_auto=auto-host.h
4795 # We create a subdir, then run autoconf in the subdir.
4796 # To prevent recursion we set host and build for the new
4797 # invocation of configure to the build for this invocation
4804 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4805 *) realsrcdir=../${srcdir};;
4807 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4808 --target=$target --host=$build --build=$build
4810 # We just finished tests for the build machine, so rename
4811 # the file auto-build.h in the gcc directory.
4812 mv auto-host.h ../auto-build.h
4815 build_auto=auto-build.h
4818 tm_file="${tm_file} defaults.h"
4819 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
4820 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
4821 xm_file="ansidecl.h ${xm_file} ${tm_file}"
4823 # Truncate the target if necessary
4824 if test x$host_truncate_target != x; then
4825 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4828 # Get the version trigger filename from the toplevel
4829 if test "${with_gcc_version_trigger+set}" = set; then
4830 gcc_version_trigger=$with_gcc_version_trigger
4832 gcc_version_trigger=${srcdir}/version.c
4834 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4835 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4837 # Compile in configure arguments.
4838 if test -f configargs.h ; then
4839 # Being re-configured.
4840 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4841 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
4843 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
4845 cat > configargs.h <<EOF
4846 /* Generated automatically. */
4847 static const char configuration_arguments[] = "$gcc_config_arguments";
4848 static const char thread_model[] = "$thread_file";
4851 # Internationalization
4853 VERSION="$gcc_version"
4854 cat >> confdefs.h <<EOF
4855 #define PACKAGE "$PACKAGE"
4858 cat >> confdefs.h <<EOF
4859 #define VERSION "$VERSION"
4867 # Enable NLS support by default
4868 # Check whether --enable-nls or --disable-nls was given.
4869 if test "${enable_nls+set}" = set; then
4870 enableval="$enable_nls"
4877 # if cross compiling, disable NLS support.
4878 # It's not worth the trouble, at least for now.
4880 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4881 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
4885 # if NLS is enabled, also enable check in po subdir
4886 if test $enable_nls = yes; then
4895 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
4896 echo "configure:4897: checking for strerror in -lcposix" >&5
4897 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
4898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 ac_save_LIBS="$LIBS"
4902 LIBS="-lcposix $LIBS"
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* Override any gcc2 internal prototype to avoid an error. */
4907 /* We use char because int might match the return type of a gcc2
4908 builtin and then its argument prototype would still apply. */
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 eval "ac_cv_lib_$ac_lib_var=yes"
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4922 eval "ac_cv_lib_$ac_lib_var=no"
4925 LIBS="$ac_save_LIBS"
4928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4930 LIBS="$LIBS -lcposix"
4932 echo "$ac_t""no" 1>&6
4937 echo $ac_n "checking for working const""... $ac_c" 1>&6
4938 echo "configure:4939: checking for working const" >&5
4939 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4948 /* Ultrix mips cc rejects this. */
4949 typedef int charset[2]; const charset x;
4950 /* SunOS 4.1.1 cc rejects this. */
4951 char const *const *ccp;
4953 /* NEC SVR4.0.2 mips cc rejects this. */
4954 struct point {int x, y;};
4955 static struct point const zero = {0,0};
4956 /* AIX XL C 1.02.0.0 rejects this.
4957 It does not let you subtract one const X* pointer from another in an arm
4958 of an if-expression whose if-part is not a constant expression */
4959 const char *g = "string";
4960 ccp = &g + (g ? g-g : 0);
4961 /* HPUX 7.0 cc rejects these. */
4964 ccp = (char const *const *) p;
4965 { /* SCO 3.2v4 cc rejects this. */
4967 char const *s = 0 ? (char *) 0 : (char const *) 0;
4971 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4973 const int *foo = &x[0];
4976 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4977 typedef const int *iptr;
4981 { /* AIX XL C 1.02.0.0 rejects this saying
4982 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4983 struct s { int j; const int *ap[3]; };
4984 struct s *b; b->j = 5;
4986 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4992 if { (eval echo configure:4993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4996 echo "configure: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
5004 echo "$ac_t""$ac_cv_c_const" 1>&6
5005 if test $ac_cv_c_const = no; then
5006 cat >> confdefs.h <<\EOF
5012 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5013 echo "configure:5014: checking for off_t" >&5
5014 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 #include <sys/types.h>
5026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5027 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5029 ac_cv_type_off_t=yes
5037 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5038 if test $ac_cv_type_off_t = no; then
5039 cat >> confdefs.h <<\EOF
5045 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5046 echo "configure:5047: checking for size_t" >&5
5047 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 cat > conftest.$ac_ext <<EOF
5051 #line 5052 "configure"
5052 #include "confdefs.h"
5053 #include <sys/types.h>
5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5062 ac_cv_type_size_t=yes
5065 ac_cv_type_size_t=no
5070 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5071 if test $ac_cv_type_size_t = no; then
5072 cat >> confdefs.h <<\EOF
5073 #define size_t unsigned
5079 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
5080 unistd.h sys/param.h
5082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5084 echo "configure:5085: checking for $ac_hdr" >&5
5085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5094 { (eval echo configure:5095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5096 if test -z "$ac_err"; then
5098 eval "ac_cv_header_$ac_safe=yes"
5101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5104 eval "ac_cv_header_$ac_safe=no"
5108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5111 cat >> confdefs.h <<EOF
5112 #define $ac_tr_hdr 1
5116 echo "$ac_t""no" 1>&6
5120 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
5121 strdup __argz_count __argz_stringify __argz_next
5123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5124 echo "configure:5125: checking for $ac_func" >&5
5125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char $ac_func(); below. */
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5141 /* The GNU C library defines this for functions which it implements
5142 to always fail with ENOSYS. Some functions are actually named
5143 something starting with __ and the normal name is an alias. */
5144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 eval "ac_cv_func_$ac_func=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_func_$ac_func=no"
5164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_func 1
5172 echo "$ac_t""no" 1>&6
5177 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5178 for ac_func in stpcpy
5180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5181 echo "configure:5182: checking for $ac_func" >&5
5182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 /* System header to define __stub macros and hopefully few prototypes,
5189 which can conflict with char $ac_func(); below. */
5191 /* Override any gcc2 internal prototype to avoid an error. */
5192 /* We use char because int might match the return type of a gcc2
5193 builtin and then its argument prototype would still apply. */
5198 /* The GNU C library defines this for functions which it implements
5199 to always fail with ENOSYS. Some functions are actually named
5200 something starting with __ and the normal name is an alias. */
5201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211 eval "ac_cv_func_$ac_func=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 eval "ac_cv_func_$ac_func=no"
5221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5222 echo "$ac_t""yes" 1>&6
5223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5224 cat >> confdefs.h <<EOF
5225 #define $ac_tr_func 1
5229 echo "$ac_t""no" 1>&6
5234 if test "${ac_cv_func_stpcpy}" = "yes"; then
5235 cat >> confdefs.h <<\EOF
5236 #define HAVE_STPCPY 1
5241 if test $ac_cv_header_locale_h = yes; then
5242 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5243 echo "configure:5244: checking for LC_MESSAGES" >&5
5244 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5257 am_cv_val_LC_MESSAGES=yes
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5262 am_cv_val_LC_MESSAGES=no
5267 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5268 if test $am_cv_val_LC_MESSAGES = yes; then
5269 cat >> confdefs.h <<\EOF
5270 #define HAVE_LC_MESSAGES 1
5275 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5276 echo "configure:5277: checking whether NLS is requested" >&5
5277 # Check whether --enable-nls or --disable-nls was given.
5278 if test "${enable_nls+set}" = set; then
5279 enableval="$enable_nls"
5285 echo "$ac_t""$USE_NLS" 1>&6
5288 USE_INCLUDED_LIBINTL=no
5290 if test "$USE_NLS" = "yes"; then
5291 cat >> confdefs.h <<\EOF
5292 #define ENABLE_NLS 1
5295 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5296 echo "configure:5297: checking whether included gettext is requested" >&5
5297 # Check whether --with-included-gettext or --without-included-gettext was given.
5298 if test "${with_included_gettext+set}" = set; then
5299 withval="$with_included_gettext"
5300 nls_cv_force_use_gnu_gettext=$withval
5302 nls_cv_force_use_gnu_gettext=no
5305 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5307 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5308 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5310 nls_cv_header_libgt=
5313 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5314 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5315 echo "configure:5316: checking for libintl.h" >&5
5316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 cat > conftest.$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 #include <libintl.h>
5324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5325 { (eval echo configure:5326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5327 if test -z "$ac_err"; then
5329 eval "ac_cv_header_$ac_safe=yes"
5332 echo "configure: failed program was:" >&5
5333 cat conftest.$ac_ext >&5
5335 eval "ac_cv_header_$ac_safe=no"
5339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5340 echo "$ac_t""yes" 1>&6
5341 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
5342 echo "configure:5343: checking for gettext in libc" >&5
5343 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5346 cat > conftest.$ac_ext <<EOF
5347 #line 5348 "configure"
5348 #include "confdefs.h"
5349 #include <libintl.h>
5351 return (int) gettext ("")
5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356 gt_cv_func_gettext_libc=yes
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5361 gt_cv_func_gettext_libc=no
5366 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
5368 if test "$gt_cv_func_gettext_libc" != "yes"; then
5369 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
5370 echo "configure:5371: checking for bindtextdomain in -lintl" >&5
5371 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
5372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 ac_save_LIBS="$LIBS"
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5380 /* Override any gcc2 internal prototype to avoid an error. */
5381 /* We use char because int might match the return type of a gcc2
5382 builtin and then its argument prototype would still apply. */
5383 char bindtextdomain();
5389 if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 eval "ac_cv_lib_$ac_lib_var=yes"
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 eval "ac_cv_lib_$ac_lib_var=no"
5399 LIBS="$ac_save_LIBS"
5402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
5405 echo "configure:5406: checking for gettext in libintl" >&5
5406 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
5410 echo "configure:5411: checking for gettext in -lintl" >&5
5411 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
5412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5415 ac_save_LIBS="$LIBS"
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 /* Override any gcc2 internal prototype to avoid an error. */
5421 /* We use char because int might match the return type of a gcc2
5422 builtin and then its argument prototype would still apply. */
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 eval "ac_cv_lib_$ac_lib_var=yes"
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5436 eval "ac_cv_lib_$ac_lib_var=no"
5439 LIBS="$ac_save_LIBS"
5442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5443 echo "$ac_t""yes" 1>&6
5444 gt_cv_func_gettext_libintl=yes
5446 echo "$ac_t""no" 1>&6
5447 gt_cv_func_gettext_libintl=no
5452 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
5454 echo "$ac_t""no" 1>&6
5459 if test "$gt_cv_func_gettext_libintl" = "yes"; then
5463 if test "$gt_cv_func_gettext_libc" = "yes" \
5464 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5465 cat >> confdefs.h <<\EOF
5466 #define HAVE_GETTEXT 1
5469 # Extract the first word of "msgfmt", so it can be a program name with args.
5470 set dummy msgfmt; ac_word=$2
5471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5472 echo "configure:5473: checking for $ac_word" >&5
5473 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5478 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5482 for ac_dir in $PATH; do
5483 test -z "$ac_dir" && ac_dir=.
5484 if test -f $ac_dir/$ac_word; then
5485 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5486 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5492 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="no"
5496 MSGFMT="$gcc_cv_path_MSGFMT"
5497 if test -n "$MSGFMT"; then
5498 echo "$ac_t""$MSGFMT" 1>&6
5500 echo "$ac_t""no" 1>&6
5502 if test "$MSGFMT" != "no"; then
5503 for ac_func in dcgettext
5505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5506 echo "configure:5507: checking for $ac_func" >&5
5507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 /* System header to define __stub macros and hopefully few prototypes,
5514 which can conflict with char $ac_func(); below. */
5516 /* Override any gcc2 internal prototype to avoid an error. */
5517 /* We use char because int might match the return type of a gcc2
5518 builtin and then its argument prototype would still apply. */
5523 /* The GNU C library defines this for functions which it implements
5524 to always fail with ENOSYS. Some functions are actually named
5525 something starting with __ and the normal name is an alias. */
5526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5534 if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5536 eval "ac_cv_func_$ac_func=yes"
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5541 eval "ac_cv_func_$ac_func=no"
5546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5547 echo "$ac_t""yes" 1>&6
5548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5549 cat >> confdefs.h <<EOF
5550 #define $ac_tr_func 1
5554 echo "$ac_t""no" 1>&6
5558 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5559 set dummy gmsgfmt; ac_word=$2
5560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5561 echo "configure:5562: checking for $ac_word" >&5
5562 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5567 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5570 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5575 for ac_dir in $ac_dummy; do
5576 test -z "$ac_dir" && ac_dir=.
5577 if test -f $ac_dir/$ac_word; then
5578 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5583 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5587 GMSGFMT="$gcc_cv_path_GMSGFMT"
5588 if test -n "$GMSGFMT"; then
5589 echo "$ac_t""$GMSGFMT" 1>&6
5591 echo "$ac_t""no" 1>&6
5594 # Extract the first word of "xgettext", so it can be a program name with args.
5595 set dummy xgettext; ac_word=$2
5596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5597 echo "configure:5598: checking for $ac_word" >&5
5598 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5603 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5607 for ac_dir in $PATH; do
5608 test -z "$ac_dir" && ac_dir=.
5609 if test -f $ac_dir/$ac_word; then
5610 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5611 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5617 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5621 XGETTEXT="$gcc_cv_path_XGETTEXT"
5622 if test -n "$XGETTEXT"; then
5623 echo "$ac_t""$XGETTEXT" 1>&6
5625 echo "$ac_t""no" 1>&6
5628 cat > conftest.$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5633 extern int _nl_msg_cat_cntr;
5634 return _nl_msg_cat_cntr
5637 if { (eval echo configure:5638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5651 create_catalogs="no"
5656 echo "$ac_t""no" 1>&6
5660 if test "$CATOBJEXT" = "NONE"; then
5661 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
5662 echo "configure:5663: checking whether catgets can be used" >&5
5663 # Check whether --with-catgets or --without-catgets was given.
5664 if test "${with_catgets+set}" = set; then
5665 withval="$with_catgets"
5666 nls_cv_use_catgets=$withval
5668 nls_cv_use_catgets=no
5671 echo "$ac_t""$nls_cv_use_catgets" 1>&6
5673 if test "$nls_cv_use_catgets" = "yes"; then
5674 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
5675 echo "configure:5676: checking for main in -li" >&5
5676 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
5677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5680 ac_save_LIBS="$LIBS"
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5690 if { (eval echo configure:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5692 eval "ac_cv_lib_$ac_lib_var=yes"
5694 echo "configure: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5697 eval "ac_cv_lib_$ac_lib_var=no"
5700 LIBS="$ac_save_LIBS"
5703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5705 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5707 cat >> confdefs.h <<EOF
5708 #define $ac_tr_lib 1
5714 echo "$ac_t""no" 1>&6
5717 echo $ac_n "checking for catgets""... $ac_c" 1>&6
5718 echo "configure:5719: checking for catgets" >&5
5719 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 /* System header to define __stub macros and hopefully few prototypes,
5726 which can conflict with char catgets(); below. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5729 /* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5735 /* The GNU C library defines this for functions which it implements
5736 to always fail with ENOSYS. Some functions are actually named
5737 something starting with __ and the normal name is an alias. */
5738 #if defined (__stub_catgets) || defined (__stub___catgets)
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5748 eval "ac_cv_func_catgets=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 eval "ac_cv_func_catgets=no"
5758 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5760 cat >> confdefs.h <<\EOF
5761 #define HAVE_CATGETS 1
5764 INTLOBJS="\$(CATOBJS)"
5765 # Extract the first word of "gencat", so it can be a program name with args.
5766 set dummy gencat; ac_word=$2
5767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5768 echo "configure:5769: checking for $ac_word" >&5
5769 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5774 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5777 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5782 for ac_dir in $ac_dummy; do
5783 test -z "$ac_dir" && ac_dir=.
5784 if test -f $ac_dir/$ac_word; then
5785 gcc_cv_path_GENCAT="$ac_dir/$ac_word"
5790 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT="no"
5794 GENCAT="$gcc_cv_path_GENCAT"
5795 if test -n "$GENCAT"; then
5796 echo "$ac_t""$GENCAT" 1>&6
5798 echo "$ac_t""no" 1>&6
5800 if test "$GENCAT" != "no"; then
5801 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5802 set dummy gmsgfmt; ac_word=$2
5803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5804 echo "configure:5805: checking for $ac_word" >&5
5805 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5806 echo $ac_n "(cached) $ac_c" 1>&6
5810 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5813 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5818 for ac_dir in $ac_dummy; do
5819 test -z "$ac_dir" && ac_dir=.
5820 if test -f $ac_dir/$ac_word; then
5821 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5826 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="no"
5830 GMSGFMT="$gcc_cv_path_GMSGFMT"
5831 if test -n "$GMSGFMT"; then
5832 echo "$ac_t""$GMSGFMT" 1>&6
5834 echo "$ac_t""no" 1>&6
5837 if test "$GMSGFMT" = "no"; then
5838 # Extract the first word of "msgfmt", so it can be a program name with args.
5839 set dummy msgfmt; ac_word=$2
5840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_word" >&5
5842 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5847 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5851 for ac_dir in $PATH; do
5852 test -z "$ac_dir" && ac_dir=.
5853 if test -f $ac_dir/$ac_word; then
5854 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5855 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5861 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="msgfmt"
5865 GMSGFMT="$gcc_cv_path_GMSGFMT"
5866 if test -n "$GMSGFMT"; then
5867 echo "$ac_t""$GMSGFMT" 1>&6
5869 echo "$ac_t""no" 1>&6
5872 if test "$GMSGFMT" = "msgfmt"; then
5873 create_catalogs="no"
5876 # Extract the first word of "xgettext", so it can be a program name with args.
5877 set dummy xgettext; ac_word=$2
5878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5879 echo "configure:5880: checking for $ac_word" >&5
5880 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5885 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5889 for ac_dir in $PATH; do
5890 test -z "$ac_dir" && ac_dir=.
5891 if test -f $ac_dir/$ac_word; then
5892 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5893 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5899 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5903 XGETTEXT="$gcc_cv_path_XGETTEXT"
5904 if test -n "$XGETTEXT"; then
5905 echo "$ac_t""$XGETTEXT" 1>&6
5907 echo "$ac_t""no" 1>&6
5910 USE_INCLUDED_LIBINTL=yes
5914 INTLDEPS='$(top_builddir)/intl/libintl.a'
5916 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5917 nls_cv_header_intl=intl/libintl.h
5918 nls_cv_header_libgt=intl/libgettext.h
5921 echo "$ac_t""no" 1>&6
5927 if test "$CATOBJEXT" = "NONE"; then
5928 nls_cv_use_gnu_gettext=yes
5932 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5933 INTLOBJS="\$(GETTOBJS)"
5934 # Extract the first word of "msgfmt", so it can be a program name with args.
5935 set dummy msgfmt; ac_word=$2
5936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5937 echo "configure:5938: checking for $ac_word" >&5
5938 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5943 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5947 for ac_dir in $PATH; do
5948 test -z "$ac_dir" && ac_dir=.
5949 if test -f $ac_dir/$ac_word; then
5950 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5951 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5957 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="msgfmt"
5961 MSGFMT="$gcc_cv_path_MSGFMT"
5962 if test -n "$MSGFMT"; then
5963 echo "$ac_t""$MSGFMT" 1>&6
5965 echo "$ac_t""no" 1>&6
5968 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5969 set dummy gmsgfmt; ac_word=$2
5970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5971 echo "configure:5972: checking for $ac_word" >&5
5972 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5977 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5980 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5985 for ac_dir in $ac_dummy; do
5986 test -z "$ac_dir" && ac_dir=.
5987 if test -f $ac_dir/$ac_word; then
5988 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5993 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5997 GMSGFMT="$gcc_cv_path_GMSGFMT"
5998 if test -n "$GMSGFMT"; then
5999 echo "$ac_t""$GMSGFMT" 1>&6
6001 echo "$ac_t""no" 1>&6
6004 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
6005 create_catalogs="no"
6007 # Extract the first word of "xgettext", so it can be a program name with args.
6008 set dummy xgettext; ac_word=$2
6009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6010 echo "configure:6011: checking for $ac_word" >&5
6011 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6016 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6020 for ac_dir in $PATH; do
6021 test -z "$ac_dir" && ac_dir=.
6022 if test -f $ac_dir/$ac_word; then
6023 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6024 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
6030 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
6034 XGETTEXT="$gcc_cv_path_XGETTEXT"
6035 if test -n "$XGETTEXT"; then
6036 echo "$ac_t""$XGETTEXT" 1>&6
6038 echo "$ac_t""no" 1>&6
6042 USE_INCLUDED_LIBINTL=yes
6046 INTLDEPS='$(top_builddir)/intl/libintl.a'
6048 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
6049 nls_cv_header_intl=intl/libintl.h
6050 nls_cv_header_libgt=intl/libgettext.h
6053 if test "$XGETTEXT" != ":"; then
6054 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6057 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6064 # We need to process the po/ directory.
6068 nls_cv_header_intl=intl/libintl.h
6069 nls_cv_header_libgt=intl/libgettext.h
6075 # If this is used in GNU gettext we have to set USE_NLS to `yes'
6076 # because some of the sources are only built for this goal.
6077 if test "$PACKAGE" = gettext; then
6079 USE_INCLUDED_LIBINTL=yes
6082 for lang in $ALL_LINGUAS; do
6083 GMOFILES="$GMOFILES $lang.gmo"
6084 POFILES="$POFILES $lang.po"
6100 if test "x$create_catalogs" = "xno"; then
6101 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
6104 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
6105 if test "x$ALL_LINGUAS" = "x"; then
6108 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6109 echo "configure:6110: checking for catalogs to be installed" >&5
6110 if test "x$LINGUAS" = "x"; then
6111 LINGUAS=$ALL_LINGUAS
6114 for lang in $ALL_LINGUAS; do
6115 case " $LINGUAS " in
6116 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
6119 LINGUAS=$NEW_LINGUAS
6121 echo "$ac_t""$LINGUAS" 1>&6
6124 if test -n "$LINGUAS"; then
6125 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6129 if test $ac_cv_header_locale_h = yes; then
6130 INCLUDE_LOCALE_H="#include <locale.h>"
6133 /* The system does not provide the header <locale.h>. Take care yourself. */"
6137 test -d intl || mkdir intl
6138 if test "$CATOBJEXT" = ".cat"; then
6139 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
6140 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
6141 echo "configure:6142: checking for linux/version.h" >&5
6142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 #include <linux/version.h>
6150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6151 { (eval echo configure:6152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6153 if test -z "$ac_err"; then
6155 eval "ac_cv_header_$ac_safe=yes"
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6161 eval "ac_cv_header_$ac_safe=no"
6165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6169 echo "$ac_t""no" 1>&6
6174 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
6176 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
6177 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
6179 if test "$PACKAGE" = "gettext"; then
6190 if test -n "$ac_aux_dir"; then
6191 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6193 if test -z "$MKINSTALLDIRS"; then
6194 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6201 test -d po || mkdir po
6202 if test "x$srcdir" != "x."; then
6203 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6204 posrcprefix="$srcdir/"
6206 posrcprefix="../$srcdir/"
6212 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6213 < $srcdir/po/POTFILES.in > po/POTFILES
6215 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
6217 # Windows32 Registry support for specifying GCC installation paths.
6218 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6219 if test "${enable_win32_registry+set}" = set; then
6220 enableval="$enable_win32_registry"
6225 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6226 echo "configure:6227: checking whether windows registry support is requested" >&5
6227 if test x$enable_win32_registry != xno; then
6228 cat >> confdefs.h <<\EOF
6229 #define ENABLE_WIN32_REGISTRY 1
6232 echo "$ac_t""yes" 1>&6
6234 echo "$ac_t""no" 1>&6
6237 # Check if user specified a different registry key.
6238 case x${enable_win32_registry} in
6241 gcc_cv_win32_registry_key="$VERSION"
6244 # no registry lookup.
6245 gcc_cv_win32_registry_key=''
6248 # user-specified key.
6249 gcc_cv_win32_registry_key="$enable_win32_registry"
6253 if test x$enable_win32_registry != xno; then
6254 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6255 echo "configure:6256: checking registry key on windows hosts" >&5
6256 cat >> confdefs.h <<EOF
6257 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6260 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6263 # Get an absolute path to the GCC top-level source directory
6269 # Conditionalize the makefile for this host machine.
6270 # Make-host contains the concatenation of all host makefile fragments
6271 # [there can be more than one]. This file is built by configure.frag.
6272 host_overrides=Make-host
6273 dep_host_xmake_file=
6274 for f in .. ${host_xmake_file}
6276 if test -f ${srcdir}/config/$f
6278 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
6282 # Conditionalize the makefile for this target machine.
6283 # Make-target contains the concatenation of all host makefile fragments
6284 # [there can be more than one]. This file is built by configure.frag.
6285 target_overrides=Make-target
6287 for f in .. ${tmake_file}
6289 if test -f ${srcdir}/config/$f
6291 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
6295 # If the host doesn't support symlinks, modify CC in
6296 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6297 # Otherwise, we can use "CC=$(CC)".
6299 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
6301 cc_set_by_configure="\$(CC)"
6302 quoted_cc_set_by_configure="\$(CC)"
6303 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
6306 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
6308 symbolic_link="cp -p"
6312 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6313 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6314 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6318 out_object_file=`basename $out_file .c`.o
6321 for f in $tm_file; do
6324 tm_file_list="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6326 tm_file_list="${tm_file_list} $f" ;;
6327 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
6332 for f in $tm_p_file; do
6333 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
6337 for f in $host_xm_file; do
6340 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6341 auto-host.h | defaults.h )
6342 host_xm_file_list="${host_xm_file_list} $f" ;;
6343 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6348 for f in $build_xm_file; do
6351 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6352 auto-build.h | auto-host.h | defaults.h )
6353 build_xm_file_list="${build_xm_file_list} $f" ;;
6354 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6358 # Define macro CROSS_COMPILE in compilation
6359 # if this is a cross-compiler.
6360 # Also use all.cross instead of all.internal
6361 # and add cross-make to Makefile.
6362 cross_overrides="/dev/null"
6363 if test x$host != x$target
6365 cross_defines="CROSS=-DCROSS_COMPILE"
6366 cross_overrides="${topdir}/cross-make"
6369 # If this is a cross-compiler that does not
6370 # have its own set of headers then define
6373 # If this is using newlib, then define inhibit_libc in
6374 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
6375 # libgcc.a, but that's OK because newlib should have its own version of
6378 if test x$host != x$target && test x$with_headers = x; then
6379 inhibit_libc=-Dinhibit_libc
6381 if test x$with_newlib = xyes; then
6382 inhibit_libc=-Dinhibit_libc
6387 # When building gcc with a cross-compiler, we need to fix a few things.
6388 # This must come after cross-make as we want all.build to override
6390 build_overrides="/dev/null"
6391 if test x$build != x$host
6393 build_overrides="${topdir}/build-make"
6396 # Expand extra_headers to include complete path.
6397 # This substitutes for lots of t-* files.
6399 if test "x$extra_headers" = x
6402 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
6403 for file in $extra_headers;
6405 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
6409 if test x$use_collect2 = xno; then
6413 # Add a definition of USE_COLLECT2 if system wants one.
6414 # Also tell toplev.c what to do.
6415 # This substitutes for lots of t-* files.
6416 if test x$use_collect2 = x
6421 will_use_collect2="collect2"
6422 maybe_use_collect2="-DUSE_COLLECT2"
6425 # If we have gas in the build tree, make a link to it.
6426 if test -f ../gas/Makefile; then
6427 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
6430 # If we have nm in the build tree, make a link to it.
6431 if test -f ../binutils/Makefile; then
6432 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
6435 # If we have ld in the build tree, make a link to it.
6436 if test -f ../ld/Makefile; then
6437 # if test x$use_collect2 = x; then
6438 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
6440 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
6444 # Figure out what assembler we will be using.
6445 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6446 echo "configure:6447: checking what assembler to use" >&5
6448 gcc_cv_gas_major_version=
6449 gcc_cv_gas_minor_version=
6450 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6451 if test -x "$DEFAULT_ASSEMBLER"; then
6452 gcc_cv_as="$DEFAULT_ASSEMBLER"
6453 elif test -x "$AS"; then
6455 elif test -x as$host_exeext; then
6456 # Build using assembler in the current directory.
6457 gcc_cv_as=./as$host_exeext
6458 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
6459 # Single tree build which includes gas.
6460 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
6462 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6463 if test x$gcc_cv_gas_version != x; then
6467 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6468 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6471 if test "x$gcc_cv_as" = x -a x$host = x$target; then
6473 # Search the same directories that the installed compiler will
6474 # search. Else we may find the wrong assembler and lose. If we
6475 # do not find a suitable assembler binary, then try the user's
6478 # Also note we have to check MD_EXEC_PREFIX before checking the
6479 # user's path. Unfortunately, there is no good way to get at the
6480 # value of MD_EXEC_PREFIX here. So we do a brute force search
6481 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6482 # to be fixed as part of the make/configure rewrite too.
6484 if test "x$exec_prefix" = xNONE; then
6485 if test "x$prefix" = xNONE; then
6486 test_prefix=/usr/local
6491 test_prefix=$exec_prefix
6494 # If the loop below does not find an assembler, then use whatever
6495 # one we can find in the users's path.
6497 gcc_cv_as=as$host_exeext
6499 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6500 $test_prefix/lib/gcc-lib/$target \
6501 /usr/lib/gcc/$target/$gcc_version \
6502 /usr/lib/gcc/$target \
6503 $test_prefix/$target/bin/$target/$gcc_version \
6504 $test_prefix/$target/bin \
6509 /bsd43/usr/lib/cmplrs/cc \
6510 /usr/cross64/usr/bin \
6511 /usr/lib/cmplrs/cc \
6512 /sysv/usr/lib/cmplrs/cc \
6513 /svr4/usr/lib/cmplrs/cc \
6516 for dir in $test_dirs; do
6517 if test -f $dir/as$host_exeext; then
6518 gcc_cv_as=$dir/as$host_exeext
6523 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6524 echo "$ac_t"""newly built gas"" 1>&6
6526 echo "$ac_t""$gcc_cv_as" 1>&6
6529 # Figure out what nm we will be using.
6530 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
6531 echo "configure:6532: checking what nm to use" >&5
6532 if test -x nm$host_exeext; then
6533 gcc_cv_nm=./nm$host_exeext
6534 elif test x$host = x$target; then
6536 gcc_cv_nm=nm$host_exeext
6538 echo "$ac_t""$gcc_cv_nm" 1>&6
6540 # Figure out what assembler alignment features are present.
6541 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
6542 echo "configure:6543: checking assembler alignment features" >&5
6543 gcc_cv_as_alignment_features=none
6544 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6545 # Gas version 2.6 and later support for .balign and .p2align.
6546 # bytes to skip when using .p2align.
6547 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
6548 gcc_cv_as_alignment_features=".balign and .p2align"
6549 cat >> confdefs.h <<\EOF
6550 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6554 # Gas version 2.8 and later support specifying the maximum
6555 # bytes to skip when using .p2align.
6556 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
6557 gcc_cv_as_alignment_features=".p2align including maximum skip"
6558 cat >> confdefs.h <<\EOF
6559 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6563 elif test x$gcc_cv_as != x; then
6564 # Check if we have .balign and .p2align
6565 echo ".balign 4" > conftest.s
6566 echo ".p2align 2" >> conftest.s
6567 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6568 gcc_cv_as_alignment_features=".balign and .p2align"
6569 cat >> confdefs.h <<\EOF
6570 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6574 rm -f conftest.s conftest.o
6575 # Check if specifying the maximum bytes to skip when
6576 # using .p2align is supported.
6577 echo ".p2align 4,,7" > conftest.s
6578 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6579 gcc_cv_as_alignment_features=".p2align including maximum skip"
6580 cat >> confdefs.h <<\EOF
6581 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6585 rm -f conftest.s conftest.o
6587 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
6589 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
6590 echo "configure:6591: checking assembler subsection support" >&5
6591 gcc_cv_as_subsections=no
6592 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6593 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
6594 gcc_cv_as_subsections="working .subsection -1"
6596 elif test x$gcc_cv_as != x; then
6597 # Check if we have .subsection
6598 echo ".subsection 1" > conftest.s
6599 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6600 gcc_cv_as_subsections=".subsection"
6601 if test x$gcc_cv_nm != x; then
6602 cat > conftest.s <<EOF
6603 conftest_label1: .word 0
6605 conftest_label2: .word 0
6608 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6609 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
6610 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
6611 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
6614 gcc_cv_as_subsections="working .subsection -1"
6619 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6621 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
6622 cat >> confdefs.h <<\EOF
6623 #define HAVE_GAS_SUBSECTION_ORDERING 1
6627 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
6629 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
6630 echo "configure:6631: checking assembler weak support" >&5
6632 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6633 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
6634 gcc_cv_as_weak="yes"
6636 elif test x$gcc_cv_as != x; then
6637 # Check if we have .weak
6638 echo " .weak foobar" > conftest.s
6639 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6640 gcc_cv_as_weak="yes"
6642 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6644 if test x"$gcc_cv_as_weak" = xyes; then
6645 cat >> confdefs.h <<\EOF
6646 #define HAVE_GAS_WEAK 1
6650 echo "$ac_t""$gcc_cv_as_weak" 1>&6
6652 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
6653 echo "configure:6654: checking assembler hidden support" >&5
6655 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6656 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
6657 gcc_cv_as_hidden="yes"
6659 elif test x$gcc_cv_as != x; then
6660 # Check if we have .hidden
6661 echo " .hidden foobar" > conftest.s
6662 echo "foobar:" >> conftest.s
6663 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6664 gcc_cv_as_hidden="yes"
6666 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6668 if test x"$gcc_cv_as_hidden" = xyes; then
6669 cat >> confdefs.h <<\EOF
6670 #define HAVE_GAS_HIDDEN 1
6674 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
6676 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
6677 echo "configure:6678: checking assembler leb128 support" >&5
6679 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6680 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
6681 gcc_cv_as_leb128="yes"
6683 elif test x$gcc_cv_as != x; then
6684 # Check if we have .[us]leb128, and support symbol arithmetic with it.
6685 cat > conftest.s <<EOF
6693 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6694 gcc_cv_as_leb128="yes"
6696 # GAS versions before 2.11 do not support uleb128,
6697 # despite appearing to.
6698 # ??? There exists an elf-specific test that will crash
6699 # the assembler. Perhaps it's better to figure out whether
6700 # arbitrary sections are supported and try the test.
6701 as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
6702 if echo "$as_ver" | grep GNU > /dev/null; then
6703 as_ver=`echo $as_ver | sed -e 's/.* //'`
6704 as_major=`echo $as_ver | sed 's/\..*//'`
6705 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
6706 if test $as_major -eq 2 -a $as_minor -lt 11; then
6707 gcc_cv_as_leb128="no"
6711 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6713 if test x"$gcc_cv_as_leb128" = xyes; then
6714 cat >> confdefs.h <<\EOF
6715 #define HAVE_AS_LEB128 1
6719 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
6723 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
6724 echo "configure:6725: checking assembler .register pseudo-op support" >&5
6725 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6729 gcc_cv_as_register_pseudo_op=unknown
6730 if test x$gcc_cv_as != x; then
6731 # Check if we have .register
6732 echo ".register %g2, #scratch" > conftest.s
6733 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6734 gcc_cv_as_register_pseudo_op=yes
6736 gcc_cv_as_register_pseudo_op=no
6738 rm -f conftest.s conftest.o
6743 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
6744 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
6745 cat >> confdefs.h <<\EOF
6746 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6751 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
6752 echo "configure:6753: checking assembler supports -relax" >&5
6753 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6757 gcc_cv_as_relax_opt=unknown
6758 if test x$gcc_cv_as != x; then
6759 # Check if gas supports -relax
6760 echo ".text" > conftest.s
6761 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
6762 gcc_cv_as_relax_opt=yes
6764 gcc_cv_as_relax_opt=no
6766 rm -f conftest.s conftest.o
6771 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
6772 if test "x$gcc_cv_as_relax_opt" = xyes; then
6773 cat >> confdefs.h <<\EOF
6774 #define HAVE_AS_RELAX_OPTION 1
6781 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
6782 echo "configure:6783: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
6783 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6787 if test -n "$gcc_cv_as"; then
6788 echo ".xword foo" > conftest.s
6789 gcc_cv_as_flags64=no
6790 for flag in "-xarch=v9" "-64 -Av9"; do
6791 if $gcc_cv_as $flag -o conftest.o conftest.s \
6792 > /dev/null 2>&1; then
6793 gcc_cv_as_flags64=$flag
6797 rm -f conftest.s conftest.o
6799 if test "$gas" = yes; then
6800 gcc_cv_as_flags64="-64 -Av9"
6802 gcc_cv_as_flags64="-xarch=v9"
6808 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
6809 if test "x$gcc_cv_as_flags64" = xno; then
6811 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6812 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6815 cat >> confdefs.h <<EOF
6816 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
6821 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
6825 if test "x$gcc_cv_as_flags64" != xno; then
6826 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6827 echo "configure:6828: checking for assembler offsetable %lo() support" >&5
6828 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6832 gcc_cv_as_offsetable_lo10=unknown
6833 if test "x$gcc_cv_as" != x; then
6834 # Check if assembler has offsetable %lo()
6835 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6836 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6837 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
6839 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
6840 > /dev/null 2>&1; then
6841 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
6842 gcc_cv_as_offsetable_lo10=no
6844 gcc_cv_as_offsetable_lo10=yes
6847 gcc_cv_as_offsetable_lo10=no
6849 rm -f conftest.s conftest.o conftest1.s conftest1.o
6854 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6855 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
6856 cat >> confdefs.h <<\EOF
6857 #define HAVE_AS_OFFSETABLE_LO10 1
6865 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6866 echo "configure:6867: checking assembler instructions" >&5
6867 gcc_cv_as_instructions=
6868 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6869 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
6870 gcc_cv_as_instructions="filds fists"
6872 elif test x$gcc_cv_as != x; then
6873 set "filds fists" "filds mem; fists mem"
6876 echo "$2" > conftest.s
6877 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6878 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
6882 rm -f conftest.s conftest.o
6884 if test x"$gcc_cv_as_instructions" != x; then
6885 cat >> confdefs.h <<EOF
6886 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6890 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6894 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6895 echo "configure:6896: checking assembler dwarf2 debug_line support" >&5
6896 gcc_cv_as_dwarf2_debug_line=no
6897 # ??? Not all targets support dwarf2 debug_line, even within a version
6898 # of gas. Moreover, we need to emit a valid instruction to trigger any
6899 # info to the output file. So, as supported targets are added to gas 2.11,
6900 # add some instruction here to (also) show we expect this might work.
6901 # ??? Once 2.11 is released, probably need to add first known working
6902 # version to the per-target configury.
6904 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-*)
6911 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
6913 if test "$gcc_cv_gas_major_version" -eq 2 \
6914 -a "$gcc_cv_gas_minor_version" -ge 11 \
6915 -o "$gcc_cv_gas_major_version" -gt 2 \
6916 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
6917 && test x"$insn" != x ; then
6918 gcc_cv_as_dwarf2_debug_line="yes"
6920 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
6921 echo ' .file 1 "conftest.s"' > conftest.s
6922 echo ' .loc 1 3 0' >> conftest.s
6923 echo " $insn" >> conftest.s
6924 # ??? This fails with non-gnu grep.
6925 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
6926 && grep debug_line conftest.o > /dev/null 2>&1 ; then
6927 # The .debug_line file table must be in the exact order that
6928 # we specified the files, since these indicies are also used
6929 # by DW_AT_decl_file. Approximate this test by testing if
6930 # the assembler bitches if the same index is assigned twice.
6931 echo ' .file 1 "foo.s"' > conftest.s
6932 echo ' .file 1 "bar.s"' >> conftest.s
6933 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1
6935 gcc_cv_as_dwarf2_debug_line="no"
6937 gcc_cv_as_dwarf2_debug_line="yes"
6940 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6942 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
6943 cat >> confdefs.h <<\EOF
6944 #define HAVE_AS_DWARF2_DEBUG_LINE 1
6948 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
6950 # Figure out what language subdirectories are present.
6951 # Look if the user specified --enable-languages="..."; if not, use
6952 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6954 if test x"${enable_languages+set}" != xset; then
6955 if test x"${LANGUAGES+set}" = xset; then
6956 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
6958 enable_languages=all
6961 if test x"${enable_languages}" = x; then
6962 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
6966 # First scan to see if an enabled language requires some other language.
6967 # We assume that a given config-lang.in will list all the language
6968 # front ends it requires, even if some are required indirectly.
6969 for lang in ${srcdir}/*/config-lang.in ..
6974 # The odd quoting in the next line works around
6975 # an apparent bug in bash 1.12 on linux.
6976 ${srcdir}/[*]/config-lang.in)
6979 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6980 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
6981 for other in $this_lang_requires
6983 case ,${enable_languages}, in
6989 enable_languages="$enable_languages,$other"
6998 for lang in ${srcdir}/*/config-lang.in ..
7002 # The odd quoting in the next line works around
7003 # an apparent bug in bash 1.12 on linux.
7004 ${srcdir}/[*]/config-lang.in) ;;
7006 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7007 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7008 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7009 if test "x$lang_alias" = x
7011 echo "$lang doesn't set \$language." 1>&2
7014 case ${build_by_default},${enable_languages}, in
7015 *,$lang_alias,*) add_this_lang=yes ;;
7016 no,*) add_this_lang=no ;;
7017 *,all,*) add_this_lang=yes ;;
7018 *) add_this_lang=no ;;
7020 if test x"${add_this_lang}" = xyes; then
7022 ${srcdir}/ada/config-lang.in)
7023 if test x$have_gnat = xyes ; then
7024 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7028 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7036 # Make gthr-default.h if we have a thread file.
7038 if test $thread_file != single; then
7039 rm -f gthr-default.h
7040 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7041 gthread_flags=-DHAVE_GTHR_DEFAULT
7045 # Find out what GC implementation we want, or may, use.
7046 # Check whether --with-gc or --without-gc was given.
7047 if test "${with_gc+set}" = set; then
7054 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7062 echo "Using $GGC for garbage collection."
7064 # Use the system's zlib library.
7066 zlibinc="-I\$(srcdir)/../zlib"
7067 # Check whether --with-system-zlib or --without-system-zlib was given.
7068 if test "${with_system_zlib+set}" = set; then
7069 withval="$with_system_zlib"
7079 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7080 echo "configure:7081: checking whether to enable maintainer-specific portions of Makefiles" >&5
7081 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7082 if test "${enable_maintainer_mode+set}" = set; then
7083 enableval="$enable_maintainer_mode"
7084 maintainer_mode=$enableval
7090 echo "$ac_t""$maintainer_mode" 1>&6
7092 if test "$maintainer_mode" = "yes"; then
7098 # With Setjmp/Longjmp based exception handling.
7099 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7100 if test "${enable_sjlj_exceptions+set}" = set; then
7101 enableval="$enable_sjlj_exceptions"
7102 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
7103 cat >> confdefs.h <<EOF
7104 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
7110 # Make empty files to contain the specs and options for each language.
7111 # Then add #include lines to for a compiler that has specs and/or options.
7116 rm -f specs.h options.h gencheck.h
7117 touch specs.h options.h gencheck.h
7118 for subdir in . $subdirs
7120 if test -f $srcdir/$subdir/lang-specs.h; then
7121 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
7122 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7124 if test -f $srcdir/$subdir/lang-options.h; then
7125 echo "#include \"$subdir/lang-options.h\"" >>options.h
7126 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
7128 if test -f $srcdir/$subdir/$subdir-tree.def; then
7129 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
7130 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7134 # These (without "all_") are set in each config-lang.in.
7135 # `language' must be a single word so is spelled singularly.
7141 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
7142 # List of language makefile fragments.
7147 # Add the language fragments.
7148 # Languages are added via two mechanisms. Some information must be
7149 # recorded in makefile variables, these are defined in config-lang.in.
7150 # We accumulate them and plug them into the main Makefile.
7151 # The other mechanism is a set of hooks for each of the main targets
7152 # like `clean', `install', etc.
7154 language_fragments="Make-lang"
7155 language_hooks="Make-hooks"
7157 for s in .. $subdirs
7169 . ${srcdir}/$s/config-lang.in
7170 if test "x$language" = x
7172 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7175 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
7176 if test -f ${srcdir}/$s/Makefile.in
7177 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
7179 all_languages="$all_languages $language"
7180 if test "x$boot_language" = xyes
7182 all_boot_languages="$all_boot_languages $language"
7184 all_compilers="$all_compilers $compilers"
7185 all_stagestuff="$all_stagestuff $stagestuff"
7186 all_diff_excludes="$all_diff_excludes $diff_excludes"
7187 all_headers="$all_headers $headers"
7188 all_outputs="$all_outputs $outputs"
7189 all_lib2funcs="$all_lib2funcs $lib2funcs"
7194 for language in .. $all_languages
7196 if test $language != ".."
7198 check_languages="$check_languages check-$language"
7202 # Since we can't use `::' targets, we link each language in
7203 # with a set of hooks, reached indirectly via lang.${target}.
7207 target_list="all.build all.cross start.encap rest.encap \
7209 install-normal install-common install-info install-man \
7211 mostlyclean clean distclean extraclean maintainer-clean \
7212 stage1 stage2 stage3 stage4"
7213 for t in $target_list
7216 for lang in .. $all_languages
7218 if test $lang != ".."; then
7222 echo "lang.$t: $x" >> Make-hooks
7227 echo "dir ." > .gdbinit
7228 echo "dir ${srcdir}" >> .gdbinit
7229 if test x$gdb_needs_out_file_path = xyes
7231 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7233 if test "x$subdirs" != x; then
7236 echo "dir ${srcdir}/$s" >> .gdbinit
7239 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
7241 # Define variables host_canonical and build_canonical
7242 # because some Cygnus local changes in the Makefile depend on them.
7243 build_canonical=${build}
7244 host_canonical=${host}
7246 if test "${host}" != "${target}" ; then
7247 target_subdir=${target_alias}/
7253 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
7254 # absolute path for gcc_tooldir based on inserting the number of up-directory
7255 # movements required to get from $(exec_prefix) to $(prefix) into the basic
7256 # $(libsubdir)/@(unlibsubdir) based path.
7257 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
7258 # make and thus we'd get different behavior depending on where we built the
7260 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
7261 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
7263 # An explanation of the sed strings:
7264 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
7265 # -e 's|/$||' match a trailing forward slash and eliminates it
7266 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
7267 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
7269 # (*) Note this pattern overwrites the first character of the string
7270 # with a forward slash if one is not already present. This is not a
7271 # problem because the exact names of the sub-directories concerned is
7272 # unimportant, just the number of them matters.
7274 # The practical upshot of these patterns is like this:
7276 # prefix exec_prefix result
7277 # ------ ----------- ------
7279 # /foo/ /foo/bar ../
7280 # /foo /foo/bar/ ../
7281 # /foo/ /foo/bar/ ../
7282 # /foo /foo/bar/ugg ../../
7285 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
7290 # Find a directory in which to install a shared libgcc.
7292 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
7293 if test "${enable_version_specific_runtime_libs+set}" = set; then
7294 enableval="$enable_version_specific_runtime_libs"
7299 # Check whether --with-slibdir or --without-slibdir was given.
7300 if test "${with_slibdir+set}" = set; then
7301 withval="$with_slibdir"
7302 slibdir="$with_slibdir"
7304 if test "${enable_version_specific_runtime_libs+set}" = set; then
7305 slibdir='$(libsubdir)'
7306 elif test "$host" != "$target"; then
7307 slibdir='$(build_tooldir)/lib'
7315 # Nothing to do for FLOAT_H, float_format already handled.
7319 # Process the language and host/target makefile fragments.
7320 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
7322 # Substitute configuration variables
7393 # Echo that links are built
7394 if test x$host = x$target
7402 if test x$host != x$build
7404 str3=" on a $build system"
7407 if test "x$str2" != x || test "x$str3" != x
7412 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
7414 if test "x$str2" != x || test "x$str3" != x
7416 echo " ${str2}${str3}." 1>&2
7419 # Truncate the target if necessary
7420 if test x$host_truncate_target != x; then
7421 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
7424 # Configure the subdirectories
7425 # AC_CONFIG_SUBDIRS($subdirs)
7427 # Create the Makefile
7428 # and configure language subdirectories
7430 cat > confcache <<\EOF
7431 # This file is a shell script that caches the results of configure
7432 # tests run on this system so they can be shared between configure
7433 # scripts and configure runs. It is not useful on other systems.
7434 # If it contains results you don't want to keep, you may remove or edit it.
7436 # By default, configure uses ./config.cache as the cache file,
7437 # creating it if it does not exist already. You can give configure
7438 # the --cache-file=FILE option to use a different cache file; that is
7439 # what configure does when it calls configure scripts in
7440 # subdirectories, so they share the cache.
7441 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7442 # config.status only pays attention to the cache file if you give it the
7443 # --recheck option to rerun configure.
7446 # The following way of writing the cache mishandles newlines in values,
7447 # but we know of no workaround that is simple, portable, and efficient.
7448 # So, don't put newlines in cache variables' values.
7449 # Ultrix sh set writes to stderr and can't be redirected directly,
7450 # and sets the high bit in the cache file unless we assign to the vars.
7452 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7454 # `set' does not quote correctly, so add quotes (double-quote substitution
7455 # turns \\\\ into \\, and sed turns \\ into \).
7457 -e "s/'/'\\\\''/g" \
7458 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7461 # `set' quotes correctly as required by POSIX, so do not add quotes.
7462 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7465 if cmp -s $cache_file confcache; then
7468 if test -w $cache_file; then
7469 echo "updating cache $cache_file"
7470 cat confcache > $cache_file
7472 echo "not updating unwritable cache $cache_file"
7477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7480 # Let make expand exec_prefix.
7481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7483 # Any assignment to VPATH causes Sun make to only execute
7484 # the first set of double-colon rules, so remove it if not needed.
7485 # If there is a colon in the path, we need to keep it.
7486 if test "x$srcdir" = x.; then
7487 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7492 DEFS=-DHAVE_CONFIG_H
7494 # Without the "./", some shells look in PATH for config.status.
7495 : ${CONFIG_STATUS=./config.status}
7497 echo creating $CONFIG_STATUS
7498 rm -f $CONFIG_STATUS
7499 cat > $CONFIG_STATUS <<EOF
7501 # Generated automatically by configure.
7502 # Run this file to recreate the current configuration.
7503 # This directory was configured as follows,
7504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7506 # $0 $ac_configure_args
7508 # Compiler output produced by configure, useful for debugging
7509 # configure, is in ./config.log if it exists.
7511 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7514 case "\$ac_option" in
7515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7516 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7519 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7521 -help | --help | --hel | --he | --h)
7522 echo "\$ac_cs_usage"; exit 0 ;;
7523 *) echo "\$ac_cs_usage"; exit 1 ;;
7527 ac_given_srcdir=$srcdir
7529 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7531 cat >> $CONFIG_STATUS <<EOF
7533 # Protect against being on the right side of a sed subst in config.status.
7534 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7535 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7539 s%@CFLAGS@%$CFLAGS%g
7540 s%@CPPFLAGS@%$CPPFLAGS%g
7541 s%@CXXFLAGS@%$CXXFLAGS%g
7542 s%@FFLAGS@%$FFLAGS%g
7544 s%@LDFLAGS@%$LDFLAGS%g
7546 s%@exec_prefix@%$exec_prefix%g
7547 s%@prefix@%$prefix%g
7548 s%@program_transform_name@%$program_transform_name%g
7549 s%@bindir@%$bindir%g
7550 s%@sbindir@%$sbindir%g
7551 s%@libexecdir@%$libexecdir%g
7552 s%@datadir@%$datadir%g
7553 s%@sysconfdir@%$sysconfdir%g
7554 s%@sharedstatedir@%$sharedstatedir%g
7555 s%@localstatedir@%$localstatedir%g
7556 s%@libdir@%$libdir%g
7557 s%@includedir@%$includedir%g
7558 s%@oldincludedir@%$oldincludedir%g
7559 s%@infodir@%$infodir%g
7560 s%@mandir@%$mandir%g
7561 s%@enable_multilib@%$enable_multilib%g
7562 s%@enable_shared@%$enable_shared%g
7564 s%@host_alias@%$host_alias%g
7565 s%@host_cpu@%$host_cpu%g
7566 s%@host_vendor@%$host_vendor%g
7567 s%@host_os@%$host_os%g
7568 s%@target@%$target%g
7569 s%@target_alias@%$target_alias%g
7570 s%@target_cpu@%$target_cpu%g
7571 s%@target_vendor@%$target_vendor%g
7572 s%@target_os@%$target_os%g
7574 s%@build_alias@%$build_alias%g
7575 s%@build_cpu@%$build_cpu%g
7576 s%@build_vendor@%$build_vendor%g
7577 s%@build_os@%$build_os%g
7579 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
7580 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
7581 s%@strict1_warn@%$strict1_warn%g
7583 s%@warn_cflags@%$warn_cflags%g
7584 s%@stage1_cflags@%$stage1_cflags%g
7585 s%@SET_MAKE@%$SET_MAKE%g
7589 s%@RANLIB@%$RANLIB%g
7590 s%@INSTALL@%$INSTALL%g
7591 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7592 s%@INSTALL_DATA@%$INSTALL_DATA%g
7593 s%@have_gnat@%$have_gnat%g
7594 s%@have_mktemp_command@%$have_mktemp_command%g
7595 s%@MAKEINFO@%$MAKEINFO%g
7596 s%@BUILD_INFO@%$BUILD_INFO%g
7597 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
7600 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
7601 s%@vfprintf@%$vfprintf%g
7602 s%@doprint@%$doprint%g
7603 s%@strstr@%$strstr%g
7604 s%@manext@%$manext%g
7605 s%@objext@%$objext%g
7606 s%@PACKAGE@%$PACKAGE%g
7607 s%@VERSION@%$VERSION%g
7608 s%@CHECK_PO@%$CHECK_PO%g
7609 s%@USE_NLS@%$USE_NLS%g
7610 s%@MSGFMT@%$MSGFMT%g
7611 s%@GMSGFMT@%$GMSGFMT%g
7612 s%@XGETTEXT@%$XGETTEXT%g
7613 s%@GENCAT@%$GENCAT%g
7614 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7615 s%@CATALOGS@%$CATALOGS%g
7616 s%@CATOBJEXT@%$CATOBJEXT%g
7617 s%@DATADIRNAME@%$DATADIRNAME%g
7618 s%@GMOFILES@%$GMOFILES%g
7619 s%@INSTOBJEXT@%$INSTOBJEXT%g
7620 s%@INTLDEPS@%$INTLDEPS%g
7621 s%@INTLLIBS@%$INTLLIBS%g
7622 s%@INTLOBJS@%$INTLOBJS%g
7623 s%@POFILES@%$POFILES%g
7625 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7627 s%@GT_YES@%$GT_YES%g
7628 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7630 s%@inhibit_libc@%$inhibit_libc%g
7631 s%@gthread_flags@%$gthread_flags%g
7633 s%@zlibdir@%$zlibdir%g
7634 s%@zlibinc@%$zlibinc%g
7636 s%@build_canonical@%$build_canonical%g
7637 s%@host_canonical@%$host_canonical%g
7638 s%@target_subdir@%$target_subdir%g
7639 s%@gcc_tooldir@%$gcc_tooldir%g
7640 s%@dollar@%$dollar%g
7641 s%@slibdir@%$slibdir%g
7642 s%@objdir@%$objdir%g
7643 s%@subdirs@%$subdirs%g
7644 s%@all_boot_languages@%$all_boot_languages%g
7645 s%@all_compilers@%$all_compilers%g
7646 s%@all_diff_excludes@%$all_diff_excludes%g
7647 s%@all_headers@%$all_headers%g
7648 s%@all_lang_makefiles@%$all_lang_makefiles%g
7649 s%@all_languages@%$all_languages%g
7650 s%@all_lib2funcs@%$all_lib2funcs%g
7651 s%@all_stagestuff@%$all_stagestuff%g
7652 s%@build_exeext@%$build_exeext%g
7653 s%@build_install_headers_dir@%$build_install_headers_dir%g
7654 s%@build_xm_file_list@%$build_xm_file_list%g
7655 s%@build_xm_file@%$build_xm_file%g
7656 s%@build_xm_defines@%$build_xm_defines%g
7657 s%@check_languages@%$check_languages%g
7658 s%@cc_set_by_configure@%$cc_set_by_configure%g
7659 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
7660 s%@cpp_install_dir@%$cpp_install_dir%g
7661 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
7662 s%@dep_tmake_file@%$dep_tmake_file%g
7663 s%@extra_c_flags@%$extra_c_flags%g
7664 s%@extra_headers_list@%$extra_headers_list%g
7665 s%@extra_objs@%$extra_objs%g
7666 s%@extra_parts@%$extra_parts%g
7667 s%@extra_passes@%$extra_passes%g
7668 s%@extra_programs@%$extra_programs%g
7669 s%@float_h_file@%$float_h_file%g
7670 s%@gcc_config_arguments@%$gcc_config_arguments%g
7671 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
7672 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
7673 s%@gcc_version@%$gcc_version%g
7674 s%@gcc_version_full@%$gcc_version_full%g
7675 s%@gcc_version_trigger@%$gcc_version_trigger%g
7676 s%@host_exeext@%$host_exeext%g
7677 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
7678 s%@host_xm_file_list@%$host_xm_file_list%g
7679 s%@host_xm_file@%$host_xm_file%g
7680 s%@host_xm_defines@%$host_xm_defines%g
7681 s%@install@%$install%g
7682 s%@lang_options_files@%$lang_options_files%g
7683 s%@lang_specs_files@%$lang_specs_files%g
7684 s%@lang_tree_files@%$lang_tree_files%g
7685 s%@local_prefix@%$local_prefix%g
7686 s%@maybe_use_collect2@%$maybe_use_collect2%g
7687 s%@md_file@%$md_file%g
7688 s%@objc_boehm_gc@%$objc_boehm_gc%g
7689 s%@out_file@%$out_file%g
7690 s%@out_object_file@%$out_object_file%g
7691 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
7692 s%@symbolic_link@%$symbolic_link%g
7693 s%@thread_file@%$thread_file%g
7694 s%@tm_file_list@%$tm_file_list%g
7695 s%@tm_file@%$tm_file%g
7696 s%@tm_p_file_list@%$tm_p_file_list%g
7697 s%@tm_p_file@%$tm_p_file%g
7698 s%@xm_file@%$xm_file%g
7699 s%@xm_defines@%$xm_defines%g
7700 s%@will_use_collect2@%$will_use_collect2%g
7701 s%@c_target_objs@%$c_target_objs%g
7702 s%@cxx_target_objs@%$cxx_target_objs%g
7703 s%@target_cpu_default@%$target_cpu_default%g
7704 /@target_overrides@/r $target_overrides
7705 s%@target_overrides@%%g
7706 /@host_overrides@/r $host_overrides
7707 s%@host_overrides@%%g
7708 s%@cross_defines@%$cross_defines%g
7709 /@cross_overrides@/r $cross_overrides
7710 s%@cross_overrides@%%g
7711 /@build_overrides@/r $build_overrides
7712 s%@build_overrides@%%g
7713 /@language_fragments@/r $language_fragments
7714 s%@language_fragments@%%g
7715 /@language_hooks@/r $language_hooks
7716 s%@language_hooks@%%g
7721 cat >> $CONFIG_STATUS <<\EOF
7723 # Split the substitutions into bite-sized pieces for seds with
7724 # small command number limits, like on Digital OSF/1 and HP-UX.
7725 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7726 ac_file=1 # Number of current file.
7727 ac_beg=1 # First line for current file.
7728 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7731 while $ac_more_lines; do
7732 if test $ac_beg -gt 1; then
7733 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7735 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7737 if test ! -s conftest.s$ac_file; then
7739 rm -f conftest.s$ac_file
7741 if test -z "$ac_sed_cmds"; then
7742 ac_sed_cmds="sed -f conftest.s$ac_file"
7744 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7746 ac_file=`expr $ac_file + 1`
7748 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7751 if test -z "$ac_sed_cmds"; then
7756 cat >> $CONFIG_STATUS <<EOF
7758 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
7760 cat >> $CONFIG_STATUS <<\EOF
7761 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7762 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7764 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7765 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7766 *) ac_file_in="${ac_file}.in" ;;
7769 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7771 # Remove last slash and all that follows it. Not all systems have dirname.
7772 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7773 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7774 # The file is in a subdirectory.
7775 test ! -d "$ac_dir" && mkdir "$ac_dir"
7776 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7777 # A "../" for each directory in $ac_dir_suffix.
7778 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7780 ac_dir_suffix= ac_dots=
7783 case "$ac_given_srcdir" in
7785 if test -z "$ac_dots"; then top_srcdir=.
7786 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7787 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7789 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7790 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7794 echo creating "$ac_file"
7796 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7798 *Makefile*) ac_comsub="1i\\
7799 # $configure_input" ;;
7803 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7805 s%@configure_input@%$configure_input%g
7806 s%@srcdir@%$srcdir%g
7807 s%@top_srcdir@%$top_srcdir%g
7808 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7812 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7813 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7815 # ac_d sets the value in "#define NAME VALUE" lines.
7816 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7817 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7820 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7821 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7822 ac_uB='\([ ]\)%\1#\2define\3'
7825 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7826 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7827 ac_eB='$%\1#\2define\3'
7831 if test "${CONFIG_HEADERS+set}" != set; then
7833 cat >> $CONFIG_STATUS <<EOF
7834 CONFIG_HEADERS="auto-host.h:config.in"
7836 cat >> $CONFIG_STATUS <<\EOF
7838 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7841 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7842 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7843 *) ac_file_in="${ac_file}.in" ;;
7846 echo creating $ac_file
7848 rm -f conftest.frag conftest.in conftest.out
7849 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7850 cat $ac_file_inputs > conftest.in
7854 # Transform confdefs.h into a sed script conftest.vals that substitutes
7855 # the proper values into config.h.in to produce config.h. And first:
7856 # Protect against being on the right side of a sed subst in config.status.
7857 # Protect against being in an unquoted here document in config.status.
7859 cat > conftest.hdr <<\EOF
7862 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7866 sed -n -f conftest.hdr confdefs.h > conftest.vals
7869 # This sed command replaces #undef with comments. This is necessary, for
7870 # example, in the case of _POSIX_SOURCE, which is predefined and required
7871 # on some systems where configure will not decide to define it.
7872 cat >> conftest.vals <<\EOF
7873 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7876 # Break up conftest.vals because some shells have a limit on
7877 # the size of here documents, and old seds have small limits too.
7882 ac_lines=`grep -c . conftest.vals`
7883 # grep -c gives empty output for an empty file on some AIX systems.
7884 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7885 # Write a limited-size here document to conftest.frag.
7886 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7887 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7889 sed -f conftest.frag conftest.in > conftest.out
7891 mv conftest.out conftest.in
7893 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7895 mv conftest.tail conftest.vals
7899 cat >> $CONFIG_STATUS <<\EOF
7900 rm -f conftest.frag conftest.h
7901 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7902 cat conftest.in >> conftest.h
7904 if cmp -s $ac_file conftest.h 2>/dev/null; then
7905 echo "$ac_file is unchanged"
7908 # Remove last slash and all that follows it. Not all systems have dirname.
7909 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7910 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7911 # The file is in a subdirectory.
7912 test ! -d "$ac_dir" && mkdir "$ac_dir"
7915 mv conftest.h $ac_file
7921 cat >> $CONFIG_STATUS <<EOF
7922 ac_sources="$nls_cv_header_libgt"
7923 ac_dests="$nls_cv_header_intl"
7926 cat >> $CONFIG_STATUS <<\EOF
7927 srcdir=$ac_given_srcdir
7928 while test -n "$ac_sources"; do
7929 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7930 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7932 echo "linking $srcdir/$ac_source to $ac_dest"
7934 if test ! -r $srcdir/$ac_source; then
7935 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7939 # Make relative symlinks.
7940 # Remove last slash and all that follows it. Not all systems have dirname.
7941 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7942 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7943 # The dest file is in a subdirectory.
7944 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7945 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7946 # A "../" for each directory in $ac_dest_dir_suffix.
7947 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7949 ac_dest_dir_suffix= ac_dots=
7953 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7954 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7957 # Make a symlink if possible; otherwise try a hard link.
7958 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7959 ln $srcdir/$ac_source $ac_dest; then :
7961 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7965 cat >> $CONFIG_STATUS <<EOF
7971 target_alias='${target_alias}'
7973 subdirs='${subdirs}'
7974 symbolic_link='${symbolic_link}'
7975 program_transform_set='${program_transform_set}'
7976 program_transform_name='${program_transform_name}'
7977 dep_host_xmake_file='${dep_host_xmake_file}'
7978 host_xmake_file='${host_xmake_file}'
7979 dep_tmake_file='${dep_tmake_file}'
7980 tmake_file='${tmake_file}'
7981 thread_file='${thread_file}'
7982 gcc_config_arguments='${gcc_config_arguments}'
7983 gcc_version='${gcc_version}'
7984 gcc_version_full='${gcc_version_full}'
7985 gcc_version_trigger='${gcc_version_trigger}'
7986 local_prefix='${local_prefix}'
7987 build_install_headers_dir='${build_install_headers_dir}'
7988 build_exeext='${build_exeext}'
7989 host_exeext='${host_exeext}'
7990 out_file='${out_file}'
7991 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7992 SET_MAKE='${SET_MAKE}'
7993 target_list='${target_list}'
7994 target_overrides='${target_overrides}'
7995 host_overrides='${host_overrides}'
7996 cross_defines='${cross_defines}'
7997 cross_overrides='${cross_overrides}'
7998 build_overrides='${build_overrides}'
7999 cpp_install_dir='${cpp_install_dir}'
8002 cat >> $CONFIG_STATUS <<\EOF
8003 case "$CONFIG_FILES" in *po/Makefile.in*)
8004 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8007 case x$CONFIG_HEADERS in
8008 xauto-host.h:config.in)
8011 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8012 # bootstrapping and the installation procedure can still use
8013 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8014 # FLAGS_TO_PASS has been modified to solve the problem there.
8015 # This is virtually a duplicate of what happens in configure.lang; we do
8016 # an extra check to make sure this only happens if ln -s can be used.
8017 if test "$symbolic_link" = "ln -s"; then
8018 for d in .. ${subdirs} ; do
8019 if test $d != ..; then
8022 for t in stage1 stage2 stage3 stage4 include
8025 $symbolic_link ../$t $t 2>/dev/null
8031 # Avoid having to add intl to our include paths.
8032 if test -f intl/libintl.h; then
8033 echo creating libintl.h
8034 echo '#include "intl/libintl.h"' >libintl.h
8039 chmod +x $CONFIG_STATUS
8040 rm -fr confdefs* $ac_clean_files
8041 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1