3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files"
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,rtlflag,gc,gcac;
38 default is misc,tree,gc,rtlflag"
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin"
44 --enable-__cxa_atexit enable __cxa_atexit for C++"
46 --enable-c-mbchar enable multibyte characters for C and C++"
48 --enable-threads enable thread usage for target GCC
49 --enable-threads=LIB use LIB thread package for target GCC"
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime"
54 --with-dwarf2 force the default debug format to be DWARF 2"
56 --disable-shared don't provide a shared libgcc"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --enable-nls use Native Language Support (default)"
62 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
64 --disable-nls do not use Native Language Support"
66 --with-included-gettext use the GNU gettext library included here"
68 --disable-win32-registry
69 disable lookup of installation paths in the
70 Registry on Windows hosts
71 --enable-win32-registry enable registry lookup (default)
72 --enable-win32-registry=KEY
73 use KEY instead of GCC version as the last portion
76 --with-gc={simple,page} choose the garbage collection mechanism to use
79 --with-system-zlib use installed libz"
81 --enable-maintainer-mode
82 enable make rules and dependencies not useful
83 (and sometimes confusing) to the casual installer"
85 --enable-sjlj-exceptions
86 arrange to use setjmp/longjmp exception handling"
88 --enable-libunwind-exceptions force use libunwind for exceptions"
90 --enable-version-specific-runtime-libs
91 specify that runtime libraries should be
92 installed in a compiler-specific directory"
94 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
96 # Initialize some variables set by options.
97 # The variables have the same names as the options, with
98 # dashes changed to underlines.
100 cache_file
=.
/config.cache
109 program_transform_name
=s
,x
,x
,
117 bindir
='${exec_prefix}/bin'
118 sbindir
='${exec_prefix}/sbin'
119 libexecdir
='${exec_prefix}/libexec'
120 datadir
='${prefix}/share'
121 sysconfdir
='${prefix}/etc'
122 sharedstatedir
='${prefix}/com'
123 localstatedir
='${prefix}/var'
124 libdir
='${exec_prefix}/lib'
125 includedir
='${prefix}/include'
126 oldincludedir
='/usr/include'
127 infodir
='${prefix}/info'
128 mandir
='${prefix}/man'
130 # Initialize some other variables.
133 SHELL
=${CONFIG_SHELL-/bin/sh}
134 # Maximum number of lines to put in a shell here document.
141 # If the previous option needs an argument, assign it.
142 if test -n "$ac_prev"; then
143 eval "$ac_prev=\$ac_option"
149 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153 # Accept the important Cygnus configure options, so we can diagnose typos.
157 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
159 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
160 bindir
="$ac_optarg" ;;
162 -build |
--build |
--buil |
--bui |
--bu)
164 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
165 build
="$ac_optarg" ;;
167 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
168 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
169 ac_prev
=cache_file
;;
170 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
171 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
172 cache_file
="$ac_optarg" ;;
174 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
176 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
178 datadir
="$ac_optarg" ;;
180 -disable-* |
--disable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}=no" ;;
189 -enable-* |
--enable-*)
190 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}='$ac_optarg'" ;;
202 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
203 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
204 |
--exec |
--exe |
--ex)
205 ac_prev
=exec_prefix
;;
206 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
207 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
208 |
--exec=* |
--exe=* |
--ex=*)
209 exec_prefix
="$ac_optarg" ;;
211 -gas |
--gas |
--ga |
--g)
212 # Obsolete; use --with-gas.
215 -help |
--help |
--hel |
--he)
216 # Omit some internal or obsolete options to make the list less imposing.
217 # This message is too long to be a string in the A/UX 3.1 sh.
219 Usage: configure [options] [host]
220 Options: [defaults in brackets after descriptions]
222 --cache-file=FILE cache test results in FILE
223 --help print this message
224 --no-create do not create output files
225 --quiet, --silent do not print \`checking...' messages
226 --version print the version of autoconf that created configure
227 Directory and file names:
228 --prefix=PREFIX install architecture-independent files in PREFIX
230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
232 --bindir=DIR user executables in DIR [EPREFIX/bin]
233 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
234 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
235 --datadir=DIR read-only architecture-independent data in DIR
237 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
238 --sharedstatedir=DIR modifiable architecture-independent data in DIR
240 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
241 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
242 --includedir=DIR C header files in DIR [PREFIX/include]
243 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
244 --infodir=DIR info documentation in DIR [PREFIX/info]
245 --mandir=DIR man documentation in DIR [PREFIX/man]
246 --srcdir=DIR find the sources in DIR [configure dir or ..]
247 --program-prefix=PREFIX prepend PREFIX to installed program names
248 --program-suffix=SUFFIX append SUFFIX to installed program names
249 --program-transform-name=PROGRAM
250 run sed PROGRAM on installed program names
254 --build=BUILD configure for building on BUILD [BUILD=HOST]
255 --host=HOST configure for HOST [guessed]
256 --target=TARGET configure for TARGET [TARGET=HOST]
257 Features and packages:
258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
262 --x-includes=DIR X include files are in DIR
263 --x-libraries=DIR X library files are in DIR
265 if test -n "$ac_help"; then
266 echo "--enable and --with options recognized:$ac_help"
270 -host |
--host |
--hos |
--ho)
272 -host=* |
--host=* |
--hos=* |
--ho=*)
275 -includedir |
--includedir |
--includedi |
--included |
--include \
276 |
--includ |
--inclu |
--incl |
--inc)
277 ac_prev
=includedir
;;
278 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
279 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
280 includedir
="$ac_optarg" ;;
282 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
284 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
285 infodir
="$ac_optarg" ;;
287 -libdir |
--libdir |
--libdi |
--libd)
289 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
290 libdir
="$ac_optarg" ;;
292 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
293 |
--libexe |
--libex |
--libe)
294 ac_prev
=libexecdir
;;
295 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
296 |
--libexe=* |
--libex=* |
--libe=*)
297 libexecdir
="$ac_optarg" ;;
299 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
300 |
--localstate |
--localstat |
--localsta |
--localst \
301 |
--locals |
--local |
--loca |
--loc |
--lo)
302 ac_prev
=localstatedir
;;
303 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
304 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
305 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
306 localstatedir
="$ac_optarg" ;;
308 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
310 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
311 mandir
="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
321 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
322 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
325 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
326 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
327 |
--oldin |
--oldi |
--old |
--ol |
--o)
328 ac_prev
=oldincludedir
;;
329 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
330 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
331 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
332 oldincludedir
="$ac_optarg" ;;
334 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
336 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
337 prefix
="$ac_optarg" ;;
339 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
340 |
--program-pre |
--program-pr |
--program-p)
341 ac_prev
=program_prefix
;;
342 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
343 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
344 program_prefix
="$ac_optarg" ;;
346 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
347 |
--program-suf |
--program-su |
--program-s)
348 ac_prev
=program_suffix
;;
349 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
350 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
351 program_suffix
="$ac_optarg" ;;
353 -program-transform-name |
--program-transform-name \
354 |
--program-transform-nam |
--program-transform-na \
355 |
--program-transform-n |
--program-transform- \
356 |
--program-transform |
--program-transfor \
357 |
--program-transfo |
--program-transf \
358 |
--program-trans |
--program-tran \
359 |
--progr-tra |
--program-tr |
--program-t)
360 ac_prev
=program_transform_name
;;
361 -program-transform-name=* |
--program-transform-name=* \
362 |
--program-transform-nam=* |
--program-transform-na=* \
363 |
--program-transform-n=* |
--program-transform-=* \
364 |
--program-transform=* |
--program-transfor=* \
365 |
--program-transfo=* |
--program-transf=* \
366 |
--program-trans=* |
--program-tran=* \
367 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
368 program_transform_name
="$ac_optarg" ;;
370 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
371 |
-silent |
--silent |
--silen |
--sile |
--sil)
374 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
376 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
378 sbindir
="$ac_optarg" ;;
380 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
381 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
382 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
384 ac_prev
=sharedstatedir
;;
385 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
386 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
387 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
389 sharedstatedir
="$ac_optarg" ;;
391 -site |
--site |
--sit)
393 -site=* |
--site=* |
--sit=*)
396 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
398 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
399 srcdir
="$ac_optarg" ;;
401 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
402 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
403 ac_prev
=sysconfdir
;;
404 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
405 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
406 sysconfdir
="$ac_optarg" ;;
408 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
410 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
411 target
="$ac_optarg" ;;
413 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
416 -version |
--version |
--versio |
--versi |
--vers)
417 echo "configure generated by autoconf version 2.13"
421 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* |
--without-*)
434 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package
=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
447 |
--x-incl |
--x-inc |
--x-in |
--x-i)
448 ac_prev
=x_includes
;;
449 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
450 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
451 x_includes
="$ac_optarg" ;;
453 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
454 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
455 ac_prev
=x_libraries
;;
456 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
457 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
458 x_libraries
="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE
; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
509 |
--no-cr |
--no-c) ;;
510 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
511 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
512 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest
* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file
=tree.c
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted
=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted
=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE
; then
563 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file
in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp
='$CPP $CPPFLAGS'
586 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling
=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
601 ac_n
= ac_c
='\c' ac_t
=
609 symbolic_link
='ln -s'
612 # Check for bogus environment variables.
613 # Test if LIBRARY_PATH contains the notation for the current directory
614 # since this would lead to problems installing/building glibc.
615 # LIBRARY_PATH contains the current directory if one of the following
617 # - one of the terminals (":" and ";") is the first or last sign
618 # - two terminals occur directly after each other
619 # - the path contains an element with a dot in it
620 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
621 echo "configure:622: checking LIBRARY_PATH variable" >&5
622 case ${LIBRARY_PATH} in
623 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
624 library_path_setting
="contains current directory"
627 library_path_setting
="ok"
630 echo "$ac_t""$library_path_setting" 1>&6
631 if test "$library_path_setting" != "ok"; then
632 { echo "configure: error:
633 *** LIBRARY_PATH shouldn't contain the current directory when
634 *** building gcc. Please change the environment variable
635 *** and run configure again." 1>&2; exit 1; }
638 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
639 # since this would lead to problems installing/building glibc.
640 # GCC_EXEC_PREFIX contains the current directory if one of the following
642 # - one of the terminals (":" and ";") is the first or last sign
643 # - two terminals occur directly after each other
644 # - the path contains an element with a dot in it
645 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
646 echo "configure:647: checking GCC_EXEC_PREFIX variable" >&5
647 case ${GCC_EXEC_PREFIX} in
648 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
649 gcc_exec_prefix_setting
="contains current directory"
652 gcc_exec_prefix_setting
="ok"
655 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
656 if test "$gcc_exec_prefix_setting" != "ok"; then
657 { echo "configure: error:
658 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
659 *** building gcc. Please change the environment variable
660 *** and run configure again." 1>&2; exit 1; }
663 # Check for additional parameters
666 # Check whether --with-gnu-ld or --without-gnu-ld was given.
667 if test "${with_gnu_ld+set}" = set; then
668 withval
="$with_gnu_ld"
669 gnu_ld_flag
="$with_gnu_ld"
675 # With pre-defined ld
676 # Check whether --with-ld or --without-ld was given.
677 if test "${with_ld+set}" = set; then
679 DEFAULT_LINKER
="$with_ld"
682 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
683 if test ! -x "$DEFAULT_LINKER"; then
684 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
685 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
688 cat >> confdefs.h
<<EOF
689 #define DEFAULT_LINKER "$DEFAULT_LINKER"
695 # Check whether --with-gnu-as or --without-gnu-as was given.
696 if test "${with_gnu_as+set}" = set; then
697 withval
="$with_gnu_as"
698 gas_flag
="$with_gnu_as"
704 # Check whether --with-as or --without-as was given.
705 if test "${with_as+set}" = set; then
707 DEFAULT_ASSEMBLER
="$with_as"
710 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
711 if test ! -x "$DEFAULT_ASSEMBLER"; then
712 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
713 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
716 cat >> confdefs.h
<<EOF
717 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
723 # Check whether --with-stabs or --without-stabs was given.
724 if test "${with_stabs+set}" = set; then
725 withval
="$with_stabs"
733 # Check whether --with-elf or --without-elf was given.
734 if test "${with_elf+set}" = set; then
742 # Specify the local prefix
744 # Check whether --with-local-prefix or --without-local-prefix was given.
745 if test "${with_local_prefix+set}" = set; then
746 withval
="$with_local_prefix"
748 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
750 *) local_prefix
=$with_local_prefix ;;
755 # Default local prefix if it is empty
756 if test x
$local_prefix = x
; then
757 local_prefix
=/usr
/local
760 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
761 # passed in by the toplevel make and thus we'd get different behavior
762 # depending on where we built the sources.
764 # Specify the g++ header file directory
765 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
766 if test "${with_gxx_include_dir+set}" = set; then
767 withval
="$with_gxx_include_dir"
769 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
771 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
776 if test x
${gcc_gxx_include_dir} = x
; then
777 if test x
${enable_version_specific_runtime_libs} = xyes
; then
778 gcc_gxx_include_dir
='${libsubdir}/include/c++'
780 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
781 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
785 # Determine whether or not multilibs are enabled.
786 # Check whether --enable-multilib or --disable-multilib was given.
787 if test "${enable_multilib+set}" = set; then
788 enableval
="$enable_multilib"
796 # Enable expensive internal checks
797 # Check whether --enable-checking or --disable-checking was given.
798 if test "${enable_checking+set}" = set; then
799 enableval
="$enable_checking"
805 ac_gc_always_collect
=
806 case "${enableval}" in
807 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
808 ac_rtlflag_checking
=1 ;;
810 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
811 set fnord
$enableval; shift
816 misc
) ac_checking
=1 ;;
817 tree
) ac_tree_checking
=1 ;;
818 rtlflag
) ac_rtlflag_checking
=1 ;;
819 rtl
) ac_rtl_checking
=1 ;;
820 gc
) ac_gc_checking
=1 ;;
821 gcac
) ac_gc_always_collect
=1 ;;
822 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
829 # Enable some checks by default for development versions of GCC
830 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
833 if test x
$ac_checking != x
; then
834 cat >> confdefs.h
<<\EOF
835 #define ENABLE_CHECKING 1
839 if test x
$ac_tree_checking != x
; then
840 cat >> confdefs.h
<<\EOF
841 #define ENABLE_TREE_CHECKING 1
845 if test x
$ac_rtl_checking != x
; then
846 cat >> confdefs.h
<<\EOF
847 #define ENABLE_RTL_CHECKING 1
851 if test x
$ac_rtlflag_checking != x
; then
852 cat >> confdefs.h
<<\EOF
853 #define ENABLE_RTL_FLAG_CHECKING 1
857 if test x
$ac_gc_checking != x
; then
858 cat >> confdefs.h
<<\EOF
859 #define ENABLE_GC_CHECKING 1
863 if test x
$ac_gc_always_collect != x
; then
864 cat >> confdefs.h
<<\EOF
865 #define ENABLE_GC_ALWAYS_COLLECT 1
870 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
871 if test "${with_cpp_install_dir+set}" = set; then
872 withval
="$with_cpp_install_dir"
873 if test x
$withval = xyes
; then
874 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
875 elif test x
$withval != xno
; then
876 cpp_install_dir
=$withval
881 # Enable __cxa_atexit for C++.
882 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
883 if test "${enable___cxa_atexit+set}" = set; then
884 enableval
="$enable___cxa_atexit"
888 if test x
$enable___cxa_atexit = xyes
; then
889 cat >> confdefs.h
<<\EOF
890 #define DEFAULT_USE_CXA_ATEXIT 1
895 # Enable Multibyte Characters for C/C++
896 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
897 if test "${enable_c_mbchar+set}" = set; then
898 enableval
="$enable_c_mbchar"
899 if test x
$enable_c_mbchar != xno
; then
900 cat >> confdefs.h
<<\EOF
901 #define MULTIBYTE_CHARS 1
909 # Pass with no value to take the default
910 # Pass with a value to specify a thread package
911 # Check whether --enable-threads or --disable-threads was given.
912 if test "${enable_threads+set}" = set; then
913 enableval
="$enable_threads"
920 enable_threads_flag
=$enable_threads
921 # Check if a valid thread package
922 case x
${enable_threads_flag} in
925 target_thread_file
='single'
929 target_thread_file
=''
931 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
932 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
933 target_thread_file
=$enable_threads_flag
936 echo "$enable_threads is an unknown thread package" 1>&2
941 # Check whether --enable-objc-gc or --disable-objc-gc was given.
942 if test "${enable_objc_gc+set}" = set; then
943 enableval
="$enable_objc_gc"
944 if test x
$enable_objc_gc = xno
; then
954 # Check whether --with-dwarf2 or --without-dwarf2 was given.
955 if test "${with_dwarf2+set}" = set; then
956 withval
="$with_dwarf2"
957 dwarf2
="$with_dwarf2"
963 # Check whether --enable-shared or --disable-shared was given.
964 if test "${enable_shared+set}" = set; then
965 enableval
="$enable_shared"
967 case $enable_shared in
971 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
972 for pkg
in $enableval; do
973 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
987 # Determine the host, build, and target systems
989 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
990 if test -f $ac_dir/install-sh
; then
992 ac_install_sh
="$ac_aux_dir/install-sh -c"
994 elif test -f $ac_dir/install.sh
; then
996 ac_install_sh
="$ac_aux_dir/install.sh -c"
1000 if test -z "$ac_aux_dir"; then
1001 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1003 ac_config_guess
=$ac_aux_dir/config.guess
1004 ac_config_sub
=$ac_aux_dir/config.sub
1005 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1008 # Do some error checking and defaulting for the host and target type.
1010 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1013 # 1. You are not allowed to specify --host, --target, and nonopt at the
1015 # 2. Host defaults to nonopt.
1016 # 3. If nonopt is not specified, then host defaults to the current host,
1017 # as determined by config.guess.
1018 # 4. Target and build default to nonopt.
1019 # 5. If nonopt is not specified, then target and build default to host.
1021 # The aliases save the names the user supplied, while $host etc.
1022 # will get canonicalized.
1023 case $host---$target---$nonopt in
1024 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1025 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1029 # Make sure we can run config.sub.
1030 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1031 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1034 echo $ac_n "checking host system type""... $ac_c" 1>&6
1035 echo "configure:1036: checking host system type" >&5
1038 case "$host_alias" in
1042 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1043 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1045 *) host_alias
=$nonopt ;;
1049 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1050 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1053 echo "$ac_t""$host" 1>&6
1055 echo $ac_n "checking target system type""... $ac_c" 1>&6
1056 echo "configure:1057: checking target system type" >&5
1058 target_alias
=$target
1059 case "$target_alias" in
1062 NONE
) target_alias
=$host_alias ;;
1063 *) target_alias
=$nonopt ;;
1067 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1068 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071 echo "$ac_t""$target" 1>&6
1073 echo $ac_n "checking build system type""... $ac_c" 1>&6
1074 echo "configure:1075: checking build system type" >&5
1077 case "$build_alias" in
1080 NONE
) build_alias
=$host_alias ;;
1081 *) build_alias
=$nonopt ;;
1085 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1086 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089 echo "$ac_t""$build" 1>&6
1091 test "$host_alias" != "$target_alias" &&
1092 test "$program_prefix$program_suffix$program_transform_name" = \
1094 program_prefix
=${target_alias}-
1097 # Set program_transform_name
1098 if test "$program_transform_name" = s
,x
,x
,; then
1099 program_transform_name
=
1101 # Double any \ or $. echo might interpret backslashes.
1102 cat <<\EOF_SED
> conftestsed
1103 s
,\\,\\\\,g
; s
,\$
,$$
,g
1105 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1108 test "$program_prefix" != NONE
&&
1109 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1110 # Use a double $ so make ignores it.
1111 test "$program_suffix" != NONE
&&
1112 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1114 # sed with no file args requires a program.
1115 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1118 # Find the native compiler
1119 # Extract the first word of "gcc", so it can be a program name with args.
1120 set dummy gcc
; ac_word
=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$CC"; then
1127 ac_cv_prog_CC
="$CC" # Let the user override the test.
1129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1131 for ac_dir
in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir
=.
1133 if test -f $ac_dir/$ac_word; then
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1145 echo "$ac_t""no" 1>&6
1148 if test -z "$CC"; then
1149 # Extract the first word of "cc", so it can be a program name with args.
1150 set dummy cc
; ac_word
=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$CC"; then
1157 ac_cv_prog_CC
="$CC" # Let the user override the test.
1159 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1162 for ac_dir
in $ac_dummy; do
1163 test -z "$ac_dir" && ac_dir
=.
1164 if test -f $ac_dir/$ac_word; then
1165 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1166 ac_prog_rejected
=yes
1174 if test $ac_prog_rejected = yes; then
1175 # We found a bogon in the path, so make sure we never use it.
1176 set dummy
$ac_cv_prog_CC
1178 if test $# -gt 0; then
1179 # We chose a different compiler from the bogus one.
1180 # However, it has the same basename, so the bogon will be chosen
1181 # first if we set CC to just the basename; use the full file name.
1183 set dummy
"$ac_dir/$ac_word" "$@"
1191 if test -n "$CC"; then
1192 echo "$ac_t""$CC" 1>&6
1194 echo "$ac_t""no" 1>&6
1197 if test -z "$CC"; then
1198 case "`uname -s`" in
1200 # Extract the first word of "cl", so it can be a program name with args.
1201 set dummy cl
; ac_word
=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 if test -n "$CC"; then
1208 ac_cv_prog_CC
="$CC" # Let the user override the test.
1210 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1212 for ac_dir
in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir
=.
1214 if test -f $ac_dir/$ac_word; then
1223 if test -n "$CC"; then
1224 echo "$ac_t""$CC" 1>&6
1226 echo "$ac_t""no" 1>&6
1231 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1234 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1235 echo "configure:1236: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1239 ac_cpp
='$CPP $CPPFLAGS'
1240 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1241 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1242 cross_compiling
=$ac_cv_prog_cc_cross
1244 cat > conftest.
$ac_ext << EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1251 if { (eval echo configure
:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1252 ac_cv_prog_cc_works
=yes
1253 # If we can't run a trivial program, we are probably using a cross compiler.
1254 if (.
/conftest
; exit) 2>/dev
/null
; then
1255 ac_cv_prog_cc_cross
=no
1257 ac_cv_prog_cc_cross
=yes
1260 echo "configure: failed program was:" >&5
1261 cat conftest.
$ac_ext >&5
1262 ac_cv_prog_cc_works
=no
1266 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1267 ac_cpp
='$CPP $CPPFLAGS'
1268 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1269 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1270 cross_compiling
=$ac_cv_prog_cc_cross
1272 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1273 if test $ac_cv_prog_cc_works = no
; then
1274 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1276 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1277 echo "configure:1278: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1278 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1279 cross_compiling
=$ac_cv_prog_cc_cross
1281 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether we are using GNU C" >&5
1283 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 cat > conftest.c
<<EOF
1291 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1298 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1300 if test $ac_cv_prog_gcc = yes; then
1306 ac_test_CFLAGS
="${CFLAGS+set}"
1307 ac_save_CFLAGS
="$CFLAGS"
1309 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1310 echo "configure:1311: checking whether ${CC-cc} accepts -g" >&5
1311 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 echo 'void f(){}' > conftest.c
1315 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1324 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1325 if test "$ac_test_CFLAGS" = set; then
1326 CFLAGS
="$ac_save_CFLAGS"
1327 elif test $ac_cv_prog_cc_g = yes; then
1328 if test "$GCC" = yes; then
1334 if test "$GCC" = yes; then
1341 if test "x$CC" != xcc
; then
1342 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1343 echo "configure:1344: checking whether $CC and cc understand -c and -o together" >&5
1345 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1346 echo "configure:1347: checking whether cc understands -c and -o together" >&5
1348 set dummy
$CC; ac_cc
="`echo $2 |
1349 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1350 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 echo 'foo(){}' > conftest.c
1354 # Make sure it works both with $CC and with simple cc.
1355 # We do the test twice because some compilers refuse to overwrite an
1356 # existing .o file with -o, though they will create one.
1357 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1358 if { (eval echo configure
:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1359 test -f conftest.o
&& { (eval echo configure
:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1361 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1362 if test "x$CC" != xcc
; then
1363 # Test first that cc exists at all.
1364 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1365 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1366 if { (eval echo configure
:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1367 test -f conftest.o
&& { (eval echo configure
:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1372 # cc exists but doesn't like -o.
1373 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1378 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1383 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1386 echo "$ac_t""no" 1>&6
1387 cat >> confdefs.h
<<\EOF
1388 #define NO_MINUS_C_MINUS_O 1
1393 # autoconf is lame and doesn't give us any substitution variable for this.
1394 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1395 NO_MINUS_C_MINUS_O
=yes
1397 OUTPUT_OPTION
='-o $@'
1402 # See if GNAT has been installed
1403 if test $host != $build; then
1404 ac_tool_prefix
=${host_alias}-
1410 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
1411 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$GNATBIND"; then
1418 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1420 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1422 for ac_dir
in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir
=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
1432 GNATBIND
="$ac_cv_prog_GNATBIND"
1433 if test -n "$GNATBIND"; then
1434 echo "$ac_t""$GNATBIND" 1>&6
1436 echo "$ac_t""no" 1>&6
1440 if test -z "$ac_cv_prog_GNATBIND"; then
1441 if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "gnatbind", so it can be a program name with args.
1443 set dummy gnatbind
; ac_word
=$2
1444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1445 echo "configure:1446: checking for $ac_word" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 if test -n "$GNATBIND"; then
1450 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
1452 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1454 for ac_dir
in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir
=.
1456 if test -f $ac_dir/$ac_word; then
1457 ac_cv_prog_GNATBIND
="gnatbind"
1462 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
1465 GNATBIND
="$ac_cv_prog_GNATBIND"
1466 if test -n "$GNATBIND"; then
1467 echo "$ac_t""$GNATBIND" 1>&6
1469 echo "$ac_t""no" 1>&6
1477 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
1478 echo "configure:1479: checking for compiler driver that understands Ada" >&5
1479 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1482 cat >conftest.adb
<<EOF
1483 procedure conftest is begin null; end conftest;
1486 # Have to do ac_tool_prefix and user overrides by hand.
1489 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
1490 ${ac_tool_prefix}$user_cc $user_cc \
1491 ${ac_tool_prefix}gcc gcc \
1492 ${ac_tool_prefix}cc cc \
1493 ${ac_tool_prefix}gnatgcc gnatgcc \
1494 ${ac_tool_prefix}gnatcc gnatcc \
1495 ${ac_tool_prefix}adagcc adagcc \
1496 ${ac_tool_prefix}adacc adacc
; do
1497 # There is a bug in all released versions of GCC which causes the
1498 # driver to exit successfully when the appropriate language module
1499 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
1500 # Therefore we must check for the error message as well as an
1501 # unsuccessful exit.
1502 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
1503 if test x
"$errors" = x
; then
1504 gcc_cv_prog_adac
=$cand
1511 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
1512 ADAC
=$gcc_cv_prog_adac
1515 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
1522 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1524 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 save_CFLAGS
="$CFLAGS"
1528 CFLAGS
="-Wno-long-long"
1529 cat > conftest.
$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1537 if { (eval echo configure
:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1539 ac_cv_prog_cc_no_long_long
=yes
1541 echo "configure: failed program was:" >&5
1542 cat conftest.
$ac_ext >&5
1544 ac_cv_prog_cc_no_long_long
=no
1547 CFLAGS
="$save_CFLAGS"
1550 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1552 if test x
$have_gnat != xno
; then
1553 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6
1554 echo "configure:1555: checking whether ${ADAC} accepts -Wno-long-long" >&5
1555 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 cat >conftest.adb
<<EOF
1559 procedure conftest is begin null; end conftest;
1561 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
1562 ac_cv_prog_adac_no_long_long
=yes
1564 ac_cv_prog_adac_no_long_long
=no
1569 echo "$ac_t""$ac_cv_prog_adac_no_long_long" 1>&6
1571 ac_cv_prog_adac_no_long_long
=yes
1575 if test $ac_cv_prog_cc_no_long_long = yes && \
1576 test $ac_cv_prog_adac_no_long_long = yes ; then
1577 strict1_warn
="-pedantic -Wno-long-long"
1581 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1582 echo "configure:1583: checking how to run the C preprocessor" >&5
1583 # On Suns, sometimes $CPP names a directory.
1584 if test -n "$CPP" && test -d "$CPP"; then
1587 if test -z "$CPP"; then
1588 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 # This must be in double quotes, not single quotes, because CPP may get
1592 # substituted into the Makefile and "${CC-cc}" will confuse make.
1594 # On the NeXT, cc -E runs the code through the compiler's parser,
1595 # not just through cpp.
1596 cat > conftest.
$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1602 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1603 { (eval echo configure
:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1604 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1605 if test -z "$ac_err"; then
1609 echo "configure: failed program was:" >&5
1610 cat conftest.
$ac_ext >&5
1612 CPP
="${CC-cc} -E -traditional-cpp"
1613 cat > conftest.
$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1619 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1620 { (eval echo configure
:1621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1621 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1622 if test -z "$ac_err"; then
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1629 CPP
="${CC-cc} -nologo -E"
1630 cat > conftest.
$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1636 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1637 { (eval echo configure
:1638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1638 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1639 if test -z "$ac_err"; then
1643 echo "configure: failed program was:" >&5
1644 cat conftest.
$ac_ext >&5
1653 ac_cv_prog_CPP
="$CPP"
1655 CPP
="$ac_cv_prog_CPP"
1657 ac_cv_prog_CPP
="$CPP"
1659 echo "$ac_t""$CPP" 1>&6
1661 echo $ac_n "checking for inline""... $ac_c" 1>&6
1662 echo "configure:1663: checking for inline" >&5
1663 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1667 for ac_kw
in inline __inline__ __inline
; do
1668 cat > conftest.
$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1676 if { (eval echo configure
:1677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1678 ac_cv_c_inline
=$ac_kw; break
1680 echo "configure: failed program was:" >&5
1681 cat conftest.
$ac_ext >&5
1688 echo "$ac_t""$ac_cv_c_inline" 1>&6
1689 case "$ac_cv_c_inline" in
1691 no
) cat >> confdefs.h
<<\EOF
1695 *) cat >> confdefs.h
<<EOF
1696 #define inline $ac_cv_c_inline
1701 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1702 echo "configure:1703: checking for volatile" >&5
1703 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 cat > conftest.
$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1714 if { (eval echo configure
:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1716 gcc_cv_c_volatile
=yes
1718 echo "configure: failed program was:" >&5
1719 cat conftest.
$ac_ext >&5
1721 gcc_cv_c_volatile
=no
1726 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1727 if test $gcc_cv_c_volatile = yes ; then
1728 cat >> confdefs.h
<<\EOF
1729 #define HAVE_VOLATILE 1
1735 echo $ac_n "checking for long double""... $ac_c" 1>&6
1736 echo "configure:1737: checking for long double" >&5
1737 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 if test "$GCC" = yes; then
1741 gcc_cv_c_long_double
=yes
1743 cat > conftest.
$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1748 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1749 long double foo = 0.0;
1750 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1751 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1754 if { (eval echo configure
:1755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1756 gcc_cv_c_long_double
=yes
1758 echo "configure: failed program was:" >&5
1759 cat conftest.
$ac_ext >&5
1761 gcc_cv_c_long_double
=no
1767 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1768 if test $gcc_cv_c_long_double = yes; then
1769 cat >> confdefs.h
<<\EOF
1770 #define HAVE_LONG_DOUBLE 1
1775 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1776 echo "configure:1777: checking for long long int" >&5
1777 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1788 if { (eval echo configure
:1789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1790 ac_cv_c_long_long
=yes
1792 echo "configure: failed program was:" >&5
1793 cat conftest.
$ac_ext >&5
1795 ac_cv_c_long_long
=no
1800 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1801 if test $ac_cv_c_long_long = yes; then
1802 cat >> confdefs.h
<<\EOF
1803 #define HAVE_LONG_LONG 1
1807 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1808 echo "configure:1809: checking for __int64" >&5
1809 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.
$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1820 if { (eval echo configure
:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1824 echo "configure: failed program was:" >&5
1825 cat conftest.
$ac_ext >&5
1832 echo "$ac_t""$ac_cv_c___int64" 1>&6
1833 if test $ac_cv_c___int64 = yes; then
1834 cat >> confdefs.h
<<\EOF
1835 #define HAVE___INT64 1
1840 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1841 echo "configure:1842: checking for built-in _Bool" >&5
1842 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1853 if { (eval echo configure
:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1857 echo "configure: failed program was:" >&5
1858 cat conftest.
$ac_ext >&5
1866 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1867 if test $gcc_cv_c__bool = yes; then
1868 cat >> confdefs.h
<<\EOF
1869 #define HAVE__BOOL 1
1875 # sizeof(char) is 1 by definition.
1876 echo $ac_n "checking size of short""... $ac_c" 1>&6
1877 echo "configure:1878: checking size of short" >&5
1878 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1882 cat > conftest.
$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include "confdefs.h"
1886 #include <sys/types.h>
1890 switch (0) case 0: case (sizeof (short) == $ac_size):;
1893 if { (eval echo configure
:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1895 ac_cv_sizeof_short
=$ac_size
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1901 if test x
$ac_cv_sizeof_short != x
; then break; fi
1906 if test x
$ac_cv_sizeof_short = x
; then
1907 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1909 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1910 cat >> confdefs.h
<<EOF
1911 #define SIZEOF_SHORT $ac_cv_sizeof_short
1915 echo $ac_n "checking size of int""... $ac_c" 1>&6
1916 echo "configure:1917: checking size of int" >&5
1917 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 #include "confdefs.h"
1925 #include <sys/types.h>
1929 switch (0) case 0: case (sizeof (int) == $ac_size):;
1932 if { (eval echo configure
:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1934 ac_cv_sizeof_int
=$ac_size
1936 echo "configure: failed program was:" >&5
1937 cat conftest.
$ac_ext >&5
1940 if test x
$ac_cv_sizeof_int != x
; then break; fi
1945 if test x
$ac_cv_sizeof_int = x
; then
1946 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1948 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1949 cat >> confdefs.h
<<EOF
1950 #define SIZEOF_INT $ac_cv_sizeof_int
1954 echo $ac_n "checking size of long""... $ac_c" 1>&6
1955 echo "configure:1956: checking size of long" >&5
1956 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1960 cat > conftest.
$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1963 #include "confdefs.h"
1964 #include <sys/types.h>
1968 switch (0) case 0: case (sizeof (long) == $ac_size):;
1971 if { (eval echo configure
:1972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1973 ac_cv_sizeof_long
=$ac_size
1975 echo "configure: failed program was:" >&5
1976 cat conftest.
$ac_ext >&5
1979 if test x
$ac_cv_sizeof_long != x
; then break; fi
1984 if test x
$ac_cv_sizeof_long = x
; then
1985 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1987 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1988 cat >> confdefs.h
<<EOF
1989 #define SIZEOF_LONG $ac_cv_sizeof_long
1993 if test $ac_cv_c_long_long = yes; then
1994 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1995 echo "configure:1996: checking size of long long" >&5
1996 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2000 cat > conftest.
$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2003 #include "confdefs.h"
2004 #include <sys/types.h>
2008 switch (0) case 0: case (sizeof (long long) == $ac_size):;
2011 if { (eval echo configure
:2012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2013 ac_cv_sizeof_long_long
=$ac_size
2015 echo "configure: failed program was:" >&5
2016 cat conftest.
$ac_ext >&5
2019 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
2024 if test x
$ac_cv_sizeof_long_long = x
; then
2025 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
2027 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2028 cat >> confdefs.h
<<EOF
2029 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2034 if test $ac_cv_c___int64 = yes; then
2035 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
2036 echo "configure:2037: checking size of __int64" >&5
2037 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2044 #include "confdefs.h"
2045 #include <sys/types.h>
2049 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
2052 if { (eval echo configure
:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2054 ac_cv_sizeof___int64
=$ac_size
2056 echo "configure: failed program was:" >&5
2057 cat conftest.
$ac_ext >&5
2060 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
2065 if test x
$ac_cv_sizeof___int64 = x
; then
2066 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
2068 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
2069 cat >> confdefs.h
<<EOF
2070 #define SIZEOF___INT64 $ac_cv_sizeof___int64
2076 echo $ac_n "checking execution character set""... $ac_c" 1>&6
2077 echo "configure:2078: checking execution character set" >&5
2078 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
2085 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
2089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2090 egrep "ASCII" >/dev
/null
2>&1; then
2092 ac_cv_c_charset
=ASCII
2096 if test x
${ac_cv_c_charset+set} != xset
; then
2097 cat > conftest.
$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2100 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
2101 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
2105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2106 egrep "EBCDIC" >/dev
/null
2>&1; then
2108 ac_cv_c_charset
=EBCDIC
2113 if test x
${ac_cv_c_charset+set} != xset
; then
2114 ac_cv_c_charset
=unknown
2118 echo "$ac_t""$ac_cv_c_charset" 1>&6
2119 if test $ac_cv_c_charset = unknown
; then
2120 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
2121 elif test $ac_cv_c_charset = EBCDIC
; then
2122 cat >> confdefs.h
<<\EOF
2123 #define HOST_EBCDIC 1
2128 # If the native compiler is GCC, we can enable warnings even in stage1.
2129 # That's useful for people building cross-compilers, or just running a
2132 if test "x$GCC" = "xyes"; then
2133 warn_cflags
='$(GCC_WARN_CFLAGS)'
2137 # Stage specific cflags for build.
2141 if test x
$GCC = xyes
2143 stage1_cflags
="-Wa,-J"
2149 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
2150 # sources; use -no-cpp-precomp to get to GNU cpp.
2151 # Apple's GCC has bugs in designated initializer handling, so disable
2153 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
2158 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2159 echo "configure:2160: checking whether ${MAKE-make} sets \${MAKE}" >&5
2160 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2161 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftestmake
<<\EOF
2166 @
echo 'ac_maketemp="${MAKE}"'
2168 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2169 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2170 if test -n "$ac_maketemp"; then
2171 eval ac_cv_prog_make_
${ac_make}_set
=yes
2173 eval ac_cv_prog_make_
${ac_make}_set
=no
2177 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2181 echo "$ac_t""no" 1>&6
2182 SET_MAKE
="MAKE=${MAKE-make}"
2186 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2187 echo "configure:2188: checking whether a default assembler was specified" >&5
2188 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2189 if test x
"$gas_flag" = x
"no"; then
2190 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2192 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2195 echo "$ac_t""no" 1>&6
2198 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether a default linker was specified" >&5
2200 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2201 if test x
"$gnu_ld_flag" = x
"no"; then
2202 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2204 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2207 echo "$ac_t""no" 1>&6
2210 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2211 echo "configure:2212: checking for GNU C library" >&5
2212 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 cat > conftest.
$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 #include <features.h>
2221 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2222 #error Not a GNU C library system
2226 if { (eval echo configure
:2227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2230 echo "configure: failed program was:" >&5
2231 cat conftest.
$ac_ext >&5
2238 echo "$ac_t""$gcc_cv_glibc" 1>&6
2239 if test $gcc_cv_glibc = yes; then
2240 cat >> confdefs.h
<<\EOF
2241 #define _GNU_SOURCE 1
2246 # Find some useful tools
2247 for ac_prog
in gawk mawk nawk
awk
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy
$ac_prog; ac_word
=$2
2251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_word" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 if test -n "$AWK"; then
2257 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2261 for ac_dir
in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir
=.
2263 if test -f $ac_dir/$ac_word; then
2264 ac_cv_prog_AWK
="$ac_prog"
2271 AWK
="$ac_cv_prog_AWK"
2272 if test -n "$AWK"; then
2273 echo "$ac_t""$AWK" 1>&6
2275 echo "$ac_t""no" 1>&6
2278 test -n "$AWK" && break
2281 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2282 echo "configure:2283: checking whether ln works" >&5
2283 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 rm -f conftestdata_t
2287 echo >conftestdata_f
2288 if ln conftestdata_f conftestdata_t
2>/dev
/null
2292 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2294 gcc_cv_prog_LN
="ln -s"
2299 rm -f conftestdata_f conftestdata_t
2302 LN
="$gcc_cv_prog_LN"
2303 if test "$gcc_cv_prog_LN" = "ln"; then
2304 echo "$ac_t""yes" 1>&6
2306 if test "$gcc_cv_prog_LN" = "ln -s"; then
2307 echo "$ac_t""no, using ln -s" 1>&6
2309 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2313 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2314 echo "configure:2315: checking whether ln -s works" >&5
2315 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 rm -f conftestdata_t
2319 echo >conftestdata_f
2320 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2322 gcc_cv_prog_LN_S
="ln -s"
2324 if ln conftestdata_f conftestdata_t
2>/dev
/null
2331 rm -f conftestdata_f conftestdata_t
2334 LN_S
="$gcc_cv_prog_LN_S"
2335 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2336 echo "$ac_t""yes" 1>&6
2338 if test "$gcc_cv_prog_LN_S" = "ln"; then
2339 echo "$ac_t""no, using ln" 1>&6
2341 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2345 # Extract the first word of "ranlib", so it can be a program name with args.
2346 set dummy ranlib
; ac_word
=$2
2347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_word" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 if test -n "$RANLIB"; then
2353 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2355 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2357 for ac_dir
in $ac_dummy; do
2358 test -z "$ac_dir" && ac_dir
=.
2359 if test -f $ac_dir/$ac_word; then
2360 ac_cv_prog_RANLIB
="ranlib"
2365 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2368 RANLIB
="$ac_cv_prog_RANLIB"
2369 if test -n "$RANLIB"; then
2370 echo "$ac_t""$RANLIB" 1>&6
2372 echo "$ac_t""no" 1>&6
2375 # Find a good install program. We prefer a C program (faster),
2376 # so one script is as good as another. But avoid the broken or
2377 # incompatible versions:
2378 # SysV /etc/install, /usr/sbin/install
2379 # SunOS /usr/etc/install
2380 # IRIX /sbin/install
2382 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2383 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2384 # ./install, which can be erroneously created by make from ./install.sh.
2385 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2386 echo "configure:2387: checking for a BSD compatible install" >&5
2387 if test -z "$INSTALL"; then
2388 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2392 for ac_dir
in $PATH; do
2393 # Account for people who put trailing slashes in PATH elements.
2395 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2397 # OSF1 and SCO ODT 3.0 have their own names for install.
2398 for ac_prog
in ginstall scoinst
install; do
2399 if test -f $ac_dir/$ac_prog; then
2400 if test $ac_prog = install &&
2401 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2402 # AIX install. It has an incompatible calling convention.
2403 # OSF/1 installbsd also uses dspmsg, but is usable.
2406 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2417 if test "${ac_cv_path_install+set}" = set; then
2418 INSTALL
="$ac_cv_path_install"
2420 # As a last resort, use the slow shell script. We don't cache a
2421 # path for INSTALL within a source directory, because that will
2422 # break other packages using the cache if that directory is
2423 # removed, or if the path is relative.
2424 INSTALL
="$ac_install_sh"
2427 echo "$ac_t""$INSTALL" 1>&6
2429 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2430 # It thinks the first close brace ends the variable substitution.
2431 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2433 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2436 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2437 echo "configure:2438: checking for ANSI C header files" >&5
2438 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 cat > conftest.
$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2449 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2450 { (eval echo configure
:2451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2451 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2452 if test -z "$ac_err"; then
2454 ac_cv_header_stdc
=yes
2457 echo "configure: failed program was:" >&5
2458 cat conftest.
$ac_ext >&5
2460 ac_cv_header_stdc
=no
2464 if test $ac_cv_header_stdc = yes; then
2465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2472 egrep "memchr" >/dev
/null
2>&1; then
2476 ac_cv_header_stdc
=no
2482 if test $ac_cv_header_stdc = yes; then
2483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2484 cat > conftest.
$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2490 egrep "free" >/dev
/null
2>&1; then
2494 ac_cv_header_stdc
=no
2500 if test $ac_cv_header_stdc = yes; then
2501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2502 if test "$cross_compiling" = yes; then
2505 cat > conftest.
$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2509 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2510 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2512 int main () { int i; for (i = 0; i < 256; i++)
2513 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2517 if { (eval echo configure
:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 ac_cv_header_stdc
=no
2532 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2533 if test $ac_cv_header_stdc = yes; then
2534 cat >> confdefs.h
<<\EOF
2535 #define STDC_HEADERS 1
2540 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2541 echo "configure:2542: checking whether time.h and sys/time.h may both be included" >&5
2542 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.
$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 #include <sys/types.h>
2549 #include <sys/time.h>
2555 if { (eval echo configure
:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2557 ac_cv_header_time
=yes
2559 echo "configure: failed program was:" >&5
2560 cat conftest.
$ac_ext >&5
2562 ac_cv_header_time
=no
2567 echo "$ac_t""$ac_cv_header_time" 1>&6
2568 if test $ac_cv_header_time = yes; then
2569 cat >> confdefs.h
<<\EOF
2570 #define TIME_WITH_SYS_TIME 1
2575 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2576 echo "configure:2577: checking for working stdbool.h" >&5
2577 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 cat > conftest.
$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2583 #include <stdbool.h>
2588 if { (eval echo configure
:2589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2590 ac_cv_header_stdbool_h
=yes
2592 echo "configure: failed program was:" >&5
2593 cat conftest.
$ac_ext >&5
2595 ac_cv_header_stdbool_h
=no
2600 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2601 if test $ac_cv_header_stdbool_h = yes; then
2602 cat >> confdefs.h
<<\EOF
2603 #define HAVE_STDBOOL_H 1
2608 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2609 echo "configure:2610: checking whether string.h and strings.h may both be included" >&5
2610 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2617 #include <strings.h>
2622 if { (eval echo configure
:2623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2624 gcc_cv_header_string
=yes
2626 echo "configure: failed program was:" >&5
2627 cat conftest.
$ac_ext >&5
2629 gcc_cv_header_string
=no
2634 echo "$ac_t""$gcc_cv_header_string" 1>&6
2635 if test $gcc_cv_header_string = yes; then
2636 cat >> confdefs.h
<<\EOF
2637 #define STRING_WITH_STRINGS 1
2642 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2643 echo "configure:2644: checking for sys/wait.h that is POSIX.1 compatible" >&5
2644 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 #include <sys/types.h>
2651 #include <sys/wait.h>
2653 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2656 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2661 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2664 if { (eval echo configure
:2665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2666 ac_cv_header_sys_wait_h
=yes
2668 echo "configure: failed program was:" >&5
2669 cat conftest.
$ac_ext >&5
2671 ac_cv_header_sys_wait_h
=no
2676 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2677 if test $ac_cv_header_sys_wait_h = yes; then
2678 cat >> confdefs.h
<<\EOF
2679 #define HAVE_SYS_WAIT_H 1
2684 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2685 fcntl.h unistd.h sys
/file.h sys
/time.h \
2686 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2687 direct.h malloc.h langinfo.h
2689 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_hdr" >&5
2692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2700 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure
:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2705 eval "ac_cv_header_$ac_safe=yes"
2708 echo "configure: failed program was:" >&5
2709 cat conftest.
$ac_ext >&5
2711 eval "ac_cv_header_$ac_safe=no"
2715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2718 cat >> confdefs.h
<<EOF
2719 #define $ac_tr_hdr 1
2723 echo "$ac_t""no" 1>&6
2728 # Check for thread headers.
2729 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2730 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2731 echo "configure:2732: checking for thread.h" >&5
2732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.
$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2740 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure
:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2743 if test -z "$ac_err"; then
2745 eval "ac_cv_header_$ac_safe=yes"
2748 echo "configure: failed program was:" >&5
2749 cat conftest.
$ac_ext >&5
2751 eval "ac_cv_header_$ac_safe=no"
2755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2759 echo "$ac_t""no" 1>&6
2763 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2764 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2765 echo "configure:2766: checking for pthread.h" >&5
2766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 cat > conftest.
$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2772 #include <pthread.h>
2774 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure
:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2779 eval "ac_cv_header_$ac_safe=yes"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.
$ac_ext >&5
2785 eval "ac_cv_header_$ac_safe=no"
2789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2793 echo "$ac_t""no" 1>&6
2798 # These tests can't be done till we know if we have limits.h.
2799 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2800 echo "configure:2801: checking for CHAR_BIT" >&5
2801 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 #ifdef HAVE_LIMITS_H
2814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2815 egrep "found" >/dev
/null
2>&1; then
2817 gcc_cv_decl_char_bit
=yes
2820 gcc_cv_decl_char_bit
=no
2827 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2828 if test $gcc_cv_decl_char_bit = no
; then
2829 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2830 echo "configure:2831: checking number of bits in a byte" >&5
2831 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2836 while test $i -lt 65; do
2837 cat > conftest.
$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2843 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2844 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2848 if { (eval echo configure
:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2850 gcc_cv_c_nbby
=$i; break
2852 echo "configure: failed program was:" >&5
2853 cat conftest.
$ac_ext >&5
2858 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2862 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2863 if test $gcc_cv_c_nbby = failed
; then
2864 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2866 cat >> confdefs.h
<<EOF
2867 #define CHAR_BIT $gcc_cv_c_nbby
2872 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2873 echo "configure:2874: checking byte ordering" >&5
2874 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 ac_cv_c_compile_endian
=unknown
2880 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2881 ac_cpp
='$CPP $CPPFLAGS'
2882 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2883 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2884 cross_compiling
=$ac_cv_prog_cc_cross
2886 cat > conftest.
$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2890 #ifdef HAVE_LIMITS_H
2891 # include <limits.h>
2893 /* This structure must have no internal padding. */
2895 char prefix[sizeof "\nendian:" - 1];
2900 #if SIZEOF_SHORT == 4
2901 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2903 ('A' << CHAR_BIT) | 'B',
2907 if { (eval echo configure
:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2909 sed 's/^[0-7]*[ ]*/ /
2912 s/ [0-9][0-9][0-9]/./g
2918 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2919 ac_cv_c_compile_endian
=big-endian
2920 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2921 ac_cv_c_compile_endian
=little-endian
2926 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2927 ac_cpp
='$CPP $CPPFLAGS'
2928 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2929 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2930 cross_compiling
=$ac_cv_prog_cc_cross
2935 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2936 if test $ac_cv_c_compile_endian = unknown
; then
2937 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2938 elif test $ac_cv_c_compile_endian = big-endian
; then
2939 cat >> confdefs.h
<<\EOF
2940 #define HOST_WORDS_BIG_ENDIAN 1
2945 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2946 echo "configure:2947: checking floating point format" >&5
2947 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2953 ac_cpp
='$CPP $CPPFLAGS'
2954 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2955 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2956 cross_compiling
=$ac_cv_prog_cc_cross
2958 cat > conftest.
$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 /* This will not work unless sizeof(double) == 8. */
2962 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2964 /* This structure must have no internal padding. */
2965 struct possibility {
2971 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2972 struct possibility table [] =
2974 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2975 C( 3.53802595280598432000e+18), /* D__float - VAX */
2976 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2977 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2978 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2981 if { (eval echo configure
:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2983 sed 's/^[0-7]*[ ]*/ /
2986 s/ [0-9][0-9][0-9]/./g
2992 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2993 ac_cv_c_float_format
='IEEE (big-endian)'
2994 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2995 ac_cv_c_float_format
='IEEE (big-endian)'
2996 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2997 ac_cv_c_float_format
='IEEE (little-endian)'
2998 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2999 ac_cv_c_float_format
='IEEE (little-endian)'
3000 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3001 ac_cv_c_float_format
='VAX D-float'
3002 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3003 ac_cv_c_float_format
='PDP-10'
3004 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
3005 ac_cv_c_float_format
='IBM 370 hex'
3007 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
3010 { echo "configure: error: compile failed" 1>&2; exit 1; }
3014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3015 ac_cpp
='$CPP $CPPFLAGS'
3016 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3017 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3018 cross_compiling
=$ac_cv_prog_cc_cross
3023 echo "$ac_t""$ac_cv_c_float_format" 1>&6
3024 # IEEE is the default format. If the float endianness isn't the same
3025 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
3026 # (which is a tristate: yes, no, default). This is only an issue with
3027 # IEEE; the other formats are only supported by a few machines each,
3028 # all with the same endianness.
3031 case $ac_cv_c_float_format in
3032 'IEEE (big-endian)' )
3033 if test $ac_cv_c_compile_endian = little-endian
; then
3037 'IEEE (little-endian)' )
3038 if test $ac_cv_c_compile_endian = big-endian
; then
3043 format
=VAX_FLOAT_FORMAT
3046 format
=PDP10_FLOAT_FORMAT
3049 format
=IBM_FLOAT_FORMAT
3052 if test -n "$format"; then
3053 cat >> confdefs.h
<<EOF
3054 #define HOST_FLOAT_FORMAT $format
3058 if test -n "$fbigend"; then
3059 cat >> confdefs.h
<<EOF
3060 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
3066 # See if we have the mktemp command.
3067 # Extract the first word of "mktemp", so it can be a program name with args.
3068 set dummy mktemp
; ac_word
=$2
3069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3070 echo "configure:3071: checking for $ac_word" >&5
3071 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 if test -n "$have_mktemp_command"; then
3075 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3077 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3079 for ac_dir
in $ac_dummy; do
3080 test -z "$ac_dir" && ac_dir
=.
3081 if test -f $ac_dir/$ac_word; then
3082 ac_cv_prog_have_mktemp_command
="yes"
3087 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3090 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3091 if test -n "$have_mktemp_command"; then
3092 echo "$ac_t""$have_mktemp_command" 1>&6
3094 echo "$ac_t""no" 1>&6
3098 # Do we have a single-tree copy of texinfo?
3099 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3100 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3101 gcc_cv_prog_makeinfo_modern
=yes
3102 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3104 # See if makeinfo has been installed and is modern enough
3105 # that we can use it.
3106 # Extract the first word of "makeinfo", so it can be a program name with args.
3107 set dummy makeinfo
; ac_word
=$2
3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_word" >&5
3110 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 if test -n "$MAKEINFO"; then
3114 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3116 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3118 for ac_dir
in $ac_dummy; do
3119 test -z "$ac_dir" && ac_dir
=.
3120 if test -f $ac_dir/$ac_word; then
3121 ac_cv_prog_MAKEINFO
="makeinfo"
3128 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3129 if test -n "$MAKEINFO"; then
3130 echo "$ac_t""$MAKEINFO" 1>&6
3132 echo "$ac_t""no" 1>&6
3135 if test -n "$MAKEINFO"; then
3136 # Found it, now check the version.
3137 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3138 echo "configure:3139: checking for modern makeinfo" >&5
3139 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3143 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3144 echo "configure:3145: version of makeinfo is $ac_prog_version" >&5
3145 case $ac_prog_version in
3146 '') gcc_cv_prog_makeinfo_modern
=no
;;
3148 gcc_cv_prog_makeinfo_modern
=yes;;
3149 *) gcc_cv_prog_makeinfo_modern
=no
;;
3154 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3156 gcc_cv_prog_makeinfo_modern
=no
3161 if test $gcc_cv_prog_makeinfo_modern = no
; then
3162 echo "configure: warning:
3163 *** Makeinfo is missing or too old.
3164 *** Info documentation will not be built." 1>&2
3170 # Is pod2man recent enough to regenerate manpages?
3171 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3172 echo "configure:3173: checking for recent Pod::Man" >&5
3173 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3174 echo "$ac_t""yes" 1>&6
3175 GENERATED_MANPAGES
=generated-manpages
3177 echo "$ac_t""no" 1>&6
3182 if test -f $srcdir/..
/flex
/skel.c
; then
3183 FLEX
='$(objdir)/../flex/flex'
3185 # Extract the first word of "flex", so it can be a program name with args.
3186 set dummy flex
; ac_word
=$2
3187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3188 echo "configure:3189: checking for $ac_word" >&5
3189 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 if test -n "$FLEX"; then
3193 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3195 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3197 for ac_dir
in $ac_dummy; do
3198 test -z "$ac_dir" && ac_dir
=.
3199 if test -f $ac_dir/$ac_word; then
3200 ac_cv_prog_FLEX
="flex"
3205 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3208 FLEX
="$ac_cv_prog_FLEX"
3209 if test -n "$FLEX"; then
3210 echo "$ac_t""$FLEX" 1>&6
3212 echo "$ac_t""no" 1>&6
3218 # The -L switch is so bison can find its skeleton file.
3219 if test -f $srcdir/..
/bison
/bison.simple
; then
3220 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3222 # Extract the first word of "bison", so it can be a program name with args.
3223 set dummy bison
; ac_word
=$2
3224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_word" >&5
3226 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 if test -n "$BISON"; then
3230 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3234 for ac_dir
in $ac_dummy; do
3235 test -z "$ac_dir" && ac_dir
=.
3236 if test -f $ac_dir/$ac_word; then
3237 ac_cv_prog_BISON
="bison"
3242 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3245 BISON
="$ac_cv_prog_BISON"
3246 if test -n "$BISON"; then
3247 echo "$ac_t""$BISON" 1>&6
3249 echo "$ac_t""no" 1>&6
3254 # These libraries may be used by collect2.
3255 # We may need a special search path to get them linked.
3256 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3257 echo "configure:3258: checking for collect2 libraries" >&5
3258 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3262 for libs
in '' -lld -lmld \
3263 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3264 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3267 cat > conftest.
$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 /* Override any gcc2 internal prototype to avoid an error. */
3271 /* We use char because int might match the return type of a gcc2
3272 builtin and then its argument prototype would still apply. */
3279 if { (eval echo configure
:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3281 gcc_cv_collect2_libs
="$libs"; break
3283 echo "configure: failed program was:" >&5
3284 cat conftest.
$ac_ext >&5
3289 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3292 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3293 case $gcc_cv_collect2_libs in
3295 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3299 # When building Ada code on Alpha, we need exc_resume which is usually in
3300 # -lexc. So test for it.
3304 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3305 echo "configure:3306: checking for library containing exc_resume" >&5
3306 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_func_search_save_LIBS
="$LIBS"
3310 ac_cv_search_exc_resume
="no"
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3323 if { (eval echo configure
:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3325 ac_cv_search_exc_resume
="none required"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.
$ac_ext >&5
3331 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3332 LIBS
="-l$i $ac_func_search_save_LIBS"
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3345 if { (eval echo configure
:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3347 ac_cv_search_exc_resume
="-l$i"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3355 LIBS
="$ac_func_search_save_LIBS"
3358 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3359 if test "$ac_cv_search_exc_resume" != "no"; then
3360 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3369 # See if the stage1 system preprocessor understands the ANSI C
3370 # preprocessor stringification operator. (Used by symcat.h.)
3373 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3374 echo "configure:3375: checking for preprocessor stringizing operator" >&5
3375 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 cat > conftest.
$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3384 char *s = x(teststring);
3387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3388 egrep "#teststring" >/dev
/null
2>&1; then
3390 ac_cv_c_stringize
=no
3393 ac_cv_c_stringize
=yes
3399 if test "${ac_cv_c_stringize}" = yes
3401 cat >> confdefs.h
<<\EOF
3402 #define HAVE_STRINGIZE 1
3406 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3409 # Use <inttypes.h> only if it exists,
3410 # doesn't clash with <sys/types.h>, and declares intmax_t.
3411 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3412 echo "configure:3413: checking for inttypes.h" >&5
3413 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 cat > conftest.
$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3420 #include <inttypes.h>
3425 if { (eval echo configure
:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3427 gcc_cv_header_inttypes_h
=yes
3429 echo "configure: failed program was:" >&5
3430 cat conftest.
$ac_ext >&5
3432 gcc_cv_header_inttypes_h
=no
3437 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3438 if test $gcc_cv_header_inttypes_h = yes; then
3439 cat >> confdefs.h
<<\EOF
3440 #define HAVE_INTTYPES_H 1
3446 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3447 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3448 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
3451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3452 echo "configure:3453: checking for $ac_func" >&5
3453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 cat > conftest.
$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3459 /* System header to define __stub macros and hopefully few prototypes,
3460 which can conflict with char $ac_func(); below. */
3462 /* Override any gcc2 internal prototype to avoid an error. */
3463 /* We use char because int might match the return type of a gcc2
3464 builtin and then its argument prototype would still apply. */
3469 /* The GNU C library defines this for functions which it implements
3470 to always fail with ENOSYS. Some functions are actually named
3471 something starting with __ and the normal name is an alias. */
3472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3480 if { (eval echo configure
:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3482 eval "ac_cv_func_$ac_func=yes"
3484 echo "configure: failed program was:" >&5
3485 cat conftest.
$ac_ext >&5
3487 eval "ac_cv_func_$ac_func=no"
3492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3493 echo "$ac_t""yes" 1>&6
3494 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3495 cat >> confdefs.h
<<EOF
3496 #define $ac_tr_func 1
3500 echo "$ac_t""no" 1>&6
3505 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3506 echo "configure:3507: checking for ssize_t" >&5
3507 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 cat > conftest.
$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 #include <sys/types.h>
3519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3520 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3522 ac_cv_type_ssize_t
=yes
3525 ac_cv_type_ssize_t
=no
3530 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3531 if test $ac_cv_type_ssize_t = no
; then
3532 cat >> confdefs.h
<<\EOF
3539 # Try to determine the array type of the second argument of getgroups
3540 # for the target system (int or gid_t).
3541 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3542 echo "configure:3543: checking for uid_t in sys/types.h" >&5
3543 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.
$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 #include <sys/types.h>
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552 egrep "uid_t" >/dev
/null
2>&1; then
3554 ac_cv_type_uid_t
=yes
3563 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3564 if test $ac_cv_type_uid_t = no
; then
3565 cat >> confdefs.h
<<\EOF
3569 cat >> confdefs.h
<<\EOF
3575 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3576 echo "configure:3577: checking type of array argument to getgroups" >&5
3577 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 if test "$cross_compiling" = yes; then
3581 ac_cv_type_getgroups
=cross
3583 cat > conftest.
$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3587 /* Thanks to Mike Rendell for this test. */
3588 #include <sys/types.h>
3591 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3596 union { gid_t gval; long lval; } val;
3599 for (i = 0; i < NGID; i++)
3600 gidset[i] = val.gval;
3601 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3603 /* Exit non-zero if getgroups seems to require an array of ints. This
3604 happens when gid_t is short but getgroups modifies an array of ints. */
3605 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3609 if { (eval echo configure
:3610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3611 ac_cv_type_getgroups
=gid_t
3613 echo "configure: failed program was:" >&5
3614 cat conftest.
$ac_ext >&5
3616 ac_cv_type_getgroups
=int
3621 if test $ac_cv_type_getgroups = cross
; then
3622 cat > conftest.
$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3628 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3630 ac_cv_type_getgroups
=gid_t
3633 ac_cv_type_getgroups
=int
3640 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3641 cat >> confdefs.h
<<EOF
3642 #define GETGROUPS_T $ac_cv_type_getgroups
3646 if test "${target}" = "${build}"; then
3647 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3650 # This condition may need some tweaking. It should include all
3651 # targets where the array type of the second argument of getgroups
3652 # is int and the type of gid_t is not equivalent to int.
3653 *-*-sunos* |
*-*-ultrix*)
3654 TARGET_GETGROUPS_T
=int
3657 TARGET_GETGROUPS_T
=gid_t
3663 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3664 echo "configure:3665: checking whether the printf functions support %p" >&5
3665 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 if test "$cross_compiling" = yes; then
3669 gcc_cv_func_printf_ptr
=no
3671 cat > conftest.
$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3679 char *p = buf, *q = NULL;
3680 sprintf(buf, "%p", p);
3681 sscanf(buf, "%p", &q);
3685 if { (eval echo configure
:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3687 gcc_cv_func_printf_ptr
=yes
3689 echo "configure: failed program was:" >&5
3690 cat conftest.
$ac_ext >&5
3692 gcc_cv_func_printf_ptr
=no
3697 rm -f core core.
* *.core
3700 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3701 if test $gcc_cv_func_printf_ptr = yes ; then
3702 cat >> confdefs.h
<<\EOF
3703 #define HAVE_PRINTF_PTR 1
3711 { echo "configure: error:
3712 *** UWIN may not be used as a host platform because
3713 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3716 # Under VMS, vfork works very different than on Unix. The standard test
3717 # won't work, and it isn't easily adaptable. It makes more sense to
3719 ac_cv_func_vfork_works
=yes
3722 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3723 echo "configure:3724: checking for pid_t" >&5
3724 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <sys/types.h>
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3739 ac_cv_type_pid_t
=yes
3747 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3748 if test $ac_cv_type_pid_t = no
; then
3749 cat >> confdefs.h
<<\EOF
3755 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3756 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3757 echo "configure:3758: checking for vfork.h" >&5
3758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 cat > conftest.
$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3766 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3767 { (eval echo configure
:3768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3768 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3769 if test -z "$ac_err"; then
3771 eval "ac_cv_header_$ac_safe=yes"
3774 echo "configure: failed program was:" >&5
3775 cat conftest.
$ac_ext >&5
3777 eval "ac_cv_header_$ac_safe=no"
3781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 cat >> confdefs.h
<<\EOF
3784 #define HAVE_VFORK_H 1
3788 echo "$ac_t""no" 1>&6
3791 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3792 echo "configure:3793: checking for working vfork" >&5
3793 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3796 if test "$cross_compiling" = yes; then
3797 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3798 echo "configure:3799: checking for vfork" >&5
3799 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
3802 cat > conftest.
$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 /* System header to define __stub macros and hopefully few prototypes,
3806 which can conflict with char vfork(); below. */
3808 /* Override any gcc2 internal prototype to avoid an error. */
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3815 /* The GNU C library defines this for functions which it implements
3816 to always fail with ENOSYS. Some functions are actually named
3817 something starting with __ and the normal name is an alias. */
3818 #if defined (__stub_vfork) || defined (__stub___vfork)
3826 if { (eval echo configure
:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3828 eval "ac_cv_func_vfork=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.
$ac_ext >&5
3833 eval "ac_cv_func_vfork=no"
3838 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3842 echo "$ac_t""no" 1>&6
3845 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3847 cat > conftest.
$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 /* Thanks to Paul Eggert for this test. */
3852 #include <sys/types.h>
3853 #include <sys/stat.h>
3854 #ifdef HAVE_UNISTD_H
3860 /* On some sparc systems, changes by the child to local and incoming
3861 argument registers are propagated back to the parent.
3862 The compiler is told about this with #include <vfork.h>,
3863 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3864 Test for this by using a static variable whose address
3865 is put into a register that is clobbered by the vfork. */
3868 sparc_address_test (int arg)
3870 sparc_address_test (arg) int arg;
3888 pid_t parent = getpid ();
3891 sparc_address_test ();
3896 /* Here is another test for sparc vfork register problems.
3897 This test uses lots of local variables, at least
3898 as many local variables as main has allocated so far
3899 including compiler temporaries. 4 locals are enough for
3900 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3901 A buggy compiler should reuse the register of parent
3902 for one of the local variables, since it will think that
3903 parent can't possibly be used any more in this routine.
3904 Assigning to the local variable will thus munge parent
3905 in the parent process. */
3907 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3908 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3909 /* Convince the compiler that p..p7 are live; otherwise, it might
3910 use the same hardware register for all 8 local variables. */
3911 if (p != p1 || p != p2 || p != p3 || p != p4
3912 || p != p5 || p != p6 || p != p7)
3915 /* On some systems (e.g. IRIX 3.3),
3916 vfork doesn't separate parent from child file descriptors.
3917 If the child closes a descriptor before it execs or exits,
3918 this munges the parent's descriptor as well.
3919 Test for this by closing stdout in the child. */
3920 _exit(close(fileno(stdout)) != 0);
3925 while (wait(&status) != child)
3928 /* Was there some problem with vforking? */
3931 /* Did the child fail? (This shouldn't happen.) */
3934 /* Did the vfork/compiler bug occur? */
3935 || parent != getpid()
3937 /* Did the file descriptor bug occur? */
3938 || fstat(fileno(stdout), &st) != 0
3943 if { (eval echo configure
:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3945 ac_cv_func_vfork_works
=yes
3947 echo "configure: failed program was:" >&5
3948 cat conftest.
$ac_ext >&5
3950 ac_cv_func_vfork_works
=no
3957 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3958 if test $ac_cv_func_vfork_works = no
; then
3959 cat >> confdefs.h
<<\EOF
3965 for ac_func
in getpagesize
3967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3968 echo "configure:3969: checking for $ac_func" >&5
3969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 cat > conftest.
$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* System header to define __stub macros and hopefully few prototypes,
3976 which can conflict with char $ac_func(); below. */
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3985 /* The GNU C library defines this for functions which it implements
3986 to always fail with ENOSYS. Some functions are actually named
3987 something starting with __ and the normal name is an alias. */
3988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3996 if { (eval echo configure
:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3998 eval "ac_cv_func_$ac_func=yes"
4000 echo "configure: failed program was:" >&5
4001 cat conftest.
$ac_ext >&5
4003 eval "ac_cv_func_$ac_func=no"
4008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4009 echo "$ac_t""yes" 1>&6
4010 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4011 cat >> confdefs.h
<<EOF
4012 #define $ac_tr_func 1
4016 echo "$ac_t""no" 1>&6
4020 # The test program for the next two tests is the same except for one
4022 cat >ct-mmap.inc
<<'EOF'
4023 #include <sys/types.h>
4024 #include <sys/mman.h>
4030 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
4031 # define MAP_ANONYMOUS MAP_ANON
4034 /* This mess was copied from the GNU getpagesize.h. */
4035 #ifndef HAVE_GETPAGESIZE
4036 # ifdef HAVE_UNISTD_H
4037 # include <unistd.h>
4040 /* Assume that all systems that can run configure have sys/param.h. */
4041 # ifndef HAVE_SYS_PARAM_H
4042 # define HAVE_SYS_PARAM_H 1
4045 # ifdef _SC_PAGESIZE
4046 # define getpagesize() sysconf(_SC_PAGESIZE)
4047 # else /* no _SC_PAGESIZE */
4048 # ifdef HAVE_SYS_PARAM_H
4049 # include <sys/param.h>
4050 # ifdef EXEC_PAGESIZE
4051 # define getpagesize() EXEC_PAGESIZE
4052 # else /* no EXEC_PAGESIZE */
4054 # define getpagesize() NBPG * CLSIZE
4057 # endif /* no CLSIZE */
4058 # else /* no NBPG */
4060 # define getpagesize() NBPC
4061 # else /* no NBPC */
4063 # define getpagesize() PAGESIZE
4064 # endif /* PAGESIZE */
4065 # endif /* no NBPC */
4066 # endif /* no NBPG */
4067 # endif /* no EXEC_PAGESIZE */
4068 # else /* no HAVE_SYS_PARAM_H */
4069 # define getpagesize() 8192 /* punt totally */
4070 # endif /* no HAVE_SYS_PARAM_H */
4071 # endif /* no _SC_PAGESIZE */
4073 #endif /* no HAVE_GETPAGESIZE */
4076 # define MAP_FAILED -1
4080 #define perror_exit(str, val) \
4081 do { perror(str); exit(val); } while (0)
4083 /* Some versions of cygwin mmap require that munmap is called with the
4084 same parameters as mmap. GCC expects that this is not the case.
4085 Test for various forms of this problem. Warning - icky signal games. */
4087 static sigset_t unblock_sigsegv;
4097 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4098 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4100 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4101 MAP_PRIVATE, devzero, 0);
4109 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4113 /* Basic functionality test. */
4117 char *x = anonmap (pg);
4118 if (x == (char *) MAP_FAILED)
4119 perror_exit("test 0 mmap", 2);
4123 if (munmap(x, pg) < 0)
4124 perror_exit("test 0 munmap", 3);
4127 /* 1. If we map a 2-page region and unmap its second page, the first page
4132 char *x = anonmap (pg * 2);
4133 if (x == (char *)MAP_FAILED)
4134 perror_exit ("test 1 mmap", 4);
4136 signal (SIGSEGV, sigsegv);
4138 perror_exit ("test 1 fault", 5);
4143 if (munmap (x + pg, pg) < 0)
4144 perror_exit ("test 1 munmap 1", 6);
4147 if (setjmp (r) == 0)
4150 perror_exit ("test 1 no fault", 7);
4152 if (munmap (x, pg) < 0)
4153 perror_exit ("test 1 munmap 2", 8);
4156 /* 2. If we map a 2-page region and unmap its first page, the second
4157 page must remain. */
4161 char *x = anonmap (pg * 2);
4162 if (x == (char *)MAP_FAILED)
4163 perror_exit ("test 2 mmap", 9);
4165 signal (SIGSEGV, sigsegv);
4167 perror_exit ("test 2 fault", 10);
4172 if (munmap (x, pg) < 0)
4173 perror_exit ("test 2 munmap 1", 11);
4177 if (setjmp (r) == 0)
4180 perror_exit ("test 2 no fault", 12);
4183 if (munmap (x+pg, pg) < 0)
4184 perror_exit ("test 2 munmap 2", 13);
4187 /* 3. If we map two adjacent 1-page regions and unmap them both with
4188 one munmap, both must go away.
4190 Getting two adjacent 1-page regions with two mmap calls is slightly
4191 tricky. All OS's tested skip over already-allocated blocks; therefore
4192 we have been careful to unmap all allocated regions in previous tests.
4193 HP/UX allocates pages backward in memory. No OS has yet been observed
4194 to be so perverse as to leave unmapped space between consecutive calls
4203 if (x == (char *)MAP_FAILED)
4204 perror_exit ("test 3 mmap 1", 14);
4206 if (y == (char *)MAP_FAILED)
4207 perror_exit ("test 3 mmap 2", 15);
4212 z = y, y = x, x = z;
4215 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4216 (unsigned long)x, (unsigned long)y);
4221 signal (SIGSEGV, sigsegv);
4223 perror_exit ("test 3 fault", 17);
4228 if (munmap (x, pg*2) < 0)
4229 perror_exit ("test 3 munmap", 18);
4231 if (setjmp (r) == 0)
4234 perror_exit ("test 3 no fault 1", 19);
4237 signal (SIGSEGV, sigsegv);
4238 if (setjmp (r) == 0)
4241 perror_exit ("test 3 no fault 2", 20);
4248 sigemptyset (&unblock_sigsegv);
4249 sigaddset (&unblock_sigsegv, SIGSEGV);
4250 pg = getpagesize ();
4251 #ifndef USE_MAP_ANON
4252 devzero = open ("/dev/zero", O_RDWR);
4254 perror_exit ("open /dev/zero", 1);
4266 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4267 echo "configure:4268: checking for working mmap from /dev/zero" >&5
4268 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 if test "$cross_compiling" = yes; then
4272 # If this is not cygwin, and /dev/zero is a character device, it's probably
4273 # safe to assume it works.
4275 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4276 * ) if test -c /dev
/zero
4277 then ac_cv_func_mmap_dev_zero
=yes
4278 else ac_cv_func_mmap_dev_zero
=no
4282 cat > conftest.
$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 #include "ct-mmap.inc"
4287 if { (eval echo configure
:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4289 ac_cv_func_mmap_dev_zero
=yes
4291 echo "configure: failed program was:" >&5
4292 cat conftest.
$ac_ext >&5
4295 then ac_cv_func_mmap_dev_zero
=no
4296 else ac_cv_func_mmap_dev_zero
=buggy
4305 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4306 if test $ac_cv_func_mmap_dev_zero = yes; then
4307 cat >> confdefs.h
<<\EOF
4308 #define HAVE_MMAP_DEV_ZERO 1
4313 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4314 echo "configure:4315: checking for working mmap with MAP_ANON(YMOUS)" >&5
4315 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 if test "$cross_compiling" = yes; then
4319 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4320 # just because it's there. Some SCO Un*xen define it but don't implement it.
4321 ac_cv_func_mmap_anon
=no
4323 cat > conftest.
$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #define USE_MAP_ANON
4327 #include "ct-mmap.inc"
4329 if { (eval echo configure
:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4331 ac_cv_func_mmap_anon
=yes
4333 echo "configure: failed program was:" >&5
4334 cat conftest.
$ac_ext >&5
4337 then ac_cv_func_mmap_anon
=no
4338 else ac_cv_func_mmap_anon
=buggy
4347 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4348 if test $ac_cv_func_mmap_anon = yes; then
4349 cat >> confdefs.h
<<\EOF
4350 #define HAVE_MMAP_ANON 1
4356 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4357 echo "configure:4358: checking for working mmap of a file" >&5
4358 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 # Create a file one thousand bytes long.
4362 for i
in 1 2 3 4 5 6 7 8 9 0
4363 do for j
in 1 2 3 4 5 6 7 8 9 0
4366 done > conftestdata$$
4368 if test "$cross_compiling" = yes; then
4369 ac_cv_func_mmap_file
=no
4371 cat > conftest.
$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4375 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4376 Richard Henderson and Alexandre Oliva.
4377 Check whether read-only mmap of a plain file works. */
4378 #include <sys/types.h>
4379 #include <sys/stat.h>
4381 #include <sys/mman.h>
4389 fd = open("conftestdata$$", O_RDONLY);
4393 if (fstat (fd, &st))
4396 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4397 if (x == (char *) -1)
4400 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4403 if (munmap(x, st.st_size) < 0)
4409 if { (eval echo configure
:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4411 ac_cv_func_mmap_file
=yes
4413 echo "configure: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4416 ac_cv_func_mmap_file
=no
4423 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4424 if test $ac_cv_func_mmap_file = yes; then
4425 cat >> confdefs.h
<<\EOF
4426 #define HAVE_MMAP_FILE 1
4434 am_cv_lib_iconv_ldpath
=
4435 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4436 if test "${with_libiconv_prefix+set}" = set; then
4437 withval
="$with_libiconv_prefix"
4439 for dir
in `echo "$withval" | tr : ' '`; do
4440 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4441 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
4447 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4448 echo "configure:4449: checking for iconv" >&5
4449 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4453 am_cv_func_iconv
="no, consider installing GNU libiconv"
4455 cat > conftest.
$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4461 iconv_t cd = iconv_open("","");
4462 iconv(cd,NULL,NULL,NULL,NULL);
4466 if { (eval echo configure
:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4468 am_cv_func_iconv
=yes
4470 echo "configure: failed program was:" >&5
4471 cat conftest.
$ac_ext >&5
4474 if test "$am_cv_func_iconv" != yes; then
4475 am_save_LIBS
="$LIBS"
4476 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
4477 cat > conftest.
$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4483 iconv_t cd = iconv_open("","");
4484 iconv(cd,NULL,NULL,NULL,NULL);
4488 if { (eval echo configure
:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4491 am_cv_func_iconv
=yes
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4497 LIBS
="$am_save_LIBS"
4502 echo "$ac_t""$am_cv_func_iconv" 1>&6
4503 if test "$am_cv_func_iconv" = yes; then
4504 cat >> confdefs.h
<<\EOF
4505 #define HAVE_ICONV 1
4508 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4509 echo "configure:4510: checking for iconv declaration" >&5
4510 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4514 cat > conftest.
$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4524 #if defined(__STDC__) || defined(__cplusplus)
4525 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4534 if { (eval echo configure
:4535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4536 am_cv_proto_iconv_arg1
=""
4538 echo "configure: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4541 am_cv_proto_iconv_arg1
="const"
4544 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4547 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4548 echo "$ac_t""${ac_t:-
4549 }$am_cv_proto_iconv" 1>&6
4550 cat >> confdefs.h
<<EOF
4551 #define ICONV_CONST $am_cv_proto_iconv_arg1
4556 if test "$am_cv_lib_iconv" = yes; then
4557 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
4562 # We will need to find libiberty.h and ansidecl.h
4563 saved_CFLAGS
="$CFLAGS"
4564 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4565 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4566 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4567 fprintf_unlocked strstr errno \
4568 malloc realloc calloc free
basename getopt
clock
4570 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4571 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4572 echo "configure:4573: checking whether $ac_func is declared" >&5
4573 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 cat > conftest.
$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4580 #define $ac_tr_decl 1
4582 #include "ansidecl.h"
4587 char *(*pfn) = (char *(*)) $ac_func ;
4591 if { (eval echo configure
:4592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4593 eval "gcc_cv_have_decl_$ac_func=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.
$ac_ext >&5
4598 eval "gcc_cv_have_decl_$ac_func=no"
4603 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4605 #define $ac_tr_decl 1
4609 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4610 #define $ac_tr_decl 0
4616 if test x
= y
; then
4617 cat >> confdefs.h
<<\EOF
4618 #define HAVE_DECL_GETENV 1
4620 cat >> confdefs.h
<<\EOF
4621 #define HAVE_DECL_ATOL 1
4623 cat >> confdefs.h
<<\EOF
4624 #define HAVE_DECL_SBRK 1
4626 cat >> confdefs.h
<<\EOF
4627 #define HAVE_DECL_ABORT 1
4629 cat >> confdefs.h
<<\EOF
4630 #define HAVE_DECL_ATOF 1
4632 cat >> confdefs.h
<<\EOF
4633 #define HAVE_DECL_GETCWD 1
4635 cat >> confdefs.h
<<\EOF
4636 #define HAVE_DECL_GETWD 1
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_DECL_STRSIGNAL 1
4642 cat >> confdefs.h
<<\EOF
4643 #define HAVE_DECL_PUTC_UNLOCKED 1
4645 cat >> confdefs.h
<<\EOF
4646 #define HAVE_DECL_FPUTS_UNLOCKED 1
4648 cat >> confdefs.h
<<\EOF
4649 #define HAVE_DECL_FWRITE_UNLOCKED 1
4652 cat >> confdefs.h
<<\EOF
4653 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4655 cat >> confdefs.h
<<\EOF
4656 #define HAVE_DECL_STRSTR 1
4658 cat >> confdefs.h
<<\EOF
4659 #define HAVE_DECL_ERRNO 1
4662 cat >> confdefs.h
<<\EOF
4663 #define HAVE_DECL_MALLOC 1
4665 cat >> confdefs.h
<<\EOF
4666 #define HAVE_DECL_REALLOC 1
4668 cat >> confdefs.h
<<\EOF
4669 #define HAVE_DECL_CALLOC 1
4671 cat >> confdefs.h
<<\EOF
4672 #define HAVE_DECL_FREE 1
4674 cat >> confdefs.h
<<\EOF
4675 #define HAVE_DECL_BASENAME 1
4677 cat >> confdefs.h
<<\EOF
4678 #define HAVE_DECL_GETOPT 1
4680 cat >> confdefs.h
<<\EOF
4681 #define HAVE_DECL_CLOCK 1
4686 for ac_func
in getrlimit setrlimit getrusage
4688 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4689 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4690 echo "configure:4691: checking whether $ac_func is declared" >&5
4691 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 cat > conftest.
$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4698 #define $ac_tr_decl 1
4700 #include "ansidecl.h"
4702 #ifdef HAVE_SYS_RESOURCE_H
4703 #include <sys/resource.h>
4709 char *(*pfn) = (char *(*)) $ac_func ;
4713 if { (eval echo configure
:4714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4715 eval "gcc_cv_have_decl_$ac_func=yes"
4717 echo "configure: failed program was:" >&5
4718 cat conftest.
$ac_ext >&5
4720 eval "gcc_cv_have_decl_$ac_func=no"
4725 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4726 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4727 #define $ac_tr_decl 1
4731 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4732 #define $ac_tr_decl 0
4738 if test x
= y
; then
4739 cat >> confdefs.h
<<\EOF
4740 #define HAVE_DECL_GETRLIMIT 1
4742 cat >> confdefs.h
<<\EOF
4743 #define HAVE_DECL_SETRLIMIT 1
4745 cat >> confdefs.h
<<\EOF
4746 #define HAVE_DECL_GETRUSAGE 1
4751 for ac_func
in times
4753 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4754 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4755 echo "configure:4756: checking whether $ac_func is declared" >&5
4756 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.
$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4763 #define $ac_tr_decl 1
4765 #include "ansidecl.h"
4767 #ifdef HAVE_SYS_TIMES_H
4768 #include <sys/times.h>
4774 char *(*pfn) = (char *(*)) $ac_func ;
4778 if { (eval echo configure
:4779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4780 eval "gcc_cv_have_decl_$ac_func=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.
$ac_ext >&5
4785 eval "gcc_cv_have_decl_$ac_func=no"
4790 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4792 #define $ac_tr_decl 1
4796 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4797 #define $ac_tr_decl 0
4803 if test x
= y
; then
4804 cat >> confdefs.h
<<\EOF
4805 #define HAVE_DECL_TIMES 1
4810 # More time-related stuff.
4811 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4812 echo "configure:4813: checking for struct tms" >&5
4813 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4817 cat > conftest.
$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4821 #include "ansidecl.h"
4823 #ifdef HAVE_SYS_TIMES_H
4824 #include <sys/times.h>
4831 if { (eval echo configure
:4832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4833 ac_cv_struct_tms
=yes
4835 echo "configure: failed program was:" >&5
4836 cat conftest.
$ac_ext >&5
4843 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4844 if test $ac_cv_struct_tms = yes; then
4845 cat >> confdefs.h
<<\EOF
4846 #define HAVE_STRUCT_TMS 1
4851 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4852 # revisit after autoconf 2.50.
4853 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4854 echo "configure:4855: checking for clock_t" >&5
4855 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4859 cat > conftest.
$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4863 #include "ansidecl.h"
4870 if { (eval echo configure
:4871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4872 gcc_cv_type_clock_t
=yes
4874 echo "configure: failed program was:" >&5
4875 cat conftest.
$ac_ext >&5
4877 gcc_cv_type_clock_t
=no
4882 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4883 if test $gcc_cv_type_clock_t = yes; then
4884 cat >> confdefs.h
<<\EOF
4885 #define HAVE_CLOCK_T 1
4890 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4891 CFLAGS
="$saved_CFLAGS"
4893 # mkdir takes a single argument on some systems.
4894 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4895 echo "configure:4896: checking if mkdir takes one argument" >&5
4896 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 cat > conftest.
$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4903 #include <sys/types.h>
4904 #ifdef HAVE_SYS_STAT_H
4905 # include <sys/stat.h>
4907 #ifdef HAVE_UNISTD_H
4908 # include <unistd.h>
4910 #ifdef HAVE_DIRECT_H
4911 # include <direct.h>
4917 if { (eval echo configure
:4918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4919 gcc_cv_mkdir_takes_one_arg
=no
4921 echo "configure: failed program was:" >&5
4922 cat conftest.
$ac_ext >&5
4924 gcc_cv_mkdir_takes_one_arg
=yes
4929 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4930 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4931 cat >> confdefs.h
<<\EOF
4932 #define MKDIR_TAKES_ONE_ARG 1
4947 build_install_headers_dir
=install-headers-tar
4952 host_truncate_target
=
4955 # Decode the host machine, then the target machine.
4956 # For the host machine, we save the xm_file variable as host_xm_file;
4957 # then we decode the target machine and forget everything else
4958 # that came from the host machine.
4959 for machine
in $build $host $target; do
4960 .
${srcdir}/config.gcc
4963 extra_objs
="${host_extra_objs} ${extra_objs}"
4965 # Default the target-machine variables that were not explicitly set.
4966 if test x
"$tm_file" = x
4967 then tm_file
=$cpu_type/$cpu_type.h
; fi
4969 if test x
"$extra_headers" = x
4970 then extra_headers
=; fi
4972 if test x
$md_file = x
4973 then md_file
=$cpu_type/$cpu_type.md
; fi
4975 if test x
$out_file = x
4976 then out_file
=$cpu_type/$cpu_type.c
; fi
4978 if test x
"$tmake_file" = x
4979 then tmake_file
=$cpu_type/t-
$cpu_type
4982 if test x
"$dwarf2" = xyes
4983 then tm_file
="$tm_file tm-dwarf2.h"
4986 if test x
$float_format = x
4987 then float_format
=i64
4990 if test $float_format = none
4991 then float_h_file
=Makefile.
in
4992 else float_h_file
=float-
$float_format.h
4995 # Say what files are being used for the output code and MD file.
4996 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4997 echo "Using \`$srcdir/config/$md_file' as machine description file."
4999 # If any of the xm_file variables contain nonexistent files, warn
5000 # about them and drop them.
5003 for x
in $build_xm_file; do
5004 if test -f $srcdir/config
/$x
5006 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5012 for x
in $host_xm_file; do
5013 if test -f $srcdir/config
/$x
5015 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5021 for x
in $xm_file; do
5022 if test -f $srcdir/config
/$x
5024 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
5030 for f
in $tm_file; do
5033 if test $count = ax
; then
5034 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5036 echo "Using the following target machine macro files:"
5037 for f
in $tm_file; do
5038 echo " $srcdir/config/$f"
5043 for f
in $host_xm_file; do
5046 if test $count = a
; then
5048 elif test $count = ax
; then
5049 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5051 echo "Using the following host machine macro files:"
5052 for f
in $host_xm_file; do
5053 echo " $srcdir/config/$f"
5057 if test "$host_xm_file" != "$build_xm_file"; then
5059 for f
in $build_xm_file; do
5062 if test $count = a
; then
5064 elif test $count = ax
; then
5065 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5067 echo "Using the following build machine macro files:"
5068 for f
in $build_xm_file; do
5069 echo " $srcdir/config/$f"
5074 if test x
$thread_file = x
; then
5075 if test x
$target_thread_file != x
; then
5076 thread_file
=$target_thread_file
5078 thread_file
='single'
5082 # Look for a file containing extra machine modes.
5083 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
5084 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
5086 cat >> confdefs.h
<<EOF
5087 #define EXTRA_MODES_FILE "$extra_modes"
5090 cat >> confdefs.h
<<\EOF
5091 #define EXTRA_CC_MODES 1
5096 # auto-host.h is the file containing items generated by autoconf and is
5097 # the first file included by config.h.
5098 # If host=build, it is correct to have hconfig include auto-host.h
5099 # as well. If host!=build, we are in error and need to do more
5100 # work to find out the build config parameters.
5101 if test x
$host = x
$build
5103 build_auto
=auto-host.h
5106 # We create a subdir, then run autoconf in the subdir.
5107 # To prevent recursion we set host and build for the new
5108 # invocation of configure to the build for this invocation
5115 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5116 *) realsrcdir
=..
/${srcdir};;
5118 saved_CFLAGS
="${CFLAGS}"
5119 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5120 ${realsrcdir}/configure \
5121 --target=$target_alias --host=$build_alias --build=$build_alias
5122 CFLAGS
="${saved_CFLAGS}"
5124 # We just finished tests for the build machine, so rename
5125 # the file auto-build.h in the gcc directory.
5126 mv auto-host.h ..
/auto-build.h
5129 build_auto
=auto-build.h
5134 tm_file
="${tm_file} defaults.h"
5135 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5136 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5137 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5139 # Truncate the target if necessary
5140 if test x
$host_truncate_target != x
; then
5141 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5144 # Get the version trigger filename from the toplevel
5145 if test "${with_gcc_version_trigger+set}" = set; then
5146 gcc_version_trigger
=$with_gcc_version_trigger
5148 gcc_version_trigger
=${srcdir}/version.c
5150 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5151 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5153 # Compile in configure arguments.
5154 if test -f configargs.h
; then
5155 # Being re-configured.
5156 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5157 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5159 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5161 cat > configargs.h
<<EOF
5162 /* Generated automatically. */
5163 static const char configuration_arguments[] = "$gcc_config_arguments";
5164 static const char thread_model[] = "$thread_file";
5167 # Internationalization
5169 VERSION
="$gcc_version"
5173 # Enable NLS support by default
5174 # Check whether --enable-nls or --disable-nls was given.
5175 if test "${enable_nls+set}" = set; then
5176 enableval
="$enable_nls"
5183 # if cross compiling, disable NLS support.
5184 # It's not worth the trouble, at least for now.
5186 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5187 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5193 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5194 echo "configure:5195: checking for library containing strerror" >&5
5195 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5196 echo $ac_n "(cached) $ac_c" 1>&6
5198 ac_func_search_save_LIBS
="$LIBS"
5199 ac_cv_search_strerror
="no"
5200 cat > conftest.
$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5203 /* Override any gcc2 internal prototype to avoid an error. */
5204 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */
5212 if { (eval echo configure
:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5214 ac_cv_search_strerror
="none required"
5216 echo "configure: failed program was:" >&5
5217 cat conftest.
$ac_ext >&5
5220 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5221 LIBS
="-l$i $ac_func_search_save_LIBS"
5222 cat > conftest.
$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5225 /* Override any gcc2 internal prototype to avoid an error. */
5226 /* We use char because int might match the return type of a gcc2
5227 builtin and then its argument prototype would still apply. */
5234 if { (eval echo configure
:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5236 ac_cv_search_strerror
="-l$i"
5239 echo "configure: failed program was:" >&5
5240 cat conftest.
$ac_ext >&5
5244 LIBS
="$ac_func_search_save_LIBS"
5247 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5248 if test "$ac_cv_search_strerror" != "no"; then
5249 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5256 echo $ac_n "checking for working const""... $ac_c" 1>&6
5257 echo "configure:5258: checking for working const" >&5
5258 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.
$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5267 /* Ultrix mips cc rejects this. */
5268 typedef int charset[2]; const charset x;
5269 /* SunOS 4.1.1 cc rejects this. */
5270 char const *const *ccp;
5272 /* NEC SVR4.0.2 mips cc rejects this. */
5273 struct point {int x, y;};
5274 static struct point const zero = {0,0};
5275 /* AIX XL C 1.02.0.0 rejects this.
5276 It does not let you subtract one const X* pointer from another in an arm
5277 of an if-expression whose if-part is not a constant expression */
5278 const char *g = "string";
5279 ccp = &g + (g ? g-g : 0);
5280 /* HPUX 7.0 cc rejects these. */
5283 ccp = (char const *const *) p;
5284 { /* SCO 3.2v4 cc rejects this. */
5286 char const *s = 0 ? (char *) 0 : (char const *) 0;
5290 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5292 const int *foo = &x[0];
5295 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5296 typedef const int *iptr;
5300 { /* AIX XL C 1.02.0.0 rejects this saying
5301 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5302 struct s { int j; const int *ap[3]; };
5303 struct s *b; b->j = 5;
5305 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5311 if { (eval echo configure
:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5315 echo "configure: failed program was:" >&5
5316 cat conftest.
$ac_ext >&5
5323 echo "$ac_t""$ac_cv_c_const" 1>&6
5324 if test $ac_cv_c_const = no
; then
5325 cat >> confdefs.h
<<\EOF
5331 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5332 echo "configure:5333: checking for off_t" >&5
5333 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.
$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <sys/types.h>
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5348 ac_cv_type_off_t
=yes
5356 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5357 if test $ac_cv_type_off_t = no
; then
5358 cat >> confdefs.h
<<\EOF
5364 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5365 echo "configure:5366: checking for size_t" >&5
5366 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.
$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5372 #include <sys/types.h>
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5381 ac_cv_type_size_t
=yes
5384 ac_cv_type_size_t
=no
5389 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5390 if test $ac_cv_type_size_t = no
; then
5391 cat >> confdefs.h
<<\EOF
5392 #define size_t unsigned
5397 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5398 # for constant arguments. Useless!
5399 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5400 echo "configure:5401: checking for working alloca.h" >&5
5401 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 cat > conftest.
$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5409 char *p = alloca(2 * sizeof(int));
5412 if { (eval echo configure
:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5414 ac_cv_header_alloca_h
=yes
5416 echo "configure: failed program was:" >&5
5417 cat conftest.
$ac_ext >&5
5419 ac_cv_header_alloca_h
=no
5424 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5425 if test $ac_cv_header_alloca_h = yes; then
5426 cat >> confdefs.h
<<\EOF
5427 #define HAVE_ALLOCA_H 1
5432 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5433 echo "configure:5434: checking for alloca" >&5
5434 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5437 cat > conftest.
$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5442 # define alloca __builtin_alloca
5445 # include <malloc.h>
5446 # define alloca _alloca
5449 # include <alloca.h>
5454 # ifndef alloca /* predefined by HP cc +Olibcalls */
5463 char *p = (char *) alloca(1);
5466 if { (eval echo configure
:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5468 ac_cv_func_alloca_works
=yes
5470 echo "configure: failed program was:" >&5
5471 cat conftest.
$ac_ext >&5
5473 ac_cv_func_alloca_works
=no
5478 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5479 if test $ac_cv_func_alloca_works = yes; then
5480 cat >> confdefs.h
<<\EOF
5481 #define HAVE_ALLOCA 1
5486 if test $ac_cv_func_alloca_works = no
; then
5487 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5488 # that cause trouble. Some versions do not even contain alloca or
5489 # contain a buggy version. If you still want to use their alloca,
5490 # use ar to extract alloca.o from them instead of compiling alloca.c.
5491 ALLOCA
=alloca.
${ac_objext}
5492 cat >> confdefs.h
<<\EOF
5497 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5498 echo "configure:5499: checking whether alloca needs Cray hooks" >&5
5499 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5502 cat > conftest.
$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 #if defined(CRAY) && ! defined(CRAY2)
5512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 egrep "webecray" >/dev
/null
2>&1; then
5524 echo "$ac_t""$ac_cv_os_cray" 1>&6
5525 if test $ac_cv_os_cray = yes; then
5526 for ac_func
in _getb67 GETB67 getb67
; do
5527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5528 echo "configure:5529: checking for $ac_func" >&5
5529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6
5532 cat > conftest.
$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5535 /* System header to define __stub macros and hopefully few prototypes,
5536 which can conflict with char $ac_func(); below. */
5538 /* Override any gcc2 internal prototype to avoid an error. */
5539 /* We use char because int might match the return type of a gcc2
5540 builtin and then its argument prototype would still apply. */
5545 /* The GNU C library defines this for functions which it implements
5546 to always fail with ENOSYS. Some functions are actually named
5547 something starting with __ and the normal name is an alias. */
5548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5556 if { (eval echo configure
:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5558 eval "ac_cv_func_$ac_func=yes"
5560 echo "configure: failed program was:" >&5
5561 cat conftest.
$ac_ext >&5
5563 eval "ac_cv_func_$ac_func=no"
5568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5569 echo "$ac_t""yes" 1>&6
5570 cat >> confdefs.h
<<EOF
5571 #define CRAY_STACKSEG_END $ac_func
5576 echo "$ac_t""no" 1>&6
5582 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5583 echo "configure:5584: checking stack direction for C alloca" >&5
5584 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5587 if test "$cross_compiling" = yes; then
5588 ac_cv_c_stack_direction
=0
5590 cat > conftest.
$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 find_stack_direction ()
5595 static char *addr = 0;
5600 return find_stack_direction ();
5603 return (&dummy > addr) ? 1 : -1;
5607 exit (find_stack_direction() < 0);
5610 if { (eval echo configure
:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5612 ac_cv_c_stack_direction
=1
5614 echo "configure: failed program was:" >&5
5615 cat conftest.
$ac_ext >&5
5617 ac_cv_c_stack_direction
=-1
5624 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5625 cat >> confdefs.h
<<EOF
5626 #define STACK_DIRECTION $ac_cv_c_stack_direction
5632 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5633 echo "configure:5634: checking whether we are using the GNU C Library 2.1 or newer" >&5
5634 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5637 cat > conftest.
$ac_ext <<EOF
5638 #line 5639 "configure"
5639 #include "confdefs.h"
5641 #include <features.h>
5642 #ifdef __GNU_LIBRARY__
5643 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5650 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5652 ac_cv_gnu_library_2_1
=yes
5655 ac_cv_gnu_library_2_1
=no
5663 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5665 GLIBC21
="$ac_cv_gnu_library_2_1"
5669 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5670 stdlib.h string.h unistd.h sys
/param.h
5672 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5674 echo "configure:5675: checking for $ac_hdr" >&5
5675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5678 cat > conftest.
$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5683 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5684 { (eval echo configure
:5685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5685 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5686 if test -z "$ac_err"; then
5688 eval "ac_cv_header_$ac_safe=yes"
5691 echo "configure: failed program was:" >&5
5692 cat conftest.
$ac_ext >&5
5694 eval "ac_cv_header_$ac_safe=no"
5698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5699 echo "$ac_t""yes" 1>&6
5700 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5701 cat >> confdefs.h
<<EOF
5702 #define $ac_tr_hdr 1
5706 echo "$ac_t""no" 1>&6
5710 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5711 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5712 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5715 echo "configure:5716: checking for $ac_func" >&5
5716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5719 cat > conftest.
$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5722 /* System header to define __stub macros and hopefully few prototypes,
5723 which can conflict with char $ac_func(); below. */
5725 /* Override any gcc2 internal prototype to avoid an error. */
5726 /* We use char because int might match the return type of a gcc2
5727 builtin and then its argument prototype would still apply. */
5732 /* The GNU C library defines this for functions which it implements
5733 to always fail with ENOSYS. Some functions are actually named
5734 something starting with __ and the normal name is an alias. */
5735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5743 if { (eval echo configure
:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5745 eval "ac_cv_func_$ac_func=yes"
5747 echo "configure: failed program was:" >&5
5748 cat conftest.
$ac_ext >&5
5750 eval "ac_cv_func_$ac_func=no"
5755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5756 echo "$ac_t""yes" 1>&6
5757 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5758 cat >> confdefs.h
<<EOF
5759 #define $ac_tr_func 1
5763 echo "$ac_t""no" 1>&6
5770 am_cv_lib_iconv_ldpath
=
5771 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5772 if test "${with_libiconv_prefix+set}" = set; then
5773 withval
="$with_libiconv_prefix"
5775 for dir
in `echo "$withval" | tr : ' '`; do
5776 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5777 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
5783 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5784 echo "configure:5785: checking for iconv" >&5
5785 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5786 echo $ac_n "(cached) $ac_c" 1>&6
5789 am_cv_func_iconv
="no, consider installing GNU libiconv"
5791 cat > conftest.
$ac_ext <<EOF
5792 #line 5793 "configure"
5793 #include "confdefs.h"
5797 iconv_t cd = iconv_open("","");
5798 iconv(cd,NULL,NULL,NULL,NULL);
5802 if { (eval echo configure
:5803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5804 am_cv_func_iconv
=yes
5806 echo "configure: failed program was:" >&5
5807 cat conftest.
$ac_ext >&5
5810 if test "$am_cv_func_iconv" != yes; then
5811 am_save_LIBS
="$LIBS"
5812 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
5813 cat > conftest.
$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5819 iconv_t cd = iconv_open("","");
5820 iconv(cd,NULL,NULL,NULL,NULL);
5824 if { (eval echo configure
:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5827 am_cv_func_iconv
=yes
5829 echo "configure: failed program was:" >&5
5830 cat conftest.
$ac_ext >&5
5833 LIBS
="$am_save_LIBS"
5838 echo "$ac_t""$am_cv_func_iconv" 1>&6
5839 if test "$am_cv_func_iconv" = yes; then
5840 cat >> confdefs.h
<<\EOF
5841 #define HAVE_ICONV 1
5844 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5845 echo "configure:5846: checking for iconv declaration" >&5
5846 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5850 cat > conftest.
$ac_ext <<EOF
5851 #line 5852 "configure"
5852 #include "confdefs.h"
5860 #if defined(__STDC__) || defined(__cplusplus)
5861 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5870 if { (eval echo configure
:5871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5872 am_cv_proto_iconv_arg1
=""
5874 echo "configure: failed program was:" >&5
5875 cat conftest.
$ac_ext >&5
5877 am_cv_proto_iconv_arg1
="const"
5880 am_cv_proto_iconv
="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5883 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5884 echo "$ac_t""${ac_t:-
5885 }$am_cv_proto_iconv" 1>&6
5886 cat >> confdefs.h
<<EOF
5887 #define ICONV_CONST $am_cv_proto_iconv_arg1
5892 if test "$am_cv_lib_iconv" = yes; then
5893 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
5898 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5899 echo "configure:5900: checking for nl_langinfo and CODESET" >&5
5900 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5903 cat > conftest.
$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 #include <langinfo.h>
5908 char* cs = nl_langinfo(CODESET);
5911 if { (eval echo configure
:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5913 am_cv_langinfo_codeset
=yes
5915 echo "configure: failed program was:" >&5
5916 cat conftest.
$ac_ext >&5
5918 am_cv_langinfo_codeset
=no
5924 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5925 if test $am_cv_langinfo_codeset = yes; then
5926 cat >> confdefs.h
<<\EOF
5927 #define HAVE_LANGINFO_CODESET 1
5932 if test $ac_cv_header_locale_h = yes; then
5933 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5934 echo "configure:5935: checking for LC_MESSAGES" >&5
5935 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.
$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5946 if { (eval echo configure
:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5948 am_cv_val_LC_MESSAGES
=yes
5950 echo "configure: failed program was:" >&5
5951 cat conftest.
$ac_ext >&5
5953 am_cv_val_LC_MESSAGES
=no
5958 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5959 if test $am_cv_val_LC_MESSAGES = yes; then
5960 cat >> confdefs.h
<<\EOF
5961 #define HAVE_LC_MESSAGES 1
5966 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5967 echo "configure:5968: checking whether NLS is requested" >&5
5968 # Check whether --enable-nls or --disable-nls was given.
5969 if test "${enable_nls+set}" = set; then
5970 enableval
="$enable_nls"
5976 echo "$ac_t""$USE_NLS" 1>&6
5979 BUILD_INCLUDED_LIBINTL
=no
5980 USE_INCLUDED_LIBINTL
=no
5984 if test "$USE_NLS" = "yes"; then
5985 cat >> confdefs.h
<<\EOF
5986 #define ENABLE_NLS 1
5989 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5990 echo "configure:5991: checking whether included gettext is requested" >&5
5991 # Check whether --with-included-gettext or --without-included-gettext was given.
5992 if test "${with_included_gettext+set}" = set; then
5993 withval
="$with_included_gettext"
5994 nls_cv_force_use_gnu_gettext
=$withval
5996 nls_cv_force_use_gnu_gettext
=no
5999 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6001 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6002 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6008 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6009 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6010 echo "configure:6011: checking for libintl.h" >&5
6011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6014 cat > conftest.
$ac_ext <<EOF
6015 #line 6016 "configure"
6016 #include "confdefs.h"
6017 #include <libintl.h>
6019 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6020 { (eval echo configure
:6021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6021 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6022 if test -z "$ac_err"; then
6024 eval "ac_cv_header_$ac_safe=yes"
6027 echo "configure: failed program was:" >&5
6028 cat conftest.
$ac_ext >&5
6030 eval "ac_cv_header_$ac_safe=no"
6034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6035 echo "$ac_t""yes" 1>&6
6036 cat >> confdefs.h
<<\EOF
6037 #define HAVE_LIBINTL_H 1
6040 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
6041 echo "configure:6042: checking for GNU gettext in libc" >&5
6042 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 cat > conftest.
$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6048 #include <libintl.h>
6049 extern int _nl_msg_cat_cntr;
6051 bindtextdomain ("", "");
6052 return (int) gettext ("") + _nl_msg_cat_cntr
6055 if { (eval echo configure
:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6057 gt_cv_func_gnugettext1_libc
=yes
6059 echo "configure: failed program was:" >&5
6060 cat conftest.
$ac_ext >&5
6062 gt_cv_func_gnugettext1_libc
=no
6067 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6069 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6070 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6071 echo "configure:6072: checking for GNU gettext in libintl" >&5
6072 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6073 echo $ac_n "(cached) $ac_c" 1>&6
6075 gt_save_LIBS
="$LIBS"
6076 LIBS
="$LIBS -lintl $LIBICONV"
6077 cat > conftest.
$ac_ext <<EOF
6078 #line 6079 "configure"
6079 #include "confdefs.h"
6080 #include <libintl.h>
6081 extern int _nl_msg_cat_cntr;
6083 bindtextdomain ("", "");
6084 return (int) gettext ("") + _nl_msg_cat_cntr
6087 if { (eval echo configure
:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6089 gt_cv_func_gnugettext1_libintl
=yes
6091 echo "configure: failed program was:" >&5
6092 cat conftest.
$ac_ext >&5
6094 gt_cv_func_gnugettext1_libintl
=no
6097 LIBS
="$gt_save_LIBS"
6100 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6103 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6104 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6105 && test "$PACKAGE" != gettext; }; then
6106 cat >> confdefs.h
<<\EOF
6107 #define HAVE_GETTEXT 1
6111 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6112 INTLLIBS
="-lintl $LIBICONV"
6115 gt_save_LIBS
="$LIBS"
6116 LIBS
="$LIBS $INTLLIBS"
6117 for ac_func
in dcgettext
6119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6120 echo "configure:6121: checking for $ac_func" >&5
6121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6124 cat > conftest.
$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6127 /* System header to define __stub macros and hopefully few prototypes,
6128 which can conflict with char $ac_func(); below. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6148 if { (eval echo configure
:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6150 eval "ac_cv_func_$ac_func=yes"
6152 echo "configure: failed program was:" >&5
6153 cat conftest.
$ac_ext >&5
6155 eval "ac_cv_func_$ac_func=no"
6160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6161 echo "$ac_t""yes" 1>&6
6162 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6163 cat >> confdefs.h
<<EOF
6164 #define $ac_tr_func 1
6168 echo "$ac_t""no" 1>&6
6172 LIBS
="$gt_save_LIBS"
6174 # Extract the first word of "msgfmt", so it can be a program name with args.
6175 set dummy msgfmt
; ac_word
=$2
6176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6177 echo "configure:6178: checking for $ac_word" >&5
6178 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6183 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6186 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6187 for ac_dir
in $PATH; do
6188 test -z "$ac_dir" && ac_dir
=.
6189 if test -f $ac_dir/$ac_word; then
6190 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6191 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6197 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6201 MSGFMT
="$ac_cv_path_MSGFMT"
6202 if test "$MSGFMT" != ":"; then
6203 echo "$ac_t""$MSGFMT" 1>&6
6205 echo "$ac_t""no" 1>&6
6208 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6209 set dummy gmsgfmt
; ac_word
=$2
6210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6211 echo "configure:6212: checking for $ac_word" >&5
6212 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6213 echo $ac_n "(cached) $ac_c" 1>&6
6217 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6220 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6223 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6225 for ac_dir
in $ac_dummy; do
6226 test -z "$ac_dir" && ac_dir
=.
6227 if test -f $ac_dir/$ac_word; then
6228 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6233 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6237 GMSGFMT
="$ac_cv_path_GMSGFMT"
6238 if test -n "$GMSGFMT"; then
6239 echo "$ac_t""$GMSGFMT" 1>&6
6241 echo "$ac_t""no" 1>&6
6245 # Extract the first word of "xgettext", so it can be a program name with args.
6246 set dummy xgettext
; ac_word
=$2
6247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6248 echo "configure:6249: checking for $ac_word" >&5
6249 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6250 echo $ac_n "(cached) $ac_c" 1>&6
6254 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6257 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6258 for ac_dir
in $PATH; do
6259 test -z "$ac_dir" && ac_dir
=.
6260 if test -f $ac_dir/$ac_word; then
6261 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6262 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6268 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6272 XGETTEXT
="$ac_cv_path_XGETTEXT"
6273 if test "$XGETTEXT" != ":"; then
6274 echo "$ac_t""$XGETTEXT" 1>&6
6276 echo "$ac_t""no" 1>&6
6284 echo "$ac_t""no" 1>&6
6288 if test "$CATOBJEXT" = "NONE"; then
6289 nls_cv_use_gnu_gettext
=yes
6293 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6294 INTLOBJS
="\$(GETTOBJS)"
6295 # Extract the first word of "msgfmt", so it can be a program name with args.
6296 set dummy msgfmt
; ac_word
=$2
6297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_word" >&5
6299 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6304 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6307 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6308 for ac_dir
in $PATH; do
6309 test -z "$ac_dir" && ac_dir
=.
6310 if test -f $ac_dir/$ac_word; then
6311 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6312 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6318 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6322 MSGFMT
="$ac_cv_path_MSGFMT"
6323 if test "$MSGFMT" != ":"; then
6324 echo "$ac_t""$MSGFMT" 1>&6
6326 echo "$ac_t""no" 1>&6
6329 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6330 set dummy gmsgfmt
; ac_word
=$2
6331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6332 echo "configure:6333: checking for $ac_word" >&5
6333 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6338 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6341 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6344 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6346 for ac_dir
in $ac_dummy; do
6347 test -z "$ac_dir" && ac_dir
=.
6348 if test -f $ac_dir/$ac_word; then
6349 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6354 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6358 GMSGFMT
="$ac_cv_path_GMSGFMT"
6359 if test -n "$GMSGFMT"; then
6360 echo "$ac_t""$GMSGFMT" 1>&6
6362 echo "$ac_t""no" 1>&6
6365 # Extract the first word of "xgettext", so it can be a program name with args.
6366 set dummy xgettext
; ac_word
=$2
6367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6368 echo "configure:6369: checking for $ac_word" >&5
6369 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6370 echo $ac_n "(cached) $ac_c" 1>&6
6374 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6377 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6378 for ac_dir
in $PATH; do
6379 test -z "$ac_dir" && ac_dir
=.
6380 if test -f $ac_dir/$ac_word; then
6381 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6382 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6388 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6392 XGETTEXT
="$ac_cv_path_XGETTEXT"
6393 if test "$XGETTEXT" != ":"; then
6394 echo "$ac_t""$XGETTEXT" 1>&6
6396 echo "$ac_t""no" 1>&6
6400 BUILD_INCLUDED_LIBINTL
=yes
6401 USE_INCLUDED_LIBINTL
=yes
6403 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6404 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6405 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6408 if test "$GMSGFMT" != ":"; then
6409 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6412 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6417 if test "$XGETTEXT" != ":"; then
6418 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6421 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6431 if test "$PACKAGE" = gettext; then
6432 BUILD_INCLUDED_LIBINTL
=yes
6435 for ac_prog
in bison
6437 # Extract the first word of "$ac_prog", so it can be a program name with args.
6438 set dummy
$ac_prog; ac_word
=$2
6439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_word" >&5
6441 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6444 if test -n "$INTLBISON"; then
6445 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6449 for ac_dir
in $ac_dummy; do
6450 test -z "$ac_dir" && ac_dir
=.
6451 if test -f $ac_dir/$ac_word; then
6452 ac_cv_prog_INTLBISON
="$ac_prog"
6459 INTLBISON
="$ac_cv_prog_INTLBISON"
6460 if test -n "$INTLBISON"; then
6461 echo "$ac_t""$INTLBISON" 1>&6
6463 echo "$ac_t""no" 1>&6
6466 test -n "$INTLBISON" && break
6469 if test -z "$INTLBISON"; then
6472 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6473 echo "configure:6474: checking version of bison" >&5
6474 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6475 case $ac_prog_version in
6476 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6477 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6478 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6479 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6481 echo "$ac_t""$ac_prog_version" 1>&6
6483 if test $ac_verc_fail = yes; then
6496 if test $USE_INCLUDED_LIBINTL = yes; then
6497 cat >> confdefs.h
<<\EOF
6498 #define USE_INCLUDED_LIBINTL 1
6504 nls_cv_header_libgt
=
6516 if test "x$CATOBJEXT" != x
; then
6517 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6518 echo "configure:6519: checking for catalogs to be installed" >&5
6519 # Look for .po and .gmo files in the source directory.
6522 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6523 # If there aren't any .gmo files the shell will give us the
6524 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6526 case "$cat" in *\
**)
6529 # The quadruple backslash is collapsed to a double backslash
6530 # by the backticks, then collapsed again by the double quotes,
6531 # leaving us with one backslash in the sed expression (right
6532 # before the dot that mustn't act as a wildcard). The dot to
6533 # be escaped in the second expression is hiding inside CATOBJEXT.
6534 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6535 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6536 # The user is allowed to set LINGUAS to a list of languages to
6537 # install catalogs for. If it's empty that means "all of them."
6538 if test "x$LINGUAS" = x
; then
6539 CATALOGS
="$CATALOGS $cat"
6540 XLINGUAS
="$XLINGUAS $lang"
6542 case "$LINGUAS" in *$lang*)
6543 CATALOGS
="$CATALOGS $cat"
6544 XLINGUAS
="$XLINGUAS $lang"
6550 echo "$ac_t""$LINGUAS" 1>&6
6554 if test -n "$ac_aux_dir"; then
6555 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6557 if test -z "$MKINSTALLDIRS"; then
6558 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6562 INTL_LIBTOOL_SUFFIX_PREFIX
=
6566 # Windows32 Registry support for specifying GCC installation paths.
6567 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6568 if test "${enable_win32_registry+set}" = set; then
6569 enableval
="$enable_win32_registry"
6574 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6575 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6576 echo "configure:6577: checking whether windows registry support is requested" >&5
6577 if test "x$enable_win32_registry" != xno
; then
6578 cat >> confdefs.h
<<\EOF
6579 #define ENABLE_WIN32_REGISTRY 1
6582 echo "$ac_t""yes" 1>&6
6584 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6585 echo "configure:6586: checking for library containing RegOpenKeyExA" >&5
6586 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 ac_func_search_save_LIBS
="$LIBS"
6590 ac_cv_search_RegOpenKeyExA
="no"
6591 cat > conftest.
$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6597 char RegOpenKeyExA();
6603 if { (eval echo configure
:6604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6605 ac_cv_search_RegOpenKeyExA
="none required"
6607 echo "configure: failed program was:" >&5
6608 cat conftest.
$ac_ext >&5
6611 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6612 LIBS
="-l$i $ac_func_search_save_LIBS"
6613 cat > conftest.
$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619 char RegOpenKeyExA();
6625 if { (eval echo configure
:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6627 ac_cv_search_RegOpenKeyExA
="-l$i"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.
$ac_ext >&5
6635 LIBS
="$ac_func_search_save_LIBS"
6638 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6639 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6640 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6646 echo "$ac_t""no" 1>&6
6649 # Check if user specified a different registry key.
6650 case "x${enable_win32_registry}" in
6653 gcc_cv_win32_registry_key
="$VERSION"
6656 # no registry lookup.
6657 gcc_cv_win32_registry_key
=''
6660 # user-specified key.
6661 gcc_cv_win32_registry_key
="$enable_win32_registry"
6665 if test "x$enable_win32_registry" != xno
; then
6666 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6667 echo "configure:6668: checking registry key on windows hosts" >&5
6668 cat >> confdefs.h
<<EOF
6669 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6672 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6677 # Get an absolute path to the GCC top-level source directory
6678 holddir
=`${PWDCMD-pwd}`
6680 topdir
=`${PWDCMD-pwd}`
6683 # Conditionalize the makefile for this host machine.
6684 # Make-host contains the concatenation of all host makefile fragments
6685 # [there can be more than one]. This file is built by configure.frag.
6686 host_overrides
=Make-host
6687 dep_host_xmake_file
=
6688 for f
in ..
${host_xmake_file}
6690 if test -f ${srcdir}/config
/$f
6692 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6696 # Conditionalize the makefile for this target machine.
6697 # Make-target contains the concatenation of all host makefile fragments
6698 # [there can be more than one]. This file is built by configure.frag.
6699 target_overrides
=Make-target
6701 for f
in ..
${tmake_file}
6703 if test -f ${srcdir}/config
/$f
6705 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6709 # If the host doesn't support symlinks, modify CC in
6710 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6711 # Otherwise, we can use "CC=$(CC)".
6713 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6715 cc_set_by_configure
="\$(CC)"
6716 quoted_cc_set_by_configure
="\$(CC)"
6717 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6718 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6721 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6723 symbolic_link
="cp -p"
6727 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6728 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6729 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6730 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6734 out_object_file
=`basename $out_file .c`.o
6737 for f
in $tm_file; do
6740 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6742 tm_file_list
="${tm_file_list} \$(srcdir)/$f" ;;
6743 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6748 for f
in $tm_p_file; do
6749 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6753 for f
in $host_xm_file; do
6756 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6758 host_xm_file_list
="${host_xm_file_list} $f" ;;
6760 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6761 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6766 for f
in $build_xm_file; do
6769 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6770 auto-build.h | auto-host.h
)
6771 build_xm_file_list
="${build_xm_file_list} $f" ;;
6773 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
6774 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6778 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6779 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6782 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6783 if test x
$host != x
$target
6785 CROSS
="-DCROSS_COMPILE"
6787 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6788 case "$host","$target" in
6789 i?
86-*-*,x86_64-
*-* \
6790 | powerpc
*-*-*,powerpc64
*-*-*)
6791 CROSS
="$CROSS -DNATIVE_CROSS" ;;
6795 # If this is a cross-compiler that does not
6796 # have its own set of headers then define
6799 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6800 # This prevents libgcc2 from containing any code which requires libc
6803 if test x
$host != x
$target && test x
$with_headers = x
; then
6804 inhibit_libc
=-Dinhibit_libc
6806 if test x
$with_newlib = xyes
; then
6807 inhibit_libc
=-Dinhibit_libc
6812 # When building gcc with a cross-compiler, we need to adjust things so
6813 # that the generator programs are still built with the native compiler.
6814 # Also, we cannot run fixincludes or fix-header.
6815 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6818 # These are the normal (build=host) settings:
6820 BUILD_PREFIX_1
=ignore-
6822 HOST_CFLAGS
='$(ALL_CFLAGS)'
6824 STMP_FIXINC
=stmp-fixinc
6825 STMP_FIXPROTO
=stmp-fixproto
6827 # And these apply if build != host.
6828 if test x
$build != x
$host
6831 BUILD_PREFIX_1
=build-
6832 HOST_CC
='$(CC_FOR_BUILD)'
6833 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6839 # Expand extra_headers to include complete path.
6840 # This substitutes for lots of t-* files.
6842 if test "x$extra_headers" = x
6845 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6846 for file in $extra_headers;
6848 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6852 if test x
$use_collect2 = xno
; then
6856 # Add a definition of USE_COLLECT2 if system wants one.
6857 if test x
$use_collect2 != x
6859 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6860 xm_defines
="${xm_defines} USE_COLLECT2"
6863 # If we have gas in the build tree, make a link to it.
6864 if test -f ..
/gas
/Makefile
; then
6865 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6868 # If we have nm and objdump in the build tree, make a link to them.
6869 if test -f ..
/binutils
/Makefile
; then
6870 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6871 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6874 # If we have ld in the build tree, make a link to it.
6875 if test -f ..
/ld
/Makefile
; then
6876 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6879 # Figure out what assembler we will be using.
6880 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6881 echo "configure:6882: checking what assembler to use" >&5
6883 gcc_cv_gas_major_version
=
6884 gcc_cv_gas_minor_version
=
6885 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6886 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6887 if test -x "$DEFAULT_ASSEMBLER"; then
6888 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6889 elif test -x "$AS"; then
6891 elif test -x as
$host_exeext; then
6892 # Build using assembler in the current directory.
6893 gcc_cv_as
=.
/as
$host_exeext
6894 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6895 # Single tree build which includes gas.
6896 for f
in $gcc_cv_as_bfd_srcdir/configure
$gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
6898 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6899 if test x
$gcc_cv_gas_version != x
; then
6903 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6904 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6905 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
6908 if test "x$gcc_cv_as" = x
; then
6909 # Search the same directories that the installed compiler will
6910 # search. Else we may find the wrong assembler and lose. If we
6911 # do not find a suitable assembler binary, then try the user's
6914 # Also note we have to check MD_EXEC_PREFIX before checking the
6915 # user's path. Unfortunately, there is no good way to get at the
6916 # value of MD_EXEC_PREFIX here. So we do a brute force search
6917 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6918 # to be fixed as part of the make/configure rewrite too.
6920 if test "x$exec_prefix" = xNONE
; then
6921 if test "x$prefix" = xNONE
; then
6922 test_prefix
=/usr
/local
6927 test_prefix
=$exec_prefix
6930 # If the loop below does not find an assembler, then use whatever
6931 # one we can find in the users's path.
6933 if test "x$program_prefix" != xNONE
; then
6934 gcc_cv_as
=${program_prefix}as
$host_exeext
6936 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
6939 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
6940 $test_prefix/lib/gcc-lib/$target_alias \
6941 /usr/lib/gcc/$target_alias/$gcc_version \
6942 /usr/lib/gcc/$target_alias \
6943 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
6944 $test_prefix/$target_alias/bin"
6946 if test x
$host = x
$target; then
6947 test_dirs
="$test_dirs \
6952 /bsd43/usr/lib/cmplrs/cc \
6953 /usr/cross64/usr/bin \
6954 /usr/lib/cmplrs/cc \
6955 /sysv/usr/lib/cmplrs/cc \
6956 /svr4/usr/lib/cmplrs/cc \
6960 for dir
in $test_dirs; do
6961 if test -x $dir/as
$host_exeext; then
6962 gcc_cv_as
=$dir/as
$host_exeext
6967 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6968 echo "$ac_t"""newly built gas
"" 1>&6
6970 echo "$ac_t""$gcc_cv_as" 1>&6
6973 # Figure out what linker we will be using.
6974 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6975 echo "configure:6976: checking what linker to use" >&5
6977 gcc_cv_gld_major_version
=
6978 gcc_cv_gld_minor_version
=
6979 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6980 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6981 if test -x "$DEFAULT_LINKER"; then
6982 gcc_cv_ld
="$DEFAULT_LINKER"
6983 elif test -x "$LD"; then
6985 elif test -x ld
$host_exeext; then
6986 # Build using linker in the current directory.
6987 gcc_cv_ld
=.
/ld
$host_exeext
6988 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
6989 # Single tree build which includes ld.
6990 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.
in $gcc_cv_ld_gld_srcdir/Makefile.
in
6992 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6993 if test x
$gcc_cv_gld_version != x
; then
6997 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6998 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
7001 if test "x$gcc_cv_ld" = x
; then
7002 # Search the same directories that the installed compiler will
7003 # search. Else we may find the wrong linker and lose. If we
7004 # do not find a suitable linker binary, then try the user's
7007 # Also note we have to check MD_EXEC_PREFIX before checking the
7008 # user's path. Unfortunately, there is no good way to get at the
7009 # value of MD_EXEC_PREFIX here. So we do a brute force search
7010 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
7011 # to be fixed as part of the make/configure rewrite too.
7013 if test "x$exec_prefix" = xNONE
; then
7014 if test "x$prefix" = xNONE
; then
7015 test_prefix
=/usr
/local
7020 test_prefix
=$exec_prefix
7023 # If the loop below does not find an linker, then use whatever
7024 # one we can find in the users's path.
7026 if test "x$program_prefix" != xNONE
; then
7027 gcc_cv_ld
=${program_prefix}ld
$host_exeext
7029 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
7032 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
7033 $test_prefix/lib/gcc-lib/$target_alias \
7034 /usr/lib/gcc/$target_alias/$gcc_version \
7035 /usr/lib/gcc/$target_alias \
7036 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
7037 $test_prefix/$target_alias/bin"
7039 if test x
$host = x
$target; then
7040 test_dirs
="$test_dirs \
7045 /bsd43/usr/lib/cmplrs/cc \
7046 /usr/cross64/usr/bin \
7047 /usr/lib/cmplrs/cc \
7048 /sysv/usr/lib/cmplrs/cc \
7049 /svr4/usr/lib/cmplrs/cc \
7053 for dir
in $test_dirs; do
7054 if test -x $dir/ld
$host_exeext; then
7055 gcc_cv_ld
=$dir/ld
$host_exeext
7060 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7061 echo "$ac_t"""newly built ld
"" 1>&6
7063 echo "$ac_t""$gcc_cv_ld" 1>&6
7066 # Figure out what nm we will be using.
7067 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
7068 echo "configure:7069: checking what nm to use" >&5
7069 if test -x nm
$host_exeext; then
7070 gcc_cv_nm
=.
/nm
$host_exeext
7071 elif test "x$program_prefix" != xNONE
; then
7072 gcc_cv_nm
=${program_prefix}nm
$host_exeext
7074 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
7076 echo "$ac_t""$gcc_cv_nm" 1>&6
7078 # Figure out what objdump we will be using.
7079 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7080 echo "configure:7081: checking what objdump to use" >&5
7081 if test -x objdump
$host_exeext; then
7082 gcc_cv_objdump
=.
/objdump
$host_exeext
7083 elif test "x$program_prefix" != xNONE
; then
7084 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
7086 gcc_cv_objdump
=`echo objdump | sed ${program_transform_name}`$host_exeext
7088 echo "$ac_t""$gcc_cv_objdump" 1>&6
7090 # Figure out what assembler alignment features are present.
7091 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7092 echo "configure:7093: checking assembler alignment features" >&5
7093 gcc_cv_as_alignment_features
=none
7094 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7095 # Gas version 2.6 and later support for .balign and .p2align.
7096 # bytes to skip when using .p2align.
7097 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
7098 gcc_cv_as_alignment_features
=".balign and .p2align"
7099 cat >> confdefs.h
<<\EOF
7100 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7104 # Gas version 2.8 and later support specifying the maximum
7105 # bytes to skip when using .p2align.
7106 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
7107 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7108 cat >> confdefs.h
<<\EOF
7109 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7113 elif test x
$gcc_cv_as != x
; then
7114 # Check if we have .balign and .p2align
7115 echo ".balign 4" > conftest.s
7116 echo ".p2align 2" >> conftest.s
7117 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7118 gcc_cv_as_alignment_features
=".balign and .p2align"
7119 cat >> confdefs.h
<<\EOF
7120 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7124 rm -f conftest.s conftest.o
7125 # Check if specifying the maximum bytes to skip when
7126 # using .p2align is supported.
7127 echo ".p2align 4,,7" > conftest.s
7128 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7129 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7130 cat >> confdefs.h
<<\EOF
7131 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7135 rm -f conftest.s conftest.o
7137 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7139 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7140 echo "configure:7141: checking assembler subsection support" >&5
7141 gcc_cv_as_subsections
=no
7142 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7143 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7144 gcc_cv_as_subsections
="working .subsection -1"
7146 elif test x
$gcc_cv_as != x
; then
7147 # Check if we have .subsection
7148 echo ".subsection 1" > conftest.s
7149 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7150 gcc_cv_as_subsections
=".subsection"
7151 if test x
$gcc_cv_nm != x
; then
7152 cat > conftest.s
<<EOF
7153 conftest_label1: .word 0
7155 conftest_label2: .word 0
7158 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7159 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7160 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7161 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7164 gcc_cv_as_subsections
="working .subsection -1"
7169 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7171 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7172 cat >> confdefs.h
<<\EOF
7173 #define HAVE_GAS_SUBSECTION_ORDERING 1
7177 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7179 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7180 echo "configure:7181: checking assembler weak support" >&5
7182 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7183 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
7184 gcc_cv_as_weak
="yes"
7186 elif test x
$gcc_cv_as != x
; then
7187 # Check if we have .weak
7188 echo " .weak foobar" > conftest.s
7189 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7190 gcc_cv_as_weak
="yes"
7192 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7194 if test x
"$gcc_cv_as_weak" = xyes
; then
7195 cat >> confdefs.h
<<\EOF
7196 #define HAVE_GAS_WEAK 1
7200 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7202 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7203 echo "configure:7204: checking assembler hidden support" >&5
7205 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7206 if test "$gcc_cv_gas_major_version" -eq 2 \
7207 -a "$gcc_cv_gas_minor_version" -eq 12 \
7208 -a "$gcc_cv_gas_patch_version" -ge 1 \
7209 -o "$gcc_cv_gas_major_version" -eq 2 \
7210 -a "$gcc_cv_gas_minor_version" -gt 12 \
7211 -o "$gcc_cv_gas_major_version" -gt 2 \
7212 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7213 gcc_cv_as_hidden
="yes"
7215 elif test x
$gcc_cv_as != x
; then
7216 # Check if we have .hidden
7217 echo " .hidden foobar" > conftest.s
7218 echo "foobar:" >> conftest.s
7219 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7220 gcc_cv_as_hidden
="yes"
7222 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7224 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
7225 # This is irritatingly difficult to feature test for. Look for
7226 # the date string after the version number.
7227 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
7228 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
7229 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
7230 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
7231 if test 0"$ld_date" -lt 20020404; then
7232 if test -n "$ld_date"; then
7233 # If there was date string, but was earlier than 2002-04-04, fail
7234 gcc_cv_as_hidden
="no"
7235 elif test -z "$ld_vers"; then
7236 # If there was no date string nor ld version number, something is wrong
7237 gcc_cv_as_hidden
="no"
7239 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
7240 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
7241 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7242 test -z "$ld_vers_patch" && ld_vers_patch
=0
7243 if test "$ld_vers_major" -lt 2; then
7244 gcc_cv_as_hidden
="no"
7245 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
7246 gcc_cv_as_hidden
="no"
7247 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
7248 -a "$ld_vers_patch" -eq 0; then
7249 gcc_cv_as_hidden
="no"
7255 if test x
"$gcc_cv_as_hidden" = xyes
; then
7256 cat >> confdefs.h
<<\EOF
7257 #define HAVE_GAS_HIDDEN 1
7261 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7262 libgcc_visibility
=$gcc_cv_as_hidden
7265 if test x
"$gnu_ld_flag" = x
"no"; then
7266 # Even if using gas with .hidden support, the resulting object files
7267 # cannot be linked with the IRIX 6 O32 linker.
7268 libgcc_visibility
=no
7274 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7275 echo "configure:7276: checking assembler leb128 support" >&5
7277 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7278 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 11 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7279 gcc_cv_as_leb128
="yes"
7281 elif test x
$gcc_cv_as != x
; then
7282 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7283 cat > conftest.s
<<EOF
7291 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7292 gcc_cv_as_leb128
="yes"
7294 # GAS versions before 2.11 do not support uleb128,
7295 # despite appearing to.
7296 # ??? There exists an elf-specific test that will crash
7297 # the assembler. Perhaps it's better to figure out whether
7298 # arbitrary sections are supported and try the test.
7299 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7300 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7301 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7302 as_major
=`echo $as_ver | sed 's/\..*//'`
7303 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7304 if test $as_major -eq 2 -a $as_minor -lt 11; then
7305 gcc_cv_as_leb128
="no"
7309 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7311 if test x
"$gcc_cv_as_leb128" = xyes
; then
7312 cat >> confdefs.h
<<\EOF
7313 #define HAVE_AS_LEB128 1
7317 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7319 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7320 echo "configure:7321: checking assembler eh_frame optimization" >&5
7321 gcc_cv_as_eh_frame
=no
7322 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7323 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7324 gcc_cv_as_eh_frame
="yes"
7326 elif test x
$gcc_cv_as != x
; then
7327 # Check if this is GAS.
7328 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7329 rm -f a.out
2> /dev
/null
7330 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7331 # Versions up to and including 2.11.0 may mis-optimize
7332 # .eh_frame data. Try something.
7333 cat > conftest.s
<<EOF
7340 .section .eh_frame,"aw",@progbits
7342 .4byte .LECIE1-.LSCIE1
7356 .4byte .LEFDE1-.LASFDE1
7358 .4byte .LASFDE1-__FRAME_BEGIN__
7367 cat > conftest.lit
<<EOF
7368 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7369 0010 01000000 12000000 18000000 00000000 ................
7370 0020 08000000 04080000 0044 .........D
7372 cat > conftest.big
<<EOF
7373 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7374 0010 00000001 00000012 00000018 00000000 ................
7375 0020 00000008 04000000 0844 .........D
7377 # If the assembler didn't choke, and we can objdump,
7378 # and we got the correct data, then succeed.
7379 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7380 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7381 |
tail -3 > conftest.got \
7382 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7383 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7385 gcc_cv_as_eh_frame
="yes"
7387 gcc_cv_as_eh_frame
="bad"
7388 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7389 cat >> confdefs.h
<<\EOF
7390 #define USE_AS_TRADITIONAL_FORMAT 1
7398 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7400 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7401 echo "configure:7402: checking assembler section merging support" >&5
7402 gcc_cv_as_shf_merge
=no
7403 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7404 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 12 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7405 gcc_cv_as_shf_merge
=yes
7407 elif test x
$gcc_cv_as != x
; then
7408 # Check if we support SHF_MERGE sections
7409 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7410 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7411 gcc_cv_as_shf_merge
=yes
7413 rm -f conftest.s conftest.o
7415 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7416 cat >> confdefs.h
<<\EOF
7417 #define HAVE_GAS_SHF_MERGE 1
7421 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7423 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6
7424 echo "configure:7425: checking assembler thread-local storage support" >&5
7432 .section ".tdata","awT",@progbits
7435 ldq $27,__tls_get_addr($29) !literal!1
7436 lda $16,foo($29) !tlsgd!1
7437 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
7438 ldq $27,__tls_get_addr($29) !literal!2
7439 lda $16,foo($29) !tlsldm!2
7440 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
7441 ldq $1,foo($29) !gotdtprel
7442 ldah $2,foo($29) !dtprelhi
7443 lda $3,foo($2) !dtprello
7444 lda $4,foo($29) !dtprel
7445 ldq $1,foo($29) !gottprel
7446 ldah $2,foo($29) !tprelhi
7447 lda $3,foo($2) !tprello
7448 lda $4,foo($29) !tprel'
7454 .section ".tdata","awT",@progbits
7458 leal foo@TLSGD(,%ebx,1), %eax
7459 leal foo@TLSLDM(%ebx), %eax
7460 leal foo@DTPOFF(%eax), %edx
7461 movl foo@GOTTPOFF(%ebx), %eax
7462 subl foo@GOTTPOFF(%ebx), %eax
7463 movl $foo@TPOFF, %eax
7464 subl $foo@TPOFF, %eax
7465 leal foo@NTPOFF(%ecx), %eax'
7471 .section ".tdata","awT",@progbits
7474 addl r16 = @ltoff(@dtpmod(foo#)), gp
7475 addl r17 = @ltoff(@dtprel(foo#)), gp
7476 addl r18 = @ltoff(@tprel(foo#)), gp
7477 addl r19 = @dtprel(foo#), gp
7478 adds r21 = @dtprel(foo#), r13
7479 movl r23 = @dtprel(foo#)
7480 addl r20 = @tprel(foo#), gp
7481 adds r22 = @tprel(foo#), r13
7482 movl r24 = @tprel(foo#)'
7487 if test -z "$tls_first_major"; then
7489 elif test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7491 if test "$gcc_cv_gas_major_version" -eq "$tls_first_major" \
7492 -a "$gcc_cv_gas_minor_version" -ge "$tls_first_minor" \
7493 -o "$gcc_cv_gas_major_version" -gt "$tls_first_major"; then
7496 elif test x
$gcc_cv_as != x
; then
7497 echo "$conftest_s" > conftest.s
7498 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
7502 rm -f conftest.s conftest.o
7504 if test "$gcc_cv_as_tls" = yes; then
7505 cat >> confdefs.h
<<\EOF
7506 #define HAVE_AS_TLS 1
7510 echo "$ac_t""$gcc_cv_as_tls" 1>&6
7513 # All TARGET_ABI_OSF targets.
7514 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7515 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7516 echo "configure:7517: checking assembler supports explicit relocations" >&5
7517 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7518 echo $ac_n "(cached) $ac_c" 1>&6
7521 gcc_cv_as_explicit_relocs
=unknown
7522 if test x
$gcc_cv_gas_major_version != x \
7523 -a x
$gcc_cv_gas_minor_version != x
7525 if test "$gcc_cv_gas_major_version" -eq 2 \
7526 -a "$gcc_cv_gas_minor_version" -ge 12 \
7527 -o "$gcc_cv_gas_major_version" -gt 2; then
7528 gcc_cv_as_explicit_relocs
=yes
7530 elif test x
$gcc_cv_as != x
; then
7531 cat > conftest.s
<< 'EOF'
7534 extbl
$3, $2, $3 !lituse_bytoff
!1
7535 ldq
$2, a
($29) !literal
!1
7536 ldq
$4, b
($29) !literal
!2
7537 ldq_u
$3, 0($2) !lituse_base
!1
7538 ldq
$27, f
($29) !literal
!5
7539 jsr
$26, ($27), f
!lituse_jsr
!5
7540 ldah
$29, 0($26) !gpdisp
!3
7541 lda
$0, c
($29) !gprel
7542 ldah
$1, d
($29) !gprelhigh
7543 lda
$1, d
($1) !gprellow
7544 lda
$29, 0($29) !gpdisp
!3
7546 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7547 gcc_cv_as_explicit_relocs
=yes
7549 gcc_cv_as_explicit_relocs
=no
7551 rm -f conftest.s conftest.o
7556 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7557 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7558 cat >> confdefs.h
<<\EOF
7559 #define HAVE_AS_EXPLICIT_RELOCS 1
7565 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7566 echo "configure:7567: checking assembler .register pseudo-op support" >&5
7567 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7571 gcc_cv_as_register_pseudo_op
=unknown
7572 if test x
$gcc_cv_as != x
; then
7573 # Check if we have .register
7574 echo ".register %g2, #scratch" > conftest.s
7575 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7576 gcc_cv_as_register_pseudo_op
=yes
7578 gcc_cv_as_register_pseudo_op
=no
7580 rm -f conftest.s conftest.o
7585 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7586 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7587 cat >> confdefs.h
<<\EOF
7588 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7593 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7594 echo "configure:7595: checking assembler supports -relax" >&5
7595 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7596 echo $ac_n "(cached) $ac_c" 1>&6
7599 gcc_cv_as_relax_opt
=unknown
7600 if test x
$gcc_cv_as != x
; then
7601 # Check if gas supports -relax
7602 echo ".text" > conftest.s
7603 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7604 gcc_cv_as_relax_opt
=yes
7606 gcc_cv_as_relax_opt
=no
7608 rm -f conftest.s conftest.o
7613 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7614 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7615 cat >> confdefs.h
<<\EOF
7616 #define HAVE_AS_RELAX_OPTION 1
7621 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7622 echo "configure:7623: checking assembler and linker support unaligned pc related relocs" >&5
7623 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7627 gcc_cv_as_sparc_ua_pcrel
=unknown
7628 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7629 gcc_cv_as_sparc_ua_pcrel
=no
7630 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7631 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7632 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7633 gcc_cv_as_sparc_ua_pcrel
=yes
7635 rm -f conftest.s conftest.o conftest
7640 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7641 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7642 cat >> confdefs.h
<<\EOF
7643 #define HAVE_AS_SPARC_UA_PCREL 1
7648 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6
7649 echo "configure:7650: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
7650 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7654 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7655 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
7656 if test x
$gcc_cv_objdump != x
; then
7657 gcc_cv_as_sparc_ua_pcrel_hidden
=no
7658 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
7659 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
7660 echo "foo: .skip 4" >> conftest.s
7661 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
7662 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
7663 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
7664 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
7665 if $gcc_cv_objdump -R conftest
2> /dev
/null \
7666 |
grep 'DISP32' > /dev
/null
2>&1; then
7669 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
7673 rm -f conftest.s conftest.o conftest
7675 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
7680 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel_hidden" 1>&6
7681 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
7682 cat >> confdefs.h
<<\EOF
7683 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
7688 if test "x$gcc_cv_as_flags64" != xno
; then
7689 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7690 echo "configure:7691: checking for assembler offsetable %lo() support" >&5
7691 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7695 gcc_cv_as_offsetable_lo10
=unknown
7696 if test "x$gcc_cv_as" != x
; then
7697 # Check if assembler has offsetable %lo()
7698 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7699 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7700 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7702 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7703 > /dev
/null
2>&1; then
7704 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7705 gcc_cv_as_offsetable_lo10
=no
7707 gcc_cv_as_offsetable_lo10
=yes
7710 gcc_cv_as_offsetable_lo10
=no
7712 rm -f conftest.s conftest.o conftest1.s conftest1.o
7717 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7718 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7719 cat >> confdefs.h
<<\EOF
7720 #define HAVE_AS_OFFSETABLE_LO10 1
7728 i
[34567]86-*-* | x86_64-
*-*)
7729 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7730 echo "configure:7731: checking assembler instructions" >&5
7731 gcc_cv_as_instructions
=
7732 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7733 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
7734 gcc_cv_as_instructions
="filds fists"
7736 elif test x
$gcc_cv_as != x
; then
7737 set "filds fists" "filds mem; fists mem"
7740 echo "$2" > conftest.s
7741 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7742 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7746 rm -f conftest.s conftest.o
7748 if test x
"$gcc_cv_as_instructions" != x
; then
7749 cat >> confdefs.h
<<EOF
7750 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7754 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7756 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7757 echo "configure:7758: checking assembler GOTOFF in data directives" >&5
7758 gcc_cv_as_gotoff_in_data
=no
7759 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7761 if test "$gcc_cv_gas_major_version" -eq 2 \
7762 -a "$gcc_cv_gas_minor_version" -ge 11 \
7763 -o "$gcc_cv_gas_major_version" -gt 2; then
7764 gcc_cv_as_gotoff_in_data
=yes
7766 elif test x
$gcc_cv_as != x
; then
7767 cat > conftest.s
<<EOF
7774 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7775 gcc_cv_as_gotoff_in_data
=yes
7778 cat >> confdefs.h
<<EOF
7779 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7782 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7786 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7787 echo "configure:7788: checking assembler dwarf2 debug_line support" >&5
7788 gcc_cv_as_dwarf2_debug_line
=no
7789 # ??? Not all targets support dwarf2 debug_line, even within a version
7790 # of gas. Moreover, we need to emit a valid instruction to trigger any
7791 # info to the output file. So, as supported targets are added to gas 2.11,
7792 # add some instruction here to (also) show we expect this might work.
7793 # ??? Once 2.11 is released, probably need to add first known working
7794 # version to the per-target configury.
7796 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-* | hppa
*-*-*)
7803 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7805 if test "$gcc_cv_gas_major_version" -eq 2 \
7806 -a "$gcc_cv_gas_minor_version" -ge 11 \
7807 -o "$gcc_cv_gas_major_version" -gt 2 \
7808 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7809 && test x
"$insn" != x
; then
7810 gcc_cv_as_dwarf2_debug_line
="yes"
7812 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7813 echo ' .file 1 "conftest.s"' > conftest.s
7814 echo ' .loc 1 3 0' >> conftest.s
7815 echo " $insn" >> conftest.s
7816 # ??? This fails with non-gnu grep.
7817 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7818 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7819 # The .debug_line file table must be in the exact order that
7820 # we specified the files, since these indices are also used
7821 # by DW_AT_decl_file. Approximate this test by testing if
7822 # the assembler bitches if the same index is assigned twice.
7823 echo ' .file 1 "foo.s"' > conftest.s
7824 echo ' .file 1 "bar.s"' >> conftest.s
7825 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7827 gcc_cv_as_dwarf2_debug_line
="no"
7829 gcc_cv_as_dwarf2_debug_line
="yes"
7832 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7834 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7835 cat >> confdefs.h
<<\EOF
7836 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7840 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7842 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7843 echo "configure:7844: checking assembler --gdwarf2 support" >&5
7844 gcc_cv_as_gdwarf2_flag
=no
7845 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7847 if test "$gcc_cv_gas_major_version" -eq 2 \
7848 -a "$gcc_cv_gas_minor_version" -ge 11 \
7849 -o "$gcc_cv_gas_major_version" -gt 2 \
7850 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7851 && test x
"$insn" != x
; then
7852 gcc_cv_as_gdwarf2_flag
="yes"
7854 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7855 echo '' > conftest.s
7856 # ??? This fails with non-gnu grep.
7857 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7859 gcc_cv_as_gdwarf2_flag
="yes"
7861 rm -f conftest.s conftest.o
7863 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7864 cat >> confdefs.h
<<\EOF
7865 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7869 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7871 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7872 echo "configure:7873: checking assembler --gstabs support" >&5
7873 gcc_cv_as_gstabs_flag
=no
7874 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7876 if test "$gcc_cv_gas_major_version" -eq 2 \
7877 -a "$gcc_cv_gas_minor_version" -ge 11 \
7878 -o "$gcc_cv_gas_major_version" -gt 2 \
7879 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7880 && test x
"$insn" != x
; then
7881 gcc_cv_as_gstabs_flag
="yes"
7883 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7884 echo '' > conftest.s
7885 # ??? This fails with non-gnu grep.
7886 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7887 gcc_cv_as_gstabs_flag
="yes"
7889 rm -f conftest.s conftest.o
7891 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7892 cat >> confdefs.h
<<\EOF
7893 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7897 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7899 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7900 echo "configure:7901: checking linker PT_GNU_EH_FRAME support" >&5
7901 gcc_cv_ld_eh_frame_hdr
=no
7902 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7903 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ..
/ld
/Makefile
> /dev
/null
; then
7904 gcc_cv_ld_eh_frame_hdr
=yes
7906 elif test x
$gcc_cv_ld != x
; then
7907 # Check if linker supports --eh-frame-hdr option
7908 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7909 gcc_cv_ld_eh_frame_hdr
=yes
7912 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7913 cat >> confdefs.h
<<\EOF
7914 #define HAVE_LD_EH_FRAME_HDR 1
7918 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7920 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7921 cat >> confdefs.h
<<EOF
7922 #define PREFIX_INCLUDE_DIR "$prefix/include"
7927 # Figure out what language subdirectories are present.
7928 # Look if the user specified --enable-languages="..."; if not, use
7929 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7931 # NB: embedded tabs in this IF block -- do not untabify
7932 if test x
"${enable_languages+set}" != xset
; then
7933 if test x
"${LANGUAGES+set}" = xset
; then
7934 enable_languages
="${LANGUAGES}"
7935 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7938 enable_languages
=all
7941 if test x
"${enable_languages}" = x \
7942 ||
test x
"${enable_languages}" = xyes
;
7944 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7947 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7949 # First scan to see if an enabled language requires some other language.
7950 # We assume that a given config-lang.in will list all the language
7951 # front ends it requires, even if some are required indirectly.
7952 for lang
in ${srcdir}/*/config-lang.
in ..
7957 # The odd quoting in the next line works around
7958 # an apparent bug in bash 1.12 on linux.
7959 ${srcdir}/[*]/config-lang.
in)
7962 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7963 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7964 for other
in $this_lang_requires
7966 case ,${enable_languages}, in
7972 enable_languages
="$enable_languages,$other"
7980 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
7983 for lang
in ${srcdir}/*/config-lang.
in ..
7987 # The odd quoting in the next line works around
7988 # an apparent bug in bash 1.12 on linux.
7989 ${srcdir}/[*]/config-lang.
in) ;;
7991 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7992 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7993 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7994 if test "x$lang_alias" = x
7996 echo "$lang doesn't set \$language." 1>&2
7999 case ${build_by_default},${enable_languages}, in
8000 *,$lang_alias,*) add_this_lang
=yes ;;
8001 no
,*) add_this_lang
=no
;;
8002 *,all
,*) add_this_lang
=yes ;;
8003 *) add_this_lang
=no
;;
8005 found_languages
="${found_languages} ${lang_alias}"
8006 if test x
"${add_this_lang}" = xyes
; then
8008 ${srcdir}/ada
/config-lang.
in)
8009 if test x
$have_gnat = xyes
; then
8010 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8014 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8023 for expected_language
in ${expected_languages} ..
8025 if test "${expected_language}" != ..
; then
8026 missing_language
="${expected_language}"
8027 if test "${expected_language}" = "c" \
8028 ||
test "${expected_language}" = "all"; then
8031 for found_language
in ${found_languages} ..
8033 if test "${found_language}" != ..
; then
8034 if test "${expected_language}" = "${found_language}"; then
8039 if test "x${missing_language}" != x
; then
8040 missing_languages
="${missing_languages} ${missing_language}"
8045 if test "x$missing_languages" != x
; then
8046 { echo "configure: error:
8047 The following requested languages were not found:${missing_languages}
8048 The following languages were available: c${found_languages}" 1>&2; exit 1; }
8051 # Make gthr-default.h if we have a thread file.
8053 if test $thread_file != single
; then
8054 rm -f gthr-default.h
8055 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8056 gthread_flags
=-DHAVE_GTHR_DEFAULT
8060 # Find out what GC implementation we want, or may, use.
8061 # Check whether --with-gc or --without-gc was given.
8062 if test "${with_gc+set}" = set; then
8069 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8077 echo "Using $GGC for garbage collection."
8079 # Use the system's zlib library.
8081 zlibinc
="-I\$(srcdir)/../zlib"
8082 # Check whether --with-system-zlib or --without-system-zlib was given.
8083 if test "${with_system_zlib+set}" = set; then
8084 withval
="$with_system_zlib"
8094 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8095 echo "configure:8096: checking whether to enable maintainer-specific portions of Makefiles" >&5
8096 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8097 if test "${enable_maintainer_mode+set}" = set; then
8098 enableval
="$enable_maintainer_mode"
8099 maintainer_mode
=$enableval
8105 echo "$ac_t""$maintainer_mode" 1>&6
8107 if test "$maintainer_mode" = "yes"; then
8113 # With Setjmp/Longjmp based exception handling.
8114 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8115 if test "${enable_sjlj_exceptions+set}" = set; then
8116 enableval
="$enable_sjlj_exceptions"
8117 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8118 cat >> confdefs.h
<<EOF
8119 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8125 # Use libunwind based exception handling.
8126 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8127 if test "${enable_libunwind_exceptions+set}" = set; then
8128 enableval
="$enable_libunwind_exceptions"
8129 use_libunwind_exceptions
=$enableval
8131 use_libunwind_exceptions
=no
8134 if test x
"$use_libunwind_exceptions" = xyes
; then
8135 cat >> confdefs.h
<<\EOF
8136 #define USE_LIBUNWIND_EXCEPTIONS 1
8141 # Make empty files to contain the specs and options for each language.
8142 # Then add #include lines to for a compiler that has specs and/or options.
8147 for subdir
in .
$subdirs
8149 if test -f $srcdir/$subdir/lang-specs.h
; then
8150 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8152 if test -f $srcdir/$subdir/lang-options.h
; then
8153 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8155 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8156 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8160 # These (without "all_") are set in each config-lang.in.
8161 # `language' must be a single word so is spelled singularly.
8166 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
8167 # List of language makefile fragments.
8169 # Files for gengtype
8170 all_gtfiles
="$config_gtfiles"
8171 # Files for gengtype with language
8172 all_gtfiles_files_langs
=
8173 all_gtfiles_files_files
=
8175 # Add the language fragments.
8176 # Languages are added via two mechanisms. Some information must be
8177 # recorded in makefile variables, these are defined in config-lang.in.
8178 # We accumulate them and plug them into the main Makefile.
8179 # The other mechanism is a set of hooks for each of the main targets
8180 # like `clean', `install', etc.
8182 language_fragments
="Make-lang"
8183 language_hooks
="Make-hooks"
8185 for s
in ..
$subdirs
8195 .
${srcdir}/$s/config-lang.
in
8196 if test "x$language" = x
8198 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8201 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
8202 if test -f ${srcdir}/$s/Makefile.
in
8203 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
8205 all_languages
="$all_languages $language"
8206 if test "x$boot_language" = xyes
8208 all_boot_languages
="$all_boot_languages $language"
8210 all_compilers
="$all_compilers $compilers"
8211 all_stagestuff
="$all_stagestuff $stagestuff"
8212 all_outputs
="$all_outputs $outputs"
8213 all_gtfiles
="$all_gtfiles $gtfiles"
8214 for f
in ..
$gtfiles
8218 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
8219 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
8225 # Pick up gtfiles for c
8228 .
${srcdir}/c-config-lang.
in
8229 all_gtfiles
="$all_gtfiles $gtfiles"
8230 for f
in ..
$gtfiles
8234 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
8235 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
8240 for language
in ..
$all_languages
8242 if test $language != ".."
8244 check_languages
="$check_languages check-$language"
8248 # Since we can't use `::' targets, we link each language in
8249 # with a set of hooks, reached indirectly via lang.${target}.
8253 target_list
="all.build all.cross start.encap rest.encap \
8254 info dvi generated-manpages \
8255 install-normal install-common install-info install-man \
8257 mostlyclean clean distclean extraclean maintainer-clean \
8258 stage1 stage2 stage3 stage4"
8259 for t
in $target_list
8262 for lang
in ..
$all_languages
8264 if test $lang != ".."; then
8268 echo "lang.$t: $x" >> Make-hooks
8273 echo "dir ." > .gdbinit
8274 echo "dir ${srcdir}" >> .gdbinit
8275 if test x
$gdb_needs_out_file_path = xyes
8277 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8279 if test "x$subdirs" != x
; then
8282 echo "dir ${srcdir}/$s" >> .gdbinit
8285 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8287 # Define variables host_canonical and build_canonical
8288 # because some Cygnus local changes in the Makefile depend on them.
8289 build_canonical
=${build}
8290 host_canonical
=${host}
8292 if test "${host}" != "${target}" ; then
8293 target_subdir
=${target_alias}/
8299 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8300 # absolute path for gcc_tooldir based on inserting the number of up-directory
8301 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8302 # $(libsubdir)/@(unlibsubdir) based path.
8303 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8304 # make and thus we'd get different behavior depending on where we built the
8306 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8307 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8309 # An explanation of the sed strings:
8310 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8311 # -e 's|/$||' match a trailing forward slash and eliminates it
8312 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8313 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8315 # (*) Note this pattern overwrites the first character of the string
8316 # with a forward slash if one is not already present. This is not a
8317 # problem because the exact names of the sub-directories concerned is
8318 # unimportant, just the number of them matters.
8320 # The practical upshot of these patterns is like this:
8322 # prefix exec_prefix result
8323 # ------ ----------- ------
8325 # /foo/ /foo/bar ../
8326 # /foo /foo/bar/ ../
8327 # /foo/ /foo/bar/ ../
8328 # /foo /foo/bar/ugg ../../
8331 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8336 # Find a directory in which to install a shared libgcc.
8338 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8339 if test "${enable_version_specific_runtime_libs+set}" = set; then
8340 enableval
="$enable_version_specific_runtime_libs"
8345 # Check whether --with-slibdir or --without-slibdir was given.
8346 if test "${with_slibdir+set}" = set; then
8347 withval
="$with_slibdir"
8348 slibdir
="$with_slibdir"
8350 if test "${enable_version_specific_runtime_libs+set}" = set; then
8351 slibdir
='$(libsubdir)'
8352 elif test "$host" != "$target"; then
8353 slibdir
='$(build_tooldir)/lib'
8361 # Nothing to do for FLOAT_H, float_format already handled.
8362 objdir
=`${PWDCMD-pwd}`
8365 # Process the language and host/target makefile fragments.
8366 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8368 # Substitute configuration variables
8437 # Echo that links are built
8438 if test x
$host = x
$target
8446 if test x
$host != x
$build
8448 str3
=" on a $build system"
8451 if test "x$str2" != x ||
test "x$str3" != x
8456 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8458 if test "x$str2" != x ||
test "x$str3" != x
8460 echo " ${str2}${str3}." 1>&2
8463 # Truncate the target if necessary
8464 if test x
$host_truncate_target != x
; then
8465 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8468 # Configure the subdirectories
8469 # AC_CONFIG_SUBDIRS($subdirs)
8471 # Create the Makefile
8472 # and configure language subdirectories
8474 cat > confcache
<<\EOF
8475 # This file is a shell script that caches the results of configure
8476 # tests run on this system so they can be shared between configure
8477 # scripts and configure runs. It is not useful on other systems.
8478 # If it contains results you don't want to keep, you may remove or edit it.
8480 # By default, configure uses ./config.cache as the cache file,
8481 # creating it if it does not exist already. You can give configure
8482 # the --cache-file=FILE option to use a different cache file; that is
8483 # what configure does when it calls configure scripts in
8484 # subdirectories, so they share the cache.
8485 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8486 # config.status only pays attention to the cache file if you give it the
8487 # --recheck option to rerun configure.
8490 # The following way of writing the cache mishandles newlines in values,
8491 # but we know of no workaround that is simple, portable, and efficient.
8492 # So, don't put newlines in cache variables' values.
8493 # Ultrix sh set writes to stderr and can't be redirected directly,
8494 # and sets the high bit in the cache file unless we assign to the vars.
8496 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8498 # `set' does not quote correctly, so add quotes (double-quote substitution
8499 # turns \\\\ into \\, and sed turns \\ into \).
8501 -e "s/'/'\\\\''/g" \
8502 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8505 # `set' quotes correctly as required by POSIX, so do not add quotes.
8506 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8509 if cmp -s $cache_file confcache
; then
8512 if test -w $cache_file; then
8513 echo "updating cache $cache_file"
8514 cat confcache
> $cache_file
8516 echo "not updating unwritable cache $cache_file"
8521 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8523 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8524 # Let make expand exec_prefix.
8525 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8527 # Any assignment to VPATH causes Sun make to only execute
8528 # the first set of double-colon rules, so remove it if not needed.
8529 # If there is a colon in the path, we need to keep it.
8530 if test "x$srcdir" = x.
; then
8531 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8534 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8536 DEFS
=-DHAVE_CONFIG_H
8538 # Without the "./", some shells look in PATH for config.status.
8539 : ${CONFIG_STATUS=./config.status}
8541 echo creating
$CONFIG_STATUS
8542 rm -f $CONFIG_STATUS
8543 cat > $CONFIG_STATUS <<EOF
8545 # Generated automatically by configure.
8546 # Run this file to recreate the current configuration.
8547 # This directory was configured as follows,
8548 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8550 # $0 $ac_configure_args
8552 # Compiler output produced by configure, useful for debugging
8553 # configure, is in ./config.log if it exists.
8555 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8558 case "\$ac_option" in
8559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8560 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8561 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8562 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8563 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8565 -help | --help | --hel | --he | --h)
8566 echo "\$ac_cs_usage"; exit 0 ;;
8567 *) echo "\$ac_cs_usage"; exit 1 ;;
8571 ac_given_srcdir=$srcdir
8573 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8575 cat >> $CONFIG_STATUS <<EOF
8577 # Protect against being on the right side of a sed subst in config.status.
8578 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8579 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8583 s%@CFLAGS@%$CFLAGS%g
8584 s%@CPPFLAGS@%$CPPFLAGS%g
8585 s%@CXXFLAGS@%$CXXFLAGS%g
8586 s%@FFLAGS@%$FFLAGS%g
8588 s%@LDFLAGS@%$LDFLAGS%g
8590 s%@exec_prefix@%$exec_prefix%g
8591 s%@prefix@%$prefix%g
8592 s%@program_transform_name@%$program_transform_name%g
8593 s%@bindir@%$bindir%g
8594 s%@sbindir@%$sbindir%g
8595 s%@libexecdir@%$libexecdir%g
8596 s%@datadir@%$datadir%g
8597 s%@sysconfdir@%$sysconfdir%g
8598 s%@sharedstatedir@%$sharedstatedir%g
8599 s%@localstatedir@%$localstatedir%g
8600 s%@libdir@%$libdir%g
8601 s%@includedir@%$includedir%g
8602 s%@oldincludedir@%$oldincludedir%g
8603 s%@infodir@%$infodir%g
8604 s%@mandir@%$mandir%g
8605 s%@enable_multilib@%$enable_multilib%g
8606 s%@enable_shared@%$enable_shared%g
8608 s%@host_alias@%$host_alias%g
8609 s%@host_cpu@%$host_cpu%g
8610 s%@host_vendor@%$host_vendor%g
8611 s%@host_os@%$host_os%g
8612 s%@target@%$target%g
8613 s%@target_alias@%$target_alias%g
8614 s%@target_cpu@%$target_cpu%g
8615 s%@target_vendor@%$target_vendor%g
8616 s%@target_os@%$target_os%g
8618 s%@build_alias@%$build_alias%g
8619 s%@build_cpu@%$build_cpu%g
8620 s%@build_vendor@%$build_vendor%g
8621 s%@build_os@%$build_os%g
8623 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8624 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8625 s%@GNATBIND@%$GNATBIND%g
8627 s%@strict1_warn@%$strict1_warn%g
8629 s%@warn_cflags@%$warn_cflags%g
8630 s%@stage1_cflags@%$stage1_cflags%g
8631 s%@SET_MAKE@%$SET_MAKE%g
8635 s%@RANLIB@%$RANLIB%g
8636 s%@INSTALL@%$INSTALL%g
8637 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8638 s%@INSTALL_DATA@%$INSTALL_DATA%g
8639 s%@have_mktemp_command@%$have_mktemp_command%g
8640 s%@MAKEINFO@%$MAKEINFO%g
8641 s%@BUILD_INFO@%$BUILD_INFO%g
8642 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8645 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8646 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8647 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8648 s%@LIBICONV@%$LIBICONV%g
8649 s%@manext@%$manext%g
8650 s%@objext@%$objext%g
8651 s%@extra_modes_file@%$extra_modes_file%g
8652 s%@FORBUILD@%$FORBUILD%g
8653 s%@PACKAGE@%$PACKAGE%g
8654 s%@VERSION@%$VERSION%g
8655 s%@ALLOCA@%$ALLOCA%g
8656 s%@GLIBC21@%$GLIBC21%g
8657 s%@USE_NLS@%$USE_NLS%g
8658 s%@MSGFMT@%$MSGFMT%g
8659 s%@GMSGFMT@%$GMSGFMT%g
8660 s%@XGETTEXT@%$XGETTEXT%g
8661 s%@INTLBISON@%$INTLBISON%g
8662 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8663 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8664 s%@CATALOGS@%$CATALOGS%g
8665 s%@CATOBJEXT@%$CATOBJEXT%g
8666 s%@INTLLIBS@%$INTLLIBS%g
8667 s%@INTLDEPS@%$INTLDEPS%g
8668 s%@INTLOBJS@%$INTLOBJS%g
8670 s%@DATADIRNAME@%$DATADIRNAME%g
8671 s%@INSTOBJEXT@%$INSTOBJEXT%g
8672 s%@GENCAT@%$GENCAT%g
8673 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8674 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8677 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8678 s%@inhibit_libc@%$inhibit_libc%g
8679 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
8680 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
8681 s%@HOST_CC@%$HOST_CC%g
8682 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8683 s%@STMP_FIXINC@%$STMP_FIXINC%g
8684 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8685 s%@libgcc_visibility@%$libgcc_visibility%g
8686 s%@gthread_flags@%$gthread_flags%g
8688 s%@zlibdir@%$zlibdir%g
8689 s%@zlibinc@%$zlibinc%g
8691 s%@build_canonical@%$build_canonical%g
8692 s%@host_canonical@%$host_canonical%g
8693 s%@target_subdir@%$target_subdir%g
8694 s%@gcc_tooldir@%$gcc_tooldir%g
8695 s%@dollar@%$dollar%g
8696 s%@slibdir@%$slibdir%g
8697 s%@objdir@%$objdir%g
8698 s%@subdirs@%$subdirs%g
8699 s%@srcdir@%$srcdir%g
8700 s%@all_boot_languages@%$all_boot_languages%g
8701 s%@all_compilers@%$all_compilers%g
8702 s%@all_gtfiles@%$all_gtfiles%g
8703 s%@all_gtfiles_files_langs@%$all_gtfiles_files_langs%g
8704 s%@all_gtfiles_files_files@%$all_gtfiles_files_files%g
8705 s%@all_lang_makefiles@%$all_lang_makefiles%g
8706 s%@all_languages@%$all_languages%g
8707 s%@all_stagestuff@%$all_stagestuff%g
8708 s%@build_exeext@%$build_exeext%g
8709 s%@build_install_headers_dir@%$build_install_headers_dir%g
8710 s%@build_xm_file_list@%$build_xm_file_list%g
8711 s%@build_xm_file@%$build_xm_file%g
8712 s%@build_xm_defines@%$build_xm_defines%g
8713 s%@check_languages@%$check_languages%g
8714 s%@cc_set_by_configure@%$cc_set_by_configure%g
8715 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8716 s%@cpp_install_dir@%$cpp_install_dir%g
8717 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8718 s%@dep_tmake_file@%$dep_tmake_file%g
8719 s%@extra_headers_list@%$extra_headers_list%g
8720 s%@extra_objs@%$extra_objs%g
8721 s%@extra_parts@%$extra_parts%g
8722 s%@extra_passes@%$extra_passes%g
8723 s%@extra_programs@%$extra_programs%g
8724 s%@float_h_file@%$float_h_file%g
8725 s%@gcc_config_arguments@%$gcc_config_arguments%g
8726 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8727 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8728 s%@gcc_version@%$gcc_version%g
8729 s%@gcc_version_full@%$gcc_version_full%g
8730 s%@gcc_version_trigger@%$gcc_version_trigger%g
8731 s%@host_exeext@%$host_exeext%g
8732 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8733 s%@host_xm_file_list@%$host_xm_file_list%g
8734 s%@host_xm_file@%$host_xm_file%g
8735 s%@host_xm_defines@%$host_xm_defines%g
8736 s%@install@%$install%g
8737 s%@lang_options_files@%$lang_options_files%g
8738 s%@lang_specs_files@%$lang_specs_files%g
8739 s%@lang_tree_files@%$lang_tree_files%g
8740 s%@local_prefix@%$local_prefix%g
8741 s%@md_file@%$md_file%g
8742 s%@objc_boehm_gc@%$objc_boehm_gc%g
8743 s%@out_file@%$out_file%g
8744 s%@out_object_file@%$out_object_file%g
8745 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8746 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8747 s%@symbolic_link@%$symbolic_link%g
8748 s%@thread_file@%$thread_file%g
8749 s%@tm_file_list@%$tm_file_list%g
8750 s%@tm_file@%$tm_file%g
8751 s%@tm_defines@%$tm_defines%g
8752 s%@tm_p_file_list@%$tm_p_file_list%g
8753 s%@tm_p_file@%$tm_p_file%g
8754 s%@xm_file@%$xm_file%g
8755 s%@xm_defines@%$xm_defines%g
8756 s%@c_target_objs@%$c_target_objs%g
8757 s%@cxx_target_objs@%$cxx_target_objs%g
8758 s%@target_cpu_default@%$target_cpu_default%g
8759 /@target_overrides@/r $target_overrides
8760 s%@target_overrides@%%g
8761 /@host_overrides@/r $host_overrides
8762 s%@host_overrides@%%g
8763 /@language_fragments@/r $language_fragments
8764 s%@language_fragments@%%g
8765 /@language_hooks@/r $language_hooks
8766 s%@language_hooks@%%g
8771 cat >> $CONFIG_STATUS <<\EOF
8773 # Split the substitutions into bite-sized pieces for seds with
8774 # small command number limits, like on Digital OSF/1 and HP-UX.
8775 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8776 ac_file
=1 # Number of current file.
8777 ac_beg
=1 # First line for current file.
8778 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8781 while $ac_more_lines; do
8782 if test $ac_beg -gt 1; then
8783 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8785 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8787 if test ! -s conftest.s
$ac_file; then
8789 rm -f conftest.s
$ac_file
8791 if test -z "$ac_sed_cmds"; then
8792 ac_sed_cmds
="sed -f conftest.s$ac_file"
8794 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8796 ac_file
=`expr $ac_file + 1`
8798 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8801 if test -z "$ac_sed_cmds"; then
8806 cat >> $CONFIG_STATUS <<EOF
8808 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8810 cat >> $CONFIG_STATUS <<\EOF
8811 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8814 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8815 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8816 *) ac_file_in
="${ac_file}.in" ;;
8819 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8821 # Remove last slash and all that follows it. Not all systems have dirname.
8822 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8823 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8824 # The file is in a subdirectory.
8825 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8826 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8827 # A "../" for each directory in $ac_dir_suffix.
8828 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8830 ac_dir_suffix
= ac_dots
=
8833 case "$ac_given_srcdir" in
8835 if test -z "$ac_dots"; then top_srcdir
=.
8836 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8837 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8839 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8840 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8844 echo creating
"$ac_file"
8846 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8848 *Makefile
*) ac_comsub
="1i\\
8849 # $configure_input" ;;
8853 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8855 s%@configure_input@%$configure_input%g
8856 s%@srcdir@%$srcdir%g
8857 s%@top_srcdir@%$top_srcdir%g
8858 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8862 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8863 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8865 # ac_d sets the value in "#define NAME VALUE" lines.
8866 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8867 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8870 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8871 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8872 ac_uB
='\([ ]\)%\1#\2define\3'
8875 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8876 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8877 ac_eB
='$%\1#\2define\3'
8881 if test "${CONFIG_HEADERS+set}" != set; then
8883 cat >> $CONFIG_STATUS <<EOF
8884 CONFIG_HEADERS="auto-host.h:config.in"
8886 cat >> $CONFIG_STATUS <<\EOF
8888 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8891 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8892 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8893 *) ac_file_in
="${ac_file}.in" ;;
8896 echo creating
$ac_file
8898 rm -f conftest.frag conftest.
in conftest.out
8899 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8900 cat $ac_file_inputs > conftest.
in
8904 # Transform confdefs.h into a sed script conftest.vals that substitutes
8905 # the proper values into config.h.in to produce config.h. And first:
8906 # Protect against being on the right side of a sed subst in config.status.
8907 # Protect against being in an unquoted here document in config.status.
8909 cat > conftest.hdr
<<\EOF
8912 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8916 sed -n -f conftest.hdr confdefs.h > conftest.vals
8919 # This sed command replaces #undef with comments. This is necessary, for
8920 # example, in the case of _POSIX_SOURCE, which is predefined and required
8921 # on some systems where configure will not decide to define it.
8922 cat >> conftest.vals <<\EOF
8923 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8926 # Break up conftest.vals because some shells have a limit on
8927 # the size of here documents, and old seds have small limits too.
8932 ac_lines=`grep -c . conftest.vals
`
8933 # grep -c gives empty output for an empty file on some AIX systems.
8934 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8935 # Write a limited-size here document to conftest.frag.
8936 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8937 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8939 sed -f conftest.frag conftest.in > conftest.out
8941 mv conftest.out conftest.in
8943 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8945 mv conftest.tail conftest.vals
8949 cat >> $CONFIG_STATUS <<\EOF
8950 rm -f conftest.frag conftest.h
8951 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8952 cat conftest.in >> conftest.h
8954 if cmp -s $ac_file conftest.h 2>/dev/null; then
8955 echo "$ac_file is unchanged"
8958 # Remove last slash and all that follows it. Not all systems have dirname.
8959 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8960 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8961 # The file is in a subdirectory.
8962 test ! -d "$ac_dir" && mkdir "$ac_dir"
8965 mv conftest.h $ac_file
8970 cat >> $CONFIG_STATUS <<EOF
8973 symbolic_link='$symbolic_link'
8976 cat >> $CONFIG_STATUS <<\EOF
8977 for ac_file in $CONFIG_FILES; do
8978 # Support "outfile[:infile[:infile...]]"
8980 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8982 # PO directories have a Makefile.in generated from Makefile.in.in.
8983 case "$ac_file" in */Makefile.in)
8984 # Adjust a relative srcdir.
8985 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8986 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8987 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8988 # In autoconf-2.13 it is called $ac_given_srcdir.
8989 # In autoconf-2.50 it is called $srcdir.
8990 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8991 case "$ac_given_srcdir" in
8992 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8993 /*) top_srcdir="$ac_given_srcdir" ;;
8994 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8996 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8997 rm -f "$ac_dir/POTFILES"
8998 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8999 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9000 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9001 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9007 case x$CONFIG_HEADERS in
9008 xauto-host.h:config.in)
9011 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9012 # bootstrapping and the installation procedure can still use
9013 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9014 # FLAGS_TO_PASS has been modified to solve the problem there.
9015 # This is virtually a duplicate of what happens in configure.lang; we do
9016 # an extra check to make sure this only happens if ln -s can be used.
9017 if test "$symbolic_link" = "ln -s"; then
9018 for d in .. ${subdirs} fixinc ; do
9019 if test $d != ..; then
9020 STARTDIR=`${PWDCMD-pwd}`
9022 for t in stage1 stage2 stage3 stage4 include
9025 $symbolic_link ../$t $t 2>/dev/null
9031 # Avoid having to add intl to our include paths.
9032 if test -f intl/libintl.h; then
9033 echo creating libintl.h
9034 echo '#include "intl/libintl.h"' >libintl.h
9039 chmod +x $CONFIG_STATUS
9040 rm -fr confdefs* $ac_clean_files
9041 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1