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 whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1360 echo "configure:1361: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 save_CFLAGS="$CFLAGS"
1365 CFLAGS="-Wno-long-long"
1366 cat > conftest.$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1374 if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1376 ac_cv_prog_cc_no_long_long=yes
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1381 ac_cv_prog_cc_no_long_long=no
1384 CFLAGS="$save_CFLAGS"
1387 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1389 if test $ac_cv_prog_cc_no_long_long = yes; then
1390 strict1_warn="-pedantic -Wno-long-long"
1394 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1395 echo "configure:1396: checking how to run the C preprocessor" >&5
1396 # On Suns, sometimes $CPP names a directory.
1397 if test -n "$CPP" && test -d "$CPP"; then
1400 if test -z "$CPP"; then
1401 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 # This must be in double quotes, not single quotes, because CPP may get
1405 # substituted into the Makefile and "${CC-cc}" will confuse make.
1407 # On the NeXT, cc -E runs the code through the compiler's parser,
1408 # not just through cpp.
1409 cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1416 { (eval echo configure:1417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1418 if test -z "$ac_err"; then
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1425 CPP="${CC-cc} -E -traditional-cpp"
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1433 { (eval echo configure:1434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1435 if test -z "$ac_err"; then
1439 echo "configure: failed program was:" >&5
1440 cat conftest.$ac_ext >&5
1442 CPP="${CC-cc} -nologo -E"
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1450 { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1452 if test -z "$ac_err"; then
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1466 ac_cv_prog_CPP="$CPP"
1468 CPP="$ac_cv_prog_CPP"
1470 ac_cv_prog_CPP="$CPP"
1472 echo "$ac_t""$CPP" 1>&6
1474 echo $ac_n "checking for inline""... $ac_c" 1>&6
1475 echo "configure:1476: checking for inline" >&5
1476 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1480 for ac_kw in inline __inline__ __inline; do
1481 cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1489 if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1491 ac_cv_c_inline=$ac_kw; break
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1501 echo "$ac_t""$ac_cv_c_inline" 1>&6
1502 case "$ac_cv_c_inline" in
1504 no) cat >> confdefs.h <<\EOF
1508 *) cat >> confdefs.h <<EOF
1509 #define inline $ac_cv_c_inline
1514 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1515 echo "configure:1516: checking for volatile" >&5
1516 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1527 if { (eval echo configure:1528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1529 gcc_cv_c_volatile=yes
1531 echo "configure: failed program was:" >&5
1532 cat conftest.$ac_ext >&5
1534 gcc_cv_c_volatile=no
1539 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1540 if test $gcc_cv_c_volatile = yes ; then
1541 cat >> confdefs.h <<\EOF
1542 #define HAVE_VOLATILE 1
1548 echo $ac_n "checking for long double""... $ac_c" 1>&6
1549 echo "configure:1550: checking for long double" >&5
1550 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 if test "$GCC" = yes; then
1554 gcc_cv_c_long_double=yes
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1561 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1562 long double foo = 0.0;
1563 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1564 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1567 if { (eval echo configure:1568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1569 gcc_cv_c_long_double=yes
1571 echo "configure: failed program was:" >&5
1572 cat conftest.$ac_ext >&5
1574 gcc_cv_c_long_double=no
1580 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1581 if test $gcc_cv_c_long_double = yes; then
1582 cat >> confdefs.h <<\EOF
1583 #define HAVE_LONG_DOUBLE 1
1588 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1589 echo "configure:1590: checking for long long int" >&5
1590 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 cat > conftest.$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1601 if { (eval echo configure:1602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1603 ac_cv_c_long_long=yes
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1608 ac_cv_c_long_long=no
1613 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1614 if test $ac_cv_c_long_long = yes; then
1615 cat >> confdefs.h <<\EOF
1616 #define HAVE_LONG_LONG 1
1620 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1621 echo "configure:1622: checking for __int64" >&5
1622 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 cat > conftest.$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1633 if { (eval echo configure:1634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1645 echo "$ac_t""$ac_cv_c___int64" 1>&6
1646 if test $ac_cv_c___int64 = yes; then
1647 cat >> confdefs.h <<\EOF
1648 #define HAVE___INT64 1
1654 # sizeof(char) is 1 by definition.
1655 echo $ac_n "checking size of short""... $ac_c" 1>&6
1656 echo "configure:1657: checking size of short" >&5
1657 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1661 cat > conftest.$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1664 #include "confdefs.h"
1665 #include <sys/types.h>
1669 switch (0) case 0: case (sizeof (short) == $ac_size):;
1672 if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1674 ac_cv_sizeof_short=$ac_size
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1680 if test x$ac_cv_sizeof_short != x ; then break; fi
1685 if test x$ac_cv_sizeof_short = x ; then
1686 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1688 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1689 cat >> confdefs.h <<EOF
1690 #define SIZEOF_SHORT $ac_cv_sizeof_short
1694 echo $ac_n "checking size of int""... $ac_c" 1>&6
1695 echo "configure:1696: checking size of int" >&5
1696 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1700 cat > conftest.$ac_ext <<EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1703 #include "confdefs.h"
1704 #include <sys/types.h>
1708 switch (0) case 0: case (sizeof (int) == $ac_size):;
1711 if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1713 ac_cv_sizeof_int=$ac_size
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1719 if test x$ac_cv_sizeof_int != x ; then break; fi
1724 if test x$ac_cv_sizeof_int = x ; then
1725 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1727 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1728 cat >> confdefs.h <<EOF
1729 #define SIZEOF_INT $ac_cv_sizeof_int
1733 echo $ac_n "checking size of long""... $ac_c" 1>&6
1734 echo "configure:1735: checking size of long" >&5
1735 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1742 #include "confdefs.h"
1743 #include <sys/types.h>
1747 switch (0) case 0: case (sizeof (long) == $ac_size):;
1750 if { (eval echo configure:1751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1752 ac_cv_sizeof_long=$ac_size
1754 echo "configure: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1758 if test x$ac_cv_sizeof_long != x ; then break; fi
1763 if test x$ac_cv_sizeof_long = x ; then
1764 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1766 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1767 cat >> confdefs.h <<EOF
1768 #define SIZEOF_LONG $ac_cv_sizeof_long
1772 if test $ac_cv_c_long_long = yes; then
1773 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1774 echo "configure:1775: checking size of long long" >&5
1775 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1782 #include "confdefs.h"
1783 #include <sys/types.h>
1787 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1790 if { (eval echo configure:1791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1792 ac_cv_sizeof_long_long=$ac_size
1794 echo "configure: failed program was:" >&5
1795 cat conftest.$ac_ext >&5
1798 if test x$ac_cv_sizeof_long_long != x ; then break; fi
1803 if test x$ac_cv_sizeof_long_long = x ; then
1804 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1806 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1807 cat >> confdefs.h <<EOF
1808 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1813 if test $ac_cv_c___int64 = yes; then
1814 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1815 echo "configure:1816: checking size of __int64" >&5
1816 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 #include "confdefs.h"
1824 #include <sys/types.h>
1828 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
1831 if { (eval echo configure:1832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833 ac_cv_sizeof___int64=$ac_size
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1839 if test x$ac_cv_sizeof___int64 != x ; then break; fi
1844 if test x$ac_cv_sizeof___int64 = x ; then
1845 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1847 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1848 cat >> confdefs.h <<EOF
1849 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1855 echo $ac_n "checking execution character set""... $ac_c" 1>&6
1856 echo "configure:1857: checking execution character set" >&5
1857 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
1864 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
1868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1869 egrep "ASCII" >/dev/null 2>&1; then
1871 ac_cv_c_charset=ASCII
1875 if test x${ac_cv_c_charset+set} != xset; then
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
1880 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
1884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1885 egrep "EBCDIC" >/dev/null 2>&1; then
1887 ac_cv_c_charset=EBCDIC
1892 if test x${ac_cv_c_charset+set} != xset; then
1893 ac_cv_c_charset=unknown
1897 echo "$ac_t""$ac_cv_c_charset" 1>&6
1898 if test $ac_cv_c_charset = unknown; then
1899 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
1900 elif test $ac_cv_c_charset = EBCDIC; then
1901 cat >> confdefs.h <<\EOF
1902 #define HOST_EBCDIC 1
1907 # If the native compiler is GCC, we can enable warnings even in stage1.
1908 # That's useful for people building cross-compilers, or just running a
1911 if test "x$GCC" = "xyes"; then
1912 warn_cflags='$(GCC_WARN_CFLAGS)'
1916 # Stage specific cflags for build.
1920 if test x$GCC = xyes
1922 stage1_cflags="-Wa,-J"
1930 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1931 echo "configure:1932: checking whether ${MAKE-make} sets \${MAKE}" >&5
1932 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1933 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 cat > conftestmake <<\EOF
1938 @echo 'ac_maketemp="${MAKE}"'
1940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1941 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1942 if test -n "$ac_maketemp"; then
1943 eval ac_cv_prog_make_${ac_make}_set=yes
1945 eval ac_cv_prog_make_${ac_make}_set=no
1949 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1950 echo "$ac_t""yes" 1>&6
1953 echo "$ac_t""no" 1>&6
1954 SET_MAKE="MAKE=${MAKE-make}"
1958 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1959 echo "configure:1960: checking whether a default assembler was specified" >&5
1960 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1961 if test x"$gas_flag" = x"no"; then
1962 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1964 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1967 echo "$ac_t""no" 1>&6
1970 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether a default linker was specified" >&5
1972 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1973 if test x"$gnu_ld_flag" = x"no"; then
1974 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1976 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1979 echo "$ac_t""no" 1>&6
1982 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1983 echo "configure:1984: checking for GNU C library" >&5
1984 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 #include <features.h>
1993 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1994 #error Not a GNU C library system
1998 if { (eval echo configure:1999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2010 echo "$ac_t""$gcc_cv_glibc" 1>&6
2011 if test $gcc_cv_glibc = yes; then
2012 cat >> confdefs.h <<\EOF
2013 #define _GNU_SOURCE 1
2018 # Find some useful tools
2019 for ac_prog in mawk gawk nawk awk
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2024 echo "configure:2025: checking for $ac_word" >&5
2025 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 if test -n "$AWK"; then
2029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2033 for ac_dir in $ac_dummy; do
2034 test -z "$ac_dir" && ac_dir=.
2035 if test -f $ac_dir/$ac_word; then
2036 ac_cv_prog_AWK="$ac_prog"
2043 AWK="$ac_cv_prog_AWK"
2044 if test -n "$AWK"; then
2045 echo "$ac_t""$AWK" 1>&6
2047 echo "$ac_t""no" 1>&6
2050 test -n "$AWK" && break
2053 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2054 echo "configure:2055: checking whether ln works" >&5
2055 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 rm -f conftestdata_t
2059 echo >conftestdata_f
2060 if ln conftestdata_f conftestdata_t 2>/dev/null
2064 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2066 gcc_cv_prog_LN="ln -s"
2071 rm -f conftestdata_f conftestdata_t
2074 LN="$gcc_cv_prog_LN"
2075 if test "$gcc_cv_prog_LN" = "ln"; then
2076 echo "$ac_t""yes" 1>&6
2078 if test "$gcc_cv_prog_LN" = "ln -s"; then
2079 echo "$ac_t""no, using ln -s" 1>&6
2081 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2085 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2086 echo "configure:2087: checking whether ln -s works" >&5
2087 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 rm -f conftestdata_t
2091 echo >conftestdata_f
2092 if ln -s conftestdata_f conftestdata_t 2>/dev/null
2094 gcc_cv_prog_LN_S="ln -s"
2096 if ln conftestdata_f conftestdata_t 2>/dev/null
2103 rm -f conftestdata_f conftestdata_t
2106 LN_S="$gcc_cv_prog_LN_S"
2107 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2108 echo "$ac_t""yes" 1>&6
2110 if test "$gcc_cv_prog_LN_S" = "ln"; then
2111 echo "$ac_t""no, using ln" 1>&6
2113 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2117 # Extract the first word of "ranlib", so it can be a program name with args.
2118 set dummy ranlib; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 if test -n "$RANLIB"; then
2125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2129 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/$ac_word; then
2132 ac_cv_prog_RANLIB="ranlib"
2137 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2140 RANLIB="$ac_cv_prog_RANLIB"
2141 if test -n "$RANLIB"; then
2142 echo "$ac_t""$RANLIB" 1>&6
2144 echo "$ac_t""no" 1>&6
2147 # Find a good install program. We prefer a C program (faster),
2148 # so one script is as good as another. But avoid the broken or
2149 # incompatible versions:
2150 # SysV /etc/install, /usr/sbin/install
2151 # SunOS /usr/etc/install
2152 # IRIX /sbin/install
2154 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2155 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2156 # ./install, which can be erroneously created by make from ./install.sh.
2157 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2158 echo "configure:2159: checking for a BSD compatible install" >&5
2159 if test -z "$INSTALL"; then
2160 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2164 for ac_dir in $PATH; do
2165 # Account for people who put trailing slashes in PATH elements.
2167 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2169 # OSF1 and SCO ODT 3.0 have their own names for install.
2170 for ac_prog in ginstall scoinst install; do
2171 if test -f $ac_dir/$ac_prog; then
2172 if test $ac_prog = install &&
2173 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2174 # AIX install. It has an incompatible calling convention.
2175 # OSF/1 installbsd also uses dspmsg, but is usable.
2178 ac_cv_path_install="$ac_dir/$ac_prog -c"
2189 if test "${ac_cv_path_install+set}" = set; then
2190 INSTALL="$ac_cv_path_install"
2192 # As a last resort, use the slow shell script. We don't cache a
2193 # path for INSTALL within a source directory, because that will
2194 # break other packages using the cache if that directory is
2195 # removed, or if the path is relative.
2196 INSTALL="$ac_install_sh"
2199 echo "$ac_t""$INSTALL" 1>&6
2201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2202 # It thinks the first close brace ends the variable substitution.
2203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2205 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2208 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2209 echo "configure:2210: checking for ANSI C header files" >&5
2210 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 cat > conftest.$ac_ext <<EOF
2214 #line 2215 "configure"
2215 #include "confdefs.h"
2221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2222 { (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2224 if test -z "$ac_err"; then
2226 ac_cv_header_stdc=yes
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2232 ac_cv_header_stdc=no
2236 if test $ac_cv_header_stdc = yes; then
2237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2244 egrep "memchr" >/dev/null 2>&1; then
2248 ac_cv_header_stdc=no
2254 if test $ac_cv_header_stdc = yes; then
2255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2262 egrep "free" >/dev/null 2>&1; then
2266 ac_cv_header_stdc=no
2272 if test $ac_cv_header_stdc = yes; then
2273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2274 if test "$cross_compiling" = yes; then
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2281 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2282 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2284 int main () { int i; for (i = 0; i < 256; i++)
2285 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2289 if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 ac_cv_header_stdc=no
2304 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2305 if test $ac_cv_header_stdc = yes; then
2306 cat >> confdefs.h <<\EOF
2307 #define STDC_HEADERS 1
2312 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2313 echo "configure:2314: checking whether time.h and sys/time.h may both be included" >&5
2314 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2320 #include <sys/types.h>
2321 #include <sys/time.h>
2327 if { (eval echo configure:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2329 ac_cv_header_time=yes
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 ac_cv_header_time=no
2339 echo "$ac_t""$ac_cv_header_time" 1>&6
2340 if test $ac_cv_header_time = yes; then
2341 cat >> confdefs.h <<\EOF
2342 #define TIME_WITH_SYS_TIME 1
2347 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2348 echo "configure:2349: checking whether string.h and strings.h may both be included" >&5
2349 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2356 #include <strings.h>
2361 if { (eval echo configure:2362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2363 gcc_cv_header_string=yes
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2368 gcc_cv_header_string=no
2373 echo "$ac_t""$gcc_cv_header_string" 1>&6
2374 if test $gcc_cv_header_string = yes; then
2375 cat >> confdefs.h <<\EOF
2376 #define STRING_WITH_STRINGS 1
2381 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2382 echo "configure:2383: checking for sys/wait.h that is POSIX.1 compatible" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <sys/types.h>
2390 #include <sys/wait.h>
2392 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2395 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2400 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2403 if { (eval echo configure:2404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2405 ac_cv_header_sys_wait_h=yes
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2410 ac_cv_header_sys_wait_h=no
2415 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2416 if test $ac_cv_header_sys_wait_h = yes; then
2417 cat >> confdefs.h <<\EOF
2418 #define HAVE_SYS_WAIT_H 1
2423 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2424 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2425 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2426 direct.h malloc.h langinfo.h iconv.h stdbool.h
2428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_hdr" >&5
2431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2440 { (eval echo configure:2441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2442 if test -z "$ac_err"; then
2444 eval "ac_cv_header_$ac_safe=yes"
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2450 eval "ac_cv_header_$ac_safe=no"
2454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2455 echo "$ac_t""yes" 1>&6
2456 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2457 cat >> confdefs.h <<EOF
2458 #define $ac_tr_hdr 1
2462 echo "$ac_t""no" 1>&6
2467 # Check for thread headers.
2468 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2469 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2470 echo "configure:2471: checking for thread.h" >&5
2471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2480 { (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482 if test -z "$ac_err"; then
2484 eval "ac_cv_header_$ac_safe=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 eval "ac_cv_header_$ac_safe=no"
2494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2498 echo "$ac_t""no" 1>&6
2502 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2504 echo "configure:2505: checking for pthread.h" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <pthread.h>
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2532 echo "$ac_t""no" 1>&6
2537 # These tests can't be done till we know if we have limits.h.
2538 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2539 echo "configure:2540: checking for CHAR_BIT" >&5
2540 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #ifdef HAVE_LIMITS_H
2553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2554 egrep "found" >/dev/null 2>&1; then
2556 gcc_cv_decl_char_bit=yes
2559 gcc_cv_decl_char_bit=no
2566 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2567 if test $gcc_cv_decl_char_bit = no; then
2568 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2569 echo "configure:2570: checking number of bits in a byte" >&5
2570 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 while test $i -lt 65; do
2576 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2581 switch(0) { case 0: case (char)(1 << $i) && (char)(1 << $i) != 1: ; }
2584 if { (eval echo configure:2585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2589 echo "configure: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2595 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
2599 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2600 if test $gcc_cv_c_nbby = failed; then
2601 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2603 cat >> confdefs.h <<EOF
2604 #define CHAR_BIT $gcc_cv_c_nbby
2609 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2610 echo "configure:2611: checking byte ordering" >&5
2611 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 ac_cv_c_compile_endian=unknown
2617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2621 cross_compiling=$ac_cv_prog_cc_cross
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2627 #ifdef HAVE_LIMITS_H
2628 # include <limits.h>
2630 /* This structure must have no internal padding. */
2632 char prefix[sizeof "\nendian:" - 1];
2637 #if SIZEOF_SHORT == 4
2638 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2640 ('A' << CHAR_BIT) | 'B',
2644 if { (eval echo configure:2645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2646 sed 's/^[0-7]*[ ]*/ /
2649 s/ [0-9][0-9][0-9]/./g
2655 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
2656 ac_cv_c_compile_endian=big-endian
2657 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
2658 ac_cv_c_compile_endian=little-endian
2663 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2666 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2667 cross_compiling=$ac_cv_prog_cc_cross
2672 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2673 if test $ac_cv_c_compile_endian = unknown; then
2674 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2675 elif test $ac_cv_c_compile_endian = big-endian; then
2676 cat >> confdefs.h <<\EOF
2677 #define HOST_WORDS_BIG_ENDIAN 1
2682 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2683 echo "configure:2684: checking floating point format" >&5
2684 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2689 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2692 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2693 cross_compiling=$ac_cv_prog_cc_cross
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 /* This will not work unless sizeof(double) == 8. */
2699 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2701 /* This structure must have no internal padding. */
2702 struct possibility {
2708 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2709 struct possibility table [] =
2711 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2712 C( 3.53802595280598432000e+18), /* D__float - VAX */
2713 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2714 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2715 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2718 if { (eval echo configure:2719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2720 sed 's/^[0-7]*[ ]*/ /
2723 s/ [0-9][0-9][0-9]/./g
2729 if grep 'format:.@IEEEF.:tamrof' conftest.dmp >/dev/null 2>&1; then
2730 ac_cv_c_float_format='IEEE (big-endian)'
2731 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp >/dev/null 2>&1; then
2732 ac_cv_c_float_format='IEEE (big-endian)'
2733 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp >/dev/null 2>&1; then
2734 ac_cv_c_float_format='IEEE (little-endian)'
2735 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp >/dev/null 2>&1; then
2736 ac_cv_c_float_format='IEEE (little-endian)'
2737 elif grep 'format:.__floa.:tamrof' conftest.dmp >/dev/null 2>&1; then
2738 ac_cv_c_float_format='VAX D-float'
2739 elif grep 'format:..PDP-1.:tamrof' conftest.dmp >/dev/null 2>&1; then
2740 ac_cv_c_float_format='PDP-10'
2741 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp >/dev/null 2>&1; then
2742 ac_cv_c_float_format='IBM 370 hex'
2744 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
2747 { echo "configure: error: compile failed" 1>&2; exit 1; }
2751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2754 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2755 cross_compiling=$ac_cv_prog_cc_cross
2760 echo "$ac_t""$ac_cv_c_float_format" 1>&6
2761 # IEEE is the default format. If the float endianness isn't the same
2762 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
2763 # (which is a tristate: yes, no, default). This is only an issue with
2764 # IEEE; the other formats are only supported by a few machines each,
2765 # all with the same endianness.
2768 case $ac_cv_c_float_format in
2769 'IEEE (big-endian)' )
2770 if test $ac_cv_c_compile_endian = little-endian; then
2774 'IEEE (little-endian)' )
2775 if test $ac_cv_c_compile_endian = big-endian; then
2780 format=VAX_FLOAT_FORMAT
2783 format=PDP10_FLOAT_FORMAT
2786 format=IBM_FLOAT_FORMAT
2789 if test -n "$format"; then
2790 cat >> confdefs.h <<EOF
2791 #define HOST_FLOAT_FORMAT $format
2795 if test -n "$fbigend"; then
2796 cat >> confdefs.h <<EOF
2797 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
2803 # See if GNAT has been installed
2804 # Extract the first word of "gnatbind", so it can be a program name with args.
2805 set dummy gnatbind; ac_word=$2
2806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2807 echo "configure:2808: checking for $ac_word" >&5
2808 if eval "test \"`echo '$''{'ac_cv_prog_have_gnat'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 if test -n "$have_gnat"; then
2812 ac_cv_prog_have_gnat="$have_gnat" # Let the user override the test.
2814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2816 for ac_dir in $ac_dummy; do
2817 test -z "$ac_dir" && ac_dir=.
2818 if test -f $ac_dir/$ac_word; then
2819 ac_cv_prog_have_gnat="yes"
2824 test -z "$ac_cv_prog_have_gnat" && ac_cv_prog_have_gnat="no"
2827 have_gnat="$ac_cv_prog_have_gnat"
2828 if test -n "$have_gnat"; then
2829 echo "$ac_t""$have_gnat" 1>&6
2831 echo "$ac_t""no" 1>&6
2835 # See if we have the mktemp command.
2836 # Extract the first word of "mktemp", so it can be a program name with args.
2837 set dummy mktemp; ac_word=$2
2838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2839 echo "configure:2840: checking for $ac_word" >&5
2840 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 if test -n "$have_mktemp_command"; then
2844 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
2846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2848 for ac_dir in $ac_dummy; do
2849 test -z "$ac_dir" && ac_dir=.
2850 if test -f $ac_dir/$ac_word; then
2851 ac_cv_prog_have_mktemp_command="yes"
2856 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
2859 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
2860 if test -n "$have_mktemp_command"; then
2861 echo "$ac_t""$have_mktemp_command" 1>&6
2863 echo "$ac_t""no" 1>&6
2867 # Do we have a single-tree copy of texinfo?
2868 if test -f $srcdir/../texinfo/Makefile.in; then
2869 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2870 gcc_cv_prog_makeinfo_modern=yes
2871 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2873 # See if makeinfo has been installed and is modern enough
2874 # that we can use it.
2875 # Extract the first word of "makeinfo", so it can be a program name with args.
2876 set dummy makeinfo; ac_word=$2
2877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_word" >&5
2879 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 if test -n "$MAKEINFO"; then
2883 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2887 for ac_dir in $ac_dummy; do
2888 test -z "$ac_dir" && ac_dir=.
2889 if test -f $ac_dir/$ac_word; then
2890 ac_cv_prog_MAKEINFO="makeinfo"
2897 MAKEINFO="$ac_cv_prog_MAKEINFO"
2898 if test -n "$MAKEINFO"; then
2899 echo "$ac_t""$MAKEINFO" 1>&6
2901 echo "$ac_t""no" 1>&6
2904 if test -n "$MAKEINFO"; then
2905 # Found it, now check the version.
2906 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2907 echo "configure:2908: checking for modern makeinfo" >&5
2908 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 ac_prog_version=`$MAKEINFO --version 2>&1 |
2912 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2913 echo "configure:2914: version of makeinfo is $ac_prog_version" >&5
2914 case $ac_prog_version in
2915 '') gcc_cv_prog_makeinfo_modern=no;;
2917 gcc_cv_prog_makeinfo_modern=yes;;
2918 *) gcc_cv_prog_makeinfo_modern=no;;
2923 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2925 gcc_cv_prog_makeinfo_modern=no
2930 if test $gcc_cv_prog_makeinfo_modern = no; then
2931 echo "configure: warning:
2932 *** Makeinfo is missing or too old.
2933 *** Info documentation will not be built." 1>&2
2939 # Is pod2man recent enough to regenerate manpages?
2940 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
2941 echo "configure:2942: checking for recent Pod::Man" >&5
2942 if perl -e 'use 1.10 Pod::Man' >/dev/null 2>&1; then
2943 echo "$ac_t""yes" 1>&6
2944 GENERATED_MANPAGES=generated-manpages
2946 echo "$ac_t""no" 1>&6
2951 if test -f $srcdir/../flex/skel.c; then
2952 FLEX='$(objdir)/../flex/flex'
2954 # Extract the first word of "flex", so it can be a program name with args.
2955 set dummy flex; ac_word=$2
2956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_word" >&5
2958 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 if test -n "$FLEX"; then
2962 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2966 for ac_dir in $ac_dummy; do
2967 test -z "$ac_dir" && ac_dir=.
2968 if test -f $ac_dir/$ac_word; then
2969 ac_cv_prog_FLEX="flex"
2974 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
2977 FLEX="$ac_cv_prog_FLEX"
2978 if test -n "$FLEX"; then
2979 echo "$ac_t""$FLEX" 1>&6
2981 echo "$ac_t""no" 1>&6
2987 # The -L switch is so bison can find its skeleton file.
2988 if test -f $srcdir/../bison/bison.simple; then
2989 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2991 # Extract the first word of "bison", so it can be a program name with args.
2992 set dummy bison; ac_word=$2
2993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_word" >&5
2995 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 if test -n "$BISON"; then
2999 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3003 for ac_dir in $ac_dummy; do
3004 test -z "$ac_dir" && ac_dir=.
3005 if test -f $ac_dir/$ac_word; then
3006 ac_cv_prog_BISON="bison"
3011 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
3014 BISON="$ac_cv_prog_BISON"
3015 if test -n "$BISON"; then
3016 echo "$ac_t""$BISON" 1>&6
3018 echo "$ac_t""no" 1>&6
3023 # See if the stage1 system preprocessor understands the ANSI C
3024 # preprocessor stringification operator. (Used by symcat.h.)
3027 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3028 echo "configure:3029: checking for preprocessor stringizing operator" >&5
3029 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3038 char *s = x(teststring);
3041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3042 egrep "#teststring" >/dev/null 2>&1; then
3044 ac_cv_c_stringize=no
3047 ac_cv_c_stringize=yes
3053 if test "${ac_cv_c_stringize}" = yes
3055 cat >> confdefs.h <<\EOF
3056 #define HAVE_STRINGIZE 1
3060 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3063 # Use <inttypes.h> only if it exists,
3064 # doesn't clash with <sys/types.h>, and declares intmax_t.
3065 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3066 echo "configure:3067: checking for inttypes.h" >&5
3067 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 #include <sys/types.h>
3074 #include <inttypes.h>
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 gcc_cv_header_inttypes_h=yes
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3086 gcc_cv_header_inttypes_h=no
3091 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3092 if test $gcc_cv_header_inttypes_h = yes; then
3093 cat >> confdefs.h <<\EOF
3094 #define HAVE_INTTYPES_H 1
3100 for ac_func in strtoul bsearch putenv popen \
3101 strchr strrchr kill getrlimit setrlimit atoll atoq \
3102 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
3103 fputs_unlocked getrusage iconv nl_langinfo
3105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3106 echo "configure:3107: checking for $ac_func" >&5
3107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3113 /* System header to define __stub macros and hopefully few prototypes,
3114 which can conflict with char $ac_func(); below. */
3116 /* Override any gcc2 internal prototype to avoid an error. */
3117 /* We use char because int might match the return type of a gcc2
3118 builtin and then its argument prototype would still apply. */
3123 /* The GNU C library defines this for functions which it implements
3124 to always fail with ENOSYS. Some functions are actually named
3125 something starting with __ and the normal name is an alias. */
3126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3134 if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3136 eval "ac_cv_func_$ac_func=yes"
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 eval "ac_cv_func_$ac_func=no"
3146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3149 cat >> confdefs.h <<EOF
3150 #define $ac_tr_func 1
3154 echo "$ac_t""no" 1>&6
3159 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3160 echo "configure:3161: checking for ssize_t" >&5
3161 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 #include <sys/types.h>
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3176 ac_cv_type_ssize_t=yes
3179 ac_cv_type_ssize_t=no
3184 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3185 if test $ac_cv_type_ssize_t = no; then
3186 cat >> confdefs.h <<\EOF
3193 # Try to determine the array type of the second argument of getgroups
3194 # for the target system (int or gid_t).
3195 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3196 echo "configure:3197: checking for uid_t in sys/types.h" >&5
3197 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 #include <sys/types.h>
3205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3206 egrep "uid_t" >/dev/null 2>&1; then
3208 ac_cv_type_uid_t=yes
3217 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3218 if test $ac_cv_type_uid_t = no; then
3219 cat >> confdefs.h <<\EOF
3223 cat >> confdefs.h <<\EOF
3229 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3230 echo "configure:3231: checking type of array argument to getgroups" >&5
3231 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 if test "$cross_compiling" = yes; then
3235 ac_cv_type_getgroups=cross
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3241 /* Thanks to Mike Rendell for this test. */
3242 #include <sys/types.h>
3245 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3250 union { gid_t gval; long lval; } val;
3253 for (i = 0; i < NGID; i++)
3254 gidset[i] = val.gval;
3255 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3257 /* Exit non-zero if getgroups seems to require an array of ints. This
3258 happens when gid_t is short but getgroups modifies an array of ints. */
3259 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3265 ac_cv_type_getgroups=gid_t
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3270 ac_cv_type_getgroups=int
3275 if test $ac_cv_type_getgroups = cross; then
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3282 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
3284 ac_cv_type_getgroups=gid_t
3287 ac_cv_type_getgroups=int
3294 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3295 cat >> confdefs.h <<EOF
3296 #define GETGROUPS_T $ac_cv_type_getgroups
3300 if test "${target}" = "${build}"; then
3301 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
3304 # This condition may need some tweaking. It should include all
3305 # targets where the array type of the second argument of getgroups
3306 # is int and the type of gid_t is not equivalent to int.
3307 *-*-sunos* | *-*-ultrix*)
3308 TARGET_GETGROUPS_T=int
3311 TARGET_GETGROUPS_T=gid_t
3317 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3318 echo "configure:3319: checking for vprintf" >&5
3319 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 /* System header to define __stub macros and hopefully few prototypes,
3326 which can conflict with char vprintf(); below. */
3328 /* Override any gcc2 internal prototype to avoid an error. */
3329 /* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3335 /* The GNU C library defines this for functions which it implements
3336 to always fail with ENOSYS. Some functions are actually named
3337 something starting with __ and the normal name is an alias. */
3338 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3348 eval "ac_cv_func_vprintf=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 eval "ac_cv_func_vprintf=no"
3358 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3360 cat >> confdefs.h <<\EOF
3361 #define HAVE_VPRINTF 1
3365 echo "$ac_t""no" 1>&6
3368 if test "$ac_cv_func_vprintf" != yes; then
3369 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3370 echo "configure:3371: checking for _doprnt" >&5
3371 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 /* System header to define __stub macros and hopefully few prototypes,
3378 which can conflict with char _doprnt(); below. */
3380 /* Override any gcc2 internal prototype to avoid an error. */
3381 /* We use char because int might match the return type of a gcc2
3382 builtin and then its argument prototype would still apply. */
3387 /* The GNU C library defines this for functions which it implements
3388 to always fail with ENOSYS. Some functions are actually named
3389 something starting with __ and the normal name is an alias. */
3390 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3398 if { (eval echo configure:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3400 eval "ac_cv_func__doprnt=yes"
3402 echo "configure: failed program was:" >&5
3403 cat conftest.$ac_ext >&5
3405 eval "ac_cv_func__doprnt=no"
3410 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 cat >> confdefs.h <<\EOF
3413 #define HAVE_DOPRNT 1
3417 echo "$ac_t""no" 1>&6
3424 if test $ac_cv_func_vprintf != yes ; then
3426 if test $ac_cv_func__doprnt != yes ; then
3433 for ac_func in strstr
3435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3436 echo "configure:3437: checking for $ac_func" >&5
3437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 /* System header to define __stub macros and hopefully few prototypes,
3444 which can conflict with char $ac_func(); below. */
3446 /* Override any gcc2 internal prototype to avoid an error. */
3447 /* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
3453 /* The GNU C library defines this for functions which it implements
3454 to always fail with ENOSYS. Some functions are actually named
3455 something starting with __ and the normal name is an alias. */
3456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3464 if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3466 eval "ac_cv_func_$ac_func=yes"
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3471 eval "ac_cv_func_$ac_func=no"
3476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3479 cat >> confdefs.h <<EOF
3480 #define $ac_tr_func 1
3484 echo "$ac_t""no" 1>&6
3490 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3491 echo "configure:3492: checking whether the printf functions support %p" >&5
3492 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 if test "$cross_compiling" = yes; then
3496 gcc_cv_func_printf_ptr=no
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3506 char *p = buf, *q = NULL;
3507 sprintf(buf, "%p", p);
3508 sscanf(buf, "%p", &q);
3512 if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3514 gcc_cv_func_printf_ptr=yes
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3519 gcc_cv_func_printf_ptr=no
3524 rm -f core core.* *.core
3527 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3528 if test $gcc_cv_func_printf_ptr = yes ; then
3529 cat >> confdefs.h <<\EOF
3530 #define HAVE_PRINTF_PTR 1
3538 { echo "configure: error:
3539 *** UWIN may not be used as a host platform because
3540 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3543 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3544 echo "configure:3545: checking for pid_t" >&5
3545 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <sys/types.h>
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3560 ac_cv_type_pid_t=yes
3568 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3569 if test $ac_cv_type_pid_t = no; then
3570 cat >> confdefs.h <<\EOF
3576 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3577 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3578 echo "configure:3579: checking for vfork.h" >&5
3579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3588 { (eval echo configure:3589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3590 if test -z "$ac_err"; then
3592 eval "ac_cv_header_$ac_safe=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3598 eval "ac_cv_header_$ac_safe=no"
3602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 cat >> confdefs.h <<\EOF
3605 #define HAVE_VFORK_H 1
3609 echo "$ac_t""no" 1>&6
3612 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3613 echo "configure:3614: checking for working vfork" >&5
3614 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 if test "$cross_compiling" = yes; then
3618 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3619 echo "configure:3620: checking for vfork" >&5
3620 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char vfork(); below. */
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_vfork) || defined (__stub___vfork)
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3649 eval "ac_cv_func_vfork=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3654 eval "ac_cv_func_vfork=no"
3659 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3663 echo "$ac_t""no" 1>&6
3666 ac_cv_func_vfork_works=$ac_cv_func_vfork
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 /* Thanks to Paul Eggert for this test. */
3673 #include <sys/types.h>
3674 #include <sys/stat.h>
3675 #ifdef HAVE_UNISTD_H
3681 /* On some sparc systems, changes by the child to local and incoming
3682 argument registers are propagated back to the parent.
3683 The compiler is told about this with #include <vfork.h>,
3684 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3685 Test for this by using a static variable whose address
3686 is put into a register that is clobbered by the vfork. */
3689 sparc_address_test (int arg)
3691 sparc_address_test (arg) int arg;
3709 pid_t parent = getpid ();
3712 sparc_address_test ();
3717 /* Here is another test for sparc vfork register problems.
3718 This test uses lots of local variables, at least
3719 as many local variables as main has allocated so far
3720 including compiler temporaries. 4 locals are enough for
3721 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3722 A buggy compiler should reuse the register of parent
3723 for one of the local variables, since it will think that
3724 parent can't possibly be used any more in this routine.
3725 Assigning to the local variable will thus munge parent
3726 in the parent process. */
3728 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3729 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3730 /* Convince the compiler that p..p7 are live; otherwise, it might
3731 use the same hardware register for all 8 local variables. */
3732 if (p != p1 || p != p2 || p != p3 || p != p4
3733 || p != p5 || p != p6 || p != p7)
3736 /* On some systems (e.g. IRIX 3.3),
3737 vfork doesn't separate parent from child file descriptors.
3738 If the child closes a descriptor before it execs or exits,
3739 this munges the parent's descriptor as well.
3740 Test for this by closing stdout in the child. */
3741 _exit(close(fileno(stdout)) != 0);
3746 while (wait(&status) != child)
3749 /* Was there some problem with vforking? */
3752 /* Did the child fail? (This shouldn't happen.) */
3755 /* Did the vfork/compiler bug occur? */
3756 || parent != getpid()
3758 /* Did the file descriptor bug occur? */
3759 || fstat(fileno(stdout), &st) != 0
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3766 ac_cv_func_vfork_works=yes
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 ac_cv_func_vfork_works=no
3778 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3779 if test $ac_cv_func_vfork_works = no; then
3780 cat >> confdefs.h <<\EOF
3786 for ac_func in getpagesize
3788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3789 echo "configure:3790: checking for $ac_func" >&5
3790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 /* System header to define __stub macros and hopefully few prototypes,
3797 which can conflict with char $ac_func(); below. */
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3806 /* The GNU C library defines this for functions which it implements
3807 to always fail with ENOSYS. Some functions are actually named
3808 something starting with __ and the normal name is an alias. */
3809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817 if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 eval "ac_cv_func_$ac_func=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_func_$ac_func=no"
3829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3832 cat >> confdefs.h <<EOF
3833 #define $ac_tr_func 1
3837 echo "$ac_t""no" 1>&6
3841 # The test program for the next two tests is the same except for one
3843 cat >ct-mmap.inc <<'EOF'
3844 #include <sys/types.h>
3845 #include <sys/mman.h>
3851 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3852 # define MAP_ANONYMOUS MAP_ANON
3855 /* This mess was copied from the GNU getpagesize.h. */
3856 #ifndef HAVE_GETPAGESIZE
3857 # ifdef HAVE_UNISTD_H
3858 # include <unistd.h>
3861 /* Assume that all systems that can run configure have sys/param.h. */
3862 # ifndef HAVE_SYS_PARAM_H
3863 # define HAVE_SYS_PARAM_H 1
3866 # ifdef _SC_PAGESIZE
3867 # define getpagesize() sysconf(_SC_PAGESIZE)
3868 # else /* no _SC_PAGESIZE */
3869 # ifdef HAVE_SYS_PARAM_H
3870 # include <sys/param.h>
3871 # ifdef EXEC_PAGESIZE
3872 # define getpagesize() EXEC_PAGESIZE
3873 # else /* no EXEC_PAGESIZE */
3875 # define getpagesize() NBPG * CLSIZE
3878 # endif /* no CLSIZE */
3879 # else /* no NBPG */
3881 # define getpagesize() NBPC
3882 # else /* no NBPC */
3884 # define getpagesize() PAGESIZE
3885 # endif /* PAGESIZE */
3886 # endif /* no NBPC */
3887 # endif /* no NBPG */
3888 # endif /* no EXEC_PAGESIZE */
3889 # else /* no HAVE_SYS_PARAM_H */
3890 # define getpagesize() 8192 /* punt totally */
3891 # endif /* no HAVE_SYS_PARAM_H */
3892 # endif /* no _SC_PAGESIZE */
3894 #endif /* no HAVE_GETPAGESIZE */
3897 # define MAP_FAILED -1
3901 #define perror_exit(str, val) \
3902 do { perror(str); exit(val); } while (0)
3904 /* Some versions of cygwin mmap require that munmap is called with the
3905 same parameters as mmap. GCC expects that this is not the case.
3906 Test for various forms of this problem. Warning - icky signal games. */
3908 static sigset_t unblock_sigsegv;
3918 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3919 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
3921 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3922 MAP_PRIVATE, devzero, 0);
3930 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
3934 /* Basic functionality test. */
3938 char *x = anonmap (pg);
3939 if (x == (char *) MAP_FAILED)
3940 perror_exit("test 0 mmap", 2);
3944 if (munmap(x, pg) < 0)
3945 perror_exit("test 0 munmap", 3);
3948 /* 1. If we map a 2-page region and unmap its second page, the first page
3953 char *x = anonmap (pg * 2);
3954 if (x == (char *)MAP_FAILED)
3955 perror_exit ("test 1 mmap", 4);
3957 signal (SIGSEGV, sigsegv);
3959 perror_exit ("test 1 fault", 5);
3964 if (munmap (x + pg, pg) < 0)
3965 perror_exit ("test 1 munmap 1", 6);
3968 if (setjmp (r) == 0)
3971 perror_exit ("test 1 no fault", 7);
3973 if (munmap (x, pg) < 0)
3974 perror_exit ("test 1 munmap 2", 8);
3977 /* 2. If we map a 2-page region and unmap its first page, the second
3978 page must remain. */
3982 char *x = anonmap (pg * 2);
3983 if (x == (char *)MAP_FAILED)
3984 perror_exit ("test 2 mmap", 9);
3986 signal (SIGSEGV, sigsegv);
3988 perror_exit ("test 2 fault", 10);
3993 if (munmap (x, pg) < 0)
3994 perror_exit ("test 2 munmap 1", 11);
3998 if (setjmp (r) == 0)
4001 perror_exit ("test 2 no fault", 12);
4004 if (munmap (x+pg, pg) < 0)
4005 perror_exit ("test 2 munmap 2", 13);
4008 /* 3. If we map two adjacent 1-page regions and unmap them both with
4009 one munmap, both must go away.
4011 Getting two adjacent 1-page regions with two mmap calls is slightly
4012 tricky. All OS's tested skip over already-allocated blocks; therefore
4013 we have been careful to unmap all allocated regions in previous tests.
4014 HP/UX allocates pages backward in memory. No OS has yet been observed
4015 to be so perverse as to leave unmapped space between consecutive calls
4024 if (x == (char *)MAP_FAILED)
4025 perror_exit ("test 3 mmap 1", 14);
4027 if (y == (char *)MAP_FAILED)
4028 perror_exit ("test 3 mmap 2", 15);
4033 z = y, y = x, x = z;
4036 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4037 (unsigned long)x, (unsigned long)y);
4042 signal (SIGSEGV, sigsegv);
4044 perror_exit ("test 3 fault", 17);
4049 if (munmap (x, pg*2) < 0)
4050 perror_exit ("test 3 munmap", 18);
4052 if (setjmp (r) == 0)
4055 perror_exit ("test 3 no fault 1", 19);
4058 signal (SIGSEGV, sigsegv);
4059 if (setjmp (r) == 0)
4062 perror_exit ("test 3 no fault 2", 20);
4069 sigemptyset (&unblock_sigsegv);
4070 sigaddset (&unblock_sigsegv, SIGSEGV);
4071 pg = getpagesize ();
4072 #ifndef USE_MAP_ANON
4073 devzero = open ("/dev/zero", O_RDWR);
4075 perror_exit ("open /dev/zero", 1);
4087 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4088 echo "configure:4089: checking for working mmap from /dev/zero" >&5
4089 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 if test "$cross_compiling" = yes; then
4093 # If this is not cygwin, and /dev/zero is a character device, it's probably
4094 # safe to assume it works.
4096 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
4097 * ) if test -c /dev/zero
4098 then ac_cv_func_mmap_dev_zero=yes
4099 else ac_cv_func_mmap_dev_zero=no
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4106 #include "ct-mmap.inc"
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4110 ac_cv_func_mmap_dev_zero=yes
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4116 then ac_cv_func_mmap_dev_zero=no
4117 else ac_cv_func_mmap_dev_zero=buggy
4126 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4127 if test $ac_cv_func_mmap_dev_zero = yes; then
4128 cat >> confdefs.h <<\EOF
4129 #define HAVE_MMAP_DEV_ZERO 1
4134 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4135 echo "configure:4136: checking for working mmap with MAP_ANON(YMOUS)" >&5
4136 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 if test "$cross_compiling" = yes; then
4140 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4141 # just because it's there. Some SCO Un*xen define it but don't implement it.
4142 ac_cv_func_mmap_anon=no
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4147 #define USE_MAP_ANON
4148 #include "ct-mmap.inc"
4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4152 ac_cv_func_mmap_anon=yes
4154 echo "configure: failed program was:" >&5
4155 cat conftest.$ac_ext >&5
4158 then ac_cv_func_mmap_anon=no
4159 else ac_cv_func_mmap_anon=buggy
4168 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4169 if test $ac_cv_func_mmap_anon = yes; then
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_MMAP_ANON 1
4177 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4178 echo "configure:4179: checking for working mmap of a file" >&5
4179 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 # Create a file one thousand bytes long.
4183 for i in 1 2 3 4 5 6 7 8 9 0
4184 do for j in 1 2 3 4 5 6 7 8 9 0
4187 done > conftestdata$$
4189 if test "$cross_compiling" = yes; then
4190 ac_cv_func_mmap_file=no
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4196 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4197 Richard Henderson and Alexandre Oliva.
4198 Check whether read-only mmap of a plain file works. */
4199 #include <sys/types.h>
4200 #include <sys/stat.h>
4202 #include <sys/mman.h>
4210 fd = open("conftestdata$$", O_RDONLY);
4214 if (fstat (fd, &st))
4217 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4218 if (x == (char *) -1)
4221 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4224 if (munmap(x, st.st_size) < 0)
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4232 ac_cv_func_mmap_file=yes
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4237 ac_cv_func_mmap_file=no
4244 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4245 if test $ac_cv_func_mmap_file = yes; then
4246 cat >> confdefs.h <<\EOF
4247 #define HAVE_MMAP_FILE 1
4253 # We will need to find libiberty.h and ansidecl.h
4254 saved_CFLAGS="$CFLAGS"
4255 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4256 for ac_func in getenv atol sbrk abort atof getcwd getwd \
4257 strsignal putc_unlocked fputs_unlocked strstr environ \
4258 malloc realloc calloc free basename getopt
4260 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4261 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4262 echo "configure:4263: checking whether $ac_func is declared" >&5
4263 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4270 #define $ac_tr_decl 1
4272 #include "gansidecl.h"
4277 char *(*pfn) = (char *(*)) $ac_func ;
4281 if { (eval echo configure:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4283 eval "gcc_cv_have_decl_$ac_func=yes"
4285 echo "configure: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4288 eval "gcc_cv_have_decl_$ac_func=no"
4293 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4294 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4295 #define $ac_tr_decl 1
4299 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4300 #define $ac_tr_decl 0
4306 if test x = y ; then
4307 cat >> confdefs.h <<EOF
4308 #define HAVE_DECL_GETENV 1
4310 cat >> confdefs.h <<EOF
4311 #define HAVE_DECL_ATOL 1
4313 cat >> confdefs.h <<EOF
4314 #define HAVE_DECL_SBRK 1
4316 cat >> confdefs.h <<EOF
4317 #define HAVE_DECL_ABORT 1
4319 cat >> confdefs.h <<EOF
4320 #define HAVE_DECL_ATOF 1
4322 cat >> confdefs.h <<EOF
4323 #define HAVE_DECL_GETCWD 1
4325 cat >> confdefs.h <<EOF
4326 #define HAVE_DECL_GETWD 1
4329 cat >> confdefs.h <<EOF
4330 #define HAVE_DECL_STRSIGNAL 1
4332 cat >> confdefs.h <<EOF
4333 #define HAVE_DECL_PUTC_UNLOCKED 1
4335 cat >> confdefs.h <<EOF
4336 #define HAVE_DECL_FPUTS_UNLOCKED 1
4338 cat >> confdefs.h <<EOF
4339 #define HAVE_DECL_STRSTR 1
4341 cat >> confdefs.h <<EOF
4342 #define HAVE_DECL_ENVIRON 1
4345 cat >> confdefs.h <<EOF
4346 #define HAVE_DECL_MALLOC 1
4348 cat >> confdefs.h <<EOF
4349 #define HAVE_DECL_REALLOC 1
4351 cat >> confdefs.h <<EOF
4352 #define HAVE_DECL_CALLOC 1
4354 cat >> confdefs.h <<EOF
4355 #define HAVE_DECL_FREE 1
4357 cat >> confdefs.h <<EOF
4358 #define HAVE_DECL_BASENAME 1
4360 cat >> confdefs.h <<EOF
4361 #define HAVE_DECL_GETOPT 1
4366 for ac_func in getrlimit setrlimit getrusage
4368 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4369 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4370 echo "configure:4371: checking whether $ac_func is declared" >&5
4371 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4378 #define $ac_tr_decl 1
4380 #include "gansidecl.h"
4382 #ifdef HAVE_SYS_RESOURCE_H
4383 #include <sys/resource.h>
4389 char *(*pfn) = (char *(*)) $ac_func ;
4393 if { (eval echo configure:4394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4395 eval "gcc_cv_have_decl_$ac_func=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "gcc_cv_have_decl_$ac_func=no"
4405 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4406 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
4407 #define $ac_tr_decl 1
4411 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
4412 #define $ac_tr_decl 0
4418 if test x = y ; then
4419 cat >> confdefs.h <<EOF
4420 #define HAVE_DECL_GETRLIMIT 1
4422 cat >> confdefs.h <<EOF
4423 #define HAVE_DECL_SETRLIMIT 1
4425 cat >> confdefs.h <<EOF
4426 #define HAVE_DECL_GETRUSAGE 1
4431 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4432 CFLAGS="$saved_CFLAGS"
4434 # mkdir takes a single argument on some systems.
4435 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4436 echo "configure:4437: checking if mkdir takes one argument" >&5
4437 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4444 #include <sys/types.h>
4445 #ifdef HAVE_SYS_STAT_H
4446 # include <sys/stat.h>
4448 #ifdef HAVE_UNISTD_H
4449 # include <unistd.h>
4451 #ifdef HAVE_DIRECT_H
4452 # include <direct.h>
4458 if { (eval echo configure:4459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4460 gcc_cv_mkdir_takes_one_arg=no
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 gcc_cv_mkdir_takes_one_arg=yes
4470 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4471 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4472 cat >> confdefs.h <<\EOF
4473 #define MKDIR_TAKES_ONE_ARG 1
4487 build_install_headers_dir=install-headers-tar
4492 host_truncate_target=
4495 # Decode the host machine, then the target machine.
4496 # For the host machine, we save the xm_file variable as host_xm_file;
4497 # then we decode the target machine and forget everything else
4498 # that came from the host machine.
4499 for machine in $build $host $target; do
4500 . ${srcdir}/config.gcc
4503 extra_objs="${host_extra_objs} ${extra_objs}"
4505 # Default the target-machine variables that were not explicitly set.
4506 if test x"$tm_file" = x
4507 then tm_file=$cpu_type/$cpu_type.h; fi
4509 if test x"$extra_headers" = x
4510 then extra_headers=; fi
4512 if test x"$xm_file" = x
4513 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4515 if test x$md_file = x
4516 then md_file=$cpu_type/$cpu_type.md; fi
4518 if test x$out_file = x
4519 then out_file=$cpu_type/$cpu_type.c; fi
4521 if test x"$tmake_file" = x
4522 then tmake_file=$cpu_type/t-$cpu_type
4525 if test x"$dwarf2" = xyes
4526 then tm_file="$tm_file tm-dwarf2.h"
4529 if test x$float_format = x
4530 then float_format=i64
4533 if test $float_format = none
4534 then float_h_file=Makefile.in
4535 else float_h_file=float-$float_format.h
4538 # Handle cpp installation.
4539 if test x$enable_cpp != xno
4541 tmake_file="$tmake_file t-install-cpp"
4544 # Say what files are being used for the output code and MD file.
4545 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4546 echo "Using \`$srcdir/config/$md_file' as machine description file."
4548 # If any of the xm_file variables contain nonexistent files, warn
4549 # about them and drop them. But $cpu/xm-$cpu.h is allowed not to
4550 # exist, if we have nothing for it to do.
4552 for x in $build_xm_file; do
4553 if test -f $srcdir/config/$x
4555 elif expr $x : '\([^/]*\)/xm-\1\.h' >/dev/null
4557 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4563 for x in $host_xm_file; do
4564 if test -f $srcdir/config/$x
4566 elif expr $x : '\([^/]*\)/xm-\1\.h' >/dev/null
4568 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4574 for x in $xm_file; do
4575 if test -f $srcdir/config/$x
4577 elif expr $x : '\([^/]*\)/xm-\1\.h' >/dev/null
4579 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4585 for f in $tm_file; do
4588 if test $count = ax; then
4589 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4591 echo "Using the following target machine macro files:"
4592 for f in $tm_file; do
4593 echo " $srcdir/config/$f"
4598 for f in $host_xm_file; do
4601 if test $count = a; then
4603 elif test $count = ax; then
4604 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4606 echo "Using the following host machine macro files:"
4607 for f in $host_xm_file; do
4608 echo " $srcdir/config/$f"
4612 if test "$host_xm_file" != "$build_xm_file"; then
4614 for f in $build_xm_file; do
4617 if test $count = a; then
4619 elif test $count = ax; then
4620 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4622 echo "Using the following build machine macro files:"
4623 for f in $build_xm_file; do
4624 echo " $srcdir/config/$f"
4629 if test x$thread_file = x; then
4630 if test x$target_thread_file != x; then
4631 thread_file=$target_thread_file
4633 thread_file='single'
4637 # auto-host.h is the file containing items generated by autoconf and is
4638 # the first file included by config.h.
4639 # If host=build, it is correct to have hconfig include auto-host.h
4640 # as well. If host!=build, we are in error and need to do more
4641 # work to find out the build config parameters.
4642 if test x$host = x$build
4644 build_auto=auto-host.h
4646 # We create a subdir, then run autoconf in the subdir.
4647 # To prevent recursion we set host and build for the new
4648 # invocation of configure to the build for this invocation
4655 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4656 *) realsrcdir=../${srcdir};;
4658 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4659 --target=$target --host=$build --build=$build
4661 # We just finished tests for the build machine, so rename
4662 # the file auto-build.h in the gcc directory.
4663 mv auto-host.h ../auto-build.h
4666 build_auto=auto-build.h
4669 tm_file="${tm_file} defaults.h"
4670 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} ${tm_file}"
4671 build_xm_file="${build_auto} gansidecl.h ${build_xm_file} ${tm_file}"
4672 xm_file="gansidecl.h ${xm_file} ${tm_file}"
4674 # Truncate the target if necessary
4675 if test x$host_truncate_target != x; then
4676 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4679 # Get the version trigger filename from the toplevel
4680 if test "${with_gcc_version_trigger+set}" = set; then
4681 gcc_version_trigger=$with_gcc_version_trigger
4683 gcc_version_trigger=${srcdir}/version.c
4685 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4686 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4688 # Compile in configure arguments.
4689 if test -f configargs.h ; then
4690 # Being re-configured.
4691 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4692 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
4694 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
4696 cat > configargs.h <<EOF
4697 /* Generated automatically. */
4698 static const char configuration_arguments[] = "$gcc_config_arguments";
4701 # Internationalization
4703 VERSION="$gcc_version"
4704 cat >> confdefs.h <<EOF
4705 #define PACKAGE "$PACKAGE"
4708 cat >> confdefs.h <<EOF
4709 #define VERSION "$VERSION"
4717 # Enable NLS support by default
4718 # Check whether --enable-nls or --disable-nls was given.
4719 if test "${enable_nls+set}" = set; then
4720 enableval="$enable_nls"
4727 # if cross compiling, disable NLS support.
4728 # It's not worth the trouble, at least for now.
4730 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4731 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
4735 # if NLS is enabled, also enable check in po subdir
4736 if test $enable_nls = yes; then
4745 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
4746 echo "configure:4747: checking for strerror in -lcposix" >&5
4747 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
4748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4751 ac_save_LIBS="$LIBS"
4752 LIBS="-lcposix $LIBS"
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 /* Override any gcc2 internal prototype to avoid an error. */
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4767 eval "ac_cv_lib_$ac_lib_var=yes"
4769 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4772 eval "ac_cv_lib_$ac_lib_var=no"
4775 LIBS="$ac_save_LIBS"
4778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4779 echo "$ac_t""yes" 1>&6
4780 LIBS="$LIBS -lcposix"
4782 echo "$ac_t""no" 1>&6
4787 echo $ac_n "checking for working const""... $ac_c" 1>&6
4788 echo "configure:4789: checking for working const" >&5
4789 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4798 /* Ultrix mips cc rejects this. */
4799 typedef int charset[2]; const charset x;
4800 /* SunOS 4.1.1 cc rejects this. */
4801 char const *const *ccp;
4803 /* NEC SVR4.0.2 mips cc rejects this. */
4804 struct point {int x, y;};
4805 static struct point const zero = {0,0};
4806 /* AIX XL C 1.02.0.0 rejects this.
4807 It does not let you subtract one const X* pointer from another in an arm
4808 of an if-expression whose if-part is not a constant expression */
4809 const char *g = "string";
4810 ccp = &g + (g ? g-g : 0);
4811 /* HPUX 7.0 cc rejects these. */
4814 ccp = (char const *const *) p;
4815 { /* SCO 3.2v4 cc rejects this. */
4817 char const *s = 0 ? (char *) 0 : (char const *) 0;
4821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4823 const int *foo = &x[0];
4826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4827 typedef const int *iptr;
4831 { /* AIX XL C 1.02.0.0 rejects this saying
4832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4833 struct s { int j; const int *ap[3]; };
4834 struct s *b; b->j = 5;
4836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4842 if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4854 echo "$ac_t""$ac_cv_c_const" 1>&6
4855 if test $ac_cv_c_const = no; then
4856 cat >> confdefs.h <<\EOF
4862 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4863 echo "configure:4864: checking for off_t" >&5
4864 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 #include <sys/types.h>
4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4879 ac_cv_type_off_t=yes
4887 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4888 if test $ac_cv_type_off_t = no; then
4889 cat >> confdefs.h <<\EOF
4895 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4896 echo "configure:4897: checking for size_t" >&5
4897 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4903 #include <sys/types.h>
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4912 ac_cv_type_size_t=yes
4915 ac_cv_type_size_t=no
4920 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4921 if test $ac_cv_type_size_t = no; then
4922 cat >> confdefs.h <<\EOF
4923 #define size_t unsigned
4929 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4930 unistd.h sys/param.h
4932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_hdr" >&5
4935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4944 { (eval echo configure:4945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4946 if test -z "$ac_err"; then
4948 eval "ac_cv_header_$ac_safe=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_header_$ac_safe=no"
4958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4961 cat >> confdefs.h <<EOF
4962 #define $ac_tr_hdr 1
4966 echo "$ac_t""no" 1>&6
4970 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4971 strdup __argz_count __argz_stringify __argz_next
4973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_func" >&5
4975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4981 /* System header to define __stub macros and hopefully few prototypes,
4982 which can conflict with char $ac_func(); below. */
4984 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4991 /* The GNU C library defines this for functions which it implements
4992 to always fail with ENOSYS. Some functions are actually named
4993 something starting with __ and the normal name is an alias. */
4994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 eval "ac_cv_func_$ac_func=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "ac_cv_func_$ac_func=no"
5014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5017 cat >> confdefs.h <<EOF
5018 #define $ac_tr_func 1
5022 echo "$ac_t""no" 1>&6
5027 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5028 for ac_func in stpcpy
5030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5031 echo "configure:5032: checking for $ac_func" >&5
5032 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure"
5037 #include "confdefs.h"
5038 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char $ac_func(); below. */
5041 /* Override any gcc2 internal prototype to avoid an error. */
5042 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */
5048 /* The GNU C library defines this for functions which it implements
5049 to always fail with ENOSYS. Some functions are actually named
5050 something starting with __ and the normal name is an alias. */
5051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_func_$ac_func=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_func_$ac_func=no"
5071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5074 cat >> confdefs.h <<EOF
5075 #define $ac_tr_func 1
5079 echo "$ac_t""no" 1>&6
5084 if test "${ac_cv_func_stpcpy}" = "yes"; then
5085 cat >> confdefs.h <<\EOF
5086 #define HAVE_STPCPY 1
5091 if test $ac_cv_header_locale_h = yes; then
5092 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5093 echo "configure:5094: checking for LC_MESSAGES" >&5
5094 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107 am_cv_val_LC_MESSAGES=yes
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5112 am_cv_val_LC_MESSAGES=no
5117 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5118 if test $am_cv_val_LC_MESSAGES = yes; then
5119 cat >> confdefs.h <<\EOF
5120 #define HAVE_LC_MESSAGES 1
5125 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5126 echo "configure:5127: checking whether NLS is requested" >&5
5127 # Check whether --enable-nls or --disable-nls was given.
5128 if test "${enable_nls+set}" = set; then
5129 enableval="$enable_nls"
5135 echo "$ac_t""$USE_NLS" 1>&6
5138 USE_INCLUDED_LIBINTL=no
5140 if test "$USE_NLS" = "yes"; then
5141 cat >> confdefs.h <<\EOF
5142 #define ENABLE_NLS 1
5145 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5146 echo "configure:5147: checking whether included gettext is requested" >&5
5147 # Check whether --with-included-gettext or --without-included-gettext was given.
5148 if test "${with_included_gettext+set}" = set; then
5149 withval="$with_included_gettext"
5150 nls_cv_force_use_gnu_gettext=$withval
5152 nls_cv_force_use_gnu_gettext=no
5155 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5157 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5158 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5160 nls_cv_header_libgt=
5163 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5164 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5165 echo "configure:5166: checking for libintl.h" >&5
5166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 #include <libintl.h>
5174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5175 { (eval echo configure:5176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5177 if test -z "$ac_err"; then
5179 eval "ac_cv_header_$ac_safe=yes"
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 eval "ac_cv_header_$ac_safe=no"
5189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5190 echo "$ac_t""yes" 1>&6
5191 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
5192 echo "configure:5193: checking for gettext in libc" >&5
5193 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5199 #include <libintl.h>
5201 return (int) gettext ("")
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5206 gt_cv_func_gettext_libc=yes
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 gt_cv_func_gettext_libc=no
5216 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
5218 if test "$gt_cv_func_gettext_libc" != "yes"; then
5219 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
5220 echo "configure:5221: checking for bindtextdomain in -lintl" >&5
5221 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
5222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 ac_save_LIBS="$LIBS"
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5230 /* Override any gcc2 internal prototype to avoid an error. */
5231 /* We use char because int might match the return type of a gcc2
5232 builtin and then its argument prototype would still apply. */
5233 char bindtextdomain();
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 eval "ac_cv_lib_$ac_lib_var=yes"
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 eval "ac_cv_lib_$ac_lib_var=no"
5249 LIBS="$ac_save_LIBS"
5252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
5255 echo "configure:5256: checking for gettext in libintl" >&5
5256 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
5260 echo "configure:5261: checking for gettext in -lintl" >&5
5261 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
5262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 ac_save_LIBS="$LIBS"
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5270 /* Override any gcc2 internal prototype to avoid an error. */
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5279 if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5281 eval "ac_cv_lib_$ac_lib_var=yes"
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5286 eval "ac_cv_lib_$ac_lib_var=no"
5289 LIBS="$ac_save_LIBS"
5292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 gt_cv_func_gettext_libintl=yes
5296 echo "$ac_t""no" 1>&6
5297 gt_cv_func_gettext_libintl=no
5302 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
5304 echo "$ac_t""no" 1>&6
5309 if test "$gt_cv_func_gettext_libintl" = "yes"; then
5313 if test "$gt_cv_func_gettext_libc" = "yes" \
5314 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5315 cat >> confdefs.h <<\EOF
5316 #define HAVE_GETTEXT 1
5319 # Extract the first word of "msgfmt", so it can be a program name with args.
5320 set dummy msgfmt; ac_word=$2
5321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5322 echo "configure:5323: checking for $ac_word" >&5
5323 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5328 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5332 for ac_dir in $PATH; do
5333 test -z "$ac_dir" && ac_dir=.
5334 if test -f $ac_dir/$ac_word; then
5335 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5336 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5342 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="no"
5346 MSGFMT="$gcc_cv_path_MSGFMT"
5347 if test -n "$MSGFMT"; then
5348 echo "$ac_t""$MSGFMT" 1>&6
5350 echo "$ac_t""no" 1>&6
5352 if test "$MSGFMT" != "no"; then
5353 for ac_func in dcgettext
5355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5356 echo "configure:5357: checking for $ac_func" >&5
5357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5360 cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5363 /* System header to define __stub macros and hopefully few prototypes,
5364 which can conflict with char $ac_func(); below. */
5366 /* Override any gcc2 internal prototype to avoid an error. */
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5373 /* The GNU C library defines this for functions which it implements
5374 to always fail with ENOSYS. Some functions are actually named
5375 something starting with __ and the normal name is an alias. */
5376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5384 if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386 eval "ac_cv_func_$ac_func=yes"
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5391 eval "ac_cv_func_$ac_func=no"
5396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5399 cat >> confdefs.h <<EOF
5400 #define $ac_tr_func 1
5404 echo "$ac_t""no" 1>&6
5408 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5409 set dummy gmsgfmt; ac_word=$2
5410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5411 echo "configure:5412: checking for $ac_word" >&5
5412 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5413 echo $ac_n "(cached) $ac_c" 1>&6
5417 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5420 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5425 for ac_dir in $ac_dummy; do
5426 test -z "$ac_dir" && ac_dir=.
5427 if test -f $ac_dir/$ac_word; then
5428 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5433 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5437 GMSGFMT="$gcc_cv_path_GMSGFMT"
5438 if test -n "$GMSGFMT"; then
5439 echo "$ac_t""$GMSGFMT" 1>&6
5441 echo "$ac_t""no" 1>&6
5444 # Extract the first word of "xgettext", so it can be a program name with args.
5445 set dummy xgettext; ac_word=$2
5446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5447 echo "configure:5448: checking for $ac_word" >&5
5448 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5453 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5457 for ac_dir in $PATH; do
5458 test -z "$ac_dir" && ac_dir=.
5459 if test -f $ac_dir/$ac_word; then
5460 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5461 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5467 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5471 XGETTEXT="$gcc_cv_path_XGETTEXT"
5472 if test -n "$XGETTEXT"; then
5473 echo "$ac_t""$XGETTEXT" 1>&6
5475 echo "$ac_t""no" 1>&6
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5483 extern int _nl_msg_cat_cntr;
5484 return _nl_msg_cat_cntr
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5492 echo "configure: failed program was:" >&5
5493 cat conftest.$ac_ext >&5
5501 create_catalogs="no"
5506 echo "$ac_t""no" 1>&6
5510 if test "$CATOBJEXT" = "NONE"; then
5511 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
5512 echo "configure:5513: checking whether catgets can be used" >&5
5513 # Check whether --with-catgets or --without-catgets was given.
5514 if test "${with_catgets+set}" = set; then
5515 withval="$with_catgets"
5516 nls_cv_use_catgets=$withval
5518 nls_cv_use_catgets=no
5521 echo "$ac_t""$nls_cv_use_catgets" 1>&6
5523 if test "$nls_cv_use_catgets" = "yes"; then
5524 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
5525 echo "configure:5526: checking for main in -li" >&5
5526 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
5527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 ac_save_LIBS="$LIBS"
5532 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5540 if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5542 eval "ac_cv_lib_$ac_lib_var=yes"
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 eval "ac_cv_lib_$ac_lib_var=no"
5550 LIBS="$ac_save_LIBS"
5553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5554 echo "$ac_t""yes" 1>&6
5555 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5557 cat >> confdefs.h <<EOF
5558 #define $ac_tr_lib 1
5564 echo "$ac_t""no" 1>&6
5567 echo $ac_n "checking for catgets""... $ac_c" 1>&6
5568 echo "configure:5569: checking for catgets" >&5
5569 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5575 /* System header to define __stub macros and hopefully few prototypes,
5576 which can conflict with char catgets(); below. */
5578 /* Override any gcc2 internal prototype to avoid an error. */
5579 /* We use char because int might match the return type of a gcc2
5580 builtin and then its argument prototype would still apply. */
5585 /* The GNU C library defines this for functions which it implements
5586 to always fail with ENOSYS. Some functions are actually named
5587 something starting with __ and the normal name is an alias. */
5588 #if defined (__stub_catgets) || defined (__stub___catgets)
5596 if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5598 eval "ac_cv_func_catgets=yes"
5600 echo "configure: failed program was:" >&5
5601 cat conftest.$ac_ext >&5
5603 eval "ac_cv_func_catgets=no"
5608 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
5609 echo "$ac_t""yes" 1>&6
5610 cat >> confdefs.h <<\EOF
5611 #define HAVE_CATGETS 1
5614 INTLOBJS="\$(CATOBJS)"
5615 # Extract the first word of "gencat", so it can be a program name with args.
5616 set dummy gencat; ac_word=$2
5617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5618 echo "configure:5619: checking for $ac_word" >&5
5619 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
5620 echo $ac_n "(cached) $ac_c" 1>&6
5624 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5627 gcc_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
5630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5632 for ac_dir in $ac_dummy; do
5633 test -z "$ac_dir" && ac_dir=.
5634 if test -f $ac_dir/$ac_word; then
5635 gcc_cv_path_GENCAT="$ac_dir/$ac_word"
5640 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT="no"
5644 GENCAT="$gcc_cv_path_GENCAT"
5645 if test -n "$GENCAT"; then
5646 echo "$ac_t""$GENCAT" 1>&6
5648 echo "$ac_t""no" 1>&6
5650 if test "$GENCAT" != "no"; then
5651 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5652 set dummy gmsgfmt; ac_word=$2
5653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5654 echo "configure:5655: checking for $ac_word" >&5
5655 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5660 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5663 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5668 for ac_dir in $ac_dummy; do
5669 test -z "$ac_dir" && ac_dir=.
5670 if test -f $ac_dir/$ac_word; then
5671 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5676 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="no"
5680 GMSGFMT="$gcc_cv_path_GMSGFMT"
5681 if test -n "$GMSGFMT"; then
5682 echo "$ac_t""$GMSGFMT" 1>&6
5684 echo "$ac_t""no" 1>&6
5687 if test "$GMSGFMT" = "no"; then
5688 # Extract the first word of "msgfmt", so it can be a program name with args.
5689 set dummy msgfmt; ac_word=$2
5690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5691 echo "configure:5692: checking for $ac_word" >&5
5692 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5697 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5701 for ac_dir in $PATH; do
5702 test -z "$ac_dir" && ac_dir=.
5703 if test -f $ac_dir/$ac_word; then
5704 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5705 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5711 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="msgfmt"
5715 GMSGFMT="$gcc_cv_path_GMSGFMT"
5716 if test -n "$GMSGFMT"; then
5717 echo "$ac_t""$GMSGFMT" 1>&6
5719 echo "$ac_t""no" 1>&6
5722 if test "$GMSGFMT" = "msgfmt"; then
5723 create_catalogs="no"
5726 # Extract the first word of "xgettext", so it can be a program name with args.
5727 set dummy xgettext; ac_word=$2
5728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5729 echo "configure:5730: checking for $ac_word" >&5
5730 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5735 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5739 for ac_dir in $PATH; do
5740 test -z "$ac_dir" && ac_dir=.
5741 if test -f $ac_dir/$ac_word; then
5742 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5743 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5749 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5753 XGETTEXT="$gcc_cv_path_XGETTEXT"
5754 if test -n "$XGETTEXT"; then
5755 echo "$ac_t""$XGETTEXT" 1>&6
5757 echo "$ac_t""no" 1>&6
5760 USE_INCLUDED_LIBINTL=yes
5764 INTLDEPS='$(top_builddir)/intl/libintl.a'
5766 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5767 nls_cv_header_intl=intl/libintl.h
5768 nls_cv_header_libgt=intl/libgettext.h
5771 echo "$ac_t""no" 1>&6
5777 if test "$CATOBJEXT" = "NONE"; then
5778 nls_cv_use_gnu_gettext=yes
5782 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5783 INTLOBJS="\$(GETTOBJS)"
5784 # Extract the first word of "msgfmt", so it can be a program name with args.
5785 set dummy msgfmt; ac_word=$2
5786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5787 echo "configure:5788: checking for $ac_word" >&5
5788 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
5789 echo $ac_n "(cached) $ac_c" 1>&6
5793 gcc_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5797 for ac_dir in $PATH; do
5798 test -z "$ac_dir" && ac_dir=.
5799 if test -f $ac_dir/$ac_word; then
5800 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5801 gcc_cv_path_MSGFMT="$ac_dir/$ac_word"
5807 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT="msgfmt"
5811 MSGFMT="$gcc_cv_path_MSGFMT"
5812 if test -n "$MSGFMT"; then
5813 echo "$ac_t""$MSGFMT" 1>&6
5815 echo "$ac_t""no" 1>&6
5818 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5819 set dummy gmsgfmt; ac_word=$2
5820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5821 echo "configure:5822: checking for $ac_word" >&5
5822 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
5823 echo $ac_n "(cached) $ac_c" 1>&6
5827 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5830 gcc_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
5833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5835 for ac_dir in $ac_dummy; do
5836 test -z "$ac_dir" && ac_dir=.
5837 if test -f $ac_dir/$ac_word; then
5838 gcc_cv_path_GMSGFMT="$ac_dir/$ac_word"
5843 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT="$MSGFMT"
5847 GMSGFMT="$gcc_cv_path_GMSGFMT"
5848 if test -n "$GMSGFMT"; then
5849 echo "$ac_t""$GMSGFMT" 1>&6
5851 echo "$ac_t""no" 1>&6
5854 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
5855 create_catalogs="no"
5857 # Extract the first word of "xgettext", so it can be a program name with args.
5858 set dummy xgettext; ac_word=$2
5859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5860 echo "configure:5861: checking for $ac_word" >&5
5861 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5866 gcc_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5870 for ac_dir in $PATH; do
5871 test -z "$ac_dir" && ac_dir=.
5872 if test -f $ac_dir/$ac_word; then
5873 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5874 gcc_cv_path_XGETTEXT="$ac_dir/$ac_word"
5880 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT=":"
5884 XGETTEXT="$gcc_cv_path_XGETTEXT"
5885 if test -n "$XGETTEXT"; then
5886 echo "$ac_t""$XGETTEXT" 1>&6
5888 echo "$ac_t""no" 1>&6
5892 USE_INCLUDED_LIBINTL=yes
5896 INTLDEPS='$(top_builddir)/intl/libintl.a'
5898 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5899 nls_cv_header_intl=intl/libintl.h
5900 nls_cv_header_libgt=intl/libgettext.h
5903 if test "$XGETTEXT" != ":"; then
5904 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5907 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5914 # We need to process the po/ directory.
5918 nls_cv_header_intl=intl/libintl.h
5919 nls_cv_header_libgt=intl/libgettext.h
5925 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5926 # because some of the sources are only built for this goal.
5927 if test "$PACKAGE" = gettext; then
5929 USE_INCLUDED_LIBINTL=yes
5932 for lang in $ALL_LINGUAS; do
5933 GMOFILES="$GMOFILES $lang.gmo"
5934 POFILES="$POFILES $lang.po"
5950 if test "x$create_catalogs" = "xno"; then
5951 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
5954 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
5955 if test "x$ALL_LINGUAS" = "x"; then
5958 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5959 echo "configure:5960: checking for catalogs to be installed" >&5
5960 if test "x$LINGUAS" = "x"; then
5961 LINGUAS=$ALL_LINGUAS
5964 for lang in $ALL_LINGUAS; do
5965 case " $LINGUAS " in
5966 *" $lang "*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5969 LINGUAS=$NEW_LINGUAS
5971 echo "$ac_t""$LINGUAS" 1>&6
5974 if test -n "$LINGUAS"; then
5975 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5979 if test $ac_cv_header_locale_h = yes; then
5980 INCLUDE_LOCALE_H="#include <locale.h>"
5983 /* The system does not provide the header <locale.h>. Take care yourself. */"
5987 test -d intl || mkdir intl
5988 if test "$CATOBJEXT" = ".cat"; then
5989 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5990 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5991 echo "configure:5992: checking for linux/version.h" >&5
5992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5995 cat > conftest.$ac_ext <<EOF
5996 #line 5997 "configure"
5997 #include "confdefs.h"
5998 #include <linux/version.h>
6000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6001 { (eval echo configure:6002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6003 if test -z "$ac_err"; then
6005 eval "ac_cv_header_$ac_safe=yes"
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6011 eval "ac_cv_header_$ac_safe=no"
6015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6019 echo "$ac_t""no" 1>&6
6024 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
6026 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
6027 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
6029 if test "$PACKAGE" = "gettext"; then
6040 if test -n "$ac_aux_dir"; then
6041 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
6043 if test -z "$MKINSTALLDIRS"; then
6044 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6051 test -d po || mkdir po
6052 if test "x$srcdir" != "x."; then
6053 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
6054 posrcprefix="$srcdir/"
6056 posrcprefix="../$srcdir/"
6062 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
6063 < $srcdir/po/POTFILES.in > po/POTFILES
6065 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
6067 # Windows32 Registry support for specifying GCC installation paths.
6068 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6069 if test "${enable_win32_registry+set}" = set; then
6070 enableval="$enable_win32_registry"
6075 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6076 echo "configure:6077: checking whether windows registry support is requested" >&5
6077 if test x$enable_win32_registry != xno; then
6078 cat >> confdefs.h <<\EOF
6079 #define ENABLE_WIN32_REGISTRY 1
6082 echo "$ac_t""yes" 1>&6
6084 echo "$ac_t""no" 1>&6
6087 # Check if user specified a different registry key.
6088 case x${enable_win32_registry} in
6091 gcc_cv_win32_registry_key="$VERSION"
6094 # no registry lookup.
6095 gcc_cv_win32_registry_key=''
6098 # user-specified key.
6099 gcc_cv_win32_registry_key="$enable_win32_registry"
6103 if test x$enable_win32_registry != xno; then
6104 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6105 echo "configure:6106: checking registry key on windows hosts" >&5
6106 cat >> confdefs.h <<EOF
6107 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6110 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6113 # Get an absolute path to the GCC top-level source directory
6119 # Conditionalize the makefile for this host machine.
6120 # Make-host contains the concatenation of all host makefile fragments
6121 # [there can be more than one]. This file is built by configure.frag.
6122 host_overrides=Make-host
6123 dep_host_xmake_file=
6124 for f in .. ${host_xmake_file}
6126 if test -f ${srcdir}/config/$f
6128 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
6132 # Conditionalize the makefile for this target machine.
6133 # Make-target contains the concatenation of all host makefile fragments
6134 # [there can be more than one]. This file is built by configure.frag.
6135 target_overrides=Make-target
6137 for f in .. ${tmake_file}
6139 if test -f ${srcdir}/config/$f
6141 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
6145 # If the host doesn't support symlinks, modify CC in
6146 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6147 # Otherwise, we can use "CC=$(CC)".
6149 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
6151 cc_set_by_configure="\$(CC)"
6152 quoted_cc_set_by_configure="\$(CC)"
6153 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
6156 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
6158 symbolic_link="cp -p"
6162 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6163 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6164 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6168 out_object_file=`basename $out_file .c`.o
6171 for f in $tm_file; do
6173 gansidecl.h | defaults.h )
6174 tm_file_list="${tm_file_list} $f" ;;
6175 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
6180 for f in $tm_p_file; do
6181 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
6185 for f in $host_xm_file; do
6187 auto-host.h | gansidecl.h | defaults.h )
6188 host_xm_file_list="${host_xm_file_list} $f" ;;
6189 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6194 for f in $build_xm_file; do
6196 auto-build.h | auto-host.h | gansidecl.h | defaults.h )
6197 build_xm_file_list="${build_xm_file_list} $f" ;;
6198 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6202 # Define macro CROSS_COMPILE in compilation
6203 # if this is a cross-compiler.
6204 # Also use all.cross instead of all.internal
6205 # and add cross-make to Makefile.
6206 cross_overrides="/dev/null"
6207 if test x$host != x$target
6209 cross_defines="CROSS=-DCROSS_COMPILE"
6210 cross_overrides="${topdir}/cross-make"
6213 # If this is a cross-compiler that does not
6214 # have its own set of headers then define
6217 # If this is using newlib, then define inhibit_libc in
6218 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
6219 # libgcc.a, but that's OK because newlib should have its own version of
6222 if test x$host != x$target && test x$with_headers = x; then
6223 inhibit_libc=-Dinhibit_libc
6225 if test x$with_newlib = xyes; then
6226 inhibit_libc=-Dinhibit_libc
6231 # When building gcc with a cross-compiler, we need to fix a few things.
6232 # This must come after cross-make as we want all.build to override
6234 build_overrides="/dev/null"
6235 if test x$build != x$host
6237 build_overrides="${topdir}/build-make"
6240 # Expand extra_headers to include complete path.
6241 # This substitutes for lots of t-* files.
6243 if test "x$extra_headers" = x
6246 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
6247 for file in $extra_headers;
6249 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
6253 if test x$use_collect2 = xno; then
6257 # Add a definition of USE_COLLECT2 if system wants one.
6258 # Also tell toplev.c what to do.
6259 # This substitutes for lots of t-* files.
6260 if test x$use_collect2 = x
6265 will_use_collect2="collect2"
6266 maybe_use_collect2="-DUSE_COLLECT2"
6269 # If we have gas in the build tree, make a link to it.
6270 if test -f ../gas/Makefile; then
6271 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
6274 # If we have nm in the build tree, make a link to it.
6275 if test -f ../binutils/Makefile; then
6276 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
6279 # If we have ld in the build tree, make a link to it.
6280 if test -f ../ld/Makefile; then
6281 # if test x$use_collect2 = x; then
6282 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
6284 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
6288 # Figure out what assembler we will be using.
6289 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6290 echo "configure:6291: checking what assembler to use" >&5
6292 gcc_cv_gas_major_version=
6293 gcc_cv_gas_minor_version=
6294 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6295 if test -x "$DEFAULT_ASSEMBLER"; then
6296 gcc_cv_as="$DEFAULT_ASSEMBLER"
6297 elif test -x "$AS"; then
6299 elif test -x as$host_exeext; then
6300 # Build using assembler in the current directory.
6301 gcc_cv_as=./as$host_exeext
6302 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
6303 # Single tree build which includes gas.
6304 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
6306 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6307 if test x$gcc_cv_gas_version != x; then
6311 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6312 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6315 if test "x$gcc_cv_as" = x -a x$host = x$target; then
6317 # Search the same directories that the installed compiler will
6318 # search. Else we may find the wrong assembler and lose. If we
6319 # do not find a suitable assembler binary, then try the user's
6322 # Also note we have to check MD_EXEC_PREFIX before checking the
6323 # user's path. Unfortunately, there is no good way to get at the
6324 # value of MD_EXEC_PREFIX here. So we do a brute force search
6325 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6326 # to be fixed as part of the make/configure rewrite too.
6328 if test "x$exec_prefix" = xNONE; then
6329 if test "x$prefix" = xNONE; then
6330 test_prefix=/usr/local
6335 test_prefix=$exec_prefix
6338 # If the loop below does not find an assembler, then use whatever
6339 # one we can find in the users's path.
6341 gcc_cv_as=as$host_exeext
6343 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6344 $test_prefix/lib/gcc-lib/$target \
6345 /usr/lib/gcc/$target/$gcc_version \
6346 /usr/lib/gcc/$target \
6347 $test_prefix/$target/bin/$target/$gcc_version \
6348 $test_prefix/$target/bin \
6353 /bsd43/usr/lib/cmplrs/cc \
6354 /usr/cross64/usr/bin \
6355 /usr/lib/cmplrs/cc \
6356 /sysv/usr/lib/cmplrs/cc \
6357 /svr4/usr/lib/cmplrs/cc \
6360 for dir in $test_dirs; do
6361 if test -f $dir/as$host_exeext; then
6362 gcc_cv_as=$dir/as$host_exeext
6367 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6368 echo "$ac_t"""newly built gas"" 1>&6
6370 echo "$ac_t""$gcc_cv_as" 1>&6
6373 # Figure out what nm we will be using.
6374 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
6375 echo "configure:6376: checking what nm to use" >&5
6376 if test -x nm$host_exeext; then
6377 gcc_cv_nm=./nm$host_exeext
6378 elif test x$host = x$target; then
6380 gcc_cv_nm=nm$host_exeext
6382 echo "$ac_t""$gcc_cv_nm" 1>&6
6384 # Figure out what assembler alignment features are present.
6385 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
6386 echo "configure:6387: checking assembler alignment features" >&5
6387 gcc_cv_as_alignment_features=none
6388 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6389 # Gas version 2.6 and later support for .balign and .p2align.
6390 # bytes to skip when using .p2align.
6391 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
6392 gcc_cv_as_alignment_features=".balign and .p2align"
6393 cat >> confdefs.h <<\EOF
6394 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6398 # Gas version 2.8 and later support specifying the maximum
6399 # bytes to skip when using .p2align.
6400 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
6401 gcc_cv_as_alignment_features=".p2align including maximum skip"
6402 cat >> confdefs.h <<\EOF
6403 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6407 elif test x$gcc_cv_as != x; then
6408 # Check if we have .balign and .p2align
6409 echo ".balign 4" > conftest.s
6410 echo ".p2align 2" >> conftest.s
6411 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6412 gcc_cv_as_alignment_features=".balign and .p2align"
6413 cat >> confdefs.h <<\EOF
6414 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
6418 rm -f conftest.s conftest.o
6419 # Check if specifying the maximum bytes to skip when
6420 # using .p2align is supported.
6421 echo ".p2align 4,,7" > conftest.s
6422 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6423 gcc_cv_as_alignment_features=".p2align including maximum skip"
6424 cat >> confdefs.h <<\EOF
6425 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
6429 rm -f conftest.s conftest.o
6431 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
6433 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
6434 echo "configure:6435: checking assembler subsection support" >&5
6435 gcc_cv_as_subsections=no
6436 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6437 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
6438 gcc_cv_as_subsections="working .subsection -1"
6440 elif test x$gcc_cv_as != x; then
6441 # Check if we have .subsection
6442 echo ".subsection 1" > conftest.s
6443 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6444 gcc_cv_as_subsections=".subsection"
6445 if test x$gcc_cv_nm != x; then
6446 cat > conftest.s <<EOF
6447 conftest_label1: .word 0
6449 conftest_label2: .word 0
6452 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6453 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
6454 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
6455 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
6458 gcc_cv_as_subsections="working .subsection -1"
6463 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6465 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
6466 cat >> confdefs.h <<\EOF
6467 #define HAVE_GAS_SUBSECTION_ORDERING 1
6471 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
6473 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
6474 echo "configure:6475: checking assembler weak support" >&5
6476 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6477 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
6478 gcc_cv_as_weak="yes"
6480 elif test x$gcc_cv_as != x; then
6481 # Check if we have .weak
6482 echo " .weak foobar" > conftest.s
6483 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6484 gcc_cv_as_weak="yes"
6486 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6488 if test x"$gcc_cv_as_weak" = xyes; then
6489 cat >> confdefs.h <<\EOF
6490 #define HAVE_GAS_WEAK 1
6494 echo "$ac_t""$gcc_cv_as_weak" 1>&6
6496 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
6497 echo "configure:6498: checking assembler hidden support" >&5
6499 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6500 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
6501 gcc_cv_as_hidden="yes"
6503 elif test x$gcc_cv_as != x; then
6504 # Check if we have .hidden
6505 echo " .hidden foobar" > conftest.s
6506 echo "foobar:" >> conftest.s
6507 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6508 gcc_cv_as_hidden="yes"
6510 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6512 if test x"$gcc_cv_as_hidden" = xyes; then
6513 cat >> confdefs.h <<\EOF
6514 #define HAVE_GAS_HIDDEN 1
6518 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
6520 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
6521 echo "configure:6522: checking assembler leb128 support" >&5
6523 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6524 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
6525 gcc_cv_as_leb128="yes"
6527 elif test x$gcc_cv_as != x; then
6528 # Check if we have .[us]leb128, and support symbol arithmetic with it.
6529 cat > conftest.s <<EOF
6537 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6538 gcc_cv_as_leb128="yes"
6540 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6542 if test x"$gcc_cv_as_leb128" = xyes; then
6543 cat >> confdefs.h <<\EOF
6544 #define HAVE_AS_LEB128 1
6548 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
6552 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
6553 echo "configure:6554: checking assembler .register pseudo-op support" >&5
6554 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6558 gcc_cv_as_register_pseudo_op=unknown
6559 if test x$gcc_cv_as != x; then
6560 # Check if we have .register
6561 echo ".register %g2, #scratch" > conftest.s
6562 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6563 gcc_cv_as_register_pseudo_op=yes
6565 gcc_cv_as_register_pseudo_op=no
6567 rm -f conftest.s conftest.o
6572 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
6573 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
6574 cat >> confdefs.h <<\EOF
6575 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6580 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
6581 echo "configure:6582: checking assembler supports -relax" >&5
6582 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
6583 echo $ac_n "(cached) $ac_c" 1>&6
6586 gcc_cv_as_relax_opt=unknown
6587 if test x$gcc_cv_as != x; then
6588 # Check if gas supports -relax
6589 echo ".text" > conftest.s
6590 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
6591 gcc_cv_as_relax_opt=yes
6593 gcc_cv_as_relax_opt=no
6595 rm -f conftest.s conftest.o
6600 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
6601 if test "x$gcc_cv_as_relax_opt" = xyes; then
6602 cat >> confdefs.h <<\EOF
6603 #define HAVE_AS_RELAX_OPTION 1
6610 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
6611 echo "configure:6612: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
6612 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
6613 echo $ac_n "(cached) $ac_c" 1>&6
6616 if test -n "$gcc_cv_as"; then
6617 echo ".xword foo" > conftest.s
6618 gcc_cv_as_flags64=no
6619 for flag in "-xarch=v9" "-64 -Av9"; do
6620 if $gcc_cv_as $flag -o conftest.o conftest.s \
6621 > /dev/null 2>&1; then
6622 gcc_cv_as_flags64=$flag
6626 rm -f conftest.s conftest.o
6628 if test "$gas" = yes; then
6629 gcc_cv_as_flags64="-64 -Av9"
6631 gcc_cv_as_flags64="-xarch=v9"
6637 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
6638 if test "x$gcc_cv_as_flags64" = xno; then
6640 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6641 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
6644 cat >> confdefs.h <<EOF
6645 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
6650 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
6654 if test "x$gcc_cv_as_flags64" != xno; then
6655 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
6656 echo "configure:6657: checking for assembler offsetable %lo() support" >&5
6657 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6
6661 gcc_cv_as_offsetable_lo10=unknown
6662 if test "x$gcc_cv_as" != x; then
6663 # Check if assembler has offsetable %lo()
6664 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
6665 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
6666 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
6668 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
6669 > /dev/null 2>&1; then
6670 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
6671 gcc_cv_as_offsetable_lo10=no
6673 gcc_cv_as_offsetable_lo10=yes
6676 gcc_cv_as_offsetable_lo10=no
6678 rm -f conftest.s conftest.o conftest1.s conftest1.o
6683 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
6684 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
6685 cat >> confdefs.h <<\EOF
6686 #define HAVE_AS_OFFSETABLE_LO10 1
6694 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
6695 echo "configure:6696: checking assembler instructions" >&5
6696 gcc_cv_as_instructions=
6697 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6698 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
6699 gcc_cv_as_instructions="filds fists"
6701 elif test x$gcc_cv_as != x; then
6702 set "filds fists" "filds mem; fists mem"
6705 echo "$2" > conftest.s
6706 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
6707 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
6711 rm -f conftest.s conftest.o
6713 if test x"$gcc_cv_as_instructions" != x; then
6714 cat >> confdefs.h <<EOF
6715 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
6719 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
6723 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
6724 echo "configure:6725: checking assembler dwarf2 debug_line support" >&5
6725 gcc_cv_as_dwarf2_debug_line=no
6726 # ??? Not all targets support dwarf2 debug_line, even within a version
6727 # of gas. Moreover, we need to emit a valid instruction to trigger any
6728 # info to the output file. So, as supported targets are added to gas 2.11,
6729 # add some instruction here to (also) show we expect this might work.
6730 # ??? Once 2.11 is released, probably need to add first known working
6731 # version to the per-target configury.
6733 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-*)
6740 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x;
6742 if test "$gcc_cv_gas_major_version" -eq 2 \
6743 -a "$gcc_cv_gas_minor_version" -ge 11 \
6744 -o "$gcc_cv_gas_major_version" -gt 2 \
6745 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \
6746 && test x"$insn" != x ; then
6747 gcc_cv_as_dwarf2_debug_line="yes"
6749 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
6750 echo ' .file 1 "conftest.s"' > conftest.s
6751 echo ' .loc 1 3 0' >> conftest.s
6752 echo " $insn" >> conftest.s
6753 # ??? This fails with non-gnu grep.
6754 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
6755 && grep debug_line conftest.o > /dev/null 2>&1 ; then
6756 # The .debug_line file table must be in the exact order that
6757 # we specified the files, since these indicies are also used
6758 # by DW_AT_decl_file. Approximate this test by testing if
6759 # the assembler bitches if the same index is assigned twice.
6760 echo ' .file 1 "foo.s"' > conftest.s
6761 echo ' .file 1 "bar.s"' >> conftest.s
6762 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1
6764 gcc_cv_as_dwarf2_debug_line="no"
6766 gcc_cv_as_dwarf2_debug_line="yes"
6769 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
6771 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
6772 cat >> confdefs.h <<\EOF
6773 #define HAVE_AS_DWARF2_DEBUG_LINE 1
6777 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
6779 # Figure out what language subdirectories are present.
6780 # Look if the user specified --enable-languages="..."; if not, use
6781 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6783 if test x"${enable_languages+set}" != xset; then
6784 if test x"${LANGUAGES+set}" = xset; then
6785 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
6787 enable_languages=all
6790 if test x"${enable_languages}" = x; then
6791 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
6795 # First scan to see if an enabled language requires some other language.
6796 # We assume that a given config-lang.in will list all the language
6797 # front ends it requires, even if some are required indirectly.
6798 for lang in ${srcdir}/*/config-lang.in ..
6803 # The odd quoting in the next line works around
6804 # an apparent bug in bash 1.12 on linux.
6805 ${srcdir}/[*]/config-lang.in)
6808 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6809 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
6810 for other in $this_lang_requires
6812 case ,${enable_languages}, in
6818 enable_languages="$enable_languages,$other"
6827 for lang in ${srcdir}/*/config-lang.in ..
6831 # The odd quoting in the next line works around
6832 # an apparent bug in bash 1.12 on linux.
6833 ${srcdir}/[*]/config-lang.in) ;;
6835 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6836 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
6837 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
6838 if test "x$lang_alias" = x
6840 echo "$lang doesn't set \$language." 1>&2
6843 case ${build_by_default},${enable_languages}, in
6844 *,$lang_alias,*) add_this_lang=yes ;;
6845 no,*) add_this_lang=no ;;
6846 *,all,*) add_this_lang=yes ;;
6847 *) add_this_lang=no ;;
6849 if test x"${add_this_lang}" = xyes; then
6851 ${srcdir}/ada/config-lang.in)
6852 if test x$have_gnat = xyes ; then
6853 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6857 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
6865 # Make gthr-default.h if we have a thread file.
6867 if test $thread_file != single; then
6868 rm -f gthr-default.h
6869 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
6870 gthread_flags=-DHAVE_GTHR_DEFAULT
6874 # Find out what GC implementation we want, or may, use.
6875 # Check whether --with-gc or --without-gc was given.
6876 if test "${with_gc+set}" = set; then
6883 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
6891 echo "Using $GGC for garbage collection."
6893 # Use the system's zlib library.
6895 zlibinc="-I\$(srcdir)/../zlib"
6896 # Check whether --with-system-zlib or --without-system-zlib was given.
6897 if test "${with_system_zlib+set}" = set; then
6898 withval="$with_system_zlib"
6907 cat >> confdefs.h <<EOF
6908 #define ENABLE_STD_NAMESPACE 1
6913 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
6914 echo "configure:6915: checking whether to enable maintainer-specific portions of Makefiles" >&5
6915 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6916 if test "${enable_maintainer_mode+set}" = set; then
6917 enableval="$enable_maintainer_mode"
6918 maintainer_mode=$enableval
6924 echo "$ac_t""$maintainer_mode" 1>&6
6926 if test "$maintainer_mode" = "yes"; then
6932 # Make empty files to contain the specs and options for each language.
6933 # Then add #include lines to for a compiler that has specs and/or options.
6938 rm -f specs.h options.h gencheck.h
6939 touch specs.h options.h gencheck.h
6940 for subdir in . $subdirs
6942 if test -f $srcdir/$subdir/lang-specs.h; then
6943 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
6944 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
6946 if test -f $srcdir/$subdir/lang-options.h; then
6947 echo "#include \"$subdir/lang-options.h\"" >>options.h
6948 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
6950 if test -f $srcdir/$subdir/$subdir-tree.def; then
6951 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
6952 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
6956 # These (without "all_") are set in each config-lang.in.
6957 # `language' must be a single word so is spelled singularly.
6963 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
6964 # List of language makefile fragments.
6969 # Add the language fragments.
6970 # Languages are added via two mechanisms. Some information must be
6971 # recorded in makefile variables, these are defined in config-lang.in.
6972 # We accumulate them and plug them into the main Makefile.
6973 # The other mechanism is a set of hooks for each of the main targets
6974 # like `clean', `install', etc.
6976 language_fragments="Make-lang"
6977 language_hooks="Make-hooks"
6979 for s in .. $subdirs
6991 . ${srcdir}/$s/config-lang.in
6992 if test "x$language" = x
6994 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
6997 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
6998 if test -f ${srcdir}/$s/Makefile.in
6999 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
7001 all_languages="$all_languages $language"
7002 if test "x$boot_language" = xyes
7004 all_boot_languages="$all_boot_languages $language"
7006 all_compilers="$all_compilers $compilers"
7007 all_stagestuff="$all_stagestuff $stagestuff"
7008 all_diff_excludes="$all_diff_excludes $diff_excludes"
7009 all_headers="$all_headers $headers"
7010 all_outputs="$all_outputs $outputs"
7011 all_lib2funcs="$all_lib2funcs $lib2funcs"
7016 for language in .. $all_languages
7018 if test $language != ".."
7020 check_languages="$check_languages check-$language"
7024 # Since we can't use `::' targets, we link each language in
7025 # with a set of hooks, reached indirectly via lang.${target}.
7029 target_list="all.build all.cross start.encap rest.encap \
7031 install-normal install-common install-info install-man \
7033 mostlyclean clean distclean extraclean maintainer-clean \
7034 stage1 stage2 stage3 stage4"
7035 for t in $target_list
7038 for lang in .. $all_languages
7040 if test $lang != ".."; then
7044 echo "lang.$t: $x" >> Make-hooks
7049 echo "dir ." > .gdbinit
7050 echo "dir ${srcdir}" >> .gdbinit
7051 if test x$gdb_needs_out_file_path = xyes
7053 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7055 if test "x$subdirs" != x; then
7058 echo "dir ${srcdir}/$s" >> .gdbinit
7061 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
7063 # Define variables host_canonical and build_canonical
7064 # because some Cygnus local changes in the Makefile depend on them.
7065 build_canonical=${build}
7066 host_canonical=${host}
7068 if test "${host}" != "${target}" ; then
7069 target_subdir=${target}/
7075 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
7076 # absolute path for gcc_tooldir based on inserting the number of up-directory
7077 # movements required to get from $(exec_prefix) to $(prefix) into the basic
7078 # $(libsubdir)/@(unlibsubdir) based path.
7079 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
7080 # make and thus we'd get different behavior depending on where we built the
7082 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
7083 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
7085 # An explanation of the sed strings:
7086 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
7087 # -e 's|/$||' match a trailing forward slash and eliminates it
7088 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
7089 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
7091 # (*) Note this pattern overwrites the first character of the string
7092 # with a forward slash if one is not already present. This is not a
7093 # problem because the exact names of the sub-directories concerned is
7094 # unimportant, just the number of them matters.
7096 # The practical upshot of these patterns is like this:
7098 # prefix exec_prefix result
7099 # ------ ----------- ------
7101 # /foo/ /foo/bar ../
7102 # /foo /foo/bar/ ../
7103 # /foo/ /foo/bar/ ../
7104 # /foo /foo/bar/ugg ../../
7107 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
7112 # Find a directory in which to install a shared libgcc.
7114 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
7115 if test "${enable_version_specific_runtime_libs+set}" = set; then
7116 enableval="$enable_version_specific_runtime_libs"
7121 # Check whether --with-slibdir or --without-slibdir was given.
7122 if test "${with_slibdir+set}" = set; then
7123 withval="$with_slibdir"
7124 slibdir="$with_slibdir"
7126 if test "${enable_version_specific_runtime_libs+set}" = set; then
7127 slibdir='$(libsubdir)'
7128 elif test "$host" != "$target"; then
7129 slibdir='$(build_tooldir)/lib'
7137 # Nothing to do for FLOAT_H, float_format already handled.
7141 # Process the language and host/target makefile fragments.
7142 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
7144 # Substitute configuration variables
7215 # Echo that links are built
7216 if test x$host = x$target
7224 if test x$host != x$build
7226 str3=" on a $build system"
7229 if test "x$str2" != x || test "x$str3" != x
7234 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
7236 if test "x$str2" != x || test "x$str3" != x
7238 echo " ${str2}${str3}." 1>&2
7241 # Truncate the target if necessary
7242 if test x$host_truncate_target != x; then
7243 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
7246 # Configure the subdirectories
7247 # AC_CONFIG_SUBDIRS($subdirs)
7249 # Create the Makefile
7250 # and configure language subdirectories
7252 cat > confcache <<\EOF
7253 # This file is a shell script that caches the results of configure
7254 # tests run on this system so they can be shared between configure
7255 # scripts and configure runs. It is not useful on other systems.
7256 # If it contains results you don't want to keep, you may remove or edit it.
7258 # By default, configure uses ./config.cache as the cache file,
7259 # creating it if it does not exist already. You can give configure
7260 # the --cache-file=FILE option to use a different cache file; that is
7261 # what configure does when it calls configure scripts in
7262 # subdirectories, so they share the cache.
7263 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7264 # config.status only pays attention to the cache file if you give it the
7265 # --recheck option to rerun configure.
7268 # The following way of writing the cache mishandles newlines in values,
7269 # but we know of no workaround that is simple, portable, and efficient.
7270 # So, don't put newlines in cache variables' values.
7271 # Ultrix sh set writes to stderr and can't be redirected directly,
7272 # and sets the high bit in the cache file unless we assign to the vars.
7274 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7276 # `set' does not quote correctly, so add quotes (double-quote substitution
7277 # turns \\\\ into \\, and sed turns \\ into \).
7279 -e "s/'/'\\\\''/g" \
7280 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7283 # `set' quotes correctly as required by POSIX, so do not add quotes.
7284 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7287 if cmp -s $cache_file confcache; then
7290 if test -w $cache_file; then
7291 echo "updating cache $cache_file"
7292 cat confcache > $cache_file
7294 echo "not updating unwritable cache $cache_file"
7299 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7302 # Let make expand exec_prefix.
7303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7305 # Any assignment to VPATH causes Sun make to only execute
7306 # the first set of double-colon rules, so remove it if not needed.
7307 # If there is a colon in the path, we need to keep it.
7308 if test "x$srcdir" = x.; then
7309 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7312 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7314 DEFS=-DHAVE_CONFIG_H
7316 # Without the "./", some shells look in PATH for config.status.
7317 : ${CONFIG_STATUS=./config.status}
7319 echo creating $CONFIG_STATUS
7320 rm -f $CONFIG_STATUS
7321 cat > $CONFIG_STATUS <<EOF
7323 # Generated automatically by configure.
7324 # Run this file to recreate the current configuration.
7325 # This directory was configured as follows,
7326 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7328 # $0 $ac_configure_args
7330 # Compiler output produced by configure, useful for debugging
7331 # configure, is in ./config.log if it exists.
7333 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7336 case "\$ac_option" in
7337 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7338 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7339 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7340 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7341 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7343 -help | --help | --hel | --he | --h)
7344 echo "\$ac_cs_usage"; exit 0 ;;
7345 *) echo "\$ac_cs_usage"; exit 1 ;;
7349 ac_given_srcdir=$srcdir
7351 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7353 cat >> $CONFIG_STATUS <<EOF
7355 # Protect against being on the right side of a sed subst in config.status.
7356 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7357 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7361 s%@CFLAGS@%$CFLAGS%g
7362 s%@CPPFLAGS@%$CPPFLAGS%g
7363 s%@CXXFLAGS@%$CXXFLAGS%g
7364 s%@FFLAGS@%$FFLAGS%g
7366 s%@LDFLAGS@%$LDFLAGS%g
7368 s%@exec_prefix@%$exec_prefix%g
7369 s%@prefix@%$prefix%g
7370 s%@program_transform_name@%$program_transform_name%g
7371 s%@bindir@%$bindir%g
7372 s%@sbindir@%$sbindir%g
7373 s%@libexecdir@%$libexecdir%g
7374 s%@datadir@%$datadir%g
7375 s%@sysconfdir@%$sysconfdir%g
7376 s%@sharedstatedir@%$sharedstatedir%g
7377 s%@localstatedir@%$localstatedir%g
7378 s%@libdir@%$libdir%g
7379 s%@includedir@%$includedir%g
7380 s%@oldincludedir@%$oldincludedir%g
7381 s%@infodir@%$infodir%g
7382 s%@mandir@%$mandir%g
7383 s%@enable_multilib@%$enable_multilib%g
7384 s%@enable_shared@%$enable_shared%g
7386 s%@host_alias@%$host_alias%g
7387 s%@host_cpu@%$host_cpu%g
7388 s%@host_vendor@%$host_vendor%g
7389 s%@host_os@%$host_os%g
7390 s%@target@%$target%g
7391 s%@target_alias@%$target_alias%g
7392 s%@target_cpu@%$target_cpu%g
7393 s%@target_vendor@%$target_vendor%g
7394 s%@target_os@%$target_os%g
7396 s%@build_alias@%$build_alias%g
7397 s%@build_cpu@%$build_cpu%g
7398 s%@build_vendor@%$build_vendor%g
7399 s%@build_os@%$build_os%g
7401 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
7402 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
7403 s%@strict1_warn@%$strict1_warn%g
7405 s%@warn_cflags@%$warn_cflags%g
7406 s%@stage1_cflags@%$stage1_cflags%g
7407 s%@SET_MAKE@%$SET_MAKE%g
7411 s%@RANLIB@%$RANLIB%g
7412 s%@INSTALL@%$INSTALL%g
7413 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7414 s%@INSTALL_DATA@%$INSTALL_DATA%g
7415 s%@have_gnat@%$have_gnat%g
7416 s%@have_mktemp_command@%$have_mktemp_command%g
7417 s%@MAKEINFO@%$MAKEINFO%g
7418 s%@BUILD_INFO@%$BUILD_INFO%g
7419 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
7422 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
7423 s%@vfprintf@%$vfprintf%g
7424 s%@doprint@%$doprint%g
7425 s%@strstr@%$strstr%g
7426 s%@manext@%$manext%g
7427 s%@objext@%$objext%g
7428 s%@PACKAGE@%$PACKAGE%g
7429 s%@VERSION@%$VERSION%g
7430 s%@CHECK_PO@%$CHECK_PO%g
7431 s%@USE_NLS@%$USE_NLS%g
7432 s%@MSGFMT@%$MSGFMT%g
7433 s%@GMSGFMT@%$GMSGFMT%g
7434 s%@XGETTEXT@%$XGETTEXT%g
7435 s%@GENCAT@%$GENCAT%g
7436 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7437 s%@CATALOGS@%$CATALOGS%g
7438 s%@CATOBJEXT@%$CATOBJEXT%g
7439 s%@DATADIRNAME@%$DATADIRNAME%g
7440 s%@GMOFILES@%$GMOFILES%g
7441 s%@INSTOBJEXT@%$INSTOBJEXT%g
7442 s%@INTLDEPS@%$INTLDEPS%g
7443 s%@INTLLIBS@%$INTLLIBS%g
7444 s%@INTLOBJS@%$INTLOBJS%g
7445 s%@POFILES@%$POFILES%g
7447 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7449 s%@GT_YES@%$GT_YES%g
7450 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7452 s%@inhibit_libc@%$inhibit_libc%g
7453 s%@gthread_flags@%$gthread_flags%g
7455 s%@zlibdir@%$zlibdir%g
7456 s%@zlibinc@%$zlibinc%g
7458 s%@build_canonical@%$build_canonical%g
7459 s%@host_canonical@%$host_canonical%g
7460 s%@target_subdir@%$target_subdir%g
7461 s%@gcc_tooldir@%$gcc_tooldir%g
7462 s%@dollar@%$dollar%g
7463 s%@slibdir@%$slibdir%g
7464 s%@objdir@%$objdir%g
7465 s%@subdirs@%$subdirs%g
7466 s%@all_boot_languages@%$all_boot_languages%g
7467 s%@all_compilers@%$all_compilers%g
7468 s%@all_diff_excludes@%$all_diff_excludes%g
7469 s%@all_headers@%$all_headers%g
7470 s%@all_lang_makefiles@%$all_lang_makefiles%g
7471 s%@all_languages@%$all_languages%g
7472 s%@all_lib2funcs@%$all_lib2funcs%g
7473 s%@all_stagestuff@%$all_stagestuff%g
7474 s%@build_exeext@%$build_exeext%g
7475 s%@build_install_headers_dir@%$build_install_headers_dir%g
7476 s%@build_xm_file_list@%$build_xm_file_list%g
7477 s%@build_xm_file@%$build_xm_file%g
7478 s%@build_xm_defines@%$build_xm_defines%g
7479 s%@check_languages@%$check_languages%g
7480 s%@cc_set_by_configure@%$cc_set_by_configure%g
7481 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
7482 s%@cpp_install_dir@%$cpp_install_dir%g
7483 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
7484 s%@dep_tmake_file@%$dep_tmake_file%g
7485 s%@extra_c_flags@%$extra_c_flags%g
7486 s%@extra_headers_list@%$extra_headers_list%g
7487 s%@extra_objs@%$extra_objs%g
7488 s%@extra_parts@%$extra_parts%g
7489 s%@extra_passes@%$extra_passes%g
7490 s%@extra_programs@%$extra_programs%g
7491 s%@float_h_file@%$float_h_file%g
7492 s%@gcc_config_arguments@%$gcc_config_arguments%g
7493 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
7494 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
7495 s%@gcc_version@%$gcc_version%g
7496 s%@gcc_version_full@%$gcc_version_full%g
7497 s%@gcc_version_trigger@%$gcc_version_trigger%g
7498 s%@host_exeext@%$host_exeext%g
7499 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
7500 s%@host_xm_file_list@%$host_xm_file_list%g
7501 s%@host_xm_file@%$host_xm_file%g
7502 s%@host_xm_defines@%$host_xm_defines%g
7503 s%@install@%$install%g
7504 s%@lang_options_files@%$lang_options_files%g
7505 s%@lang_specs_files@%$lang_specs_files%g
7506 s%@lang_tree_files@%$lang_tree_files%g
7507 s%@local_prefix@%$local_prefix%g
7508 s%@maybe_use_collect2@%$maybe_use_collect2%g
7509 s%@md_file@%$md_file%g
7510 s%@objc_boehm_gc@%$objc_boehm_gc%g
7511 s%@out_file@%$out_file%g
7512 s%@out_object_file@%$out_object_file%g
7513 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
7514 s%@symbolic_link@%$symbolic_link%g
7515 s%@thread_file@%$thread_file%g
7516 s%@tm_file_list@%$tm_file_list%g
7517 s%@tm_file@%$tm_file%g
7518 s%@tm_p_file_list@%$tm_p_file_list%g
7519 s%@tm_p_file@%$tm_p_file%g
7520 s%@xm_file@%$xm_file%g
7521 s%@xm_defines@%$xm_defines%g
7522 s%@will_use_collect2@%$will_use_collect2%g
7523 s%@c_target_objs@%$c_target_objs%g
7524 s%@cxx_target_objs@%$cxx_target_objs%g
7525 s%@target_cpu_default@%$target_cpu_default%g
7526 /@target_overrides@/r $target_overrides
7527 s%@target_overrides@%%g
7528 /@host_overrides@/r $host_overrides
7529 s%@host_overrides@%%g
7530 s%@cross_defines@%$cross_defines%g
7531 /@cross_overrides@/r $cross_overrides
7532 s%@cross_overrides@%%g
7533 /@build_overrides@/r $build_overrides
7534 s%@build_overrides@%%g
7535 /@language_fragments@/r $language_fragments
7536 s%@language_fragments@%%g
7537 /@language_hooks@/r $language_hooks
7538 s%@language_hooks@%%g
7543 cat >> $CONFIG_STATUS <<\EOF
7545 # Split the substitutions into bite-sized pieces for seds with
7546 # small command number limits, like on Digital OSF/1 and HP-UX.
7547 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7548 ac_file=1 # Number of current file.
7549 ac_beg=1 # First line for current file.
7550 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7553 while $ac_more_lines; do
7554 if test $ac_beg -gt 1; then
7555 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7557 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7559 if test ! -s conftest.s$ac_file; then
7561 rm -f conftest.s$ac_file
7563 if test -z "$ac_sed_cmds"; then
7564 ac_sed_cmds="sed -f conftest.s$ac_file"
7566 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7568 ac_file=`expr $ac_file + 1`
7570 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7573 if test -z "$ac_sed_cmds"; then
7578 cat >> $CONFIG_STATUS <<EOF
7580 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
7582 cat >> $CONFIG_STATUS <<\EOF
7583 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7584 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7586 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7587 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7588 *) ac_file_in="${ac_file}.in" ;;
7591 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7593 # Remove last slash and all that follows it. Not all systems have dirname.
7594 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7595 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7596 # The file is in a subdirectory.
7597 test ! -d "$ac_dir" && mkdir "$ac_dir"
7598 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7599 # A "../" for each directory in $ac_dir_suffix.
7600 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7602 ac_dir_suffix= ac_dots=
7605 case "$ac_given_srcdir" in
7607 if test -z "$ac_dots"; then top_srcdir=.
7608 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7609 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7611 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7612 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7616 echo creating "$ac_file"
7618 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7620 *Makefile*) ac_comsub="1i\\
7621 # $configure_input" ;;
7625 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7627 s%@configure_input@%$configure_input%g
7628 s%@srcdir@%$srcdir%g
7629 s%@top_srcdir@%$top_srcdir%g
7630 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7634 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7635 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7637 # ac_d sets the value in "#define NAME VALUE" lines.
7638 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7639 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7642 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7643 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7644 ac_uB='\([ ]\)%\1#\2define\3'
7647 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7648 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7649 ac_eB='$%\1#\2define\3'
7653 if test "${CONFIG_HEADERS+set}" != set; then
7655 cat >> $CONFIG_STATUS <<EOF
7656 CONFIG_HEADERS="auto-host.h:config.in"
7658 cat >> $CONFIG_STATUS <<\EOF
7660 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7663 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7664 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7665 *) ac_file_in="${ac_file}.in" ;;
7668 echo creating $ac_file
7670 rm -f conftest.frag conftest.in conftest.out
7671 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7672 cat $ac_file_inputs > conftest.in
7676 # Transform confdefs.h into a sed script conftest.vals that substitutes
7677 # the proper values into config.h.in to produce config.h. And first:
7678 # Protect against being on the right side of a sed subst in config.status.
7679 # Protect against being in an unquoted here document in config.status.
7681 cat > conftest.hdr <<\EOF
7684 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7688 sed -n -f conftest.hdr confdefs.h > conftest.vals
7691 # This sed command replaces #undef with comments. This is necessary, for
7692 # example, in the case of _POSIX_SOURCE, which is predefined and required
7693 # on some systems where configure will not decide to define it.
7694 cat >> conftest.vals <<\EOF
7695 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7698 # Break up conftest.vals because some shells have a limit on
7699 # the size of here documents, and old seds have small limits too.
7704 ac_lines=`grep -c . conftest.vals`
7705 # grep -c gives empty output for an empty file on some AIX systems.
7706 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7707 # Write a limited-size here document to conftest.frag.
7708 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7709 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7711 sed -f conftest.frag conftest.in > conftest.out
7713 mv conftest.out conftest.in
7715 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7717 mv conftest.tail conftest.vals
7721 cat >> $CONFIG_STATUS <<\EOF
7722 rm -f conftest.frag conftest.h
7723 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7724 cat conftest.in >> conftest.h
7726 if cmp -s $ac_file conftest.h 2>/dev/null; then
7727 echo "$ac_file is unchanged"
7730 # Remove last slash and all that follows it. Not all systems have dirname.
7731 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7732 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7733 # The file is in a subdirectory.
7734 test ! -d "$ac_dir" && mkdir "$ac_dir"
7737 mv conftest.h $ac_file
7743 cat >> $CONFIG_STATUS <<EOF
7744 ac_sources="$nls_cv_header_libgt"
7745 ac_dests="$nls_cv_header_intl"
7748 cat >> $CONFIG_STATUS <<\EOF
7749 srcdir=$ac_given_srcdir
7750 while test -n "$ac_sources"; do
7751 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7752 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7754 echo "linking $srcdir/$ac_source to $ac_dest"
7756 if test ! -r $srcdir/$ac_source; then
7757 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7761 # Make relative symlinks.
7762 # Remove last slash and all that follows it. Not all systems have dirname.
7763 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7764 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7765 # The dest file is in a subdirectory.
7766 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7767 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7768 # A "../" for each directory in $ac_dest_dir_suffix.
7769 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7771 ac_dest_dir_suffix= ac_dots=
7775 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7776 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7779 # Make a symlink if possible; otherwise try a hard link.
7780 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7781 ln $srcdir/$ac_source $ac_dest; then :
7783 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7787 cat >> $CONFIG_STATUS <<EOF
7793 target_alias='${target_alias}'
7795 subdirs='${subdirs}'
7796 symbolic_link='${symbolic_link}'
7797 program_transform_set='${program_transform_set}'
7798 program_transform_name='${program_transform_name}'
7799 dep_host_xmake_file='${dep_host_xmake_file}'
7800 host_xmake_file='${host_xmake_file}'
7801 dep_tmake_file='${dep_tmake_file}'
7802 tmake_file='${tmake_file}'
7803 thread_file='${thread_file}'
7804 gcc_config_arguments='${gcc_config_arguments}'
7805 gcc_version='${gcc_version}'
7806 gcc_version_full='${gcc_version_full}'
7807 gcc_version_trigger='${gcc_version_trigger}'
7808 local_prefix='${local_prefix}'
7809 build_install_headers_dir='${build_install_headers_dir}'
7810 build_exeext='${build_exeext}'
7811 host_exeext='${host_exeext}'
7812 out_file='${out_file}'
7813 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7814 SET_MAKE='${SET_MAKE}'
7815 target_list='${target_list}'
7816 target_overrides='${target_overrides}'
7817 host_overrides='${host_overrides}'
7818 cross_defines='${cross_defines}'
7819 cross_overrides='${cross_overrides}'
7820 build_overrides='${build_overrides}'
7821 cpp_install_dir='${cpp_install_dir}'
7824 cat >> $CONFIG_STATUS <<\EOF
7825 case "$CONFIG_FILES" in *po/Makefile.in*)
7826 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7829 case x$CONFIG_HEADERS in
7830 xauto-host.h:config.in)
7833 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
7834 # bootstrapping and the installation procedure can still use
7835 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
7836 # FLAGS_TO_PASS has been modified to solve the problem there.
7837 # This is virtually a duplicate of what happens in configure.lang; we do
7838 # an extra check to make sure this only happens if ln -s can be used.
7839 if test "$symbolic_link" = "ln -s"; then
7840 for d in .. ${subdirs} ; do
7841 if test $d != ..; then
7844 for t in stage1 stage2 stage3 stage4 include
7847 $symbolic_link ../$t $t 2>/dev/null
7853 # Avoid having to add intl to our include paths.
7854 if test -f intl/libintl.h; then
7855 echo creating libintl.h
7856 echo '#include "intl/libintl.h"' >libintl.h
7861 chmod +x $CONFIG_STATUS
7862 rm -fr confdefs* $ac_clean_files
7863 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1