3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files"
32 --enable-multilib enable library support for multiple ABIs"
34 --enable-checking[=LIST]
35 enable expensive run-time checks. With LIST,
36 enable only specific categories of checks.
37 Categories are: misc,tree,rtl,gc,gcac; default
40 --disable-cpp don't provide a user-visible C preprocessor"
42 --with-cpp-install-dir=DIR
43 install the user visible C preprocessor in DIR
44 (relative to PREFIX) as well as PREFIX/bin"
46 --enable-c-mbchar enable multibyte characters for C and C++"
48 --enable-threads enable thread usage for target GCC
49 --enable-threads=LIB use LIB thread package for target GCC"
51 --enable-objc-gc enable the use of Boehm's garbage collector with
52 the GNU Objective-C runtime"
54 --with-dwarf2 force the default debug format to be DWARF 2"
56 --disable-shared don't provide a shared libgcc"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --enable-nls use Native Language Support (default)"
62 --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-version-specific-runtime-libs
89 specify that runtime libraries should be
90 installed in a compiler-specific directory"
92 --with-slibdir=DIR shared libraries in DIR [LIBDIR]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=tree.c
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
607 symbolic_link
='ln -s'
610 # Check for bogus environment variables.
611 # Test if LIBRARY_PATH contains the notation for the current directory
612 # since this would lead to problems installing/building glibc.
613 # LIBRARY_PATH contains the current directory if one of the following
615 # - one of the terminals (":" and ";") is the first or last sign
616 # - two terminals occur directly after each other
617 # - the path contains an element with a dot in it
618 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
619 echo "configure:620: checking LIBRARY_PATH variable" >&5
620 case ${LIBRARY_PATH} in
621 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
622 library_path_setting
="contains current directory"
625 library_path_setting
="ok"
628 echo "$ac_t""$library_path_setting" 1>&6
629 if test "$library_path_setting" != "ok"; then
630 { echo "configure: error:
631 *** LIBRARY_PATH shouldn't contain the current directory when
632 *** building gcc. Please change the environment variable
633 *** and run configure again." 1>&2; exit 1; }
636 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
637 # since this would lead to problems installing/building glibc.
638 # GCC_EXEC_PREFIX contains the current directory if one of the following
640 # - one of the terminals (":" and ";") is the first or last sign
641 # - two terminals occur directly after each other
642 # - the path contains an element with a dot in it
643 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
644 echo "configure:645: checking GCC_EXEC_PREFIX variable" >&5
645 case ${GCC_EXEC_PREFIX} in
646 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
647 gcc_exec_prefix_setting
="contains current directory"
650 gcc_exec_prefix_setting
="ok"
653 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
654 if test "$gcc_exec_prefix_setting" != "ok"; then
655 { echo "configure: error:
656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
657 *** building gcc. Please change the environment variable
658 *** and run configure again." 1>&2; exit 1; }
661 # Check for additional parameters
664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
665 if test "${with_gnu_ld+set}" = set; then
666 withval
="$with_gnu_ld"
667 gnu_ld_flag
="$with_gnu_ld"
673 # With pre-defined ld
674 # Check whether --with-ld or --without-ld was given.
675 if test "${with_ld+set}" = set; then
677 DEFAULT_LINKER
="$with_ld"
680 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
681 if test ! -x "$DEFAULT_LINKER"; then
682 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
683 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
686 cat >> confdefs.h
<<EOF
687 #define DEFAULT_LINKER "$DEFAULT_LINKER"
693 # Check whether --with-gnu-as or --without-gnu-as was given.
694 if test "${with_gnu_as+set}" = set; then
695 withval
="$with_gnu_as"
696 gas_flag
="$with_gnu_as"
702 # Check whether --with-as or --without-as was given.
703 if test "${with_as+set}" = set; then
705 DEFAULT_ASSEMBLER
="$with_as"
708 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
709 if test ! -x "$DEFAULT_ASSEMBLER"; then
710 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
711 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
714 cat >> confdefs.h
<<EOF
715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
721 # Check whether --with-stabs or --without-stabs was given.
722 if test "${with_stabs+set}" = set; then
723 withval
="$with_stabs"
731 # Check whether --with-elf or --without-elf was given.
732 if test "${with_elf+set}" = set; then
740 # Specify the local prefix
742 # Check whether --with-local-prefix or --without-local-prefix was given.
743 if test "${with_local_prefix+set}" = set; then
744 withval
="$with_local_prefix"
746 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
748 *) local_prefix
=$with_local_prefix ;;
753 # Default local prefix if it is empty
754 if test x
$local_prefix = x
; then
755 local_prefix
=/usr
/local
758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
759 # passed in by the toplevel make and thus we'd get different behavior
760 # depending on where we built the sources.
762 # Specify the g++ header file directory
763 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
764 if test "${with_gxx_include_dir+set}" = set; then
765 withval
="$with_gxx_include_dir"
767 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
769 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
774 if test x
${gcc_gxx_include_dir} = x
; then
775 if test x
${enable_version_specific_runtime_libs} = xyes
; then
776 gcc_gxx_include_dir
='${libsubdir}/include/g++'
778 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
779 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
783 # Determine whether or not multilibs are enabled.
784 # Check whether --enable-multilib or --disable-multilib was given.
785 if test "${enable_multilib+set}" = set; then
786 enableval
="$enable_multilib"
794 # Enable expensive internal checks
795 # Check whether --enable-checking or --disable-checking was given.
796 if test "${enable_checking+set}" = set; then
797 enableval
="$enable_checking"
802 ac_gc_always_collect
=
803 case "${enableval}" in
804 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
806 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
807 set fnord
$enableval; shift
812 misc
) ac_checking
=1 ;;
813 tree
) ac_tree_checking
=1 ;;
814 rtl
) ac_rtl_checking
=1 ;;
815 gc
) ac_gc_checking
=1 ;;
816 gcac
) ac_gc_always_collect
=1 ;;
817 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
824 # Enable some checks by default for development versions of GCC
825 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
828 if test x
$ac_checking != x
; then
829 cat >> confdefs.h
<<\EOF
830 #define ENABLE_CHECKING 1
834 if test x
$ac_tree_checking != x
; then
835 cat >> confdefs.h
<<\EOF
836 #define ENABLE_TREE_CHECKING 1
840 if test x
$ac_rtl_checking != x
; then
841 cat >> confdefs.h
<<\EOF
842 #define ENABLE_RTL_CHECKING 1
846 if test x
$ac_gc_checking != x
; then
847 cat >> confdefs.h
<<\EOF
848 #define ENABLE_GC_CHECKING 1
852 if test x
$ac_gc_always_collect != x
; then
853 cat >> confdefs.h
<<\EOF
854 #define ENABLE_GC_ALWAYS_COLLECT 1
860 # Check whether --enable-cpp or --disable-cpp was given.
861 if test "${enable_cpp+set}" = set; then
862 enableval
="$enable_cpp"
869 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
870 if test "${with_cpp_install_dir+set}" = set; then
871 withval
="$with_cpp_install_dir"
872 if test x
$withval = xyes
; then
873 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
874 elif test x
$withval != xno
; then
875 cpp_install_dir
=$withval
880 # Enable Multibyte Characters for C/C++
881 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
882 if test "${enable_c_mbchar+set}" = set; then
883 enableval
="$enable_c_mbchar"
884 if test x
$enable_c_mbchar != xno
; then
885 cat >> confdefs.h
<<\EOF
886 #define MULTIBYTE_CHARS 1
894 # Pass with no value to take the default
895 # Pass with a value to specify a thread package
896 # Check whether --enable-threads or --disable-threads was given.
897 if test "${enable_threads+set}" = set; then
898 enableval
="$enable_threads"
905 enable_threads_flag
=$enable_threads
906 # Check if a valid thread package
907 case x
${enable_threads_flag} in
910 target_thread_file
='single'
914 target_thread_file
=''
916 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
917 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix
)
918 target_thread_file
=$enable_threads_flag
921 echo "$enable_threads is an unknown thread package" 1>&2
926 # Check whether --enable-objc-gc or --disable-objc-gc was given.
927 if test "${enable_objc_gc+set}" = set; then
928 enableval
="$enable_objc_gc"
929 if test x
$enable_objc_gc = xno
; then
939 # Check whether --with-dwarf2 or --without-dwarf2 was given.
940 if test "${with_dwarf2+set}" = set; then
941 withval
="$with_dwarf2"
942 dwarf2
="$with_dwarf2"
948 # Check whether --enable-shared or --disable-shared was given.
949 if test "${enable_shared+set}" = set; then
950 enableval
="$enable_shared"
952 case $enable_shared in
956 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
957 for pkg
in $enableval; do
958 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
972 # Determine the host, build, and target systems
974 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
975 if test -f $ac_dir/install-sh
; then
977 ac_install_sh
="$ac_aux_dir/install-sh -c"
979 elif test -f $ac_dir/install.sh
; then
981 ac_install_sh
="$ac_aux_dir/install.sh -c"
985 if test -z "$ac_aux_dir"; then
986 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988 ac_config_guess
=$ac_aux_dir/config.guess
989 ac_config_sub
=$ac_aux_dir/config.sub
990 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
993 # Do some error checking and defaulting for the host and target type.
995 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 # 2. Host defaults to nonopt.
1001 # 3. If nonopt is not specified, then host defaults to the current host,
1002 # as determined by config.guess.
1003 # 4. Target and build default to nonopt.
1004 # 5. If nonopt is not specified, then target and build default to host.
1006 # The aliases save the names the user supplied, while $host etc.
1007 # will get canonicalized.
1008 case $host---$target---$nonopt in
1009 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1010 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1014 # Make sure we can run config.sub.
1015 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1016 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019 echo $ac_n "checking host system type""... $ac_c" 1>&6
1020 echo "configure:1021: checking host system type" >&5
1023 case "$host_alias" in
1027 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1028 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 *) host_alias
=$nonopt ;;
1034 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1035 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1036 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1037 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 echo "$ac_t""$host" 1>&6
1040 echo $ac_n "checking target system type""... $ac_c" 1>&6
1041 echo "configure:1042: checking target system type" >&5
1043 target_alias
=$target
1044 case "$target_alias" in
1047 NONE
) target_alias
=$host_alias ;;
1048 *) target_alias
=$nonopt ;;
1052 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1053 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1054 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1055 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$ac_t""$target" 1>&6
1058 echo $ac_n "checking build system type""... $ac_c" 1>&6
1059 echo "configure:1060: checking build system type" >&5
1062 case "$build_alias" in
1065 NONE
) build_alias
=$host_alias ;;
1066 *) build_alias
=$nonopt ;;
1070 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1071 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1072 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1073 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1074 echo "$ac_t""$build" 1>&6
1076 test "$host_alias" != "$target_alias" &&
1077 test "$program_prefix$program_suffix$program_transform_name" = \
1079 program_prefix
=${target_alias}-
1082 # Set program_transform_name
1083 if test "$program_transform_name" = s
,x
,x
,; then
1084 program_transform_name
=
1086 # Double any \ or $. echo might interpret backslashes.
1087 cat <<\EOF_SED
> conftestsed
1088 s
,\\,\\\\,g
; s
,\$
,$$
,g
1090 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1093 test "$program_prefix" != NONE
&&
1094 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1095 # Use a double $ so make ignores it.
1096 test "$program_suffix" != NONE
&&
1097 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1099 # sed with no file args requires a program.
1100 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1103 # Find the native compiler
1104 # Extract the first word of "gcc", so it can be a program name with args.
1105 set dummy gcc
; ac_word
=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$CC"; then
1112 ac_cv_prog_CC
="$CC" # Let the user override the test.
1114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1116 for ac_dir
in $ac_dummy; do
1117 test -z "$ac_dir" && ac_dir
=.
1118 if test -f $ac_dir/$ac_word; then
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 if test -z "$CC"; then
1134 # Extract the first word of "cc", so it can be a program name with args.
1135 set dummy cc
; ac_word
=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 if test -n "$CC"; then
1142 ac_cv_prog_CC
="$CC" # Let the user override the test.
1144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1147 for ac_dir
in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir
=.
1149 if test -f $ac_dir/$ac_word; then
1150 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1151 ac_prog_rejected
=yes
1159 if test $ac_prog_rejected = yes; then
1160 # We found a bogon in the path, so make sure we never use it.
1161 set dummy
$ac_cv_prog_CC
1163 if test $# -gt 0; then
1164 # We chose a different compiler from the bogus one.
1165 # However, it has the same basename, so the bogon will be chosen
1166 # first if we set CC to just the basename; use the full file name.
1168 set dummy
"$ac_dir/$ac_word" "$@"
1176 if test -n "$CC"; then
1177 echo "$ac_t""$CC" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 if test -z "$CC"; then
1183 case "`uname -s`" in
1185 # Extract the first word of "cl", so it can be a program name with args.
1186 set dummy cl
; ac_word
=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$CC"; then
1193 ac_cv_prog_CC
="$CC" # Let the user override the test.
1195 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1197 for ac_dir
in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir
=.
1199 if test -f $ac_dir/$ac_word; then
1208 if test -n "$CC"; then
1209 echo "$ac_t""$CC" 1>&6
1211 echo "$ac_t""no" 1>&6
1216 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1219 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1224 ac_cpp
='$CPP $CPPFLAGS'
1225 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1226 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1227 cross_compiling
=$ac_cv_prog_cc_cross
1229 cat > conftest.
$ac_ext << EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1236 if { (eval echo configure
:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1237 ac_cv_prog_cc_works
=yes
1238 # If we can't run a trivial program, we are probably using a cross compiler.
1239 if (.
/conftest
; exit) 2>/dev
/null
; then
1240 ac_cv_prog_cc_cross
=no
1242 ac_cv_prog_cc_cross
=yes
1245 echo "configure: failed program was:" >&5
1246 cat conftest.
$ac_ext >&5
1247 ac_cv_prog_cc_works
=no
1251 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1252 ac_cpp
='$CPP $CPPFLAGS'
1253 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1254 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1255 cross_compiling
=$ac_cv_prog_cc_cross
1257 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1258 if test $ac_cv_prog_cc_works = no
; then
1259 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1261 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1262 echo "configure:1263: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1263 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1264 cross_compiling
=$ac_cv_prog_cc_cross
1266 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1267 echo "configure:1268: checking whether we are using GNU C" >&5
1268 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1269 echo $ac_n "(cached) $ac_c" 1>&6
1271 cat > conftest.c
<<EOF
1276 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1283 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1285 if test $ac_cv_prog_gcc = yes; then
1291 ac_test_CFLAGS
="${CFLAGS+set}"
1292 ac_save_CFLAGS
="$CFLAGS"
1294 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1295 echo "configure:1296: checking whether ${CC-cc} accepts -g" >&5
1296 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 echo 'void f(){}' > conftest.c
1300 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1309 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1310 if test "$ac_test_CFLAGS" = set; then
1311 CFLAGS
="$ac_save_CFLAGS"
1312 elif test $ac_cv_prog_cc_g = yes; then
1313 if test "$GCC" = yes; then
1319 if test "$GCC" = yes; then
1326 if test "x$CC" != xcc
; then
1327 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether $CC and cc understand -c and -o together" >&5
1330 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1331 echo "configure:1332: checking whether cc understands -c and -o together" >&5
1333 set dummy
$CC; ac_cc
="`echo $2 |
1334 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1335 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 echo 'foo(){}' > conftest.c
1339 # Make sure it works both with $CC and with simple cc.
1340 # We do the test twice because some compilers refuse to overwrite an
1341 # existing .o file with -o, though they will create one.
1342 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1343 if { (eval echo configure
:1344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1344 test -f conftest.o
&& { (eval echo configure
:1345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1346 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1347 if test "x$CC" != xcc
; then
1348 # Test first that cc exists at all.
1349 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1350 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1351 if { (eval echo configure
:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1352 test -f conftest.o
&& { (eval echo configure
:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1357 # cc exists but doesn't like -o.
1358 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1363 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1368 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1371 echo "$ac_t""no" 1>&6
1372 cat >> confdefs.h
<<\EOF
1373 #define NO_MINUS_C_MINUS_O 1
1378 # autoconf is lame and doesn't give us any substitution variable for this.
1379 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1380 NO_MINUS_C_MINUS_O
=yes
1382 OUTPUT_OPTION
='-o $@'
1387 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1388 echo "configure:1389: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1389 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 save_CFLAGS
="$CFLAGS"
1393 CFLAGS
="-Wno-long-long"
1394 cat > conftest.
$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1402 if { (eval echo configure
:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1404 ac_cv_prog_cc_no_long_long
=yes
1406 echo "configure: failed program was:" >&5
1407 cat conftest.
$ac_ext >&5
1409 ac_cv_prog_cc_no_long_long
=no
1412 CFLAGS
="$save_CFLAGS"
1415 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1417 if test $ac_cv_prog_cc_no_long_long = yes; then
1418 strict1_warn
="-pedantic -Wno-long-long"
1422 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1423 echo "configure:1424: checking how to run the C preprocessor" >&5
1424 # On Suns, sometimes $CPP names a directory.
1425 if test -n "$CPP" && test -d "$CPP"; then
1428 if test -z "$CPP"; then
1429 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 # This must be in double quotes, not single quotes, because CPP may get
1433 # substituted into the Makefile and "${CC-cc}" will confuse make.
1435 # On the NeXT, cc -E runs the code through the compiler's parser,
1436 # not just through cpp.
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1443 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1444 { (eval echo configure
:1445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1445 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1446 if test -z "$ac_err"; then
1450 echo "configure: failed program was:" >&5
1451 cat conftest.
$ac_ext >&5
1453 CPP
="${CC-cc} -E -traditional-cpp"
1454 cat > conftest.
$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1460 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1461 { (eval echo configure
:1462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1462 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1463 if test -z "$ac_err"; then
1467 echo "configure: failed program was:" >&5
1468 cat conftest.
$ac_ext >&5
1470 CPP
="${CC-cc} -nologo -E"
1471 cat > conftest.
$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1477 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1478 { (eval echo configure
:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1479 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1480 if test -z "$ac_err"; then
1484 echo "configure: failed program was:" >&5
1485 cat conftest.
$ac_ext >&5
1494 ac_cv_prog_CPP
="$CPP"
1496 CPP
="$ac_cv_prog_CPP"
1498 ac_cv_prog_CPP
="$CPP"
1500 echo "$ac_t""$CPP" 1>&6
1502 echo $ac_n "checking for inline""... $ac_c" 1>&6
1503 echo "configure:1504: checking for inline" >&5
1504 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1508 for ac_kw
in inline __inline__ __inline
; do
1509 cat > conftest.
$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1517 if { (eval echo configure
:1518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519 ac_cv_c_inline
=$ac_kw; break
1521 echo "configure: failed program was:" >&5
1522 cat conftest.
$ac_ext >&5
1529 echo "$ac_t""$ac_cv_c_inline" 1>&6
1530 case "$ac_cv_c_inline" in
1532 no
) cat >> confdefs.h
<<\EOF
1536 *) cat >> confdefs.h
<<EOF
1537 #define inline $ac_cv_c_inline
1542 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1543 echo "configure:1544: checking for volatile" >&5
1544 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 cat > conftest.
$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1555 if { (eval echo configure
:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1557 gcc_cv_c_volatile
=yes
1559 echo "configure: failed program was:" >&5
1560 cat conftest.
$ac_ext >&5
1562 gcc_cv_c_volatile
=no
1567 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1568 if test $gcc_cv_c_volatile = yes ; then
1569 cat >> confdefs.h
<<\EOF
1570 #define HAVE_VOLATILE 1
1576 echo $ac_n "checking for long double""... $ac_c" 1>&6
1577 echo "configure:1578: checking for long double" >&5
1578 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 if test "$GCC" = yes; then
1582 gcc_cv_c_long_double
=yes
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1590 long double foo = 0.0;
1591 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1592 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1595 if { (eval echo configure
:1596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1597 gcc_cv_c_long_double
=yes
1599 echo "configure: failed program was:" >&5
1600 cat conftest.
$ac_ext >&5
1602 gcc_cv_c_long_double
=no
1608 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1609 if test $gcc_cv_c_long_double = yes; then
1610 cat >> confdefs.h
<<\EOF
1611 #define HAVE_LONG_DOUBLE 1
1616 echo $ac_n "checking for long long int""... $ac_c" 1>&6
1617 echo "configure:1618: checking for long long int" >&5
1618 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1621 cat > conftest.
$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1629 if { (eval echo configure
:1630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1631 ac_cv_c_long_long
=yes
1633 echo "configure: failed program was:" >&5
1634 cat conftest.
$ac_ext >&5
1636 ac_cv_c_long_long
=no
1641 echo "$ac_t""$ac_cv_c_long_long" 1>&6
1642 if test $ac_cv_c_long_long = yes; then
1643 cat >> confdefs.h
<<\EOF
1644 #define HAVE_LONG_LONG 1
1648 echo $ac_n "checking for __int64""... $ac_c" 1>&6
1649 echo "configure:1650: checking for __int64" >&5
1650 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 cat > conftest.
$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1661 if { (eval echo configure
:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 echo "configure: failed program was:" >&5
1666 cat conftest.
$ac_ext >&5
1673 echo "$ac_t""$ac_cv_c___int64" 1>&6
1674 if test $ac_cv_c___int64 = yes; then
1675 cat >> confdefs.h
<<\EOF
1676 #define HAVE___INT64 1
1681 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6
1682 echo "configure:1683: checking for built-in _Bool" >&5
1683 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.
$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1694 if { (eval echo configure
:1695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1698 echo "configure: failed program was:" >&5
1699 cat conftest.
$ac_ext >&5
1707 echo "$ac_t""$gcc_cv_c__bool" 1>&6
1708 if test $gcc_cv_c__bool = yes; then
1709 cat >> confdefs.h
<<\EOF
1710 #define HAVE__BOOL 1
1716 # sizeof(char) is 1 by definition.
1717 echo $ac_n "checking size of short""... $ac_c" 1>&6
1718 echo "configure:1719: checking size of short" >&5
1719 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include "confdefs.h"
1727 #include <sys/types.h>
1731 switch (0) case 0: case (sizeof (short) == $ac_size):;
1734 if { (eval echo configure
:1735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1736 ac_cv_sizeof_short
=$ac_size
1738 echo "configure: failed program was:" >&5
1739 cat conftest.
$ac_ext >&5
1742 if test x
$ac_cv_sizeof_short != x
; then break; fi
1747 if test x
$ac_cv_sizeof_short = x
; then
1748 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1750 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1751 cat >> confdefs.h
<<EOF
1752 #define SIZEOF_SHORT $ac_cv_sizeof_short
1756 echo $ac_n "checking size of int""... $ac_c" 1>&6
1757 echo "configure:1758: checking size of int" >&5
1758 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 #include "confdefs.h"
1766 #include <sys/types.h>
1770 switch (0) case 0: case (sizeof (int) == $ac_size):;
1773 if { (eval echo configure
:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1775 ac_cv_sizeof_int
=$ac_size
1777 echo "configure: failed program was:" >&5
1778 cat conftest.
$ac_ext >&5
1781 if test x
$ac_cv_sizeof_int != x
; then break; fi
1786 if test x
$ac_cv_sizeof_int = x
; then
1787 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1789 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1790 cat >> confdefs.h
<<EOF
1791 #define SIZEOF_INT $ac_cv_sizeof_int
1795 echo $ac_n "checking size of long""... $ac_c" 1>&6
1796 echo "configure:1797: checking size of long" >&5
1797 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1801 cat > conftest.
$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1804 #include "confdefs.h"
1805 #include <sys/types.h>
1809 switch (0) case 0: case (sizeof (long) == $ac_size):;
1812 if { (eval echo configure
:1813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1814 ac_cv_sizeof_long
=$ac_size
1816 echo "configure: failed program was:" >&5
1817 cat conftest.
$ac_ext >&5
1820 if test x
$ac_cv_sizeof_long != x
; then break; fi
1825 if test x
$ac_cv_sizeof_long = x
; then
1826 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1828 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1829 cat >> confdefs.h
<<EOF
1830 #define SIZEOF_LONG $ac_cv_sizeof_long
1834 if test $ac_cv_c_long_long = yes; then
1835 echo $ac_n "checking size of long long""... $ac_c" 1>&6
1836 echo "configure:1837: checking size of long long" >&5
1837 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 for ac_size
in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 #include "confdefs.h"
1845 #include <sys/types.h>
1849 switch (0) case 0: case (sizeof (long long) == $ac_size):;
1852 if { (eval echo configure
:1853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1854 ac_cv_sizeof_long_long
=$ac_size
1856 echo "configure: failed program was:" >&5
1857 cat conftest.
$ac_ext >&5
1860 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
1865 if test x
$ac_cv_sizeof_long_long = x
; then
1866 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
1868 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1869 cat >> confdefs.h
<<EOF
1870 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1875 if test $ac_cv_c___int64 = yes; then
1876 echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1877 echo "configure:1878: checking size of __int64" >&5
1878 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+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 (__int64) == $ac_size):;
1893 if { (eval echo configure
:1894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1895 ac_cv_sizeof___int64
=$ac_size
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1901 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
1906 if test x
$ac_cv_sizeof___int64 = x
; then
1907 { echo "configure: error: cannot determine a size for __int64" 1>&2; exit 1; }
1909 echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
1910 cat >> confdefs.h
<<EOF
1911 #define SIZEOF___INT64 $ac_cv_sizeof___int64
1917 echo $ac_n "checking execution character set""... $ac_c" 1>&6
1918 echo "configure:1919: checking execution character set" >&5
1919 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 cat > conftest.
$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1925 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
1926 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
1930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1931 egrep "ASCII" >/dev
/null
2>&1; then
1933 ac_cv_c_charset
=ASCII
1937 if test x
${ac_cv_c_charset+set} != xset
; then
1938 cat > conftest.
$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
1942 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
1946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1947 egrep "EBCDIC" >/dev
/null
2>&1; then
1949 ac_cv_c_charset
=EBCDIC
1954 if test x
${ac_cv_c_charset+set} != xset
; then
1955 ac_cv_c_charset
=unknown
1959 echo "$ac_t""$ac_cv_c_charset" 1>&6
1960 if test $ac_cv_c_charset = unknown
; then
1961 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
1962 elif test $ac_cv_c_charset = EBCDIC
; then
1963 cat >> confdefs.h
<<\EOF
1964 #define HOST_EBCDIC 1
1969 # If the native compiler is GCC, we can enable warnings even in stage1.
1970 # That's useful for people building cross-compilers, or just running a
1973 if test "x$GCC" = "xyes"; then
1974 warn_cflags
='$(GCC_WARN_CFLAGS)'
1978 # Stage specific cflags for build.
1982 if test x
$GCC = xyes
1984 stage1_cflags
="-Wa,-J"
1990 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
1991 # sources; use -no-cpp-precomp to get to GNU cpp.
1992 # Apple's GCC has bugs in designated initializer handling, so disable
1994 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
1999 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2000 echo "configure:2001: checking whether ${MAKE-make} sets \${MAKE}" >&5
2001 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2002 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftestmake
<<\EOF
2007 @
echo 'ac_maketemp="${MAKE}"'
2009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2010 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2011 if test -n "$ac_maketemp"; then
2012 eval ac_cv_prog_make_
${ac_make}_set
=yes
2014 eval ac_cv_prog_make_
${ac_make}_set
=no
2018 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2022 echo "$ac_t""no" 1>&6
2023 SET_MAKE
="MAKE=${MAKE-make}"
2027 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
2028 echo "configure:2029: checking whether a default assembler was specified" >&5
2029 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
2030 if test x
"$gas_flag" = x
"no"; then
2031 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
2033 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
2036 echo "$ac_t""no" 1>&6
2039 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
2040 echo "configure:2041: checking whether a default linker was specified" >&5
2041 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
2042 if test x
"$gnu_ld_flag" = x
"no"; then
2043 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
2045 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
2048 echo "$ac_t""no" 1>&6
2051 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
2052 echo "configure:2053: checking for GNU C library" >&5
2053 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 cat > conftest.
$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2059 #include <features.h>
2062 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2063 #error Not a GNU C library system
2067 if { (eval echo configure
:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071 echo "configure: failed program was:" >&5
2072 cat conftest.
$ac_ext >&5
2079 echo "$ac_t""$gcc_cv_glibc" 1>&6
2080 if test $gcc_cv_glibc = yes; then
2081 cat >> confdefs.h
<<\EOF
2082 #define _GNU_SOURCE 1
2087 # Find some useful tools
2088 for ac_prog
in mawk gawk nawk
awk
2090 # Extract the first word of "$ac_prog", so it can be a program name with args.
2091 set dummy
$ac_prog; ac_word
=$2
2092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2093 echo "configure:2094: checking for $ac_word" >&5
2094 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 if test -n "$AWK"; then
2098 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2100 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2102 for ac_dir
in $ac_dummy; do
2103 test -z "$ac_dir" && ac_dir
=.
2104 if test -f $ac_dir/$ac_word; then
2105 ac_cv_prog_AWK
="$ac_prog"
2112 AWK
="$ac_cv_prog_AWK"
2113 if test -n "$AWK"; then
2114 echo "$ac_t""$AWK" 1>&6
2116 echo "$ac_t""no" 1>&6
2119 test -n "$AWK" && break
2122 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2123 echo "configure:2124: checking whether ln works" >&5
2124 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 rm -f conftestdata_t
2128 echo >conftestdata_f
2129 if ln conftestdata_f conftestdata_t
2>/dev
/null
2133 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2135 gcc_cv_prog_LN
="ln -s"
2140 rm -f conftestdata_f conftestdata_t
2143 LN
="$gcc_cv_prog_LN"
2144 if test "$gcc_cv_prog_LN" = "ln"; then
2145 echo "$ac_t""yes" 1>&6
2147 if test "$gcc_cv_prog_LN" = "ln -s"; then
2148 echo "$ac_t""no, using ln -s" 1>&6
2150 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
2154 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether ln -s works" >&5
2156 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 rm -f conftestdata_t
2160 echo >conftestdata_f
2161 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
2163 gcc_cv_prog_LN_S
="ln -s"
2165 if ln conftestdata_f conftestdata_t
2>/dev
/null
2172 rm -f conftestdata_f conftestdata_t
2175 LN_S
="$gcc_cv_prog_LN_S"
2176 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
2177 echo "$ac_t""yes" 1>&6
2179 if test "$gcc_cv_prog_LN_S" = "ln"; then
2180 echo "$ac_t""no, using ln" 1>&6
2182 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
2186 # Extract the first word of "ranlib", so it can be a program name with args.
2187 set dummy ranlib
; ac_word
=$2
2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_word" >&5
2190 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 if test -n "$RANLIB"; then
2194 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2196 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2198 for ac_dir
in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir
=.
2200 if test -f $ac_dir/$ac_word; then
2201 ac_cv_prog_RANLIB
="ranlib"
2206 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2209 RANLIB
="$ac_cv_prog_RANLIB"
2210 if test -n "$RANLIB"; then
2211 echo "$ac_t""$RANLIB" 1>&6
2213 echo "$ac_t""no" 1>&6
2216 # Find a good install program. We prefer a C program (faster),
2217 # so one script is as good as another. But avoid the broken or
2218 # incompatible versions:
2219 # SysV /etc/install, /usr/sbin/install
2220 # SunOS /usr/etc/install
2221 # IRIX /sbin/install
2223 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2224 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2225 # ./install, which can be erroneously created by make from ./install.sh.
2226 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2227 echo "configure:2228: checking for a BSD compatible install" >&5
2228 if test -z "$INSTALL"; then
2229 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2233 for ac_dir
in $PATH; do
2234 # Account for people who put trailing slashes in PATH elements.
2236 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2238 # OSF1 and SCO ODT 3.0 have their own names for install.
2239 for ac_prog
in ginstall scoinst
install; do
2240 if test -f $ac_dir/$ac_prog; then
2241 if test $ac_prog = install &&
2242 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2243 # AIX install. It has an incompatible calling convention.
2244 # OSF/1 installbsd also uses dspmsg, but is usable.
2247 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2258 if test "${ac_cv_path_install+set}" = set; then
2259 INSTALL
="$ac_cv_path_install"
2261 # As a last resort, use the slow shell script. We don't cache a
2262 # path for INSTALL within a source directory, because that will
2263 # break other packages using the cache if that directory is
2264 # removed, or if the path is relative.
2265 INSTALL
="$ac_install_sh"
2268 echo "$ac_t""$INSTALL" 1>&6
2270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2271 # It thinks the first close brace ends the variable substitution.
2272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2274 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2277 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2278 echo "configure:2279: checking for ANSI C header files" >&5
2279 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.
$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2290 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2291 { (eval echo configure
:2292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2292 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2293 if test -z "$ac_err"; then
2295 ac_cv_header_stdc
=yes
2298 echo "configure: failed program was:" >&5
2299 cat conftest.
$ac_ext >&5
2301 ac_cv_header_stdc
=no
2305 if test $ac_cv_header_stdc = yes; then
2306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2307 cat > conftest.
$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2313 egrep "memchr" >/dev
/null
2>&1; then
2317 ac_cv_header_stdc
=no
2323 if test $ac_cv_header_stdc = yes; then
2324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2325 cat > conftest.
$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "free" >/dev
/null
2>&1; then
2335 ac_cv_header_stdc
=no
2341 if test $ac_cv_header_stdc = yes; then
2342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2343 if test "$cross_compiling" = yes; then
2346 cat > conftest.
$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2350 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2351 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2353 int main () { int i; for (i = 0; i < 256; i++)
2354 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2358 if { (eval echo configure
:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2362 echo "configure: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2365 ac_cv_header_stdc
=no
2373 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2374 if test $ac_cv_header_stdc = yes; then
2375 cat >> confdefs.h
<<\EOF
2376 #define STDC_HEADERS 1
2381 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2382 echo "configure:2383: checking whether time.h and sys/time.h may both be included" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.
$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <sys/types.h>
2390 #include <sys/time.h>
2396 if { (eval echo configure
:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2398 ac_cv_header_time
=yes
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 ac_cv_header_time
=no
2408 echo "$ac_t""$ac_cv_header_time" 1>&6
2409 if test $ac_cv_header_time = yes; then
2410 cat >> confdefs.h
<<\EOF
2411 #define TIME_WITH_SYS_TIME 1
2416 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6
2417 echo "configure:2418: checking for working stdbool.h" >&5
2418 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 cat > conftest.
$ac_ext <<EOF
2422 #line 2423 "configure"
2423 #include "confdefs.h"
2424 #include <stdbool.h>
2429 if { (eval echo configure
:2430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2431 ac_cv_header_stdbool_h
=yes
2433 echo "configure: failed program was:" >&5
2434 cat conftest.
$ac_ext >&5
2436 ac_cv_header_stdbool_h
=no
2441 echo "$ac_t""$ac_cv_header_stdbool_h" 1>&6
2442 if test $ac_cv_header_stdbool_h = yes; then
2443 cat >> confdefs.h
<<\EOF
2444 #define HAVE_STDBOOL_H 1
2449 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2450 echo "configure:2451: checking whether string.h and strings.h may both be included" >&5
2451 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 cat > conftest.
$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2458 #include <strings.h>
2463 if { (eval echo configure
:2464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2465 gcc_cv_header_string
=yes
2467 echo "configure: failed program was:" >&5
2468 cat conftest.
$ac_ext >&5
2470 gcc_cv_header_string
=no
2475 echo "$ac_t""$gcc_cv_header_string" 1>&6
2476 if test $gcc_cv_header_string = yes; then
2477 cat >> confdefs.h
<<\EOF
2478 #define STRING_WITH_STRINGS 1
2483 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2484 echo "configure:2485: checking for sys/wait.h that is POSIX.1 compatible" >&5
2485 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 cat > conftest.
$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 #include <sys/types.h>
2492 #include <sys/wait.h>
2494 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2497 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2502 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2505 if { (eval echo configure
:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2507 ac_cv_header_sys_wait_h
=yes
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 ac_cv_header_sys_wait_h
=no
2517 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2518 if test $ac_cv_header_sys_wait_h = yes; then
2519 cat >> confdefs.h
<<\EOF
2520 #define HAVE_SYS_WAIT_H 1
2525 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2526 fcntl.h unistd.h sys
/file.h sys
/time.h \
2527 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2528 direct.h malloc.h langinfo.h
2530 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_hdr" >&5
2533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure
:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2546 eval "ac_cv_header_$ac_safe=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 eval "ac_cv_header_$ac_safe=no"
2556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2559 cat >> confdefs.h
<<EOF
2560 #define $ac_tr_hdr 1
2564 echo "$ac_t""no" 1>&6
2569 # Check for thread headers.
2570 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2571 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2572 echo "configure:2573: checking for thread.h" >&5
2573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2581 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2582 { (eval echo configure
:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2583 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2584 if test -z "$ac_err"; then
2586 eval "ac_cv_header_$ac_safe=yes"
2589 echo "configure: failed program was:" >&5
2590 cat conftest.
$ac_ext >&5
2592 eval "ac_cv_header_$ac_safe=no"
2596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2597 echo "$ac_t""yes" 1>&6
2600 echo "$ac_t""no" 1>&6
2604 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2605 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2606 echo "configure:2607: checking for pthread.h" >&5
2607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 cat > conftest.
$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 #include <pthread.h>
2615 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2616 { (eval echo configure
:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2617 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2618 if test -z "$ac_err"; then
2620 eval "ac_cv_header_$ac_safe=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.
$ac_ext >&5
2626 eval "ac_cv_header_$ac_safe=no"
2630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2631 echo "$ac_t""yes" 1>&6
2634 echo "$ac_t""no" 1>&6
2639 # These tests can't be done till we know if we have limits.h.
2640 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
2641 echo "configure:2642: checking for CHAR_BIT" >&5
2642 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 cat > conftest.
$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #ifdef HAVE_LIMITS_H
2655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2656 egrep "found" >/dev
/null
2>&1; then
2658 gcc_cv_decl_char_bit
=yes
2661 gcc_cv_decl_char_bit
=no
2668 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
2669 if test $gcc_cv_decl_char_bit = no
; then
2670 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
2671 echo "configure:2672: checking number of bits in a byte" >&5
2672 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2677 while test $i -lt 65; do
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2684 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
2685 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
2689 if { (eval echo configure
:2690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2691 gcc_cv_c_nbby
=$i; break
2693 echo "configure: failed program was:" >&5
2694 cat conftest.
$ac_ext >&5
2699 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
2703 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
2704 if test $gcc_cv_c_nbby = failed
; then
2705 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
2707 cat >> confdefs.h
<<EOF
2708 #define CHAR_BIT $gcc_cv_c_nbby
2713 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
2714 echo "configure:2715: checking byte ordering" >&5
2715 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 ac_cv_c_compile_endian
=unknown
2721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2722 ac_cpp
='$CPP $CPPFLAGS'
2723 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2724 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2725 cross_compiling
=$ac_cv_prog_cc_cross
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2731 #ifdef HAVE_LIMITS_H
2732 # include <limits.h>
2734 /* This structure must have no internal padding. */
2736 char prefix[sizeof "\nendian:" - 1];
2741 #if SIZEOF_SHORT == 4
2742 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
2744 ('A' << CHAR_BIT) | 'B',
2748 if { (eval echo configure
:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750 sed 's/^[0-7]*[ ]*/ /
2753 s/ [0-9][0-9][0-9]/./g
2759 if grep 'endian:AB' conftest.dmp
>/dev
/null
2>&1; then
2760 ac_cv_c_compile_endian
=big-endian
2761 elif grep 'endian:BA' conftest.dmp
>/dev
/null
2>&1; then
2762 ac_cv_c_compile_endian
=little-endian
2767 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2768 ac_cpp
='$CPP $CPPFLAGS'
2769 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2770 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2771 cross_compiling
=$ac_cv_prog_cc_cross
2776 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
2777 if test $ac_cv_c_compile_endian = unknown
; then
2778 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
2779 elif test $ac_cv_c_compile_endian = big-endian
; then
2780 cat >> confdefs.h
<<\EOF
2781 #define HOST_WORDS_BIG_ENDIAN 1
2786 echo $ac_n "checking floating point format""... $ac_c" 1>&6
2787 echo "configure:2788: checking floating point format" >&5
2788 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2794 ac_cpp
='$CPP $CPPFLAGS'
2795 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2796 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2797 cross_compiling
=$ac_cv_prog_cc_cross
2799 cat > conftest.
$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 /* This will not work unless sizeof(double) == 8. */
2803 extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
2805 /* This structure must have no internal padding. */
2806 struct possibility {
2812 #define C(cand) { "\nformat:", cand, ":tamrof\n" }
2813 struct possibility table [] =
2815 C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
2816 C( 3.53802595280598432000e+18), /* D__float - VAX */
2817 C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
2818 C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
2819 C(-5.22995989424860458374e+10) /* IBMHEXFP - s/390 format, EBCDIC */
2822 if { (eval echo configure
:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2824 sed 's/^[0-7]*[ ]*/ /
2827 s/ [0-9][0-9][0-9]/./g
2833 if grep 'format:.@IEEEF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2834 ac_cv_c_float_format
='IEEE (big-endian)'
2835 elif grep 'format:.I@@PFE.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2836 ac_cv_c_float_format
='IEEE (big-endian)'
2837 elif grep 'format:.FEEEI@.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2838 ac_cv_c_float_format
='IEEE (little-endian)'
2839 elif grep 'format:.EFP@@I.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2840 ac_cv_c_float_format
='IEEE (little-endian)'
2841 elif grep 'format:.__floa.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2842 ac_cv_c_float_format
='VAX D-float'
2843 elif grep 'format:..PDP-1.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2844 ac_cv_c_float_format
='PDP-10'
2845 elif grep 'format:.BMHEXF.:tamrof' conftest.dmp
>/dev
/null
2>&1; then
2846 ac_cv_c_float_format
='IBM 370 hex'
2848 { echo "configure: error: Unknown floating point format" 1>&2; exit 1; }
2851 { echo "configure: error: compile failed" 1>&2; exit 1; }
2855 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2856 ac_cpp
='$CPP $CPPFLAGS'
2857 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2858 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2859 cross_compiling
=$ac_cv_prog_cc_cross
2864 echo "$ac_t""$ac_cv_c_float_format" 1>&6
2865 # IEEE is the default format. If the float endianness isn't the same
2866 # as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
2867 # (which is a tristate: yes, no, default). This is only an issue with
2868 # IEEE; the other formats are only supported by a few machines each,
2869 # all with the same endianness.
2872 case $ac_cv_c_float_format in
2873 'IEEE (big-endian)' )
2874 if test $ac_cv_c_compile_endian = little-endian
; then
2878 'IEEE (little-endian)' )
2879 if test $ac_cv_c_compile_endian = big-endian
; then
2884 format
=VAX_FLOAT_FORMAT
2887 format
=PDP10_FLOAT_FORMAT
2890 format
=IBM_FLOAT_FORMAT
2893 if test -n "$format"; then
2894 cat >> confdefs.h
<<EOF
2895 #define HOST_FLOAT_FORMAT $format
2899 if test -n "$fbigend"; then
2900 cat >> confdefs.h
<<EOF
2901 #define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
2907 # See if GNAT has been installed
2908 if test $host != $build; then
2909 ac_tool_prefix
=${host_alias}-
2915 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2916 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_word" >&5
2919 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 if test -n "$GNATBIND"; then
2923 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2925 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2927 for ac_dir
in $ac_dummy; do
2928 test -z "$ac_dir" && ac_dir
=.
2929 if test -f $ac_dir/$ac_word; then
2930 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2937 GNATBIND
="$ac_cv_prog_GNATBIND"
2938 if test -n "$GNATBIND"; then
2939 echo "$ac_t""$GNATBIND" 1>&6
2941 echo "$ac_t""no" 1>&6
2945 if test -z "$ac_cv_prog_GNATBIND"; then
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "gnatbind", so it can be a program name with args.
2948 set dummy gnatbind
; ac_word
=$2
2949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2950 echo "configure:2951: checking for $ac_word" >&5
2951 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 if test -n "$GNATBIND"; then
2955 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2957 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2959 for ac_dir
in $ac_dummy; do
2960 test -z "$ac_dir" && ac_dir
=.
2961 if test -f $ac_dir/$ac_word; then
2962 ac_cv_prog_GNATBIND
="gnatbind"
2967 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2970 GNATBIND
="$ac_cv_prog_GNATBIND"
2971 if test -n "$GNATBIND"; then
2972 echo "$ac_t""$GNATBIND" 1>&6
2974 echo "$ac_t""no" 1>&6
2982 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6
2983 echo "configure:2984: checking for compiler driver that understands Ada" >&5
2984 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 cat >conftest.adb
<<EOF
2988 procedure conftest is begin null; end conftest;
2991 # Have to do ac_tool_prefix and user overrides by hand.
2994 for cand
in ${ac_tool_prefix}$user_adac $user_adac \
2995 ${ac_tool_prefix}$user_cc $user_cc \
2996 ${ac_tool_prefix}gcc gcc \
2997 ${ac_tool_prefix}cc cc \
2998 ${ac_tool_prefix}gnatgcc gnatgcc \
2999 ${ac_tool_prefix}gnatcc gnatcc \
3000 ${ac_tool_prefix}adagcc adagcc \
3001 ${ac_tool_prefix}adacc adacc
; do
3002 # There is a bug in all released versions of GCC which causes the
3003 # driver to exit successfully when the appropriate language module
3004 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3005 # Therefore we must check for the error message as well as an
3006 # unsuccessful exit.
3007 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
3008 if test x
"$errors" = x
; then
3009 gcc_cv_prog_adac
=$cand
3016 echo "$ac_t""$gcc_cv_prog_adac" 1>&6
3017 ADAC
=$gcc_cv_prog_adac
3020 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
3027 # See if we have the mktemp command.
3028 # Extract the first word of "mktemp", so it can be a program name with args.
3029 set dummy mktemp
; ac_word
=$2
3030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3031 echo "configure:3032: checking for $ac_word" >&5
3032 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 if test -n "$have_mktemp_command"; then
3036 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
3038 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3040 for ac_dir
in $ac_dummy; do
3041 test -z "$ac_dir" && ac_dir
=.
3042 if test -f $ac_dir/$ac_word; then
3043 ac_cv_prog_have_mktemp_command
="yes"
3048 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
3051 have_mktemp_command
="$ac_cv_prog_have_mktemp_command"
3052 if test -n "$have_mktemp_command"; then
3053 echo "$ac_t""$have_mktemp_command" 1>&6
3055 echo "$ac_t""no" 1>&6
3059 # Do we have a single-tree copy of texinfo?
3060 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
3061 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
3062 gcc_cv_prog_makeinfo_modern
=yes
3063 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
3065 # See if makeinfo has been installed and is modern enough
3066 # that we can use it.
3067 # Extract the first word of "makeinfo", so it can be a program name with args.
3068 set dummy makeinfo
; 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_MAKEINFO'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 if test -n "$MAKEINFO"; then
3075 ac_cv_prog_MAKEINFO
="$MAKEINFO" # 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_MAKEINFO
="makeinfo"
3089 MAKEINFO
="$ac_cv_prog_MAKEINFO"
3090 if test -n "$MAKEINFO"; then
3091 echo "$ac_t""$MAKEINFO" 1>&6
3093 echo "$ac_t""no" 1>&6
3096 if test -n "$MAKEINFO"; then
3097 # Found it, now check the version.
3098 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
3099 echo "configure:3100: checking for modern makeinfo" >&5
3100 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 ac_prog_version
=`$MAKEINFO --version 2>&1 |
3104 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3105 echo "configure:3106: version of makeinfo is $ac_prog_version" >&5
3106 case $ac_prog_version in
3107 '') gcc_cv_prog_makeinfo_modern
=no
;;
3109 gcc_cv_prog_makeinfo_modern
=yes;;
3110 *) gcc_cv_prog_makeinfo_modern
=no
;;
3115 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
3117 gcc_cv_prog_makeinfo_modern
=no
3122 if test $gcc_cv_prog_makeinfo_modern = no
; then
3123 echo "configure: warning:
3124 *** Makeinfo is missing or too old.
3125 *** Info documentation will not be built." 1>&2
3131 # Is pod2man recent enough to regenerate manpages?
3132 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6
3133 echo "configure:3134: checking for recent Pod::Man" >&5
3134 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
3135 echo "$ac_t""yes" 1>&6
3136 GENERATED_MANPAGES
=generated-manpages
3138 echo "$ac_t""no" 1>&6
3143 if test -f $srcdir/..
/flex
/skel.c
; then
3144 FLEX
='$(objdir)/../flex/flex'
3146 # Extract the first word of "flex", so it can be a program name with args.
3147 set dummy flex
; ac_word
=$2
3148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3149 echo "configure:3150: checking for $ac_word" >&5
3150 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 if test -n "$FLEX"; then
3154 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
3156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3158 for ac_dir
in $ac_dummy; do
3159 test -z "$ac_dir" && ac_dir
=.
3160 if test -f $ac_dir/$ac_word; then
3161 ac_cv_prog_FLEX
="flex"
3166 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="false"
3169 FLEX
="$ac_cv_prog_FLEX"
3170 if test -n "$FLEX"; then
3171 echo "$ac_t""$FLEX" 1>&6
3173 echo "$ac_t""no" 1>&6
3179 # The -L switch is so bison can find its skeleton file.
3180 if test -f $srcdir/..
/bison
/bison.simple
; then
3181 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
3183 # Extract the first word of "bison", so it can be a program name with args.
3184 set dummy bison
; ac_word
=$2
3185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_word" >&5
3187 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 if test -n "$BISON"; then
3191 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
3193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3195 for ac_dir
in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir
=.
3197 if test -f $ac_dir/$ac_word; then
3198 ac_cv_prog_BISON
="bison"
3203 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="false"
3206 BISON
="$ac_cv_prog_BISON"
3207 if test -n "$BISON"; then
3208 echo "$ac_t""$BISON" 1>&6
3210 echo "$ac_t""no" 1>&6
3215 # These libraries may be used by collect2.
3216 # We may need a special search path to get them linked.
3217 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6
3218 echo "configure:3219: checking for collect2 libraries" >&5
3219 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3223 for libs
in '' -lld -lmld \
3224 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
3225 '-L/usr/lib/cmplrs/cc3.11 -lmld'
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 /* Override any gcc2 internal prototype to avoid an error. */
3232 /* We use char because int might match the return type of a gcc2
3233 builtin and then its argument prototype would still apply. */
3240 if { (eval echo configure
:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3242 gcc_cv_collect2_libs
="$libs"; break
3244 echo "configure: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3250 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
3253 echo "$ac_t""$gcc_cv_collect2_libs" 1>&6
3254 case $gcc_cv_collect2_libs in
3256 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
3260 # When building Ada code on Alpha, we need exc_resume which is usually in
3261 # -lexc. So test for it.
3265 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6
3266 echo "configure:3267: checking for library containing exc_resume" >&5
3267 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 ac_func_search_save_LIBS
="$LIBS"
3271 ac_cv_search_exc_resume
="no"
3272 cat > conftest.
$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 /* Override any gcc2 internal prototype to avoid an error. */
3276 /* We use char because int might match the return type of a gcc2
3277 builtin and then its argument prototype would still apply. */
3284 if { (eval echo configure
:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3286 ac_cv_search_exc_resume
="none required"
3288 echo "configure: failed program was:" >&5
3289 cat conftest.
$ac_ext >&5
3292 test "$ac_cv_search_exc_resume" = "no" && for i
in exc
; do
3293 LIBS
="-l$i $ac_func_search_save_LIBS"
3294 cat > conftest.
$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 /* Override any gcc2 internal prototype to avoid an error. */
3298 /* We use char because int might match the return type of a gcc2
3299 builtin and then its argument prototype would still apply. */
3306 if { (eval echo configure
:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3308 ac_cv_search_exc_resume
="-l$i"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.
$ac_ext >&5
3316 LIBS
="$ac_func_search_save_LIBS"
3319 echo "$ac_t""$ac_cv_search_exc_resume" 1>&6
3320 if test "$ac_cv_search_exc_resume" != "no"; then
3321 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
3330 # See if the stage1 system preprocessor understands the ANSI C
3331 # preprocessor stringification operator. (Used by symcat.h.)
3334 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
3335 echo "configure:3336: checking for preprocessor stringizing operator" >&5
3336 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 cat > conftest.
$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3345 char *s = x(teststring);
3348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3349 egrep "#teststring" >/dev
/null
2>&1; then
3351 ac_cv_c_stringize
=no
3354 ac_cv_c_stringize
=yes
3360 if test "${ac_cv_c_stringize}" = yes
3362 cat >> confdefs.h
<<\EOF
3363 #define HAVE_STRINGIZE 1
3367 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
3370 # Use <inttypes.h> only if it exists,
3371 # doesn't clash with <sys/types.h>, and declares intmax_t.
3372 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3373 echo "configure:3374: checking for inttypes.h" >&5
3374 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 cat > conftest.
$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <sys/types.h>
3381 #include <inttypes.h>
3386 if { (eval echo configure
:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3388 gcc_cv_header_inttypes_h
=yes
3390 echo "configure: failed program was:" >&5
3391 cat conftest.
$ac_ext >&5
3393 gcc_cv_header_inttypes_h
=no
3398 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
3399 if test $gcc_cv_header_inttypes_h = yes; then
3400 cat >> confdefs.h
<<\EOF
3401 #define HAVE_INTTYPES_H 1
3407 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
3408 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
3409 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat
3411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_func" >&5
3413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
3420 which can conflict with char $ac_func(); below. */
3422 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3429 /* The GNU C library defines this for functions which it implements
3430 to always fail with ENOSYS. Some functions are actually named
3431 something starting with __ and the normal name is an alias. */
3432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3440 if { (eval echo configure
:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3442 eval "ac_cv_func_$ac_func=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.
$ac_ext >&5
3447 eval "ac_cv_func_$ac_func=no"
3452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3455 cat >> confdefs.h
<<EOF
3456 #define $ac_tr_func 1
3460 echo "$ac_t""no" 1>&6
3465 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3466 echo "configure:3467: checking for ssize_t" >&5
3467 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 #include <sys/types.h>
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3482 ac_cv_type_ssize_t
=yes
3485 ac_cv_type_ssize_t
=no
3490 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3491 if test $ac_cv_type_ssize_t = no
; then
3492 cat >> confdefs.h
<<\EOF
3499 # Try to determine the array type of the second argument of getgroups
3500 # for the target system (int or gid_t).
3501 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3502 echo "configure:3503: checking for uid_t in sys/types.h" >&5
3503 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3506 cat > conftest.
$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 #include <sys/types.h>
3511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3512 egrep "uid_t" >/dev
/null
2>&1; then
3514 ac_cv_type_uid_t
=yes
3523 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3524 if test $ac_cv_type_uid_t = no
; then
3525 cat >> confdefs.h
<<\EOF
3529 cat >> confdefs.h
<<\EOF
3535 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3536 echo "configure:3537: checking type of array argument to getgroups" >&5
3537 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 if test "$cross_compiling" = yes; then
3541 ac_cv_type_getgroups
=cross
3543 cat > conftest.
$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3547 /* Thanks to Mike Rendell for this test. */
3548 #include <sys/types.h>
3551 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3556 union { gid_t gval; long lval; } val;
3559 for (i = 0; i < NGID; i++)
3560 gidset[i] = val.gval;
3561 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3563 /* Exit non-zero if getgroups seems to require an array of ints. This
3564 happens when gid_t is short but getgroups modifies an array of ints. */
3565 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3569 if { (eval echo configure
:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3571 ac_cv_type_getgroups
=gid_t
3573 echo "configure: failed program was:" >&5
3574 cat conftest.
$ac_ext >&5
3576 ac_cv_type_getgroups
=int
3581 if test $ac_cv_type_getgroups = cross
; then
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3588 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3590 ac_cv_type_getgroups
=gid_t
3593 ac_cv_type_getgroups
=int
3600 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3601 cat >> confdefs.h
<<EOF
3602 #define GETGROUPS_T $ac_cv_type_getgroups
3606 if test "${target}" = "${build}"; then
3607 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
3610 # This condition may need some tweaking. It should include all
3611 # targets where the array type of the second argument of getgroups
3612 # is int and the type of gid_t is not equivalent to int.
3613 *-*-sunos* |
*-*-ultrix*)
3614 TARGET_GETGROUPS_T
=int
3617 TARGET_GETGROUPS_T
=gid_t
3623 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
3624 echo "configure:3625: checking whether the printf functions support %p" >&5
3625 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 if test "$cross_compiling" = yes; then
3629 gcc_cv_func_printf_ptr
=no
3631 cat > conftest.
$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3639 char *p = buf, *q = NULL;
3640 sprintf(buf, "%p", p);
3641 sscanf(buf, "%p", &q);
3645 if { (eval echo configure
:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3647 gcc_cv_func_printf_ptr
=yes
3649 echo "configure: failed program was:" >&5
3650 cat conftest.
$ac_ext >&5
3652 gcc_cv_func_printf_ptr
=no
3657 rm -f core core.
* *.core
3660 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
3661 if test $gcc_cv_func_printf_ptr = yes ; then
3662 cat >> confdefs.h
<<\EOF
3663 #define HAVE_PRINTF_PTR 1
3671 { echo "configure: error:
3672 *** UWIN may not be used as a host platform because
3673 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
3676 # Under VMS, vfork works very different than on Unix. The standard test
3677 # won't work, and it isn't easily adaptable. It makes more sense to
3679 ac_cv_func_vfork_works
=yes
3682 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3683 echo "configure:3684: checking for pid_t" >&5
3684 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.
$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <sys/types.h>
3696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3697 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3699 ac_cv_type_pid_t
=yes
3707 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3708 if test $ac_cv_type_pid_t = no
; then
3709 cat >> confdefs.h
<<\EOF
3715 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
3716 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
3717 echo "configure:3718: checking for vfork.h" >&5
3718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.
$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3727 { (eval echo configure
:3728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3729 if test -z "$ac_err"; then
3731 eval "ac_cv_header_$ac_safe=yes"
3734 echo "configure: failed program was:" >&5
3735 cat conftest.
$ac_ext >&5
3737 eval "ac_cv_header_$ac_safe=no"
3741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 cat >> confdefs.h
<<\EOF
3744 #define HAVE_VFORK_H 1
3748 echo "$ac_t""no" 1>&6
3751 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3752 echo "configure:3753: checking for working vfork" >&5
3753 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 if test "$cross_compiling" = yes; then
3757 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3758 echo "configure:3759: checking for vfork" >&5
3759 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.
$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 /* System header to define __stub macros and hopefully few prototypes,
3766 which can conflict with char vfork(); below. */
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3775 /* The GNU C library defines this for functions which it implements
3776 to always fail with ENOSYS. Some functions are actually named
3777 something starting with __ and the normal name is an alias. */
3778 #if defined (__stub_vfork) || defined (__stub___vfork)
3786 if { (eval echo configure
:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3788 eval "ac_cv_func_vfork=yes"
3790 echo "configure: failed program was:" >&5
3791 cat conftest.
$ac_ext >&5
3793 eval "ac_cv_func_vfork=no"
3798 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3802 echo "$ac_t""no" 1>&6
3805 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3807 cat > conftest.
$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 /* Thanks to Paul Eggert for this test. */
3812 #include <sys/types.h>
3813 #include <sys/stat.h>
3814 #ifdef HAVE_UNISTD_H
3820 /* On some sparc systems, changes by the child to local and incoming
3821 argument registers are propagated back to the parent.
3822 The compiler is told about this with #include <vfork.h>,
3823 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3824 Test for this by using a static variable whose address
3825 is put into a register that is clobbered by the vfork. */
3828 sparc_address_test (int arg)
3830 sparc_address_test (arg) int arg;
3848 pid_t parent = getpid ();
3851 sparc_address_test ();
3856 /* Here is another test for sparc vfork register problems.
3857 This test uses lots of local variables, at least
3858 as many local variables as main has allocated so far
3859 including compiler temporaries. 4 locals are enough for
3860 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3861 A buggy compiler should reuse the register of parent
3862 for one of the local variables, since it will think that
3863 parent can't possibly be used any more in this routine.
3864 Assigning to the local variable will thus munge parent
3865 in the parent process. */
3867 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3868 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3869 /* Convince the compiler that p..p7 are live; otherwise, it might
3870 use the same hardware register for all 8 local variables. */
3871 if (p != p1 || p != p2 || p != p3 || p != p4
3872 || p != p5 || p != p6 || p != p7)
3875 /* On some systems (e.g. IRIX 3.3),
3876 vfork doesn't separate parent from child file descriptors.
3877 If the child closes a descriptor before it execs or exits,
3878 this munges the parent's descriptor as well.
3879 Test for this by closing stdout in the child. */
3880 _exit(close(fileno(stdout)) != 0);
3885 while (wait(&status) != child)
3888 /* Was there some problem with vforking? */
3891 /* Did the child fail? (This shouldn't happen.) */
3894 /* Did the vfork/compiler bug occur? */
3895 || parent != getpid()
3897 /* Did the file descriptor bug occur? */
3898 || fstat(fileno(stdout), &st) != 0
3903 if { (eval echo configure
:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3905 ac_cv_func_vfork_works
=yes
3907 echo "configure: failed program was:" >&5
3908 cat conftest.
$ac_ext >&5
3910 ac_cv_func_vfork_works
=no
3917 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3918 if test $ac_cv_func_vfork_works = no
; then
3919 cat >> confdefs.h
<<\EOF
3925 for ac_func
in getpagesize
3927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_func" >&5
3929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 cat > conftest.
$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 /* System header to define __stub macros and hopefully few prototypes,
3936 which can conflict with char $ac_func(); below. */
3938 /* Override any gcc2 internal prototype to avoid an error. */
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3945 /* The GNU C library defines this for functions which it implements
3946 to always fail with ENOSYS. Some functions are actually named
3947 something starting with __ and the normal name is an alias. */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3956 if { (eval echo configure
:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3958 eval "ac_cv_func_$ac_func=yes"
3960 echo "configure: failed program was:" >&5
3961 cat conftest.
$ac_ext >&5
3963 eval "ac_cv_func_$ac_func=no"
3968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3969 echo "$ac_t""yes" 1>&6
3970 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3971 cat >> confdefs.h
<<EOF
3972 #define $ac_tr_func 1
3976 echo "$ac_t""no" 1>&6
3980 # The test program for the next two tests is the same except for one
3982 cat >ct-mmap.inc
<<'EOF'
3983 #include <sys/types.h>
3984 #include <sys/mman.h>
3990 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3991 # define MAP_ANONYMOUS MAP_ANON
3994 /* This mess was copied from the GNU getpagesize.h. */
3995 #ifndef HAVE_GETPAGESIZE
3996 # ifdef HAVE_UNISTD_H
3997 # include <unistd.h>
4000 /* Assume that all systems that can run configure have sys/param.h. */
4001 # ifndef HAVE_SYS_PARAM_H
4002 # define HAVE_SYS_PARAM_H 1
4005 # ifdef _SC_PAGESIZE
4006 # define getpagesize() sysconf(_SC_PAGESIZE)
4007 # else /* no _SC_PAGESIZE */
4008 # ifdef HAVE_SYS_PARAM_H
4009 # include <sys/param.h>
4010 # ifdef EXEC_PAGESIZE
4011 # define getpagesize() EXEC_PAGESIZE
4012 # else /* no EXEC_PAGESIZE */
4014 # define getpagesize() NBPG * CLSIZE
4017 # endif /* no CLSIZE */
4018 # else /* no NBPG */
4020 # define getpagesize() NBPC
4021 # else /* no NBPC */
4023 # define getpagesize() PAGESIZE
4024 # endif /* PAGESIZE */
4025 # endif /* no NBPC */
4026 # endif /* no NBPG */
4027 # endif /* no EXEC_PAGESIZE */
4028 # else /* no HAVE_SYS_PARAM_H */
4029 # define getpagesize() 8192 /* punt totally */
4030 # endif /* no HAVE_SYS_PARAM_H */
4031 # endif /* no _SC_PAGESIZE */
4033 #endif /* no HAVE_GETPAGESIZE */
4036 # define MAP_FAILED -1
4040 #define perror_exit(str, val) \
4041 do { perror(str); exit(val); } while (0)
4043 /* Some versions of cygwin mmap require that munmap is called with the
4044 same parameters as mmap. GCC expects that this is not the case.
4045 Test for various forms of this problem. Warning - icky signal games. */
4047 static sigset_t unblock_sigsegv;
4057 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4058 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
4060 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
4061 MAP_PRIVATE, devzero, 0);
4069 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
4073 /* Basic functionality test. */
4077 char *x = anonmap (pg);
4078 if (x == (char *) MAP_FAILED)
4079 perror_exit("test 0 mmap", 2);
4083 if (munmap(x, pg) < 0)
4084 perror_exit("test 0 munmap", 3);
4087 /* 1. If we map a 2-page region and unmap its second page, the first page
4092 char *x = anonmap (pg * 2);
4093 if (x == (char *)MAP_FAILED)
4094 perror_exit ("test 1 mmap", 4);
4096 signal (SIGSEGV, sigsegv);
4098 perror_exit ("test 1 fault", 5);
4103 if (munmap (x + pg, pg) < 0)
4104 perror_exit ("test 1 munmap 1", 6);
4107 if (setjmp (r) == 0)
4110 perror_exit ("test 1 no fault", 7);
4112 if (munmap (x, pg) < 0)
4113 perror_exit ("test 1 munmap 2", 8);
4116 /* 2. If we map a 2-page region and unmap its first page, the second
4117 page must remain. */
4121 char *x = anonmap (pg * 2);
4122 if (x == (char *)MAP_FAILED)
4123 perror_exit ("test 2 mmap", 9);
4125 signal (SIGSEGV, sigsegv);
4127 perror_exit ("test 2 fault", 10);
4132 if (munmap (x, pg) < 0)
4133 perror_exit ("test 2 munmap 1", 11);
4137 if (setjmp (r) == 0)
4140 perror_exit ("test 2 no fault", 12);
4143 if (munmap (x+pg, pg) < 0)
4144 perror_exit ("test 2 munmap 2", 13);
4147 /* 3. If we map two adjacent 1-page regions and unmap them both with
4148 one munmap, both must go away.
4150 Getting two adjacent 1-page regions with two mmap calls is slightly
4151 tricky. All OS's tested skip over already-allocated blocks; therefore
4152 we have been careful to unmap all allocated regions in previous tests.
4153 HP/UX allocates pages backward in memory. No OS has yet been observed
4154 to be so perverse as to leave unmapped space between consecutive calls
4163 if (x == (char *)MAP_FAILED)
4164 perror_exit ("test 3 mmap 1", 14);
4166 if (y == (char *)MAP_FAILED)
4167 perror_exit ("test 3 mmap 2", 15);
4172 z = y, y = x, x = z;
4175 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
4176 (unsigned long)x, (unsigned long)y);
4181 signal (SIGSEGV, sigsegv);
4183 perror_exit ("test 3 fault", 17);
4188 if (munmap (x, pg*2) < 0)
4189 perror_exit ("test 3 munmap", 18);
4191 if (setjmp (r) == 0)
4194 perror_exit ("test 3 no fault 1", 19);
4197 signal (SIGSEGV, sigsegv);
4198 if (setjmp (r) == 0)
4201 perror_exit ("test 3 no fault 2", 20);
4208 sigemptyset (&unblock_sigsegv);
4209 sigaddset (&unblock_sigsegv, SIGSEGV);
4210 pg = getpagesize ();
4211 #ifndef USE_MAP_ANON
4212 devzero = open ("/dev/zero", O_RDWR);
4214 perror_exit ("open /dev/zero", 1);
4226 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
4227 echo "configure:4228: checking for working mmap from /dev/zero" >&5
4228 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 if test "$cross_compiling" = yes; then
4232 # If this is not cygwin, and /dev/zero is a character device, it's probably
4233 # safe to assume it works.
4235 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
4236 * ) if test -c /dev
/zero
4237 then ac_cv_func_mmap_dev_zero
=yes
4238 else ac_cv_func_mmap_dev_zero
=no
4242 cat > conftest.
$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 #include "ct-mmap.inc"
4247 if { (eval echo configure
:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4249 ac_cv_func_mmap_dev_zero
=yes
4251 echo "configure: failed program was:" >&5
4252 cat conftest.
$ac_ext >&5
4255 then ac_cv_func_mmap_dev_zero
=no
4256 else ac_cv_func_mmap_dev_zero
=buggy
4265 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
4266 if test $ac_cv_func_mmap_dev_zero = yes; then
4267 cat >> confdefs.h
<<\EOF
4268 #define HAVE_MMAP_DEV_ZERO 1
4273 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
4274 echo "configure:4275: checking for working mmap with MAP_ANON(YMOUS)" >&5
4275 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 if test "$cross_compiling" = yes; then
4279 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
4280 # just because it's there. Some SCO Un*xen define it but don't implement it.
4281 ac_cv_func_mmap_anon
=no
4283 cat > conftest.
$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 #define USE_MAP_ANON
4287 #include "ct-mmap.inc"
4289 if { (eval echo configure
:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4291 ac_cv_func_mmap_anon
=yes
4293 echo "configure: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4297 then ac_cv_func_mmap_anon
=no
4298 else ac_cv_func_mmap_anon
=buggy
4307 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
4308 if test $ac_cv_func_mmap_anon = yes; then
4309 cat >> confdefs.h
<<\EOF
4310 #define HAVE_MMAP_ANON 1
4316 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
4317 echo "configure:4318: checking for working mmap of a file" >&5
4318 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4321 # Create a file one thousand bytes long.
4322 for i
in 1 2 3 4 5 6 7 8 9 0
4323 do for j
in 1 2 3 4 5 6 7 8 9 0
4326 done > conftestdata$$
4328 if test "$cross_compiling" = yes; then
4329 ac_cv_func_mmap_file
=no
4331 cat > conftest.
$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4335 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
4336 Richard Henderson and Alexandre Oliva.
4337 Check whether read-only mmap of a plain file works. */
4338 #include <sys/types.h>
4339 #include <sys/stat.h>
4341 #include <sys/mman.h>
4349 fd = open("conftestdata$$", O_RDONLY);
4353 if (fstat (fd, &st))
4356 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
4357 if (x == (char *) -1)
4360 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
4363 if (munmap(x, st.st_size) < 0)
4369 if { (eval echo configure
:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4371 ac_cv_func_mmap_file
=yes
4373 echo "configure: failed program was:" >&5
4374 cat conftest.
$ac_ext >&5
4376 ac_cv_func_mmap_file
=no
4383 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
4384 if test $ac_cv_func_mmap_file = yes; then
4385 cat >> confdefs.h
<<\EOF
4386 #define HAVE_MMAP_FILE 1
4394 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4395 if test "${with_libiconv_prefix+set}" = set; then
4396 withval
="$with_libiconv_prefix"
4398 for dir
in `echo "$withval" | tr : ' '`; do
4399 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
4400 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
4406 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4407 echo "configure:4408: checking for iconv" >&5
4408 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4412 am_cv_func_iconv
="no, consider installing GNU libiconv"
4414 cat > conftest.
$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4420 iconv_t cd = iconv_open("","");
4421 iconv(cd,NULL,NULL,NULL,NULL);
4425 if { (eval echo configure
:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4427 am_cv_func_iconv
=yes
4429 echo "configure: failed program was:" >&5
4430 cat conftest.
$ac_ext >&5
4433 if test "$am_cv_func_iconv" != yes; then
4434 am_save_LIBS
="$LIBS"
4435 LIBS
="$LIBS -liconv"
4436 cat > conftest.
$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4442 iconv_t cd = iconv_open("","");
4443 iconv(cd,NULL,NULL,NULL,NULL);
4447 if { (eval echo configure
:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4450 am_cv_func_iconv
=yes
4452 echo "configure: failed program was:" >&5
4453 cat conftest.
$ac_ext >&5
4456 LIBS
="$am_save_LIBS"
4461 echo "$ac_t""$am_cv_func_iconv" 1>&6
4462 if test "$am_cv_func_iconv" = yes; then
4463 cat >> confdefs.h
<<\EOF
4464 #define HAVE_ICONV 1
4467 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4468 echo "configure:4469: checking for iconv declaration" >&5
4469 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4473 cat > conftest.
$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4483 #if defined(__STDC__) || defined(__cplusplus)
4484 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4493 if { (eval echo configure
:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4495 am_cv_proto_iconv_arg1
=""
4497 echo "configure: failed program was:" >&5
4498 cat conftest.
$ac_ext >&5
4500 am_cv_proto_iconv_arg1
="const"
4503 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);"
4506 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4507 echo "$ac_t""${ac_t:-
4508 }$am_cv_proto_iconv" 1>&6
4509 cat >> confdefs.h
<<EOF
4510 #define ICONV_CONST $am_cv_proto_iconv_arg1
4515 if test "$am_cv_lib_iconv" = yes; then
4521 # We will need to find libiberty.h and ansidecl.h
4522 saved_CFLAGS
="$CFLAGS"
4523 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
4524 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
4525 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
4526 fprintf_unlocked strstr errno \
4527 malloc realloc calloc free
basename getopt
clock
4529 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4530 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4531 echo "configure:4532: checking whether $ac_func is declared" >&5
4532 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 cat > conftest.
$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4539 #define $ac_tr_decl 1
4541 #include "ansidecl.h"
4546 char *(*pfn) = (char *(*)) $ac_func ;
4550 if { (eval echo configure
:4551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4552 eval "gcc_cv_have_decl_$ac_func=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4557 eval "gcc_cv_have_decl_$ac_func=no"
4562 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4564 #define $ac_tr_decl 1
4568 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4569 #define $ac_tr_decl 0
4575 if test x
= y
; then
4576 cat >> confdefs.h
<<\EOF
4577 #define HAVE_DECL_GETENV 1
4579 cat >> confdefs.h
<<\EOF
4580 #define HAVE_DECL_ATOL 1
4582 cat >> confdefs.h
<<\EOF
4583 #define HAVE_DECL_SBRK 1
4585 cat >> confdefs.h
<<\EOF
4586 #define HAVE_DECL_ABORT 1
4588 cat >> confdefs.h
<<\EOF
4589 #define HAVE_DECL_ATOF 1
4591 cat >> confdefs.h
<<\EOF
4592 #define HAVE_DECL_GETCWD 1
4594 cat >> confdefs.h
<<\EOF
4595 #define HAVE_DECL_GETWD 1
4598 cat >> confdefs.h
<<\EOF
4599 #define HAVE_DECL_STRSIGNAL 1
4601 cat >> confdefs.h
<<\EOF
4602 #define HAVE_DECL_PUTC_UNLOCKED 1
4604 cat >> confdefs.h
<<\EOF
4605 #define HAVE_DECL_FPUTS_UNLOCKED 1
4607 cat >> confdefs.h
<<\EOF
4608 #define HAVE_DECL_FWRITE_UNLOCKED 1
4611 cat >> confdefs.h
<<\EOF
4612 #define HAVE_DECL_FPRINTF_UNLOCKED 1
4614 cat >> confdefs.h
<<\EOF
4615 #define HAVE_DECL_STRSTR 1
4617 cat >> confdefs.h
<<\EOF
4618 #define HAVE_DECL_ERRNO 1
4621 cat >> confdefs.h
<<\EOF
4622 #define HAVE_DECL_MALLOC 1
4624 cat >> confdefs.h
<<\EOF
4625 #define HAVE_DECL_REALLOC 1
4627 cat >> confdefs.h
<<\EOF
4628 #define HAVE_DECL_CALLOC 1
4630 cat >> confdefs.h
<<\EOF
4631 #define HAVE_DECL_FREE 1
4633 cat >> confdefs.h
<<\EOF
4634 #define HAVE_DECL_BASENAME 1
4636 cat >> confdefs.h
<<\EOF
4637 #define HAVE_DECL_GETOPT 1
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_DECL_CLOCK 1
4645 for ac_func
in getrlimit setrlimit getrusage
4647 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4648 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4649 echo "configure:4650: checking whether $ac_func is declared" >&5
4650 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.
$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4657 #define $ac_tr_decl 1
4659 #include "ansidecl.h"
4661 #ifdef HAVE_SYS_RESOURCE_H
4662 #include <sys/resource.h>
4668 char *(*pfn) = (char *(*)) $ac_func ;
4672 if { (eval echo configure
:4673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4674 eval "gcc_cv_have_decl_$ac_func=yes"
4676 echo "configure: failed program was:" >&5
4677 cat conftest.
$ac_ext >&5
4679 eval "gcc_cv_have_decl_$ac_func=no"
4684 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4685 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4686 #define $ac_tr_decl 1
4690 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4691 #define $ac_tr_decl 0
4697 if test x
= y
; then
4698 cat >> confdefs.h
<<\EOF
4699 #define HAVE_DECL_GETRLIMIT 1
4701 cat >> confdefs.h
<<\EOF
4702 #define HAVE_DECL_SETRLIMIT 1
4704 cat >> confdefs.h
<<\EOF
4705 #define HAVE_DECL_GETRUSAGE 1
4710 for ac_func
in times
4712 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4713 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
4714 echo "configure:4715: checking whether $ac_func is declared" >&5
4715 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.
$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4722 #define $ac_tr_decl 1
4724 #include "ansidecl.h"
4726 #ifdef HAVE_SYS_TIMES_H
4727 #include <sys/times.h>
4733 char *(*pfn) = (char *(*)) $ac_func ;
4737 if { (eval echo configure
:4738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4739 eval "gcc_cv_have_decl_$ac_func=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.
$ac_ext >&5
4744 eval "gcc_cv_have_decl_$ac_func=no"
4749 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
4750 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
4751 #define $ac_tr_decl 1
4755 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
4756 #define $ac_tr_decl 0
4762 if test x
= y
; then
4763 cat >> confdefs.h
<<\EOF
4764 #define HAVE_DECL_TIMES 1
4769 # More time-related stuff.
4770 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
4771 echo "configure:4772: checking for struct tms" >&5
4772 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4776 cat > conftest.
$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4780 #include "ansidecl.h"
4782 #ifdef HAVE_SYS_TIMES_H
4783 #include <sys/times.h>
4790 if { (eval echo configure
:4791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4792 ac_cv_struct_tms
=yes
4794 echo "configure: failed program was:" >&5
4795 cat conftest.
$ac_ext >&5
4802 echo "$ac_t""$ac_cv_struct_tms" 1>&6
4803 if test $ac_cv_struct_tms = yes; then
4804 cat >> confdefs.h
<<\EOF
4805 #define HAVE_STRUCT_TMS 1
4810 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
4811 # revisit after autoconf 2.50.
4812 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
4813 echo "configure:4814: checking for clock_t" >&5
4814 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4818 cat > conftest.
$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4822 #include "ansidecl.h"
4829 if { (eval echo configure
:4830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4831 gcc_cv_type_clock_t
=yes
4833 echo "configure: failed program was:" >&5
4834 cat conftest.
$ac_ext >&5
4836 gcc_cv_type_clock_t
=no
4841 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
4842 if test $gcc_cv_type_clock_t = yes; then
4843 cat >> confdefs.h
<<\EOF
4844 #define HAVE_CLOCK_T 1
4849 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
4850 CFLAGS
="$saved_CFLAGS"
4852 # mkdir takes a single argument on some systems.
4853 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
4854 echo "configure:4855: checking if mkdir takes one argument" >&5
4855 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.
$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4862 #include <sys/types.h>
4863 #ifdef HAVE_SYS_STAT_H
4864 # include <sys/stat.h>
4866 #ifdef HAVE_UNISTD_H
4867 # include <unistd.h>
4869 #ifdef HAVE_DIRECT_H
4870 # include <direct.h>
4876 if { (eval echo configure
:4877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4878 gcc_cv_mkdir_takes_one_arg
=no
4880 echo "configure: failed program was:" >&5
4881 cat conftest.
$ac_ext >&5
4883 gcc_cv_mkdir_takes_one_arg
=yes
4888 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
4889 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
4890 cat >> confdefs.h
<<\EOF
4891 #define MKDIR_TAKES_ONE_ARG 1
4905 build_install_headers_dir
=install-headers-tar
4910 host_truncate_target
=
4913 # Decode the host machine, then the target machine.
4914 # For the host machine, we save the xm_file variable as host_xm_file;
4915 # then we decode the target machine and forget everything else
4916 # that came from the host machine.
4917 for machine
in $build $host $target; do
4918 .
${srcdir}/config.gcc
4921 extra_objs
="${host_extra_objs} ${extra_objs}"
4923 # Default the target-machine variables that were not explicitly set.
4924 if test x
"$tm_file" = x
4925 then tm_file
=$cpu_type/$cpu_type.h
; fi
4927 if test x
"$extra_headers" = x
4928 then extra_headers
=; fi
4930 if test x
$md_file = x
4931 then md_file
=$cpu_type/$cpu_type.md
; fi
4933 if test x
$out_file = x
4934 then out_file
=$cpu_type/$cpu_type.c
; fi
4936 if test x
"$tmake_file" = x
4937 then tmake_file
=$cpu_type/t-
$cpu_type
4940 if test x
"$dwarf2" = xyes
4941 then tm_file
="$tm_file tm-dwarf2.h"
4944 if test x
$float_format = x
4945 then float_format
=i64
4948 if test $float_format = none
4949 then float_h_file
=Makefile.
in
4950 else float_h_file
=float-
$float_format.h
4953 # Handle cpp installation.
4954 if test x
$enable_cpp != xno
4956 tmake_file
="$tmake_file t-install-cpp"
4959 # Say what files are being used for the output code and MD file.
4960 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
4961 echo "Using \`$srcdir/config/$md_file' as machine description file."
4963 # If any of the xm_file variables contain nonexistent files, warn
4964 # about them and drop them.
4967 for x
in $build_xm_file; do
4968 if test -f $srcdir/config
/$x
4970 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4976 for x
in $host_xm_file; do
4977 if test -f $srcdir/config
/$x
4979 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4985 for x
in $xm_file; do
4986 if test -f $srcdir/config
/$x
4988 else echo "configure: warning: $srcdir/config/$x does not exist." 1>&2
4994 for f
in $tm_file; do
4997 if test $count = ax
; then
4998 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5000 echo "Using the following target machine macro files:"
5001 for f
in $tm_file; do
5002 echo " $srcdir/config/$f"
5007 for f
in $host_xm_file; do
5010 if test $count = a
; then
5012 elif test $count = ax
; then
5013 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5015 echo "Using the following host machine macro files:"
5016 for f
in $host_xm_file; do
5017 echo " $srcdir/config/$f"
5021 if test "$host_xm_file" != "$build_xm_file"; then
5023 for f
in $build_xm_file; do
5026 if test $count = a
; then
5028 elif test $count = ax
; then
5029 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5031 echo "Using the following build machine macro files:"
5032 for f
in $build_xm_file; do
5033 echo " $srcdir/config/$f"
5038 if test x
$thread_file = x
; then
5039 if test x
$target_thread_file != x
; then
5040 thread_file
=$target_thread_file
5042 thread_file
='single'
5046 # auto-host.h is the file containing items generated by autoconf and is
5047 # the first file included by config.h.
5048 # If host=build, it is correct to have hconfig include auto-host.h
5049 # as well. If host!=build, we are in error and need to do more
5050 # work to find out the build config parameters.
5051 if test x
$host = x
$build
5053 build_auto
=auto-host.h
5056 # We create a subdir, then run autoconf in the subdir.
5057 # To prevent recursion we set host and build for the new
5058 # invocation of configure to the build for this invocation
5065 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
5066 *) realsrcdir
=..
/${srcdir};;
5068 saved_CFLAGS
="${CFLAGS}"
5069 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
5070 ${realsrcdir}/configure \
5071 --target=$target --host=$build --build=$build
5072 CFLAGS
="${saved_CFLAGS}"
5074 # We just finished tests for the build machine, so rename
5075 # the file auto-build.h in the gcc directory.
5076 mv auto-host.h ..
/auto-build.h
5079 build_auto
=auto-build.h
5084 tm_file
="${tm_file} defaults.h"
5085 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
5086 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
5087 xm_file
="ansidecl.h ${xm_file} ${tm_file}"
5089 # Truncate the target if necessary
5090 if test x
$host_truncate_target != x
; then
5091 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5094 # Get the version trigger filename from the toplevel
5095 if test "${with_gcc_version_trigger+set}" = set; then
5096 gcc_version_trigger
=$with_gcc_version_trigger
5098 gcc_version_trigger
=${srcdir}/version.c
5100 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
5101 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
5103 # Compile in configure arguments.
5104 if test -f configargs.h
; then
5105 # Being re-configured.
5106 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
5107 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
5109 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
5111 cat > configargs.h
<<EOF
5112 /* Generated automatically. */
5113 static const char configuration_arguments[] = "$gcc_config_arguments";
5114 static const char thread_model[] = "$thread_file";
5117 # Internationalization
5119 VERSION
="$gcc_version"
5123 # Enable NLS support by default
5124 # Check whether --enable-nls or --disable-nls was given.
5125 if test "${enable_nls+set}" = set; then
5126 enableval
="$enable_nls"
5133 # if cross compiling, disable NLS support.
5134 # It's not worth the trouble, at least for now.
5136 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
5137 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
5143 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6
5144 echo "configure:5145: checking for library containing strerror" >&5
5145 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5148 ac_func_search_save_LIBS
="$LIBS"
5149 ac_cv_search_strerror
="no"
5150 cat > conftest.
$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5162 if { (eval echo configure
:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5164 ac_cv_search_strerror
="none required"
5166 echo "configure: failed program was:" >&5
5167 cat conftest.
$ac_ext >&5
5170 test "$ac_cv_search_strerror" = "no" && for i
in cposix
; do
5171 LIBS
="-l$i $ac_func_search_save_LIBS"
5172 cat > conftest.
$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5175 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5184 if { (eval echo configure
:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5186 ac_cv_search_strerror
="-l$i"
5189 echo "configure: failed program was:" >&5
5190 cat conftest.
$ac_ext >&5
5194 LIBS
="$ac_func_search_save_LIBS"
5197 echo "$ac_t""$ac_cv_search_strerror" 1>&6
5198 if test "$ac_cv_search_strerror" != "no"; then
5199 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5206 echo $ac_n "checking for working const""... $ac_c" 1>&6
5207 echo "configure:5208: checking for working const" >&5
5208 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 cat > conftest.
$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5217 /* Ultrix mips cc rejects this. */
5218 typedef int charset[2]; const charset x;
5219 /* SunOS 4.1.1 cc rejects this. */
5220 char const *const *ccp;
5222 /* NEC SVR4.0.2 mips cc rejects this. */
5223 struct point {int x, y;};
5224 static struct point const zero = {0,0};
5225 /* AIX XL C 1.02.0.0 rejects this.
5226 It does not let you subtract one const X* pointer from another in an arm
5227 of an if-expression whose if-part is not a constant expression */
5228 const char *g = "string";
5229 ccp = &g + (g ? g-g : 0);
5230 /* HPUX 7.0 cc rejects these. */
5233 ccp = (char const *const *) p;
5234 { /* SCO 3.2v4 cc rejects this. */
5236 char const *s = 0 ? (char *) 0 : (char const *) 0;
5240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5242 const int *foo = &x[0];
5245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5246 typedef const int *iptr;
5250 { /* AIX XL C 1.02.0.0 rejects this saying
5251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5252 struct s { int j; const int *ap[3]; };
5253 struct s *b; b->j = 5;
5255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5261 if { (eval echo configure
:5262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5265 echo "configure: failed program was:" >&5
5266 cat conftest.
$ac_ext >&5
5273 echo "$ac_t""$ac_cv_c_const" 1>&6
5274 if test $ac_cv_c_const = no
; then
5275 cat >> confdefs.h
<<\EOF
5281 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5282 echo "configure:5283: checking for off_t" >&5
5283 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5286 cat > conftest.
$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5289 #include <sys/types.h>
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5298 ac_cv_type_off_t
=yes
5306 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5307 if test $ac_cv_type_off_t = no
; then
5308 cat >> confdefs.h
<<\EOF
5314 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5315 echo "configure:5316: checking for size_t" >&5
5316 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 cat > conftest.
$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 #include <sys/types.h>
5328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5331 ac_cv_type_size_t
=yes
5334 ac_cv_type_size_t
=no
5339 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5340 if test $ac_cv_type_size_t = no
; then
5341 cat >> confdefs.h
<<\EOF
5342 #define size_t unsigned
5347 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5348 # for constant arguments. Useless!
5349 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5350 echo "configure:5351: checking for working alloca.h" >&5
5351 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 cat > conftest.
$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5359 char *p = alloca(2 * sizeof(int));
5362 if { (eval echo configure
:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5364 ac_cv_header_alloca_h
=yes
5366 echo "configure: failed program was:" >&5
5367 cat conftest.
$ac_ext >&5
5369 ac_cv_header_alloca_h
=no
5374 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5375 if test $ac_cv_header_alloca_h = yes; then
5376 cat >> confdefs.h
<<\EOF
5377 #define HAVE_ALLOCA_H 1
5382 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5383 echo "configure:5384: checking for alloca" >&5
5384 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5387 cat > conftest.
$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5392 # define alloca __builtin_alloca
5395 # include <malloc.h>
5396 # define alloca _alloca
5399 # include <alloca.h>
5404 # ifndef alloca /* predefined by HP cc +Olibcalls */
5413 char *p = (char *) alloca(1);
5416 if { (eval echo configure
:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5418 ac_cv_func_alloca_works
=yes
5420 echo "configure: failed program was:" >&5
5421 cat conftest.
$ac_ext >&5
5423 ac_cv_func_alloca_works
=no
5428 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5429 if test $ac_cv_func_alloca_works = yes; then
5430 cat >> confdefs.h
<<\EOF
5431 #define HAVE_ALLOCA 1
5436 if test $ac_cv_func_alloca_works = no
; then
5437 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5438 # that cause trouble. Some versions do not even contain alloca or
5439 # contain a buggy version. If you still want to use their alloca,
5440 # use ar to extract alloca.o from them instead of compiling alloca.c.
5441 ALLOCA
=alloca.
${ac_objext}
5442 cat >> confdefs.h
<<\EOF
5447 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5448 echo "configure:5449: checking whether alloca needs Cray hooks" >&5
5449 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5452 cat > conftest.
$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 #if defined(CRAY) && ! defined(CRAY2)
5462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5463 egrep "webecray" >/dev
/null
2>&1; then
5474 echo "$ac_t""$ac_cv_os_cray" 1>&6
5475 if test $ac_cv_os_cray = yes; then
5476 for ac_func
in _getb67 GETB67 getb67
; do
5477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_func" >&5
5479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.
$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char $ac_func(); below. */
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5506 if { (eval echo configure
:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5508 eval "ac_cv_func_$ac_func=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.
$ac_ext >&5
5513 eval "ac_cv_func_$ac_func=no"
5518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 cat >> confdefs.h
<<EOF
5521 #define CRAY_STACKSEG_END $ac_func
5526 echo "$ac_t""no" 1>&6
5532 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5533 echo "configure:5534: checking stack direction for C alloca" >&5
5534 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 if test "$cross_compiling" = yes; then
5538 ac_cv_c_stack_direction
=0
5540 cat > conftest.
$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 find_stack_direction ()
5545 static char *addr = 0;
5550 return find_stack_direction ();
5553 return (&dummy > addr) ? 1 : -1;
5557 exit (find_stack_direction() < 0);
5560 if { (eval echo configure
:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5562 ac_cv_c_stack_direction
=1
5564 echo "configure: failed program was:" >&5
5565 cat conftest.
$ac_ext >&5
5567 ac_cv_c_stack_direction
=-1
5574 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5575 cat >> confdefs.h
<<EOF
5576 #define STACK_DIRECTION $ac_cv_c_stack_direction
5582 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
5583 echo "configure:5584: checking whether we are using the GNU C Library 2.1 or newer" >&5
5584 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5587 cat > conftest.
$ac_ext <<EOF
5588 #line 5589 "configure"
5589 #include "confdefs.h"
5591 #include <features.h>
5592 #ifdef __GNU_LIBRARY__
5593 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5600 egrep "Lucky GNU user" >/dev
/null
2>&1; then
5602 ac_cv_gnu_library_2_1
=yes
5605 ac_cv_gnu_library_2_1
=no
5613 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
5615 GLIBC21
="$ac_cv_gnu_library_2_1"
5619 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5620 stdlib.h string.h unistd.h sys
/param.h
5622 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5624 echo "configure:5625: checking for $ac_hdr" >&5
5625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5626 echo $ac_n "(cached) $ac_c" 1>&6
5628 cat > conftest.
$ac_ext <<EOF
5629 #line 5630 "configure"
5630 #include "confdefs.h"
5633 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5634 { (eval echo configure
:5635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5635 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5636 if test -z "$ac_err"; then
5638 eval "ac_cv_header_$ac_safe=yes"
5641 echo "configure: failed program was:" >&5
5642 cat conftest.
$ac_ext >&5
5644 eval "ac_cv_header_$ac_safe=no"
5648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5650 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5651 cat >> confdefs.h
<<EOF
5652 #define $ac_tr_hdr 1
5656 echo "$ac_t""no" 1>&6
5660 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5661 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5662 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5665 echo "configure:5666: checking for $ac_func" >&5
5666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5669 cat > conftest.
$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5672 /* System header to define __stub macros and hopefully few prototypes,
5673 which can conflict with char $ac_func(); below. */
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5682 /* The GNU C library defines this for functions which it implements
5683 to always fail with ENOSYS. Some functions are actually named
5684 something starting with __ and the normal name is an alias. */
5685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693 if { (eval echo configure
:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5695 eval "ac_cv_func_$ac_func=yes"
5697 echo "configure: failed program was:" >&5
5698 cat conftest.
$ac_ext >&5
5700 eval "ac_cv_func_$ac_func=no"
5705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5707 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5708 cat >> confdefs.h
<<EOF
5709 #define $ac_tr_func 1
5713 echo "$ac_t""no" 1>&6
5720 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5721 if test "${with_libiconv_prefix+set}" = set; then
5722 withval
="$with_libiconv_prefix"
5724 for dir
in `echo "$withval" | tr : ' '`; do
5725 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
5726 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
5732 echo $ac_n "checking for iconv""... $ac_c" 1>&6
5733 echo "configure:5734: checking for iconv" >&5
5734 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5738 am_cv_func_iconv
="no, consider installing GNU libiconv"
5740 cat > conftest.
$ac_ext <<EOF
5741 #line 5742 "configure"
5742 #include "confdefs.h"
5746 iconv_t cd = iconv_open("","");
5747 iconv(cd,NULL,NULL,NULL,NULL);
5751 if { (eval echo configure
:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5753 am_cv_func_iconv
=yes
5755 echo "configure: failed program was:" >&5
5756 cat conftest.
$ac_ext >&5
5759 if test "$am_cv_func_iconv" != yes; then
5760 am_save_LIBS
="$LIBS"
5761 LIBS
="$LIBS -liconv"
5762 cat > conftest.
$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5768 iconv_t cd = iconv_open("","");
5769 iconv(cd,NULL,NULL,NULL,NULL);
5773 if { (eval echo configure
:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5776 am_cv_func_iconv
=yes
5778 echo "configure: failed program was:" >&5
5779 cat conftest.
$ac_ext >&5
5782 LIBS
="$am_save_LIBS"
5787 echo "$ac_t""$am_cv_func_iconv" 1>&6
5788 if test "$am_cv_func_iconv" = yes; then
5789 cat >> confdefs.h
<<\EOF
5790 #define HAVE_ICONV 1
5793 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
5794 echo "configure:5795: checking for iconv declaration" >&5
5795 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5799 cat > conftest.
$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5809 #if defined(__STDC__) || defined(__cplusplus)
5810 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5819 if { (eval echo configure
:5820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5821 am_cv_proto_iconv_arg1
=""
5823 echo "configure: failed program was:" >&5
5824 cat conftest.
$ac_ext >&5
5826 am_cv_proto_iconv_arg1
="const"
5829 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);"
5832 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5833 echo "$ac_t""${ac_t:-
5834 }$am_cv_proto_iconv" 1>&6
5835 cat >> confdefs.h
<<EOF
5836 #define ICONV_CONST $am_cv_proto_iconv_arg1
5841 if test "$am_cv_lib_iconv" = yes; then
5847 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
5848 echo "configure:5849: checking for nl_langinfo and CODESET" >&5
5849 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 cat > conftest.
$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5855 #include <langinfo.h>
5857 char* cs = nl_langinfo(CODESET);
5860 if { (eval echo configure
:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5862 am_cv_langinfo_codeset
=yes
5864 echo "configure: failed program was:" >&5
5865 cat conftest.
$ac_ext >&5
5867 am_cv_langinfo_codeset
=no
5873 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5874 if test $am_cv_langinfo_codeset = yes; then
5875 cat >> confdefs.h
<<\EOF
5876 #define HAVE_LANGINFO_CODESET 1
5881 if test $ac_cv_header_locale_h = yes; then
5882 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
5883 echo "configure:5884: checking for LC_MESSAGES" >&5
5884 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5895 if { (eval echo configure
:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5897 am_cv_val_LC_MESSAGES
=yes
5899 echo "configure: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5902 am_cv_val_LC_MESSAGES
=no
5907 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5908 if test $am_cv_val_LC_MESSAGES = yes; then
5909 cat >> confdefs.h
<<\EOF
5910 #define HAVE_LC_MESSAGES 1
5915 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
5916 echo "configure:5917: checking whether NLS is requested" >&5
5917 # Check whether --enable-nls or --disable-nls was given.
5918 if test "${enable_nls+set}" = set; then
5919 enableval
="$enable_nls"
5925 echo "$ac_t""$USE_NLS" 1>&6
5928 BUILD_INCLUDED_LIBINTL
=no
5929 USE_INCLUDED_LIBINTL
=no
5933 if test "$USE_NLS" = "yes"; then
5934 cat >> confdefs.h
<<\EOF
5935 #define ENABLE_NLS 1
5938 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
5939 echo "configure:5940: checking whether included gettext is requested" >&5
5940 # Check whether --with-included-gettext or --without-included-gettext was given.
5941 if test "${with_included_gettext+set}" = set; then
5942 withval
="$with_included_gettext"
5943 nls_cv_force_use_gnu_gettext
=$withval
5945 nls_cv_force_use_gnu_gettext
=no
5948 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5950 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5951 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5957 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
5958 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
5959 echo "configure:5960: checking for libintl.h" >&5
5960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 cat > conftest.
$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 #include <libintl.h>
5968 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5969 { (eval echo configure
:5970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5970 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5971 if test -z "$ac_err"; then
5973 eval "ac_cv_header_$ac_safe=yes"
5976 echo "configure: failed program was:" >&5
5977 cat conftest.
$ac_ext >&5
5979 eval "ac_cv_header_$ac_safe=no"
5983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5984 echo "$ac_t""yes" 1>&6
5985 cat >> confdefs.h
<<\EOF
5986 #define HAVE_LIBINTL_H 1
5989 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
5990 echo "configure:5991: checking for GNU gettext in libc" >&5
5991 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.
$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 #include <libintl.h>
5998 extern int _nl_msg_cat_cntr;
6000 bindtextdomain ("", "");
6001 return (int) gettext ("") + _nl_msg_cat_cntr
6004 if { (eval echo configure
:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6006 gt_cv_func_gnugettext1_libc
=yes
6008 echo "configure: failed program was:" >&5
6009 cat conftest.
$ac_ext >&5
6011 gt_cv_func_gnugettext1_libc
=no
6016 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
6018 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6019 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
6020 echo "configure:6021: checking for GNU gettext in libintl" >&5
6021 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 gt_save_LIBS
="$LIBS"
6025 LIBS
="$LIBS -lintl $LIBICONV"
6026 cat > conftest.
$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6029 #include <libintl.h>
6030 extern int _nl_msg_cat_cntr;
6032 bindtextdomain ("", "");
6033 return (int) gettext ("") + _nl_msg_cat_cntr
6036 if { (eval echo configure
:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6038 gt_cv_func_gnugettext1_libintl
=yes
6040 echo "configure: failed program was:" >&5
6041 cat conftest.
$ac_ext >&5
6043 gt_cv_func_gnugettext1_libintl
=no
6046 LIBS
="$gt_save_LIBS"
6049 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
6052 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6053 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6054 && test "$PACKAGE" != gettext; }; then
6055 cat >> confdefs.h
<<\EOF
6056 #define HAVE_GETTEXT 1
6060 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6061 INTLLIBS
="-lintl $LIBICONV"
6064 gt_save_LIBS
="$LIBS"
6065 LIBS
="$LIBS $INTLLIBS"
6066 for ac_func
in dcgettext
6068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6069 echo "configure:6070: checking for $ac_func" >&5
6070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6073 cat > conftest.
$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6076 /* System header to define __stub macros and hopefully few prototypes,
6077 which can conflict with char $ac_func(); below. */
6079 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6086 /* The GNU C library defines this for functions which it implements
6087 to always fail with ENOSYS. Some functions are actually named
6088 something starting with __ and the normal name is an alias. */
6089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6097 if { (eval echo configure
:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6099 eval "ac_cv_func_$ac_func=yes"
6101 echo "configure: failed program was:" >&5
6102 cat conftest.
$ac_ext >&5
6104 eval "ac_cv_func_$ac_func=no"
6109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6110 echo "$ac_t""yes" 1>&6
6111 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6112 cat >> confdefs.h
<<EOF
6113 #define $ac_tr_func 1
6117 echo "$ac_t""no" 1>&6
6121 LIBS
="$gt_save_LIBS"
6123 # Extract the first word of "msgfmt", so it can be a program name with args.
6124 set dummy msgfmt
; ac_word
=$2
6125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6126 echo "configure:6127: checking for $ac_word" >&5
6127 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6132 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6135 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6136 for ac_dir
in $PATH; do
6137 test -z "$ac_dir" && ac_dir
=.
6138 if test -f $ac_dir/$ac_word; then
6139 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6140 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6146 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6150 MSGFMT
="$ac_cv_path_MSGFMT"
6151 if test "$MSGFMT" != ":"; then
6152 echo "$ac_t""$MSGFMT" 1>&6
6154 echo "$ac_t""no" 1>&6
6157 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6158 set dummy gmsgfmt
; ac_word
=$2
6159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6160 echo "configure:6161: checking for $ac_word" >&5
6161 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6162 echo $ac_n "(cached) $ac_c" 1>&6
6166 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6169 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6172 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6174 for ac_dir
in $ac_dummy; do
6175 test -z "$ac_dir" && ac_dir
=.
6176 if test -f $ac_dir/$ac_word; then
6177 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6182 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6186 GMSGFMT
="$ac_cv_path_GMSGFMT"
6187 if test -n "$GMSGFMT"; then
6188 echo "$ac_t""$GMSGFMT" 1>&6
6190 echo "$ac_t""no" 1>&6
6194 # Extract the first word of "xgettext", so it can be a program name with args.
6195 set dummy xgettext
; ac_word
=$2
6196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_word" >&5
6198 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6203 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6207 for ac_dir
in $PATH; do
6208 test -z "$ac_dir" && ac_dir
=.
6209 if test -f $ac_dir/$ac_word; then
6210 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6211 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6217 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6221 XGETTEXT
="$ac_cv_path_XGETTEXT"
6222 if test "$XGETTEXT" != ":"; then
6223 echo "$ac_t""$XGETTEXT" 1>&6
6225 echo "$ac_t""no" 1>&6
6233 echo "$ac_t""no" 1>&6
6237 if test "$CATOBJEXT" = "NONE"; then
6238 nls_cv_use_gnu_gettext
=yes
6242 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6243 INTLOBJS
="\$(GETTOBJS)"
6244 # Extract the first word of "msgfmt", so it can be a program name with args.
6245 set dummy msgfmt
; ac_word
=$2
6246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6247 echo "configure:6248: checking for $ac_word" >&5
6248 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6253 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6256 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6257 for ac_dir
in $PATH; do
6258 test -z "$ac_dir" && ac_dir
=.
6259 if test -f $ac_dir/$ac_word; then
6260 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
6261 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6267 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6271 MSGFMT
="$ac_cv_path_MSGFMT"
6272 if test "$MSGFMT" != ":"; then
6273 echo "$ac_t""$MSGFMT" 1>&6
6275 echo "$ac_t""no" 1>&6
6278 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6279 set dummy gmsgfmt
; ac_word
=$2
6280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6281 echo "configure:6282: checking for $ac_word" >&5
6282 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6287 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6290 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
6293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6295 for ac_dir
in $ac_dummy; do
6296 test -z "$ac_dir" && ac_dir
=.
6297 if test -f $ac_dir/$ac_word; then
6298 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6303 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6307 GMSGFMT
="$ac_cv_path_GMSGFMT"
6308 if test -n "$GMSGFMT"; then
6309 echo "$ac_t""$GMSGFMT" 1>&6
6311 echo "$ac_t""no" 1>&6
6314 # Extract the first word of "xgettext", so it can be a program name with args.
6315 set dummy xgettext
; ac_word
=$2
6316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6317 echo "configure:6318: checking for $ac_word" >&5
6318 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6323 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6326 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6327 for ac_dir
in $PATH; do
6328 test -z "$ac_dir" && ac_dir
=.
6329 if test -f $ac_dir/$ac_word; then
6330 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
6331 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6337 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6341 XGETTEXT
="$ac_cv_path_XGETTEXT"
6342 if test "$XGETTEXT" != ":"; then
6343 echo "$ac_t""$XGETTEXT" 1>&6
6345 echo "$ac_t""no" 1>&6
6349 BUILD_INCLUDED_LIBINTL
=yes
6350 USE_INCLUDED_LIBINTL
=yes
6352 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
6353 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
6354 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6357 if test "$GMSGFMT" != ":"; then
6358 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
6361 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
6366 if test "$XGETTEXT" != ":"; then
6367 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
6370 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6380 if test "$PACKAGE" = gettext; then
6381 BUILD_INCLUDED_LIBINTL
=yes
6384 for ac_prog
in bison
6386 # Extract the first word of "$ac_prog", so it can be a program name with args.
6387 set dummy
$ac_prog; ac_word
=$2
6388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6389 echo "configure:6390: checking for $ac_word" >&5
6390 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6393 if test -n "$INTLBISON"; then
6394 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
6396 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6398 for ac_dir
in $ac_dummy; do
6399 test -z "$ac_dir" && ac_dir
=.
6400 if test -f $ac_dir/$ac_word; then
6401 ac_cv_prog_INTLBISON
="$ac_prog"
6408 INTLBISON
="$ac_cv_prog_INTLBISON"
6409 if test -n "$INTLBISON"; then
6410 echo "$ac_t""$INTLBISON" 1>&6
6412 echo "$ac_t""no" 1>&6
6415 test -n "$INTLBISON" && break
6418 if test -z "$INTLBISON"; then
6421 echo $ac_n "checking version of bison""... $ac_c" 1>&6
6422 echo "configure:6423: checking version of bison" >&5
6423 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6424 case $ac_prog_version in
6425 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
6426 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
6427 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
6428 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
6430 echo "$ac_t""$ac_prog_version" 1>&6
6432 if test $ac_verc_fail = yes; then
6445 if test $USE_INCLUDED_LIBINTL = yes; then
6446 cat >> confdefs.h
<<\EOF
6447 #define USE_INCLUDED_LIBINTL 1
6453 nls_cv_header_libgt
=
6465 if test "x$CATOBJEXT" != x
; then
6466 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6467 echo "configure:6468: checking for catalogs to be installed" >&5
6468 # Look for .po and .gmo files in the source directory.
6471 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
6472 # If there aren't any .gmo files the shell will give us the
6473 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6475 case "$cat" in *\
**)
6478 # The quadruple backslash is collapsed to a double backslash
6479 # by the backticks, then collapsed again by the double quotes,
6480 # leaving us with one backslash in the sed expression (right
6481 # before the dot that mustn't act as a wildcard). The dot to
6482 # be escaped in the second expression is hiding inside CATOBJEXT.
6483 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
6484 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
6485 # The user is allowed to set LINGUAS to a list of languages to
6486 # install catalogs for. If it's empty that means "all of them."
6487 if test "x$LINGUAS" = x
; then
6488 CATALOGS
="$CATALOGS $cat"
6489 XLINGUAS
="$XLINGUAS $lang"
6491 case "$LINGUAS" in *$lang*)
6492 CATALOGS
="$CATALOGS $cat"
6493 XLINGUAS
="$XLINGUAS $lang"
6499 echo "$ac_t""$LINGUAS" 1>&6
6503 if test -n "$ac_aux_dir"; then
6504 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
6506 if test -z "$MKINSTALLDIRS"; then
6507 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6511 INTL_LIBTOOL_SUFFIX_PREFIX
=
6515 # Windows32 Registry support for specifying GCC installation paths.
6516 # Check whether --enable-win32-registry or --disable-win32-registry was given.
6517 if test "${enable_win32_registry+set}" = set; then
6518 enableval
="$enable_win32_registry"
6523 win32 | pe | cygwin
* | mingw32
* | uwin
*)
6524 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
6525 echo "configure:6526: checking whether windows registry support is requested" >&5
6526 if test "x$enable_win32_registry" != xno
; then
6527 cat >> confdefs.h
<<\EOF
6528 #define ENABLE_WIN32_REGISTRY 1
6531 echo "$ac_t""yes" 1>&6
6533 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6
6534 echo "configure:6535: checking for library containing RegOpenKeyExA" >&5
6535 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6538 ac_func_search_save_LIBS
="$LIBS"
6539 ac_cv_search_RegOpenKeyExA
="no"
6540 cat > conftest.
$ac_ext <<EOF
6541 #line 6542 "configure"
6542 #include "confdefs.h"
6543 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6546 char RegOpenKeyExA();
6552 if { (eval echo configure
:6553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6554 ac_cv_search_RegOpenKeyExA
="none required"
6556 echo "configure: failed program was:" >&5
6557 cat conftest.
$ac_ext >&5
6560 test "$ac_cv_search_RegOpenKeyExA" = "no" && for i
in advapi32
; do
6561 LIBS
="-l$i $ac_func_search_save_LIBS"
6562 cat > conftest.
$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 /* Override any gcc2 internal prototype to avoid an error. */
6566 /* We use char because int might match the return type of a gcc2
6567 builtin and then its argument prototype would still apply. */
6568 char RegOpenKeyExA();
6574 if { (eval echo configure
:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6576 ac_cv_search_RegOpenKeyExA
="-l$i"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.
$ac_ext >&5
6584 LIBS
="$ac_func_search_save_LIBS"
6587 echo "$ac_t""$ac_cv_search_RegOpenKeyExA" 1>&6
6588 if test "$ac_cv_search_RegOpenKeyExA" != "no"; then
6589 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
6595 echo "$ac_t""no" 1>&6
6598 # Check if user specified a different registry key.
6599 case "x${enable_win32_registry}" in
6602 gcc_cv_win32_registry_key
="$VERSION"
6605 # no registry lookup.
6606 gcc_cv_win32_registry_key
=''
6609 # user-specified key.
6610 gcc_cv_win32_registry_key
="$enable_win32_registry"
6614 if test "x$enable_win32_registry" != xno
; then
6615 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
6616 echo "configure:6617: checking registry key on windows hosts" >&5
6617 cat >> confdefs.h
<<EOF
6618 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
6621 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
6626 # Get an absolute path to the GCC top-level source directory
6632 # Conditionalize the makefile for this host machine.
6633 # Make-host contains the concatenation of all host makefile fragments
6634 # [there can be more than one]. This file is built by configure.frag.
6635 host_overrides
=Make-host
6636 dep_host_xmake_file
=
6637 for f
in ..
${host_xmake_file}
6639 if test -f ${srcdir}/config
/$f
6641 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
6645 # Conditionalize the makefile for this target machine.
6646 # Make-target contains the concatenation of all host makefile fragments
6647 # [there can be more than one]. This file is built by configure.frag.
6648 target_overrides
=Make-target
6650 for f
in ..
${tmake_file}
6652 if test -f ${srcdir}/config
/$f
6654 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
6658 # If the host doesn't support symlinks, modify CC in
6659 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
6660 # Otherwise, we can use "CC=$(CC)".
6662 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
6664 cc_set_by_configure
="\$(CC)"
6665 quoted_cc_set_by_configure
="\$(CC)"
6666 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6667 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
6670 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
6672 symbolic_link
="cp -p"
6676 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
6677 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
6678 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
6679 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
6683 out_object_file
=`basename $out_file .c`.o
6686 for f
in $tm_file; do
6689 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6691 tm_file_list
="${tm_file_list} $f" ;;
6692 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
6697 for f
in $tm_p_file; do
6698 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
6702 for f
in $host_xm_file; do
6705 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6706 auto-host.h | defaults.h
)
6707 host_xm_file_list
="${host_xm_file_list} $f" ;;
6708 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
6713 for f
in $build_xm_file; do
6716 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
6717 auto-build.h | auto-host.h | defaults.h
)
6718 build_xm_file_list
="${build_xm_file_list} $f" ;;
6719 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
6723 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
6724 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
6727 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
6728 if test x
$host != x
$target
6730 CROSS
="-DCROSS_COMPILE"
6732 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
6735 # If this is a cross-compiler that does not
6736 # have its own set of headers then define
6739 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
6740 # This prevents libgcc2 from containing any code which requires libc
6743 if test x
$host != x
$target && test x
$with_headers = x
; then
6744 inhibit_libc
=-Dinhibit_libc
6746 if test x
$with_newlib = xyes
; then
6747 inhibit_libc
=-Dinhibit_libc
6752 # When building gcc with a cross-compiler, we need to adjust things so
6753 # that the generator programs are still built with the native compiler.
6754 # Also, we cannot run fixincludes or fix-header.
6755 # Note that the terminology here is wrong; it should be BUILD_* throughout.
6758 # These are the normal (build=host) settings:
6760 HOST_PREFIX_1
=ignore-
6762 HOST_CFLAGS
='$(ALL_CFLAGS)'
6764 STMP_FIXINC
=stmp-fixinc
6765 STMP_FIXPROTO
=stmp-fixproto
6767 # And these apply if build != host.
6768 if test x
$build != x
$host
6771 HOST_PREFIX_1
=build-
6772 HOST_CC
='$(CC_FOR_BUILD)'
6773 HOST_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
6779 # Expand extra_headers to include complete path.
6780 # This substitutes for lots of t-* files.
6782 if test "x$extra_headers" = x
6785 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
6786 for file in $extra_headers;
6788 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
6792 if test x
$use_collect2 = xno
; then
6796 # Add a definition of USE_COLLECT2 if system wants one.
6797 if test x
$use_collect2 != x
6799 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
6800 xm_defines
="${xm_defines} USE_COLLECT2"
6803 # If we have gas in the build tree, make a link to it.
6804 if test -f ..
/gas
/Makefile
; then
6805 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
6808 # If we have nm and objdump in the build tree, make a link to them.
6809 if test -f ..
/binutils
/Makefile
; then
6810 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
6811 rm -f objdump
; $symbolic_link ..
/binutils
/objdump
$host_exeext objdump
$host_exeext 2>/dev
/null
6814 # If we have ld in the build tree, make a link to it.
6815 if test -f ..
/ld
/Makefile
; then
6816 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
6819 # Figure out what assembler we will be using.
6820 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
6821 echo "configure:6822: checking what assembler to use" >&5
6823 gcc_cv_gas_major_version
=
6824 gcc_cv_gas_minor_version
=
6825 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6826 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6827 if test -x "$DEFAULT_ASSEMBLER"; then
6828 gcc_cv_as
="$DEFAULT_ASSEMBLER"
6829 elif test -x "$AS"; then
6831 elif test -x as
$host_exeext; then
6832 # Build using assembler in the current directory.
6833 gcc_cv_as
=.
/as
$host_exeext
6834 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
6835 # Single tree build which includes gas.
6836 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
6838 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6839 if test x
$gcc_cv_gas_version != x
; then
6843 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6844 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6847 if test "x$gcc_cv_as" = x
-a x
$host = x
$target; then
6849 # Search the same directories that the installed compiler will
6850 # search. Else we may find the wrong assembler and lose. If we
6851 # do not find a suitable assembler binary, then try the user's
6854 # Also note we have to check MD_EXEC_PREFIX before checking the
6855 # user's path. Unfortunately, there is no good way to get at the
6856 # value of MD_EXEC_PREFIX here. So we do a brute force search
6857 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6858 # to be fixed as part of the make/configure rewrite too.
6860 if test "x$exec_prefix" = xNONE
; then
6861 if test "x$prefix" = xNONE
; then
6862 test_prefix
=/usr
/local
6867 test_prefix
=$exec_prefix
6870 # If the loop below does not find an assembler, then use whatever
6871 # one we can find in the users's path.
6873 gcc_cv_as
=as
$host_exeext
6875 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6876 $test_prefix/lib/gcc-lib/$target \
6877 /usr/lib/gcc/$target/$gcc_version \
6878 /usr/lib/gcc/$target \
6879 $test_prefix/$target/bin/$target/$gcc_version \
6880 $test_prefix/$target/bin \
6885 /bsd43/usr/lib/cmplrs/cc \
6886 /usr/cross64/usr/bin \
6887 /usr/lib/cmplrs/cc \
6888 /sysv/usr/lib/cmplrs/cc \
6889 /svr4/usr/lib/cmplrs/cc \
6892 for dir
in $test_dirs; do
6893 if test -f $dir/as
$host_exeext; then
6894 gcc_cv_as
=$dir/as
$host_exeext
6899 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
6900 echo "$ac_t"""newly built gas
"" 1>&6
6902 echo "$ac_t""$gcc_cv_as" 1>&6
6905 # Figure out what linker we will be using.
6906 echo $ac_n "checking what linker to use""... $ac_c" 1>&6
6907 echo "configure:6908: checking what linker to use" >&5
6909 gcc_cv_gld_major_version
=
6910 gcc_cv_gld_minor_version
=
6911 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
6912 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
6913 if test -x "$DEFAULT_LINKER"; then
6914 gcc_cv_ld
="$DEFAULT_LINKER"
6915 elif test -x "$LD"; then
6917 elif test -x ld
$host_exeext; then
6918 # Build using linker in the current directory.
6919 gcc_cv_ld
=.
/ld
$host_exeext
6920 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in -a -f ..
/ld
/Makefile
; then
6921 # Single tree build which includes ld.
6922 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
6924 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6925 if test x
$gcc_cv_gld_version != x
; then
6929 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
6930 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6933 if test "x$gcc_cv_ld" = x
-a x
$host = x
$target; then
6935 # Search the same directories that the installed compiler will
6936 # search. Else we may find the wrong linker and lose. If we
6937 # do not find a suitable linker binary, then try the user's
6940 # Also note we have to check MD_EXEC_PREFIX before checking the
6941 # user's path. Unfortunately, there is no good way to get at the
6942 # value of MD_EXEC_PREFIX here. So we do a brute force search
6943 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6944 # to be fixed as part of the make/configure rewrite too.
6946 if test "x$exec_prefix" = xNONE
; then
6947 if test "x$prefix" = xNONE
; then
6948 test_prefix
=/usr
/local
6953 test_prefix
=$exec_prefix
6956 # If the loop below does not find an linker, then use whatever
6957 # one we can find in the users's path.
6959 gcc_cv_ld
=ld
$host_exeext
6961 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6962 $test_prefix/lib/gcc-lib/$target \
6963 /usr/lib/gcc/$target/$gcc_version \
6964 /usr/lib/gcc/$target \
6965 $test_prefix/$target/bin/$target/$gcc_version \
6966 $test_prefix/$target/bin \
6971 /bsd43/usr/lib/cmplrs/cc \
6972 /usr/cross64/usr/bin \
6973 /usr/lib/cmplrs/cc \
6974 /sysv/usr/lib/cmplrs/cc \
6975 /svr4/usr/lib/cmplrs/cc \
6978 for dir
in $test_dirs; do
6979 if test -f $dir/ld
$host_exeext; then
6980 gcc_cv_ld
=$dir/ld
$host_exeext
6985 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
6986 echo "$ac_t"""newly built ld
"" 1>&6
6988 echo "$ac_t""$gcc_cv_ld" 1>&6
6991 # Figure out what nm we will be using.
6992 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
6993 echo "configure:6994: checking what nm to use" >&5
6994 if test -x nm
$host_exeext; then
6995 gcc_cv_nm
=.
/nm
$host_exeext
6996 elif test x
$host = x
$target; then
6998 gcc_cv_nm
=nm
$host_exeext
7000 echo "$ac_t""$gcc_cv_nm" 1>&6
7002 # Figure out what objdump we will be using.
7003 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6
7004 echo "configure:7005: checking what objdump to use" >&5
7005 if test -x objdump
$host_exeext; then
7006 gcc_cv_objdump
=.
/objdump
$host_exeext
7007 elif test x
$host = x
$target; then
7009 gcc_cv_objdump
=objdump
$host_exeext
7011 echo "$ac_t""$gcc_cv_objdump" 1>&6
7013 # Figure out what assembler alignment features are present.
7014 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7015 echo "configure:7016: checking assembler alignment features" >&5
7016 gcc_cv_as_alignment_features
=none
7017 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7018 # Gas version 2.6 and later support for .balign and .p2align.
7019 # bytes to skip when using .p2align.
7020 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
7021 gcc_cv_as_alignment_features
=".balign and .p2align"
7022 cat >> confdefs.h
<<\EOF
7023 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7027 # Gas version 2.8 and later support specifying the maximum
7028 # bytes to skip when using .p2align.
7029 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
7030 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7031 cat >> confdefs.h
<<\EOF
7032 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7036 elif test x
$gcc_cv_as != x
; then
7037 # Check if we have .balign and .p2align
7038 echo ".balign 4" > conftest.s
7039 echo ".p2align 2" >> conftest.s
7040 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7041 gcc_cv_as_alignment_features
=".balign and .p2align"
7042 cat >> confdefs.h
<<\EOF
7043 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7047 rm -f conftest.s conftest.o
7048 # Check if specifying the maximum bytes to skip when
7049 # using .p2align is supported.
7050 echo ".p2align 4,,7" > conftest.s
7051 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7052 gcc_cv_as_alignment_features
=".p2align including maximum skip"
7053 cat >> confdefs.h
<<\EOF
7054 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7058 rm -f conftest.s conftest.o
7060 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7062 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7063 echo "configure:7064: checking assembler subsection support" >&5
7064 gcc_cv_as_subsections
=no
7065 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7066 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
7067 gcc_cv_as_subsections
="working .subsection -1"
7069 elif test x
$gcc_cv_as != x
; then
7070 # Check if we have .subsection
7071 echo ".subsection 1" > conftest.s
7072 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7073 gcc_cv_as_subsections
=".subsection"
7074 if test x
$gcc_cv_nm != x
; then
7075 cat > conftest.s
<<EOF
7076 conftest_label1: .word 0
7078 conftest_label2: .word 0
7081 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7082 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
7083 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
7084 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
7087 gcc_cv_as_subsections
="working .subsection -1"
7092 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7094 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
7095 cat >> confdefs.h
<<\EOF
7096 #define HAVE_GAS_SUBSECTION_ORDERING 1
7100 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7102 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
7103 echo "configure:7104: checking assembler weak support" >&5
7105 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7106 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
7107 gcc_cv_as_weak
="yes"
7109 elif test x
$gcc_cv_as != x
; then
7110 # Check if we have .weak
7111 echo " .weak foobar" > conftest.s
7112 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7113 gcc_cv_as_weak
="yes"
7115 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7117 if test x
"$gcc_cv_as_weak" = xyes
; then
7118 cat >> confdefs.h
<<\EOF
7119 #define HAVE_GAS_WEAK 1
7123 echo "$ac_t""$gcc_cv_as_weak" 1>&6
7125 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
7126 echo "configure:7127: checking assembler hidden support" >&5
7128 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7129 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
7130 gcc_cv_as_hidden
="yes"
7132 elif test x
$gcc_cv_as != x
; then
7133 # Check if we have .hidden
7134 echo " .hidden foobar" > conftest.s
7135 echo "foobar:" >> conftest.s
7136 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7137 gcc_cv_as_hidden
="yes"
7139 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7141 if test x
"$gcc_cv_as_hidden" = xyes
; then
7142 cat >> confdefs.h
<<\EOF
7143 #define HAVE_GAS_HIDDEN 1
7147 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
7149 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6
7150 echo "configure:7151: checking assembler leb128 support" >&5
7152 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7153 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
7154 gcc_cv_as_leb128
="yes"
7156 elif test x
$gcc_cv_as != x
; then
7157 # Check if we have .[us]leb128, and support symbol arithmetic with it.
7158 cat > conftest.s
<<EOF
7166 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7167 gcc_cv_as_leb128
="yes"
7169 # GAS versions before 2.11 do not support uleb128,
7170 # despite appearing to.
7171 # ??? There exists an elf-specific test that will crash
7172 # the assembler. Perhaps it's better to figure out whether
7173 # arbitrary sections are supported and try the test.
7174 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
7175 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7176 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
7177 as_major
=`echo $as_ver | sed 's/\..*//'`
7178 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
7179 if test $as_major -eq 2 -a $as_minor -lt 11; then
7180 gcc_cv_as_leb128
="no"
7184 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7186 if test x
"$gcc_cv_as_leb128" = xyes
; then
7187 cat >> confdefs.h
<<\EOF
7188 #define HAVE_AS_LEB128 1
7192 echo "$ac_t""$gcc_cv_as_leb128" 1>&6
7194 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6
7195 echo "configure:7196: checking assembler eh_frame optimization" >&5
7196 gcc_cv_as_eh_frame
=no
7197 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7198 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
7199 gcc_cv_as_eh_frame
="yes"
7201 elif test x
$gcc_cv_as != x
; then
7202 # Check if this is GAS.
7203 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
7204 rm -f a.out
2> /dev
/null
7205 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
7206 # Versions up to and including 2.11.0 may mis-optimize
7207 # .eh_frame data. Try something.
7208 cat > conftest.s
<<EOF
7215 .section .eh_frame,"aw",@progbits
7217 .4byte .LECIE1-.LSCIE1
7231 .4byte .LEFDE1-.LASFDE1
7233 .4byte .LASFDE1-__FRAME_BEGIN__
7242 cat > conftest.lit
<<EOF
7243 0000 10000000 00000000 017a0001 781a0004 .........z..x...
7244 0010 01000000 12000000 18000000 00000000 ................
7245 0020 08000000 04080000 0044 .........D
7247 cat > conftest.big
<<EOF
7248 0000 00000010 00000000 017a0001 781a0004 .........z..x...
7249 0010 00000001 00000012 00000018 00000000 ................
7250 0020 00000008 04000000 0844 .........D
7252 # If the assembler didn't choke, and we can objdump,
7253 # and we got the correct data, then succeed.
7254 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7255 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
7256 |
tail -3 > conftest.got \
7257 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
7258 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
7260 gcc_cv_as_eh_frame
="yes"
7262 gcc_cv_as_eh_frame
="bad"
7263 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
7264 cat >> confdefs.h
<<\EOF
7265 #define USE_AS_TRADITIONAL_FORMAT 1
7273 echo "$ac_t""$gcc_cv_as_eh_frame" 1>&6
7275 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6
7276 echo "configure:7277: checking assembler section merging support" >&5
7277 gcc_cv_as_shf_merge
=no
7278 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7279 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
7280 gcc_cv_as_shf_merge
=yes
7282 elif test x
$gcc_cv_as != x
; then
7283 # Check if we support SHF_MERGE sections
7284 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
7285 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
7286 gcc_cv_as_shf_merge
=yes
7288 rm -f conftest.s conftest.o
7290 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
7291 cat >> confdefs.h
<<\EOF
7292 #define HAVE_GAS_SHF_MERGE 1
7296 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6
7299 # All TARGET_ABI_OSF targets.
7300 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
7301 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6
7302 echo "configure:7303: checking assembler supports explicit relocations" >&5
7303 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then
7304 echo $ac_n "(cached) $ac_c" 1>&6
7307 gcc_cv_as_explicit_relocs
=unknown
7308 if test x
$gcc_cv_gas_major_version != x \
7309 -a x
$gcc_cv_gas_minor_version != x
7311 if test "$gcc_cv_gas_major_version" -eq 2 \
7312 -a "$gcc_cv_gas_minor_version" -ge 12 \
7313 -o "$gcc_cv_gas_major_version" -gt 2; then
7314 gcc_cv_as_explicit_relocs
=yes
7316 elif test x
$gcc_cv_as != x
; then
7317 cat > conftest.s
<< 'EOF'
7320 extbl
$3, $2, $3 !lituse_bytoff
!1
7321 ldq
$2, a
($29) !literal
!1
7322 ldq
$4, b
($29) !literal
!2
7323 ldq_u
$3, 0($2) !lituse_base
!1
7324 ldq
$27, f
($29) !literal
!5
7325 jsr
$26, ($27), f
!lituse_jsr
!5
7326 ldah
$29, 0($26) !gpdisp
!3
7327 lda
$0, c
($29) !gprel
7328 ldah
$1, d
($29) !gprelhigh
7329 lda
$1, d
($1) !gprellow
7330 lda
$29, 0($29) !gpdisp
!3
7332 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7333 gcc_cv_as_explicit_relocs
=yes
7335 gcc_cv_as_explicit_relocs
=no
7337 rm -f conftest.s conftest.o
7342 echo "$ac_t""$gcc_cv_as_explicit_relocs" 1>&6
7343 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
7344 cat >> confdefs.h
<<\EOF
7345 #define HAVE_AS_EXPLICIT_RELOCS 1
7351 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
7352 echo "configure:7353: checking assembler .register pseudo-op support" >&5
7353 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7357 gcc_cv_as_register_pseudo_op
=unknown
7358 if test x
$gcc_cv_as != x
; then
7359 # Check if we have .register
7360 echo ".register %g2, #scratch" > conftest.s
7361 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7362 gcc_cv_as_register_pseudo_op
=yes
7364 gcc_cv_as_register_pseudo_op
=no
7366 rm -f conftest.s conftest.o
7371 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
7372 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
7373 cat >> confdefs.h
<<\EOF
7374 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7379 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
7380 echo "configure:7381: checking assembler supports -relax" >&5
7381 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7385 gcc_cv_as_relax_opt
=unknown
7386 if test x
$gcc_cv_as != x
; then
7387 # Check if gas supports -relax
7388 echo ".text" > conftest.s
7389 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
7390 gcc_cv_as_relax_opt
=yes
7392 gcc_cv_as_relax_opt
=no
7394 rm -f conftest.s conftest.o
7399 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
7400 if test "x$gcc_cv_as_relax_opt" = xyes
; then
7401 cat >> confdefs.h
<<\EOF
7402 #define HAVE_AS_RELAX_OPTION 1
7407 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
7408 echo "configure:7409: checking assembler and linker support unaligned pc related relocs" >&5
7409 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7413 gcc_cv_as_sparc_ua_pcrel
=unknown
7414 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
7415 gcc_cv_as_sparc_ua_pcrel
=no
7416 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
7417 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1; then
7418 if $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
7419 gcc_cv_as_sparc_ua_pcrel
=yes
7422 rm -f conftest.s conftest.o conftest
7427 echo "$ac_t""$gcc_cv_as_sparc_ua_pcrel" 1>&6
7428 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
7429 cat >> confdefs.h
<<\EOF
7430 #define HAVE_AS_SPARC_UA_PCREL 1
7437 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
7438 echo "configure:7439: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
7439 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
7440 echo $ac_n "(cached) $ac_c" 1>&6
7443 if test -n "$gcc_cv_as"; then
7444 echo ".xword foo" > conftest.s
7445 gcc_cv_as_flags64
=no
7446 for flag
in "-xarch=v9" "-64 -Av9"; do
7447 if $gcc_cv_as $flag -o conftest.o conftest.s \
7448 > /dev
/null
2>&1; then
7449 gcc_cv_as_flags64
=$flag
7453 rm -f conftest.s conftest.o
7455 if test "$gas" = yes; then
7456 gcc_cv_as_flags64
="-64 -Av9"
7458 gcc_cv_as_flags64
="-xarch=v9"
7464 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
7465 if test "x$gcc_cv_as_flags64" = xno
; then
7467 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7468 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
7471 cat >> confdefs.h
<<EOF
7472 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
7477 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
7481 if test "x$gcc_cv_as_flags64" != xno
; then
7482 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
7483 echo "configure:7484: checking for assembler offsetable %lo() support" >&5
7484 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7488 gcc_cv_as_offsetable_lo10
=unknown
7489 if test "x$gcc_cv_as" != x
; then
7490 # Check if assembler has offsetable %lo()
7491 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
7492 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
7493 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
7495 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
7496 > /dev
/null
2>&1; then
7497 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
7498 gcc_cv_as_offsetable_lo10
=no
7500 gcc_cv_as_offsetable_lo10
=yes
7503 gcc_cv_as_offsetable_lo10
=no
7505 rm -f conftest.s conftest.o conftest1.s conftest1.o
7510 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
7511 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
7512 cat >> confdefs.h
<<\EOF
7513 #define HAVE_AS_OFFSETABLE_LO10 1
7521 i
[34567]86-*-* | x86_64-
*-*)
7522 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
7523 echo "configure:7524: checking assembler instructions" >&5
7524 gcc_cv_as_instructions
=
7525 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
7526 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
7527 gcc_cv_as_instructions
="filds fists"
7529 elif test x
$gcc_cv_as != x
; then
7530 set "filds fists" "filds mem; fists mem"
7533 echo "$2" > conftest.s
7534 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7535 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
7539 rm -f conftest.s conftest.o
7541 if test x
"$gcc_cv_as_instructions" != x
; then
7542 cat >> confdefs.h
<<EOF
7543 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
7547 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
7549 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6
7550 echo "configure:7551: checking assembler GOTOFF in data directives" >&5
7551 gcc_cv_as_gotoff_in_data
=no
7552 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
7554 if test "$gcc_cv_gas_major_version" -eq 2 \
7555 -a "$gcc_cv_gas_minor_version" -ge 11 \
7556 -o "$gcc_cv_gas_major_version" -gt 2; then
7557 gcc_cv_as_gotoff_in_data
=yes
7559 elif test x
$gcc_cv_as != x
; then
7560 cat > conftest.s
<<EOF
7567 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
7568 gcc_cv_as_gotoff_in_data
=yes
7571 cat >> confdefs.h
<<EOF
7572 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
7575 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6
7579 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6
7580 echo "configure:7581: checking assembler dwarf2 debug_line support" >&5
7581 gcc_cv_as_dwarf2_debug_line
=no
7582 # ??? Not all targets support dwarf2 debug_line, even within a version
7583 # of gas. Moreover, we need to emit a valid instruction to trigger any
7584 # info to the output file. So, as supported targets are added to gas 2.11,
7585 # add some instruction here to (also) show we expect this might work.
7586 # ??? Once 2.11 is released, probably need to add first known working
7587 # version to the per-target configury.
7589 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* | x86_64
*-*-*)
7596 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7598 if test "$gcc_cv_gas_major_version" -eq 2 \
7599 -a "$gcc_cv_gas_minor_version" -ge 11 \
7600 -o "$gcc_cv_gas_major_version" -gt 2 \
7601 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7602 && test x
"$insn" != x
; then
7603 gcc_cv_as_dwarf2_debug_line
="yes"
7605 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7606 echo ' .file 1 "conftest.s"' > conftest.s
7607 echo ' .loc 1 3 0' >> conftest.s
7608 echo " $insn" >> conftest.s
7609 # ??? This fails with non-gnu grep.
7610 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
7611 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
7612 # The .debug_line file table must be in the exact order that
7613 # we specified the files, since these indices are also used
7614 # by DW_AT_decl_file. Approximate this test by testing if
7615 # the assembler bitches if the same index is assigned twice.
7616 echo ' .file 1 "foo.s"' > conftest.s
7617 echo ' .file 1 "bar.s"' >> conftest.s
7618 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
7620 gcc_cv_as_dwarf2_debug_line
="no"
7622 gcc_cv_as_dwarf2_debug_line
="yes"
7625 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7627 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
7628 cat >> confdefs.h
<<\EOF
7629 #define HAVE_AS_DWARF2_DEBUG_LINE 1
7633 echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6
7635 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6
7636 echo "configure:7637: checking assembler --gdwarf2 support" >&5
7637 gcc_cv_as_gdwarf2_flag
=no
7638 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7640 if test "$gcc_cv_gas_major_version" -eq 2 \
7641 -a "$gcc_cv_gas_minor_version" -ge 11 \
7642 -o "$gcc_cv_gas_major_version" -gt 2 \
7643 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7644 && test x
"$insn" != x
; then
7645 gcc_cv_as_gdwarf2_debug_flag
="yes"
7647 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7648 echo '' > conftest.s
7649 # ??? This fails with non-gnu grep.
7650 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
7652 gcc_cv_as_gdwarf2_flag
="yes"
7654 rm -f conftest.s conftest.o
7656 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
7657 cat >> confdefs.h
<<\EOF
7658 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
7662 echo "$ac_t""$gcc_cv_as_gdwarf2_flag" 1>&6
7664 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6
7665 echo "configure:7666: checking assembler --gstabs support" >&5
7666 gcc_cv_as_gstabs_flag
=no
7667 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
;
7669 if test "$gcc_cv_gas_major_version" -eq 2 \
7670 -a "$gcc_cv_gas_minor_version" -ge 11 \
7671 -o "$gcc_cv_gas_major_version" -gt 2 \
7672 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
7673 && test x
"$insn" != x
; then
7674 gcc_cv_as_gstabs_debug_flag
="yes"
7676 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
7677 echo '' > conftest.s
7678 # ??? This fails with non-gnu grep.
7679 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
7680 gcc_cv_as_gstabs_flag
="yes"
7682 rm -f conftest.s conftest.o
7684 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
7685 cat >> confdefs.h
<<\EOF
7686 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
7690 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6
7692 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6
7693 echo "configure:7694: checking linker PT_GNU_EH_FRAME support" >&5
7694 gcc_cv_ld_eh_frame_hdr
=no
7695 if test x
$gcc_cv_gld_major_version != x
-a x
$gcc_cv_gld_minor_version != x
; then
7696 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
7697 gcc_cv_ld_eh_frame_hdr
=yes
7699 elif test x
$gcc_cv_ld != x
; then
7700 # Check if linker supports --eh-frame-hdr option
7701 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
7702 gcc_cv_ld_eh_frame_hdr
=yes
7705 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
7706 cat >> confdefs.h
<<\EOF
7707 #define HAVE_LD_EH_FRAME_HDR 1
7711 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6
7713 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
7714 cat >> confdefs.h
<<EOF
7715 #define PREFIX_INCLUDE_DIR "$prefix/include"
7720 # Figure out what language subdirectories are present.
7721 # Look if the user specified --enable-languages="..."; if not, use
7722 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7724 # NB: embedded tabs in this IF block -- do not untabify
7725 if test x
"${enable_languages+set}" != xset
; then
7726 if test x
"${LANGUAGES+set}" = xset
; then
7727 enable_languages
="${LANGUAGES}"
7728 echo "configure: warning: setting LANGUAGES is deprecated, use --enable-languages instead" 1>&2
7731 enable_languages
=all
7734 if test x
"${enable_languages}" = x ||
7735 test x
"${enable_languages}" = xyes
;
7737 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; }
7740 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7742 # First scan to see if an enabled language requires some other language.
7743 # We assume that a given config-lang.in will list all the language
7744 # front ends it requires, even if some are required indirectly.
7745 for lang
in ${srcdir}/*/config-lang.
in ..
7750 # The odd quoting in the next line works around
7751 # an apparent bug in bash 1.12 on linux.
7752 ${srcdir}/[*]/config-lang.
in)
7755 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7756 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
7757 for other
in $this_lang_requires
7759 case ,${enable_languages}, in
7765 enable_languages
="$enable_languages,$other"
7774 for lang
in ${srcdir}/*/config-lang.
in ..
7778 # The odd quoting in the next line works around
7779 # an apparent bug in bash 1.12 on linux.
7780 ${srcdir}/[*]/config-lang.
in) ;;
7782 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7783 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
7784 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
7785 if test "x$lang_alias" = x
7787 echo "$lang doesn't set \$language." 1>&2
7790 case ${build_by_default},${enable_languages}, in
7791 *,$lang_alias,*) add_this_lang
=yes ;;
7792 no
,*) add_this_lang
=no
;;
7793 *,all
,*) add_this_lang
=yes ;;
7794 *) add_this_lang
=no
;;
7796 if test x
"${add_this_lang}" = xyes
; then
7798 ${srcdir}/ada
/config-lang.
in)
7799 if test x
$have_gnat = xyes
; then
7800 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7804 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7812 # Make gthr-default.h if we have a thread file.
7814 if test $thread_file != single
; then
7815 rm -f gthr-default.h
7816 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7817 gthread_flags
=-DHAVE_GTHR_DEFAULT
7821 # Find out what GC implementation we want, or may, use.
7822 # Check whether --with-gc or --without-gc was given.
7823 if test "${with_gc+set}" = set; then
7830 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
7838 echo "Using $GGC for garbage collection."
7840 # Use the system's zlib library.
7842 zlibinc
="-I\$(srcdir)/../zlib"
7843 # Check whether --with-system-zlib or --without-system-zlib was given.
7844 if test "${with_system_zlib+set}" = set; then
7845 withval
="$with_system_zlib"
7855 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7856 echo "configure:7857: checking whether to enable maintainer-specific portions of Makefiles" >&5
7857 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7858 if test "${enable_maintainer_mode+set}" = set; then
7859 enableval
="$enable_maintainer_mode"
7860 maintainer_mode
=$enableval
7866 echo "$ac_t""$maintainer_mode" 1>&6
7868 if test "$maintainer_mode" = "yes"; then
7874 # With Setjmp/Longjmp based exception handling.
7875 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7876 if test "${enable_sjlj_exceptions+set}" = set; then
7877 enableval
="$enable_sjlj_exceptions"
7878 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
7879 cat >> confdefs.h
<<EOF
7880 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
7886 # Make empty files to contain the specs and options for each language.
7887 # Then add #include lines to for a compiler that has specs and/or options.
7892 for subdir
in .
$subdirs
7894 if test -f $srcdir/$subdir/lang-specs.h
; then
7895 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7897 if test -f $srcdir/$subdir/lang-options.h
; then
7898 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
7900 if test -f $srcdir/$subdir/$subdir-tree.def
; then
7901 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
7905 # These (without "all_") are set in each config-lang.in.
7906 # `language' must be a single word so is spelled singularly.
7911 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc'
7912 # List of language makefile fragments.
7915 # Add the language fragments.
7916 # Languages are added via two mechanisms. Some information must be
7917 # recorded in makefile variables, these are defined in config-lang.in.
7918 # We accumulate them and plug them into the main Makefile.
7919 # The other mechanism is a set of hooks for each of the main targets
7920 # like `clean', `install', etc.
7922 language_fragments
="Make-lang"
7923 language_hooks
="Make-hooks"
7925 for s
in ..
$subdirs
7934 .
${srcdir}/$s/config-lang.
in
7935 if test "x$language" = x
7937 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7940 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
7941 if test -f ${srcdir}/$s/Makefile.
in
7942 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
7944 all_languages
="$all_languages $language"
7945 if test "x$boot_language" = xyes
7947 all_boot_languages
="$all_boot_languages $language"
7949 all_compilers
="$all_compilers $compilers"
7950 all_stagestuff
="$all_stagestuff $stagestuff"
7951 all_outputs
="$all_outputs $outputs"
7956 for language
in ..
$all_languages
7958 if test $language != ".."
7960 check_languages
="$check_languages check-$language"
7964 # Since we can't use `::' targets, we link each language in
7965 # with a set of hooks, reached indirectly via lang.${target}.
7969 target_list
="all.build all.cross start.encap rest.encap \
7970 info dvi generated-manpages \
7971 install-normal install-common install-info install-man \
7973 mostlyclean clean distclean extraclean maintainer-clean \
7974 stage1 stage2 stage3 stage4"
7975 for t
in $target_list
7978 for lang
in ..
$all_languages
7980 if test $lang != ".."; then
7984 echo "lang.$t: $x" >> Make-hooks
7989 echo "dir ." > .gdbinit
7990 echo "dir ${srcdir}" >> .gdbinit
7991 if test x
$gdb_needs_out_file_path = xyes
7993 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7995 if test "x$subdirs" != x
; then
7998 echo "dir ${srcdir}/$s" >> .gdbinit
8001 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
8003 # Define variables host_canonical and build_canonical
8004 # because some Cygnus local changes in the Makefile depend on them.
8005 build_canonical
=${build}
8006 host_canonical
=${host}
8008 if test "${host}" != "${target}" ; then
8009 target_subdir
=${target_alias}/
8015 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8016 # absolute path for gcc_tooldir based on inserting the number of up-directory
8017 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8018 # $(libsubdir)/@(unlibsubdir) based path.
8019 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8020 # make and thus we'd get different behavior depending on where we built the
8022 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8023 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8025 # An explanation of the sed strings:
8026 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8027 # -e 's|/$||' match a trailing forward slash and eliminates it
8028 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8029 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
8031 # (*) Note this pattern overwrites the first character of the string
8032 # with a forward slash if one is not already present. This is not a
8033 # problem because the exact names of the sub-directories concerned is
8034 # unimportant, just the number of them matters.
8036 # The practical upshot of these patterns is like this:
8038 # prefix exec_prefix result
8039 # ------ ----------- ------
8041 # /foo/ /foo/bar ../
8042 # /foo /foo/bar/ ../
8043 # /foo/ /foo/bar/ ../
8044 # /foo /foo/bar/ugg ../../
8047 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8052 # Find a directory in which to install a shared libgcc.
8054 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
8055 if test "${enable_version_specific_runtime_libs+set}" = set; then
8056 enableval
="$enable_version_specific_runtime_libs"
8061 # Check whether --with-slibdir or --without-slibdir was given.
8062 if test "${with_slibdir+set}" = set; then
8063 withval
="$with_slibdir"
8064 slibdir
="$with_slibdir"
8066 if test "${enable_version_specific_runtime_libs+set}" = set; then
8067 slibdir
='$(libsubdir)'
8068 elif test "$host" != "$target"; then
8069 slibdir
='$(build_tooldir)/lib'
8077 # Nothing to do for FLOAT_H, float_format already handled.
8081 # Process the language and host/target makefile fragments.
8082 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8084 # Substitute configuration variables
8148 # Echo that links are built
8149 if test x
$host = x
$target
8157 if test x
$host != x
$build
8159 str3
=" on a $build system"
8162 if test "x$str2" != x ||
test "x$str3" != x
8167 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8169 if test "x$str2" != x ||
test "x$str3" != x
8171 echo " ${str2}${str3}." 1>&2
8174 # Truncate the target if necessary
8175 if test x
$host_truncate_target != x
; then
8176 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8179 # Configure the subdirectories
8180 # AC_CONFIG_SUBDIRS($subdirs)
8182 # Create the Makefile
8183 # and configure language subdirectories
8185 cat > confcache
<<\EOF
8186 # This file is a shell script that caches the results of configure
8187 # tests run on this system so they can be shared between configure
8188 # scripts and configure runs. It is not useful on other systems.
8189 # If it contains results you don't want to keep, you may remove or edit it.
8191 # By default, configure uses ./config.cache as the cache file,
8192 # creating it if it does not exist already. You can give configure
8193 # the --cache-file=FILE option to use a different cache file; that is
8194 # what configure does when it calls configure scripts in
8195 # subdirectories, so they share the cache.
8196 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8197 # config.status only pays attention to the cache file if you give it the
8198 # --recheck option to rerun configure.
8201 # The following way of writing the cache mishandles newlines in values,
8202 # but we know of no workaround that is simple, portable, and efficient.
8203 # So, don't put newlines in cache variables' values.
8204 # Ultrix sh set writes to stderr and can't be redirected directly,
8205 # and sets the high bit in the cache file unless we assign to the vars.
8207 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8209 # `set' does not quote correctly, so add quotes (double-quote substitution
8210 # turns \\\\ into \\, and sed turns \\ into \).
8212 -e "s/'/'\\\\''/g" \
8213 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8216 # `set' quotes correctly as required by POSIX, so do not add quotes.
8217 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8220 if cmp -s $cache_file confcache
; then
8223 if test -w $cache_file; then
8224 echo "updating cache $cache_file"
8225 cat confcache
> $cache_file
8227 echo "not updating unwritable cache $cache_file"
8232 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8234 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8235 # Let make expand exec_prefix.
8236 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8238 # Any assignment to VPATH causes Sun make to only execute
8239 # the first set of double-colon rules, so remove it if not needed.
8240 # If there is a colon in the path, we need to keep it.
8241 if test "x$srcdir" = x.
; then
8242 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8245 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8247 DEFS
=-DHAVE_CONFIG_H
8249 # Without the "./", some shells look in PATH for config.status.
8250 : ${CONFIG_STATUS=./config.status}
8252 echo creating
$CONFIG_STATUS
8253 rm -f $CONFIG_STATUS
8254 cat > $CONFIG_STATUS <<EOF
8256 # Generated automatically by configure.
8257 # Run this file to recreate the current configuration.
8258 # This directory was configured as follows,
8259 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8261 # $0 $ac_configure_args
8263 # Compiler output produced by configure, useful for debugging
8264 # configure, is in ./config.log if it exists.
8266 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8269 case "\$ac_option" in
8270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8271 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8272 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8273 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8274 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8276 -help | --help | --hel | --he | --h)
8277 echo "\$ac_cs_usage"; exit 0 ;;
8278 *) echo "\$ac_cs_usage"; exit 1 ;;
8282 ac_given_srcdir=$srcdir
8284 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8286 cat >> $CONFIG_STATUS <<EOF
8288 # Protect against being on the right side of a sed subst in config.status.
8289 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8290 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8294 s%@CFLAGS@%$CFLAGS%g
8295 s%@CPPFLAGS@%$CPPFLAGS%g
8296 s%@CXXFLAGS@%$CXXFLAGS%g
8297 s%@FFLAGS@%$FFLAGS%g
8299 s%@LDFLAGS@%$LDFLAGS%g
8301 s%@exec_prefix@%$exec_prefix%g
8302 s%@prefix@%$prefix%g
8303 s%@program_transform_name@%$program_transform_name%g
8304 s%@bindir@%$bindir%g
8305 s%@sbindir@%$sbindir%g
8306 s%@libexecdir@%$libexecdir%g
8307 s%@datadir@%$datadir%g
8308 s%@sysconfdir@%$sysconfdir%g
8309 s%@sharedstatedir@%$sharedstatedir%g
8310 s%@localstatedir@%$localstatedir%g
8311 s%@libdir@%$libdir%g
8312 s%@includedir@%$includedir%g
8313 s%@oldincludedir@%$oldincludedir%g
8314 s%@infodir@%$infodir%g
8315 s%@mandir@%$mandir%g
8316 s%@enable_multilib@%$enable_multilib%g
8317 s%@enable_shared@%$enable_shared%g
8319 s%@host_alias@%$host_alias%g
8320 s%@host_cpu@%$host_cpu%g
8321 s%@host_vendor@%$host_vendor%g
8322 s%@host_os@%$host_os%g
8323 s%@target@%$target%g
8324 s%@target_alias@%$target_alias%g
8325 s%@target_cpu@%$target_cpu%g
8326 s%@target_vendor@%$target_vendor%g
8327 s%@target_os@%$target_os%g
8329 s%@build_alias@%$build_alias%g
8330 s%@build_cpu@%$build_cpu%g
8331 s%@build_vendor@%$build_vendor%g
8332 s%@build_os@%$build_os%g
8334 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
8335 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
8336 s%@strict1_warn@%$strict1_warn%g
8338 s%@warn_cflags@%$warn_cflags%g
8339 s%@stage1_cflags@%$stage1_cflags%g
8340 s%@SET_MAKE@%$SET_MAKE%g
8344 s%@RANLIB@%$RANLIB%g
8345 s%@INSTALL@%$INSTALL%g
8346 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8347 s%@INSTALL_DATA@%$INSTALL_DATA%g
8348 s%@GNATBIND@%$GNATBIND%g
8350 s%@have_mktemp_command@%$have_mktemp_command%g
8351 s%@MAKEINFO@%$MAKEINFO%g
8352 s%@BUILD_INFO@%$BUILD_INFO%g
8353 s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g
8356 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g
8357 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g
8358 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
8359 s%@LIBICONV@%$LIBICONV%g
8360 s%@manext@%$manext%g
8361 s%@objext@%$objext%g
8362 s%@FORBUILD@%$FORBUILD%g
8363 s%@PACKAGE@%$PACKAGE%g
8364 s%@VERSION@%$VERSION%g
8365 s%@ALLOCA@%$ALLOCA%g
8366 s%@GLIBC21@%$GLIBC21%g
8367 s%@USE_NLS@%$USE_NLS%g
8368 s%@MSGFMT@%$MSGFMT%g
8369 s%@GMSGFMT@%$GMSGFMT%g
8370 s%@XGETTEXT@%$XGETTEXT%g
8371 s%@INTLBISON@%$INTLBISON%g
8372 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8373 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8374 s%@CATALOGS@%$CATALOGS%g
8375 s%@CATOBJEXT@%$CATOBJEXT%g
8376 s%@INTLLIBS@%$INTLLIBS%g
8377 s%@INTLDEPS@%$INTLDEPS%g
8378 s%@INTLOBJS@%$INTLOBJS%g
8380 s%@DATADIRNAME@%$DATADIRNAME%g
8381 s%@INSTOBJEXT@%$INSTOBJEXT%g
8382 s%@GENCAT@%$GENCAT%g
8383 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8384 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8387 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g
8388 s%@inhibit_libc@%$inhibit_libc%g
8389 s%@HOST_PREFIX@%$HOST_PREFIX%g
8390 s%@HOST_PREFIX_1@%$HOST_PREFIX_1%g
8391 s%@HOST_CC@%$HOST_CC%g
8392 s%@HOST_CFLAGS@%$HOST_CFLAGS%g
8393 s%@STMP_FIXINC@%$STMP_FIXINC%g
8394 s%@STMP_FIXPROTO@%$STMP_FIXPROTO%g
8395 s%@gthread_flags@%$gthread_flags%g
8397 s%@zlibdir@%$zlibdir%g
8398 s%@zlibinc@%$zlibinc%g
8400 s%@build_canonical@%$build_canonical%g
8401 s%@host_canonical@%$host_canonical%g
8402 s%@target_subdir@%$target_subdir%g
8403 s%@gcc_tooldir@%$gcc_tooldir%g
8404 s%@dollar@%$dollar%g
8405 s%@slibdir@%$slibdir%g
8406 s%@objdir@%$objdir%g
8407 s%@subdirs@%$subdirs%g
8408 s%@all_boot_languages@%$all_boot_languages%g
8409 s%@all_compilers@%$all_compilers%g
8410 s%@all_lang_makefiles@%$all_lang_makefiles%g
8411 s%@all_languages@%$all_languages%g
8412 s%@all_stagestuff@%$all_stagestuff%g
8413 s%@build_exeext@%$build_exeext%g
8414 s%@build_install_headers_dir@%$build_install_headers_dir%g
8415 s%@build_xm_file_list@%$build_xm_file_list%g
8416 s%@build_xm_file@%$build_xm_file%g
8417 s%@build_xm_defines@%$build_xm_defines%g
8418 s%@check_languages@%$check_languages%g
8419 s%@cc_set_by_configure@%$cc_set_by_configure%g
8420 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8421 s%@cpp_install_dir@%$cpp_install_dir%g
8422 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8423 s%@dep_tmake_file@%$dep_tmake_file%g
8424 s%@extra_headers_list@%$extra_headers_list%g
8425 s%@extra_objs@%$extra_objs%g
8426 s%@extra_parts@%$extra_parts%g
8427 s%@extra_passes@%$extra_passes%g
8428 s%@extra_programs@%$extra_programs%g
8429 s%@float_h_file@%$float_h_file%g
8430 s%@gcc_config_arguments@%$gcc_config_arguments%g
8431 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8432 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
8433 s%@gcc_version@%$gcc_version%g
8434 s%@gcc_version_full@%$gcc_version_full%g
8435 s%@gcc_version_trigger@%$gcc_version_trigger%g
8436 s%@host_exeext@%$host_exeext%g
8437 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8438 s%@host_xm_file_list@%$host_xm_file_list%g
8439 s%@host_xm_file@%$host_xm_file%g
8440 s%@host_xm_defines@%$host_xm_defines%g
8441 s%@install@%$install%g
8442 s%@lang_options_files@%$lang_options_files%g
8443 s%@lang_specs_files@%$lang_specs_files%g
8444 s%@lang_tree_files@%$lang_tree_files%g
8445 s%@local_prefix@%$local_prefix%g
8446 s%@md_file@%$md_file%g
8447 s%@objc_boehm_gc@%$objc_boehm_gc%g
8448 s%@out_file@%$out_file%g
8449 s%@out_object_file@%$out_object_file%g
8450 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8451 s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g
8452 s%@symbolic_link@%$symbolic_link%g
8453 s%@thread_file@%$thread_file%g
8454 s%@tm_file_list@%$tm_file_list%g
8455 s%@tm_file@%$tm_file%g
8456 s%@tm_p_file_list@%$tm_p_file_list%g
8457 s%@tm_p_file@%$tm_p_file%g
8458 s%@xm_file@%$xm_file%g
8459 s%@xm_defines@%$xm_defines%g
8460 s%@c_target_objs@%$c_target_objs%g
8461 s%@cxx_target_objs@%$cxx_target_objs%g
8462 s%@target_cpu_default@%$target_cpu_default%g
8463 /@target_overrides@/r $target_overrides
8464 s%@target_overrides@%%g
8465 /@host_overrides@/r $host_overrides
8466 s%@host_overrides@%%g
8467 /@language_fragments@/r $language_fragments
8468 s%@language_fragments@%%g
8469 /@language_hooks@/r $language_hooks
8470 s%@language_hooks@%%g
8475 cat >> $CONFIG_STATUS <<\EOF
8477 # Split the substitutions into bite-sized pieces for seds with
8478 # small command number limits, like on Digital OSF/1 and HP-UX.
8479 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8480 ac_file
=1 # Number of current file.
8481 ac_beg
=1 # First line for current file.
8482 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8485 while $ac_more_lines; do
8486 if test $ac_beg -gt 1; then
8487 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8489 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8491 if test ! -s conftest.s
$ac_file; then
8493 rm -f conftest.s
$ac_file
8495 if test -z "$ac_sed_cmds"; then
8496 ac_sed_cmds
="sed -f conftest.s$ac_file"
8498 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8500 ac_file
=`expr $ac_file + 1`
8502 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8505 if test -z "$ac_sed_cmds"; then
8510 cat >> $CONFIG_STATUS <<EOF
8512 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8514 cat >> $CONFIG_STATUS <<\EOF
8515 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8518 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8519 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8520 *) ac_file_in
="${ac_file}.in" ;;
8523 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8525 # Remove last slash and all that follows it. Not all systems have dirname.
8526 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8527 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8528 # The file is in a subdirectory.
8529 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8530 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8531 # A "../" for each directory in $ac_dir_suffix.
8532 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8534 ac_dir_suffix
= ac_dots
=
8537 case "$ac_given_srcdir" in
8539 if test -z "$ac_dots"; then top_srcdir
=.
8540 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8541 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8543 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8544 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8548 echo creating
"$ac_file"
8550 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8552 *Makefile
*) ac_comsub
="1i\\
8553 # $configure_input" ;;
8557 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8559 s%@configure_input@%$configure_input%g
8560 s%@srcdir@%$srcdir%g
8561 s%@top_srcdir@%$top_srcdir%g
8562 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8566 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8567 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8569 # ac_d sets the value in "#define NAME VALUE" lines.
8570 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8571 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8574 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8575 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8576 ac_uB
='\([ ]\)%\1#\2define\3'
8579 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8580 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8581 ac_eB
='$%\1#\2define\3'
8585 if test "${CONFIG_HEADERS+set}" != set; then
8587 cat >> $CONFIG_STATUS <<EOF
8588 CONFIG_HEADERS="auto-host.h:config.in"
8590 cat >> $CONFIG_STATUS <<\EOF
8592 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8593 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8595 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8596 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8597 *) ac_file_in
="${ac_file}.in" ;;
8600 echo creating
$ac_file
8602 rm -f conftest.frag conftest.
in conftest.out
8603 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8604 cat $ac_file_inputs > conftest.
in
8608 # Transform confdefs.h into a sed script conftest.vals that substitutes
8609 # the proper values into config.h.in to produce config.h. And first:
8610 # Protect against being on the right side of a sed subst in config.status.
8611 # Protect against being in an unquoted here document in config.status.
8613 cat > conftest.hdr
<<\EOF
8616 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8620 sed -n -f conftest.hdr confdefs.h > conftest.vals
8623 # This sed command replaces #undef with comments. This is necessary, for
8624 # example, in the case of _POSIX_SOURCE, which is predefined and required
8625 # on some systems where configure will not decide to define it.
8626 cat >> conftest.vals <<\EOF
8627 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8630 # Break up conftest.vals because some shells have a limit on
8631 # the size of here documents, and old seds have small limits too.
8636 ac_lines=`grep -c . conftest.vals
`
8637 # grep -c gives empty output for an empty file on some AIX systems.
8638 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8639 # Write a limited-size here document to conftest.frag.
8640 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8641 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8643 sed -f conftest.frag conftest.in > conftest.out
8645 mv conftest.out conftest.in
8647 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8649 mv conftest.tail conftest.vals
8653 cat >> $CONFIG_STATUS <<\EOF
8654 rm -f conftest.frag conftest.h
8655 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8656 cat conftest.in >> conftest.h
8658 if cmp -s $ac_file conftest.h 2>/dev/null; then
8659 echo "$ac_file is unchanged"
8662 # Remove last slash and all that follows it. Not all systems have dirname.
8663 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8664 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8665 # The file is in a subdirectory.
8666 test ! -d "$ac_dir" && mkdir "$ac_dir"
8669 mv conftest.h $ac_file
8674 cat >> $CONFIG_STATUS <<EOF
8677 symbolic_link='$symbolic_link'
8680 cat >> $CONFIG_STATUS <<\EOF
8681 for ac_file in $CONFIG_FILES; do
8682 # Support "outfile[:infile[:infile...]]"
8684 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
8686 # PO directories have a Makefile.in generated from Makefile.in.in.
8687 case "$ac_file" in */Makefile.in)
8688 # Adjust a relative srcdir.
8689 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
8690 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
8691 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
8692 # In autoconf-2.13 it is called $ac_given_srcdir.
8693 # In autoconf-2.50 it is called $srcdir.
8694 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8695 case "$ac_given_srcdir" in
8696 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
8697 /*) top_srcdir="$ac_given_srcdir" ;;
8698 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8700 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8701 rm -f "$ac_dir/POTFILES"
8702 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8703 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8704 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8705 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8711 case x$CONFIG_HEADERS in
8712 xauto-host.h:config.in)
8715 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8716 # bootstrapping and the installation procedure can still use
8717 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8718 # FLAGS_TO_PASS has been modified to solve the problem there.
8719 # This is virtually a duplicate of what happens in configure.lang; we do
8720 # an extra check to make sure this only happens if ln -s can be used.
8721 if test "$symbolic_link" = "ln -s"; then
8722 for d in .. ${subdirs} fixinc ; do
8723 if test $d != ..; then
8726 for t in stage1 stage2 stage3 stage4 include
8729 $symbolic_link ../$t $t 2>/dev/null
8735 # Avoid having to add intl to our include paths.
8736 if test -f intl/libintl.h; then
8737 echo creating libintl.h
8738 echo '#include "intl/libintl.h"' >libintl.h
8743 chmod +x $CONFIG_STATUS
8744 rm -fr confdefs* $ac_clean_files
8745 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1