3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,gc,gcac; default
40 --disable-cpp don't provide a user-visible C preprocessor."
42 --with-cpp-install-dir=DIR
43 install the user visible C preprocessor in DIR
44 (relative to PREFIX) as well as PREFIX/bin."
46 --enable-c-mbchar Enable multibyte characters for C and C++."
48 --enable-threads enable thread usage for target GCC.
49 --enable-threads=LIB use LIB thread package for target GCC."
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime."
54 --with-dwarf2 force the default debug format to be DWARF2."
56 --disable-shared don't provide a shared libgcc."
58 --enable-nls use Native Language Support (default)"
60 --disable-nls do not use Native Language Support"
62 --with-included-gettext use the GNU gettext library included here"
64 --with-catgets use catgets functions if available"
66 --disable-win32-registry
67 Disable lookup of installation paths in the
68 Registry on Windows hosts.
69 --enable-win32-registry Enable registry lookup (default).
70 --enable-win32-registry=KEY
71 Use KEY instead of GCC version as the last portion
74 --with-gc={simple,page} Choose the garbage collection mechanism to use
77 --with-system-zlib use installed libz"
79 --enable-maintainer-mode enable make rules and dependencies not useful
80 (and sometimes confusing) to the casual installer"
82 --enable-version-specific-runtime-libs Specify that runtime libraries shou
83 ld be installed in a compiler-specific directory "
85 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file=./config.cache
100 program_transform_name=s,x,x,
108 bindir='${exec_prefix}/bin'
109 sbindir='${exec_prefix}/sbin'
110 libexecdir='${exec_prefix}/libexec'
111 datadir='${prefix}/share'
112 sysconfdir='${prefix}/etc'
113 sharedstatedir='${prefix}/com'
114 localstatedir='${prefix}/var'
115 libdir='${exec_prefix}/lib'
116 includedir='${prefix}/include'
117 oldincludedir='/usr/include'
118 infodir='${prefix}/info'
119 mandir='${prefix}/man'
121 # Initialize some other variables.
124 SHELL=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
151 bindir="$ac_optarg" ;;
153 -build | --build | --buil | --bui | --bu)
155 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
156 build="$ac_optarg" ;;
158 -cache-file | --cache-file | --cache-fil | --cache-fi \
159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
160 ac_prev=cache_file ;;
161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
163 cache_file="$ac_optarg" ;;
165 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 datadir="$ac_optarg" ;;
171 -disable-* | --disable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* | --enable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
195 | --exec | --exe | --ex)
196 ac_prev=exec_prefix ;;
197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
199 | --exec=* | --exe=* | --ex=*)
200 exec_prefix="$ac_optarg" ;;
202 -gas | --gas | --ga | --g)
203 # Obsolete; use --with-gas.
206 -help | --help | --hel | --he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host | --host | --hos | --ho)
263 -host=* | --host=* | --hos=* | --ho=*)
266 -includedir | --includedir | --includedi | --included | --include \
267 | --includ | --inclu | --incl | --inc)
268 ac_prev=includedir ;;
269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
270 | --includ=* | --inclu=* | --incl=* | --inc=*)
271 includedir="$ac_optarg" ;;
273 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
276 infodir="$ac_optarg" ;;
278 -libdir | --libdir | --libdi | --libd)
280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
281 libdir="$ac_optarg" ;;
283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
284 | --libexe | --libex | --libe)
285 ac_prev=libexecdir ;;
286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
287 | --libexe=* | --libex=* | --libe=*)
288 libexecdir="$ac_optarg" ;;
290 -localstatedir | --localstatedir | --localstatedi | --localstated \
291 | --localstate | --localstat | --localsta | --localst \
292 | --locals | --local | --loca | --loc | --lo)
293 ac_prev=localstatedir ;;
294 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
295 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
296 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
297 localstatedir="$ac_optarg" ;;
299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 mandir="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
318 | --oldin | --oldi | --old | --ol | --o)
319 ac_prev=oldincludedir ;;
320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
323 oldincludedir="$ac_optarg" ;;
325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
328 prefix="$ac_optarg" ;;
330 -program-prefix | --program-prefix | --program-prefi | --program-pref \
331 | --program-pre | --program-pr | --program-p)
332 ac_prev=program_prefix ;;
333 -program-prefix=* | --program-prefix=* | --program-prefi=* \
334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
335 program_prefix="$ac_optarg" ;;
337 -program-suffix | --program-suffix | --program-suffi | --program-suff \
338 | --program-suf | --program-su | --program-s)
339 ac_prev=program_suffix ;;
340 -program-suffix=* | --program-suffix=* | --program-suffi=* \
341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
342 program_suffix="$ac_optarg" ;;
344 -program-transform-name | --program-transform-name \
345 | --program-transform-nam | --program-transform-na \
346 | --program-transform-n | --program-transform- \
347 | --program-transform | --program-transfor \
348 | --program-transfo | --program-transf \
349 | --program-trans | --program-tran \
350 | --progr-tra | --program-tr | --program-t)
351 ac_prev=program_transform_name ;;
352 -program-transform-name=* | --program-transform-name=* \
353 | --program-transform-nam=* | --program-transform-na=* \
354 | --program-transform-n=* | --program-transform-=* \
355 | --program-transform=* | --program-transfor=* \
356 | --program-transfo=* | --program-transf=* \
357 | --program-trans=* | --program-tran=* \
358 | --progr-tra=* | --program-tr=* | --program-t=*)
359 program_transform_name="$ac_optarg" ;;
361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
362 | -silent | --silent | --silen | --sile | --sil)
365 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 sbindir="$ac_optarg" ;;
371 -sharedstatedir | --sharedstatedir | --sharedstatedi \
372 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
373 | --sharedst | --shareds | --shared | --share | --shar \
375 ac_prev=sharedstatedir ;;
376 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
377 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
378 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 sharedstatedir="$ac_optarg" ;;
382 -site | --site | --sit)
384 -site=* | --site=* | --sit=*)
387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
390 srcdir="$ac_optarg" ;;
392 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
393 | --syscon | --sysco | --sysc | --sys | --sy)
394 ac_prev=sysconfdir ;;
395 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
396 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
397 sysconfdir="$ac_optarg" ;;
399 -target | --target | --targe | --targ | --tar | --ta | --t)
401 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
402 target="$ac_optarg" ;;
404 -v | -verbose | --verbose | --verbos | --verbo | --verb)
407 -version | --version | --versio | --versi | --vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* | --without-*)
425 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
438 | --x-incl | --x-inc | --x-in | --x-i)
439 ac_prev=x_includes ;;
440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
442 x_includes="$ac_optarg" ;;
444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
446 ac_prev=x_libraries ;;
447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
449 x_libraries="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c) ;;
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file=tree.c
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE; then
554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp='$CPP $CPPFLAGS'
577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
592 ac_n= ac_c='\c' ac_t=
600 symbolic_link='ln -s'
603 # Check for bogus environment variables.
604 # Test if LIBRARY_PATH contains the notation for the current directory
605 # since this would lead to problems installing/building glibc.
606 # LIBRARY_PATH contains the current directory if one of the following
608 # - one of the terminals (":" and ";") is the first or last sign
609 # - two terminals occur directly after each other
610 # - the path contains an element with a dot in it
611 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
612 echo "configure:613: checking LIBRARY_PATH variable" >&5
613 case ${LIBRARY_PATH} in
614 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
615 library_path_setting="contains current directory"
618 library_path_setting="ok"
621 echo "$ac_t""$library_path_setting" 1>&6
622 if test "$library_path_setting" != "ok"; then
623 { echo "configure: error:
624 *** LIBRARY_PATH shouldn't contain the current directory when
625 *** building gcc. Please change the environment variable
626 *** and run configure again." 1>&2; exit 1; }
629 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
630 # since this would lead to problems installing/building glibc.
631 # GCC_EXEC_PREFIX contains the current directory if one of the following
633 # - one of the terminals (":" and ";") is the first or last sign
634 # - two terminals occur directly after each other
635 # - the path contains an element with a dot in it
636 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
637 echo "configure:638: checking GCC_EXEC_PREFIX variable" >&5
638 case ${GCC_EXEC_PREFIX} in
639 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
640 gcc_exec_prefix_setting="contains current directory"
643 gcc_exec_prefix_setting="ok"
646 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
647 if test "$gcc_exec_prefix_setting" != "ok"; then
648 { echo "configure: error:
649 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
650 *** building gcc. Please change the environment variable
651 *** and run configure again." 1>&2; exit 1; }
654 # Check for additional parameters
657 # Check whether --with-gnu-ld or --without-gnu-ld was given.
658 if test "${with_gnu_ld+set}" = set; then
659 withval="$with_gnu_ld"
660 gnu_ld_flag="$with_gnu_ld"
666 # With pre-defined ld
667 # Check whether --with-ld or --without-ld was given.
668 if test "${with_ld+set}" = set; then
670 DEFAULT_LINKER="$with_ld"
673 if test x"${DEFAULT_LINKER+set}" = x"set"; then
674 if test ! -x "$DEFAULT_LINKER"; then
675 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
676 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
679 cat >> confdefs.h <<EOF
680 #define DEFAULT_LINKER "$DEFAULT_LINKER"
686 # Check whether --with-gnu-as or --without-gnu-as was given.
687 if test "${with_gnu_as+set}" = set; then
688 withval="$with_gnu_as"
689 gas_flag="$with_gnu_as"
695 # Check whether --with-as or --without-as was given.
696 if test "${with_as+set}" = set; then
698 DEFAULT_ASSEMBLER="$with_as"
701 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
702 if test ! -x "$DEFAULT_ASSEMBLER"; then
703 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
704 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
707 cat >> confdefs.h <<EOF
708 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
714 # Check whether --with-stabs or --without-stabs was given.
715 if test "${with_stabs+set}" = set; then
716 withval="$with_stabs"
724 # Check whether --with-elf or --without-elf was given.
725 if test "${with_elf+set}" = set; then
733 # Specify the local prefix
735 # Check whether --with-local-prefix or --without-local-prefix was given.
736 if test "${with_local_prefix+set}" = set; then
737 withval="$with_local_prefix"
739 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
741 *) local_prefix=$with_local_prefix ;;
746 # Default local prefix if it is empty
747 if test x$local_prefix = x; then
748 local_prefix=/usr/local
751 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
752 # passed in by the toplevel make and thus we'd get different behavior
753 # depending on where we built the sources.
755 # Specify the g++ header file directory
756 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
757 if test "${with_gxx_include_dir+set}" = set; then
758 withval="$with_gxx_include_dir"
760 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
762 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
767 if test x${gcc_gxx_include_dir} = x; then
768 if test x${enable_version_specific_runtime_libs} = xyes; then
769 gcc_gxx_include_dir='${libsubdir}/include/g++'
771 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
772 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
776 # Determine whether or not multilibs are enabled.
777 # Check whether --enable-multilib or --disable-multilib was given.
778 if test "${enable_multilib+set}" = set; then
779 enableval="$enable_multilib"
787 # Enable expensive internal checks
788 # Check whether --enable-checking or --disable-checking was given.
789 if test "${enable_checking+set}" = set; then
790 enableval="$enable_checking"
795 ac_gc_always_collect=
796 case "${enableval}" in
797 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
799 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
800 set fnord $enableval; shift
805 misc) ac_checking=1 ;;
806 tree) ac_tree_checking=1 ;;
807 rtl) ac_rtl_checking=1 ;;
808 gc) ac_gc_checking=1 ;;
809 gcac) ac_gc_always_collect=1 ;;
810 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
817 # Enable some checks by default for development versions of GCC
818 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
821 if test x$ac_checking != x ; then
822 cat >> confdefs.h <<\EOF
823 #define ENABLE_CHECKING 1
827 if test x$ac_tree_checking != x ; then
828 cat >> confdefs.h <<\EOF
829 #define ENABLE_TREE_CHECKING 1
833 if test x$ac_rtl_checking != x ; then
834 cat >> confdefs.h <<\EOF
835 #define ENABLE_RTL_CHECKING 1
839 if test x$ac_gc_checking != x ; then
840 cat >> confdefs.h <<\EOF
841 #define ENABLE_GC_CHECKING 1
845 if test x$ac_gc_always_collect != x ; then
846 cat >> confdefs.h <<\EOF
847 #define ENABLE_GC_ALWAYS_COLLECT 1
853 # Check whether --enable-cpp or --disable-cpp was given.
854 if test "${enable_cpp+set}" = set; then
855 enableval="$enable_cpp"
862 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
863 if test "${with_cpp_install_dir+set}" = set; then
864 withval="$with_cpp_install_dir"
865 if test x$withval = xyes; then
866 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
867 elif test x$withval != xno; then
868 cpp_install_dir=$withval
873 # Enable Multibyte Characters for C/C++
874 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
875 if test "${enable_c_mbchar+set}" = set; then
876 enableval="$enable_c_mbchar"
877 if test x$enable_c_mbchar != xno; then
878 cat >> confdefs.h <<\EOF
879 #define MULTIBYTE_CHARS 1
887 # Pass with no value to take the default
888 # Pass with a value to specify a thread package
889 # Check whether --enable-threads or --disable-threads was given.
890 if test "${enable_threads+set}" = set; then
891 enableval="$enable_threads"
898 enable_threads_flag=$enable_threads
899 # Check if a valid thread package
900 case x${enable_threads_flag} in
903 target_thread_file='single'
907 target_thread_file=''
909 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
910 xsolaris | xwin32 | xdce | xvxworks | xaix)
911 target_thread_file=$enable_threads_flag
914 echo "$enable_threads is an unknown thread package" 1>&2
919 # Check whether --enable-objc-gc or --disable-objc-gc was given.
920 if test "${enable_objc_gc+set}" = set; then
921 enableval="$enable_objc_gc"
922 if test x$enable_objc_gc = xno; then
932 # Check whether --with-dwarf2 or --without-dwarf2 was given.
933 if test "${with_dwarf2+set}" = set; then
934 withval="$with_dwarf2"
935 dwarf2="$with_dwarf2"
941 # Check whether --enable-shared or --disable-shared was given.
942 if test "${enable_shared+set}" = set; then
943 enableval="$enable_shared"
945 case $enable_shared in
949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
950 for pkg in $enableval; do
951 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
965 # Determine the host, build, and target systems
967 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
968 if test -f $ac_dir/install-sh; then
970 ac_install_sh="$ac_aux_dir/install-sh -c"
972 elif test -f $ac_dir/install.sh; then
974 ac_install_sh="$ac_aux_dir/install.sh -c"
978 if test -z "$ac_aux_dir"; then
979 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
981 ac_config_guess=$ac_aux_dir/config.guess
982 ac_config_sub=$ac_aux_dir/config.sub
983 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
986 # Do some error checking and defaulting for the host and target type.
988 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
991 # 1. You are not allowed to specify --host, --target, and nonopt at the
993 # 2. Host defaults to nonopt.
994 # 3. If nonopt is not specified, then host defaults to the current host,
995 # as determined by config.guess.
996 # 4. Target and build default to nonopt.
997 # 5. If nonopt is not specified, then target and build default to host.
999 # The aliases save the names the user supplied, while $host etc.
1000 # will get canonicalized.
1001 case $host---$target---$nonopt in
1002 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1003 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1007 # Make sure we can run config.sub.
1008 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1009 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1012 echo $ac_n "checking host system type""... $ac_c" 1>&6
1013 echo "configure:1014: checking host system type" >&5
1016 case "$host_alias" in
1020 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1021 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1023 *) host_alias=$nonopt ;;
1027 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1028 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031 echo "$ac_t""$host" 1>&6
1033 echo $ac_n "checking target system type""... $ac_c" 1>&6
1034 echo "configure:1035: checking target system type" >&5
1036 target_alias=$target
1037 case "$target_alias" in
1040 NONE) target_alias=$host_alias ;;
1041 *) target_alias=$nonopt ;;
1045 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1046 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$target" 1>&6
1051 echo $ac_n "checking build system type""... $ac_c" 1>&6
1052 echo "configure:1053: checking build system type" >&5
1055 case "$build_alias" in
1058 NONE) build_alias=$host_alias ;;
1059 *) build_alias=$nonopt ;;
1063 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1064 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1065 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1066 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 echo "$ac_t""$build" 1>&6
1069 test "$host_alias" != "$target_alias" &&
1070 test "$program_prefix$program_suffix$program_transform_name" = \
1072 program_prefix=${target_alias}-
1075 # Find the native compiler
1076 # Extract the first word of "gcc", so it can be a program name with args.
1077 set dummy gcc; ac_word=$2
1078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079 echo "configure:1080: checking for $ac_word" >&5
1080 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1083 if test -n "$CC"; then
1084 ac_cv_prog_CC="$CC" # Let the user override the test.
1086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1088 for ac_dir in $ac_dummy; do
1089 test -z "$ac_dir" && ac_dir=.
1090 if test -f $ac_dir/$ac_word; then
1099 if test -n "$CC"; then
1100 echo "$ac_t""$CC" 1>&6
1102 echo "$ac_t""no" 1>&6
1105 if test -z "$CC"; then
1106 # Extract the first word of "cc", so it can be a program name with args.
1107 set dummy cc; ac_word=$2
1108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1109 echo "configure:1110: checking for $ac_word" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 if test -n "$CC"; then
1114 ac_cv_prog_CC="$CC" # Let the user override the test.
1116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1119 for ac_dir in $ac_dummy; do
1120 test -z "$ac_dir" && ac_dir=.
1121 if test -f $ac_dir/$ac_word; then
1122 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1123 ac_prog_rejected=yes
1131 if test $ac_prog_rejected = yes; then
1132 # We found a bogon in the path, so make sure we never use it.
1133 set dummy $ac_cv_prog_CC
1135 if test $# -gt 0; then
1136 # We chose a different compiler from the bogus one.
1137 # However, it has the same basename, so the bogon will be chosen
1138 # first if we set CC to just the basename; use the full file name.
1140 set dummy "$ac_dir/$ac_word" "$@"
1148 if test -n "$CC"; then
1149 echo "$ac_t""$CC" 1>&6
1151 echo "$ac_t""no" 1>&6
1154 if test -z "$CC"; then
1155 case "`uname -s`" in
1157 # Extract the first word of "cl", so it can be a program name with args.
1158 set dummy cl; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$CC"; then
1165 ac_cv_prog_CC="$CC" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1180 if test -n "$CC"; then
1181 echo "$ac_t""$CC" 1>&6
1183 echo "$ac_t""no" 1>&6
1188 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1191 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1195 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1196 ac_cpp='$CPP $CPPFLAGS'
1197 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1198 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1199 cross_compiling=$ac_cv_prog_cc_cross
1201 cat > conftest.$ac_ext << EOF
1203 #line 1204 "configure"
1204 #include "confdefs.h"
1208 if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1209 ac_cv_prog_cc_works=yes
1210 # If we can't run a trivial program, we are probably using a cross compiler.
1211 if (./conftest; exit) 2>/dev/null; then
1212 ac_cv_prog_cc_cross=no
1214 ac_cv_prog_cc_cross=yes
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1219 ac_cv_prog_cc_works=no
1223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1224 ac_cpp='$CPP $CPPFLAGS'
1225 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1226 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1227 cross_compiling=$ac_cv_prog_cc_cross
1229 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1230 if test $ac_cv_prog_cc_works = no; then
1231 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1233 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1234 echo "configure:1235: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1235 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1236 cross_compiling=$ac_cv_prog_cc_cross
1238 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1239 echo "configure:1240: checking whether we are using GNU C" >&5
1240 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 cat > conftest.c <<EOF
1248 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1255 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1257 if test $ac_cv_prog_gcc = yes; then
1263 ac_test_CFLAGS="${CFLAGS+set}"
1264 ac_save_CFLAGS="$CFLAGS"
1266 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1267 echo "configure:1268: checking whether ${CC-cc} accepts -g" >&5
1268 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 echo 'void f(){}' > conftest.c
1272 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1281 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1282 if test "$ac_test_CFLAGS" = set; then
1283 CFLAGS="$ac_save_CFLAGS"
1284 elif test $ac_cv_prog_cc_g = yes; then
1285 if test "$GCC" = yes; then
1291 if test "$GCC" = yes; then
1298 if test "x$CC" != xcc; then
1299 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether $CC and cc understand -c and -o together" >&5
1302 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1303 echo "configure:1304: checking whether cc understands -c and -o together" >&5
1305 set dummy $CC; ac_cc="`echo $2 |
1306 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1307 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 echo 'foo(){}' > conftest.c
1311 # Make sure it works both with $CC and with simple cc.
1312 # We do the test twice because some compilers refuse to overwrite an
1313 # existing .o file with -o, though they will create one.
1314 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1315 if { (eval echo configure:1316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1316 test -f conftest.o && { (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1318 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1319 if test "x$CC" != xcc; then
1320 # Test first that cc exists at all.
1321 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1322 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1323 if { (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1324 test -f conftest.o && { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1329 # cc exists but doesn't like -o.
1330 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1335 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1340 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1343 echo "$ac_t""no" 1>&6
1344 cat >> confdefs.h <<\EOF
1345 #define NO_MINUS_C_MINUS_O 1
1350 # autoconf is lame and doesn't give us any substitution variable for this.
1351 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1352 NO_MINUS_C_MINUS_O=yes
1354 OUTPUT_OPTION='-o $@'
1359 echo $ac_n "checking for long double""... $ac_c" 1>&6
1360 echo "configure:1361: checking for long double" >&5
1361 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 if test "$GCC" = yes; then
1365 gcc_cv_c_long_double=yes
1367 cat > conftest.$ac_ext <<EOF
1368 #line 1369 "configure"
1369 #include "confdefs.h"
1372 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1373 long double foo = 0.0;
1374 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1375 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1378 if { (eval echo configure:1379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1380 gcc_cv_c_long_double=yes
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1385 gcc_cv_c_long_double=no
1391 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1392 if test $gcc_cv_c_long_double = yes; then
1393 cat >> confdefs.h <<\EOF
1394 #define HAVE_LONG_DOUBLE 1
1400 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1401 echo "configure:1402: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1402 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 save_CFLAGS="$CFLAGS"
1406 CFLAGS="-Wno-long-long"
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1415 if { (eval echo configure:1416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 ac_cv_prog_cc_no_long_long=yes
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1422 ac_cv_prog_cc_no_long_long=no
1425 CFLAGS="$save_CFLAGS"
1428 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1430 if test $ac_cv_prog_cc_no_long_long = yes; then
1431 strict1_warn="-pedantic -Wno-long-long"
1435 # If the native compiler is GCC, we can enable warnings even in stage1.
1436 # That's useful for people building cross-compilers, or just running a
1439 if test "x$GCC" = "xyes"; then
1440 warn_cflags='$(GCC_WARN_CFLAGS)'
1444 # Stage specific cflags for build.
1448 if test x$GCC = xyes
1450 stage1_cflags="-Wa,-J"
1458 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1459 echo "configure:1460: checking whether ${MAKE-make} sets \${MAKE}" >&5
1460 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1461 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftestmake <<\EOF
1466 @echo 'ac_maketemp="${MAKE}"'
1468 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1469 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1470 if test -n "$ac_maketemp"; then
1471 eval ac_cv_prog_make_${ac_make}_set=yes
1473 eval ac_cv_prog_make_${ac_make}_set=no
1477 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1478 echo "$ac_t""yes" 1>&6
1481 echo "$ac_t""no" 1>&6
1482 SET_MAKE="MAKE=${MAKE-make}"
1486 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1487 echo "configure:1488: checking whether a default assembler was specified" >&5
1488 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1489 if test x"$gas_flag" = x"no"; then
1490 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1492 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1495 echo "$ac_t""no" 1>&6
1498 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether a default linker was specified" >&5
1500 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1501 if test x"$gnu_ld_flag" = x"no"; then
1502 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1504 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1507 echo "$ac_t""no" 1>&6
1510 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1511 echo "configure:1512: checking for GNU C library" >&5
1512 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1518 #include <features.h>
1521 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1522 #error Not a GNU C library system
1526 if { (eval echo configure:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1538 echo "$ac_t""$gcc_cv_glibc" 1>&6
1539 if test $gcc_cv_glibc = yes; then
1540 cat >> confdefs.h <<\EOF
1541 #define _GNU_SOURCE 1
1546 echo $ac_n "checking for inline""... $ac_c" 1>&6
1547 echo "configure:1548: checking for inline" >&5
1548 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1552 for ac_kw in inline __inline__ __inline; do
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1561 if { (eval echo configure:1562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1563 ac_cv_c_inline=$ac_kw; break
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1573 echo "$ac_t""$ac_cv_c_inline" 1>&6
1574 case "$ac_cv_c_inline" in
1576 no) cat >> confdefs.h <<\EOF
1580 *) cat >> confdefs.h <<EOF
1581 #define inline $ac_cv_c_inline
1587 # Find some useful tools
1588 for ac_prog in mawk gawk nawk awk
1590 # Extract the first word of "$ac_prog", so it can be a program name with args.
1591 set dummy $ac_prog; ac_word=$2
1592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1593 echo "configure:1594: checking for $ac_word" >&5
1594 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 if test -n "$AWK"; then
1598 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1602 for ac_dir in $ac_dummy; do
1603 test -z "$ac_dir" && ac_dir=.
1604 if test -f $ac_dir/$ac_word; then
1605 ac_cv_prog_AWK="$ac_prog"
1612 AWK="$ac_cv_prog_AWK"
1613 if test -n "$AWK"; then
1614 echo "$ac_t""$AWK" 1>&6
1616 echo "$ac_t""no" 1>&6
1619 test -n "$AWK" && break
1622 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether ln works" >&5
1624 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 rm -f conftestdata_t
1628 echo >conftestdata_f
1629 if ln conftestdata_f conftestdata_t 2>/dev/null
1633 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1635 gcc_cv_prog_LN="ln -s"
1640 rm -f conftestdata_f conftestdata_t
1643 LN="$gcc_cv_prog_LN"
1644 if test "$gcc_cv_prog_LN" = "ln"; then
1645 echo "$ac_t""yes" 1>&6
1647 if test "$gcc_cv_prog_LN" = "ln -s"; then
1648 echo "$ac_t""no, using ln -s" 1>&6
1650 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1654 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1655 echo "configure:1656: checking whether ln -s works" >&5
1656 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 rm -f conftestdata_t
1660 echo >conftestdata_f
1661 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1663 gcc_cv_prog_LN_S="ln -s"
1665 if ln conftestdata_f conftestdata_t 2>/dev/null
1672 rm -f conftestdata_f conftestdata_t
1675 LN_S="$gcc_cv_prog_LN_S"
1676 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1677 echo "$ac_t""yes" 1>&6
1679 if test "$gcc_cv_prog_LN_S" = "ln"; then
1680 echo "$ac_t""no, using ln" 1>&6
1682 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1686 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1687 echo "configure:1688: checking for volatile" >&5
1688 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1699 if { (eval echo configure:1700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1701 gcc_cv_c_volatile=yes
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1706 gcc_cv_c_volatile=no
1711 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1712 if test $gcc_cv_c_volatile = yes ; then
1713 cat >> confdefs.h <<\EOF
1714 #define HAVE_VOLATILE 1
1719 # Extract the first word of "ranlib", so it can be a program name with args.
1720 set dummy ranlib; ac_word=$2
1721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1722 echo "configure:1723: checking for $ac_word" >&5
1723 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 if test -n "$RANLIB"; then
1727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1731 for ac_dir in $ac_dummy; do
1732 test -z "$ac_dir" && ac_dir=.
1733 if test -f $ac_dir/$ac_word; then
1734 ac_cv_prog_RANLIB="ranlib"
1739 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1742 RANLIB="$ac_cv_prog_RANLIB"
1743 if test -n "$RANLIB"; then
1744 echo "$ac_t""$RANLIB" 1>&6
1746 echo "$ac_t""no" 1>&6
1749 # Find a good install program. We prefer a C program (faster),
1750 # so one script is as good as another. But avoid the broken or
1751 # incompatible versions:
1752 # SysV /etc/install, /usr/sbin/install
1753 # SunOS /usr/etc/install
1754 # IRIX /sbin/install
1756 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1757 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1758 # ./install, which can be erroneously created by make from ./install.sh.
1759 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1760 echo "configure:1761: checking for a BSD compatible install" >&5
1761 if test -z "$INSTALL"; then
1762 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1766 for ac_dir in $PATH; do
1767 # Account for people who put trailing slashes in PATH elements.
1769 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1771 # OSF1 and SCO ODT 3.0 have their own names for install.
1772 for ac_prog in ginstall scoinst install; do
1773 if test -f $ac_dir/$ac_prog; then
1774 if test $ac_prog = install &&
1775 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1776 # AIX install. It has an incompatible calling convention.
1777 # OSF/1 installbsd also uses dspmsg, but is usable.
1780 ac_cv_path_install="$ac_dir/$ac_prog -c"
1791 if test "${ac_cv_path_install+set}" = set; then
1792 INSTALL="$ac_cv_path_install"
1794 # As a last resort, use the slow shell script. We don't cache a
1795 # path for INSTALL within a source directory, because that will
1796 # break other packages using the cache if that directory is
1797 # removed, or if the path is relative.
1798 INSTALL="$ac_install_sh"
1801 echo "$ac_t""$INSTALL" 1>&6
1803 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1804 # It thinks the first close brace ends the variable substitution.
1805 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1807 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1810 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1811 echo "configure:1812: checking how to run the C preprocessor" >&5
1812 # On Suns, sometimes $CPP names a directory.
1813 if test -n "$CPP" && test -d "$CPP"; then
1816 if test -z "$CPP"; then
1817 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 # This must be in double quotes, not single quotes, because CPP may get
1821 # substituted into the Makefile and "${CC-cc}" will confuse make.
1823 # On the NeXT, cc -E runs the code through the compiler's parser,
1824 # not just through cpp.
1825 cat > conftest.$ac_ext <<EOF
1826 #line 1827 "configure"
1827 #include "confdefs.h"
1831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1832 { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1834 if test -z "$ac_err"; then
1838 echo "configure: failed program was:" >&5
1839 cat conftest.$ac_ext >&5
1841 CPP="${CC-cc} -E -traditional-cpp"
1842 cat > conftest.$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1849 { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1851 if test -z "$ac_err"; then
1855 echo "configure: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1858 CPP="${CC-cc} -nologo -E"
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1866 { (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1868 if test -z "$ac_err"; then
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1882 ac_cv_prog_CPP="$CPP"
1884 CPP="$ac_cv_prog_CPP"
1886 ac_cv_prog_CPP="$CPP"
1888 echo "$ac_t""$CPP" 1>&6
1890 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1891 echo "configure:1892: checking for ANSI C header files" >&5
1892 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 cat > conftest.$ac_ext <<EOF
1896 #line 1897 "configure"
1897 #include "confdefs.h"
1903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1904 { (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1906 if test -z "$ac_err"; then
1908 ac_cv_header_stdc=yes
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 ac_cv_header_stdc=no
1918 if test $ac_cv_header_stdc = yes; then
1919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1926 egrep "memchr" >/dev/null 2>&1; then
1930 ac_cv_header_stdc=no
1936 if test $ac_cv_header_stdc = yes; then
1937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1944 egrep "free" >/dev/null 2>&1; then
1948 ac_cv_header_stdc=no
1954 if test $ac_cv_header_stdc = yes; then
1955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1956 if test "$cross_compiling" = yes; then
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1963 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1964 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1966 int main () { int i; for (i = 0; i < 256; i++)
1967 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1971 if { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1978 ac_cv_header_stdc=no
1986 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1987 if test $ac_cv_header_stdc = yes; then
1988 cat >> confdefs.h <<\EOF
1989 #define STDC_HEADERS 1
1994 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1995 echo "configure:1996: checking whether time.h and sys/time.h may both be included" >&5
1996 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2002 #include <sys/types.h>
2003 #include <sys/time.h>
2009 if { (eval echo configure:2010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2011 ac_cv_header_time=yes
2013 echo "configure: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2016 ac_cv_header_time=no
2021 echo "$ac_t""$ac_cv_header_time" 1>&6
2022 if test $ac_cv_header_time = yes; then
2023 cat >> confdefs.h <<\EOF
2024 #define TIME_WITH_SYS_TIME 1
2029 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2030 echo "configure:2031: checking whether string.h and strings.h may both be included" >&5
2031 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2038 #include <strings.h>
2043 if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2045 gcc_cv_header_string=yes
2047 echo "configure: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2050 gcc_cv_header_string=no
2055 echo "$ac_t""$gcc_cv_header_string" 1>&6
2056 if test $gcc_cv_header_string = yes; then
2057 cat >> confdefs.h <<\EOF
2058 #define STRING_WITH_STRINGS 1
2063 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2064 echo "configure:2065: checking for sys/wait.h that is POSIX.1 compatible" >&5
2065 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 #include <sys/types.h>
2072 #include <sys/wait.h>
2074 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2077 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2082 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2085 if { (eval echo configure:2086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2087 ac_cv_header_sys_wait_h=yes
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 ac_cv_header_sys_wait_h=no
2097 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2098 if test $ac_cv_header_sys_wait_h = yes; then
2099 cat >> confdefs.h <<\EOF
2100 #define HAVE_SYS_WAIT_H 1
2105 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2106 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2107 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2108 direct.h malloc.h langinfo.h iconv.h stdbool.h
2110 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2111 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2112 echo "configure:2113: checking for $ac_hdr" >&5
2113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2122 { (eval echo configure:2123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2124 if test -z "$ac_err"; then
2126 eval "ac_cv_header_$ac_safe=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 eval "ac_cv_header_$ac_safe=no"
2136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2137 echo "$ac_t""yes" 1>&6
2138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2139 cat >> confdefs.h <<EOF
2140 #define $ac_tr_hdr 1
2144 echo "$ac_t""no" 1>&6
2149 # Check for thread headers.
2150 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2151 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2152 echo "configure:2153: checking for thread.h" >&5
2153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 cat > conftest.$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2162 { (eval echo configure:2163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2164 if test -z "$ac_err"; then
2166 eval "ac_cv_header_$ac_safe=yes"
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2172 eval "ac_cv_header_$ac_safe=no"
2176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2177 echo "$ac_t""yes" 1>&6
2180 echo "$ac_t""no" 1>&6
2184 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2185 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2186 echo "configure:2187: checking for pthread.h" >&5
2187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 #include <pthread.h>
2195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2196 { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2198 if test -z "$ac_err"; then
2200 eval "ac_cv_header_$ac_safe=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 eval "ac_cv_header_$ac_safe=no"
2210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2214 echo "$ac_t""no" 1>&6
2219 # See if GNAT has been installed
2220 # Extract the first word of "gnatbind", so it can be a program name with args.
2221 set dummy gnatbind; ac_word=$2
2222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2223 echo "configure:2224: checking for $ac_word" >&5
2224 if eval "test \"`echo '$''{'ac_cv_prog_have_gnat'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 if test -n "$have_gnat"; then
2228 ac_cv_prog_have_gnat="$have_gnat" # Let the user override the test.
2230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2232 for ac_dir in $ac_dummy; do
2233 test -z "$ac_dir" && ac_dir=.
2234 if test -f $ac_dir/$ac_word; then
2235 ac_cv_prog_have_gnat="yes"
2240 test -z "$ac_cv_prog_have_gnat" && ac_cv_prog_have_gnat="no"
2243 have_gnat="$ac_cv_prog_have_gnat"
2244 if test -n "$have_gnat"; then
2245 echo "$ac_t""$have_gnat" 1>&6
2247 echo "$ac_t""no" 1>&6
2251 # See if we have the mktemp command.
2252 # Extract the first word of "mktemp", so it can be a program name with args.
2253 set dummy mktemp; ac_word=$2
2254 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2255 echo "configure:2256: checking for $ac_word" >&5
2256 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 if test -n "$have_mktemp_command"; then
2260 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
2262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2264 for ac_dir in $ac_dummy; do
2265 test -z "$ac_dir" && ac_dir=.
2266 if test -f $ac_dir/$ac_word; then
2267 ac_cv_prog_have_mktemp_command="yes"
2272 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
2275 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
2276 if test -n "$have_mktemp_command"; then
2277 echo "$ac_t""$have_mktemp_command" 1>&6
2279 echo "$ac_t""no" 1>&6
2283 # Do we have a single-tree copy of texinfo?
2284 if test -f $srcdir/../texinfo/Makefile.in; then
2285 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2286 gcc_cv_prog_makeinfo_modern=yes
2287 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2289 # See if makeinfo has been installed and is modern enough
2290 # that we can use it.
2291 # Extract the first word of "makeinfo", so it can be a program name with args.
2292 set dummy makeinfo; ac_word=$2
2293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2294 echo "configure:2295: checking for $ac_word" >&5
2295 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 if test -n "$MAKEINFO"; then
2299 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2303 for ac_dir in $ac_dummy; do
2304 test -z "$ac_dir" && ac_dir=.
2305 if test -f $ac_dir/$ac_word; then
2306 ac_cv_prog_MAKEINFO="makeinfo"
2313 MAKEINFO="$ac_cv_prog_MAKEINFO"
2314 if test -n "$MAKEINFO"; then
2315 echo "$ac_t""$MAKEINFO" 1>&6
2317 echo "$ac_t""no" 1>&6
2320 if test -n "$MAKEINFO"; then
2321 # Found it, now check the version.
2322 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2323 echo "configure:2324: checking for modern makeinfo" >&5
2324 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 ac_prog_version=`$MAKEINFO --version 2>&1 |
2328 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2329 echo "configure:2330: version of makeinfo is $ac_prog_version" >&5
2330 case $ac_prog_version in
2331 '') gcc_cv_prog_makeinfo_modern=no;;
2333 gcc_cv_prog_makeinfo_modern=yes;;
2334 *) gcc_cv_prog_makeinfo_modern=no;;
2339 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2341 gcc_cv_prog_makeinfo_modern=no
2346 if test $gcc_cv_prog_makeinfo_modern = no; then
2347 echo "configure: warning:
2348 *** Makeinfo is missing or too old.
2349 *** Info documentation will not be built." 1>&2
2355 # Is pod2man recent enough to regenerate manpages?
2356 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
2357 echo "configure:2358: checking for recent Pod::Man" >&5
2358 if perl -e 'use 1.10 Pod::Man' >/dev/null 2>&1; then
2359 echo "$ac_t""yes" 1>&6
2360 GENERATED_MANPAGES=generated-manpages
2362 echo "$ac_t""no" 1>&6
2367 if test -f $srcdir/../flex/skel.c; then
2368 FLEX='$(objdir)/../flex/flex'
2370 # Extract the first word of "flex", so it can be a program name with args.
2371 set dummy flex; ac_word=$2
2372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_word" >&5
2374 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 if test -n "$FLEX"; then
2378 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2382 for ac_dir in $ac_dummy; do
2383 test -z "$ac_dir" && ac_dir=.
2384 if test -f $ac_dir/$ac_word; then
2385 ac_cv_prog_FLEX="flex"
2390 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
2393 FLEX="$ac_cv_prog_FLEX"
2394 if test -n "$FLEX"; then
2395 echo "$ac_t""$FLEX" 1>&6
2397 echo "$ac_t""no" 1>&6
2403 # The -L switch is so bison can find its skeleton file.
2404 if test -f $srcdir/../bison/bison.simple; then
2405 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2407 # Extract the first word of "bison", so it can be a program name with args.
2408 set dummy bison; ac_word=$2
2409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_word" >&5
2411 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 if test -n "$BISON"; then
2415 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2419 for ac_dir in $ac_dummy; do
2420 test -z "$ac_dir" && ac_dir=.
2421 if test -f $ac_dir/$ac_word; then
2422 ac_cv_prog_BISON="bison"
2427 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
2430 BISON="$ac_cv_prog_BISON"
2431 if test -n "$BISON"; then
2432 echo "$ac_t""$BISON" 1>&6
2434 echo "$ac_t""no" 1>&6
2439 # See if the stage1 system preprocessor understands the ANSI C
2440 # preprocessor stringification operator.
2443 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2444 echo "configure:2445: checking for preprocessor stringizing operator" >&5
2445 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 cat > conftest.$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2454 char *s = x(teststring);
2457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2458 egrep "#teststring" >/dev/null 2>&1; then
2460 ac_cv_c_stringize=no
2463 ac_cv_c_stringize=yes
2469 if test "${ac_cv_c_stringize}" = yes
2471 cat >> confdefs.h <<\EOF
2472 #define HAVE_STRINGIZE 1
2476 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2479 # Use <inttypes.h> only if it exists,
2480 # doesn't clash with <sys/types.h>, and declares intmax_t.
2481 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2482 echo "configure:2483: checking for inttypes.h" >&5
2483 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2489 #include <sys/types.h>
2490 #include <inttypes.h>
2495 if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2497 gcc_cv_header_inttypes_h=yes
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 gcc_cv_header_inttypes_h=no
2507 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2508 if test $gcc_cv_header_inttypes_h = yes; then
2509 cat >> confdefs.h <<\EOF
2510 #define HAVE_INTTYPES_H 1
2516 # Determine if enumerated bitfields are unsigned. ISO C says they can
2517 # be either signed or unsigned.
2519 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2520 echo "configure:2521: checking for unsigned enumerated bitfields" >&5
2521 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 if test "$cross_compiling" = yes; then
2525 gcc_cv_enum_bf_unsigned=yes
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2531 enum t { BLAH = 128 } ;
2532 struct s_t { enum t member : 8; } s ;
2536 if (s.member < 0) exit(1);
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2543 gcc_cv_enum_bf_unsigned=yes
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 gcc_cv_enum_bf_unsigned=no
2555 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2556 if test $gcc_cv_enum_bf_unsigned = yes; then
2557 cat >> confdefs.h <<\EOF
2558 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2563 for ac_func in strtoul bsearch putenv popen bcopy \
2564 strchr strrchr kill getrlimit setrlimit atoll atoq \
2565 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2566 fputs_unlocked getrusage iconv nl_langinfo
2568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_func" >&5
2570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2576 /* System header to define __stub macros and hopefully few prototypes,
2577 which can conflict with char $ac_func(); below. */
2579 /* Override any gcc2 internal prototype to avoid an error. */
2580 /* We use char because int might match the return type of a gcc2
2581 builtin and then its argument prototype would still apply. */
2586 /* The GNU C library defines this for functions which it implements
2587 to always fail with ENOSYS. Some functions are actually named
2588 something starting with __ and the normal name is an alias. */
2589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2597 if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599 eval "ac_cv_func_$ac_func=yes"
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2604 eval "ac_cv_func_$ac_func=no"
2609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2610 echo "$ac_t""yes" 1>&6
2611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2612 cat >> confdefs.h <<EOF
2613 #define $ac_tr_func 1
2617 echo "$ac_t""no" 1>&6
2622 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2623 echo "configure:2624: checking for ssize_t" >&5
2624 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 #include <sys/types.h>
2636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2637 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2639 ac_cv_type_ssize_t=yes
2642 ac_cv_type_ssize_t=no
2647 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2648 if test $ac_cv_type_ssize_t = no; then
2649 cat >> confdefs.h <<\EOF
2656 # Try to determine the array type of the second argument of getgroups
2657 # for the target system (int or gid_t).
2658 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2659 echo "configure:2660: checking for uid_t in sys/types.h" >&5
2660 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 #include <sys/types.h>
2668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2669 egrep "uid_t" >/dev/null 2>&1; then
2671 ac_cv_type_uid_t=yes
2680 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2681 if test $ac_cv_type_uid_t = no; then
2682 cat >> confdefs.h <<\EOF
2686 cat >> confdefs.h <<\EOF
2692 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2693 echo "configure:2694: checking type of array argument to getgroups" >&5
2694 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 if test "$cross_compiling" = yes; then
2698 ac_cv_type_getgroups=cross
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2704 /* Thanks to Mike Rendell for this test. */
2705 #include <sys/types.h>
2708 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2713 union { gid_t gval; long lval; } val;
2716 for (i = 0; i < NGID; i++)
2717 gidset[i] = val.gval;
2718 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2720 /* Exit non-zero if getgroups seems to require an array of ints. This
2721 happens when gid_t is short but getgroups modifies an array of ints. */
2722 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2726 if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2728 ac_cv_type_getgroups=gid_t
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2733 ac_cv_type_getgroups=int
2738 if test $ac_cv_type_getgroups = cross; then
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2745 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2747 ac_cv_type_getgroups=gid_t
2750 ac_cv_type_getgroups=int
2757 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2758 cat >> confdefs.h <<EOF
2759 #define GETGROUPS_T $ac_cv_type_getgroups
2763 if test "${target}" = "${build}"; then
2764 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
2767 # This condition may need some tweaking. It should include all
2768 # targets where the array type of the second argument of getgroups
2769 # is int and the type of gid_t is not equivalent to int.
2770 *-*-sunos* | *-*-ultrix*)
2771 TARGET_GETGROUPS_T=int
2774 TARGET_GETGROUPS_T=gid_t
2780 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2781 echo "configure:2782: checking for vprintf" >&5
2782 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 /* System header to define __stub macros and hopefully few prototypes,
2789 which can conflict with char vprintf(); below. */
2791 /* Override any gcc2 internal prototype to avoid an error. */
2792 /* We use char because int might match the return type of a gcc2
2793 builtin and then its argument prototype would still apply. */
2798 /* The GNU C library defines this for functions which it implements
2799 to always fail with ENOSYS. Some functions are actually named
2800 something starting with __ and the normal name is an alias. */
2801 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2809 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2811 eval "ac_cv_func_vprintf=yes"
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2816 eval "ac_cv_func_vprintf=no"
2821 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
2823 cat >> confdefs.h <<\EOF
2824 #define HAVE_VPRINTF 1
2828 echo "$ac_t""no" 1>&6
2831 if test "$ac_cv_func_vprintf" != yes; then
2832 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2833 echo "configure:2834: checking for _doprnt" >&5
2834 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2840 /* System header to define __stub macros and hopefully few prototypes,
2841 which can conflict with char _doprnt(); below. */
2843 /* Override any gcc2 internal prototype to avoid an error. */
2844 /* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2850 /* The GNU C library defines this for functions which it implements
2851 to always fail with ENOSYS. Some functions are actually named
2852 something starting with __ and the normal name is an alias. */
2853 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2863 eval "ac_cv_func__doprnt=yes"
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2868 eval "ac_cv_func__doprnt=no"
2873 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2874 echo "$ac_t""yes" 1>&6
2875 cat >> confdefs.h <<\EOF
2876 #define HAVE_DOPRNT 1
2880 echo "$ac_t""no" 1>&6
2887 if test $ac_cv_func_vprintf != yes ; then
2889 if test $ac_cv_func__doprnt != yes ; then
2896 for ac_func in strstr
2898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_func" >&5
2900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2906 /* System header to define __stub macros and hopefully few prototypes,
2907 which can conflict with char $ac_func(); below. */
2909 /* Override any gcc2 internal prototype to avoid an error. */
2910 /* We use char because int might match the return type of a gcc2
2911 builtin and then its argument prototype would still apply. */
2916 /* The GNU C library defines this for functions which it implements
2917 to always fail with ENOSYS. Some functions are actually named
2918 something starting with __ and the normal name is an alias. */
2919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2927 if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2929 eval "ac_cv_func_$ac_func=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 eval "ac_cv_func_$ac_func=no"
2939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2940 echo "$ac_t""yes" 1>&6
2941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2942 cat >> confdefs.h <<EOF
2943 #define $ac_tr_func 1
2947 echo "$ac_t""no" 1>&6
2953 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2954 echo "configure:2955: checking whether the printf functions support %p" >&5
2955 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 if test "$cross_compiling" = yes; then
2959 gcc_cv_func_printf_ptr=no
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2969 char *p = buf, *q = NULL;
2970 sprintf(buf, "%p", p);
2971 sscanf(buf, "%p", &q);
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2977 gcc_cv_func_printf_ptr=yes
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 gcc_cv_func_printf_ptr=no
2987 rm -f core core.* *.core
2990 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2991 if test $gcc_cv_func_printf_ptr = yes ; then
2992 cat >> confdefs.h <<\EOF
2993 #define HAVE_PRINTF_PTR 1
3001 { echo "configure: error:
3002 *** UWIN may not be used as a host platform because
3003 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3006 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3007 echo "configure:3008: checking for pid_t" >&5
3008 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 #include <sys/types.h>
3020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3021 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3023 ac_cv_type_pid_t=yes
3031 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3032 if test $ac_cv_type_pid_t = no; then
3033 cat >> confdefs.h <<\EOF
3039 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3040 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3041 echo "configure:3042: checking for vfork.h" >&5
3042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3051 { (eval echo configure:3052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3053 if test -z "$ac_err"; then
3055 eval "ac_cv_header_$ac_safe=yes"
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3061 eval "ac_cv_header_$ac_safe=no"
3065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 cat >> confdefs.h <<\EOF
3068 #define HAVE_VFORK_H 1
3072 echo "$ac_t""no" 1>&6
3075 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3076 echo "configure:3077: checking for working vfork" >&5
3077 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 if test "$cross_compiling" = yes; then
3081 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3082 echo "configure:3083: checking for vfork" >&5
3083 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 /* System header to define __stub macros and hopefully few prototypes,
3090 which can conflict with char vfork(); below. */
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3099 /* The GNU C library defines this for functions which it implements
3100 to always fail with ENOSYS. Some functions are actually named
3101 something starting with __ and the normal name is an alias. */
3102 #if defined (__stub_vfork) || defined (__stub___vfork)
3110 if { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3112 eval "ac_cv_func_vfork=yes"
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3117 eval "ac_cv_func_vfork=no"
3122 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3123 echo "$ac_t""yes" 1>&6
3126 echo "$ac_t""no" 1>&6
3129 ac_cv_func_vfork_works=$ac_cv_func_vfork
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* Thanks to Paul Eggert for this test. */
3136 #include <sys/types.h>
3137 #include <sys/stat.h>
3138 #ifdef HAVE_UNISTD_H
3144 /* On some sparc systems, changes by the child to local and incoming
3145 argument registers are propagated back to the parent.
3146 The compiler is told about this with #include <vfork.h>,
3147 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3148 Test for this by using a static variable whose address
3149 is put into a register that is clobbered by the vfork. */
3152 sparc_address_test (int arg)
3154 sparc_address_test (arg) int arg;
3172 pid_t parent = getpid ();
3175 sparc_address_test ();
3180 /* Here is another test for sparc vfork register problems.
3181 This test uses lots of local variables, at least
3182 as many local variables as main has allocated so far
3183 including compiler temporaries. 4 locals are enough for
3184 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3185 A buggy compiler should reuse the register of parent
3186 for one of the local variables, since it will think that
3187 parent can't possibly be used any more in this routine.
3188 Assigning to the local variable will thus munge parent
3189 in the parent process. */
3191 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3192 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3193 /* Convince the compiler that p..p7 are live; otherwise, it might
3194 use the same hardware register for all 8 local variables. */
3195 if (p != p1 || p != p2 || p != p3 || p != p4
3196 || p != p5 || p != p6 || p != p7)
3199 /* On some systems (e.g. IRIX 3.3),
3200 vfork doesn't separate parent from child file descriptors.
3201 If the child closes a descriptor before it execs or exits,
3202 this munges the parent's descriptor as well.
3203 Test for this by closing stdout in the child. */
3204 _exit(close(fileno(stdout)) != 0);
3209 while (wait(&status) != child)
3212 /* Was there some problem with vforking? */
3215 /* Did the child fail? (This shouldn't happen.) */
3218 /* Did the vfork/compiler bug occur? */
3219 || parent != getpid()
3221 /* Did the file descriptor bug occur? */
3222 || fstat(fileno(stdout), &st) != 0
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3229 ac_cv_func_vfork_works=yes
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 ac_cv_func_vfork_works=no
3241 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3242 if test $ac_cv_func_vfork_works = no; then
3243 cat >> confdefs.h <<\EOF
3249 for ac_func in getpagesize
3251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_func" >&5
3253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char $ac_func(); below. */
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3269 /* The GNU C library defines this for functions which it implements
3270 to always fail with ENOSYS. Some functions are actually named
3271 something starting with __ and the normal name is an alias. */
3272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3282 eval "ac_cv_func_$ac_func=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_func_$ac_func=no"
3292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3293 echo "$ac_t""yes" 1>&6
3294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3295 cat >> confdefs.h <<EOF
3296 #define $ac_tr_func 1
3300 echo "$ac_t""no" 1>&6
3304 # The test program for the next two tests is the same except for one
3306 cat >ct-mmap.inc <<'EOF'
3307 #include <sys/types.h>
3308 #include <sys/mman.h>
3314 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3315 # define MAP_ANONYMOUS MAP_ANON
3318 /* This mess was copied from the GNU getpagesize.h. */
3319 #ifndef HAVE_GETPAGESIZE
3320 # ifdef HAVE_UNISTD_H
3321 # include <unistd.h>
3324 /* Assume that all systems that can run configure have sys/param.h. */
3325 # ifndef HAVE_SYS_PARAM_H
3326 # define HAVE_SYS_PARAM_H 1
3329 # ifdef _SC_PAGESIZE
3330 # define getpagesize() sysconf(_SC_PAGESIZE)
3331 # else /* no _SC_PAGESIZE */
3332 # ifdef HAVE_SYS_PARAM_H
3333 # include <sys/param.h>
3334 # ifdef EXEC_PAGESIZE
3335 # define getpagesize() EXEC_PAGESIZE
3336 # else /* no EXEC_PAGESIZE */
3338 # define getpagesize() NBPG * CLSIZE
3341 # endif /* no CLSIZE */
3342 # else /* no NBPG */
3344 # define getpagesize() NBPC
3345 # else /* no NBPC */
3347 # define getpagesize() PAGESIZE
3348 # endif /* PAGESIZE */
3349 # endif /* no NBPC */
3350 # endif /* no NBPG */
3351 # endif /* no EXEC_PAGESIZE */
3352 # else /* no HAVE_SYS_PARAM_H */
3353 # define getpagesize() 8192 /* punt totally */
3354 # endif /* no HAVE_SYS_PARAM_H */
3355 # endif /* no _SC_PAGESIZE */
3357 #endif /* no HAVE_GETPAGESIZE */
3360 # define MAP_FAILED -1
3364 #define perror_exit(str, val) \
3365 do { perror(str); exit(val); } while (0)
3367 /* Some versions of cygwin mmap require that munmap is called with the
3368 same parameters as mmap. GCC expects that this is not the case.
3369 Test for various forms of this problem. Warning - icky signal games. */
3371 static sigset_t unblock_sigsegv;
3381 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3382 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
3384 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3385 MAP_PRIVATE, devzero, 0);
3393 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
3397 /* Basic functionality test. */
3401 char *x = anonmap (pg);
3402 if (x == (char *) MAP_FAILED)
3403 perror_exit("test 0 mmap", 2);
3407 if (munmap(x, pg) < 0)
3408 perror_exit("test 0 munmap", 3);
3411 /* 1. If we map a 2-page region and unmap its second page, the first page
3416 char *x = anonmap (pg * 2);
3417 if (x == (char *)MAP_FAILED)
3418 perror_exit ("test 1 mmap", 4);
3420 signal (SIGSEGV, sigsegv);
3422 perror_exit ("test 1 fault", 5);
3427 if (munmap (x + pg, pg) < 0)
3428 perror_exit ("test 1 munmap 1", 6);
3431 if (setjmp (r) == 0)
3434 perror_exit ("test 1 no fault", 7);
3436 if (munmap (x, pg) < 0)
3437 perror_exit ("test 1 munmap 2", 8);
3440 /* 2. If we map a 2-page region and unmap its first page, the second
3441 page must remain. */
3445 char *x = anonmap (pg * 2);
3446 if (x == (char *)MAP_FAILED)
3447 perror_exit ("test 2 mmap", 9);
3449 signal (SIGSEGV, sigsegv);
3451 perror_exit ("test 2 fault", 10);
3456 if (munmap (x, pg) < 0)
3457 perror_exit ("test 2 munmap 1", 11);
3461 if (setjmp (r) == 0)
3464 perror_exit ("test 2 no fault", 12);
3467 if (munmap (x+pg, pg) < 0)
3468 perror_exit ("test 2 munmap 2", 13);
3471 /* 3. If we map two adjacent 1-page regions and unmap them both with
3472 one munmap, both must go away.
3474 Getting two adjacent 1-page regions with two mmap calls is slightly
3475 tricky. All OS's tested skip over already-allocated blocks; therefore
3476 we have been careful to unmap all allocated regions in previous tests.
3477 HP/UX allocates pages backward in memory. No OS has yet been observed
3478 to be so perverse as to leave unmapped space between consecutive calls
3487 if (x == (char *)MAP_FAILED)
3488 perror_exit ("test 3 mmap 1", 14);
3490 if (y == (char *)MAP_FAILED)
3491 perror_exit ("test 3 mmap 2", 15);
3496 z = y, y = x, x = z;
3499 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
3500 (unsigned long)x, (unsigned long)y);
3505 signal (SIGSEGV, sigsegv);
3507 perror_exit ("test 3 fault", 17);
3512 if (munmap (x, pg*2) < 0)
3513 perror_exit ("test 3 munmap", 18);
3515 if (setjmp (r) == 0)
3518 perror_exit ("test 3 no fault 1", 19);
3521 signal (SIGSEGV, sigsegv);
3522 if (setjmp (r) == 0)
3525 perror_exit ("test 3 no fault 2", 20);
3532 sigemptyset (&unblock_sigsegv);
3533 sigaddset (&unblock_sigsegv, SIGSEGV);
3534 pg = getpagesize ();
3535 #ifndef USE_MAP_ANON
3536 devzero = open ("/dev/zero", O_RDWR);
3538 perror_exit ("open /dev/zero", 1);
3550 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3551 echo "configure:3552: checking for working mmap from /dev/zero" >&5
3552 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 if test "$cross_compiling" = yes; then
3556 # If this is not cygwin, and /dev/zero is a character device, it's probably
3557 # safe to assume it works.
3559 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
3560 * ) if test -c /dev/zero
3561 then ac_cv_func_mmap_dev_zero=yes
3562 else ac_cv_func_mmap_dev_zero=no
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include "ct-mmap.inc"
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3573 ac_cv_func_mmap_dev_zero=yes
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3579 then ac_cv_func_mmap_dev_zero=no
3580 else ac_cv_func_mmap_dev_zero=buggy
3589 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
3590 if test $ac_cv_func_mmap_dev_zero = yes; then
3591 cat >> confdefs.h <<\EOF
3592 #define HAVE_MMAP_DEV_ZERO 1
3597 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
3598 echo "configure:3599: checking for working mmap with MAP_ANON(YMOUS)" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 if test "$cross_compiling" = yes; then
3603 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
3604 # just because it's there. Some SCO Un*xen define it but don't implement it.
3605 ac_cv_func_mmap_anon=no
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 #define USE_MAP_ANON
3611 #include "ct-mmap.inc"
3613 if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3615 ac_cv_func_mmap_anon=yes
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3621 then ac_cv_func_mmap_anon=no
3622 else ac_cv_func_mmap_anon=buggy
3631 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
3632 if test $ac_cv_func_mmap_anon = yes; then
3633 cat >> confdefs.h <<\EOF
3634 #define HAVE_MMAP_ANON 1
3640 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3641 echo "configure:3642: checking for working mmap of a file" >&5
3642 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 # Create a file one thousand bytes long.
3646 for i in 1 2 3 4 5 6 7 8 9 0
3647 do for j in 1 2 3 4 5 6 7 8 9 0
3650 done > conftestdata$$
3652 if test "$cross_compiling" = yes; then
3653 ac_cv_func_mmap_file=no
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3659 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3660 Richard Henderson and Alexandre Oliva.
3661 Check whether read-only mmap of a plain file works. */
3662 #include <sys/types.h>
3663 #include <sys/stat.h>
3665 #include <sys/mman.h>
3673 fd = open("conftestdata$$", O_RDONLY);
3677 if (fstat (fd, &st))
3680 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3681 if (x == (char *) -1)
3684 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3687 if (munmap(x, st.st_size) < 0)
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3695 ac_cv_func_mmap_file=yes
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 ac_cv_func_mmap_file=no
3707 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3708 if test $ac_cv_func_mmap_file = yes; then
3709 cat >> confdefs.h <<\EOF
3710 #define HAVE_MMAP_FILE 1
3716 # We will need to find libiberty.h and ansidecl.h
3717 saved_CFLAGS="$CFLAGS"
3718 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3719 for ac_func in bcopy \
3720 getenv atol sbrk abort atof getcwd getwd \
3721 strsignal putc_unlocked fputs_unlocked strstr environ \
3722 malloc realloc calloc free basename getopt
3724 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3725 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3726 echo "configure:3727: checking whether $ac_func is declared" >&5
3727 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3734 #define $ac_tr_decl 1
3736 #include "gansidecl.h"
3741 char *(*pfn) = (char *(*)) $ac_func ;
3745 if { (eval echo configure:3746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3747 eval "gcc_cv_have_decl_$ac_func=yes"
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 eval "gcc_cv_have_decl_$ac_func=no"
3757 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3759 #define $ac_tr_decl 1
3763 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3764 #define $ac_tr_decl 0
3770 if test x = y ; then
3771 cat >> confdefs.h <<EOF
3772 #define HAVE_DECL_BCOPY 1
3775 cat >> confdefs.h <<EOF
3776 #define HAVE_DECL_GETENV 1
3778 cat >> confdefs.h <<EOF
3779 #define HAVE_DECL_ATOL 1
3781 cat >> confdefs.h <<EOF
3782 #define HAVE_DECL_SBRK 1
3784 cat >> confdefs.h <<EOF
3785 #define HAVE_DECL_ABORT 1
3787 cat >> confdefs.h <<EOF
3788 #define HAVE_DECL_ATOF 1
3790 cat >> confdefs.h <<EOF
3791 #define HAVE_DECL_GETCWD 1
3793 cat >> confdefs.h <<EOF
3794 #define HAVE_DECL_GETWD 1
3797 cat >> confdefs.h <<EOF
3798 #define HAVE_DECL_STRSIGNAL 1
3800 cat >> confdefs.h <<EOF
3801 #define HAVE_DECL_PUTC_UNLOCKED 1
3803 cat >> confdefs.h <<EOF
3804 #define HAVE_DECL_FPUTS_UNLOCKED 1
3806 cat >> confdefs.h <<EOF
3807 #define HAVE_DECL_STRSTR 1
3809 cat >> confdefs.h <<EOF
3810 #define HAVE_DECL_ENVIRON 1
3813 cat >> confdefs.h <<EOF
3814 #define HAVE_DECL_MALLOC 1
3816 cat >> confdefs.h <<EOF
3817 #define HAVE_DECL_REALLOC 1
3819 cat >> confdefs.h <<EOF
3820 #define HAVE_DECL_CALLOC 1
3822 cat >> confdefs.h <<EOF
3823 #define HAVE_DECL_FREE 1
3825 cat >> confdefs.h <<EOF
3826 #define HAVE_DECL_BASENAME 1
3828 cat >> confdefs.h <<EOF
3829 #define HAVE_DECL_GETOPT 1
3834 for ac_func in getrlimit setrlimit getrusage
3836 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3837 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3838 echo "configure:3839: checking whether $ac_func is declared" >&5
3839 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3846 #define $ac_tr_decl 1
3848 #include "gansidecl.h"
3850 #ifdef HAVE_SYS_RESOURCE_H
3851 #include <sys/resource.h>
3857 char *(*pfn) = (char *(*)) $ac_func ;
3861 if { (eval echo configure:3862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3863 eval "gcc_cv_have_decl_$ac_func=yes"
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3868 eval "gcc_cv_have_decl_$ac_func=no"
3873 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3875 #define $ac_tr_decl 1
3879 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3880 #define $ac_tr_decl 0
3886 if test x = y ; then
3887 cat >> confdefs.h <<EOF
3888 #define HAVE_DECL_GETRLIMIT 1
3890 cat >> confdefs.h <<EOF
3891 #define HAVE_DECL_SETRLIMIT 1
3893 cat >> confdefs.h <<EOF
3894 #define HAVE_DECL_GETRUSAGE 1
3899 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3900 CFLAGS="$saved_CFLAGS"
3902 # mkdir takes a single argument on some systems.
3903 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3904 echo "configure:3905: checking if mkdir takes one argument" >&5
3905 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3912 #include <sys/types.h>
3913 #ifdef HAVE_SYS_STAT_H
3914 # include <sys/stat.h>
3916 #ifdef HAVE_UNISTD_H
3917 # include <unistd.h>
3919 #ifdef HAVE_DIRECT_H
3920 # include <direct.h>
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 gcc_cv_mkdir_takes_one_arg=no
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 gcc_cv_mkdir_takes_one_arg=yes
3938 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3939 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3940 cat >> confdefs.h <<\EOF
3941 #define MKDIR_TAKES_ONE_ARG 1
3955 build_install_headers_dir=install-headers-tar
3960 host_truncate_target=
3963 # Decode the host machine, then the target machine.
3964 # For the host machine, we save the xm_file variable as host_xm_file;
3965 # then we decode the target machine and forget everything else
3966 # that came from the host machine.
3967 for machine in $build $host $target; do
3968 . ${srcdir}/config.gcc
3971 extra_objs="${host_extra_objs} ${extra_objs}"
3973 # Default the target-machine variables that were not explicitly set.
3974 if test x"$tm_file" = x
3975 then tm_file=$cpu_type/$cpu_type.h; fi
3977 if test x"$extra_headers" = x
3978 then extra_headers=; fi
3980 if test x"$xm_file" = x
3981 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3983 if test x$md_file = x
3984 then md_file=$cpu_type/$cpu_type.md; fi
3986 if test x$out_file = x
3987 then out_file=$cpu_type/$cpu_type.c; fi
3989 if test x"$tmake_file" = x
3990 then tmake_file=$cpu_type/t-$cpu_type
3993 if test x"$dwarf2" = xyes
3994 then tm_file="$tm_file tm-dwarf2.h"
3997 if test x$float_format = x
3998 then float_format=i64
4001 if test $float_format = none
4002 then float_h_file=Makefile.in
4003 else float_h_file=float-$float_format.h
4006 # Handle cpp installation.
4007 if test x$enable_cpp != xno
4009 tmake_file="$tmake_file t-install-cpp"
4012 # Say what files are being used for the output code and MD file.
4013 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4014 echo "Using \`$srcdir/config/$md_file' as machine description file."
4016 # If any of the xm_file variables contain nonexistent files, warn
4017 # about them and drop them. But $cpu/xm-$cpu.h is allowed not to
4018 # exist, if we have nothing for it to do.
4021 for x in $build_xm_file; do
4022 if test -f $srcdir/config/$x
4024 elif echo $x | grep '\(a-z0-9a-z0-9*\)/xm-\1\.h' >/dev/null
4026 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4032 for x in $host_xm_file; do
4033 if test -f $srcdir/config/$x
4035 elif echo $x | grep '\(a-z0-9a-z0-9*\)/xm-\1\.h' >/dev/null
4037 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4043 for x in $xm_file; do
4044 if test -f $srcdir/config/$x
4046 elif echo $x | grep '\(a-z0-9a-z0-9*\)/xm-\1\.h' >/dev/null
4048 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4054 for f in $tm_file; do
4057 if test $count = ax; then
4058 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4060 echo "Using the following target machine macro files:"
4061 for f in $tm_file; do
4062 echo " $srcdir/config/$f"
4067 for f in $host_xm_file; do
4070 if test $count = a; then
4072 elif test $count = ax; then
4073 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4075 echo "Using the following host machine macro files:"
4076 for f in $host_xm_file; do
4077 echo " $srcdir/config/$f"
4081 if test "$host_xm_file" != "$build_xm_file"; then
4083 for f in $build_xm_file; do
4086 if test $count = a; then
4088 elif test $count = ax; then
4089 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4091 echo "Using the following build machine macro files:"
4092 for f in $build_xm_file; do
4093 echo " $srcdir/config/$f"
4098 if test x$thread_file = x; then
4099 if test x$target_thread_file != x; then
4100 thread_file=$target_thread_file
4102 thread_file='single'
4106 # auto-host.h is the file containing items generated by autoconf and is
4107 # the first file included by config.h.
4108 # If host=build, it is correct to have hconfig include auto-host.h
4109 # as well. If host!=build, we are in error and need to do more
4110 # work to find out the build config parameters.
4111 if test x$host = x$build
4113 build_auto=auto-host.h
4115 # We create a subdir, then run autoconf in the subdir.
4116 # To prevent recursion we set host and build for the new
4117 # invocation of configure to the build for this invocation
4124 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4125 *) realsrcdir=../${srcdir};;
4127 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4128 --target=$target --host=$build --build=$build
4130 # We just finished tests for the build machine, so rename
4131 # the file auto-build.h in the gcc directory.
4132 mv auto-host.h ../auto-build.h
4135 build_auto=auto-build.h
4138 tm_file="${tm_file} defaults.h"
4139 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} ${tm_file} hwint.h"
4140 build_xm_file="${build_auto} gansidecl.h ${build_xm_file} ${tm_file} hwint.h"
4141 xm_file="gansidecl.h ${xm_file} ${tm_file}"
4143 # Truncate the target if necessary
4144 if test x$host_truncate_target != x; then
4145 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4148 # Get the version trigger filename from the toplevel
4149 if test "${with_gcc_version_trigger+set}" = set; then
4150 gcc_version_trigger=$with_gcc_version_trigger
4152 gcc_version_trigger=${srcdir}/version.c
4154 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4155 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4157 # Compile in configure arguments.
4158 if test -f configargs.h ; then
4159 # Being re-configured.
4160 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4161 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
4163 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
4165 cat > configargs.h <<EOF
4166 /* Generated automatically. */
4167 static const char configuration_arguments[] = "$gcc_config_arguments";
4170 # Internationalization
4172 VERSION="$gcc_version"
4173 cat >> confdefs.h <<EOF
4174 #define PACKAGE "$PACKAGE"
4177 cat >> confdefs.h <<EOF
4178 #define VERSION "$VERSION"
4186 # Enable NLS support by default
4187 # Check whether --enable-nls or --disable-nls was given.
4188 if test "${enable_nls+set}" = set; then
4189 enableval="$enable_nls"
4196 # if cross compiling, disable NLS support.
4197 # It's not worth the trouble, at least for now.
4199 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4200 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
4204 # if NLS is enabled, also enable check in po subdir
4205 if test $enable_nls = yes; then
4214 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
4215 echo "configure:4216: checking for strerror in -lcposix" >&5
4216 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
4217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 ac_save_LIBS="$LIBS"
4221 LIBS="-lcposix $LIBS"
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 /* Override any gcc2 internal prototype to avoid an error. */
4226 /* We use char because int might match the return type of a gcc2
4227 builtin and then its argument prototype would still apply. */
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236 eval "ac_cv_lib_$ac_lib_var=yes"
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 eval "ac_cv_lib_$ac_lib_var=no"
4244 LIBS="$ac_save_LIBS"
4247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4249 LIBS="$LIBS -lcposix"
4251 echo "$ac_t""no" 1>&6
4256 echo $ac_n "checking for working const""... $ac_c" 1>&6
4257 echo "configure:4258: checking for working const" >&5
4258 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4267 /* Ultrix mips cc rejects this. */
4268 typedef int charset[2]; const charset x;
4269 /* SunOS 4.1.1 cc rejects this. */
4270 char const *const *ccp;
4272 /* NEC SVR4.0.2 mips cc rejects this. */
4273 struct point {int x, y;};
4274 static struct point const zero = {0,0};
4275 /* AIX XL C 1.02.0.0 rejects this.
4276 It does not let you subtract one const X* pointer from another in an arm
4277 of an if-expression whose if-part is not a constant expression */
4278 const char *g = "string";
4279 ccp = &g + (g ? g-g : 0);
4280 /* HPUX 7.0 cc rejects these. */
4283 ccp = (char const *const *) p;
4284 { /* SCO 3.2v4 cc rejects this. */
4286 char const *s = 0 ? (char *) 0 : (char const *) 0;
4290 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4292 const int *foo = &x[0];
4295 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4296 typedef const int *iptr;
4300 { /* AIX XL C 1.02.0.0 rejects this saying
4301 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4302 struct s { int j; const int *ap[3]; };
4303 struct s *b; b->j = 5;
4305 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4311 if { (eval echo configure:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4323 echo "$ac_t""$ac_cv_c_const" 1>&6
4324 if test $ac_cv_c_const = no; then
4325 cat >> confdefs.h <<\EOF
4331 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4332 echo "configure:4333: checking for off_t" >&5
4333 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 #include <sys/types.h>
4345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4348 ac_cv_type_off_t=yes
4356 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4357 if test $ac_cv_type_off_t = no; then
4358 cat >> confdefs.h <<\EOF
4364 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4365 echo "configure:4366: checking for size_t" >&5
4366 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 #include <sys/types.h>
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4381 ac_cv_type_size_t=yes
4384 ac_cv_type_size_t=no
4389 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4390 if test $ac_cv_type_size_t = no; then
4391 cat >> confdefs.h <<\EOF
4392 #define size_t unsigned
4398 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4399 unistd.h sys/param.h
4401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4403 echo "configure:4404: checking for $ac_hdr" >&5
4404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4413 { (eval echo configure:4414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4415 if test -z "$ac_err"; then
4417 eval "ac_cv_header_$ac_safe=yes"
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4423 eval "ac_cv_header_$ac_safe=no"
4427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4428 echo "$ac_t""yes" 1>&6
4429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4430 cat >> confdefs.h <<EOF
4431 #define $ac_tr_hdr 1
4435 echo "$ac_t""no" 1>&6
4439 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4440 strdup __argz_count __argz_stringify __argz_next
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func(); below. */
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 eval "ac_cv_func_$ac_func=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4478 eval "ac_cv_func_$ac_func=no"
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486 cat >> confdefs.h <<EOF
4487 #define $ac_tr_func 1
4491 echo "$ac_t""no" 1>&6
4496 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4497 for ac_func in stpcpy
4499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4500 echo "configure:4501: checking for $ac_func" >&5
4501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* System header to define __stub macros and hopefully few prototypes,
4508 which can conflict with char $ac_func(); below. */
4510 /* Override any gcc2 internal prototype to avoid an error. */
4511 /* We use char because int might match the return type of a gcc2
4512 builtin and then its argument prototype would still apply. */
4517 /* The GNU C library defines this for functions which it implements
4518 to always fail with ENOSYS. Some functions are actually named
4519 something starting with __ and the normal name is an alias. */
4520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530 eval "ac_cv_func_$ac_func=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 eval "ac_cv_func_$ac_func=no"
4540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4543 cat >> confdefs.h <<EOF
4544 #define $ac_tr_func 1
4548 echo "$ac_t""no" 1>&6
4553 if test "${ac_cv_func_stpcpy}" = "yes"; then
4554 cat >> confdefs.h <<\EOF
4555 #define HAVE_STPCPY 1
4560 if test $ac_cv_header_locale_h = yes; then
4561 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4562 echo "configure:4563: checking for LC_MESSAGES" >&5
4563 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4576 am_cv_val_LC_MESSAGES=yes
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 am_cv_val_LC_MESSAGES=no
4586 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4587 if test $am_cv_val_LC_MESSAGES = yes; then
4588 cat >> confdefs.h <<\EOF
4589 #define HAVE_LC_MESSAGES 1
4594 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4595 echo "configure:4596: checking whether NLS is requested" >&5
4596 # Check whether --enable-nls or --disable-nls was given.
4597 if test "${enable_nls+set}" = set; then
4598 enableval="$enable_nls"
4604 echo "$ac_t""$USE_NLS" 1>&6
4607 USE_INCLUDED_LIBINTL=no
4609 if test "$USE_NLS" = "yes"; then
4610 cat >> confdefs.h <<\EOF
4611 #define ENABLE_NLS 1
4614 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4615 echo "configure:4616: checking whether included gettext is requested" >&5
4616 # Check whether --with-included-gettext or --without-included-gettext was given.
4617 if test "${with_included_gettext+set}" = set; then
4618 withval="$with_included_gettext"
4619 nls_cv_force_use_gnu_gettext=$withval
4621 nls_cv_force_use_gnu_gettext=no
4624 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4626 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4627 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4629 nls_cv_header_libgt=
4632 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4633 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4634 echo "configure:4635: checking for libintl.h" >&5
4635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4641 #include <libintl.h>
4643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4644 { (eval echo configure:4645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4646 if test -z "$ac_err"; then
4648 eval "ac_cv_header_$ac_safe=yes"
4651 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5
4654 eval "ac_cv_header_$ac_safe=no"
4658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4660 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4661 echo "configure:4662: checking for gettext in libc" >&5
4662 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 #include <libintl.h>
4670 return (int) gettext ("")
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 gt_cv_func_gettext_libc=yes
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4680 gt_cv_func_gettext_libc=no
4685 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4687 if test "$gt_cv_func_gettext_libc" != "yes"; then
4688 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4689 echo "configure:4690: checking for bindtextdomain in -lintl" >&5
4690 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 ac_save_LIBS="$LIBS"
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 /* Override any gcc2 internal prototype to avoid an error. */
4700 /* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */
4702 char bindtextdomain();
4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4710 eval "ac_cv_lib_$ac_lib_var=yes"
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4715 eval "ac_cv_lib_$ac_lib_var=no"
4718 LIBS="$ac_save_LIBS"
4721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4724 echo "configure:4725: checking for gettext in libintl" >&5
4725 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4729 echo "configure:4730: checking for gettext in -lintl" >&5
4730 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 ac_save_LIBS="$LIBS"
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 eval "ac_cv_lib_$ac_lib_var=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 eval "ac_cv_lib_$ac_lib_var=no"
4758 LIBS="$ac_save_LIBS"
4761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 gt_cv_func_gettext_libintl=yes
4765 echo "$ac_t""no" 1>&6
4766 gt_cv_func_gettext_libintl=no
4771 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4773 echo "$ac_t""no" 1>&6
4778 if test "$gt_cv_func_gettext_libintl" = "yes"; then
4782 if test "$gt_cv_func_gettext_libc" = "yes" \
4783 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4784 cat >> confdefs.h <<\EOF
4785 #define HAVE_GETTEXT 1
4788 # Extract the first word of "msgfmt", so it can be a program name with args.
4789 set dummy msgfmt; ac_word=$2
4790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4791 echo "configure:4792: checking for $ac_word" >&5
4792 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4797 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4801 for ac_dir in $PATH; do
4802 test -z "$ac_dir" && ac_dir=.
4803 if test -f $ac_dir/$ac_word; then
4804 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4805 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
4811 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="no"
4815 MSGFMT="$gcc_cv_path_MSGFMT"
4816 if test -n "$MSGFMT"; then
4817 echo "$ac_t""$MSGFMT" 1>&6
4819 echo "$ac_t""no" 1>&6
4821 if test "$MSGFMT" != "no"; then
4822 for ac_func in dcgettext
4824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4825 echo "configure:4826: checking for $ac_func" >&5
4826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4832 /* System header to define __stub macros and hopefully few prototypes,
4833 which can conflict with char $ac_func(); below. */
4835 /* Override any gcc2 internal prototype to avoid an error. */
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4842 /* The GNU C library defines this for functions which it implements
4843 to always fail with ENOSYS. Some functions are actually named
4844 something starting with __ and the normal name is an alias. */
4845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4855 eval "ac_cv_func_$ac_func=yes"
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4860 eval "ac_cv_func_$ac_func=no"
4865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4866 echo "$ac_t""yes" 1>&6
4867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4868 cat >> confdefs.h <<EOF
4869 #define $ac_tr_func 1
4873 echo "$ac_t""no" 1>&6
4877 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4878 set dummy gmsgfmt; ac_word=$2
4879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4880 echo "configure:4881: checking for $ac_word" >&5
4881 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
4882 echo $ac_n "(cached) $ac_c" 1>&6
4886 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4889 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4894 for ac_dir in $ac_dummy; do
4895 test -z "$ac_dir" && ac_dir=.
4896 if test -f $ac_dir/$ac_word; then
4897 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
4902 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
4906 GMSGFMT="$gcc_cv_path_GMSGFMT"
4907 if test -n "$GMSGFMT"; then
4908 echo "$ac_t""$GMSGFMT" 1>&6
4910 echo "$ac_t""no" 1>&6
4913 # Extract the first word of "xgettext", so it can be a program name with args.
4914 set dummy xgettext; ac_word=$2
4915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4916 echo "configure:4917: checking for $ac_word" >&5
4917 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4922 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4926 for ac_dir in $PATH; do
4927 test -z "$ac_dir" && ac_dir=.
4928 if test -f $ac_dir/$ac_word; then
4929 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4930 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
4936 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
4940 XGETTEXT="$gcc_cv_path_XGETTEXT"
4941 if test -n "$XGETTEXT"; then
4942 echo "$ac_t""$XGETTEXT" 1>&6
4944 echo "$ac_t""no" 1>&6
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4952 extern int _nl_msg_cat_cntr;
4953 return _nl_msg_cat_cntr
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4970 create_catalogs="no"
4975 echo "$ac_t""no" 1>&6
4979 if test "$CATOBJEXT" = "NONE"; then
4980 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4981 echo "configure:4982: checking whether catgets can be used" >&5
4982 # Check whether --with-catgets or --without-catgets was given.
4983 if test "${with_catgets+set}" = set; then
4984 withval="$with_catgets"
4985 nls_cv_use_catgets=$withval
4987 nls_cv_use_catgets=no
4990 echo "$ac_t""$nls_cv_use_catgets" 1>&6
4992 if test "$nls_cv_use_catgets" = "yes"; then
4993 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4994 echo "configure:4995: checking for main in -li" >&5
4995 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 ac_save_LIBS="$LIBS"
5001 cat > conftest.$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5009 if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5011 eval "ac_cv_lib_$ac_lib_var=yes"
5013 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5016 eval "ac_cv_lib_$ac_lib_var=no"
5019 LIBS="$ac_save_LIBS"
5022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5026 cat >> confdefs.h <<EOF
5027 #define $ac_tr_lib 1
5033 echo "$ac_t""no" 1>&6
5036 echo $ac_n "checking for catgets""... $ac_c" 1>&6
5037 echo "configure:5038: checking for catgets" >&5
5038 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char catgets(); below. */
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5054 /* The GNU C library defines this for functions which it implements
5055 to always fail with ENOSYS. Some functions are actually named
5056 something starting with __ and the normal name is an alias. */
5057 #if defined (__stub_catgets) || defined (__stub___catgets)
5065 if { (eval echo configure:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5067 eval "ac_cv_func_catgets=yes"
5069 echo "configure: failed program was:" >&5
5070 cat conftest.$ac_ext >&5
5072 eval "ac_cv_func_catgets=no"
5077 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 cat >> confdefs.h <<\EOF
5080 #define HAVE_CATGETS 1
5083 INTLOBJS="\$(CATOBJS)"
5084 # Extract the first word of "gencat", so it can be a program name with args.
5085 set dummy gencat; ac_word=$2
5086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5087 echo "configure:5088: checking for $ac_word" >&5
5088 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5093 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5096 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5101 for ac_dir in $ac_dummy; do
5102 test -z "$ac_dir" && ac_dir=.
5103 if test -f $ac_dir/$ac_word; then
5104 gcc_cv_path_GENCAT="$ac_dir/$ac_word"
5109 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT="no"
5113 GENCAT="$gcc_cv_path_GENCAT"
5114 if test -n "$GENCAT"; then
5115 echo "$ac_t""$GENCAT" 1>&6
5117 echo "$ac_t""no" 1>&6
5119 if test "$GENCAT" != "no"; then
5120 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5121 set dummy gmsgfmt; ac_word=$2
5122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5123 echo "configure:5124: checking for $ac_word" >&5
5124 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5129 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5132 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5137 for ac_dir in $ac_dummy; do
5138 test -z "$ac_dir" && ac_dir=.
5139 if test -f $ac_dir/$ac_word; then
5140 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5145 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="no"
5149 GMSGFMT="$gcc_cv_path_GMSGFMT"
5150 if test -n "$GMSGFMT"; then
5151 echo "$ac_t""$GMSGFMT" 1>&6
5153 echo "$ac_t""no" 1>&6
5156 if test "$GMSGFMT" = "no"; then
5157 # Extract the first word of "msgfmt", so it can be a program name with args.
5158 set dummy msgfmt; ac_word=$2
5159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5160 echo "configure:5161: checking for $ac_word" >&5
5161 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5166 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5170 for ac_dir in $PATH; do
5171 test -z "$ac_dir" && ac_dir=.
5172 if test -f $ac_dir/$ac_word; then
5173 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5174 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5180 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="msgfmt"
5184 GMSGFMT="$gcc_cv_path_GMSGFMT"
5185 if test -n "$GMSGFMT"; then
5186 echo "$ac_t""$GMSGFMT" 1>&6
5188 echo "$ac_t""no" 1>&6
5191 if test "$GMSGFMT" = "msgfmt"; then
5192 create_catalogs="no"
5195 # Extract the first word of "xgettext", so it can be a program name with args.
5196 set dummy xgettext; ac_word=$2
5197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5198 echo "configure:5199: checking for $ac_word" >&5
5199 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5204 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5208 for ac_dir in $PATH; do
5209 test -z "$ac_dir" && ac_dir=.
5210 if test -f $ac_dir/$ac_word; then
5211 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5212 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5218 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5222 XGETTEXT="$gcc_cv_path_XGETTEXT"
5223 if test -n "$XGETTEXT"; then
5224 echo "$ac_t""$XGETTEXT" 1>&6
5226 echo "$ac_t""no" 1>&6
5229 USE_INCLUDED_LIBINTL=yes
5233 INTLDEPS='$(top_builddir)/intl/libintl.a'
5235 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5236 nls_cv_header_intl=intl/libintl.h
5237 nls_cv_header_libgt=intl/libgettext.h
5240 echo "$ac_t""no" 1>&6
5246 if test "$CATOBJEXT" = "NONE"; then
5247 nls_cv_use_gnu_gettext=yes
5251 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5252 INTLOBJS="\$(GETTOBJS)"
5253 # Extract the first word of "msgfmt", so it can be a program name with args.
5254 set dummy msgfmt; ac_word=$2
5255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5256 echo "configure:5257: checking for $ac_word" >&5
5257 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5262 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5266 for ac_dir in $PATH; do
5267 test -z "$ac_dir" && ac_dir=.
5268 if test -f $ac_dir/$ac_word; then
5269 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5270 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5276 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="msgfmt"
5280 MSGFMT="$gcc_cv_path_MSGFMT"
5281 if test -n "$MSGFMT"; then
5282 echo "$ac_t""$MSGFMT" 1>&6
5284 echo "$ac_t""no" 1>&6
5287 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5288 set dummy gmsgfmt; ac_word=$2
5289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5290 echo "configure:5291: checking for $ac_word" >&5
5291 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5296 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5299 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5304 for ac_dir in $ac_dummy; do
5305 test -z "$ac_dir" && ac_dir=.
5306 if test -f $ac_dir/$ac_word; then
5307 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5312 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5316 GMSGFMT="$gcc_cv_path_GMSGFMT"
5317 if test -n "$GMSGFMT"; then
5318 echo "$ac_t""$GMSGFMT" 1>&6
5320 echo "$ac_t""no" 1>&6
5323 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
5324 create_catalogs="no"
5326 # Extract the first word of "xgettext", so it can be a program name with args.
5327 set dummy xgettext; ac_word=$2
5328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_word" >&5
5330 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5335 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5339 for ac_dir in $PATH; do
5340 test -z "$ac_dir" && ac_dir=.
5341 if test -f $ac_dir/$ac_word; then
5342 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5343 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5349 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5353 XGETTEXT="$gcc_cv_path_XGETTEXT"
5354 if test -n "$XGETTEXT"; then
5355 echo "$ac_t""$XGETTEXT" 1>&6
5357 echo "$ac_t""no" 1>&6
5361 USE_INCLUDED_LIBINTL=yes
5365 INTLDEPS='$(top_builddir)/intl/libintl.a'
5367 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5368 nls_cv_header_intl=intl/libintl.h
5369 nls_cv_header_libgt=intl/libgettext.h
5372 if test "$XGETTEXT" != ":"; then
5373 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5376 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5383 # We need to process the po/ directory.
5387 nls_cv_header_intl=intl/libintl.h
5388 nls_cv_header_libgt=intl/libgettext.h
5394 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5395 # because some of the sources are only built for this goal.
5396 if test "$PACKAGE" = gettext; then
5398 USE_INCLUDED_LIBINTL=yes
5401 for lang in $ALL_LINGUAS; do
5402 GMOFILES="$GMOFILES $lang.gmo"
5403 POFILES="$POFILES $lang.po"
5419 if test "x$create_catalogs" = "xno"; then
5420 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
5423 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
5424 if test "x$ALL_LINGUAS" = "x"; then
5427 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5428 echo "configure:5429: checking for catalogs to be installed" >&5
5429 if test "x$LINGUAS" = "x"; then
5430 LINGUAS=$ALL_LINGUAS
5433 for lang in $ALL_LINGUAS; do
5434 case " $LINGUAS " in
5435 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5438 LINGUAS=$NEW_LINGUAS
5440 echo "$ac_t""$LINGUAS" 1>&6
5443 if test -n "$LINGUAS"; then
5444 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5448 if test $ac_cv_header_locale_h = yes; then
5449 INCLUDE_LOCALE_H="#include <locale.h>"
5452 /* The system does not provide the header <locale.h>. Take care yourself. */"
5456 test -d intl || mkdir intl
5457 if test "$CATOBJEXT" = ".cat"; then
5458 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5459 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5460 echo "configure:5461: checking for linux/version.h" >&5
5461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5467 #include <linux/version.h>
5469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5470 { (eval echo configure:5471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5472 if test -z "$ac_err"; then
5474 eval "ac_cv_header_$ac_safe=yes"
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5480 eval "ac_cv_header_$ac_safe=no"
5484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5485 echo "$ac_t""yes" 1>&6
5488 echo "$ac_t""no" 1>&6
5493 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
5495 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5496 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
5498 if test "$PACKAGE" = "gettext"; then
5509 if test -n "$ac_aux_dir"; then
5510 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5512 if test -z "$MKINSTALLDIRS"; then
5513 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5520 test -d po || mkdir po
5521 if test "x$srcdir" != "x."; then
5522 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5523 posrcprefix="$srcdir/"
5525 posrcprefix="../$srcdir/"
5531 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5532 < $srcdir/po/POTFILES.in > po/POTFILES
5534 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
5536 # Windows32 Registry support for specifying GCC installation paths.
5537 # Check whether --enable-win32-registry or --disable-win32-registry was given.
5538 if test "${enable_win32_registry+set}" = set; then
5539 enableval="$enable_win32_registry"
5544 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
5545 echo "configure:5546: checking whether windows registry support is requested" >&5
5546 if test x$enable_win32_registry != xno; then
5547 cat >> confdefs.h <<\EOF
5548 #define ENABLE_WIN32_REGISTRY 1
5551 echo "$ac_t""yes" 1>&6
5553 echo "$ac_t""no" 1>&6
5556 # Check if user specified a different registry key.
5557 case x${enable_win32_registry} in
5560 gcc_cv_win32_registry_key="$VERSION"
5563 # no registry lookup.
5564 gcc_cv_win32_registry_key=''
5567 # user-specified key.
5568 gcc_cv_win32_registry_key="$enable_win32_registry"
5572 if test x$enable_win32_registry != xno; then
5573 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
5574 echo "configure:5575: checking registry key on windows hosts" >&5
5575 cat >> confdefs.h <<EOF
5576 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
5579 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
5582 # Get an absolute path to the GCC top-level source directory
5588 # Conditionalize the makefile for this host machine.
5589 # Make-host contains the concatenation of all host makefile fragments
5590 # [there can be more than one]. This file is built by configure.frag.
5591 host_overrides=Make-host
5592 dep_host_xmake_file=
5593 for f in .. ${host_xmake_file}
5595 if test -f ${srcdir}/config/$f
5597 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5601 # Conditionalize the makefile for this target machine.
5602 # Make-target contains the concatenation of all host makefile fragments
5603 # [there can be more than one]. This file is built by configure.frag.
5604 target_overrides=Make-target
5606 for f in .. ${tmake_file}
5608 if test -f ${srcdir}/config/$f
5610 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5614 # If the host doesn't support symlinks, modify CC in
5615 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5616 # Otherwise, we can use "CC=$(CC)".
5618 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
5620 cc_set_by_configure="\$(CC)"
5621 quoted_cc_set_by_configure="\$(CC)"
5622 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5625 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5627 symbolic_link="cp -p"
5631 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5632 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
5633 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5637 out_object_file=`basename $out_file .c`.o
5640 for f in $tm_file; do
5642 gansidecl.h | defaults.h )
5643 tm_file_list="${tm_file_list} $f" ;;
5644 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
5649 for f in $tm_p_file; do
5650 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
5654 for f in $host_xm_file; do
5656 auto-host.h | gansidecl.h | defaults.h | hwint.h )
5657 host_xm_file_list="${host_xm_file_list} $f" ;;
5658 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
5663 for f in $build_xm_file; do
5665 auto-build.h | auto-host.h | gansidecl.h | defaults.h | hwint.h )
5666 build_xm_file_list="${build_xm_file_list} $f" ;;
5667 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
5671 # Define macro CROSS_COMPILE in compilation
5672 # if this is a cross-compiler.
5673 # Also use all.cross instead of all.internal
5674 # and add cross-make to Makefile.
5675 cross_overrides="/dev/null"
5676 if test x$host != x$target
5678 cross_defines="CROSS=-DCROSS_COMPILE"
5679 cross_overrides="${topdir}/cross-make"
5682 # If this is a cross-compiler that does not
5683 # have its own set of headers then define
5686 # If this is using newlib, then define inhibit_libc in
5687 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5688 # libgcc.a, but that's OK because newlib should have its own version of
5691 if test x$host != x$target && test x$with_headers = x; then
5692 inhibit_libc=-Dinhibit_libc
5694 if test x$with_newlib = xyes; then
5695 inhibit_libc=-Dinhibit_libc
5700 # When building gcc with a cross-compiler, we need to fix a few things.
5701 # This must come after cross-make as we want all.build to override
5703 build_overrides="/dev/null"
5704 if test x$build != x$host
5706 build_overrides="${topdir}/build-make"
5709 # Expand extra_headers to include complete path.
5710 # This substitutes for lots of t-* files.
5712 if test "x$extra_headers" = x
5715 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5716 for file in $extra_headers;
5718 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5722 if test x$use_collect2 = xno; then
5726 # Add a definition of USE_COLLECT2 if system wants one.
5727 # Also tell toplev.c what to do.
5728 # This substitutes for lots of t-* files.
5729 if test x$use_collect2 = x
5734 will_use_collect2="collect2"
5735 maybe_use_collect2="-DUSE_COLLECT2"
5738 # If we have gas in the build tree, make a link to it.
5739 if test -f ../gas/Makefile; then
5740 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5743 # If we have nm in the build tree, make a link to it.
5744 if test -f ../binutils/Makefile; then
5745 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
5748 # If we have ld in the build tree, make a link to it.
5749 if test -f ../ld/Makefile; then
5750 # if test x$use_collect2 = x; then
5751 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5753 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5757 # Figure out what assembler we will be using.
5758 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
5759 echo "configure:5760: checking what assembler to use" >&5
5761 gcc_cv_gas_major_version=
5762 gcc_cv_gas_minor_version=
5763 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5764 if test -x "$DEFAULT_ASSEMBLER"; then
5765 gcc_cv_as="$DEFAULT_ASSEMBLER"
5766 elif test -x "$AS"; then
5768 elif test -x as$host_exeext; then
5769 # Build using assembler in the current directory.
5770 gcc_cv_as=./as$host_exeext
5771 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
5772 # Single tree build which includes gas.
5773 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
5775 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5776 if test x$gcc_cv_gas_version != x; then
5780 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5781 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5784 if test "x$gcc_cv_as" = x -a x$host = x$target; then
5786 # Search the same directories that the installed compiler will
5787 # search. Else we may find the wrong assembler and lose. If we
5788 # do not find a suitable assembler binary, then try the user's
5791 # Also note we have to check MD_EXEC_PREFIX before checking the
5792 # user's path. Unfortunately, there is no good way to get at the
5793 # value of MD_EXEC_PREFIX here. So we do a brute force search
5794 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
5795 # to be fixed as part of the make/configure rewrite too.
5797 if test "x$exec_prefix" = xNONE; then
5798 if test "x$prefix" = xNONE; then
5799 test_prefix=/usr/local
5804 test_prefix=$exec_prefix
5807 # If the loop below does not find an assembler, then use whatever
5808 # one we can find in the users's path.
5812 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
5813 $test_prefix/lib/gcc-lib/$target \
5814 /usr/lib/gcc/$target/$gcc_version \
5815 /usr/lib/gcc/$target \
5816 $test_prefix/$target/bin/$target/$gcc_version \
5817 $test_prefix/$target/bin \
5822 /bsd43/usr/lib/cmplrs/cc \
5823 /usr/cross64/usr/bin \
5824 /usr/lib/cmplrs/cc \
5825 /sysv/usr/lib/cmplrs/cc \
5826 /svr4/usr/lib/cmplrs/cc \
5829 for dir in $test_dirs; do
5830 if test -f $dir/as$host_exeext; then
5831 gcc_cv_as=$dir/as$host_exeext
5836 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5837 echo "$ac_t"""newly built gas"" 1>&6
5839 echo "$ac_t""$gcc_cv_as" 1>&6
5842 # Figure out what nm we will be using.
5843 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
5844 echo "configure:5845: checking what nm to use" >&5
5845 if test -x nm$host_exeext; then
5846 gcc_cv_nm=./nm$host_exeext
5847 elif test x$host = x$target; then
5849 gcc_cv_nm=nm$host_exeext
5851 echo "$ac_t""$gcc_cv_nm" 1>&6
5853 # Figure out what assembler alignment features are present.
5854 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5855 echo "configure:5856: checking assembler alignment features" >&5
5856 gcc_cv_as_alignment_features=none
5857 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5858 # Gas version 2.6 and later support for .balign and .p2align.
5859 # bytes to skip when using .p2align.
5860 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
5861 gcc_cv_as_alignment_features=".balign and .p2align"
5862 cat >> confdefs.h <<\EOF
5863 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5867 # Gas version 2.8 and later support specifying the maximum
5868 # bytes to skip when using .p2align.
5869 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
5870 gcc_cv_as_alignment_features=".p2align including maximum skip"
5871 cat >> confdefs.h <<\EOF
5872 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5876 elif test x$gcc_cv_as != x; then
5877 # Check if we have .balign and .p2align
5878 echo ".balign 4" > conftest.s
5879 echo ".p2align 2" >> conftest.s
5880 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5881 gcc_cv_as_alignment_features=".balign and .p2align"
5882 cat >> confdefs.h <<\EOF
5883 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5887 rm -f conftest.s conftest.o
5888 # Check if specifying the maximum bytes to skip when
5889 # using .p2align is supported.
5890 echo ".p2align 4,,7" > conftest.s
5891 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5892 gcc_cv_as_alignment_features=".p2align including maximum skip"
5893 cat >> confdefs.h <<\EOF
5894 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5898 rm -f conftest.s conftest.o
5900 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5902 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5903 echo "configure:5904: checking assembler subsection support" >&5
5904 gcc_cv_as_subsections=no
5905 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5906 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
5907 gcc_cv_as_subsections="working .subsection -1"
5909 elif test x$gcc_cv_as != x; then
5910 # Check if we have .subsection
5911 echo ".subsection 1" > conftest.s
5912 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5913 gcc_cv_as_subsections=".subsection"
5914 if test x$gcc_cv_nm != x; then
5915 cat > conftest.s <<EOF
5916 conftest_label1: .word 0
5918 conftest_label2: .word 0
5921 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5922 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
5923 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
5924 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
5927 gcc_cv_as_subsections="working .subsection -1"
5932 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5934 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
5935 cat >> confdefs.h <<\EOF
5936 #define HAVE_GAS_SUBSECTION_ORDERING 1
5940 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
5942 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
5943 echo "configure:5944: checking assembler weak support" >&5
5945 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5946 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
5947 gcc_cv_as_weak="yes"
5949 elif test x$gcc_cv_as != x; then
5950 # Check if we have .weak
5951 echo " .weak foobar" > conftest.s
5952 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5953 gcc_cv_as_weak="yes"
5955 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5957 if test x"$gcc_cv_as_weak" = xyes; then
5958 cat >> confdefs.h <<\EOF
5959 #define HAVE_GAS_WEAK 1
5963 echo "$ac_t""$gcc_cv_as_weak" 1>&6
5965 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
5966 echo "configure:5967: checking assembler hidden support" >&5
5968 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5969 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
5970 gcc_cv_as_hidden="yes"
5972 elif test x$gcc_cv_as != x; then
5973 # Check if we have .hidden
5974 echo " .hidden foobar" > conftest.s
5975 echo "foobar:" >> conftest.s
5976 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5977 gcc_cv_as_hidden="yes"
5979 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5981 if test x"$gcc_cv_as_hidden" = xyes; then
5982 cat >> confdefs.h <<\EOF
5983 #define HAVE_GAS_HIDDEN 1
5987 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
5989 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
5990 echo "configure:5991: checking assembler leb128 support" >&5
5992 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
5993 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
5994 gcc_cv_as_leb128="yes"
5996 elif test x$gcc_cv_as != x; then
5997 # Check if we have .[us]leb128, and support symbol arithmetic with it.
5998 cat > conftest.s <<EOF
6006 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6007 gcc_cv_as_leb128="yes"
6009 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6011 if test x"$gcc_cv_as_leb128" = xyes; then
6012 cat >> confdefs.h <<\EOF
6013 #define HAVE_AS_LEB128 1
6017 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
6021 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
6022 echo "configure:6023: checking assembler .register pseudo-op support" >&5
6023 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6027 gcc_cv_as_register_pseudo_op=unknown
6028 if test x$gcc_cv_as != x; then
6029 # Check if we have .register
6030 echo ".register %g2, #scratch" > conftest.s
6031 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6032 gcc_cv_as_register_pseudo_op=yes
6034 gcc_cv_as_register_pseudo_op=no
6036 rm -f conftest.s conftest.o
6041 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
6042 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
6043 cat >> confdefs.h <<\EOF
6044 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6049 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
6050 echo "configure:6051: checking assembler supports -relax" >&5
6051 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6
6055 gcc_cv_as_relax_opt=unknown
6056 if test x$gcc_cv_as != x; then
6057 # Check if gas supports -relax
6058 echo ".text" > conftest.s
6059 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
6060 gcc_cv_as_relax_opt=yes
6062 gcc_cv_as_relax_opt=no
6064 rm -f conftest.s conftest.o
6069 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
6070 if test "x$gcc_cv_as_relax_opt" = xyes; then
6071 cat >> confdefs.h <<\EOF
6072 #define HAVE_AS_RELAX_OPTION 1
6079 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
6080 echo "configure:6081: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
6081 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6085 if test -n "$gcc_cv_as"; then
6086 echo ".xword foo" > conftest.s
6087 gcc_cv_as_flags64=no
6088 for flag in "-xarch=v9" "-64 -Av9"; do
6089 if $gcc_cv_as $flag -o conftest.o conftest.s \
6090 > /dev/null 2>&1; then
6091 gcc_cv_as_flags64=$flag
6095 rm -f conftest.s conftest.o
6097 if test "$gas" = yes; then
6098 gcc_cv_as_flags64="-64 -Av9"
6100 gcc_cv_as_flags64="-xarch=v9"
6106 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
6107 if test "x$gcc_cv_as_flags64" = xno; then
6109 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6110 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6113 cat >> confdefs.h <<EOF
6114 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
6119 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
6123 if test "x$gcc_cv_as_flags64" != xno; then
6124 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6125 echo "configure:6126: checking for assembler offsetable %lo() support" >&5
6126 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6130 gcc_cv_as_offsetable_lo10=unknown
6131 if test "x$gcc_cv_as" != x; then
6132 # Check if assembler has offsetable %lo()
6133 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6134 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6135 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
6137 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
6138 > /dev/null 2>&1; then
6139 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
6140 gcc_cv_as_offsetable_lo10=no
6142 gcc_cv_as_offsetable_lo10=yes
6145 gcc_cv_as_offsetable_lo10=no
6147 rm -f conftest.s conftest.o conftest1.s conftest1.o
6152 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6153 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
6154 cat >> confdefs.h <<\EOF
6155 #define HAVE_AS_OFFSETABLE_LO10 1
6163 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6164 echo "configure:6165: checking assembler instructions" >&5
6165 gcc_cv_as_instructions=
6166 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6167 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
6168 gcc_cv_as_instructions="filds fists"
6170 elif test x$gcc_cv_as != x; then
6171 set "filds fists" "filds mem; fists mem"
6174 echo "$2" > conftest.s
6175 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6176 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
6180 rm -f conftest.s conftest.o
6182 if test x"$gcc_cv_as_instructions" != x; then
6183 cat >> confdefs.h <<EOF
6184 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6188 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6192 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6193 echo "configure:6194: checking assembler dwarf2 debug_line support" >&5
6194 gcc_cv_as_dwarf2_debug_line=no
6195 # ??? Not all targets support dwarf2 debug_line, even within a version
6196 # of gas. Moreover, we need to emit a valid instruction to trigger any
6197 # info to the output file. So, as supported targets are added to gas 2.11,
6198 # add some instruction here to (also) show we expect this might work.
6199 # ??? Once 2.11 is released, probably need to add first known working
6200 # version to the per-target configury.
6202 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-*)
6209 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
6211 if test "$gcc_cv_gas_major_version" -eq 2 \
6212 -a "$gcc_cv_gas_minor_version" -ge 11 \
6213 -o "$gcc_cv_gas_major_version" -gt 2 \
6214 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
6215 && test x"$insn" != x ; then
6216 gcc_cv_as_dwarf2_debug_line="yes"
6218 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
6219 echo ' .file 0 "conftest.s"' > conftest.s
6220 echo ' .loc 0 3 0' >> conftest.s
6221 echo " $insn" >> conftest.s
6222 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
6223 && grep debug_line conftest.o > /dev/null 2>&1 ; then
6224 gcc_cv_as_dwarf2_debug_line="yes"
6226 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6228 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
6229 cat >> confdefs.h <<\EOF
6230 #define HAVE_AS_DWARF2_DEBUG_LINE 1
6234 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
6236 # Figure out what language subdirectories are present.
6237 # Look if the user specified --enable-languages="..."; if not, use
6238 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6240 if test x"${enable_languages+set}" != xset; then
6241 if test x"${LANGUAGES+set}" = xset; then
6242 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
6244 enable_languages=all
6247 if test x"${enable_languages}" = x; then
6248 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
6252 # First scan to see if an enabled language requires some other language.
6253 # We assume that a given config-lang.in will list all the language
6254 # front ends it requires, even if some are required indirectly.
6255 for lang in ${srcdir}/*/config-lang.in ..
6260 # The odd quoting in the next line works around
6261 # an apparent bug in bash 1.12 on linux.
6262 ${srcdir}/[*]/config-lang.in)
6265 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6266 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
6267 for other in $this_lang_requires
6269 case ,${enable_languages}, in
6275 enable_languages="$enable_languages,$other"
6284 for lang in ${srcdir}/*/config-lang.in ..
6288 # The odd quoting in the next line works around
6289 # an apparent bug in bash 1.12 on linux.
6290 ${srcdir}/[*]/config-lang.in) ;;
6292 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6293 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
6294 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
6295 if test "x$lang_alias" = x
6297 echo "$lang doesn't set \$language." 1>&2
6300 case ${build_by_default},${enable_languages}, in
6301 *,$lang_alias,*) add_this_lang=yes ;;
6302 no,*) add_this_lang=no ;;
6303 *,all,*) add_this_lang=yes ;;
6304 *) add_this_lang=no ;;
6306 if test x"${add_this_lang}" = xyes; then
6308 ${srcdir}/ada/config-lang.in)
6309 if test x$have_gnat = xyes ; then
6310 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6314 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6322 # Make gthr-default.h if we have a thread file.
6324 if test $thread_file != single; then
6325 rm -f gthr-default.h
6326 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
6327 gthread_flags=-DHAVE_GTHR_DEFAULT
6331 # Find out what GC implementation we want, or may, use.
6332 # Check whether --with-gc or --without-gc was given.
6333 if test "${with_gc+set}" = set; then
6340 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
6348 echo "Using $GGC for garbage collection."
6350 # Use the system's zlib library.
6352 zlibinc="-I\$(srcdir)/../zlib"
6353 # Check whether --with-system-zlib or --without-system-zlib was given.
6354 if test "${with_system_zlib+set}" = set; then
6355 withval="$with_system_zlib"
6364 cat >> confdefs.h <<EOF
6365 #define ENABLE_STD_NAMESPACE 1
6370 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6371 echo "configure:6372: checking whether to enable maintainer-specific portions of Makefiles" >&5
6372 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6373 if test "${enable_maintainer_mode+set}" = set; then
6374 enableval="$enable_maintainer_mode"
6375 maintainer_mode=$enableval
6381 echo "$ac_t""$maintainer_mode" 1>&6
6383 if test "$maintainer_mode" = "yes"; then
6389 # Make empty files to contain the specs and options for each language.
6390 # Then add #include lines to for a compiler that has specs and/or options.
6395 rm -f specs.h options.h gencheck.h
6396 touch specs.h options.h gencheck.h
6397 for subdir in . $subdirs
6399 if test -f $srcdir/$subdir/lang-specs.h; then
6400 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
6401 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
6403 if test -f $srcdir/$subdir/lang-options.h; then
6404 echo "#include \"$subdir/lang-options.h\"" >>options.h
6405 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
6407 if test -f $srcdir/$subdir/$subdir-tree.def; then
6408 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
6409 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
6413 # These (without "all_") are set in each config-lang.in.
6414 # `language' must be a single word so is spelled singularly.
6420 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
6421 # List of language makefile fragments.
6426 # Add the language fragments.
6427 # Languages are added via two mechanisms. Some information must be
6428 # recorded in makefile variables, these are defined in config-lang.in.
6429 # We accumulate them and plug them into the main Makefile.
6430 # The other mechanism is a set of hooks for each of the main targets
6431 # like `clean', `install', etc.
6433 language_fragments="Make-lang"
6434 language_hooks="Make-hooks"
6436 for s in .. $subdirs
6448 . ${srcdir}/$s/config-lang.in
6449 if test "x$language" = x
6451 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
6454 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
6455 if test -f ${srcdir}/$s/Makefile.in
6456 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
6458 all_languages="$all_languages $language"
6459 if test "x$boot_language" = xyes
6461 all_boot_languages="$all_boot_languages $language"
6463 all_compilers="$all_compilers $compilers"
6464 all_stagestuff="$all_stagestuff $stagestuff"
6465 all_diff_excludes="$all_diff_excludes $diff_excludes"
6466 all_headers="$all_headers $headers"
6467 all_outputs="$all_outputs $outputs"
6468 all_lib2funcs="$all_lib2funcs $lib2funcs"
6473 for language in .. $all_languages
6475 if test $language != ".."
6477 check_languages="$check_languages check-$language"
6481 # Since we can't use `::' targets, we link each language in
6482 # with a set of hooks, reached indirectly via lang.${target}.
6486 target_list="all.build all.cross start.encap rest.encap \
6488 install-normal install-common install-info install-man \
6490 mostlyclean clean distclean extraclean maintainer-clean \
6491 stage1 stage2 stage3 stage4"
6492 for t in $target_list
6495 for lang in .. $all_languages
6497 if test $lang != ".."; then
6501 echo "lang.$t: $x" >> Make-hooks
6506 echo "dir ." > .gdbinit
6507 echo "dir ${srcdir}" >> .gdbinit
6508 if test x$gdb_needs_out_file_path = xyes
6510 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
6512 if test "x$subdirs" != x; then
6515 echo "dir ${srcdir}/$s" >> .gdbinit
6518 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
6520 # Define variables host_canonical and build_canonical
6521 # because some Cygnus local changes in the Makefile depend on them.
6522 build_canonical=${build}
6523 host_canonical=${host}
6525 if test "${host}" != "${target}" ; then
6526 target_subdir=${target}/
6532 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
6533 # absolute path for gcc_tooldir based on inserting the number of up-directory
6534 # movements required to get from $(exec_prefix) to $(prefix) into the basic
6535 # $(libsubdir)/@(unlibsubdir) based path.
6536 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
6537 # make and thus we'd get different behavior depending on where we built the
6539 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
6540 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
6542 # An explanation of the sed strings:
6543 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
6544 # -e 's|/$||' match a trailing forward slash and eliminates it
6545 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
6546 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
6548 # (*) Note this pattern overwrites the first character of the string
6549 # with a forward slash if one is not already present. This is not a
6550 # problem because the exact names of the sub-directories concerned is
6551 # unimportant, just the number of them matters.
6553 # The practical upshot of these patterns is like this:
6555 # prefix exec_prefix result
6556 # ------ ----------- ------
6558 # /foo/ /foo/bar ../
6559 # /foo /foo/bar/ ../
6560 # /foo/ /foo/bar/ ../
6561 # /foo /foo/bar/ugg ../../
6564 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
6569 # Find a directory in which to install a shared libgcc.
6571 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
6572 if test "${enable_version_specific_runtime_libs+set}" = set; then
6573 enableval="$enable_version_specific_runtime_libs"
6578 # Check whether --with-slibdir or --without-slibdir was given.
6579 if test "${with_slibdir+set}" = set; then
6580 withval="$with_slibdir"
6581 slibdir="$with_slibdir"
6583 if test "${enable_version_specific_runtime_libs+set}" = set; then
6584 slibdir='$(libsubdir)'
6585 elif test "$host" != "$target"; then
6586 slibdir='$(build_tooldir)/lib'
6594 # Nothing to do for FLOAT_H, float_format already handled.
6598 # Process the language and host/target makefile fragments.
6599 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
6601 # Substitute configuration variables
6671 # Echo that links are built
6672 if test x$host = x$target
6680 if test x$host != x$build
6682 str3=" on a $build system"
6685 if test "x$str2" != x || test "x$str3" != x
6690 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
6692 if test "x$str2" != x || test "x$str3" != x
6694 echo " ${str2}${str3}." 1>&2
6697 # Truncate the target if necessary
6698 if test x$host_truncate_target != x; then
6699 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6702 # Configure the subdirectories
6703 # AC_CONFIG_SUBDIRS($subdirs)
6705 # Create the Makefile
6706 # and configure language subdirectories
6708 cat > confcache <<\EOF
6709 # This file is a shell script that caches the results of configure
6710 # tests run on this system so they can be shared between configure
6711 # scripts and configure runs. It is not useful on other systems.
6712 # If it contains results you don't want to keep, you may remove or edit it.
6714 # By default, configure uses ./config.cache as the cache file,
6715 # creating it if it does not exist already. You can give configure
6716 # the --cache-file=FILE option to use a different cache file; that is
6717 # what configure does when it calls configure scripts in
6718 # subdirectories, so they share the cache.
6719 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6720 # config.status only pays attention to the cache file if you give it the
6721 # --recheck option to rerun configure.
6724 # The following way of writing the cache mishandles newlines in values,
6725 # but we know of no workaround that is simple, portable, and efficient.
6726 # So, don't put newlines in cache variables' values.
6727 # Ultrix sh set writes to stderr and can't be redirected directly,
6728 # and sets the high bit in the cache file unless we assign to the vars.
6730 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6732 # `set' does not quote correctly, so add quotes (double-quote substitution
6733 # turns \\\\ into \\, and sed turns \\ into \).
6735 -e "s/'/'\\\\''/g" \
6736 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6739 # `set' quotes correctly as required by POSIX, so do not add quotes.
6740 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6743 if cmp -s $cache_file confcache; then
6746 if test -w $cache_file; then
6747 echo "updating cache $cache_file"
6748 cat confcache > $cache_file
6750 echo "not updating unwritable cache $cache_file"
6755 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6758 # Let make expand exec_prefix.
6759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6761 # Any assignment to VPATH causes Sun make to only execute
6762 # the first set of double-colon rules, so remove it if not needed.
6763 # If there is a colon in the path, we need to keep it.
6764 if test "x$srcdir" = x.; then
6765 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6768 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6770 DEFS=-DHAVE_CONFIG_H
6772 # Without the "./", some shells look in PATH for config.status.
6773 : ${CONFIG_STATUS=./config.status}
6775 echo creating $CONFIG_STATUS
6776 rm -f $CONFIG_STATUS
6777 cat > $CONFIG_STATUS <<EOF
6779 # Generated automatically by configure.
6780 # Run this file to recreate the current configuration.
6781 # This directory was configured as follows,
6782 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6784 # $0 $ac_configure_args
6786 # Compiler output produced by configure, useful for debugging
6787 # configure, is in ./config.log if it exists.
6789 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6792 case "\$ac_option" in
6793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6794 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6795 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6796 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6797 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6799 -help | --help | --hel | --he | --h)
6800 echo "\$ac_cs_usage"; exit 0 ;;
6801 *) echo "\$ac_cs_usage"; exit 1 ;;
6805 ac_given_srcdir=$srcdir
6807 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6809 cat >> $CONFIG_STATUS <<EOF
6811 # Protect against being on the right side of a sed subst in config.status.
6812 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6813 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6817 s%@CFLAGS@%$CFLAGS%g
6818 s%@CPPFLAGS@%$CPPFLAGS%g
6819 s%@CXXFLAGS@%$CXXFLAGS%g
6820 s%@FFLAGS@%$FFLAGS%g
6822 s%@LDFLAGS@%$LDFLAGS%g
6824 s%@exec_prefix@%$exec_prefix%g
6825 s%@prefix@%$prefix%g
6826 s%@program_transform_name@%$program_transform_name%g
6827 s%@bindir@%$bindir%g
6828 s%@sbindir@%$sbindir%g
6829 s%@libexecdir@%$libexecdir%g
6830 s%@datadir@%$datadir%g
6831 s%@sysconfdir@%$sysconfdir%g
6832 s%@sharedstatedir@%$sharedstatedir%g
6833 s%@localstatedir@%$localstatedir%g
6834 s%@libdir@%$libdir%g
6835 s%@includedir@%$includedir%g
6836 s%@oldincludedir@%$oldincludedir%g
6837 s%@infodir@%$infodir%g
6838 s%@mandir@%$mandir%g
6839 s%@enable_multilib@%$enable_multilib%g
6840 s%@enable_shared@%$enable_shared%g
6842 s%@host_alias@%$host_alias%g
6843 s%@host_cpu@%$host_cpu%g
6844 s%@host_vendor@%$host_vendor%g
6845 s%@host_os@%$host_os%g
6846 s%@target@%$target%g
6847 s%@target_alias@%$target_alias%g
6848 s%@target_cpu@%$target_cpu%g
6849 s%@target_vendor@%$target_vendor%g
6850 s%@target_os@%$target_os%g
6852 s%@build_alias@%$build_alias%g
6853 s%@build_cpu@%$build_cpu%g
6854 s%@build_vendor@%$build_vendor%g
6855 s%@build_os@%$build_os%g
6857 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
6858 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
6859 s%@strict1_warn@%$strict1_warn%g
6860 s%@warn_cflags@%$warn_cflags%g
6861 s%@stage1_cflags@%$stage1_cflags%g
6862 s%@SET_MAKE@%$SET_MAKE%g
6866 s%@RANLIB@%$RANLIB%g
6867 s%@INSTALL@%$INSTALL%g
6868 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6869 s%@INSTALL_DATA@%$INSTALL_DATA%g
6871 s%@have_gnat@%$have_gnat%g
6872 s%@have_mktemp_command@%$have_mktemp_command%g
6873 s%@MAKEINFO@%$MAKEINFO%g
6874 s%@BUILD_INFO@%$BUILD_INFO%g
6875 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
6878 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
6879 s%@vfprintf@%$vfprintf%g
6880 s%@doprint@%$doprint%g
6881 s%@strstr@%$strstr%g
6882 s%@manext@%$manext%g
6883 s%@objext@%$objext%g
6884 s%@PACKAGE@%$PACKAGE%g
6885 s%@VERSION@%$VERSION%g
6886 s%@CHECK_PO@%$CHECK_PO%g
6887 s%@USE_NLS@%$USE_NLS%g
6888 s%@MSGFMT@%$MSGFMT%g
6889 s%@GMSGFMT@%$GMSGFMT%g
6890 s%@XGETTEXT@%$XGETTEXT%g
6891 s%@GENCAT@%$GENCAT%g
6892 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6893 s%@CATALOGS@%$CATALOGS%g
6894 s%@CATOBJEXT@%$CATOBJEXT%g
6895 s%@DATADIRNAME@%$DATADIRNAME%g
6896 s%@GMOFILES@%$GMOFILES%g
6897 s%@INSTOBJEXT@%$INSTOBJEXT%g
6898 s%@INTLDEPS@%$INTLDEPS%g
6899 s%@INTLLIBS@%$INTLLIBS%g
6900 s%@INTLOBJS@%$INTLOBJS%g
6901 s%@POFILES@%$POFILES%g
6903 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6905 s%@GT_YES@%$GT_YES%g
6906 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6908 s%@inhibit_libc@%$inhibit_libc%g
6909 s%@gthread_flags@%$gthread_flags%g
6911 s%@zlibdir@%$zlibdir%g
6912 s%@zlibinc@%$zlibinc%g
6914 s%@build_canonical@%$build_canonical%g
6915 s%@host_canonical@%$host_canonical%g
6916 s%@target_subdir@%$target_subdir%g
6917 s%@gcc_tooldir@%$gcc_tooldir%g
6918 s%@dollar@%$dollar%g
6919 s%@slibdir@%$slibdir%g
6920 s%@objdir@%$objdir%g
6921 s%@subdirs@%$subdirs%g
6922 s%@all_boot_languages@%$all_boot_languages%g
6923 s%@all_compilers@%$all_compilers%g
6924 s%@all_diff_excludes@%$all_diff_excludes%g
6925 s%@all_headers@%$all_headers%g
6926 s%@all_lang_makefiles@%$all_lang_makefiles%g
6927 s%@all_languages@%$all_languages%g
6928 s%@all_lib2funcs@%$all_lib2funcs%g
6929 s%@all_stagestuff@%$all_stagestuff%g
6930 s%@build_exeext@%$build_exeext%g
6931 s%@build_install_headers_dir@%$build_install_headers_dir%g
6932 s%@build_xm_file_list@%$build_xm_file_list%g
6933 s%@build_xm_file@%$build_xm_file%g
6934 s%@build_xm_defines@%$build_xm_defines%g
6935 s%@check_languages@%$check_languages%g
6936 s%@cc_set_by_configure@%$cc_set_by_configure%g
6937 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
6938 s%@cpp_install_dir@%$cpp_install_dir%g
6939 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6940 s%@dep_tmake_file@%$dep_tmake_file%g
6941 s%@extra_c_flags@%$extra_c_flags%g
6942 s%@extra_headers_list@%$extra_headers_list%g
6943 s%@extra_objs@%$extra_objs%g
6944 s%@extra_parts@%$extra_parts%g
6945 s%@extra_passes@%$extra_passes%g
6946 s%@extra_programs@%$extra_programs%g
6947 s%@float_h_file@%$float_h_file%g
6948 s%@gcc_config_arguments@%$gcc_config_arguments%g
6949 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
6950 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
6951 s%@gcc_version@%$gcc_version%g
6952 s%@gcc_version_full@%$gcc_version_full%g
6953 s%@gcc_version_trigger@%$gcc_version_trigger%g
6954 s%@host_exeext@%$host_exeext%g
6955 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6956 s%@host_xm_file_list@%$host_xm_file_list%g
6957 s%@host_xm_file@%$host_xm_file%g
6958 s%@host_xm_defines@%$host_xm_defines%g
6959 s%@install@%$install%g
6960 s%@lang_options_files@%$lang_options_files%g
6961 s%@lang_specs_files@%$lang_specs_files%g
6962 s%@lang_tree_files@%$lang_tree_files%g
6963 s%@local_prefix@%$local_prefix%g
6964 s%@maybe_use_collect2@%$maybe_use_collect2%g
6965 s%@md_file@%$md_file%g
6966 s%@objc_boehm_gc@%$objc_boehm_gc%g
6967 s%@out_file@%$out_file%g
6968 s%@out_object_file@%$out_object_file%g
6969 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6970 s%@symbolic_link@%$symbolic_link%g
6971 s%@thread_file@%$thread_file%g
6972 s%@tm_file_list@%$tm_file_list%g
6973 s%@tm_file@%$tm_file%g
6974 s%@tm_p_file_list@%$tm_p_file_list%g
6975 s%@tm_p_file@%$tm_p_file%g
6976 s%@xm_file@%$xm_file%g
6977 s%@will_use_collect2@%$will_use_collect2%g
6978 s%@c_target_objs@%$c_target_objs%g
6979 s%@cxx_target_objs@%$cxx_target_objs%g
6980 s%@target_cpu_default@%$target_cpu_default%g
6981 /@target_overrides@/r $target_overrides
6982 s%@target_overrides@%%g
6983 /@host_overrides@/r $host_overrides
6984 s%@host_overrides@%%g
6985 s%@cross_defines@%$cross_defines%g
6986 /@cross_overrides@/r $cross_overrides
6987 s%@cross_overrides@%%g
6988 /@build_overrides@/r $build_overrides
6989 s%@build_overrides@%%g
6990 /@language_fragments@/r $language_fragments
6991 s%@language_fragments@%%g
6992 /@language_hooks@/r $language_hooks
6993 s%@language_hooks@%%g
6998 cat >> $CONFIG_STATUS <<\EOF
7000 # Split the substitutions into bite-sized pieces for seds with
7001 # small command number limits, like on Digital OSF/1 and HP-UX.
7002 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7003 ac_file=1 # Number of current file.
7004 ac_beg=1 # First line for current file.
7005 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7008 while $ac_more_lines; do
7009 if test $ac_beg -gt 1; then
7010 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7012 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7014 if test ! -s conftest.s$ac_file; then
7016 rm -f conftest.s$ac_file
7018 if test -z "$ac_sed_cmds"; then
7019 ac_sed_cmds="sed -f conftest.s$ac_file"
7021 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7023 ac_file=`expr $ac_file + 1`
7025 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7028 if test -z "$ac_sed_cmds"; then
7033 cat >> $CONFIG_STATUS <<EOF
7035 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
7037 cat >> $CONFIG_STATUS <<\EOF
7038 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7041 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7042 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7043 *) ac_file_in="${ac_file}.in" ;;
7046 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7048 # Remove last slash and all that follows it. Not all systems have dirname.
7049 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7050 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7051 # The file is in a subdirectory.
7052 test ! -d "$ac_dir" && mkdir "$ac_dir"
7053 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7054 # A "../" for each directory in $ac_dir_suffix.
7055 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7057 ac_dir_suffix= ac_dots=
7060 case "$ac_given_srcdir" in
7062 if test -z "$ac_dots"; then top_srcdir=.
7063 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7064 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7066 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7067 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7071 echo creating "$ac_file"
7073 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7075 *Makefile*) ac_comsub="1i\\
7076 # $configure_input" ;;
7080 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7082 s%@configure_input@%$configure_input%g
7083 s%@srcdir@%$srcdir%g
7084 s%@top_srcdir@%$top_srcdir%g
7085 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7089 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7090 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7092 # ac_d sets the value in "#define NAME VALUE" lines.
7093 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7094 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7097 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7098 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7099 ac_uB='\([ ]\)%\1#\2define\3'
7102 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7103 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7104 ac_eB='$%\1#\2define\3'
7108 if test "${CONFIG_HEADERS+set}" != set; then
7110 cat >> $CONFIG_STATUS <<EOF
7111 CONFIG_HEADERS="auto-host.h:config.in"
7113 cat >> $CONFIG_STATUS <<\EOF
7115 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7118 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7119 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7120 *) ac_file_in="${ac_file}.in" ;;
7123 echo creating $ac_file
7125 rm -f conftest.frag conftest.in conftest.out
7126 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7127 cat $ac_file_inputs > conftest.in
7131 # Transform confdefs.h into a sed script conftest.vals that substitutes
7132 # the proper values into config.h.in to produce config.h. And first:
7133 # Protect against being on the right side of a sed subst in config.status.
7134 # Protect against being in an unquoted here document in config.status.
7136 cat > conftest.hdr <<\EOF
7139 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7143 sed -n -f conftest.hdr confdefs.h > conftest.vals
7146 # This sed command replaces #undef with comments. This is necessary, for
7147 # example, in the case of _POSIX_SOURCE, which is predefined and required
7148 # on some systems where configure will not decide to define it.
7149 cat >> conftest.vals <<\EOF
7150 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7153 # Break up conftest.vals because some shells have a limit on
7154 # the size of here documents, and old seds have small limits too.
7159 ac_lines=`grep -c . conftest.vals`
7160 # grep -c gives empty output for an empty file on some AIX systems.
7161 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7162 # Write a limited-size here document to conftest.frag.
7163 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7164 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7166 sed -f conftest.frag conftest.in > conftest.out
7168 mv conftest.out conftest.in
7170 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7172 mv conftest.tail conftest.vals
7176 cat >> $CONFIG_STATUS <<\EOF
7177 rm -f conftest.frag conftest.h
7178 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7179 cat conftest.in >> conftest.h
7181 if cmp -s $ac_file conftest.h 2>/dev/null; then
7182 echo "$ac_file is unchanged"
7185 # Remove last slash and all that follows it. Not all systems have dirname.
7186 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7187 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7188 # The file is in a subdirectory.
7189 test ! -d "$ac_dir" && mkdir "$ac_dir"
7192 mv conftest.h $ac_file
7198 cat >> $CONFIG_STATUS <<EOF
7199 ac_sources="$nls_cv_header_libgt"
7200 ac_dests="$nls_cv_header_intl"
7203 cat >> $CONFIG_STATUS <<\EOF
7204 srcdir=$ac_given_srcdir
7205 while test -n "$ac_sources"; do
7206 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7207 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7209 echo "linking $srcdir/$ac_source to $ac_dest"
7211 if test ! -r $srcdir/$ac_source; then
7212 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7216 # Make relative symlinks.
7217 # Remove last slash and all that follows it. Not all systems have dirname.
7218 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7219 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7220 # The dest file is in a subdirectory.
7221 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7222 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7223 # A "../" for each directory in $ac_dest_dir_suffix.
7224 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7226 ac_dest_dir_suffix= ac_dots=
7230 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7231 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7234 # Make a symlink if possible; otherwise try a hard link.
7235 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7236 ln $srcdir/$ac_source $ac_dest; then :
7238 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7242 cat >> $CONFIG_STATUS <<EOF
7248 target_alias='${target_alias}'
7250 subdirs='${subdirs}'
7251 symbolic_link='${symbolic_link}'
7252 program_transform_set='${program_transform_set}'
7253 program_transform_name='${program_transform_name}'
7254 dep_host_xmake_file='${dep_host_xmake_file}'
7255 host_xmake_file='${host_xmake_file}'
7256 dep_tmake_file='${dep_tmake_file}'
7257 tmake_file='${tmake_file}'
7258 thread_file='${thread_file}'
7259 gcc_config_arguments='${gcc_config_arguments}'
7260 gcc_version='${gcc_version}'
7261 gcc_version_full='${gcc_version_full}'
7262 gcc_version_trigger='${gcc_version_trigger}'
7263 local_prefix='${local_prefix}'
7264 build_install_headers_dir='${build_install_headers_dir}'
7265 build_exeext='${build_exeext}'
7266 host_exeext='${host_exeext}'
7267 out_file='${out_file}'
7268 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7269 SET_MAKE='${SET_MAKE}'
7270 target_list='${target_list}'
7271 target_overrides='${target_overrides}'
7272 host_overrides='${host_overrides}'
7273 cross_defines='${cross_defines}'
7274 cross_overrides='${cross_overrides}'
7275 build_overrides='${build_overrides}'
7276 cpp_install_dir='${cpp_install_dir}'
7279 cat >> $CONFIG_STATUS <<\EOF
7280 case "$CONFIG_FILES" in *po/Makefile.in*)
7281 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7284 case x$CONFIG_HEADERS in
7285 xauto-host.h:config.in)
7288 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
7289 # bootstrapping and the installation procedure can still use
7290 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
7291 # FLAGS_TO_PASS has been modified to solve the problem there.
7292 # This is virtually a duplicate of what happens in configure.lang; we do
7293 # an extra check to make sure this only happens if ln -s can be used.
7294 if test "$symbolic_link" = "ln -s"; then
7295 for d in .. ${subdirs} ; do
7296 if test $d != ..; then
7299 for t in stage1 stage2 stage3 stage4 include
7302 $symbolic_link ../$t $t 2>/dev/null
7308 # Avoid having to add intl to our include paths.
7309 if test -f intl/libintl.h; then
7310 echo creating libintl.h
7311 echo '#include "intl/libintl.h"' >libintl.h
7316 chmod +x $CONFIG_STATUS
7317 rm -fr confdefs* $ac_clean_files
7318 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1