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 DWARF 2"
56 --disable-shared don't provide a shared libgcc"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --enable-nls use Native Language Support (default)"
62 --disable-nls do not use Native Language Support"
64 --with-included-gettext use the GNU gettext library included here"
66 --with-catgets use catgets functions if available"
68 --disable-win32-registry
69 disable lookup of installation paths in the
70 Registry on Windows hosts
71 --enable-win32-registry enable registry lookup (default)
72 --enable-win32-registry=KEY
73 use KEY instead of GCC version as the last portion
76 --with-gc={simple,page} choose the garbage collection mechanism to use
79 --with-system-zlib use installed libz"
81 --enable-maintainer-mode
82 enable make rules and dependencies not useful
83 (and sometimes confusing) to the casual installer"
85 --enable-sjlj-exceptions
86 arrange to use setjmp/longjmp exception handling"
88 --enable-version-specific-runtime-libs
89 specify that runtime libraries should be
90 installed in a compiler-specific directory"
92 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file=./config.cache
107 program_transform_name=s,x,x,
115 bindir='${exec_prefix}/bin'
116 sbindir='${exec_prefix}/sbin'
117 libexecdir='${exec_prefix}/libexec'
118 datadir='${prefix}/share'
119 sysconfdir='${prefix}/etc'
120 sharedstatedir='${prefix}/com'
121 localstatedir='${prefix}/var'
122 libdir='${exec_prefix}/lib'
123 includedir='${prefix}/include'
124 oldincludedir='/usr/include'
125 infodir='${prefix}/info'
126 mandir='${prefix}/man'
128 # Initialize some other variables.
131 SHELL=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev=cache_file ;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
176 datadir="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev=exec_prefix ;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host | --host | --hos | --ho)
270 -host=* | --host=* | --hos=* | --ho=*)
273 -includedir | --includedir | --includedi | --included | --include \
274 | --includ | --inclu | --incl | --inc)
275 ac_prev=includedir ;;
276 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
277 | --includ=* | --inclu=* | --incl=* | --inc=*)
278 includedir="$ac_optarg" ;;
280 -infodir | --infodir | --infodi | --infod | --info | --inf)
282 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
283 infodir="$ac_optarg" ;;
285 -libdir | --libdir | --libdi | --libd)
287 -libdir=* | --libdir=* | --libdi=* | --libd=*)
288 libdir="$ac_optarg" ;;
290 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
291 | --libexe | --libex | --libe)
292 ac_prev=libexecdir ;;
293 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
294 | --libexe=* | --libex=* | --libe=*)
295 libexecdir="$ac_optarg" ;;
297 -localstatedir | --localstatedir | --localstatedi | --localstated \
298 | --localstate | --localstat | --localsta | --localst \
299 | --locals | --local | --loca | --loc | --lo)
300 ac_prev=localstatedir ;;
301 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
302 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
303 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
304 localstatedir="$ac_optarg" ;;
306 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
308 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 mandir="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
319 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
320 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
323 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
324 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
325 | --oldin | --oldi | --old | --ol | --o)
326 ac_prev=oldincludedir ;;
327 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
328 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
329 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
330 oldincludedir="$ac_optarg" ;;
332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
335 prefix="$ac_optarg" ;;
337 -program-prefix | --program-prefix | --program-prefi | --program-pref \
338 | --program-pre | --program-pr | --program-p)
339 ac_prev=program_prefix ;;
340 -program-prefix=* | --program-prefix=* | --program-prefi=* \
341 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
342 program_prefix="$ac_optarg" ;;
344 -program-suffix | --program-suffix | --program-suffi | --program-suff \
345 | --program-suf | --program-su | --program-s)
346 ac_prev=program_suffix ;;
347 -program-suffix=* | --program-suffix=* | --program-suffi=* \
348 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
349 program_suffix="$ac_optarg" ;;
351 -program-transform-name | --program-transform-name \
352 | --program-transform-nam | --program-transform-na \
353 | --program-transform-n | --program-transform- \
354 | --program-transform | --program-transfor \
355 | --program-transfo | --program-transf \
356 | --program-trans | --program-tran \
357 | --progr-tra | --program-tr | --program-t)
358 ac_prev=program_transform_name ;;
359 -program-transform-name=* | --program-transform-name=* \
360 | --program-transform-nam=* | --program-transform-na=* \
361 | --program-transform-n=* | --program-transform-=* \
362 | --program-transform=* | --program-transfor=* \
363 | --program-transfo=* | --program-transf=* \
364 | --program-trans=* | --program-tran=* \
365 | --progr-tra=* | --program-tr=* | --program-t=*)
366 program_transform_name="$ac_optarg" ;;
368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
369 | -silent | --silent | --silen | --sile | --sil)
372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
376 sbindir="$ac_optarg" ;;
378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
380 | --sharedst | --shareds | --shared | --share | --shar \
382 ac_prev=sharedstatedir ;;
383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
387 sharedstatedir="$ac_optarg" ;;
389 -site | --site | --sit)
391 -site=* | --site=* | --sit=*)
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev=sysconfdir ;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev=x_includes ;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev=x_libraries ;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE; then
561 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp='$CPP $CPPFLAGS'
584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
599 ac_n= ac_c='\c' ac_t=
607 symbolic_link='ln -s'
610 # Check for bogus environment variables.
611 # Test if LIBRARY_PATH contains the notation for the current directory
612 # since this would lead to problems installing/building glibc.
613 # LIBRARY_PATH contains the current directory if one of the following
615 # - one of the terminals (":" and ";") is the first or last sign
616 # - two terminals occur directly after each other
617 # - the path contains an element with a dot in it
618 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
619 echo "configure:620: checking LIBRARY_PATH variable" >&5
620 case ${LIBRARY_PATH} in
621 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
622 library_path_setting="contains current directory"
625 library_path_setting="ok"
628 echo "$ac_t""$library_path_setting" 1>&6
629 if test "$library_path_setting" != "ok"; then
630 { echo "configure: error:
631 *** LIBRARY_PATH shouldn't contain the current directory when
632 *** building gcc. Please change the environment variable
633 *** and run configure again." 1>&2; exit 1; }
636 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
637 # since this would lead to problems installing/building glibc.
638 # GCC_EXEC_PREFIX contains the current directory if one of the following
640 # - one of the terminals (":" and ";") is the first or last sign
641 # - two terminals occur directly after each other
642 # - the path contains an element with a dot in it
643 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
644 echo "configure:645: checking GCC_EXEC_PREFIX variable" >&5
645 case ${GCC_EXEC_PREFIX} in
646 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
647 gcc_exec_prefix_setting="contains current directory"
650 gcc_exec_prefix_setting="ok"
653 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
654 if test "$gcc_exec_prefix_setting" != "ok"; then
655 { echo "configure: error:
656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
657 *** building gcc. Please change the environment variable
658 *** and run configure again." 1>&2; exit 1; }
661 # Check for additional parameters
664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
665 if test "${with_gnu_ld+set}" = set; then
666 withval="$with_gnu_ld"
667 gnu_ld_flag="$with_gnu_ld"
673 # With pre-defined ld
674 # Check whether --with-ld or --without-ld was given.
675 if test "${with_ld+set}" = set; then
677 DEFAULT_LINKER="$with_ld"
680 if test x"${DEFAULT_LINKER+set}" = x"set"; then
681 if test ! -x "$DEFAULT_LINKER"; then
682 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
683 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
686 cat >> confdefs.h <<EOF
687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
693 # Check whether --with-gnu-as or --without-gnu-as was given.
694 if test "${with_gnu_as+set}" = set; then
695 withval="$with_gnu_as"
696 gas_flag="$with_gnu_as"
702 # Check whether --with-as or --without-as was given.
703 if test "${with_as+set}" = set; then
705 DEFAULT_ASSEMBLER="$with_as"
708 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
709 if test ! -x "$DEFAULT_ASSEMBLER"; then
710 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
711 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
714 cat >> confdefs.h <<EOF
715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
721 # Check whether --with-stabs or --without-stabs was given.
722 if test "${with_stabs+set}" = set; then
723 withval="$with_stabs"
731 # Check whether --with-elf or --without-elf was given.
732 if test "${with_elf+set}" = set; then
740 # Specify the local prefix
742 # Check whether --with-local-prefix or --without-local-prefix was given.
743 if test "${with_local_prefix+set}" = set; then
744 withval="$with_local_prefix"
746 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
748 *) local_prefix=$with_local_prefix ;;
753 # Default local prefix if it is empty
754 if test x$local_prefix = x; then
755 local_prefix=/usr/local
758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
759 # passed in by the toplevel make and thus we'd get different behavior
760 # depending on where we built the sources.
762 # Specify the g++ header file directory
763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
764 if test "${with_gxx_include_dir+set}" = set; then
765 withval="$with_gxx_include_dir"
767 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
769 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
774 if test x${gcc_gxx_include_dir} = x; then
775 if test x${enable_version_specific_runtime_libs} = xyes; then
776 gcc_gxx_include_dir='${libsubdir}/include/g++'
778 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
779 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
783 # Determine whether or not multilibs are enabled.
784 # Check whether --enable-multilib or --disable-multilib was given.
785 if test "${enable_multilib+set}" = set; then
786 enableval="$enable_multilib"
794 # Enable expensive internal checks
795 # Check whether --enable-checking or --disable-checking was given.
796 if test "${enable_checking+set}" = set; then
797 enableval="$enable_checking"
802 ac_gc_always_collect=
803 case "${enableval}" in
804 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
806 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
807 set fnord $enableval; shift
812 misc) ac_checking=1 ;;
813 tree) ac_tree_checking=1 ;;
814 rtl) ac_rtl_checking=1 ;;
815 gc) ac_gc_checking=1 ;;
816 gcac) ac_gc_always_collect=1 ;;
817 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Enable some checks by default for development versions of GCC
825 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
828 if test x$ac_checking != x ; then
829 cat >> confdefs.h <<\EOF
830 #define ENABLE_CHECKING 1
834 if test x$ac_tree_checking != x ; then
835 cat >> confdefs.h <<\EOF
836 #define ENABLE_TREE_CHECKING 1
840 if test x$ac_rtl_checking != x ; then
841 cat >> confdefs.h <<\EOF
842 #define ENABLE_RTL_CHECKING 1
846 if test x$ac_gc_checking != x ; then
847 cat >> confdefs.h <<\EOF
848 #define ENABLE_GC_CHECKING 1
852 if test x$ac_gc_always_collect != x ; then
853 cat >> confdefs.h <<\EOF
854 #define ENABLE_GC_ALWAYS_COLLECT 1
860 # Check whether --enable-cpp or --disable-cpp was given.
861 if test "${enable_cpp+set}" = set; then
862 enableval="$enable_cpp"
869 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
870 if test "${with_cpp_install_dir+set}" = set; then
871 withval="$with_cpp_install_dir"
872 if test x$withval = xyes; then
873 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
874 elif test x$withval != xno; then
875 cpp_install_dir=$withval
880 # Enable Multibyte Characters for C/C++
881 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
882 if test "${enable_c_mbchar+set}" = set; then
883 enableval="$enable_c_mbchar"
884 if test x$enable_c_mbchar != xno; then
885 cat >> confdefs.h <<\EOF
886 #define MULTIBYTE_CHARS 1
894 # Pass with no value to take the default
895 # Pass with a value to specify a thread package
896 # Check whether --enable-threads or --disable-threads was given.
897 if test "${enable_threads+set}" = set; then
898 enableval="$enable_threads"
905 enable_threads_flag=$enable_threads
906 # Check if a valid thread package
907 case x${enable_threads_flag} in
910 target_thread_file='single'
914 target_thread_file=''
916 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
917 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix)
918 target_thread_file=$enable_threads_flag
921 echo "$enable_threads is an unknown thread package" 1>&2
926 # Check whether --enable-objc-gc or --disable-objc-gc was given.
927 if test "${enable_objc_gc+set}" = set; then
928 enableval="$enable_objc_gc"
929 if test x$enable_objc_gc = xno; then
939 # Check whether --with-dwarf2 or --without-dwarf2 was given.
940 if test "${with_dwarf2+set}" = set; then
941 withval="$with_dwarf2"
942 dwarf2="$with_dwarf2"
948 # Check whether --enable-shared or --disable-shared was given.
949 if test "${enable_shared+set}" = set; then
950 enableval="$enable_shared"
952 case $enable_shared in
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
957 for pkg in $enableval; do
958 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
972 # Determine the host, build, and target systems
974 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
975 if test -f $ac_dir/install-sh; then
977 ac_install_sh="$ac_aux_dir/install-sh -c"
979 elif test -f $ac_dir/install.sh; then
981 ac_install_sh="$ac_aux_dir/install.sh -c"
985 if test -z "$ac_aux_dir"; then
986 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988 ac_config_guess=$ac_aux_dir/config.guess
989 ac_config_sub=$ac_aux_dir/config.sub
990 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
993 # Do some error checking and defaulting for the host and target type.
995 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 # 2. Host defaults to nonopt.
1001 # 3. If nonopt is not specified, then host defaults to the current host,
1002 # as determined by config.guess.
1003 # 4. Target and build default to nonopt.
1004 # 5. If nonopt is not specified, then target and build default to host.
1006 # The aliases save the names the user supplied, while $host etc.
1007 # will get canonicalized.
1008 case $host---$target---$nonopt in
1009 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1010 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1014 # Make sure we can run config.sub.
1015 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1016 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019 echo $ac_n "checking host system type""... $ac_c" 1>&6
1020 echo "configure:1021: checking host system type" >&5
1023 case "$host_alias" in
1027 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 *) host_alias=$nonopt ;;
1034 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 echo "$ac_t""$host" 1>&6
1040 echo $ac_n "checking target system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking target system type" >&5
1043 target_alias=$target
1044 case "$target_alias" in
1047 NONE) target_alias=$host_alias ;;
1048 *) target_alias=$nonopt ;;
1052 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$ac_t""$target" 1>&6
1058 echo $ac_n "checking build system type""... $ac_c" 1>&6
1059 echo "configure:1060: checking build system type" >&5
1062 case "$build_alias" in
1065 NONE) build_alias=$host_alias ;;
1066 *) build_alias=$nonopt ;;
1070 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074 echo "$ac_t""$build" 1>&6
1076 test "$host_alias" != "$target_alias" &&
1077 test "$program_prefix$program_suffix$program_transform_name" = \
1079 program_prefix=${target_alias}-
1082 # Find the native compiler
1083 # Extract the first word of "gcc", so it can be a program name with args.
1084 set dummy gcc; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 if test -n "$CC"; then
1091 ac_cv_prog_CC="$CC" # Let the user override the test.
1093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1095 for ac_dir in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 # Extract the first word of "cc", so it can be a program name with args.
1114 set dummy cc; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC="$CC" # Let the user override the test.
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1126 for ac_dir in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir=.
1128 if test -f $ac_dir/$ac_word; then
1129 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1130 ac_prog_rejected=yes
1138 if test $ac_prog_rejected = yes; then
1139 # We found a bogon in the path, so make sure we never use it.
1140 set dummy $ac_cv_prog_CC
1142 if test $# -gt 0; then
1143 # We chose a different compiler from the bogus one.
1144 # However, it has the same basename, so the bogon will be chosen
1145 # first if we set CC to just the basename; use the full file name.
1147 set dummy "$ac_dir/$ac_word" "$@"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1158 echo "$ac_t""no" 1>&6
1161 if test -z "$CC"; then
1162 case "`uname -s`" in
1164 # Extract the first word of "cl", so it can be a program name with args.
1165 set dummy cl; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC="$CC" # Let the user override the test.
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1176 for ac_dir in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir=.
1178 if test -f $ac_dir/$ac_word; then
1187 if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1190 echo "$ac_t""no" 1>&6
1195 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling=$ac_cv_prog_cc_cross
1208 cat > conftest.$ac_ext << EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1216 ac_cv_prog_cc_works=yes
1217 # If we can't run a trivial program, we are probably using a cross compiler.
1218 if (./conftest; exit) 2>/dev/null; then
1219 ac_cv_prog_cc_cross=no
1221 ac_cv_prog_cc_cross=yes
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1226 ac_cv_prog_cc_works=no
1230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling=$ac_cv_prog_cc_cross
1236 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1237 if test $ac_cv_prog_cc_works = no; then
1238 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1240 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1242 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1243 cross_compiling=$ac_cv_prog_cc_cross
1245 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether we are using GNU C" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 cat > conftest.c <<EOF
1255 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1262 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1264 if test $ac_cv_prog_gcc = yes; then
1270 ac_test_CFLAGS="${CFLAGS+set}"
1271 ac_save_CFLAGS="$CFLAGS"
1273 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${CC-cc} accepts -g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 echo 'void f(){}' > conftest.c
1279 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1288 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1289 if test "$ac_test_CFLAGS" = set; then
1290 CFLAGS="$ac_save_CFLAGS"
1291 elif test $ac_cv_prog_cc_g = yes; then
1292 if test "$GCC" = yes; then
1298 if test "$GCC" = yes; then
1305 if test "x$CC" != xcc; then
1306 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1307 echo "configure:1308: checking whether $CC and cc understand -c and -o together" >&5
1309 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1310 echo "configure:1311: checking whether cc understands -c and -o together" >&5
1312 set dummy $CC; ac_cc="`echo $2 |
1313 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1314 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 echo 'foo(){}' > conftest.c
1318 # Make sure it works both with $CC and with simple cc.
1319 # We do the test twice because some compilers refuse to overwrite an
1320 # existing .o file with -o, though they will create one.
1321 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1322 if { (eval echo configure:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1323 test -f conftest.o && { (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1325 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1326 if test "x$CC" != xcc; then
1327 # Test first that cc exists at all.
1328 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1329 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1330 if { (eval echo configure:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1331 test -f conftest.o && { (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1336 # cc exists but doesn't like -o.
1337 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1342 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1347 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1348 echo "$ac_t""yes" 1>&6
1350 echo "$ac_t""no" 1>&6
1351 cat >> confdefs.h <<\EOF
1352 #define NO_MINUS_C_MINUS_O 1
1357 # autoconf is lame and doesn't give us any substitution variable for this.
1358 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1359 NO_MINUS_C_MINUS_O=yes
1361 OUTPUT_OPTION='-o $@'
1366 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1367 echo "configure:1368: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 save_CFLAGS="$CFLAGS"
1372 CFLAGS="-Wno-long-long"
1373 cat > conftest.$ac_ext <<EOF
1374 #line 1375 "configure"
1375 #include "confdefs.h"
1381 if { (eval echo configure:1382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1383 ac_cv_prog_cc_no_long_long=yes
1385 echo "configure: failed program was:" >&5
1386 cat conftest.$ac_ext >&5
1388 ac_cv_prog_cc_no_long_long=no
1391 CFLAGS="$save_CFLAGS"
1394 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1396 if test $ac_cv_prog_cc_no_long_long = yes; then
1397 strict1_warn="-pedantic -Wno-long-long"
1401 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1402 echo "configure:1403: checking how to run the C preprocessor" >&5
1403 # On Suns, sometimes $CPP names a directory.
1404 if test -n "$CPP" && test -d "$CPP"; then
1407 if test -z "$CPP"; then
1408 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 # This must be in double quotes, not single quotes, because CPP may get
1412 # substituted into the Makefile and "${CC-cc}" will confuse make.
1414 # On the NeXT, cc -E runs the code through the compiler's parser,
1415 # not just through cpp.
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1423 { (eval echo configure:1424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1425 if test -z "$ac_err"; then
1429 echo "configure: failed program was:" >&5
1430 cat conftest.$ac_ext >&5
1432 CPP="${CC-cc} -E -traditional-cpp"
1433 cat > conftest.$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1440 { (eval echo configure:1441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1442 if test -z "$ac_err"; then
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1449 CPP="${CC-cc} -nologo -E"
1450 cat > conftest.$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1457 { (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1459 if test -z "$ac_err"; then
1463 echo "configure: failed program was:" >&5
1464 cat conftest.$ac_ext >&5
1473 ac_cv_prog_CPP="$CPP"
1475 CPP="$ac_cv_prog_CPP"
1477 ac_cv_prog_CPP="$CPP"
1479 echo "$ac_t""$CPP" 1>&6
1481 echo $ac_n "checking for inline""... $ac_c" 1>&6
1482 echo "configure:1483: checking for inline" >&5
1483 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1487 for ac_kw in inline __inline__ __inline; do
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1496 if { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1498 ac_cv_c_inline=$ac_kw; break
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1508 echo "$ac_t""$ac_cv_c_inline" 1>&6
1509 case "$ac_cv_c_inline" in
1511 no) cat >> confdefs.h <<\EOF
1515 *) cat >> confdefs.h <<EOF
1516 #define inline $ac_cv_c_inline
1521 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1522 echo "configure:1523: checking for volatile" >&5
1523 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 cat > conftest.$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1534 if { (eval echo configure:1535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1536 gcc_cv_c_volatile=yes
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1541 gcc_cv_c_volatile=no
1546 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1547 if test $gcc_cv_c_volatile = yes ; then
1548 cat >> confdefs.h <<\EOF
1549 #define HAVE_VOLATILE 1
1555 echo $ac_n "checking for long double""... $ac_c" 1>&6
1556 echo "configure:1557: checking for long double" >&5
1557 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 if test "$GCC" = yes; then
1561 gcc_cv_c_long_double=yes
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1568 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1569 long double foo = 0.0;
1570 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1571 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1574 if { (eval echo configure:1575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1576 gcc_cv_c_long_double=yes
1578 echo "configure: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1581 gcc_cv_c_long_double=no
1587 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1588 if test $gcc_cv_c_long_double = yes; then
1589 cat >> confdefs.h <<\EOF
1590 #define HAVE_LONG_DOUBLE 1
1595 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1596 echo "configure:1597: checking for long long int" >&5
1597 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1608 if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 ac_cv_c_long_long=yes
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 ac_cv_c_long_long=no
1620 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1621 if test $ac_cv_c_long_long = yes; then
1622 cat >> confdefs.h <<\EOF
1623 #define HAVE_LONG_LONG 1
1627 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1628 echo "configure:1629: checking for __int64" >&5
1629 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1640 if { (eval echo configure:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1644 echo "configure: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1652 echo "$ac_t""$ac_cv_c___int64" 1>&6
1653 if test $ac_cv_c___int64 = yes; then
1654 cat >> confdefs.h <<\EOF
1655 #define HAVE___INT64 1
1660 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1661 echo "configure:1662: checking for built-in _Bool" >&5
1662 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1673 if { (eval echo configure:1674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1677 echo "configure: failed program was:" >&5
1678 cat conftest.$ac_ext >&5
1686 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1687 if test $gcc_cv_c__bool = yes; then
1688 cat >> confdefs.h <<\EOF
1689 #define HAVE__BOOL 1
1695 # sizeof(char) is 1 by definition.
1696 echo $ac_n "checking size of short""... $ac_c" 1>&6
1697 echo "configure:1698: checking size of short" >&5
1698 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 #include "confdefs.h"
1706 #include <sys/types.h>
1710 switch (0) case 0: case (sizeof (short) == $ac_size):;
1713 if { (eval echo configure:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1715 ac_cv_sizeof_short=$ac_size
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1721 if test x$ac_cv_sizeof_short != x ; then break; fi
1726 if test x$ac_cv_sizeof_short = x ; then
1727 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1729 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1730 cat >> confdefs.h <<EOF
1731 #define SIZEOF_SHORT $ac_cv_sizeof_short
1735 echo $ac_n "checking size of int""... $ac_c" 1>&6
1736 echo "configure:1737: checking size of int" >&5
1737 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 #include "confdefs.h"
1745 #include <sys/types.h>
1749 switch (0) case 0: case (sizeof (int) == $ac_size):;
1752 if { (eval echo configure:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1754 ac_cv_sizeof_int=$ac_size
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1760 if test x$ac_cv_sizeof_int != x ; then break; fi
1765 if test x$ac_cv_sizeof_int = x ; then
1766 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1768 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1769 cat >> confdefs.h <<EOF
1770 #define SIZEOF_INT $ac_cv_sizeof_int
1774 echo $ac_n "checking size of long""... $ac_c" 1>&6
1775 echo "configure:1776: checking size of long" >&5
1776 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783 #include "confdefs.h"
1784 #include <sys/types.h>
1788 switch (0) case 0: case (sizeof (long) == $ac_size):;
1791 if { (eval echo configure:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1793 ac_cv_sizeof_long=$ac_size
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1799 if test x$ac_cv_sizeof_long != x ; then break; fi
1804 if test x$ac_cv_sizeof_long = x ; then
1805 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1807 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1808 cat >> confdefs.h <<EOF
1809 #define SIZEOF_LONG $ac_cv_sizeof_long
1813 if test $ac_cv_c_long_long = yes; then
1814 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1815 echo "configure:1816: checking size of long long" >&5
1816 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 #include "confdefs.h"
1824 #include <sys/types.h>
1828 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1831 if { (eval echo configure:1832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833 ac_cv_sizeof_long_long=$ac_size
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1839 if test x$ac_cv_sizeof_long_long != x ; then break; fi
1844 if test x$ac_cv_sizeof_long_long = x ; then
1845 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1847 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1848 cat >> confdefs.h <<EOF
1849 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1854 if test $ac_cv_c___int64 = yes; then
1855 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1856 echo "configure:1857: checking size of __int64" >&5
1857 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 #include "confdefs.h"
1865 #include <sys/types.h>
1869 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
1872 if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1874 ac_cv_sizeof___int64=$ac_size
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1880 if test x$ac_cv_sizeof___int64 != x ; then break; fi
1885 if test x$ac_cv_sizeof___int64 = x ; then
1886 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1888 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1889 cat >> confdefs.h <<EOF
1890 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1896 echo $ac_n "checking execution character set""... $ac_c" 1>&6
1897 echo "configure:1898: checking execution character set" >&5
1898 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
1905 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
1909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1910 egrep "ASCII" >/dev/null 2>&1; then
1912 ac_cv_c_charset=ASCII
1916 if test x${ac_cv_c_charset+set} != xset; then
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
1921 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
1925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1926 egrep "EBCDIC" >/dev/null 2>&1; then
1928 ac_cv_c_charset=EBCDIC
1933 if test x${ac_cv_c_charset+set} != xset; then
1934 ac_cv_c_charset=unknown
1938 echo "$ac_t""$ac_cv_c_charset" 1>&6
1939 if test $ac_cv_c_charset = unknown; then
1940 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
1941 elif test $ac_cv_c_charset = EBCDIC; then
1942 cat >> confdefs.h <<\EOF
1943 #define HOST_EBCDIC 1
1948 # If the native compiler is GCC, we can enable warnings even in stage1.
1949 # That's useful for people building cross-compilers, or just running a
1952 if test "x$GCC" = "xyes"; then
1953 warn_cflags='$(GCC_WARN_CFLAGS)'
1957 # Stage specific cflags for build.
1961 if test x$GCC = xyes
1963 stage1_cflags="-Wa,-J"
1971 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1972 echo "configure:1973: checking whether ${MAKE-make} sets \${MAKE}" >&5
1973 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1974 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftestmake <<\EOF
1979 @echo 'ac_maketemp="${MAKE}"'
1981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1982 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1983 if test -n "$ac_maketemp"; then
1984 eval ac_cv_prog_make_${ac_make}_set=yes
1986 eval ac_cv_prog_make_${ac_make}_set=no
1990 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1991 echo "$ac_t""yes" 1>&6
1994 echo "$ac_t""no" 1>&6
1995 SET_MAKE="MAKE=${MAKE-make}"
1999 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2000 echo "configure:2001: checking whether a default assembler was specified" >&5
2001 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2002 if test x"$gas_flag" = x"no"; then
2003 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2005 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2008 echo "$ac_t""no" 1>&6
2011 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether a default linker was specified" >&5
2013 if test x"${DEFAULT_LINKER+set}" = x"set"; then
2014 if test x"$gnu_ld_flag" = x"no"; then
2015 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2017 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2020 echo "$ac_t""no" 1>&6
2023 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2024 echo "configure:2025: checking for GNU C library" >&5
2025 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 #include <features.h>
2034 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2035 #error Not a GNU C library system
2039 if { (eval echo configure:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2051 echo "$ac_t""$gcc_cv_glibc" 1>&6
2052 if test $gcc_cv_glibc = yes; then
2053 cat >> confdefs.h <<\EOF
2054 #define _GNU_SOURCE 1
2059 # Find some useful tools
2060 for ac_prog in mawk gawk nawk awk
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2065 echo "configure:2066: checking for $ac_word" >&5
2066 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 if test -n "$AWK"; then
2070 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2074 for ac_dir in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir=.
2076 if test -f $ac_dir/$ac_word; then
2077 ac_cv_prog_AWK="$ac_prog"
2084 AWK="$ac_cv_prog_AWK"
2085 if test -n "$AWK"; then
2086 echo "$ac_t""$AWK" 1>&6
2088 echo "$ac_t""no" 1>&6
2091 test -n "$AWK" && break
2094 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2095 echo "configure:2096: checking whether ln works" >&5
2096 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 rm -f conftestdata_t
2100 echo >conftestdata_f
2101 if ln conftestdata_f conftestdata_t 2>/dev/null
2105 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2107 gcc_cv_prog_LN="ln -s"
2112 rm -f conftestdata_f conftestdata_t
2115 LN="$gcc_cv_prog_LN"
2116 if test "$gcc_cv_prog_LN" = "ln"; then
2117 echo "$ac_t""yes" 1>&6
2119 if test "$gcc_cv_prog_LN" = "ln -s"; then
2120 echo "$ac_t""no, using ln -s" 1>&6
2122 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2126 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2127 echo "configure:2128: checking whether ln -s works" >&5
2128 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 rm -f conftestdata_t
2132 echo >conftestdata_f
2133 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2135 gcc_cv_prog_LN_S="ln -s"
2137 if ln conftestdata_f conftestdata_t 2>/dev/null
2144 rm -f conftestdata_f conftestdata_t
2147 LN_S="$gcc_cv_prog_LN_S"
2148 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2149 echo "$ac_t""yes" 1>&6
2151 if test "$gcc_cv_prog_LN_S" = "ln"; then
2152 echo "$ac_t""no, using ln" 1>&6
2154 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2158 # Extract the first word of "ranlib", so it can be a program name with args.
2159 set dummy ranlib; ac_word=$2
2160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_word" >&5
2162 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 if test -n "$RANLIB"; then
2166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2170 for ac_dir in $ac_dummy; do
2171 test -z "$ac_dir" && ac_dir=.
2172 if test -f $ac_dir/$ac_word; then
2173 ac_cv_prog_RANLIB="ranlib"
2178 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2181 RANLIB="$ac_cv_prog_RANLIB"
2182 if test -n "$RANLIB"; then
2183 echo "$ac_t""$RANLIB" 1>&6
2185 echo "$ac_t""no" 1>&6
2188 # Find a good install program. We prefer a C program (faster),
2189 # so one script is as good as another. But avoid the broken or
2190 # incompatible versions:
2191 # SysV /etc/install, /usr/sbin/install
2192 # SunOS /usr/etc/install
2193 # IRIX /sbin/install
2195 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2196 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2197 # ./install, which can be erroneously created by make from ./install.sh.
2198 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2199 echo "configure:2200: checking for a BSD compatible install" >&5
2200 if test -z "$INSTALL"; then
2201 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2205 for ac_dir in $PATH; do
2206 # Account for people who put trailing slashes in PATH elements.
2208 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2210 # OSF1 and SCO ODT 3.0 have their own names for install.
2211 for ac_prog in ginstall scoinst install; do
2212 if test -f $ac_dir/$ac_prog; then
2213 if test $ac_prog = install &&
2214 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2215 # AIX install. It has an incompatible calling convention.
2216 # OSF/1 installbsd also uses dspmsg, but is usable.
2219 ac_cv_path_install="$ac_dir/$ac_prog -c"
2230 if test "${ac_cv_path_install+set}" = set; then
2231 INSTALL="$ac_cv_path_install"
2233 # As a last resort, use the slow shell script. We don't cache a
2234 # path for INSTALL within a source directory, because that will
2235 # break other packages using the cache if that directory is
2236 # removed, or if the path is relative.
2237 INSTALL="$ac_install_sh"
2240 echo "$ac_t""$INSTALL" 1>&6
2242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2243 # It thinks the first close brace ends the variable substitution.
2244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2246 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2249 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2250 echo "configure:2251: checking for ANSI C header files" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2263 { (eval echo configure:2264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2265 if test -z "$ac_err"; then
2267 ac_cv_header_stdc=yes
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2273 ac_cv_header_stdc=no
2277 if test $ac_cv_header_stdc = yes; then
2278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2285 egrep "memchr" >/dev/null 2>&1; then
2289 ac_cv_header_stdc=no
2295 if test $ac_cv_header_stdc = yes; then
2296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2303 egrep "free" >/dev/null 2>&1; then
2307 ac_cv_header_stdc=no
2313 if test $ac_cv_header_stdc = yes; then
2314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2315 if test "$cross_compiling" = yes; then
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2322 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2323 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2325 int main () { int i; for (i = 0; i < 256; i++)
2326 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2330 if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 ac_cv_header_stdc=no
2345 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2346 if test $ac_cv_header_stdc = yes; then
2347 cat >> confdefs.h <<\EOF
2348 #define STDC_HEADERS 1
2353 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2354 echo "configure:2355: checking whether time.h and sys/time.h may both be included" >&5
2355 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2361 #include <sys/types.h>
2362 #include <sys/time.h>
2368 if { (eval echo configure:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2370 ac_cv_header_time=yes
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 ac_cv_header_time=no
2380 echo "$ac_t""$ac_cv_header_time" 1>&6
2381 if test $ac_cv_header_time = yes; then
2382 cat >> confdefs.h <<\EOF
2383 #define TIME_WITH_SYS_TIME 1
2388 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2389 echo "configure:2390: checking for working stdbool.h" >&5
2390 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2396 #include <stdbool.h>
2401 if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2403 ac_cv_header_stdbool_h=yes
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2408 ac_cv_header_stdbool_h=no
2413 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2414 if test $ac_cv_header_stdbool_h = yes; then
2415 cat >> confdefs.h <<\EOF
2416 #define HAVE_STDBOOL_H 1
2421 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2422 echo "configure:2423: checking whether string.h and strings.h may both be included" >&5
2423 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2430 #include <strings.h>
2435 if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2437 gcc_cv_header_string=yes
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 gcc_cv_header_string=no
2447 echo "$ac_t""$gcc_cv_header_string" 1>&6
2448 if test $gcc_cv_header_string = yes; then
2449 cat >> confdefs.h <<\EOF
2450 #define STRING_WITH_STRINGS 1
2455 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2456 echo "configure:2457: checking for sys/wait.h that is POSIX.1 compatible" >&5
2457 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <sys/types.h>
2464 #include <sys/wait.h>
2466 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2469 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2474 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2477 if { (eval echo configure:2478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2479 ac_cv_header_sys_wait_h=yes
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 ac_cv_header_sys_wait_h=no
2489 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2490 if test $ac_cv_header_sys_wait_h = yes; then
2491 cat >> confdefs.h <<\EOF
2492 #define HAVE_SYS_WAIT_H 1
2497 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2498 fcntl.h unistd.h sys/file.h sys/time.h \
2499 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2500 direct.h malloc.h langinfo.h
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2541 # Check for thread headers.
2542 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2544 echo "configure:2545: checking for thread.h" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2572 echo "$ac_t""no" 1>&6
2576 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2577 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2578 echo "configure:2579: checking for pthread.h" >&5
2579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 #include <pthread.h>
2587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2588 { (eval echo configure:2589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2590 if test -z "$ac_err"; then
2592 eval "ac_cv_header_$ac_safe=yes"
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2598 eval "ac_cv_header_$ac_safe=no"
2602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2603 echo "$ac_t""yes" 1>&6
2606 echo "$ac_t""no" 1>&6
2611 # These tests can't be done till we know if we have limits.h.
2612 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2613 echo "configure:2614: checking for CHAR_BIT" >&5
2614 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #ifdef HAVE_LIMITS_H
2627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2628 egrep "found" >/dev/null 2>&1; then
2630 gcc_cv_decl_char_bit=yes
2633 gcc_cv_decl_char_bit=no
2640 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2641 if test $gcc_cv_decl_char_bit = no; then
2642 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2643 echo "configure:2644: checking number of bits in a byte" >&5
2644 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2649 while test $i -lt 65; do
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2656 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2657 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2661 if { (eval echo configure:2662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2663 gcc_cv_c_nbby=$i; break
2665 echo "configure: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2671 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
2675 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2676 if test $gcc_cv_c_nbby = failed; then
2677 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2679 cat >> confdefs.h <<EOF
2680 #define CHAR_BIT $gcc_cv_c_nbby
2685 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2686 echo "configure:2687: checking byte ordering" >&5
2687 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2688 echo $ac_n "(cached) $ac_c" 1>&6
2690 ac_cv_c_compile_endian=unknown
2693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2697 cross_compiling=$ac_cv_prog_cc_cross
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2703 #ifdef HAVE_LIMITS_H
2704 # include <limits.h>
2706 /* This structure must have no internal padding. */
2708 char prefix[sizeof "\nendian:" - 1];
2713 #if SIZEOF_SHORT == 4
2714 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2716 ('A' << CHAR_BIT) | 'B',
2720 if { (eval echo configure:2721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2722 sed 's/^[0-7]*[ ]*/ /
2725 s/ [0-9][0-9][0-9]/./g
2731 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
2732 ac_cv_c_compile_endian=big-endian
2733 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
2734 ac_cv_c_compile_endian=little-endian
2739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2740 ac_cpp='$CPP $CPPFLAGS'
2741 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2742 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2743 cross_compiling=$ac_cv_prog_cc_cross
2748 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2749 if test $ac_cv_c_compile_endian = unknown; then
2750 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2751 elif test $ac_cv_c_compile_endian = big-endian; then
2752 cat >> confdefs.h <<\EOF
2753 #define HOST_WORDS_BIG_ENDIAN 1
2758 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2759 echo "configure:2760: checking floating point format" >&5
2760 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2769 cross_compiling=$ac_cv_prog_cc_cross
2771 cat > conftest.$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 /* This will not work unless sizeof(double) == 8. */
2775 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2777 /* This structure must have no internal padding. */
2778 struct possibility {
2784 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2785 struct possibility table [] =
2787 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2788 C( 3.53802595280598432000e+18), /* D__float - VAX */
2789 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2790 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2791 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2794 if { (eval echo configure:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2796 sed 's/^[0-7]*[ ]*/ /
2799 s/ [0-9][0-9][0-9]/./g
2805 if grep 'format:.@IEEEF.:tamrof' conftest.dmp >/dev/null 2>&1; then
2806 ac_cv_c_float_format='IEEE (big-endian)'
2807 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp >/dev/null 2>&1; then
2808 ac_cv_c_float_format='IEEE (big-endian)'
2809 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp >/dev/null 2>&1; then
2810 ac_cv_c_float_format='IEEE (little-endian)'
2811 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp >/dev/null 2>&1; then
2812 ac_cv_c_float_format='IEEE (little-endian)'
2813 elif grep 'format:.__floa.:tamrof' conftest.dmp >/dev/null 2>&1; then
2814 ac_cv_c_float_format='VAX D-float'
2815 elif grep 'format:..PDP-1.:tamrof' conftest.dmp >/dev/null 2>&1; then
2816 ac_cv_c_float_format='PDP-10'
2817 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp >/dev/null 2>&1; then
2818 ac_cv_c_float_format='IBM 370 hex'
2820 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
2823 { echo "configure: error: compile failed" 1>&2; exit 1; }
2827 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2828 ac_cpp='$CPP $CPPFLAGS'
2829 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2830 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2831 cross_compiling=$ac_cv_prog_cc_cross
2836 echo "$ac_t""$ac_cv_c_float_format" 1>&6
2837 # IEEE is the default format. If the float endianness isn't the same
2838 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
2839 # (which is a tristate: yes, no, default). This is only an issue with
2840 # IEEE; the other formats are only supported by a few machines each,
2841 # all with the same endianness.
2844 case $ac_cv_c_float_format in
2845 'IEEE (big-endian)' )
2846 if test $ac_cv_c_compile_endian = little-endian; then
2850 'IEEE (little-endian)' )
2851 if test $ac_cv_c_compile_endian = big-endian; then
2856 format=VAX_FLOAT_FORMAT
2859 format=PDP10_FLOAT_FORMAT
2862 format=IBM_FLOAT_FORMAT
2865 if test -n "$format"; then
2866 cat >> confdefs.h <<EOF
2867 #define HOST_FLOAT_FORMAT $format
2871 if test -n "$fbigend"; then
2872 cat >> confdefs.h <<EOF
2873 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
2879 # See if GNAT has been installed
2880 if test $host != $build; then
2881 ac_tool_prefix=${host_alias}-
2887 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2888 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2890 echo "configure:2891: checking for $ac_word" >&5
2891 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 if test -n "$GNATBIND"; then
2895 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2899 for ac_dir in $ac_dummy; do
2900 test -z "$ac_dir" && ac_dir=.
2901 if test -f $ac_dir/$ac_word; then
2902 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
2909 GNATBIND="$ac_cv_prog_GNATBIND"
2910 if test -n "$GNATBIND"; then
2911 echo "$ac_t""$GNATBIND" 1>&6
2913 echo "$ac_t""no" 1>&6
2917 if test -z "$ac_cv_prog_GNATBIND"; then
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "gnatbind", so it can be a program name with args.
2920 set dummy gnatbind; ac_word=$2
2921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2922 echo "configure:2923: checking for $ac_word" >&5
2923 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 if test -n "$GNATBIND"; then
2927 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
2929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2931 for ac_dir in $ac_dummy; do
2932 test -z "$ac_dir" && ac_dir=.
2933 if test -f $ac_dir/$ac_word; then
2934 ac_cv_prog_GNATBIND="gnatbind"
2939 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no"
2942 GNATBIND="$ac_cv_prog_GNATBIND"
2943 if test -n "$GNATBIND"; then
2944 echo "$ac_t""$GNATBIND" 1>&6
2946 echo "$ac_t""no" 1>&6
2954 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
2955 echo "configure:2956: checking for compiler driver that understands Ada" >&5
2956 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 cat >conftest.adb <<EOF
2960 procedure conftest is begin null; end conftest;
2963 # Have to do ac_tool_prefix and user overrides by hand.
2966 for cand in ${ac_tool_prefix}$user_adac $user_adac \
2967 ${ac_tool_prefix}$user_cc $user_cc \
2968 ${ac_tool_prefix}gcc gcc \
2969 ${ac_tool_prefix}cc cc \
2970 ${ac_tool_prefix}gnatgcc gnatgcc \
2971 ${ac_tool_prefix}gnatcc gnatcc \
2972 ${ac_tool_prefix}adagcc adagcc \
2973 ${ac_tool_prefix}adacc adacc ; do
2974 # There is a bug in all released versions of GCC which causes the
2975 # driver to exit successfully when the appropriate language module
2976 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2977 # Therefore we must check for the error message as well as an
2978 # unsuccessful exit.
2979 errors=`$cand -c conftest.adb 2>&1 || echo failure`
2980 if test x"$errors" = x; then
2981 gcc_cv_prog_adac=$cand
2988 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
2989 ADAC=$gcc_cv_prog_adac
2992 if test x$GNATBIND != xno && test x$ADAC != xno; then
2999 # See if we have the mktemp command.
3000 # Extract the first word of "mktemp", so it can be a program name with args.
3001 set dummy mktemp; ac_word=$2
3002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3003 echo "configure:3004: checking for $ac_word" >&5
3004 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 if test -n "$have_mktemp_command"; then
3008 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
3010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3012 for ac_dir in $ac_dummy; do
3013 test -z "$ac_dir" && ac_dir=.
3014 if test -f $ac_dir/$ac_word; then
3015 ac_cv_prog_have_mktemp_command="yes"
3020 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
3023 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
3024 if test -n "$have_mktemp_command"; then
3025 echo "$ac_t""$have_mktemp_command" 1>&6
3027 echo "$ac_t""no" 1>&6
3031 # Do we have a single-tree copy of texinfo?
3032 if test -f $srcdir/../texinfo/Makefile.in; then
3033 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
3034 gcc_cv_prog_makeinfo_modern=yes
3035 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3037 # See if makeinfo has been installed and is modern enough
3038 # that we can use it.
3039 # Extract the first word of "makeinfo", so it can be a program name with args.
3040 set dummy makeinfo; ac_word=$2
3041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3042 echo "configure:3043: checking for $ac_word" >&5
3043 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 if test -n "$MAKEINFO"; then
3047 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3051 for ac_dir in $ac_dummy; do
3052 test -z "$ac_dir" && ac_dir=.
3053 if test -f $ac_dir/$ac_word; then
3054 ac_cv_prog_MAKEINFO="makeinfo"
3061 MAKEINFO="$ac_cv_prog_MAKEINFO"
3062 if test -n "$MAKEINFO"; then
3063 echo "$ac_t""$MAKEINFO" 1>&6
3065 echo "$ac_t""no" 1>&6
3068 if test -n "$MAKEINFO"; then
3069 # Found it, now check the version.
3070 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3071 echo "configure:3072: checking for modern makeinfo" >&5
3072 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 ac_prog_version=`$MAKEINFO --version 2>&1 |
3076 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3077 echo "configure:3078: version of makeinfo is $ac_prog_version" >&5
3078 case $ac_prog_version in
3079 '') gcc_cv_prog_makeinfo_modern=no;;
3081 gcc_cv_prog_makeinfo_modern=yes;;
3082 *) gcc_cv_prog_makeinfo_modern=no;;
3087 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3089 gcc_cv_prog_makeinfo_modern=no
3094 if test $gcc_cv_prog_makeinfo_modern = no; then
3095 echo "configure: warning:
3096 *** Makeinfo is missing or too old.
3097 *** Info documentation will not be built." 1>&2
3103 # Is pod2man recent enough to regenerate manpages?
3104 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3105 echo "configure:3106: checking for recent Pod::Man" >&5
3106 if perl -e 'use 1.10 Pod::Man' >/dev/null 2>&1; then
3107 echo "$ac_t""yes" 1>&6
3108 GENERATED_MANPAGES=generated-manpages
3110 echo "$ac_t""no" 1>&6
3115 if test -f $srcdir/../flex/skel.c; then
3116 FLEX='$(objdir)/../flex/flex'
3118 # Extract the first word of "flex", so it can be a program name with args.
3119 set dummy flex; ac_word=$2
3120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_word" >&5
3122 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 if test -n "$FLEX"; then
3126 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3130 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 if test -f $ac_dir/$ac_word; then
3133 ac_cv_prog_FLEX="flex"
3138 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
3141 FLEX="$ac_cv_prog_FLEX"
3142 if test -n "$FLEX"; then
3143 echo "$ac_t""$FLEX" 1>&6
3145 echo "$ac_t""no" 1>&6
3151 # The -L switch is so bison can find its skeleton file.
3152 if test -f $srcdir/../bison/bison.simple; then
3153 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3155 # Extract the first word of "bison", so it can be a program name with args.
3156 set dummy bison; ac_word=$2
3157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_word" >&5
3159 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 if test -n "$BISON"; then
3163 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3167 for ac_dir in $ac_dummy; do
3168 test -z "$ac_dir" && ac_dir=.
3169 if test -f $ac_dir/$ac_word; then
3170 ac_cv_prog_BISON="bison"
3175 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
3178 BISON="$ac_cv_prog_BISON"
3179 if test -n "$BISON"; then
3180 echo "$ac_t""$BISON" 1>&6
3182 echo "$ac_t""no" 1>&6
3187 # These libraries may be used by collect2.
3188 # We may need a special search path to get them linked.
3189 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3190 echo "configure:3191: checking for collect2 libraries" >&5
3191 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3195 for libs in '' -lld -lmld \
3196 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3197 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3214 gcc_cv_collect2_libs="$libs"; break
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3222 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
3225 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3226 case $gcc_cv_collect2_libs in
3228 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
3232 # When building Ada code on Alpha, we need exc_resume which is usually in
3233 # -lexc. So test for it.
3237 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3238 echo "configure:3239: checking for library containing exc_resume" >&5
3239 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 ac_func_search_save_LIBS="$LIBS"
3243 ac_cv_search_exc_resume="no"
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 /* Override any gcc2 internal prototype to avoid an error. */
3248 /* We use char because int might match the return type of a gcc2
3249 builtin and then its argument prototype would still apply. */
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3258 ac_cv_search_exc_resume="none required"
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3264 test "$ac_cv_search_exc_resume" = "no" && for i in exc; do
3265 LIBS="-l$i $ac_func_search_save_LIBS"
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 /* Override any gcc2 internal prototype to avoid an error. */
3270 /* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3278 if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3280 ac_cv_search_exc_resume="-l$i"
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3288 LIBS="$ac_func_search_save_LIBS"
3291 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3292 if test "$ac_cv_search_exc_resume" != "no"; then
3293 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
3302 # See if the stage1 system preprocessor understands the ANSI C
3303 # preprocessor stringification operator. (Used by symcat.h.)
3306 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3307 echo "configure:3308: checking for preprocessor stringizing operator" >&5
3308 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3317 char *s = x(teststring);
3320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321 egrep "#teststring" >/dev/null 2>&1; then
3323 ac_cv_c_stringize=no
3326 ac_cv_c_stringize=yes
3332 if test "${ac_cv_c_stringize}" = yes
3334 cat >> confdefs.h <<\EOF
3335 #define HAVE_STRINGIZE 1
3339 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3342 # Use <inttypes.h> only if it exists,
3343 # doesn't clash with <sys/types.h>, and declares intmax_t.
3344 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3345 echo "configure:3346: checking for inttypes.h" >&5
3346 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 #include <sys/types.h>
3353 #include <inttypes.h>
3358 if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360 gcc_cv_header_inttypes_h=yes
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3365 gcc_cv_header_inttypes_h=no
3370 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3371 if test $gcc_cv_header_inttypes_h = yes; then
3372 cat >> confdefs.h <<\EOF
3373 #define HAVE_INTTYPES_H 1
3379 for ac_func in strtoul bsearch popen times clock \
3380 strchr strrchr kill getrlimit setrlimit atoll atoq \
3381 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
3382 fputs_unlocked fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
3385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3386 echo "configure:3387: checking for $ac_func" >&5
3387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 /* System header to define __stub macros and hopefully few prototypes,
3394 which can conflict with char $ac_func(); below. */
3396 /* Override any gcc2 internal prototype to avoid an error. */
3397 /* We use char because int might match the return type of a gcc2
3398 builtin and then its argument prototype would still apply. */
3403 /* The GNU C library defines this for functions which it implements
3404 to always fail with ENOSYS. Some functions are actually named
3405 something starting with __ and the normal name is an alias. */
3406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3414 if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3416 eval "ac_cv_func_$ac_func=yes"
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3421 eval "ac_cv_func_$ac_func=no"
3426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3427 echo "$ac_t""yes" 1>&6
3428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3429 cat >> confdefs.h <<EOF
3430 #define $ac_tr_func 1
3434 echo "$ac_t""no" 1>&6
3439 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3440 echo "configure:3441: checking for ssize_t" >&5
3441 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <sys/types.h>
3453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3456 ac_cv_type_ssize_t=yes
3459 ac_cv_type_ssize_t=no
3464 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3465 if test $ac_cv_type_ssize_t = no; then
3466 cat >> confdefs.h <<\EOF
3473 # Try to determine the array type of the second argument of getgroups
3474 # for the target system (int or gid_t).
3475 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3476 echo "configure:3477: checking for uid_t in sys/types.h" >&5
3477 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <sys/types.h>
3485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486 egrep "uid_t" >/dev/null 2>&1; then
3488 ac_cv_type_uid_t=yes
3497 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3498 if test $ac_cv_type_uid_t = no; then
3499 cat >> confdefs.h <<\EOF
3503 cat >> confdefs.h <<\EOF
3509 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3510 echo "configure:3511: checking type of array argument to getgroups" >&5
3511 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 if test "$cross_compiling" = yes; then
3515 ac_cv_type_getgroups=cross
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3521 /* Thanks to Mike Rendell for this test. */
3522 #include <sys/types.h>
3525 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3530 union { gid_t gval; long lval; } val;
3533 for (i = 0; i < NGID; i++)
3534 gidset[i] = val.gval;
3535 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3537 /* Exit non-zero if getgroups seems to require an array of ints. This
3538 happens when gid_t is short but getgroups modifies an array of ints. */
3539 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3545 ac_cv_type_getgroups=gid_t
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 ac_cv_type_getgroups=int
3555 if test $ac_cv_type_getgroups = cross; then
3556 cat > conftest.$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3564 ac_cv_type_getgroups=gid_t
3567 ac_cv_type_getgroups=int
3574 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3575 cat >> confdefs.h <<EOF
3576 #define GETGROUPS_T $ac_cv_type_getgroups
3580 if test "${target}" = "${build}"; then
3581 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
3584 # This condition may need some tweaking. It should include all
3585 # targets where the array type of the second argument of getgroups
3586 # is int and the type of gid_t is not equivalent to int.
3587 *-*-sunos* | *-*-ultrix*)
3588 TARGET_GETGROUPS_T=int
3591 TARGET_GETGROUPS_T=gid_t
3597 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3598 echo "configure:3599: checking for vprintf" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char vprintf(); below. */
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 eval "ac_cv_func_vprintf=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_func_vprintf=no"
3638 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 cat >> confdefs.h <<\EOF
3641 #define HAVE_VPRINTF 1
3645 echo "$ac_t""no" 1>&6
3648 if test "$ac_cv_func_vprintf" != yes; then
3649 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3650 echo "configure:3651: checking for _doprnt" >&5
3651 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes,
3658 which can conflict with char _doprnt(); below. */
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3667 /* The GNU C library defines this for functions which it implements
3668 to always fail with ENOSYS. Some functions are actually named
3669 something starting with __ and the normal name is an alias. */
3670 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3678 if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680 eval "ac_cv_func__doprnt=yes"
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 eval "ac_cv_func__doprnt=no"
3690 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3692 cat >> confdefs.h <<\EOF
3693 #define HAVE_DOPRNT 1
3697 echo "$ac_t""no" 1>&6
3704 if test $ac_cv_func_vprintf != yes ; then
3706 if test $ac_cv_func__doprnt != yes ; then
3713 for ac_func in strstr
3715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3716 echo "configure:3717: checking for $ac_func" >&5
3717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 /* System header to define __stub macros and hopefully few prototypes,
3724 which can conflict with char $ac_func(); below. */
3726 /* Override any gcc2 internal prototype to avoid an error. */
3727 /* We use char because int might match the return type of a gcc2
3728 builtin and then its argument prototype would still apply. */
3733 /* The GNU C library defines this for functions which it implements
3734 to always fail with ENOSYS. Some functions are actually named
3735 something starting with __ and the normal name is an alias. */
3736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746 eval "ac_cv_func_$ac_func=yes"
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 eval "ac_cv_func_$ac_func=no"
3756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3757 echo "$ac_t""yes" 1>&6
3758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3759 cat >> confdefs.h <<EOF
3760 #define $ac_tr_func 1
3764 echo "$ac_t""no" 1>&6
3770 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3771 echo "configure:3772: checking whether the printf functions support %p" >&5
3772 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3775 if test "$cross_compiling" = yes; then
3776 gcc_cv_func_printf_ptr=no
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3786 char *p = buf, *q = NULL;
3787 sprintf(buf, "%p", p);
3788 sscanf(buf, "%p", &q);
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3794 gcc_cv_func_printf_ptr=yes
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3799 gcc_cv_func_printf_ptr=no
3804 rm -f core core.* *.core
3807 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3808 if test $gcc_cv_func_printf_ptr = yes ; then
3809 cat >> confdefs.h <<\EOF
3810 #define HAVE_PRINTF_PTR 1
3818 { echo "configure: error:
3819 *** UWIN may not be used as a host platform because
3820 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3823 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3824 echo "configure:3825: checking for pid_t" >&5
3825 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <sys/types.h>
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3840 ac_cv_type_pid_t=yes
3848 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3849 if test $ac_cv_type_pid_t = no; then
3850 cat >> confdefs.h <<\EOF
3856 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3857 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3858 echo "configure:3859: checking for vfork.h" >&5
3859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3868 { (eval echo configure:3869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3870 if test -z "$ac_err"; then
3872 eval "ac_cv_header_$ac_safe=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3878 eval "ac_cv_header_$ac_safe=no"
3882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 cat >> confdefs.h <<\EOF
3885 #define HAVE_VFORK_H 1
3889 echo "$ac_t""no" 1>&6
3892 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3893 echo "configure:3894: checking for working vfork" >&5
3894 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 if test "$cross_compiling" = yes; then
3898 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3899 echo "configure:3900: checking for vfork" >&5
3900 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 /* System header to define __stub macros and hopefully few prototypes,
3907 which can conflict with char vfork(); below. */
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3916 /* The GNU C library defines this for functions which it implements
3917 to always fail with ENOSYS. Some functions are actually named
3918 something starting with __ and the normal name is an alias. */
3919 #if defined (__stub_vfork) || defined (__stub___vfork)
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3929 eval "ac_cv_func_vfork=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 eval "ac_cv_func_vfork=no"
3939 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3943 echo "$ac_t""no" 1>&6
3946 ac_cv_func_vfork_works=$ac_cv_func_vfork
3948 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 /* Thanks to Paul Eggert for this test. */
3953 #include <sys/types.h>
3954 #include <sys/stat.h>
3955 #ifdef HAVE_UNISTD_H
3961 /* On some sparc systems, changes by the child to local and incoming
3962 argument registers are propagated back to the parent.
3963 The compiler is told about this with #include <vfork.h>,
3964 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3965 Test for this by using a static variable whose address
3966 is put into a register that is clobbered by the vfork. */
3969 sparc_address_test (int arg)
3971 sparc_address_test (arg) int arg;
3989 pid_t parent = getpid ();
3992 sparc_address_test ();
3997 /* Here is another test for sparc vfork register problems.
3998 This test uses lots of local variables, at least
3999 as many local variables as main has allocated so far
4000 including compiler temporaries. 4 locals are enough for
4001 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
4002 A buggy compiler should reuse the register of parent
4003 for one of the local variables, since it will think that
4004 parent can't possibly be used any more in this routine.
4005 Assigning to the local variable will thus munge parent
4006 in the parent process. */
4008 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
4009 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
4010 /* Convince the compiler that p..p7 are live; otherwise, it might
4011 use the same hardware register for all 8 local variables. */
4012 if (p != p1 || p != p2 || p != p3 || p != p4
4013 || p != p5 || p != p6 || p != p7)
4016 /* On some systems (e.g. IRIX 3.3),
4017 vfork doesn't separate parent from child file descriptors.
4018 If the child closes a descriptor before it execs or exits,
4019 this munges the parent's descriptor as well.
4020 Test for this by closing stdout in the child. */
4021 _exit(close(fileno(stdout)) != 0);
4026 while (wait(&status) != child)
4029 /* Was there some problem with vforking? */
4032 /* Did the child fail? (This shouldn't happen.) */
4035 /* Did the vfork/compiler bug occur? */
4036 || parent != getpid()
4038 /* Did the file descriptor bug occur? */
4039 || fstat(fileno(stdout), &st) != 0
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4046 ac_cv_func_vfork_works=yes
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4051 ac_cv_func_vfork_works=no
4058 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
4059 if test $ac_cv_func_vfork_works = no; then
4060 cat >> confdefs.h <<\EOF
4066 for ac_func in getpagesize
4068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_func" >&5
4070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 /* System header to define __stub macros and hopefully few prototypes,
4077 which can conflict with char $ac_func(); below. */
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4086 /* The GNU C library defines this for functions which it implements
4087 to always fail with ENOSYS. Some functions are actually named
4088 something starting with __ and the normal name is an alias. */
4089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4097 if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4099 eval "ac_cv_func_$ac_func=yes"
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 eval "ac_cv_func_$ac_func=no"
4109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4112 cat >> confdefs.h <<EOF
4113 #define $ac_tr_func 1
4117 echo "$ac_t""no" 1>&6
4121 # The test program for the next two tests is the same except for one
4123 cat >ct-mmap.inc <<'EOF'
4124 #include <sys/types.h>
4125 #include <sys/mman.h>
4131 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4132 # define MAP_ANONYMOUS MAP_ANON
4135 /* This mess was copied from the GNU getpagesize.h. */
4136 #ifndef HAVE_GETPAGESIZE
4137 # ifdef HAVE_UNISTD_H
4138 # include <unistd.h>
4141 /* Assume that all systems that can run configure have sys/param.h. */
4142 # ifndef HAVE_SYS_PARAM_H
4143 # define HAVE_SYS_PARAM_H 1
4146 # ifdef _SC_PAGESIZE
4147 # define getpagesize() sysconf(_SC_PAGESIZE)
4148 # else /* no _SC_PAGESIZE */
4149 # ifdef HAVE_SYS_PARAM_H
4150 # include <sys/param.h>
4151 # ifdef EXEC_PAGESIZE
4152 # define getpagesize() EXEC_PAGESIZE
4153 # else /* no EXEC_PAGESIZE */
4155 # define getpagesize() NBPG * CLSIZE
4158 # endif /* no CLSIZE */
4159 # else /* no NBPG */
4161 # define getpagesize() NBPC
4162 # else /* no NBPC */
4164 # define getpagesize() PAGESIZE
4165 # endif /* PAGESIZE */
4166 # endif /* no NBPC */
4167 # endif /* no NBPG */
4168 # endif /* no EXEC_PAGESIZE */
4169 # else /* no HAVE_SYS_PARAM_H */
4170 # define getpagesize() 8192 /* punt totally */
4171 # endif /* no HAVE_SYS_PARAM_H */
4172 # endif /* no _SC_PAGESIZE */
4174 #endif /* no HAVE_GETPAGESIZE */
4177 # define MAP_FAILED -1
4181 #define perror_exit(str, val) \
4182 do { perror(str); exit(val); } while (0)
4184 /* Some versions of cygwin mmap require that munmap is called with the
4185 same parameters as mmap. GCC expects that this is not the case.
4186 Test for various forms of this problem. Warning - icky signal games. */
4188 static sigset_t unblock_sigsegv;
4198 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4199 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4201 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4202 MAP_PRIVATE, devzero, 0);
4210 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4214 /* Basic functionality test. */
4218 char *x = anonmap (pg);
4219 if (x == (char *) MAP_FAILED)
4220 perror_exit("test 0 mmap", 2);
4224 if (munmap(x, pg) < 0)
4225 perror_exit("test 0 munmap", 3);
4228 /* 1. If we map a 2-page region and unmap its second page, the first page
4233 char *x = anonmap (pg * 2);
4234 if (x == (char *)MAP_FAILED)
4235 perror_exit ("test 1 mmap", 4);
4237 signal (SIGSEGV, sigsegv);
4239 perror_exit ("test 1 fault", 5);
4244 if (munmap (x + pg, pg) < 0)
4245 perror_exit ("test 1 munmap 1", 6);
4248 if (setjmp (r) == 0)
4251 perror_exit ("test 1 no fault", 7);
4253 if (munmap (x, pg) < 0)
4254 perror_exit ("test 1 munmap 2", 8);
4257 /* 2. If we map a 2-page region and unmap its first page, the second
4258 page must remain. */
4262 char *x = anonmap (pg * 2);
4263 if (x == (char *)MAP_FAILED)
4264 perror_exit ("test 2 mmap", 9);
4266 signal (SIGSEGV, sigsegv);
4268 perror_exit ("test 2 fault", 10);
4273 if (munmap (x, pg) < 0)
4274 perror_exit ("test 2 munmap 1", 11);
4278 if (setjmp (r) == 0)
4281 perror_exit ("test 2 no fault", 12);
4284 if (munmap (x+pg, pg) < 0)
4285 perror_exit ("test 2 munmap 2", 13);
4288 /* 3. If we map two adjacent 1-page regions and unmap them both with
4289 one munmap, both must go away.
4291 Getting two adjacent 1-page regions with two mmap calls is slightly
4292 tricky. All OS's tested skip over already-allocated blocks; therefore
4293 we have been careful to unmap all allocated regions in previous tests.
4294 HP/UX allocates pages backward in memory. No OS has yet been observed
4295 to be so perverse as to leave unmapped space between consecutive calls
4304 if (x == (char *)MAP_FAILED)
4305 perror_exit ("test 3 mmap 1", 14);
4307 if (y == (char *)MAP_FAILED)
4308 perror_exit ("test 3 mmap 2", 15);
4313 z = y, y = x, x = z;
4316 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4317 (unsigned long)x, (unsigned long)y);
4322 signal (SIGSEGV, sigsegv);
4324 perror_exit ("test 3 fault", 17);
4329 if (munmap (x, pg*2) < 0)
4330 perror_exit ("test 3 munmap", 18);
4332 if (setjmp (r) == 0)
4335 perror_exit ("test 3 no fault 1", 19);
4338 signal (SIGSEGV, sigsegv);
4339 if (setjmp (r) == 0)
4342 perror_exit ("test 3 no fault 2", 20);
4349 sigemptyset (&unblock_sigsegv);
4350 sigaddset (&unblock_sigsegv, SIGSEGV);
4351 pg = getpagesize ();
4352 #ifndef USE_MAP_ANON
4353 devzero = open ("/dev/zero", O_RDWR);
4355 perror_exit ("open /dev/zero", 1);
4367 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4368 echo "configure:4369: checking for working mmap from /dev/zero" >&5
4369 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 if test "$cross_compiling" = yes; then
4373 # If this is not cygwin, and /dev/zero is a character device, it's probably
4374 # safe to assume it works.
4376 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
4377 * ) if test -c /dev/zero
4378 then ac_cv_func_mmap_dev_zero=yes
4379 else ac_cv_func_mmap_dev_zero=no
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4386 #include "ct-mmap.inc"
4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4390 ac_cv_func_mmap_dev_zero=yes
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4396 then ac_cv_func_mmap_dev_zero=no
4397 else ac_cv_func_mmap_dev_zero=buggy
4406 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4407 if test $ac_cv_func_mmap_dev_zero = yes; then
4408 cat >> confdefs.h <<\EOF
4409 #define HAVE_MMAP_DEV_ZERO 1
4414 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4415 echo "configure:4416: checking for working mmap with MAP_ANON(YMOUS)" >&5
4416 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 if test "$cross_compiling" = yes; then
4420 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4421 # just because it's there. Some SCO Un*xen define it but don't implement it.
4422 ac_cv_func_mmap_anon=no
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 #define USE_MAP_ANON
4428 #include "ct-mmap.inc"
4430 if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4432 ac_cv_func_mmap_anon=yes
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4438 then ac_cv_func_mmap_anon=no
4439 else ac_cv_func_mmap_anon=buggy
4448 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4449 if test $ac_cv_func_mmap_anon = yes; then
4450 cat >> confdefs.h <<\EOF
4451 #define HAVE_MMAP_ANON 1
4457 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4458 echo "configure:4459: checking for working mmap of a file" >&5
4459 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 # Create a file one thousand bytes long.
4463 for i in 1 2 3 4 5 6 7 8 9 0
4464 do for j in 1 2 3 4 5 6 7 8 9 0
4467 done > conftestdata$$
4469 if test "$cross_compiling" = yes; then
4470 ac_cv_func_mmap_file=no
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4476 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4477 Richard Henderson and Alexandre Oliva.
4478 Check whether read-only mmap of a plain file works. */
4479 #include <sys/types.h>
4480 #include <sys/stat.h>
4482 #include <sys/mman.h>
4490 fd = open("conftestdata$$", O_RDONLY);
4494 if (fstat (fd, &st))
4497 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4498 if (x == (char *) -1)
4501 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4504 if (munmap(x, st.st_size) < 0)
4510 if { (eval echo configure:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4512 ac_cv_func_mmap_file=yes
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 ac_cv_func_mmap_file=no
4524 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4525 if test $ac_cv_func_mmap_file = yes; then
4526 cat >> confdefs.h <<\EOF
4527 #define HAVE_MMAP_FILE 1
4535 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4536 if test "${with_libiconv_prefix+set}" = set; then
4537 withval="$with_libiconv_prefix"
4539 for dir in `echo "$withval" | tr : ' '`; do
4540 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4541 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
4547 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4548 echo "configure:4549: checking for iconv" >&5
4549 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4553 am_cv_func_iconv="no, consider installing GNU libiconv"
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4561 iconv_t cd = iconv_open("","");
4562 iconv(cd,NULL,NULL,NULL,NULL);
4566 if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4568 am_cv_func_iconv=yes
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4574 if test "$am_cv_func_iconv" != yes; then
4575 am_save_LIBS="$LIBS"
4576 LIBS="$LIBS -liconv"
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4583 iconv_t cd = iconv_open("","");
4584 iconv(cd,NULL,NULL,NULL,NULL);
4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4591 am_cv_func_iconv=yes
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4597 LIBS="$am_save_LIBS"
4602 echo "$ac_t""$am_cv_func_iconv" 1>&6
4603 if test "$am_cv_func_iconv" = yes; then
4604 cat >> confdefs.h <<\EOF
4605 #define HAVE_ICONV 1
4608 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4609 echo "configure:4610: checking for iconv declaration" >&5
4610 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4624 #if defined(__STDC__) || defined(__cplusplus)
4625 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4634 if { (eval echo configure:4635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4636 am_cv_proto_iconv_arg1=""
4638 echo "configure: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4641 am_cv_proto_iconv_arg1="const"
4644 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4647 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4648 echo "$ac_t""${ac_t:-
4649 }$am_cv_proto_iconv" 1>&6
4650 cat >> confdefs.h <<EOF
4651 #define ICONV_CONST $am_cv_proto_iconv_arg1
4656 if test "$am_cv_lib_iconv" = yes; then
4662 # We will need to find libiberty.h and ansidecl.h
4663 saved_CFLAGS="$CFLAGS"
4664 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4665 for ac_func in getenv atol sbrk abort atof getcwd getwd \
4666 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4667 fprintf_unlocked strstr environ errno \
4668 malloc realloc calloc free basename getopt clock
4670 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4671 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4672 echo "configure:4673: checking whether $ac_func is declared" >&5
4673 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4680 #define $ac_tr_decl 1
4682 #include "ansidecl.h"
4687 char *(*pfn) = (char *(*)) $ac_func ;
4691 if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4693 eval "gcc_cv_have_decl_$ac_func=yes"
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 eval "gcc_cv_have_decl_$ac_func=no"
4703 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4704 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4705 #define $ac_tr_decl 1
4709 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4710 #define $ac_tr_decl 0
4716 if test x = y ; then
4717 cat >> confdefs.h <<\EOF
4718 #define HAVE_DECL_GETENV 1
4720 cat >> confdefs.h <<\EOF
4721 #define HAVE_DECL_ATOL 1
4723 cat >> confdefs.h <<\EOF
4724 #define HAVE_DECL_SBRK 1
4726 cat >> confdefs.h <<\EOF
4727 #define HAVE_DECL_ABORT 1
4729 cat >> confdefs.h <<\EOF
4730 #define HAVE_DECL_ATOF 1
4732 cat >> confdefs.h <<\EOF
4733 #define HAVE_DECL_GETCWD 1
4735 cat >> confdefs.h <<\EOF
4736 #define HAVE_DECL_GETWD 1
4739 cat >> confdefs.h <<\EOF
4740 #define HAVE_DECL_STRSIGNAL 1
4742 cat >> confdefs.h <<\EOF
4743 #define HAVE_DECL_PUTC_UNLOCKED 1
4745 cat >> confdefs.h <<\EOF
4746 #define HAVE_DECL_FPUTS_UNLOCKED 1
4748 cat >> confdefs.h <<\EOF
4749 #define HAVE_DECL_FWRITE_UNLOCKED 1
4752 cat >> confdefs.h <<\EOF
4753 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4755 cat >> confdefs.h <<\EOF
4756 #define HAVE_DECL_STRSTR 1
4758 cat >> confdefs.h <<\EOF
4759 #define HAVE_DECL_ENVIRON 1
4761 cat >> confdefs.h <<\EOF
4762 #define HAVE_DECL_ERRNO 1
4765 cat >> confdefs.h <<\EOF
4766 #define HAVE_DECL_MALLOC 1
4768 cat >> confdefs.h <<\EOF
4769 #define HAVE_DECL_REALLOC 1
4771 cat >> confdefs.h <<\EOF
4772 #define HAVE_DECL_CALLOC 1
4774 cat >> confdefs.h <<\EOF
4775 #define HAVE_DECL_FREE 1
4777 cat >> confdefs.h <<\EOF
4778 #define HAVE_DECL_BASENAME 1
4780 cat >> confdefs.h <<\EOF
4781 #define HAVE_DECL_GETOPT 1
4783 cat >> confdefs.h <<\EOF
4784 #define HAVE_DECL_CLOCK 1
4789 for ac_func in getrlimit setrlimit getrusage
4791 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4792 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4793 echo "configure:4794: checking whether $ac_func is declared" >&5
4794 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4801 #define $ac_tr_decl 1
4803 #include "ansidecl.h"
4805 #ifdef HAVE_SYS_RESOURCE_H
4806 #include <sys/resource.h>
4812 char *(*pfn) = (char *(*)) $ac_func ;
4816 if { (eval echo configure:4817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4818 eval "gcc_cv_have_decl_$ac_func=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4823 eval "gcc_cv_have_decl_$ac_func=no"
4828 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4830 #define $ac_tr_decl 1
4834 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4835 #define $ac_tr_decl 0
4841 if test x = y ; then
4842 cat >> confdefs.h <<\EOF
4843 #define HAVE_DECL_GETRLIMIT 1
4845 cat >> confdefs.h <<\EOF
4846 #define HAVE_DECL_SETRLIMIT 1
4848 cat >> confdefs.h <<\EOF
4849 #define HAVE_DECL_GETRUSAGE 1
4854 for ac_func in times
4856 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4857 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4858 echo "configure:4859: checking whether $ac_func is declared" >&5
4859 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4860 echo $ac_n "(cached) $ac_c" 1>&6
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4866 #define $ac_tr_decl 1
4868 #include "ansidecl.h"
4870 #ifdef HAVE_SYS_TIMES_H
4871 #include <sys/times.h>
4877 char *(*pfn) = (char *(*)) $ac_func ;
4881 if { (eval echo configure:4882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4883 eval "gcc_cv_have_decl_$ac_func=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "gcc_cv_have_decl_$ac_func=no"
4893 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4895 #define $ac_tr_decl 1
4899 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4900 #define $ac_tr_decl 0
4906 if test x = y ; then
4907 cat >> confdefs.h <<\EOF
4908 #define HAVE_DECL_TIMES 1
4913 # More time-related stuff.
4914 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4915 echo "configure:4916: checking for struct tms" >&5
4916 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4924 #include "ansidecl.h"
4926 #ifdef HAVE_SYS_TIMES_H
4927 #include <sys/times.h>
4934 if { (eval echo configure:4935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4936 ac_cv_struct_tms=yes
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4946 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4947 if test $ac_cv_struct_tms = yes; then
4948 cat >> confdefs.h <<\EOF
4949 #define HAVE_STRUCT_TMS 1
4954 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4955 # revisit after autoconf 2.50.
4956 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4957 echo "configure:4958: checking for clock_t" >&5
4958 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4966 #include "ansidecl.h"
4973 if { (eval echo configure:4974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4975 gcc_cv_type_clock_t=yes
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 gcc_cv_type_clock_t=no
4985 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4986 if test $gcc_cv_type_clock_t = yes; then
4987 cat >> confdefs.h <<\EOF
4988 #define HAVE_CLOCK_T 1
4993 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4994 CFLAGS="$saved_CFLAGS"
4996 # mkdir takes a single argument on some systems.
4997 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4998 echo "configure:4999: checking if mkdir takes one argument" >&5
4999 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5006 #include <sys/types.h>
5007 #ifdef HAVE_SYS_STAT_H
5008 # include <sys/stat.h>
5010 #ifdef HAVE_UNISTD_H
5011 # include <unistd.h>
5013 #ifdef HAVE_DIRECT_H
5014 # include <direct.h>
5020 if { (eval echo configure:5021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5022 gcc_cv_mkdir_takes_one_arg=no
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 gcc_cv_mkdir_takes_one_arg=yes
5032 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
5033 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
5034 cat >> confdefs.h <<\EOF
5035 #define MKDIR_TAKES_ONE_ARG 1
5049 build_install_headers_dir=install-headers-tar
5054 host_truncate_target=
5057 # Decode the host machine, then the target machine.
5058 # For the host machine, we save the xm_file variable as host_xm_file;
5059 # then we decode the target machine and forget everything else
5060 # that came from the host machine.
5061 for machine in $build $host $target; do
5062 . ${srcdir}/config.gcc
5065 extra_objs="${host_extra_objs} ${extra_objs}"
5067 # Default the target-machine variables that were not explicitly set.
5068 if test x"$tm_file" = x
5069 then tm_file=$cpu_type/$cpu_type.h; fi
5071 if test x"$extra_headers" = x
5072 then extra_headers=; fi
5074 if test x$md_file = x
5075 then md_file=$cpu_type/$cpu_type.md; fi
5077 if test x$out_file = x
5078 then out_file=$cpu_type/$cpu_type.c; fi
5080 if test x"$tmake_file" = x
5081 then tmake_file=$cpu_type/t-$cpu_type
5084 if test x"$dwarf2" = xyes
5085 then tm_file="$tm_file tm-dwarf2.h"
5088 if test x$float_format = x
5089 then float_format=i64
5092 if test $float_format = none
5093 then float_h_file=Makefile.in
5094 else float_h_file=float-$float_format.h
5097 # Handle cpp installation.
5098 if test x$enable_cpp != xno
5100 tmake_file="$tmake_file t-install-cpp"
5103 # Say what files are being used for the output code and MD file.
5104 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
5105 echo "Using \`$srcdir/config/$md_file' as machine description file."
5107 # If any of the xm_file variables contain nonexistent files, warn
5108 # about them and drop them.
5111 for x in $build_xm_file; do
5112 if test -f $srcdir/config/$x
5114 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5120 for x in $host_xm_file; do
5121 if test -f $srcdir/config/$x
5123 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5129 for x in $xm_file; do
5130 if test -f $srcdir/config/$x
5132 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5138 for f in $tm_file; do
5141 if test $count = ax; then
5142 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5144 echo "Using the following target machine macro files:"
5145 for f in $tm_file; do
5146 echo " $srcdir/config/$f"
5151 for f in $host_xm_file; do
5154 if test $count = a; then
5156 elif test $count = ax; then
5157 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5159 echo "Using the following host machine macro files:"
5160 for f in $host_xm_file; do
5161 echo " $srcdir/config/$f"
5165 if test "$host_xm_file" != "$build_xm_file"; then
5167 for f in $build_xm_file; do
5170 if test $count = a; then
5172 elif test $count = ax; then
5173 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5175 echo "Using the following build machine macro files:"
5176 for f in $build_xm_file; do
5177 echo " $srcdir/config/$f"
5182 if test x$thread_file = x; then
5183 if test x$target_thread_file != x; then
5184 thread_file=$target_thread_file
5186 thread_file='single'
5190 # auto-host.h is the file containing items generated by autoconf and is
5191 # the first file included by config.h.
5192 # If host=build, it is correct to have hconfig include auto-host.h
5193 # as well. If host!=build, we are in error and need to do more
5194 # work to find out the build config parameters.
5195 if test x$host = x$build
5197 build_auto=auto-host.h
5199 # We create a subdir, then run autoconf in the subdir.
5200 # To prevent recursion we set host and build for the new
5201 # invocation of configure to the build for this invocation
5208 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
5209 *) realsrcdir=../${srcdir};;
5211 saved_CFLAGS="${CFLAGS}"
5212 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
5213 ${realsrcdir}/configure \
5214 --target=$target --host=$build --build=$build
5215 CFLAGS="${saved_CFLAGS}"
5217 # We just finished tests for the build machine, so rename
5218 # the file auto-build.h in the gcc directory.
5219 mv auto-host.h ../auto-build.h
5222 build_auto=auto-build.h
5225 tm_file="${tm_file} defaults.h"
5226 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5227 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5228 xm_file="ansidecl.h ${xm_file} ${tm_file}"
5230 # Truncate the target if necessary
5231 if test x$host_truncate_target != x; then
5232 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5235 # Get the version trigger filename from the toplevel
5236 if test "${with_gcc_version_trigger+set}" = set; then
5237 gcc_version_trigger=$with_gcc_version_trigger
5239 gcc_version_trigger=${srcdir}/version.c
5241 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5242 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5244 # Compile in configure arguments.
5245 if test -f configargs.h ; then
5246 # Being re-configured.
5247 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5248 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5250 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5252 cat > configargs.h <<EOF
5253 /* Generated automatically. */
5254 static const char configuration_arguments[] = "$gcc_config_arguments";
5255 static const char thread_model[] = "$thread_file";
5258 # Internationalization
5260 VERSION="$gcc_version"
5261 cat >> confdefs.h <<EOF
5262 #define PACKAGE "$PACKAGE"
5265 cat >> confdefs.h <<EOF
5266 #define VERSION "$VERSION"
5274 # Enable NLS support by default
5275 # Check whether --enable-nls or --disable-nls was given.
5276 if test "${enable_nls+set}" = set; then
5277 enableval="$enable_nls"
5284 # if cross compiling, disable NLS support.
5285 # It's not worth the trouble, at least for now.
5287 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5288 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5292 # if NLS is enabled, also enable check in po subdir
5293 if test $enable_nls = yes; then
5302 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
5303 echo "configure:5304: checking for strerror in -lcposix" >&5
5304 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
5305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 ac_save_LIBS="$LIBS"
5309 LIBS="-lcposix $LIBS"
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5313 /* Override any gcc2 internal prototype to avoid an error. */
5314 /* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5324 eval "ac_cv_lib_$ac_lib_var=yes"
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5329 eval "ac_cv_lib_$ac_lib_var=no"
5332 LIBS="$ac_save_LIBS"
5335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5337 LIBS="$LIBS -lcposix"
5339 echo "$ac_t""no" 1>&6
5344 echo $ac_n "checking for working const""... $ac_c" 1>&6
5345 echo "configure:5346: checking for working const" >&5
5346 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5355 /* Ultrix mips cc rejects this. */
5356 typedef int charset[2]; const charset x;
5357 /* SunOS 4.1.1 cc rejects this. */
5358 char const *const *ccp;
5360 /* NEC SVR4.0.2 mips cc rejects this. */
5361 struct point {int x, y;};
5362 static struct point const zero = {0,0};
5363 /* AIX XL C 1.02.0.0 rejects this.
5364 It does not let you subtract one const X* pointer from another in an arm
5365 of an if-expression whose if-part is not a constant expression */
5366 const char *g = "string";
5367 ccp = &g + (g ? g-g : 0);
5368 /* HPUX 7.0 cc rejects these. */
5371 ccp = (char const *const *) p;
5372 { /* SCO 3.2v4 cc rejects this. */
5374 char const *s = 0 ? (char *) 0 : (char const *) 0;
5378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5380 const int *foo = &x[0];
5383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5384 typedef const int *iptr;
5388 { /* AIX XL C 1.02.0.0 rejects this saying
5389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5390 struct s { int j; const int *ap[3]; };
5391 struct s *b; b->j = 5;
5393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5399 if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5411 echo "$ac_t""$ac_cv_c_const" 1>&6
5412 if test $ac_cv_c_const = no; then
5413 cat >> confdefs.h <<\EOF
5419 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5420 echo "configure:5421: checking for off_t" >&5
5421 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 #include <sys/types.h>
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5436 ac_cv_type_off_t=yes
5444 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5445 if test $ac_cv_type_off_t = no; then
5446 cat >> confdefs.h <<\EOF
5452 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5453 echo "configure:5454: checking for size_t" >&5
5454 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5460 #include <sys/types.h>
5466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5467 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5469 ac_cv_type_size_t=yes
5472 ac_cv_type_size_t=no
5477 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5478 if test $ac_cv_type_size_t = no; then
5479 cat >> confdefs.h <<\EOF
5480 #define size_t unsigned
5486 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
5487 unistd.h sys/param.h
5489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5491 echo "configure:5492: checking for $ac_hdr" >&5
5492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5501 { (eval echo configure:5502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5503 if test -z "$ac_err"; then
5505 eval "ac_cv_header_$ac_safe=yes"
5508 echo "configure: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5511 eval "ac_cv_header_$ac_safe=no"
5515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5516 echo "$ac_t""yes" 1>&6
5517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5518 cat >> confdefs.h <<EOF
5519 #define $ac_tr_hdr 1
5523 echo "$ac_t""no" 1>&6
5527 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
5528 strdup __argz_count __argz_stringify __argz_next
5530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5531 echo "configure:5532: checking for $ac_func" >&5
5532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5533 echo $ac_n "(cached) $ac_c" 1>&6
5535 cat > conftest.$ac_ext <<EOF
5536 #line 5537 "configure"
5537 #include "confdefs.h"
5538 /* System header to define __stub macros and hopefully few prototypes,
5539 which can conflict with char $ac_func(); below. */
5541 /* Override any gcc2 internal prototype to avoid an error. */
5542 /* We use char because int might match the return type of a gcc2
5543 builtin and then its argument prototype would still apply. */
5548 /* The GNU C library defines this for functions which it implements
5549 to always fail with ENOSYS. Some functions are actually named
5550 something starting with __ and the normal name is an alias. */
5551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5559 if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5561 eval "ac_cv_func_$ac_func=yes"
5563 echo "configure: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5566 eval "ac_cv_func_$ac_func=no"
5571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5572 echo "$ac_t""yes" 1>&6
5573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5574 cat >> confdefs.h <<EOF
5575 #define $ac_tr_func 1
5579 echo "$ac_t""no" 1>&6
5584 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5585 for ac_func in stpcpy
5587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5588 echo "configure:5589: checking for $ac_func" >&5
5589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5595 /* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char $ac_func(); below. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5605 /* The GNU C library defines this for functions which it implements
5606 to always fail with ENOSYS. Some functions are actually named
5607 something starting with __ and the normal name is an alias. */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5618 eval "ac_cv_func_$ac_func=yes"
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5623 eval "ac_cv_func_$ac_func=no"
5628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5629 echo "$ac_t""yes" 1>&6
5630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5631 cat >> confdefs.h <<EOF
5632 #define $ac_tr_func 1
5636 echo "$ac_t""no" 1>&6
5641 if test "${ac_cv_func_stpcpy}" = "yes"; then
5642 cat >> confdefs.h <<\EOF
5643 #define HAVE_STPCPY 1
5648 if test $ac_cv_header_locale_h = yes; then
5649 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5650 echo "configure:5651: checking for LC_MESSAGES" >&5
5651 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 cat > conftest.$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5664 am_cv_val_LC_MESSAGES=yes
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 am_cv_val_LC_MESSAGES=no
5674 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5675 if test $am_cv_val_LC_MESSAGES = yes; then
5676 cat >> confdefs.h <<\EOF
5677 #define HAVE_LC_MESSAGES 1
5682 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5683 echo "configure:5684: checking whether NLS is requested" >&5
5684 # Check whether --enable-nls or --disable-nls was given.
5685 if test "${enable_nls+set}" = set; then
5686 enableval="$enable_nls"
5692 echo "$ac_t""$USE_NLS" 1>&6
5695 USE_INCLUDED_LIBINTL=no
5697 if test "$USE_NLS" = "yes"; then
5698 cat >> confdefs.h <<\EOF
5699 #define ENABLE_NLS 1
5702 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5703 echo "configure:5704: checking whether included gettext is requested" >&5
5704 # Check whether --with-included-gettext or --without-included-gettext was given.
5705 if test "${with_included_gettext+set}" = set; then
5706 withval="$with_included_gettext"
5707 nls_cv_force_use_gnu_gettext=$withval
5709 nls_cv_force_use_gnu_gettext=no
5712 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5714 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5715 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5717 nls_cv_header_libgt=
5720 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5721 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5722 echo "configure:5723: checking for libintl.h" >&5
5723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5729 #include <libintl.h>
5731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5732 { (eval echo configure:5733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5734 if test -z "$ac_err"; then
5736 eval "ac_cv_header_$ac_safe=yes"
5739 echo "configure: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5742 eval "ac_cv_header_$ac_safe=no"
5746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5747 echo "$ac_t""yes" 1>&6
5748 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
5749 echo "configure:5750: checking for gettext in libc" >&5
5750 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5756 #include <libintl.h>
5758 return (int) gettext ("")
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 gt_cv_func_gettext_libc=yes
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 gt_cv_func_gettext_libc=no
5773 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
5775 if test "$gt_cv_func_gettext_libc" != "yes"; then
5776 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
5777 echo "configure:5778: checking for bindtextdomain in -lintl" >&5
5778 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
5779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5782 ac_save_LIBS="$LIBS"
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 /* Override any gcc2 internal prototype to avoid an error. */
5788 /* We use char because int might match the return type of a gcc2
5789 builtin and then its argument prototype would still apply. */
5790 char bindtextdomain();
5796 if { (eval echo configure:5797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5798 eval "ac_cv_lib_$ac_lib_var=yes"
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 eval "ac_cv_lib_$ac_lib_var=no"
5806 LIBS="$ac_save_LIBS"
5809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5810 echo "$ac_t""yes" 1>&6
5811 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
5812 echo "configure:5813: checking for gettext in libintl" >&5
5813 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
5817 echo "configure:5818: checking for gettext in -lintl" >&5
5818 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
5819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5822 ac_save_LIBS="$LIBS"
5824 cat > conftest.$ac_ext <<EOF
5825 #line 5826 "configure"
5826 #include "confdefs.h"
5827 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5836 if { (eval echo configure:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5838 eval "ac_cv_lib_$ac_lib_var=yes"
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5843 eval "ac_cv_lib_$ac_lib_var=no"
5846 LIBS="$ac_save_LIBS"
5849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5850 echo "$ac_t""yes" 1>&6
5851 gt_cv_func_gettext_libintl=yes
5853 echo "$ac_t""no" 1>&6
5854 gt_cv_func_gettext_libintl=no
5859 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
5861 echo "$ac_t""no" 1>&6
5866 if test "$gt_cv_func_gettext_libintl" = "yes"; then
5870 if test "$gt_cv_func_gettext_libc" = "yes" \
5871 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5872 cat >> confdefs.h <<\EOF
5873 #define HAVE_GETTEXT 1
5876 # Extract the first word of "msgfmt", so it can be a program name with args.
5877 set dummy msgfmt; 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_MSGFMT'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5885 gcc_cv_path_MSGFMT="$MSGFMT" # 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 'dv '`"; then
5893 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5899 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="no"
5903 MSGFMT="$gcc_cv_path_MSGFMT"
5904 if test -n "$MSGFMT"; then
5905 echo "$ac_t""$MSGFMT" 1>&6
5907 echo "$ac_t""no" 1>&6
5909 if test "$MSGFMT" != "no"; then
5910 for ac_func in dcgettext
5912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5913 echo "configure:5914: checking for $ac_func" >&5
5914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5915 echo $ac_n "(cached) $ac_c" 1>&6
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5920 /* System header to define __stub macros and hopefully few prototypes,
5921 which can conflict with char $ac_func(); below. */
5923 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */
5930 /* The GNU C library defines this for functions which it implements
5931 to always fail with ENOSYS. Some functions are actually named
5932 something starting with __ and the normal name is an alias. */
5933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5943 eval "ac_cv_func_$ac_func=yes"
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5948 eval "ac_cv_func_$ac_func=no"
5953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5954 echo "$ac_t""yes" 1>&6
5955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5956 cat >> confdefs.h <<EOF
5957 #define $ac_tr_func 1
5961 echo "$ac_t""no" 1>&6
5965 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5966 set dummy gmsgfmt; ac_word=$2
5967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5968 echo "configure:5969: checking for $ac_word" >&5
5969 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5974 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5977 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5982 for ac_dir in $ac_dummy; do
5983 test -z "$ac_dir" && ac_dir=.
5984 if test -f $ac_dir/$ac_word; then
5985 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5990 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5994 GMSGFMT="$gcc_cv_path_GMSGFMT"
5995 if test -n "$GMSGFMT"; then
5996 echo "$ac_t""$GMSGFMT" 1>&6
5998 echo "$ac_t""no" 1>&6
6001 # Extract the first word of "xgettext", so it can be a program name with args.
6002 set dummy xgettext; ac_word=$2
6003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6004 echo "configure:6005: checking for $ac_word" >&5
6005 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
6006 echo $ac_n "(cached) $ac_c" 1>&6
6010 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6014 for ac_dir in $PATH; do
6015 test -z "$ac_dir" && ac_dir=.
6016 if test -f $ac_dir/$ac_word; then
6017 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6018 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
6024 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
6028 XGETTEXT="$gcc_cv_path_XGETTEXT"
6029 if test -n "$XGETTEXT"; then
6030 echo "$ac_t""$XGETTEXT" 1>&6
6032 echo "$ac_t""no" 1>&6
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6040 extern int _nl_msg_cat_cntr;
6041 return _nl_msg_cat_cntr
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049 echo "configure: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6058 create_catalogs="no"
6063 echo "$ac_t""no" 1>&6
6067 if test "$CATOBJEXT" = "NONE"; then
6068 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
6069 echo "configure:6070: checking whether catgets can be used" >&5
6070 # Check whether --with-catgets or --without-catgets was given.
6071 if test "${with_catgets+set}" = set; then
6072 withval="$with_catgets"
6073 nls_cv_use_catgets=$withval
6075 nls_cv_use_catgets=no
6078 echo "$ac_t""$nls_cv_use_catgets" 1>&6
6080 if test "$nls_cv_use_catgets" = "yes"; then
6081 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
6082 echo "configure:6083: checking for main in -li" >&5
6083 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
6084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 ac_save_LIBS="$LIBS"
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6099 eval "ac_cv_lib_$ac_lib_var=yes"
6101 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6104 eval "ac_cv_lib_$ac_lib_var=no"
6107 LIBS="$ac_save_LIBS"
6110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6111 echo "$ac_t""yes" 1>&6
6112 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6114 cat >> confdefs.h <<EOF
6115 #define $ac_tr_lib 1
6121 echo "$ac_t""no" 1>&6
6124 echo $ac_n "checking for catgets""... $ac_c" 1>&6
6125 echo "configure:6126: checking for catgets" >&5
6126 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6132 /* System header to define __stub macros and hopefully few prototypes,
6133 which can conflict with char catgets(); below. */
6135 /* Override any gcc2 internal prototype to avoid an error. */
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6142 /* The GNU C library defines this for functions which it implements
6143 to always fail with ENOSYS. Some functions are actually named
6144 something starting with __ and the normal name is an alias. */
6145 #if defined (__stub_catgets) || defined (__stub___catgets)
6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6155 eval "ac_cv_func_catgets=yes"
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6160 eval "ac_cv_func_catgets=no"
6165 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 cat >> confdefs.h <<\EOF
6168 #define HAVE_CATGETS 1
6171 INTLOBJS="\$(CATOBJS)"
6172 # Extract the first word of "gencat", so it can be a program name with args.
6173 set dummy gencat; ac_word=$2
6174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6175 echo "configure:6176: checking for $ac_word" >&5
6176 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6181 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
6184 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
6187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6189 for ac_dir in $ac_dummy; do
6190 test -z "$ac_dir" && ac_dir=.
6191 if test -f $ac_dir/$ac_word; then
6192 gcc_cv_path_GENCAT="$ac_dir/$ac_word"
6197 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT="no"
6201 GENCAT="$gcc_cv_path_GENCAT"
6202 if test -n "$GENCAT"; then
6203 echo "$ac_t""$GENCAT" 1>&6
6205 echo "$ac_t""no" 1>&6
6207 if test "$GENCAT" != "no"; then
6208 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6209 set dummy gmsgfmt; ac_word=$2
6210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6211 echo "configure:6212: checking for $ac_word" >&5
6212 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
6213 echo $ac_n "(cached) $ac_c" 1>&6
6217 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6220 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
6223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6225 for ac_dir in $ac_dummy; do
6226 test -z "$ac_dir" && ac_dir=.
6227 if test -f $ac_dir/$ac_word; then
6228 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
6233 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="no"
6237 GMSGFMT="$gcc_cv_path_GMSGFMT"
6238 if test -n "$GMSGFMT"; then
6239 echo "$ac_t""$GMSGFMT" 1>&6
6241 echo "$ac_t""no" 1>&6
6244 if test "$GMSGFMT" = "no"; then
6245 # Extract the first word of "msgfmt", so it can be a program name with args.
6246 set dummy msgfmt; ac_word=$2
6247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_word" >&5
6249 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6254 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6258 for ac_dir in $PATH; do
6259 test -z "$ac_dir" && ac_dir=.
6260 if test -f $ac_dir/$ac_word; then
6261 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6262 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
6268 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="msgfmt"
6272 GMSGFMT="$gcc_cv_path_GMSGFMT"
6273 if test -n "$GMSGFMT"; then
6274 echo "$ac_t""$GMSGFMT" 1>&6
6276 echo "$ac_t""no" 1>&6
6279 if test "$GMSGFMT" = "msgfmt"; then
6280 create_catalogs="no"
6283 # Extract the first word of "xgettext", so it can be a program name with args.
6284 set dummy xgettext; ac_word=$2
6285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6286 echo "configure:6287: checking for $ac_word" >&5
6287 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
6288 echo $ac_n "(cached) $ac_c" 1>&6
6292 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6296 for ac_dir in $PATH; do
6297 test -z "$ac_dir" && ac_dir=.
6298 if test -f $ac_dir/$ac_word; then
6299 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6300 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
6306 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
6310 XGETTEXT="$gcc_cv_path_XGETTEXT"
6311 if test -n "$XGETTEXT"; then
6312 echo "$ac_t""$XGETTEXT" 1>&6
6314 echo "$ac_t""no" 1>&6
6317 USE_INCLUDED_LIBINTL=yes
6321 INTLDEPS='$(top_builddir)/intl/libintl.a'
6323 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
6324 nls_cv_header_intl=intl/libintl.h
6325 nls_cv_header_libgt=intl/libgettext.h
6328 echo "$ac_t""no" 1>&6
6334 if test "$CATOBJEXT" = "NONE"; then
6335 nls_cv_use_gnu_gettext=yes
6339 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6340 INTLOBJS="\$(GETTOBJS)"
6341 # Extract the first word of "msgfmt", so it can be a program name with args.
6342 set dummy msgfmt; ac_word=$2
6343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6344 echo "configure:6345: checking for $ac_word" >&5
6345 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6350 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6354 for ac_dir in $PATH; do
6355 test -z "$ac_dir" && ac_dir=.
6356 if test -f $ac_dir/$ac_word; then
6357 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6358 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
6364 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="msgfmt"
6368 MSGFMT="$gcc_cv_path_MSGFMT"
6369 if test -n "$MSGFMT"; then
6370 echo "$ac_t""$MSGFMT" 1>&6
6372 echo "$ac_t""no" 1>&6
6375 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6376 set dummy gmsgfmt; ac_word=$2
6377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_word" >&5
6379 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6384 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6387 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
6390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6392 for ac_dir in $ac_dummy; do
6393 test -z "$ac_dir" && ac_dir=.
6394 if test -f $ac_dir/$ac_word; then
6395 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
6400 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
6404 GMSGFMT="$gcc_cv_path_GMSGFMT"
6405 if test -n "$GMSGFMT"; then
6406 echo "$ac_t""$GMSGFMT" 1>&6
6408 echo "$ac_t""no" 1>&6
6411 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
6412 create_catalogs="no"
6414 # Extract the first word of "xgettext", so it can be a program name with args.
6415 set dummy xgettext; ac_word=$2
6416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6417 echo "configure:6418: checking for $ac_word" >&5
6418 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6423 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6427 for ac_dir in $PATH; do
6428 test -z "$ac_dir" && ac_dir=.
6429 if test -f $ac_dir/$ac_word; then
6430 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6431 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
6437 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
6441 XGETTEXT="$gcc_cv_path_XGETTEXT"
6442 if test -n "$XGETTEXT"; then
6443 echo "$ac_t""$XGETTEXT" 1>&6
6445 echo "$ac_t""no" 1>&6
6449 USE_INCLUDED_LIBINTL=yes
6453 INTLDEPS='$(top_builddir)/intl/libintl.a'
6455 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
6456 nls_cv_header_intl=intl/libintl.h
6457 nls_cv_header_libgt=intl/libgettext.h
6460 if test "$XGETTEXT" != ":"; then
6461 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6464 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6471 # We need to process the po/ directory.
6475 nls_cv_header_intl=intl/libintl.h
6476 nls_cv_header_libgt=intl/libgettext.h
6482 # If this is used in GNU gettext we have to set USE_NLS to `yes'
6483 # because some of the sources are only built for this goal.
6484 if test "$PACKAGE" = gettext; then
6486 USE_INCLUDED_LIBINTL=yes
6489 for lang in $ALL_LINGUAS; do
6490 GMOFILES="$GMOFILES $lang.gmo"
6491 POFILES="$POFILES $lang.po"
6507 if test "x$create_catalogs" = "xno"; then
6508 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
6511 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
6512 if test "x$ALL_LINGUAS" = "x"; then
6515 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6516 echo "configure:6517: checking for catalogs to be installed" >&5
6517 if test "x$LINGUAS" = "x"; then
6518 LINGUAS=$ALL_LINGUAS
6521 for lang in $ALL_LINGUAS; do
6522 case " $LINGUAS " in
6523 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
6526 LINGUAS=$NEW_LINGUAS
6528 echo "$ac_t""$LINGUAS" 1>&6
6531 if test -n "$LINGUAS"; then
6532 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
6536 if test $ac_cv_header_locale_h = yes; then
6537 INCLUDE_LOCALE_H="#include <locale.h>"
6540 /* The system does not provide the header <locale.h>. Take care yourself. */"
6544 test -d intl || mkdir intl
6545 if test "$CATOBJEXT" = ".cat"; then
6546 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
6547 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
6548 echo "configure:6549: checking for linux/version.h" >&5
6549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6555 #include <linux/version.h>
6557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6558 { (eval echo configure:6559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6560 if test -z "$ac_err"; then
6562 eval "ac_cv_header_$ac_safe=yes"
6565 echo "configure: failed program was:" >&5
6566 cat conftest.$ac_ext >&5
6568 eval "ac_cv_header_$ac_safe=no"
6572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6573 echo "$ac_t""yes" 1>&6
6576 echo "$ac_t""no" 1>&6
6581 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
6583 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
6584 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
6586 if test "$PACKAGE" = "gettext"; then
6597 if test -n "$ac_aux_dir"; then
6598 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6600 if test -z "$MKINSTALLDIRS"; then
6601 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6608 test -d po || mkdir po
6609 if test "x$srcdir" != "x."; then
6610 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6611 posrcprefix="$srcdir/"
6613 posrcprefix="../$srcdir/"
6619 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6620 < $srcdir/po/POTFILES.in > po/POTFILES
6622 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
6624 # Windows32 Registry support for specifying GCC installation paths.
6625 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6626 if test "${enable_win32_registry+set}" = set; then
6627 enableval="$enable_win32_registry"
6632 win32 | pe | cygwin* | mingw32* | uwin*)
6633 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6634 echo "configure:6635: checking whether windows registry support is requested" >&5
6635 if test "x$enable_win32_registry" != xno; then
6636 cat >> confdefs.h <<\EOF
6637 #define ENABLE_WIN32_REGISTRY 1
6640 echo "$ac_t""yes" 1>&6
6642 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6643 echo "configure:6644: checking for library containing RegOpenKeyExA" >&5
6644 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 ac_func_search_save_LIBS="$LIBS"
6648 ac_cv_search_RegOpenKeyExA="no"
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6655 char RegOpenKeyExA();
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 ac_cv_search_RegOpenKeyExA="none required"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6669 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i in advapi32; do
6670 LIBS="-l$i $ac_func_search_save_LIBS"
6671 cat > conftest.$ac_ext <<EOF
6672 #line 6673 "configure"
6673 #include "confdefs.h"
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677 char RegOpenKeyExA();
6683 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6685 ac_cv_search_RegOpenKeyExA="-l$i"
6688 echo "configure: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6693 LIBS="$ac_func_search_save_LIBS"
6696 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6697 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6698 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
6704 echo "$ac_t""no" 1>&6
6707 # Check if user specified a different registry key.
6708 case "x${enable_win32_registry}" in
6711 gcc_cv_win32_registry_key="$VERSION"
6714 # no registry lookup.
6715 gcc_cv_win32_registry_key=''
6718 # user-specified key.
6719 gcc_cv_win32_registry_key="$enable_win32_registry"
6723 if test "x$enable_win32_registry" != xno; then
6724 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6725 echo "configure:6726: checking registry key on windows hosts" >&5
6726 cat >> confdefs.h <<EOF
6727 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6730 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6735 # Get an absolute path to the GCC top-level source directory
6741 # Conditionalize the makefile for this host machine.
6742 # Make-host contains the concatenation of all host makefile fragments
6743 # [there can be more than one]. This file is built by configure.frag.
6744 host_overrides=Make-host
6745 dep_host_xmake_file=
6746 for f in .. ${host_xmake_file}
6748 if test -f ${srcdir}/config/$f
6750 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
6754 # Conditionalize the makefile for this target machine.
6755 # Make-target contains the concatenation of all host makefile fragments
6756 # [there can be more than one]. This file is built by configure.frag.
6757 target_overrides=Make-target
6759 for f in .. ${tmake_file}
6761 if test -f ${srcdir}/config/$f
6763 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
6767 # If the host doesn't support symlinks, modify CC in
6768 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6769 # Otherwise, we can use "CC=$(CC)".
6771 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
6773 cc_set_by_configure="\$(CC)"
6774 quoted_cc_set_by_configure="\$(CC)"
6775 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
6778 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
6780 symbolic_link="cp -p"
6784 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6785 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6786 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6790 out_object_file=`basename $out_file .c`.o
6793 for f in $tm_file; do
6796 tm_file_list="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6798 tm_file_list="${tm_file_list} $f" ;;
6799 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
6804 for f in $tm_p_file; do
6805 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
6809 for f in $host_xm_file; do
6812 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6813 auto-host.h | defaults.h )
6814 host_xm_file_list="${host_xm_file_list} $f" ;;
6815 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6820 for f in $build_xm_file; do
6823 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6824 auto-build.h | auto-host.h | defaults.h )
6825 build_xm_file_list="${build_xm_file_list} $f" ;;
6826 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6830 # Define macro CROSS_COMPILE in compilation
6831 # if this is a cross-compiler.
6832 # Also use all.cross instead of all.internal
6833 # and add cross-make to Makefile.
6834 cross_overrides="/dev/null"
6835 if test x$host != x$target
6837 cross_defines="CROSS=-DCROSS_COMPILE"
6838 cross_overrides="${topdir}/cross-make"
6841 # If this is a cross-compiler that does not
6842 # have its own set of headers then define
6845 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6846 # This prevents libgcc2 from containing any code which requires libc
6849 if test x$host != x$target && test x$with_headers = x; then
6850 inhibit_libc=-Dinhibit_libc
6852 if test x$with_newlib = xyes; then
6853 inhibit_libc=-Dinhibit_libc
6858 # When building gcc with a cross-compiler, we need to fix a few things.
6859 # This must come after cross-make as we want all.build to override
6861 build_overrides="/dev/null"
6862 if test x$build != x$host
6864 build_overrides="${topdir}/build-make"
6867 # Expand extra_headers to include complete path.
6868 # This substitutes for lots of t-* files.
6870 if test "x$extra_headers" = x
6873 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
6874 for file in $extra_headers;
6876 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
6880 if test x$use_collect2 = xno; then
6884 # Add a definition of USE_COLLECT2 if system wants one.
6885 if test x$use_collect2 != x
6887 host_xm_defines="${host_xm_defines} USE_COLLECT2"
6888 xm_defines="${xm_defines} USE_COLLECT2"
6891 # If we have gas in the build tree, make a link to it.
6892 if test -f ../gas/Makefile; then
6893 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
6896 # If we have nm in the build tree, make a link to it.
6897 if test -f ../binutils/Makefile; then
6898 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
6901 # If we have ld in the build tree, make a link to it.
6902 if test -f ../ld/Makefile; then
6903 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
6906 # Figure out what assembler we will be using.
6907 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6908 echo "configure:6909: checking what assembler to use" >&5
6910 gcc_cv_gas_major_version=
6911 gcc_cv_gas_minor_version=
6912 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6913 if test -x "$DEFAULT_ASSEMBLER"; then
6914 gcc_cv_as="$DEFAULT_ASSEMBLER"
6915 elif test -x "$AS"; then
6917 elif test -x as$host_exeext; then
6918 # Build using assembler in the current directory.
6919 gcc_cv_as=./as$host_exeext
6920 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
6921 # Single tree build which includes gas.
6922 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
6924 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6925 if test x$gcc_cv_gas_version != x; then
6929 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6930 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6933 if test "x$gcc_cv_as" = x -a x$host = x$target; then
6935 # Search the same directories that the installed compiler will
6936 # search. Else we may find the wrong assembler and lose. If we
6937 # do not find a suitable assembler binary, then try the user's
6940 # Also note we have to check MD_EXEC_PREFIX before checking the
6941 # user's path. Unfortunately, there is no good way to get at the
6942 # value of MD_EXEC_PREFIX here. So we do a brute force search
6943 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6944 # to be fixed as part of the make/configure rewrite too.
6946 if test "x$exec_prefix" = xNONE; then
6947 if test "x$prefix" = xNONE; then
6948 test_prefix=/usr/local
6953 test_prefix=$exec_prefix
6956 # If the loop below does not find an assembler, then use whatever
6957 # one we can find in the users's path.
6959 gcc_cv_as=as$host_exeext
6961 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6962 $test_prefix/lib/gcc-lib/$target \
6963 /usr/lib/gcc/$target/$gcc_version \
6964 /usr/lib/gcc/$target \
6965 $test_prefix/$target/bin/$target/$gcc_version \
6966 $test_prefix/$target/bin \
6971 /bsd43/usr/lib/cmplrs/cc \
6972 /usr/cross64/usr/bin \
6973 /usr/lib/cmplrs/cc \
6974 /sysv/usr/lib/cmplrs/cc \
6975 /svr4/usr/lib/cmplrs/cc \
6978 for dir in $test_dirs; do
6979 if test -f $dir/as$host_exeext; then
6980 gcc_cv_as=$dir/as$host_exeext
6985 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6986 echo "$ac_t"""newly built gas"" 1>&6
6988 echo "$ac_t""$gcc_cv_as" 1>&6
6991 # Figure out what nm we will be using.
6992 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
6993 echo "configure:6994: checking what nm to use" >&5
6994 if test -x nm$host_exeext; then
6995 gcc_cv_nm=./nm$host_exeext
6996 elif test x$host = x$target; then
6998 gcc_cv_nm=nm$host_exeext
7000 echo "$ac_t""$gcc_cv_nm" 1>&6
7002 # Figure out what assembler alignment features are present.
7003 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7004 echo "configure:7005: checking assembler alignment features" >&5
7005 gcc_cv_as_alignment_features=none
7006 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7007 # Gas version 2.6 and later support for .balign and .p2align.
7008 # bytes to skip when using .p2align.
7009 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
7010 gcc_cv_as_alignment_features=".balign and .p2align"
7011 cat >> confdefs.h <<\EOF
7012 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7016 # Gas version 2.8 and later support specifying the maximum
7017 # bytes to skip when using .p2align.
7018 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
7019 gcc_cv_as_alignment_features=".p2align including maximum skip"
7020 cat >> confdefs.h <<\EOF
7021 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7025 elif test x$gcc_cv_as != x; then
7026 # Check if we have .balign and .p2align
7027 echo ".balign 4" > conftest.s
7028 echo ".p2align 2" >> conftest.s
7029 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7030 gcc_cv_as_alignment_features=".balign and .p2align"
7031 cat >> confdefs.h <<\EOF
7032 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7036 rm -f conftest.s conftest.o
7037 # Check if specifying the maximum bytes to skip when
7038 # using .p2align is supported.
7039 echo ".p2align 4,,7" > conftest.s
7040 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7041 gcc_cv_as_alignment_features=".p2align including maximum skip"
7042 cat >> confdefs.h <<\EOF
7043 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7047 rm -f conftest.s conftest.o
7049 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7051 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7052 echo "configure:7053: checking assembler subsection support" >&5
7053 gcc_cv_as_subsections=no
7054 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7055 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
7056 gcc_cv_as_subsections="working .subsection -1"
7058 elif test x$gcc_cv_as != x; then
7059 # Check if we have .subsection
7060 echo ".subsection 1" > conftest.s
7061 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7062 gcc_cv_as_subsections=".subsection"
7063 if test x$gcc_cv_nm != x; then
7064 cat > conftest.s <<EOF
7065 conftest_label1: .word 0
7067 conftest_label2: .word 0
7070 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7071 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
7072 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
7073 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
7076 gcc_cv_as_subsections="working .subsection -1"
7081 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7083 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
7084 cat >> confdefs.h <<\EOF
7085 #define HAVE_GAS_SUBSECTION_ORDERING 1
7089 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7091 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7092 echo "configure:7093: checking assembler weak support" >&5
7094 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7095 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
7096 gcc_cv_as_weak="yes"
7098 elif test x$gcc_cv_as != x; then
7099 # Check if we have .weak
7100 echo " .weak foobar" > conftest.s
7101 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7102 gcc_cv_as_weak="yes"
7104 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7106 if test x"$gcc_cv_as_weak" = xyes; then
7107 cat >> confdefs.h <<\EOF
7108 #define HAVE_GAS_WEAK 1
7112 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7114 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7115 echo "configure:7116: checking assembler hidden support" >&5
7117 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7118 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
7119 gcc_cv_as_hidden="yes"
7121 elif test x$gcc_cv_as != x; then
7122 # Check if we have .hidden
7123 echo " .hidden foobar" > conftest.s
7124 echo "foobar:" >> conftest.s
7125 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7126 gcc_cv_as_hidden="yes"
7128 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7130 if test x"$gcc_cv_as_hidden" = xyes; then
7131 cat >> confdefs.h <<\EOF
7132 #define HAVE_GAS_HIDDEN 1
7136 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7138 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7139 echo "configure:7140: checking assembler leb128 support" >&5
7141 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7142 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
7143 gcc_cv_as_leb128="yes"
7145 elif test x$gcc_cv_as != x; then
7146 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7147 cat > conftest.s <<EOF
7155 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7156 gcc_cv_as_leb128="yes"
7158 # GAS versions before 2.11 do not support uleb128,
7159 # despite appearing to.
7160 # ??? There exists an elf-specific test that will crash
7161 # the assembler. Perhaps it's better to figure out whether
7162 # arbitrary sections are supported and try the test.
7163 as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
7164 if echo "$as_ver" | grep GNU > /dev/null; then
7165 as_ver=`echo $as_ver | sed -e 's/.* //'`
7166 as_major=`echo $as_ver | sed 's/\..*//'`
7167 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7168 if test $as_major -eq 2 -a $as_minor -lt 11; then
7169 gcc_cv_as_leb128="no"
7173 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7175 if test x"$gcc_cv_as_leb128" = xyes; then
7176 cat >> confdefs.h <<\EOF
7177 #define HAVE_AS_LEB128 1
7181 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7183 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7184 echo "configure:7185: checking assembler eh_frame optimization" >&5
7185 gcc_cv_as_eh_frame=no
7186 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7187 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
7188 gcc_cv_as_eh_frame="yes"
7190 elif test x$gcc_cv_as != x; then
7191 # Check if this is GAS.
7192 as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7193 rm -f a.out 2> /dev/null
7194 if echo "$as_ver" | grep GNU > /dev/null; then
7195 # Versions up to and including 2.11.0 may mis-optimize
7196 # .eh_frame data. Try something.
7197 cat > conftest.s <<EOF
7204 .section .eh_frame,"aw",@progbits
7206 .4byte .LECIE1-.LSCIE1
7220 .4byte .LEFDE1-.LASFDE1
7222 .4byte .LASFDE1-__FRAME_BEGIN__
7231 cat > conftest.lit <<EOF
7232 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7233 0010 01000000 12000000 18000000 00000000 ................
7234 0020 08000000 04080000 0044 .........D
7236 cat > conftest.big <<EOF
7237 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7238 0010 00000001 00000012 00000018 00000000 ................
7239 0020 00000008 04000000 0844 .........D
7241 # If the assembler didn't choke, and we can objdump,
7242 # and we got the correct data, then succeed.
7243 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
7244 && objdump -s -j .eh_frame conftest.o 2>/dev/null \
7245 | tail -3 > conftest.got \
7246 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
7247 || cmp conftest.big conftest.got > /dev/null 2>&1; }
7249 gcc_cv_as_eh_frame="yes"
7251 gcc_cv_as_eh_frame="bad"
7252 if $gcc_cv_as -o conftest.o --traditional-format /dev/null; then
7253 cat >> confdefs.h <<\EOF
7254 #define USE_AS_TRADITIONAL_FORMAT 1
7262 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7264 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7265 echo "configure:7266: checking assembler section merging support" >&5
7266 gcc_cv_as_shf_merge=no
7267 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7268 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
7269 gcc_cv_as_shf_merge=yes
7271 elif test x$gcc_cv_as != x; then
7272 # Check if we support SHF_MERGE sections
7273 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7274 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s > /dev/null 2>&1; then
7275 gcc_cv_as_shf_merge=yes
7277 rm -f conftest.s conftest.o
7279 if test x"$gcc_cv_as_shf_merge" = xyes; then
7280 cat >> confdefs.h <<\EOF
7281 #define HAVE_GAS_SHF_MERGE 1
7285 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7289 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7290 echo "configure:7291: checking assembler .register pseudo-op support" >&5
7291 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7295 gcc_cv_as_register_pseudo_op=unknown
7296 if test x$gcc_cv_as != x; then
7297 # Check if we have .register
7298 echo ".register %g2, #scratch" > conftest.s
7299 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7300 gcc_cv_as_register_pseudo_op=yes
7302 gcc_cv_as_register_pseudo_op=no
7304 rm -f conftest.s conftest.o
7309 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7310 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
7311 cat >> confdefs.h <<\EOF
7312 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7317 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7318 echo "configure:7319: checking assembler supports -relax" >&5
7319 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7320 echo $ac_n "(cached) $ac_c" 1>&6
7323 gcc_cv_as_relax_opt=unknown
7324 if test x$gcc_cv_as != x; then
7325 # Check if gas supports -relax
7326 echo ".text" > conftest.s
7327 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
7328 gcc_cv_as_relax_opt=yes
7330 gcc_cv_as_relax_opt=no
7332 rm -f conftest.s conftest.o
7337 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7338 if test "x$gcc_cv_as_relax_opt" = xyes; then
7339 cat >> confdefs.h <<\EOF
7340 #define HAVE_AS_RELAX_OPTION 1
7347 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
7348 echo "configure:7349: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
7349 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7353 if test -n "$gcc_cv_as"; then
7354 echo ".xword foo" > conftest.s
7355 gcc_cv_as_flags64=no
7356 for flag in "-xarch=v9" "-64 -Av9"; do
7357 if $gcc_cv_as $flag -o conftest.o conftest.s \
7358 > /dev/null 2>&1; then
7359 gcc_cv_as_flags64=$flag
7363 rm -f conftest.s conftest.o
7365 if test "$gas" = yes; then
7366 gcc_cv_as_flags64="-64 -Av9"
7368 gcc_cv_as_flags64="-xarch=v9"
7374 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
7375 if test "x$gcc_cv_as_flags64" = xno; then
7377 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7378 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7381 cat >> confdefs.h <<EOF
7382 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
7387 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
7391 if test "x$gcc_cv_as_flags64" != xno; then
7392 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7393 echo "configure:7394: checking for assembler offsetable %lo() support" >&5
7394 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7398 gcc_cv_as_offsetable_lo10=unknown
7399 if test "x$gcc_cv_as" != x; then
7400 # Check if assembler has offsetable %lo()
7401 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7402 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7403 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7405 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7406 > /dev/null 2>&1; then
7407 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
7408 gcc_cv_as_offsetable_lo10=no
7410 gcc_cv_as_offsetable_lo10=yes
7413 gcc_cv_as_offsetable_lo10=no
7415 rm -f conftest.s conftest.o conftest1.s conftest1.o
7420 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7421 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
7422 cat >> confdefs.h <<\EOF
7423 #define HAVE_AS_OFFSETABLE_LO10 1
7432 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7433 echo "configure:7434: checking assembler instructions" >&5
7434 gcc_cv_as_instructions=
7435 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7436 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
7437 gcc_cv_as_instructions="filds fists"
7439 elif test x$gcc_cv_as != x; then
7440 set "filds fists" "filds mem; fists mem"
7443 echo "$2" > conftest.s
7444 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7445 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
7449 rm -f conftest.s conftest.o
7451 if test x"$gcc_cv_as_instructions" != x; then
7452 cat >> confdefs.h <<EOF
7453 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7457 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7461 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7462 echo "configure:7463: checking assembler dwarf2 debug_line support" >&5
7463 gcc_cv_as_dwarf2_debug_line=no
7464 # ??? Not all targets support dwarf2 debug_line, even within a version
7465 # of gas. Moreover, we need to emit a valid instruction to trigger any
7466 # info to the output file. So, as supported targets are added to gas 2.11,
7467 # add some instruction here to (also) show we expect this might work.
7468 # ??? Once 2.11 is released, probably need to add first known working
7469 # version to the per-target configury.
7471 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-*)
7478 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
7480 if test "$gcc_cv_gas_major_version" -eq 2 \
7481 -a "$gcc_cv_gas_minor_version" -ge 11 \
7482 -o "$gcc_cv_gas_major_version" -gt 2 \
7483 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
7484 && test x"$insn" != x ; then
7485 gcc_cv_as_dwarf2_debug_line="yes"
7487 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
7488 echo ' .file 1 "conftest.s"' > conftest.s
7489 echo ' .loc 1 3 0' >> conftest.s
7490 echo " $insn" >> conftest.s
7491 # ??? This fails with non-gnu grep.
7492 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
7493 && grep debug_line conftest.o > /dev/null 2>&1 ; then
7494 # The .debug_line file table must be in the exact order that
7495 # we specified the files, since these indicies are also used
7496 # by DW_AT_decl_file. Approximate this test by testing if
7497 # the assembler bitches if the same index is assigned twice.
7498 echo ' .file 1 "foo.s"' > conftest.s
7499 echo ' .file 1 "bar.s"' >> conftest.s
7500 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1
7502 gcc_cv_as_dwarf2_debug_line="no"
7504 gcc_cv_as_dwarf2_debug_line="yes"
7507 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7509 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
7510 cat >> confdefs.h <<\EOF
7511 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7515 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7517 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7518 cat >> confdefs.h <<EOF
7519 #define PREFIX_INCLUDE_DIR "$prefix/include"
7524 # Figure out what language subdirectories are present.
7525 # Look if the user specified --enable-languages="..."; if not, use
7526 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7528 if test x"${enable_languages+set}" != xset; then
7529 if test x"${LANGUAGES+set}" = xset; then
7530 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
7532 enable_languages=all
7535 if test x"${enable_languages}" = x; then
7536 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
7540 # First scan to see if an enabled language requires some other language.
7541 # We assume that a given config-lang.in will list all the language
7542 # front ends it requires, even if some are required indirectly.
7543 for lang in ${srcdir}/*/config-lang.in ..
7548 # The odd quoting in the next line works around
7549 # an apparent bug in bash 1.12 on linux.
7550 ${srcdir}/[*]/config-lang.in)
7553 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7554 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7555 for other in $this_lang_requires
7557 case ,${enable_languages}, in
7563 enable_languages="$enable_languages,$other"
7572 for lang in ${srcdir}/*/config-lang.in ..
7576 # The odd quoting in the next line works around
7577 # an apparent bug in bash 1.12 on linux.
7578 ${srcdir}/[*]/config-lang.in) ;;
7580 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7581 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7582 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7583 if test "x$lang_alias" = x
7585 echo "$lang doesn't set \$language." 1>&2
7588 case ${build_by_default},${enable_languages}, in
7589 *,$lang_alias,*) add_this_lang=yes ;;
7590 no,*) add_this_lang=no ;;
7591 *,all,*) add_this_lang=yes ;;
7592 *) add_this_lang=no ;;
7594 if test x"${add_this_lang}" = xyes; then
7596 ${srcdir}/ada/config-lang.in)
7597 if test x$have_gnat = xyes ; then
7598 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7602 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7610 # Make gthr-default.h if we have a thread file.
7612 if test $thread_file != single; then
7613 rm -f gthr-default.h
7614 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7615 gthread_flags=-DHAVE_GTHR_DEFAULT
7619 # Find out what GC implementation we want, or may, use.
7620 # Check whether --with-gc or --without-gc was given.
7621 if test "${with_gc+set}" = set; then
7628 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7636 echo "Using $GGC for garbage collection."
7638 # Use the system's zlib library.
7640 zlibinc="-I\$(srcdir)/../zlib"
7641 # Check whether --with-system-zlib or --without-system-zlib was given.
7642 if test "${with_system_zlib+set}" = set; then
7643 withval="$with_system_zlib"
7653 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7654 echo "configure:7655: checking whether to enable maintainer-specific portions of Makefiles" >&5
7655 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7656 if test "${enable_maintainer_mode+set}" = set; then
7657 enableval="$enable_maintainer_mode"
7658 maintainer_mode=$enableval
7664 echo "$ac_t""$maintainer_mode" 1>&6
7666 if test "$maintainer_mode" = "yes"; then
7672 # With Setjmp/Longjmp based exception handling.
7673 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7674 if test "${enable_sjlj_exceptions+set}" = set; then
7675 enableval="$enable_sjlj_exceptions"
7676 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
7677 cat >> confdefs.h <<EOF
7678 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
7684 # Make empty files to contain the specs and options for each language.
7685 # Then add #include lines to for a compiler that has specs and/or options.
7690 rm -f specs.h options.h gencheck.h
7691 touch specs.h options.h gencheck.h
7692 for subdir in . $subdirs
7694 if test -f $srcdir/$subdir/lang-specs.h; then
7695 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
7696 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7698 if test -f $srcdir/$subdir/lang-options.h; then
7699 echo "#include \"$subdir/lang-options.h\"" >>options.h
7700 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
7702 if test -f $srcdir/$subdir/$subdir-tree.def; then
7703 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
7704 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7708 # These (without "all_") are set in each config-lang.in.
7709 # `language' must be a single word so is spelled singularly.
7715 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
7716 # List of language makefile fragments.
7721 # Add the language fragments.
7722 # Languages are added via two mechanisms. Some information must be
7723 # recorded in makefile variables, these are defined in config-lang.in.
7724 # We accumulate them and plug them into the main Makefile.
7725 # The other mechanism is a set of hooks for each of the main targets
7726 # like `clean', `install', etc.
7728 language_fragments="Make-lang"
7729 language_hooks="Make-hooks"
7731 for s in .. $subdirs
7743 . ${srcdir}/$s/config-lang.in
7744 if test "x$language" = x
7746 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7749 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
7750 if test -f ${srcdir}/$s/Makefile.in
7751 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
7753 all_languages="$all_languages $language"
7754 if test "x$boot_language" = xyes
7756 all_boot_languages="$all_boot_languages $language"
7758 all_compilers="$all_compilers $compilers"
7759 all_stagestuff="$all_stagestuff $stagestuff"
7760 all_diff_excludes="$all_diff_excludes $diff_excludes"
7761 all_headers="$all_headers $headers"
7762 all_outputs="$all_outputs $outputs"
7763 all_lib2funcs="$all_lib2funcs $lib2funcs"
7768 for language in .. $all_languages
7770 if test $language != ".."
7772 check_languages="$check_languages check-$language"
7776 # Since we can't use `::' targets, we link each language in
7777 # with a set of hooks, reached indirectly via lang.${target}.
7781 target_list="all.build all.cross start.encap rest.encap \
7783 install-normal install-common install-info install-man \
7785 mostlyclean clean distclean extraclean maintainer-clean \
7786 stage1 stage2 stage3 stage4"
7787 for t in $target_list
7790 for lang in .. $all_languages
7792 if test $lang != ".."; then
7796 echo "lang.$t: $x" >> Make-hooks
7801 echo "dir ." > .gdbinit
7802 echo "dir ${srcdir}" >> .gdbinit
7803 if test x$gdb_needs_out_file_path = xyes
7805 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7807 if test "x$subdirs" != x; then
7810 echo "dir ${srcdir}/$s" >> .gdbinit
7813 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
7815 # Define variables host_canonical and build_canonical
7816 # because some Cygnus local changes in the Makefile depend on them.
7817 build_canonical=${build}
7818 host_canonical=${host}
7820 if test "${host}" != "${target}" ; then
7821 target_subdir=${target_alias}/
7827 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
7828 # absolute path for gcc_tooldir based on inserting the number of up-directory
7829 # movements required to get from $(exec_prefix) to $(prefix) into the basic
7830 # $(libsubdir)/@(unlibsubdir) based path.
7831 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
7832 # make and thus we'd get different behavior depending on where we built the
7834 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
7835 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
7837 # An explanation of the sed strings:
7838 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
7839 # -e 's|/$||' match a trailing forward slash and eliminates it
7840 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
7841 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
7843 # (*) Note this pattern overwrites the first character of the string
7844 # with a forward slash if one is not already present. This is not a
7845 # problem because the exact names of the sub-directories concerned is
7846 # unimportant, just the number of them matters.
7848 # The practical upshot of these patterns is like this:
7850 # prefix exec_prefix result
7851 # ------ ----------- ------
7853 # /foo/ /foo/bar ../
7854 # /foo /foo/bar/ ../
7855 # /foo/ /foo/bar/ ../
7856 # /foo /foo/bar/ugg ../../
7859 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
7864 # Find a directory in which to install a shared libgcc.
7866 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
7867 if test "${enable_version_specific_runtime_libs+set}" = set; then
7868 enableval="$enable_version_specific_runtime_libs"
7873 # Check whether --with-slibdir or --without-slibdir was given.
7874 if test "${with_slibdir+set}" = set; then
7875 withval="$with_slibdir"
7876 slibdir="$with_slibdir"
7878 if test "${enable_version_specific_runtime_libs+set}" = set; then
7879 slibdir='$(libsubdir)'
7880 elif test "$host" != "$target"; then
7881 slibdir='$(build_tooldir)/lib'
7889 # Nothing to do for FLOAT_H, float_format already handled.
7893 # Process the language and host/target makefile fragments.
7894 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
7896 # Substitute configuration variables
7965 # Echo that links are built
7966 if test x$host = x$target
7974 if test x$host != x$build
7976 str3=" on a $build system"
7979 if test "x$str2" != x || test "x$str3" != x
7984 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
7986 if test "x$str2" != x || test "x$str3" != x
7988 echo " ${str2}${str3}." 1>&2
7991 # Truncate the target if necessary
7992 if test x$host_truncate_target != x; then
7993 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
7996 # Configure the subdirectories
7997 # AC_CONFIG_SUBDIRS($subdirs)
7999 # Create the Makefile
8000 # and configure language subdirectories
8002 cat > confcache <<\EOF
8003 # This file is a shell script that caches the results of configure
8004 # tests run on this system so they can be shared between configure
8005 # scripts and configure runs. It is not useful on other systems.
8006 # If it contains results you don't want to keep, you may remove or edit it.
8008 # By default, configure uses ./config.cache as the cache file,
8009 # creating it if it does not exist already. You can give configure
8010 # the --cache-file=FILE option to use a different cache file; that is
8011 # what configure does when it calls configure scripts in
8012 # subdirectories, so they share the cache.
8013 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8014 # config.status only pays attention to the cache file if you give it the
8015 # --recheck option to rerun configure.
8018 # The following way of writing the cache mishandles newlines in values,
8019 # but we know of no workaround that is simple, portable, and efficient.
8020 # So, don't put newlines in cache variables' values.
8021 # Ultrix sh set writes to stderr and can't be redirected directly,
8022 # and sets the high bit in the cache file unless we assign to the vars.
8024 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8026 # `set' does not quote correctly, so add quotes (double-quote substitution
8027 # turns \\\\ into \\, and sed turns \\ into \).
8029 -e "s/'/'\\\\''/g" \
8030 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8033 # `set' quotes correctly as required by POSIX, so do not add quotes.
8034 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8037 if cmp -s $cache_file confcache; then
8040 if test -w $cache_file; then
8041 echo "updating cache $cache_file"
8042 cat confcache > $cache_file
8044 echo "not updating unwritable cache $cache_file"
8049 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8052 # Let make expand exec_prefix.
8053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8055 # Any assignment to VPATH causes Sun make to only execute
8056 # the first set of double-colon rules, so remove it if not needed.
8057 # If there is a colon in the path, we need to keep it.
8058 if test "x$srcdir" = x.; then
8059 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8062 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8064 DEFS=-DHAVE_CONFIG_H
8066 # Without the "./", some shells look in PATH for config.status.
8067 : ${CONFIG_STATUS=./config.status}
8069 echo creating $CONFIG_STATUS
8070 rm -f $CONFIG_STATUS
8071 cat > $CONFIG_STATUS <<EOF
8073 # Generated automatically by configure.
8074 # Run this file to recreate the current configuration.
8075 # This directory was configured as follows,
8076 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8078 # $0 $ac_configure_args
8080 # Compiler output produced by configure, useful for debugging
8081 # configure, is in ./config.log if it exists.
8083 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8086 case "\$ac_option" in
8087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8088 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8089 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8090 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8091 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8093 -help | --help | --hel | --he | --h)
8094 echo "\$ac_cs_usage"; exit 0 ;;
8095 *) echo "\$ac_cs_usage"; exit 1 ;;
8099 ac_given_srcdir=$srcdir
8101 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8103 cat >> $CONFIG_STATUS <<EOF
8105 # Protect against being on the right side of a sed subst in config.status.
8106 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8107 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8111 s%@CFLAGS@%$CFLAGS%g
8112 s%@CPPFLAGS@%$CPPFLAGS%g
8113 s%@CXXFLAGS@%$CXXFLAGS%g
8114 s%@FFLAGS@%$FFLAGS%g
8116 s%@LDFLAGS@%$LDFLAGS%g
8118 s%@exec_prefix@%$exec_prefix%g
8119 s%@prefix@%$prefix%g
8120 s%@program_transform_name@%$program_transform_name%g
8121 s%@bindir@%$bindir%g
8122 s%@sbindir@%$sbindir%g
8123 s%@libexecdir@%$libexecdir%g
8124 s%@datadir@%$datadir%g
8125 s%@sysconfdir@%$sysconfdir%g
8126 s%@sharedstatedir@%$sharedstatedir%g
8127 s%@localstatedir@%$localstatedir%g
8128 s%@libdir@%$libdir%g
8129 s%@includedir@%$includedir%g
8130 s%@oldincludedir@%$oldincludedir%g
8131 s%@infodir@%$infodir%g
8132 s%@mandir@%$mandir%g
8133 s%@enable_multilib@%$enable_multilib%g
8134 s%@enable_shared@%$enable_shared%g
8136 s%@host_alias@%$host_alias%g
8137 s%@host_cpu@%$host_cpu%g
8138 s%@host_vendor@%$host_vendor%g
8139 s%@host_os@%$host_os%g
8140 s%@target@%$target%g
8141 s%@target_alias@%$target_alias%g
8142 s%@target_cpu@%$target_cpu%g
8143 s%@target_vendor@%$target_vendor%g
8144 s%@target_os@%$target_os%g
8146 s%@build_alias@%$build_alias%g
8147 s%@build_cpu@%$build_cpu%g
8148 s%@build_vendor@%$build_vendor%g
8149 s%@build_os@%$build_os%g
8151 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8152 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8153 s%@strict1_warn@%$strict1_warn%g
8155 s%@warn_cflags@%$warn_cflags%g
8156 s%@stage1_cflags@%$stage1_cflags%g
8157 s%@SET_MAKE@%$SET_MAKE%g
8161 s%@RANLIB@%$RANLIB%g
8162 s%@INSTALL@%$INSTALL%g
8163 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8164 s%@INSTALL_DATA@%$INSTALL_DATA%g
8165 s%@GNATBIND@%$GNATBIND%g
8167 s%@have_mktemp_command@%$have_mktemp_command%g
8168 s%@MAKEINFO@%$MAKEINFO%g
8169 s%@BUILD_INFO@%$BUILD_INFO%g
8170 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8173 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8174 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8175 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8176 s%@vfprintf@%$vfprintf%g
8177 s%@doprint@%$doprint%g
8178 s%@strstr@%$strstr%g
8179 s%@LIBICONV@%$LIBICONV%g
8180 s%@manext@%$manext%g
8181 s%@objext@%$objext%g
8182 s%@PACKAGE@%$PACKAGE%g
8183 s%@VERSION@%$VERSION%g
8184 s%@CHECK_PO@%$CHECK_PO%g
8185 s%@USE_NLS@%$USE_NLS%g
8186 s%@MSGFMT@%$MSGFMT%g
8187 s%@GMSGFMT@%$GMSGFMT%g
8188 s%@XGETTEXT@%$XGETTEXT%g
8189 s%@GENCAT@%$GENCAT%g
8190 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8191 s%@CATALOGS@%$CATALOGS%g
8192 s%@CATOBJEXT@%$CATOBJEXT%g
8193 s%@DATADIRNAME@%$DATADIRNAME%g
8194 s%@GMOFILES@%$GMOFILES%g
8195 s%@INSTOBJEXT@%$INSTOBJEXT%g
8196 s%@INTLDEPS@%$INTLDEPS%g
8197 s%@INTLLIBS@%$INTLLIBS%g
8198 s%@INTLOBJS@%$INTLOBJS%g
8199 s%@POFILES@%$POFILES%g
8201 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8203 s%@GT_YES@%$GT_YES%g
8204 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8206 s%@inhibit_libc@%$inhibit_libc%g
8207 s%@gthread_flags@%$gthread_flags%g
8209 s%@zlibdir@%$zlibdir%g
8210 s%@zlibinc@%$zlibinc%g
8212 s%@build_canonical@%$build_canonical%g
8213 s%@host_canonical@%$host_canonical%g
8214 s%@target_subdir@%$target_subdir%g
8215 s%@gcc_tooldir@%$gcc_tooldir%g
8216 s%@dollar@%$dollar%g
8217 s%@slibdir@%$slibdir%g
8218 s%@objdir@%$objdir%g
8219 s%@subdirs@%$subdirs%g
8220 s%@all_boot_languages@%$all_boot_languages%g
8221 s%@all_compilers@%$all_compilers%g
8222 s%@all_diff_excludes@%$all_diff_excludes%g
8223 s%@all_headers@%$all_headers%g
8224 s%@all_lang_makefiles@%$all_lang_makefiles%g
8225 s%@all_languages@%$all_languages%g
8226 s%@all_lib2funcs@%$all_lib2funcs%g
8227 s%@all_stagestuff@%$all_stagestuff%g
8228 s%@build_exeext@%$build_exeext%g
8229 s%@build_install_headers_dir@%$build_install_headers_dir%g
8230 s%@build_xm_file_list@%$build_xm_file_list%g
8231 s%@build_xm_file@%$build_xm_file%g
8232 s%@build_xm_defines@%$build_xm_defines%g
8233 s%@check_languages@%$check_languages%g
8234 s%@cc_set_by_configure@%$cc_set_by_configure%g
8235 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8236 s%@cpp_install_dir@%$cpp_install_dir%g
8237 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8238 s%@dep_tmake_file@%$dep_tmake_file%g
8239 s%@extra_c_flags@%$extra_c_flags%g
8240 s%@extra_headers_list@%$extra_headers_list%g
8241 s%@extra_objs@%$extra_objs%g
8242 s%@extra_parts@%$extra_parts%g
8243 s%@extra_passes@%$extra_passes%g
8244 s%@extra_programs@%$extra_programs%g
8245 s%@float_h_file@%$float_h_file%g
8246 s%@gcc_config_arguments@%$gcc_config_arguments%g
8247 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8248 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8249 s%@gcc_version@%$gcc_version%g
8250 s%@gcc_version_full@%$gcc_version_full%g
8251 s%@gcc_version_trigger@%$gcc_version_trigger%g
8252 s%@host_exeext@%$host_exeext%g
8253 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8254 s%@host_xm_file_list@%$host_xm_file_list%g
8255 s%@host_xm_file@%$host_xm_file%g
8256 s%@host_xm_defines@%$host_xm_defines%g
8257 s%@install@%$install%g
8258 s%@lang_options_files@%$lang_options_files%g
8259 s%@lang_specs_files@%$lang_specs_files%g
8260 s%@lang_tree_files@%$lang_tree_files%g
8261 s%@local_prefix@%$local_prefix%g
8262 s%@md_file@%$md_file%g
8263 s%@objc_boehm_gc@%$objc_boehm_gc%g
8264 s%@out_file@%$out_file%g
8265 s%@out_object_file@%$out_object_file%g
8266 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8267 s%@symbolic_link@%$symbolic_link%g
8268 s%@thread_file@%$thread_file%g
8269 s%@tm_file_list@%$tm_file_list%g
8270 s%@tm_file@%$tm_file%g
8271 s%@tm_p_file_list@%$tm_p_file_list%g
8272 s%@tm_p_file@%$tm_p_file%g
8273 s%@xm_file@%$xm_file%g
8274 s%@xm_defines@%$xm_defines%g
8275 s%@c_target_objs@%$c_target_objs%g
8276 s%@cxx_target_objs@%$cxx_target_objs%g
8277 s%@target_cpu_default@%$target_cpu_default%g
8278 /@target_overrides@/r $target_overrides
8279 s%@target_overrides@%%g
8280 /@host_overrides@/r $host_overrides
8281 s%@host_overrides@%%g
8282 s%@cross_defines@%$cross_defines%g
8283 /@cross_overrides@/r $cross_overrides
8284 s%@cross_overrides@%%g
8285 /@build_overrides@/r $build_overrides
8286 s%@build_overrides@%%g
8287 /@language_fragments@/r $language_fragments
8288 s%@language_fragments@%%g
8289 /@language_hooks@/r $language_hooks
8290 s%@language_hooks@%%g
8295 cat >> $CONFIG_STATUS <<\EOF
8297 # Split the substitutions into bite-sized pieces for seds with
8298 # small command number limits, like on Digital OSF/1 and HP-UX.
8299 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8300 ac_file=1 # Number of current file.
8301 ac_beg=1 # First line for current file.
8302 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8305 while $ac_more_lines; do
8306 if test $ac_beg -gt 1; then
8307 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8309 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8311 if test ! -s conftest.s$ac_file; then
8313 rm -f conftest.s$ac_file
8315 if test -z "$ac_sed_cmds"; then
8316 ac_sed_cmds="sed -f conftest.s$ac_file"
8318 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8320 ac_file=`expr $ac_file + 1`
8322 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8325 if test -z "$ac_sed_cmds"; then
8330 cat >> $CONFIG_STATUS <<EOF
8332 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8334 cat >> $CONFIG_STATUS <<\EOF
8335 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8338 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8339 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8340 *) ac_file_in="${ac_file}.in" ;;
8343 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8345 # Remove last slash and all that follows it. Not all systems have dirname.
8346 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8348 # The file is in a subdirectory.
8349 test ! -d "$ac_dir" && mkdir "$ac_dir"
8350 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8351 # A "../" for each directory in $ac_dir_suffix.
8352 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8354 ac_dir_suffix= ac_dots=
8357 case "$ac_given_srcdir" in
8359 if test -z "$ac_dots"; then top_srcdir=.
8360 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8361 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8363 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8364 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8368 echo creating "$ac_file"
8370 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8372 *Makefile*) ac_comsub="1i\\
8373 # $configure_input" ;;
8377 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8379 s%@configure_input@%$configure_input%g
8380 s%@srcdir@%$srcdir%g
8381 s%@top_srcdir@%$top_srcdir%g
8382 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8386 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8387 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8389 # ac_d sets the value in "#define NAME VALUE" lines.
8390 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8391 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8394 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8395 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8396 ac_uB='\([ ]\)%\1#\2define\3'
8399 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8400 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8401 ac_eB='$%\1#\2define\3'
8405 if test "${CONFIG_HEADERS+set}" != set; then
8407 cat >> $CONFIG_STATUS <<EOF
8408 CONFIG_HEADERS="auto-host.h:config.in"
8410 cat >> $CONFIG_STATUS <<\EOF
8412 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8413 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8415 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8416 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8417 *) ac_file_in="${ac_file}.in" ;;
8420 echo creating $ac_file
8422 rm -f conftest.frag conftest.in conftest.out
8423 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8424 cat $ac_file_inputs > conftest.in
8428 # Transform confdefs.h into a sed script conftest.vals that substitutes
8429 # the proper values into config.h.in to produce config.h. And first:
8430 # Protect against being on the right side of a sed subst in config.status.
8431 # Protect against being in an unquoted here document in config.status.
8433 cat > conftest.hdr <<\EOF
8436 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8440 sed -n -f conftest.hdr confdefs.h > conftest.vals
8443 # This sed command replaces #undef with comments. This is necessary, for
8444 # example, in the case of _POSIX_SOURCE, which is predefined and required
8445 # on some systems where configure will not decide to define it.
8446 cat >> conftest.vals <<\EOF
8447 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8450 # Break up conftest.vals because some shells have a limit on
8451 # the size of here documents, and old seds have small limits too.
8456 ac_lines=`grep -c . conftest.vals`
8457 # grep -c gives empty output for an empty file on some AIX systems.
8458 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8459 # Write a limited-size here document to conftest.frag.
8460 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8461 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8463 sed -f conftest.frag conftest.in > conftest.out
8465 mv conftest.out conftest.in
8467 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8469 mv conftest.tail conftest.vals
8473 cat >> $CONFIG_STATUS <<\EOF
8474 rm -f conftest.frag conftest.h
8475 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8476 cat conftest.in >> conftest.h
8478 if cmp -s $ac_file conftest.h 2>/dev/null; then
8479 echo "$ac_file is unchanged"
8482 # Remove last slash and all that follows it. Not all systems have dirname.
8483 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8484 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8485 # The file is in a subdirectory.
8486 test ! -d "$ac_dir" && mkdir "$ac_dir"
8489 mv conftest.h $ac_file
8495 cat >> $CONFIG_STATUS <<EOF
8496 ac_sources="$nls_cv_header_libgt"
8497 ac_dests="$nls_cv_header_intl"
8500 cat >> $CONFIG_STATUS <<\EOF
8501 srcdir=$ac_given_srcdir
8502 while test -n "$ac_sources"; do
8503 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8504 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8506 echo "linking $srcdir/$ac_source to $ac_dest"
8508 if test ! -r $srcdir/$ac_source; then
8509 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8513 # Make relative symlinks.
8514 # Remove last slash and all that follows it. Not all systems have dirname.
8515 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8516 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8517 # The dest file is in a subdirectory.
8518 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8519 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8520 # A "../" for each directory in $ac_dest_dir_suffix.
8521 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8523 ac_dest_dir_suffix= ac_dots=
8527 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8528 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8531 # Make a symlink if possible; otherwise try a hard link.
8532 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8533 ln $srcdir/$ac_source $ac_dest; then :
8535 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8539 cat >> $CONFIG_STATUS <<EOF
8545 target_alias='${target_alias}'
8547 subdirs='${subdirs}'
8548 symbolic_link='${symbolic_link}'
8549 program_transform_set='${program_transform_set}'
8550 program_transform_name='${program_transform_name}'
8551 dep_host_xmake_file='${dep_host_xmake_file}'
8552 host_xmake_file='${host_xmake_file}'
8553 dep_tmake_file='${dep_tmake_file}'
8554 tmake_file='${tmake_file}'
8555 thread_file='${thread_file}'
8556 gcc_config_arguments='${gcc_config_arguments}'
8557 gcc_version='${gcc_version}'
8558 gcc_version_full='${gcc_version_full}'
8559 gcc_version_trigger='${gcc_version_trigger}'
8560 local_prefix='${local_prefix}'
8561 build_install_headers_dir='${build_install_headers_dir}'
8562 build_exeext='${build_exeext}'
8563 host_exeext='${host_exeext}'
8564 out_file='${out_file}'
8565 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
8566 SET_MAKE='${SET_MAKE}'
8567 target_list='${target_list}'
8568 target_overrides='${target_overrides}'
8569 host_overrides='${host_overrides}'
8570 cross_defines='${cross_defines}'
8571 cross_overrides='${cross_overrides}'
8572 build_overrides='${build_overrides}'
8573 cpp_install_dir='${cpp_install_dir}'
8576 cat >> $CONFIG_STATUS <<\EOF
8577 case "$CONFIG_FILES" in *po/Makefile.in*)
8578 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8581 case x$CONFIG_HEADERS in
8582 xauto-host.h:config.in)
8585 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8586 # bootstrapping and the installation procedure can still use
8587 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8588 # FLAGS_TO_PASS has been modified to solve the problem there.
8589 # This is virtually a duplicate of what happens in configure.lang; we do
8590 # an extra check to make sure this only happens if ln -s can be used.
8591 if test "$symbolic_link" = "ln -s"; then
8592 for d in .. ${subdirs} ; do
8593 if test $d != ..; then
8596 for t in stage1 stage2 stage3 stage4 include
8599 $symbolic_link ../$t $t 2>/dev/null
8605 # Avoid having to add intl to our include paths.
8606 if test -f intl/libintl.h; then
8607 echo creating libintl.h
8608 echo '#include "intl/libintl.h"' >libintl.h
8613 chmod +x $CONFIG_STATUS
8614 rm -fr confdefs* $ac_clean_files
8615 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1