3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
30 enable libstdc++-v3 for building and installation"
32 --with-gxx-include-dir=DIR
33 specifies directory to put g++ header files."
35 --enable-checking[=LIST]
36 enable expensive run-time checks. With LIST,
37 enable only specific categories of checks.
38 Categories are: misc,tree,rtl,gc,gcac; default
41 --disable-cpp don't provide a user-visible C preprocessor."
43 --with-cpp-install-dir=DIR
44 install the user visible C preprocessor in DIR
45 (relative to PREFIX) as well as PREFIX/bin."
47 --enable-c-mbchar Enable multibyte characters for C and C++."
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 --with-dwarf2 force the default debug format to be DWARF2."
57 --disable-shared don't provide a shared libgcc."
59 --enable-nls use Native Language Support (default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 --with-gc={simple,page} Choose the garbage collection mechanism to use
78 --with-system-zlib use installed libz"
81 select the new abi for g++. You must select an ABI
82 at configuration time, so that the correct runtime
83 support is built. You cannot mix ABIs."
85 --enable-maintainer-mode enable make rules and dependencies not useful
86 (and sometimes confusing) to the casual installer"
88 --enable-version-specific-runtime-libs Specify that runtime libraries shou
89 ld be installed in a compiler-specific directory "
91 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
93 # Initialize some variables set by options.
94 # The variables have the same names as the options, with
95 # dashes changed to underlines.
97 cache_file=./config.cache
106 program_transform_name=s,x,x,
115 bindir='${exec_prefix}/bin'
116 sbindir='${exec_prefix}/sbin'
117 libexecdir='${exec_prefix}/libexec'
118 datadir='${prefix}/share'
119 sysconfdir='${prefix}/etc'
120 sharedstatedir='${prefix}/com'
121 localstatedir='${prefix}/var'
122 libdir='${exec_prefix}/lib'
123 includedir='${prefix}/include'
124 oldincludedir='/usr/include'
125 infodir='${prefix}/info'
126 mandir='${prefix}/man'
128 # Initialize some other variables.
131 SHELL=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev=cache_file ;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
176 datadir="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev=exec_prefix ;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --site-file=FILE use FILE as the site file
225 --version print the version of autoconf that created configure
226 Directory and file names:
227 --prefix=PREFIX install architecture-independent files in PREFIX
229 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
231 --bindir=DIR user executables in DIR [EPREFIX/bin]
232 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
233 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
234 --datadir=DIR read-only architecture-independent data in DIR
236 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
237 --sharedstatedir=DIR modifiable architecture-independent data in DIR
239 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
240 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
241 --includedir=DIR C header files in DIR [PREFIX/include]
242 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
243 --infodir=DIR info documentation in DIR [PREFIX/info]
244 --mandir=DIR man documentation in DIR [PREFIX/man]
245 --srcdir=DIR find the sources in DIR [configure dir or ..]
246 --program-prefix=PREFIX prepend PREFIX to installed program names
247 --program-suffix=SUFFIX append SUFFIX to installed program names
248 --program-transform-name=PROGRAM
249 run sed PROGRAM on installed program names
253 --build=BUILD configure for building on BUILD [BUILD=HOST]
254 --host=HOST configure for HOST [guessed]
255 --target=TARGET configure for TARGET [TARGET=HOST]
256 Features and packages:
257 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
258 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
259 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
260 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
261 --x-includes=DIR X include files are in DIR
262 --x-libraries=DIR X library files are in DIR
264 if test -n "$ac_help"; then
265 echo "--enable and --with options recognized:$ac_help"
269 -host | --host | --hos | --ho)
271 -host=* | --host=* | --hos=* | --ho=*)
274 -includedir | --includedir | --includedi | --included | --include \
275 | --includ | --inclu | --incl | --inc)
276 ac_prev=includedir ;;
277 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
278 | --includ=* | --inclu=* | --incl=* | --inc=*)
279 includedir="$ac_optarg" ;;
281 -infodir | --infodir | --infodi | --infod | --info | --inf)
283 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
284 infodir="$ac_optarg" ;;
286 -libdir | --libdir | --libdi | --libd)
288 -libdir=* | --libdir=* | --libdi=* | --libd=*)
289 libdir="$ac_optarg" ;;
291 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
292 | --libexe | --libex | --libe)
293 ac_prev=libexecdir ;;
294 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
295 | --libexe=* | --libex=* | --libe=*)
296 libexecdir="$ac_optarg" ;;
298 -localstatedir | --localstatedir | --localstatedi | --localstated \
299 | --localstate | --localstat | --localsta | --localst \
300 | --locals | --local | --loca | --loc | --lo)
301 ac_prev=localstatedir ;;
302 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
303 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
304 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
305 localstatedir="$ac_optarg" ;;
307 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
309 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
310 mandir="$ac_optarg" ;;
313 # Obsolete; use --without-fp.
316 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
320 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
321 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
324 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
325 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
326 | --oldin | --oldi | --old | --ol | --o)
327 ac_prev=oldincludedir ;;
328 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
329 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
330 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
331 oldincludedir="$ac_optarg" ;;
333 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
335 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
336 prefix="$ac_optarg" ;;
338 -program-prefix | --program-prefix | --program-prefi | --program-pref \
339 | --program-pre | --program-pr | --program-p)
340 ac_prev=program_prefix ;;
341 -program-prefix=* | --program-prefix=* | --program-prefi=* \
342 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
343 program_prefix="$ac_optarg" ;;
345 -program-suffix | --program-suffix | --program-suffi | --program-suff \
346 | --program-suf | --program-su | --program-s)
347 ac_prev=program_suffix ;;
348 -program-suffix=* | --program-suffix=* | --program-suffi=* \
349 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
350 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
360 -program-transform-name=* | --program-transform-name=* \
361 | --program-transform-nam=* | --program-transform-na=* \
362 | --program-transform-n=* | --program-transform-=* \
363 | --program-transform=* | --program-transfor=* \
364 | --program-transfo=* | --program-transf=* \
365 | --program-trans=* | --program-tran=* \
366 | --progr-tra=* | --program-tr=* | --program-t=*)
367 program_transform_name="$ac_optarg" ;;
369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
370 | -silent | --silent | --silen | --sile | --sil)
373 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
375 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
377 sbindir="$ac_optarg" ;;
379 -sharedstatedir | --sharedstatedir | --sharedstatedi \
380 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
381 | --sharedst | --shareds | --shared | --share | --shar \
383 ac_prev=sharedstatedir ;;
384 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
385 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
386 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
388 sharedstatedir="$ac_optarg" ;;
390 -site | --site | --sit)
392 -site=* | --site=* | --sit=*)
395 -site-file | --site-file | --site-fil | --site-fi | --site-f)
397 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
398 sitefile="$ac_optarg" ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir="$ac_optarg" ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir="$ac_optarg" ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target="$ac_optarg" ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers)
421 echo "configure generated by autoconf version 2.13"
425 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
435 eval "with_${ac_package}='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes="$ac_optarg" ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries="$ac_optarg" ;;
464 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
469 echo "configure: warning: $ac_option: invalid host type" 1>&2
471 if test "x$nonopt" != xNONE; then
472 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 if test -n "$ac_prev"; then
481 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
484 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
486 # File descriptor usage:
489 # 2 errors and warnings
490 # 3 some systems may open it to /dev/tty
491 # 4 used on the Kubota Titan
492 # 6 checking for... messages and results
493 # 5 compiler messages saved in config.log
494 if test "$silent" = yes; then
502 This file contains any messages produced by compilers while
503 running configure, to aid debugging if configure makes a mistake.
506 # Strip out --no-create and --no-recursion so they do not pile up.
507 # Also quote any args containing shell metacharacters.
512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
513 | --no-cr | --no-c) ;;
514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
517 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
518 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
523 # Only set these to C if already set. These must not be set unconditionally
524 # because not all systems understand e.g. LANG=C (notably SCO).
525 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
526 # Non-C LC_CTYPE values break the ctype check.
527 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
528 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
529 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
530 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
533 rm -rf conftest* confdefs.h
534 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
537 # A filename unique to this package, relative to the directory that
538 # configure is in, which we can look for to find out if srcdir is correct.
539 ac_unique_file=tree.c
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
562 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564 # Prefer explicitly selected file to automatically selected ones.
565 if test -z "$sitefile"; then
566 if test -z "$CONFIG_SITE"; then
567 if test "x$prefix" != xNONE; then
568 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
570 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 CONFIG_SITE="$sitefile"
576 for ac_site_file in $CONFIG_SITE; do
577 if test -r "$ac_site_file"; then
578 echo "loading site script $ac_site_file"
583 if test -r "$cache_file"; then
584 echo "loading cache $cache_file"
587 echo "creating cache $cache_file"
592 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
593 ac_cpp='$CPP $CPPFLAGS'
594 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
595 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
596 cross_compiling=$ac_cv_prog_cc_cross
600 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
601 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
602 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
609 ac_n= ac_c='\c' ac_t=
617 symbolic_link='ln -s'
620 # Check for bogus environment variables.
621 # Test if LIBRARY_PATH contains the notation for the current directory
622 # since this would lead to problems installing/building glibc.
623 # LIBRARY_PATH contains the current directory if one of the following
625 # - one of the terminals (":" and ";") is the first or last sign
626 # - two terminals occur directly after each other
627 # - the path contains an element with a dot in it
628 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
629 echo "configure:630: checking LIBRARY_PATH variable" >&5
630 case ${LIBRARY_PATH} in
631 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
632 library_path_setting="contains current directory"
635 library_path_setting="ok"
638 echo "$ac_t""$library_path_setting" 1>&6
639 if test "$library_path_setting" != "ok"; then
640 { echo "configure: error:
641 *** LIBRARY_PATH shouldn't contain the current directory when
642 *** building gcc. Please change the environment variable
643 *** and run configure again." 1>&2; exit 1; }
646 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
647 # since this would lead to problems installing/building glibc.
648 # GCC_EXEC_PREFIX contains the current directory if one of the following
650 # - one of the terminals (":" and ";") is the first or last sign
651 # - two terminals occur directly after each other
652 # - the path contains an element with a dot in it
653 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
654 echo "configure:655: checking GCC_EXEC_PREFIX variable" >&5
655 case ${GCC_EXEC_PREFIX} in
656 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
657 gcc_exec_prefix_setting="contains current directory"
660 gcc_exec_prefix_setting="ok"
663 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
664 if test "$gcc_exec_prefix_setting" != "ok"; then
665 { echo "configure: error:
666 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
667 *** building gcc. Please change the environment variable
668 *** and run configure again." 1>&2; exit 1; }
671 # Check for additional parameters
674 # Check whether --with-gnu-ld or --without-gnu-ld was given.
675 if test "${with_gnu_ld+set}" = set; then
676 withval="$with_gnu_ld"
677 gnu_ld_flag="$with_gnu_ld"
683 # With pre-defined ld
684 # Check whether --with-ld or --without-ld was given.
685 if test "${with_ld+set}" = set; then
687 DEFAULT_LINKER="$with_ld"
690 if test x"${DEFAULT_LINKER+set}" = x"set"; then
691 if test ! -x "$DEFAULT_LINKER"; then
692 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
693 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
696 cat >> confdefs.h <<EOF
697 #define DEFAULT_LINKER "$DEFAULT_LINKER"
703 # Check whether --with-gnu-as or --without-gnu-as was given.
704 if test "${with_gnu_as+set}" = set; then
705 withval="$with_gnu_as"
706 gas_flag="$with_gnu_as"
712 # Check whether --with-as or --without-as was given.
713 if test "${with_as+set}" = set; then
715 DEFAULT_ASSEMBLER="$with_as"
718 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
719 if test ! -x "$DEFAULT_ASSEMBLER"; then
720 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
721 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
724 cat >> confdefs.h <<EOF
725 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
731 # Check whether --with-stabs or --without-stabs was given.
732 if test "${with_stabs+set}" = set; then
733 withval="$with_stabs"
741 # Check whether --with-elf or --without-elf was given.
742 if test "${with_elf+set}" = set; then
750 # Specify the local prefix
752 # Check whether --with-local-prefix or --without-local-prefix was given.
753 if test "${with_local_prefix+set}" = set; then
754 withval="$with_local_prefix"
756 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
758 *) local_prefix=$with_local_prefix ;;
763 # Default local prefix if it is empty
764 if test x$local_prefix = x; then
765 local_prefix=/usr/local
768 # Build a new-libstdc++ system (ie libstdc++-v3)
769 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
770 echo "configure:771: checking for libstdc++ to install" >&5
771 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
772 if test "${enable_libstdcxx_v3+set}" = set; then
773 enableval="$enable_libstdcxx_v3"
774 enable_libstdcxx_v3="$enableval"
776 enable_libstdcxx_v3=yes
780 if test x$enable_libstdcxx_v3 = xyes; then
781 echo "$ac_t""v3" 1>&6
785 echo "$ac_t""v2" 1>&6
790 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
791 # passed in by the toplevel make and thus we'd get different behavior
792 # depending on where we built the sources.
794 # Specify the g++ header file directory
795 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
796 if test "${with_gxx_include_dir+set}" = set; then
797 withval="$with_gxx_include_dir"
799 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
801 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
806 if test x${gcc_gxx_include_dir} = x; then
807 if test x${enable_version_specific_runtime_libs} = xyes; then
808 gcc_gxx_include_dir='${libsubdir}/include/g++'
810 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
811 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
815 # Enable expensive internal checks
816 # Check whether --enable-checking or --disable-checking was given.
817 if test "${enable_checking+set}" = set; then
818 enableval="$enable_checking"
823 ac_gc_always_collect=
824 case "${enableval}" in
825 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
827 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
828 set fnord $enableval; shift
833 misc) ac_checking=1 ;;
834 tree) ac_tree_checking=1 ;;
835 rtl) ac_rtl_checking=1 ;;
836 gc) ac_gc_checking=1 ;;
837 gcac) ac_gc_always_collect=1 ;;
838 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
845 # Enable some checks by default for development versions of GCC
846 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;
849 if test x$ac_checking != x ; then
850 cat >> confdefs.h <<\EOF
851 #define ENABLE_CHECKING 1
855 if test x$ac_tree_checking != x ; then
856 cat >> confdefs.h <<\EOF
857 #define ENABLE_TREE_CHECKING 1
861 if test x$ac_rtl_checking != x ; then
862 cat >> confdefs.h <<\EOF
863 #define ENABLE_RTL_CHECKING 1
867 if test x$ac_gc_checking != x ; then
868 cat >> confdefs.h <<\EOF
869 #define ENABLE_GC_CHECKING 1
873 if test x$ac_gc_always_collect != x ; then
874 cat >> confdefs.h <<\EOF
875 #define ENABLE_GC_ALWAYS_COLLECT 1
881 # Check whether --enable-cpp or --disable-cpp was given.
882 if test "${enable_cpp+set}" = set; then
883 enableval="$enable_cpp"
890 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
891 if test "${with_cpp_install_dir+set}" = set; then
892 withval="$with_cpp_install_dir"
893 if test x$withval = xyes; then
894 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
895 elif test x$withval != xno; then
896 cpp_install_dir=$withval
901 # Enable Multibyte Characters for C/C++
902 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
903 if test "${enable_c_mbchar+set}" = set; then
904 enableval="$enable_c_mbchar"
905 if test x$enable_c_mbchar != xno; then
906 cat >> confdefs.h <<\EOF
907 #define MULTIBYTE_CHARS 1
915 # Pass with no value to take the default
916 # Pass with a value to specify a thread package
917 # Check whether --enable-threads or --disable-threads was given.
918 if test "${enable_threads+set}" = set; then
919 enableval="$enable_threads"
926 enable_threads_flag=$enable_threads
927 # Check if a valid thread package
928 case x${enable_threads_flag} in
931 target_thread_file='single'
935 target_thread_file=''
937 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
938 xsolaris | xwin32 | xdce | xvxworks | xaix)
939 target_thread_file=$enable_threads_flag
942 echo "$enable_threads is an unknown thread package" 1>&2
947 # Check whether --enable-objc-gc or --disable-objc-gc was given.
948 if test "${enable_objc_gc+set}" = set; then
949 enableval="$enable_objc_gc"
950 if test x$enable_objc_gc = xno; then
960 # Check whether --with-dwarf2 or --without-dwarf2 was given.
961 if test "${with_dwarf2+set}" = set; then
962 withval="$with_dwarf2"
963 dwarf2="$with_dwarf2"
969 # Check whether --enable-shared or --disable-shared was given.
970 if test "${enable_shared+set}" = set; then
971 enableval="$enable_shared"
979 # Determine the host, build, and target systems
981 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
982 if test -f $ac_dir/install-sh; then
984 ac_install_sh="$ac_aux_dir/install-sh -c"
986 elif test -f $ac_dir/install.sh; then
988 ac_install_sh="$ac_aux_dir/install.sh -c"
992 if test -z "$ac_aux_dir"; then
993 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
995 ac_config_guess=$ac_aux_dir/config.guess
996 ac_config_sub=$ac_aux_dir/config.sub
997 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1000 # Do some error checking and defaulting for the host and target type.
1002 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1005 # 1. You are not allowed to specify --host, --target, and nonopt at the
1007 # 2. Host defaults to nonopt.
1008 # 3. If nonopt is not specified, then host defaults to the current host,
1009 # as determined by config.guess.
1010 # 4. Target and build default to nonopt.
1011 # 5. If nonopt is not specified, then target and build default to host.
1013 # The aliases save the names the user supplied, while $host etc.
1014 # will get canonicalized.
1015 case $host---$target---$nonopt in
1016 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1017 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1021 # Make sure we can run config.sub.
1022 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1023 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1026 echo $ac_n "checking host system type""... $ac_c" 1>&6
1027 echo "configure:1028: checking host system type" >&5
1030 case "$host_alias" in
1034 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1035 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1037 *) host_alias=$nonopt ;;
1041 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1042 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1043 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1044 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1045 echo "$ac_t""$host" 1>&6
1047 echo $ac_n "checking target system type""... $ac_c" 1>&6
1048 echo "configure:1049: checking target system type" >&5
1050 target_alias=$target
1051 case "$target_alias" in
1054 NONE) target_alias=$host_alias ;;
1055 *) target_alias=$nonopt ;;
1059 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1060 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1061 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1062 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1063 echo "$ac_t""$target" 1>&6
1065 echo $ac_n "checking build system type""... $ac_c" 1>&6
1066 echo "configure:1067: checking build system type" >&5
1069 case "$build_alias" in
1072 NONE) build_alias=$host_alias ;;
1073 *) build_alias=$nonopt ;;
1077 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1078 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081 echo "$ac_t""$build" 1>&6
1083 test "$host_alias" != "$target_alias" &&
1084 test "$program_prefix$program_suffix$program_transform_name" = \
1086 program_prefix=${target_alias}-
1089 # Find the native compiler
1090 # Extract the first word of "gcc", so it can be a program name with args.
1091 set dummy gcc; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC="$CC" # Let the user override the test.
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1113 if test -n "$CC"; then
1114 echo "$ac_t""$CC" 1>&6
1116 echo "$ac_t""no" 1>&6
1119 if test -z "$CC"; then
1120 # Extract the first word of "cc", so it can be a program name with args.
1121 set dummy cc; ac_word=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 if test -n "$CC"; then
1128 ac_cv_prog_CC="$CC" # Let the user override the test.
1130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1133 for ac_dir in $ac_dummy; do
1134 test -z "$ac_dir" && ac_dir=.
1135 if test -f $ac_dir/$ac_word; then
1136 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1137 ac_prog_rejected=yes
1145 if test $ac_prog_rejected = yes; then
1146 # We found a bogon in the path, so make sure we never use it.
1147 set dummy $ac_cv_prog_CC
1149 if test $# -gt 0; then
1150 # We chose a different compiler from the bogus one.
1151 # However, it has the same basename, so the bogon will be chosen
1152 # first if we set CC to just the basename; use the full file name.
1154 set dummy "$ac_dir/$ac_word" "$@"
1162 if test -n "$CC"; then
1163 echo "$ac_t""$CC" 1>&6
1165 echo "$ac_t""no" 1>&6
1168 if test -z "$CC"; then
1169 case "`uname -s`" in
1171 # Extract the first word of "cl", so it can be a program name with args.
1172 set dummy cl; ac_word=$2
1173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1174 echo "configure:1175: checking for $ac_word" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 if test -n "$CC"; then
1179 ac_cv_prog_CC="$CC" # Let the user override the test.
1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 for ac_dir in $ac_dummy; do
1184 test -z "$ac_dir" && ac_dir=.
1185 if test -f $ac_dir/$ac_word; then
1194 if test -n "$CC"; then
1195 echo "$ac_t""$CC" 1>&6
1197 echo "$ac_t""no" 1>&6
1202 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1205 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1209 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1210 ac_cpp='$CPP $CPPFLAGS'
1211 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1212 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1213 cross_compiling=$ac_cv_prog_cc_cross
1215 cat > conftest.$ac_ext << EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1222 if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1223 ac_cv_prog_cc_works=yes
1224 # If we can't run a trivial program, we are probably using a cross compiler.
1225 if (./conftest; exit) 2>/dev/null; then
1226 ac_cv_prog_cc_cross=no
1228 ac_cv_prog_cc_cross=yes
1231 echo "configure: failed program was:" >&5
1232 cat conftest.$ac_ext >&5
1233 ac_cv_prog_cc_works=no
1237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1238 ac_cpp='$CPP $CPPFLAGS'
1239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1241 cross_compiling=$ac_cv_prog_cc_cross
1243 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1244 if test $ac_cv_prog_cc_works = no; then
1245 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1247 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1249 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1250 cross_compiling=$ac_cv_prog_cc_cross
1252 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1253 echo "configure:1254: checking whether we are using GNU C" >&5
1254 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1257 cat > conftest.c <<EOF
1262 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1269 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1271 if test $ac_cv_prog_gcc = yes; then
1277 ac_test_CFLAGS="${CFLAGS+set}"
1278 ac_save_CFLAGS="$CFLAGS"
1280 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1281 echo "configure:1282: checking whether ${CC-cc} accepts -g" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 echo 'void f(){}' > conftest.c
1286 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1295 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1296 if test "$ac_test_CFLAGS" = set; then
1297 CFLAGS="$ac_save_CFLAGS"
1298 elif test $ac_cv_prog_cc_g = yes; then
1299 if test "$GCC" = yes; then
1305 if test "$GCC" = yes; then
1312 if test "x$CC" != xcc; then
1313 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1314 echo "configure:1315: checking whether $CC and cc understand -c and -o together" >&5
1316 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1317 echo "configure:1318: checking whether cc understands -c and -o together" >&5
1319 set dummy $CC; ac_cc="`echo $2 |
1320 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1321 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 echo 'foo(){}' > conftest.c
1325 # Make sure it works both with $CC and with simple cc.
1326 # We do the test twice because some compilers refuse to overwrite an
1327 # existing .o file with -o, though they will create one.
1328 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1329 if { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1330 test -f conftest.o && { (eval echo configure:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1332 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1333 if test "x$CC" != xcc; then
1334 # Test first that cc exists at all.
1335 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1336 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1337 if { (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1338 test -f conftest.o && { (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1343 # cc exists but doesn't like -o.
1344 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1354 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1355 echo "$ac_t""yes" 1>&6
1357 echo "$ac_t""no" 1>&6
1358 cat >> confdefs.h <<\EOF
1359 #define NO_MINUS_C_MINUS_O 1
1364 # autoconf is lame and doesn't give us any substitution variable for this.
1365 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1366 NO_MINUS_C_MINUS_O=yes
1368 OUTPUT_OPTION='-o $@'
1373 echo $ac_n "checking for long double""... $ac_c" 1>&6
1374 echo "configure:1375: checking for long double" >&5
1375 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 if test "$GCC" = yes; then
1379 gcc_cv_c_long_double=yes
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1386 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1387 long double foo = 0.0;
1388 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1389 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1392 if { (eval echo configure:1393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1394 gcc_cv_c_long_double=yes
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1399 gcc_cv_c_long_double=no
1405 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1406 if test $gcc_cv_c_long_double = yes; then
1407 cat >> confdefs.h <<\EOF
1408 #define HAVE_LONG_DOUBLE 1
1414 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1415 echo "configure:1416: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1416 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 save_CFLAGS="$CFLAGS"
1420 CFLAGS="-Wno-long-long"
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1429 if { (eval echo configure:1430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1431 ac_cv_prog_cc_no_long_long=yes
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1436 ac_cv_prog_cc_no_long_long=no
1439 CFLAGS="$save_CFLAGS"
1442 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1444 if test $ac_cv_prog_cc_no_long_long = yes; then
1445 strict1_warn="-pedantic -Wno-long-long"
1449 # If the native compiler is GCC, we can enable warnings even in stage1.
1450 # That's useful for people building cross-compilers, or just running a
1453 if test "x$GCC" = "xyes"; then
1454 warn_cflags='$(GCC_WARN_CFLAGS)'
1458 # Stage specific cflags for build.
1462 if test x$GCC = xyes
1464 stage1_cflags="-Wa,-J"
1472 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1473 echo "configure:1474: checking whether ${MAKE-make} sets \${MAKE}" >&5
1474 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1475 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 cat > conftestmake <<\EOF
1480 @echo 'ac_maketemp="${MAKE}"'
1482 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1483 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1484 if test -n "$ac_maketemp"; then
1485 eval ac_cv_prog_make_${ac_make}_set=yes
1487 eval ac_cv_prog_make_${ac_make}_set=no
1491 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1492 echo "$ac_t""yes" 1>&6
1495 echo "$ac_t""no" 1>&6
1496 SET_MAKE="MAKE=${MAKE-make}"
1500 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1501 echo "configure:1502: checking whether a default assembler was specified" >&5
1502 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1503 if test x"$gas_flag" = x"no"; then
1504 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1506 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1509 echo "$ac_t""no" 1>&6
1512 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1513 echo "configure:1514: checking whether a default linker was specified" >&5
1514 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1515 if test x"$gnu_ld_flag" = x"no"; then
1516 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1518 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1521 echo "$ac_t""no" 1>&6
1524 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1525 echo "configure:1526: checking for GNU C library" >&5
1526 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 #include <features.h>
1535 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1536 #error Not a GNU C library system
1540 if { (eval echo configure:1541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1552 echo "$ac_t""$gcc_cv_glibc" 1>&6
1553 if test $gcc_cv_glibc = yes; then
1554 cat >> confdefs.h <<\EOF
1555 #define _GNU_SOURCE 1
1560 echo $ac_n "checking for inline""... $ac_c" 1>&6
1561 echo "configure:1562: checking for inline" >&5
1562 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1566 for ac_kw in inline __inline__ __inline; do
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1575 if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1577 ac_cv_c_inline=$ac_kw; break
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1587 echo "$ac_t""$ac_cv_c_inline" 1>&6
1588 case "$ac_cv_c_inline" in
1590 no) cat >> confdefs.h <<\EOF
1594 *) cat >> confdefs.h <<EOF
1595 #define inline $ac_cv_c_inline
1601 # Find some useful tools
1602 for ac_prog in mawk gawk nawk awk
1604 # Extract the first word of "$ac_prog", so it can be a program name with args.
1605 set dummy $ac_prog; ac_word=$2
1606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_word" >&5
1608 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 if test -n "$AWK"; then
1612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1619 ac_cv_prog_AWK="$ac_prog"
1626 AWK="$ac_cv_prog_AWK"
1627 if test -n "$AWK"; then
1628 echo "$ac_t""$AWK" 1>&6
1630 echo "$ac_t""no" 1>&6
1633 test -n "$AWK" && break
1636 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1637 echo "configure:1638: checking whether ln works" >&5
1638 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 rm -f conftestdata_t
1642 echo >conftestdata_f
1643 if ln conftestdata_f conftestdata_t 2>/dev/null
1647 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1649 gcc_cv_prog_LN="ln -s"
1654 rm -f conftestdata_f conftestdata_t
1657 LN="$gcc_cv_prog_LN"
1658 if test "$gcc_cv_prog_LN" = "ln"; then
1659 echo "$ac_t""yes" 1>&6
1661 if test "$gcc_cv_prog_LN" = "ln -s"; then
1662 echo "$ac_t""no, using ln -s" 1>&6
1664 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1668 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether ln -s works" >&5
1670 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 rm -f conftestdata_t
1674 echo >conftestdata_f
1675 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1677 gcc_cv_prog_LN_S="ln -s"
1679 if ln conftestdata_f conftestdata_t 2>/dev/null
1686 rm -f conftestdata_f conftestdata_t
1689 LN_S="$gcc_cv_prog_LN_S"
1690 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1691 echo "$ac_t""yes" 1>&6
1693 if test "$gcc_cv_prog_LN_S" = "ln"; then
1694 echo "$ac_t""no, using ln" 1>&6
1696 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1700 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1701 echo "configure:1702: checking for volatile" >&5
1702 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1713 if { (eval echo configure:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1715 gcc_cv_c_volatile=yes
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1720 gcc_cv_c_volatile=no
1725 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1726 if test $gcc_cv_c_volatile = yes ; then
1727 cat >> confdefs.h <<\EOF
1728 #define HAVE_VOLATILE 1
1733 # Extract the first word of "ranlib", so it can be a program name with args.
1734 set dummy ranlib; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test -n "$RANLIB"; then
1741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 ac_cv_prog_RANLIB="ranlib"
1753 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1756 RANLIB="$ac_cv_prog_RANLIB"
1757 if test -n "$RANLIB"; then
1758 echo "$ac_t""$RANLIB" 1>&6
1760 echo "$ac_t""no" 1>&6
1763 # Find a good install program. We prefer a C program (faster),
1764 # so one script is as good as another. But avoid the broken or
1765 # incompatible versions:
1766 # SysV /etc/install, /usr/sbin/install
1767 # SunOS /usr/etc/install
1768 # IRIX /sbin/install
1770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1772 # ./install, which can be erroneously created by make from ./install.sh.
1773 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1774 echo "configure:1775: checking for a BSD compatible install" >&5
1775 if test -z "$INSTALL"; then
1776 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1780 for ac_dir in $PATH; do
1781 # Account for people who put trailing slashes in PATH elements.
1783 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1785 # OSF1 and SCO ODT 3.0 have their own names for install.
1786 for ac_prog in ginstall scoinst install; do
1787 if test -f $ac_dir/$ac_prog; then
1788 if test $ac_prog = install &&
1789 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1790 # AIX install. It has an incompatible calling convention.
1791 # OSF/1 installbsd also uses dspmsg, but is usable.
1794 ac_cv_path_install="$ac_dir/$ac_prog -c"
1805 if test "${ac_cv_path_install+set}" = set; then
1806 INSTALL="$ac_cv_path_install"
1808 # As a last resort, use the slow shell script. We don't cache a
1809 # path for INSTALL within a source directory, because that will
1810 # break other packages using the cache if that directory is
1811 # removed, or if the path is relative.
1812 INSTALL="$ac_install_sh"
1815 echo "$ac_t""$INSTALL" 1>&6
1817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1818 # It thinks the first close brace ends the variable substitution.
1819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1824 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1825 echo "configure:1826: checking how to run the C preprocessor" >&5
1826 # On Suns, sometimes $CPP names a directory.
1827 if test -n "$CPP" && test -d "$CPP"; then
1830 if test -z "$CPP"; then
1831 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 # This must be in double quotes, not single quotes, because CPP may get
1835 # substituted into the Makefile and "${CC-cc}" will confuse make.
1837 # On the NeXT, cc -E runs the code through the compiler's parser,
1838 # not just through cpp.
1839 cat > conftest.$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1846 { (eval echo configure:1847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1848 if test -z "$ac_err"; then
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 CPP="${CC-cc} -E -traditional-cpp"
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1863 { (eval echo configure:1864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1865 if test -z "$ac_err"; then
1869 echo "configure: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1872 CPP="${CC-cc} -nologo -E"
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1880 { (eval echo configure:1881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1882 if test -z "$ac_err"; then
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1896 ac_cv_prog_CPP="$CPP"
1898 CPP="$ac_cv_prog_CPP"
1900 ac_cv_prog_CPP="$CPP"
1902 echo "$ac_t""$CPP" 1>&6
1904 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1905 echo "configure:1906: checking for ANSI C header files" >&5
1906 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1907 echo $ac_n "(cached) $ac_c" 1>&6
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1918 { (eval echo configure:1919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1920 if test -z "$ac_err"; then
1922 ac_cv_header_stdc=yes
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 ac_cv_header_stdc=no
1932 if test $ac_cv_header_stdc = yes; then
1933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1940 egrep "memchr" >/dev/null 2>&1; then
1944 ac_cv_header_stdc=no
1950 if test $ac_cv_header_stdc = yes; then
1951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1958 egrep "free" >/dev/null 2>&1; then
1962 ac_cv_header_stdc=no
1968 if test $ac_cv_header_stdc = yes; then
1969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1970 if test "$cross_compiling" = yes; then
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1977 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1978 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1980 int main () { int i; for (i = 0; i < 256; i++)
1981 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1985 if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 ac_cv_header_stdc=no
2000 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2001 if test $ac_cv_header_stdc = yes; then
2002 cat >> confdefs.h <<\EOF
2003 #define STDC_HEADERS 1
2008 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether time.h and sys/time.h may both be included" >&5
2010 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016 #include <sys/types.h>
2017 #include <sys/time.h>
2023 if { (eval echo configure:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2025 ac_cv_header_time=yes
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2030 ac_cv_header_time=no
2035 echo "$ac_t""$ac_cv_header_time" 1>&6
2036 if test $ac_cv_header_time = yes; then
2037 cat >> confdefs.h <<\EOF
2038 #define TIME_WITH_SYS_TIME 1
2043 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2044 echo "configure:2045: checking whether string.h and strings.h may both be included" >&5
2045 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2052 #include <strings.h>
2057 if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2059 gcc_cv_header_string=yes
2061 echo "configure: failed program was:" >&5
2062 cat conftest.$ac_ext >&5
2064 gcc_cv_header_string=no
2069 echo "$ac_t""$gcc_cv_header_string" 1>&6
2070 if test $gcc_cv_header_string = yes; then
2071 cat >> confdefs.h <<\EOF
2072 #define STRING_WITH_STRINGS 1
2077 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2078 echo "configure:2079: checking for sys/wait.h that is POSIX.1 compatible" >&5
2079 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2082 cat > conftest.$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 #include <sys/types.h>
2086 #include <sys/wait.h>
2088 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2091 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2096 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2101 ac_cv_header_sys_wait_h=yes
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2106 ac_cv_header_sys_wait_h=no
2111 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2112 if test $ac_cv_header_sys_wait_h = yes; then
2113 cat >> confdefs.h <<\EOF
2114 #define HAVE_SYS_WAIT_H 1
2119 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2120 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2121 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2122 direct.h malloc.h langinfo.h iconv.h
2124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2126 echo "configure:2127: checking for $ac_hdr" >&5
2127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 cat > conftest.$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2136 { (eval echo configure:2137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2138 if test -z "$ac_err"; then
2140 eval "ac_cv_header_$ac_safe=yes"
2143 echo "configure: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2146 eval "ac_cv_header_$ac_safe=no"
2150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2151 echo "$ac_t""yes" 1>&6
2152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2153 cat >> confdefs.h <<EOF
2154 #define $ac_tr_hdr 1
2158 echo "$ac_t""no" 1>&6
2163 # Check for thread headers.
2164 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2165 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2166 echo "configure:2167: checking for thread.h" >&5
2167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 cat > conftest.$ac_ext <<EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2176 { (eval echo configure:2177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2178 if test -z "$ac_err"; then
2180 eval "ac_cv_header_$ac_safe=yes"
2183 echo "configure: failed program was:" >&5
2184 cat conftest.$ac_ext >&5
2186 eval "ac_cv_header_$ac_safe=no"
2190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2191 echo "$ac_t""yes" 1>&6
2194 echo "$ac_t""no" 1>&6
2198 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2199 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2200 echo "configure:2201: checking for pthread.h" >&5
2201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 #include <pthread.h>
2209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2210 { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2212 if test -z "$ac_err"; then
2214 eval "ac_cv_header_$ac_safe=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 eval "ac_cv_header_$ac_safe=no"
2224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2225 echo "$ac_t""yes" 1>&6
2228 echo "$ac_t""no" 1>&6
2233 # See if GNAT has been installed
2234 # Extract the first word of "gnatbind", so it can be a program name with args.
2235 set dummy gnatbind; ac_word=$2
2236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2237 echo "configure:2238: checking for $ac_word" >&5
2238 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2241 if test -n "$gnat"; then
2242 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2246 for ac_dir in $ac_dummy; do
2247 test -z "$ac_dir" && ac_dir=.
2248 if test -f $ac_dir/$ac_word; then
2249 ac_cv_prog_gnat="yes"
2254 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2257 gnat="$ac_cv_prog_gnat"
2258 if test -n "$gnat"; then
2259 echo "$ac_t""$gnat" 1>&6
2261 echo "$ac_t""no" 1>&6
2265 # See if we have the mktemp command.
2266 # Extract the first word of "mktemp", so it can be a program name with args.
2267 set dummy mktemp; ac_word=$2
2268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_word" >&5
2270 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 if test -n "$have_mktemp_command"; then
2274 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
2276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2278 for ac_dir in $ac_dummy; do
2279 test -z "$ac_dir" && ac_dir=.
2280 if test -f $ac_dir/$ac_word; then
2281 ac_cv_prog_have_mktemp_command="yes"
2286 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
2289 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
2290 if test -n "$have_mktemp_command"; then
2291 echo "$ac_t""$have_mktemp_command" 1>&6
2293 echo "$ac_t""no" 1>&6
2297 # Do we have a single-tree copy of texinfo?
2298 if test -f $srcdir/../texinfo/Makefile.in; then
2299 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
2300 gcc_cv_prog_makeinfo_modern=yes
2301 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2303 # See if makeinfo has been installed and is modern enough
2304 # that we can use it.
2305 # Extract the first word of "makeinfo", so it can be a program name with args.
2306 set dummy makeinfo; ac_word=$2
2307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2308 echo "configure:2309: checking for $ac_word" >&5
2309 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 if test -n "$MAKEINFO"; then
2313 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2317 for ac_dir in $ac_dummy; do
2318 test -z "$ac_dir" && ac_dir=.
2319 if test -f $ac_dir/$ac_word; then
2320 ac_cv_prog_MAKEINFO="makeinfo"
2327 MAKEINFO="$ac_cv_prog_MAKEINFO"
2328 if test -n "$MAKEINFO"; then
2329 echo "$ac_t""$MAKEINFO" 1>&6
2331 echo "$ac_t""no" 1>&6
2334 if test -n "$MAKEINFO"; then
2335 # Found it, now check the version.
2336 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2337 echo "configure:2338: checking for modern makeinfo" >&5
2338 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 ac_prog_version=`$MAKEINFO --version 2>&1 |
2342 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2343 echo "configure:2344: version of makeinfo is $ac_prog_version" >&5
2344 case $ac_prog_version in
2345 '') gcc_cv_prog_makeinfo_modern=no;;
2347 gcc_cv_prog_makeinfo_modern=yes;;
2348 *) gcc_cv_prog_makeinfo_modern=no;;
2353 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2355 gcc_cv_prog_makeinfo_modern=no
2360 if test $gcc_cv_prog_makeinfo_modern = no; then
2361 echo "configure: warning:
2362 *** Makeinfo is missing or too old.
2363 *** Info documentation will not be built." 1>&2
2369 # Is pod2man recent enough to regenerate manpages?
2370 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
2371 echo "configure:2372: checking for recent Pod::Man" >&5
2372 if perl -e 'use 1.10 Pod::Man' >/dev/null 2>&1; then
2373 echo "$ac_t""yes" 1>&6
2374 GENERATED_MANPAGES=generated-manpages
2376 echo "$ac_t""no" 1>&6
2381 if test -f $srcdir/../flex/skel.c; then
2382 FLEX='$(objdir)/../flex/flex'
2384 # Extract the first word of "flex", so it can be a program name with args.
2385 set dummy flex; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 if test -n "$FLEX"; then
2392 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
2394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2396 for ac_dir in $ac_dummy; do
2397 test -z "$ac_dir" && ac_dir=.
2398 if test -f $ac_dir/$ac_word; then
2399 ac_cv_prog_FLEX="flex"
2404 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="false"
2407 FLEX="$ac_cv_prog_FLEX"
2408 if test -n "$FLEX"; then
2409 echo "$ac_t""$FLEX" 1>&6
2411 echo "$ac_t""no" 1>&6
2417 # The -L switch is so bison can find its skeleton file.
2418 if test -f $srcdir/../bison/bison.simple; then
2419 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
2421 # Extract the first word of "bison", so it can be a program name with args.
2422 set dummy bison; ac_word=$2
2423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_word" >&5
2425 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 if test -n "$BISON"; then
2429 ac_cv_prog_BISON="$BISON" # Let the user override the test.
2431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2433 for ac_dir in $ac_dummy; do
2434 test -z "$ac_dir" && ac_dir=.
2435 if test -f $ac_dir/$ac_word; then
2436 ac_cv_prog_BISON="bison"
2441 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="false"
2444 BISON="$ac_cv_prog_BISON"
2445 if test -n "$BISON"; then
2446 echo "$ac_t""$BISON" 1>&6
2448 echo "$ac_t""no" 1>&6
2453 # See if the stage1 system preprocessor understands the ANSI C
2454 # preprocessor stringification operator.
2457 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2458 echo "configure:2459: checking for preprocessor stringizing operator" >&5
2459 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2468 char *s = x(teststring);
2471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2472 egrep "#teststring" >/dev/null 2>&1; then
2474 ac_cv_c_stringize=no
2477 ac_cv_c_stringize=yes
2483 if test "${ac_cv_c_stringize}" = yes
2485 cat >> confdefs.h <<\EOF
2486 #define HAVE_STRINGIZE 1
2490 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2493 # Use <inttypes.h> only if it exists,
2494 # doesn't clash with <sys/types.h>, and declares intmax_t.
2495 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2496 echo "configure:2497: checking for inttypes.h" >&5
2497 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 cat > conftest.$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2503 #include <sys/types.h>
2504 #include <inttypes.h>
2509 if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2511 gcc_cv_header_inttypes_h=yes
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 gcc_cv_header_inttypes_h=no
2521 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2522 if test $gcc_cv_header_inttypes_h = yes; then
2523 cat >> confdefs.h <<\EOF
2524 #define HAVE_INTTYPES_H 1
2530 # Determine if enumerated bitfields are unsigned. ISO C says they can
2531 # be either signed or unsigned.
2533 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2534 echo "configure:2535: checking for unsigned enumerated bitfields" >&5
2535 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2538 if test "$cross_compiling" = yes; then
2539 gcc_cv_enum_bf_unsigned=yes
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2545 enum t { BLAH = 128 } ;
2546 struct s_t { enum t member : 8; } s ;
2550 if (s.member < 0) exit(1);
2555 if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2557 gcc_cv_enum_bf_unsigned=yes
2559 echo "configure: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2562 gcc_cv_enum_bf_unsigned=no
2569 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2570 if test $gcc_cv_enum_bf_unsigned = yes; then
2571 cat >> confdefs.h <<\EOF
2572 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2577 for ac_func in strtoul bsearch putenv popen bcopy \
2578 strchr strrchr kill getrlimit setrlimit atoll atoq \
2579 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2580 fputs_unlocked getrusage iconv nl_langinfo
2582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_func" >&5
2584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 /* System header to define __stub macros and hopefully few prototypes,
2591 which can conflict with char $ac_func(); below. */
2593 /* Override any gcc2 internal prototype to avoid an error. */
2594 /* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2600 /* The GNU C library defines this for functions which it implements
2601 to always fail with ENOSYS. Some functions are actually named
2602 something starting with __ and the normal name is an alias. */
2603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2613 eval "ac_cv_func_$ac_func=yes"
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 eval "ac_cv_func_$ac_func=no"
2623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2626 cat >> confdefs.h <<EOF
2627 #define $ac_tr_func 1
2631 echo "$ac_t""no" 1>&6
2636 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2637 echo "configure:2638: checking for ssize_t" >&5
2638 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 #include <sys/types.h>
2650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2651 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2653 ac_cv_type_ssize_t=yes
2656 ac_cv_type_ssize_t=no
2661 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2662 if test $ac_cv_type_ssize_t = no; then
2663 cat >> confdefs.h <<\EOF
2670 # Try to determine the array type of the second argument of getgroups
2671 # for the target system (int or gid_t).
2672 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2673 echo "configure:2674: checking for uid_t in sys/types.h" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2683 egrep "uid_t" >/dev/null 2>&1; then
2685 ac_cv_type_uid_t=yes
2694 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2695 if test $ac_cv_type_uid_t = no; then
2696 cat >> confdefs.h <<\EOF
2700 cat >> confdefs.h <<\EOF
2706 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2707 echo "configure:2708: checking type of array argument to getgroups" >&5
2708 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 if test "$cross_compiling" = yes; then
2712 ac_cv_type_getgroups=cross
2714 cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2718 /* Thanks to Mike Rendell for this test. */
2719 #include <sys/types.h>
2722 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2727 union { gid_t gval; long lval; } val;
2730 for (i = 0; i < NGID; i++)
2731 gidset[i] = val.gval;
2732 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2734 /* Exit non-zero if getgroups seems to require an array of ints. This
2735 happens when gid_t is short but getgroups modifies an array of ints. */
2736 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2742 ac_cv_type_getgroups=gid_t
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2747 ac_cv_type_getgroups=int
2752 if test $ac_cv_type_getgroups = cross; then
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2761 ac_cv_type_getgroups=gid_t
2764 ac_cv_type_getgroups=int
2771 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2772 cat >> confdefs.h <<EOF
2773 #define GETGROUPS_T $ac_cv_type_getgroups
2777 if test "${target}" = "${build}"; then
2778 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
2781 # This condition may need some tweaking. It should include all
2782 # targets where the array type of the second argument of getgroups
2783 # is int and the type of gid_t is not equivalent to int.
2784 *-*-sunos* | *-*-ultrix*)
2785 TARGET_GETGROUPS_T=int
2788 TARGET_GETGROUPS_T=gid_t
2794 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2795 echo "configure:2796: checking for vprintf" >&5
2796 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* System header to define __stub macros and hopefully few prototypes,
2803 which can conflict with char vprintf(); below. */
2805 /* Override any gcc2 internal prototype to avoid an error. */
2806 /* We use char because int might match the return type of a gcc2
2807 builtin and then its argument prototype would still apply. */
2812 /* The GNU C library defines this for functions which it implements
2813 to always fail with ENOSYS. Some functions are actually named
2814 something starting with __ and the normal name is an alias. */
2815 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2823 if { (eval echo configure:2824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2825 eval "ac_cv_func_vprintf=yes"
2827 echo "configure: failed program was:" >&5
2828 cat conftest.$ac_ext >&5
2830 eval "ac_cv_func_vprintf=no"
2835 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2836 echo "$ac_t""yes" 1>&6
2837 cat >> confdefs.h <<\EOF
2838 #define HAVE_VPRINTF 1
2842 echo "$ac_t""no" 1>&6
2845 if test "$ac_cv_func_vprintf" != yes; then
2846 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2847 echo "configure:2848: checking for _doprnt" >&5
2848 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 /* System header to define __stub macros and hopefully few prototypes,
2855 which can conflict with char _doprnt(); below. */
2857 /* Override any gcc2 internal prototype to avoid an error. */
2858 /* We use char because int might match the return type of a gcc2
2859 builtin and then its argument prototype would still apply. */
2864 /* The GNU C library defines this for functions which it implements
2865 to always fail with ENOSYS. Some functions are actually named
2866 something starting with __ and the normal name is an alias. */
2867 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2875 if { (eval echo configure:2876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2877 eval "ac_cv_func__doprnt=yes"
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2882 eval "ac_cv_func__doprnt=no"
2887 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2888 echo "$ac_t""yes" 1>&6
2889 cat >> confdefs.h <<\EOF
2890 #define HAVE_DOPRNT 1
2894 echo "$ac_t""no" 1>&6
2901 if test $ac_cv_func_vprintf != yes ; then
2903 if test $ac_cv_func__doprnt != yes ; then
2910 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2911 echo "configure:2912: checking whether the printf functions support %p" >&5
2912 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 if test "$cross_compiling" = yes; then
2916 gcc_cv_func_printf_ptr=no
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2926 char *p = buf, *q = NULL;
2927 sprintf(buf, "%p", p);
2928 sscanf(buf, "%p", &q);
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2934 gcc_cv_func_printf_ptr=yes
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 gcc_cv_func_printf_ptr=no
2944 rm -f core core.* *.core
2947 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2948 if test $gcc_cv_func_printf_ptr = yes ; then
2949 cat >> confdefs.h <<\EOF
2950 #define HAVE_PRINTF_PTR 1
2958 { echo "configure: error:
2959 *** UWIN may not be used as a host platform because
2960 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
2963 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2964 echo "configure:2965: checking for pid_t" >&5
2965 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 #include <sys/types.h>
2977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2978 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2980 ac_cv_type_pid_t=yes
2988 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2989 if test $ac_cv_type_pid_t = no; then
2990 cat >> confdefs.h <<\EOF
2996 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2997 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2998 echo "configure:2999: checking for vfork.h" >&5
2999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3008 { (eval echo configure:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3010 if test -z "$ac_err"; then
3012 eval "ac_cv_header_$ac_safe=yes"
3015 echo "configure: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3018 eval "ac_cv_header_$ac_safe=no"
3022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3024 cat >> confdefs.h <<\EOF
3025 #define HAVE_VFORK_H 1
3029 echo "$ac_t""no" 1>&6
3032 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3033 echo "configure:3034: checking for working vfork" >&5
3034 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 if test "$cross_compiling" = yes; then
3038 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3039 echo "configure:3040: checking for vfork" >&5
3040 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 /* System header to define __stub macros and hopefully few prototypes,
3047 which can conflict with char vfork(); below. */
3049 /* Override any gcc2 internal prototype to avoid an error. */
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3056 /* The GNU C library defines this for functions which it implements
3057 to always fail with ENOSYS. Some functions are actually named
3058 something starting with __ and the normal name is an alias. */
3059 #if defined (__stub_vfork) || defined (__stub___vfork)
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3069 eval "ac_cv_func_vfork=yes"
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3074 eval "ac_cv_func_vfork=no"
3079 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3080 echo "$ac_t""yes" 1>&6
3083 echo "$ac_t""no" 1>&6
3086 ac_cv_func_vfork_works=$ac_cv_func_vfork
3088 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3091 /* Thanks to Paul Eggert for this test. */
3093 #include <sys/types.h>
3094 #include <sys/stat.h>
3095 #ifdef HAVE_UNISTD_H
3101 /* On some sparc systems, changes by the child to local and incoming
3102 argument registers are propagated back to the parent.
3103 The compiler is told about this with #include <vfork.h>,
3104 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3105 Test for this by using a static variable whose address
3106 is put into a register that is clobbered by the vfork. */
3109 sparc_address_test (int arg)
3111 sparc_address_test (arg) int arg;
3129 pid_t parent = getpid ();
3132 sparc_address_test ();
3137 /* Here is another test for sparc vfork register problems.
3138 This test uses lots of local variables, at least
3139 as many local variables as main has allocated so far
3140 including compiler temporaries. 4 locals are enough for
3141 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3142 A buggy compiler should reuse the register of parent
3143 for one of the local variables, since it will think that
3144 parent can't possibly be used any more in this routine.
3145 Assigning to the local variable will thus munge parent
3146 in the parent process. */
3148 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3149 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3150 /* Convince the compiler that p..p7 are live; otherwise, it might
3151 use the same hardware register for all 8 local variables. */
3152 if (p != p1 || p != p2 || p != p3 || p != p4
3153 || p != p5 || p != p6 || p != p7)
3156 /* On some systems (e.g. IRIX 3.3),
3157 vfork doesn't separate parent from child file descriptors.
3158 If the child closes a descriptor before it execs or exits,
3159 this munges the parent's descriptor as well.
3160 Test for this by closing stdout in the child. */
3161 _exit(close(fileno(stdout)) != 0);
3166 while (wait(&status) != child)
3169 /* Was there some problem with vforking? */
3172 /* Did the child fail? (This shouldn't happen.) */
3175 /* Did the vfork/compiler bug occur? */
3176 || parent != getpid()
3178 /* Did the file descriptor bug occur? */
3179 || fstat(fileno(stdout), &st) != 0
3184 if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3186 ac_cv_func_vfork_works=yes
3188 echo "configure: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3191 ac_cv_func_vfork_works=no
3198 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3199 if test $ac_cv_func_vfork_works = no; then
3200 cat >> confdefs.h <<\EOF
3206 for ac_func in getpagesize
3208 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3209 echo "configure:3210: checking for $ac_func" >&5
3210 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 /* System header to define __stub macros and hopefully few prototypes,
3217 which can conflict with char $ac_func(); below. */
3219 /* Override any gcc2 internal prototype to avoid an error. */
3220 /* We use char because int might match the return type of a gcc2
3221 builtin and then its argument prototype would still apply. */
3226 /* The GNU C library defines this for functions which it implements
3227 to always fail with ENOSYS. Some functions are actually named
3228 something starting with __ and the normal name is an alias. */
3229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3237 if { (eval echo configure:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3239 eval "ac_cv_func_$ac_func=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3244 eval "ac_cv_func_$ac_func=no"
3249 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3252 cat >> confdefs.h <<EOF
3253 #define $ac_tr_func 1
3257 echo "$ac_t""no" 1>&6
3261 # The test program for the next two tests is the same except for one
3263 cat >ct-mmap.inc <<'EOF'
3264 #include <sys/types.h>
3265 #include <sys/mman.h>
3271 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3272 # define MAP_ANONYMOUS MAP_ANON
3275 /* This mess was copied from the GNU getpagesize.h. */
3276 #ifndef HAVE_GETPAGESIZE
3277 # ifdef HAVE_UNISTD_H
3278 # include <unistd.h>
3281 /* Assume that all systems that can run configure have sys/param.h. */
3282 # ifndef HAVE_SYS_PARAM_H
3283 # define HAVE_SYS_PARAM_H 1
3286 # ifdef _SC_PAGESIZE
3287 # define getpagesize() sysconf(_SC_PAGESIZE)
3288 # else /* no _SC_PAGESIZE */
3289 # ifdef HAVE_SYS_PARAM_H
3290 # include <sys/param.h>
3291 # ifdef EXEC_PAGESIZE
3292 # define getpagesize() EXEC_PAGESIZE
3293 # else /* no EXEC_PAGESIZE */
3295 # define getpagesize() NBPG * CLSIZE
3298 # endif /* no CLSIZE */
3299 # else /* no NBPG */
3301 # define getpagesize() NBPC
3302 # else /* no NBPC */
3304 # define getpagesize() PAGESIZE
3305 # endif /* PAGESIZE */
3306 # endif /* no NBPC */
3307 # endif /* no NBPG */
3308 # endif /* no EXEC_PAGESIZE */
3309 # else /* no HAVE_SYS_PARAM_H */
3310 # define getpagesize() 8192 /* punt totally */
3311 # endif /* no HAVE_SYS_PARAM_H */
3312 # endif /* no _SC_PAGESIZE */
3314 #endif /* no HAVE_GETPAGESIZE */
3317 # define MAP_FAILED -1
3321 #define perror_exit(str, val) \
3322 do { perror(str); exit(val); } while (0)
3324 /* Some versions of cygwin mmap require that munmap is called with the
3325 same parameters as mmap. GCC expects that this is not the case.
3326 Test for various forms of this problem. Warning - icky signal games. */
3328 static sigset_t unblock_sigsegv;
3338 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3339 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
3341 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
3342 MAP_PRIVATE, devzero, 0);
3350 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
3354 /* Basic functionality test. */
3358 char *x = anonmap (pg);
3359 if (x == (char *) MAP_FAILED)
3360 perror_exit("test 0 mmap", 2);
3364 if (munmap(x, pg) < 0)
3365 perror_exit("test 0 munmap", 3);
3368 /* 1. If we map a 2-page region and unmap its second page, the first page
3373 char *x = anonmap (pg * 2);
3374 if (x == (char *)MAP_FAILED)
3375 perror_exit ("test 1 mmap", 4);
3377 signal (SIGSEGV, sigsegv);
3379 perror_exit ("test 1 fault", 5);
3384 if (munmap (x + pg, pg) < 0)
3385 perror_exit ("test 1 munmap 1", 6);
3388 if (setjmp (r) == 0)
3391 perror_exit ("test 1 no fault", 7);
3393 if (munmap (x, pg) < 0)
3394 perror_exit ("test 1 munmap 2", 8);
3397 /* 2. If we map a 2-page region and unmap its first page, the second
3398 page must remain. */
3402 char *x = anonmap (pg * 2);
3403 if (x == (char *)MAP_FAILED)
3404 perror_exit ("test 2 mmap", 9);
3406 signal (SIGSEGV, sigsegv);
3408 perror_exit ("test 2 fault", 10);
3413 if (munmap (x, pg) < 0)
3414 perror_exit ("test 2 munmap 1", 11);
3418 if (setjmp (r) == 0)
3421 perror_exit ("test 2 no fault", 12);
3424 if (munmap (x+pg, pg) < 0)
3425 perror_exit ("test 2 munmap 2", 13);
3428 /* 3. If we map two adjacent 1-page regions and unmap them both with
3429 one munmap, both must go away.
3431 Getting two adjacent 1-page regions with two mmap calls is slightly
3432 tricky. All OS's tested skip over already-allocated blocks; therefore
3433 we have been careful to unmap all allocated regions in previous tests.
3434 HP/UX allocates pages backward in memory. No OS has yet been observed
3435 to be so perverse as to leave unmapped space between consecutive calls
3444 if (x == (char *)MAP_FAILED)
3445 perror_exit ("test 3 mmap 1", 14);
3447 if (y == (char *)MAP_FAILED)
3448 perror_exit ("test 3 mmap 2", 15);
3453 z = y, y = x, x = z;
3456 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
3457 (unsigned long)x, (unsigned long)y);
3462 signal (SIGSEGV, sigsegv);
3464 perror_exit ("test 3 fault", 17);
3469 if (munmap (x, pg*2) < 0)
3470 perror_exit ("test 3 munmap", 18);
3472 if (setjmp (r) == 0)
3475 perror_exit ("test 3 no fault 1", 19);
3478 signal (SIGSEGV, sigsegv);
3479 if (setjmp (r) == 0)
3482 perror_exit ("test 3 no fault 2", 20);
3489 sigemptyset (&unblock_sigsegv);
3490 sigaddset (&unblock_sigsegv, SIGSEGV);
3491 pg = getpagesize ();
3492 #ifndef USE_MAP_ANON
3493 devzero = open ("/dev/zero", O_RDWR);
3495 perror_exit ("open /dev/zero", 1);
3507 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
3508 echo "configure:3509: checking for working mmap from /dev/zero" >&5
3509 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 if test "$cross_compiling" = yes; then
3513 # If this is not cygwin, and /dev/zero is a character device, it's probably
3514 # safe to assume it works.
3516 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
3517 * ) if test -c /dev/zero
3518 then ac_cv_func_mmap_dev_zero=yes
3519 else ac_cv_func_mmap_dev_zero=no
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include "ct-mmap.inc"
3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3530 ac_cv_func_mmap_dev_zero=yes
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3536 then ac_cv_func_mmap_dev_zero=no
3537 else ac_cv_func_mmap_dev_zero=buggy
3546 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
3547 if test $ac_cv_func_mmap_dev_zero = yes; then
3548 cat >> confdefs.h <<\EOF
3549 #define HAVE_MMAP_DEV_ZERO 1
3554 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
3555 echo "configure:3556: checking for working mmap with MAP_ANON(YMOUS)" >&5
3556 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 if test "$cross_compiling" = yes; then
3560 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
3561 # just because it's there. Some SCO Un*xen define it but don't implement it.
3562 ac_cv_func_mmap_anon=no
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 #define USE_MAP_ANON
3568 #include "ct-mmap.inc"
3570 if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3572 ac_cv_func_mmap_anon=yes
3574 echo "configure: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3578 then ac_cv_func_mmap_anon=no
3579 else ac_cv_func_mmap_anon=buggy
3588 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
3589 if test $ac_cv_func_mmap_anon = yes; then
3590 cat >> confdefs.h <<\EOF
3591 #define HAVE_MMAP_ANON 1
3597 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3598 echo "configure:3599: checking for working mmap of a file" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 # Create a file one thousand bytes long.
3603 for i in 1 2 3 4 5 6 7 8 9 0
3604 do for j in 1 2 3 4 5 6 7 8 9 0
3607 done > conftestdata$$
3609 if test "$cross_compiling" = yes; then
3610 ac_cv_func_mmap_file=no
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3616 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3617 Richard Henderson and Alexandre Oliva.
3618 Check whether read-only mmap of a plain file works. */
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3622 #include <sys/mman.h>
3630 fd = open("conftestdata$$", O_RDONLY);
3634 if (fstat (fd, &st))
3637 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3638 if (x == (char *) -1)
3641 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3644 if (munmap(x, st.st_size) < 0)
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3652 ac_cv_func_mmap_file=yes
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 ac_cv_func_mmap_file=no
3664 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3665 if test $ac_cv_func_mmap_file = yes; then
3666 cat >> confdefs.h <<\EOF
3667 #define HAVE_MMAP_FILE 1
3673 # We will need to find libiberty.h and ansidecl.h
3674 saved_CFLAGS="$CFLAGS"
3675 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3676 for ac_func in bcopy \
3677 getenv atol sbrk abort atof getcwd getwd \
3678 strsignal putc_unlocked fputs_unlocked strstr environ \
3679 malloc realloc calloc free basename getopt
3681 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3682 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3683 echo "configure:3684: checking whether $ac_func is declared" >&5
3684 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include "gansidecl.h"
3695 char *(*pfn) = (char *(*)) $ac_func ;
3699 if { (eval echo configure:3700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3701 eval "gcc_cv_have_decl_$ac_func=yes"
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3706 eval "gcc_cv_have_decl_$ac_func=no"
3711 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3712 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
3713 #define $ac_tr_decl 1
3717 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
3718 #define $ac_tr_decl 0
3724 if test x = y ; then
3725 cat >> confdefs.h <<EOF
3726 #define HAVE_DECL_BCOPY 1
3729 cat >> confdefs.h <<EOF
3730 #define HAVE_DECL_GETENV 1
3732 cat >> confdefs.h <<EOF
3733 #define HAVE_DECL_ATOL 1
3735 cat >> confdefs.h <<EOF
3736 #define HAVE_DECL_SBRK 1
3738 cat >> confdefs.h <<EOF
3739 #define HAVE_DECL_ABORT 1
3741 cat >> confdefs.h <<EOF
3742 #define HAVE_DECL_ATOF 1
3744 cat >> confdefs.h <<EOF
3745 #define HAVE_DECL_GETCWD 1
3747 cat >> confdefs.h <<EOF
3748 #define HAVE_DECL_GETWD 1
3751 cat >> confdefs.h <<EOF
3752 #define HAVE_DECL_STRSIGNAL 1
3754 cat >> confdefs.h <<EOF
3755 #define HAVE_DECL_PUTC_UNLOCKED 1
3757 cat >> confdefs.h <<EOF
3758 #define HAVE_DECL_FPUTS_UNLOCKED 1
3760 cat >> confdefs.h <<EOF
3761 #define HAVE_DECL_STRSTR 1
3763 cat >> confdefs.h <<EOF
3764 #define HAVE_DECL_ENVIRON 1
3767 cat >> confdefs.h <<EOF
3768 #define HAVE_DECL_MALLOC 1
3770 cat >> confdefs.h <<EOF
3771 #define HAVE_DECL_REALLOC 1
3773 cat >> confdefs.h <<EOF
3774 #define HAVE_DECL_CALLOC 1
3776 cat >> confdefs.h <<EOF
3777 #define HAVE_DECL_FREE 1
3779 cat >> confdefs.h <<EOF
3780 #define HAVE_DECL_BASENAME 1
3782 cat >> confdefs.h <<EOF
3783 #define HAVE_DECL_GETOPT 1
3788 for ac_func in getrlimit setrlimit getrusage
3790 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3791 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3792 echo "configure:3793: checking whether $ac_func is declared" >&5
3793 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include "gansidecl.h"
3801 #ifdef HAVE_SYS_RESOURCE_H
3802 #include <sys/resource.h>
3808 char *(*pfn) = (char *(*)) $ac_func ;
3812 if { (eval echo configure:3813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814 eval "gcc_cv_have_decl_$ac_func=yes"
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5