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 --without-libbanshee Don't build with libbanshee"
17 --enable-libada Builds libada directory"
19 --with-gmp-dir=PATH Specify source directory for GMP library"
21 --with-gmp=PATH Specify directory for installed GMP library"
23 --enable-bootstrap Enable bootstrapping [no]"
25 --enable-serial-[{host,target,build}-]configure
26 Force sequential configuration of
27 sub-packages for the host, target or build
28 machine, or all sub-packages"
30 --enable-maintainer-mode enable make rules and dependencies not useful
31 (and sometimes confusing) to the casual installer"
33 --enable-werror enable -Werror in bootstrap stage2 and later"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file
=.
/config.cache
48 program_transform_name
=s
,x
,x
,
56 bindir
='${exec_prefix}/bin'
57 sbindir
='${exec_prefix}/sbin'
58 libexecdir
='${exec_prefix}/libexec'
59 datadir
='${prefix}/share'
60 sysconfdir
='${prefix}/etc'
61 sharedstatedir
='${prefix}/com'
62 localstatedir
='${prefix}/var'
63 libdir
='${exec_prefix}/lib'
64 includedir
='${prefix}/include'
65 oldincludedir
='/usr/include'
66 infodir
='${prefix}/info'
67 mandir
='${prefix}/man'
69 # Initialize some other variables.
72 SHELL
=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
98 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
99 bindir
="$ac_optarg" ;;
101 -build |
--build |
--buil |
--bui |
--bu)
103 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
104 build
="$ac_optarg" ;;
106 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
107 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
108 ac_prev
=cache_file
;;
109 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
110 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
111 cache_file
="$ac_optarg" ;;
113 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
115 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
117 datadir
="$ac_optarg" ;;
119 -disable-* |
--disable-*)
120 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* |
--enable-*)
129 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
142 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
143 |
--exec |
--exe |
--ex)
144 ac_prev
=exec_prefix
;;
145 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
146 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
147 |
--exec=* |
--exe=* |
--ex=*)
148 exec_prefix
="$ac_optarg" ;;
150 -gas |
--gas |
--ga |
--g)
151 # Obsolete; use --with-gas.
154 -help |
--help |
--hel |
--he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host |
--host |
--hos |
--ho)
211 -host=* |
--host=* |
--hos=* |
--ho=*)
214 -includedir |
--includedir |
--includedi |
--included |
--include \
215 |
--includ |
--inclu |
--incl |
--inc)
216 ac_prev
=includedir
;;
217 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
218 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
219 includedir
="$ac_optarg" ;;
221 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
223 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
224 infodir
="$ac_optarg" ;;
226 -libdir |
--libdir |
--libdi |
--libd)
228 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
229 libdir
="$ac_optarg" ;;
231 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
232 |
--libexe |
--libex |
--libe)
233 ac_prev
=libexecdir
;;
234 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
235 |
--libexe=* |
--libex=* |
--libe=*)
236 libexecdir
="$ac_optarg" ;;
238 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
239 |
--localstate |
--localstat |
--localsta |
--localst \
240 |
--locals |
--local |
--loca |
--loc |
--lo)
241 ac_prev
=localstatedir
;;
242 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
243 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
244 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
245 localstatedir
="$ac_optarg" ;;
247 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
249 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
250 mandir
="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
260 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
261 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
264 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
265 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
266 |
--oldin |
--oldi |
--old |
--ol |
--o)
267 ac_prev
=oldincludedir
;;
268 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
269 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
270 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
271 oldincludedir
="$ac_optarg" ;;
273 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
275 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
276 prefix
="$ac_optarg" ;;
278 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
279 |
--program-pre |
--program-pr |
--program-p)
280 ac_prev
=program_prefix
;;
281 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
282 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
283 program_prefix
="$ac_optarg" ;;
285 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
286 |
--program-suf |
--program-su |
--program-s)
287 ac_prev
=program_suffix
;;
288 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
289 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
290 program_suffix
="$ac_optarg" ;;
292 -program-transform-name |
--program-transform-name \
293 |
--program-transform-nam |
--program-transform-na \
294 |
--program-transform-n |
--program-transform- \
295 |
--program-transform |
--program-transfor \
296 |
--program-transfo |
--program-transf \
297 |
--program-trans |
--program-tran \
298 |
--progr-tra |
--program-tr |
--program-t)
299 ac_prev
=program_transform_name
;;
300 -program-transform-name=* |
--program-transform-name=* \
301 |
--program-transform-nam=* |
--program-transform-na=* \
302 |
--program-transform-n=* |
--program-transform-=* \
303 |
--program-transform=* |
--program-transfor=* \
304 |
--program-transfo=* |
--program-transf=* \
305 |
--program-trans=* |
--program-tran=* \
306 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
307 program_transform_name
="$ac_optarg" ;;
309 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
310 |
-silent |
--silent |
--silen |
--sile |
--sil)
313 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
315 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
317 sbindir
="$ac_optarg" ;;
319 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
320 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
321 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
323 ac_prev
=sharedstatedir
;;
324 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
325 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
326 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
328 sharedstatedir
="$ac_optarg" ;;
330 -site |
--site |
--sit)
332 -site=* |
--site=* |
--sit=*)
335 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
337 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
338 srcdir
="$ac_optarg" ;;
340 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
341 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
342 ac_prev
=sysconfdir
;;
343 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
344 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
345 sysconfdir
="$ac_optarg" ;;
347 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
349 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
350 target
="$ac_optarg" ;;
352 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
355 -version |
--version |
--versio |
--versi |
--vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* |
--without-*)
373 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package
=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
386 |
--x-incl |
--x-inc |
--x-in |
--x-i)
387 ac_prev
=x_includes
;;
388 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
389 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
390 x_includes
="$ac_optarg" ;;
392 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
393 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
394 ac_prev
=x_libraries
;;
395 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
396 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
397 x_libraries
="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE
; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
448 |
--no-cr |
--no-c) ;;
449 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
450 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
451 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest
* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file
=move-if-change
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted
=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted
=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE
; then
502 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file
in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp
='$CPP $CPPFLAGS'
525 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling
=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
540 ac_n
= ac_c
='\c' ac_t
=
546 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
547 if test -f $ac_dir/install-sh
; then
549 ac_install_sh
="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh
; then
553 ac_install_sh
="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 ac_config_guess
=$ac_aux_dir/config.guess
561 ac_config_sub
=$ac_aux_dir/config.sub
562 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
565 # Do some error checking and defaulting for the host and target type.
567 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
570 # 1. You are not allowed to specify --host, --target, and nonopt at the
572 # 2. Host defaults to nonopt.
573 # 3. If nonopt is not specified, then host defaults to the current host,
574 # as determined by config.guess.
575 # 4. Target and build default to nonopt.
576 # 5. If nonopt is not specified, then target and build default to host.
578 # The aliases save the names the user supplied, while $host etc.
579 # will get canonicalized.
580 case $host---$target---$nonopt in
581 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
582 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
586 # Make sure we can run config.sub.
587 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
588 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
591 echo $ac_n "checking host system type""... $ac_c" 1>&6
592 echo "configure:593: checking host system type" >&5
595 case "$host_alias" in
599 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
600 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
602 *) host_alias
=$nonopt ;;
606 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
607 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610 echo "$ac_t""$host" 1>&6
612 echo $ac_n "checking target system type""... $ac_c" 1>&6
613 echo "configure:614: checking target system type" >&5
616 case "$target_alias" in
619 NONE
) target_alias
=$host_alias ;;
620 *) target_alias
=$nonopt ;;
624 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
625 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$target" 1>&6
630 echo $ac_n "checking build system type""... $ac_c" 1>&6
631 echo "configure:632: checking build system type" >&5
634 case "$build_alias" in
637 NONE
) build_alias
=$host_alias ;;
638 *) build_alias
=$nonopt ;;
642 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
643 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$build" 1>&6
648 test "$host_alias" != "$target_alias" &&
649 test "$program_prefix$program_suffix$program_transform_name" = \
651 program_prefix
=${target_alias}-
653 if test "$program_transform_name" = s
,x
,x
,; then
654 program_transform_name
=
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED
> conftestsed
658 s
,\\,\\\\,g
; s
,\$
,$$
,g
660 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
663 test "$program_prefix" != NONE
&&
664 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE
&&
667 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
673 # Get 'install' or 'install-sh' and its variants.
674 # Find a good install program. We prefer a C program (faster),
675 # so one script is as good as another. But avoid the broken or
676 # incompatible versions:
677 # SysV /etc/install, /usr/sbin/install
678 # SunOS /usr/etc/install
681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
684 # ./install, which can be erroneously created by make from ./install.sh.
685 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
686 echo "configure:687: checking for a BSD compatible install" >&5
687 if test -z "$INSTALL"; then
688 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
692 for ac_dir
in $PATH; do
693 # Account for people who put trailing slashes in PATH elements.
695 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
697 # OSF1 and SCO ODT 3.0 have their own names for install.
698 # Don't use installbsd from OSF since it installs stuff as root
700 for ac_prog
in ginstall scoinst
install; do
701 if test -f $ac_dir/$ac_prog; then
702 if test $ac_prog = install &&
703 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
704 # AIX install. It has an incompatible calling convention.
707 ac_cv_path_install
="$ac_dir/$ac_prog -c"
718 if test "${ac_cv_path_install+set}" = set; then
719 INSTALL
="$ac_cv_path_install"
721 # As a last resort, use the slow shell script. We don't cache a
722 # path for INSTALL within a source directory, because that will
723 # break other packages using the cache if that directory is
724 # removed, or if the path is relative.
725 INSTALL
="$ac_install_sh"
728 echo "$ac_t""$INSTALL" 1>&6
730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
731 # It thinks the first close brace ends the variable substitution.
732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
736 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
738 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
739 echo "configure:740: checking whether ln works" >&5
740 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
745 if ln conftestdata_f conftestdata_t
2>/dev
/null
751 rm -f conftestdata_f conftestdata_t
754 if test $acx_cv_prog_LN = no
; then
756 echo "$ac_t""no, using $LN" 1>&6
759 echo "$ac_t""yes" 1>&6
762 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
763 echo "configure:764: checking whether ln -s works" >&5
764 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
768 if ln -s X conftestdata
2>/dev
/null
771 ac_cv_prog_LN_S
="ln -s"
776 LN_S
="$ac_cv_prog_LN_S"
777 if test "$ac_cv_prog_LN_S" = "ln -s"; then
778 echo "$ac_t""yes" 1>&6
780 echo "$ac_t""no" 1>&6
784 ### we might need to use some other shell than /bin/sh for running subshells
785 ### If we are on Windows, search for the shell. This will permit people
786 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
787 ### without also having to set CONFIG_SHELL. This code will work when
788 ### using bash, which sets OSTYPE.
791 if test x
${CONFIG_SHELL} = x
; then
792 if test ! -f /bin
/sh
; then
793 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
794 CONFIG_SHELL
=${SHELL}
797 for prog
in sh sh.exe bash bash.exe
; do
798 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
800 test -z "$dir" && dir
=.
801 if test -f $dir/$prog; then
802 CONFIG_SHELL
=$dir/$prog
808 test -n "${CONFIG_SHELL}" && break
816 config_shell
=${CONFIG_SHELL-/bin/sh}
819 # if PWD already has a value, it is probably wrong.
820 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
822 # Export original configure arguments for use by sub-configures. These
823 # will be expanded by make, so quote '$'.
825 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
828 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
829 rm -f conftestsed.out
832 moveifchange
=${srcdir}/move-if-change
834 # Set srcdir to "." if that's what it is.
835 # This is important for multilib support.
837 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
838 if test "${pwd}" = "${srcpwd}" ; then
845 # Define the trigger file to make sure configure will re-run whenever
846 # the gcc version number changes.
847 if test "${with_gcc_version_trigger+set}" = set ; then
848 gcc_version_trigger
="$with_gcc_version_trigger"
849 gcc_version
=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
851 # If gcc's sources are available, define the trigger file.
852 if test -f ${topsrcdir}/gcc
/version.c
; then
853 gcc_version_trigger
=${topsrcdir}/gcc
/version.c
854 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
855 case "$ac_configure_args" in
856 *--with-gcc-version-trigger=$gcc_version_trigger* )
859 # Add to all subconfigure arguments: build, host, and target.
860 ac_configure_args
="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger"
866 ### To add a new directory to the tree, first choose whether it is a target
867 ### or a host dependent tool. Then put it into the appropriate list
868 ### (library or tools, host or target), doing a dependency sort.
870 # Subdirs will be configured in the order listed in build_configdirs,
871 # configdirs, or target_configdirs; see the serialization section below.
873 # Dependency sorting is only needed when *configuration* must be done in
874 # a particular order. In all cases a dependency should be specified in
875 # the Makefile, whether or not it's implicitly specified here.
877 # Double entries in build_configdirs, configdirs, or target_configdirs may
878 # cause circular dependencies and break everything horribly.
880 # these library is used by various programs built for the build
883 build_libs
="build-libiberty"
885 # these tools are built for the build environment
886 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4"
888 # these libraries are used by various programs built for the host environment
890 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp"
892 # these tools are built for the host environment
893 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
894 # know that we are building the simulator.
895 # binutils, gas and ld appear in that order because it makes sense to run
896 # "make check" in that particular order.
897 host_tools
="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar"
899 # libgcj represents the runtime libraries only used by gcj.
900 libgcj
="target-libffi \
906 # these libraries are built for the target environment, and are built after
907 # the host libraries and the host tools (which may be a cross compiler)
909 target_libraries
="target-libiberty \
912 target-libstdc++-v3 \
919 # these tools are built using the target libraries, and are intended to
920 # run only in the target environment
922 # note: any program that *uses* libraries that are in the "target_libraries"
923 # list belongs in this list. those programs are also very likely
924 # candidates for the "native_only" list which follows
926 target_tools
="target-examples target-groff target-gperf target-rda"
928 ################################################################################
930 ## All tools belong in one of the four categories, and are assigned above
931 ## We assign ${configdirs} this way to remove all embedded newlines. This
932 ## is important because configure will choke if they ever get through.
933 ## ${configdirs} is directories we build using the host tools.
934 ## ${target_configdirs} is directories we build using the target tools.
935 configdirs
=`echo ${host_libs} ${host_tools}`
936 target_configdirs
=`echo ${target_libraries} ${target_tools}`
938 # Only make build modules if build != host.
939 if test ${host_alias} != ${build_alias} ; then
940 build_configdirs
=`echo ${build_libs} ${build_tools}`
943 ################################################################################
945 srcname
="gnu development package"
947 # This gets set non-empty for some net releases of packages.
950 # Define is_cross_compiler to save on calls to 'test'.
952 if test x
"${host}" = x
"${target}" ; then
955 is_cross_compiler
=yes
958 # Find the build and target subdir names.
959 case ${build_alias} in
960 "") build_noncanonical
=${build} ;;
961 *) build_noncanonical
=${build_alias} ;;
964 case ${host_alias} in
965 "") host_noncanonical
=${build_noncanonical} ;;
966 *) host_noncanonical
=${host_alias} ;;
969 case ${target_alias} in
970 "") target_noncanonical
=${host_noncanonical} ;;
971 *) target_noncanonical
=${target_alias} ;;
974 # Prefix 'build-' so this never conflicts with target_subdir.
975 build_subdir
="build-${build_noncanonical}"
976 # Not really a subdirectory, but here for completeness.
979 target_subdir
=${target_noncanonical}
982 # Skipdirs are removed silently.
984 # Noconfigdirs are removed loudly.
988 # Make sure we don't let GNU ld be added if we didn't want it.
989 if test x
$with_gnu_ld = xno
; then
991 noconfigdirs
="$noconfigdirs ld"
995 # Make sure we don't let GNU as be added if we didn't want it.
996 if test x
$with_gnu_as = xno
; then
998 noconfigdirs
="$noconfigdirs gas"
1001 # some tools are so dependent upon X11 that if we're not building with X,
1002 # it's not even worth trying to configure, much less build, that tool.
1005 yes |
"") ;; # the default value for this tree is that X11 is available
1007 skipdirs
="${skipdirs} tk tix itcl libgui"
1008 # We won't be able to build gdbtk without X.
1011 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1014 # Some tools are only suitable for building in a "native" situation.
1015 # Remove these if host!=target.
1016 native_only
="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
1018 # Similarly, some are only suitable for cross toolchains.
1019 # Remove these if host=target.
1020 cross_only
="target-libgloss target-newlib target-opcodes"
1022 case $is_cross_compiler in
1023 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1024 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1027 # If both --with-headers and --with-libs are specified, default to
1029 if test x
"${with_headers}" != x
&& test x
"${with_headers} != xno \
1030 && test x"${with_libs}" != x && test x"${with_libs} != xno
; then
1031 if test x
"${with_newlib}" = x
; then
1036 # Recognize --with-newlib/--without-newlib.
1037 case ${with_newlib} in
1038 no
) skipdirs
="${skipdirs} target-newlib" ;;
1039 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1042 # Configure extra directories which are host specific
1046 configdirs
="$configdirs libtermcap" ;;
1049 # Remove more programs from consideration, based on the host or
1050 # target this usually means that a port of the program doesn't
1055 noconfigdirs
="$noconfigdirs byacc"
1057 i
[3456789]86-*-vsta)
1058 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext"
1060 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1061 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi"
1063 i
[3456789]86-*-mingw32*)
1064 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv"
1065 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1067 i
[3456789]86-*-beos*)
1068 noconfigdirs
="$noconfigdirs tk itcl tix libgui gdb"
1071 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1074 noconfigdirs
="$noconfigdirs rcs"
1077 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv"
1080 noconfigdirs
="$noconfigdirs tk itcl tix libgui gdb dejagnu readline"
1083 noconfigdirs
="$noconfigdirs tk itcl tix libgui"
1087 # Check whether --with-libbanshee or --without-libbanshee was given.
1088 if test "${with_libbanshee+set}" = set; then
1089 withval
="$with_libbanshee"
1093 case ${with_libbanshee} in
1095 noconfigdirs
="$noconfigdirs libbanshee" ;;
1100 { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no
" (empty defaults to "yes"." 1>&2; exit 1; }
1103 # Check whether --enable-libada or --disable-libada was given.
1104 if test "${enable_libada+set}" = set; then
1105 enableval
="$enable_libada"
1106 ENABLE_LIBADA
=$enableval
1111 if test "${ENABLE_LIBADA}" != "yes" ; then
1112 noconfigdirs
="$noconfigdirs target-libada"
1115 # Save it here so that, even in case of --enable-libgcj, if the Java
1116 # front-end isn't enabled, we still get libgcj disabled.
1117 libgcj_saved
=$libgcj
1118 case $enable_libgcj in
1120 # If we reset it here, it won't get added to noconfigdirs in the
1121 # target-specific build rules, so it will be forcibly enabled
1122 # (unless the Java language itself isn't enabled).
1126 # Make sure we get it printed in the list of not supported target libs.
1127 noconfigdirs
="$noconfigdirs ${libgcj}"
1132 # Allow --disable-libmudflap to exclude target-libmudflap
1133 case $enable_libmudflap in
1137 noconfigdirs
="$noconfigdirs target-libmudflap"
1141 *-*-linux*-gnu |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1142 # Enable libmudflap by default in GNU and friends.
1145 # Enable libmudflap by default in FreeBSD.
1148 # Disable it by default everywhere else.
1149 noconfigdirs
="$noconfigdirs target-libmudflap"
1157 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1160 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1161 noconfigdirs
="$noconfigdirs target-libobjc"
1164 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1165 noconfigdirs
="$noconfigdirs target-libobjc ${libgcj}"
1167 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1168 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1170 *-*-freebsd* |
*-*-kfreebsd*-gnu)
1171 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1172 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1173 && test -f /usr
/local
/include
/gmp.h
; then
1177 # Skip some stuff that's unsupported on some FreeBSD configurations.
1182 noconfigdirs
="$noconfigdirs ${libgcj}"
1187 # Remove unsupported stuff on all kaOS configurations.
1188 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1189 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1190 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1191 noconfigdirs
="$noconfigdirs target-libgloss"
1194 # Skip some stuff on all NetBSD configurations.
1195 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1197 # Skip some stuff that's unsupported on some NetBSD configurations.
1199 i
*86-*-netbsdelf*) ;;
1200 arm
*-*-netbsdelf*) ;;
1202 noconfigdirs
="$noconfigdirs ${libgcj}"
1207 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}"
1210 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1213 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1216 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}"
1219 # ld works, but does not support shared libraries.
1220 # newlib is not 64 bit ready. I'm not sure about fileutils.
1221 # gas doesn't generate exception information.
1222 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1225 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1228 # newlib is not 64 bit ready
1229 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1232 # newlib is not 64 bit ready
1233 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1236 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1239 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1241 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1242 noconfigdirs
="$noconfigdirs ${libgcj}"
1243 noconfigdirs
="$noconfigdirs target-examples"
1244 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1245 noconfigdirs
="$noconfigdirs tcl tix tk itcl libgui sim"
1246 noconfigdirs
="$noconfigdirs expect dejagnu"
1247 # the C++ libraries don't build on top of CE's C libraries
1248 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1249 noconfigdirs
="$noconfigdirs target-newlib"
1251 *-*-cygwin*) ;; # keep gdb and readline
1252 *) noconfigdirs
="$noconfigdirs gdb readline"
1257 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1259 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1260 noconfigdirs
="$noconfigdirs ${libgcj}"
1262 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf*)
1263 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1266 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1269 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1272 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1275 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1278 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1281 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1284 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1287 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1290 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1292 c4x-
*-* | tic4x-
*-*)
1293 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1295 c54x
*-*-* | tic54x-
*-*)
1296 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1299 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1302 noconfigdirs
="$noconfigdirs target-libgloss target-libstdc++-v3 target-mudflap ${libgcj}"
1305 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1308 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1311 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1314 noconfigdirs
="$noconfigdirs ${libgcj}"
1317 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1320 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1322 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1323 # In this case, it's because the hppa64-linux target is for
1324 # the kernel only at this point and has no libc, and thus no
1325 # headers, crt*.o, etc., all of which are needed by these.
1326 noconfigdirs
="$noconfigdirs target-zlib"
1329 parisc
*-*-linux* | hppa
*-*-linux* | \
1331 hppa
*-*-openbsd* | \
1333 noconfigdirs
="$noconfigdirs ${libgcj}"
1334 # Do configure ld/binutils/gas for this case.
1337 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1338 # build on HP-UX 10.20.
1339 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1342 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1345 # No gdb support yet.
1346 noconfigdirs
="$noconfigdirs tix readline mmalloc libgui itcl gdb"
1349 # No gdb or ld support yet.
1350 noconfigdirs
="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
1352 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1353 noconfigdirs
="$noconfigdirs ${libgcj}"
1355 i
[3456789]86-*-linux*)
1356 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1357 # not build java stuff by default.
1360 noconfigdirs
="$noconfigdirs ${libgcj}";;
1363 # This section makes it possible to build newlib natively on linux.
1364 # If we are using a cross compiler then don't configure newlib.
1365 if test x
${is_cross_compiler} != xno
; then
1366 noconfigdirs
="$noconfigdirs target-newlib"
1368 noconfigdirs
="$noconfigdirs target-libgloss"
1369 # If we are not using a cross compiler, do configure newlib.
1370 # Note however, that newlib will only be configured in this situation
1371 # if the --with-newlib option has been given, because otherwise
1372 # 'target-newlib' will appear in skipdirs.
1374 i
[3456789]86-*-mingw32*)
1375 target_configdirs
="$target_configdirs target-mingw"
1376 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1378 # Can't build gdb for mingw32 if not native.
1380 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1381 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl tix gnuserv"
1386 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1387 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1388 # always build newlib if winsup directory is present.
1389 if test -d "$srcdir/winsup"
1391 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1393 echo "Warning: winsup is missing so newlib can't be built."
1396 # Can't build gdb for Cygwin if not native.
1398 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1399 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv"
1404 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1406 i
[3456789]86-*-sco3.2v5
*)
1407 # The linker does not yet know about weak symbols in COFF,
1408 # and is not configured to handle mixed ELF and COFF.
1409 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1411 i
[3456789]86-*-sco*)
1412 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1414 i
[3456789]86-*-solaris2*)
1415 noconfigdirs
="$noconfigdirs target-libgloss"
1417 i
[3456789]86-*-sysv4*)
1418 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1420 i
[3456789]86-*-beos*)
1421 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1424 noconfigdirs
="$noconfigdirs ${libgcj}"
1426 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1427 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1430 noconfigdirs
="$noconfigdirs ${libgcj}"
1433 noconfigdirs
="$noconfigdirs ${libgcj}"
1436 # The EPOC C++ environment does not support exceptions or rtti,
1437 # and so building libstdc++-v3 tends not to always work.
1438 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1441 noconfigdirs
="$noconfigdirs ${libgcj} gdb libgloss"
1444 noconfigdirs
="$noconfigdirs ${libgcj}"
1447 noconfigdirs
="$noconfigdirs ${libgcj}"
1450 # copied from rs6000-*-* entry
1451 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1453 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1454 target_configdirs
="$target_configdirs target-winsup"
1455 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}"
1456 # always build newlib.
1457 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1459 # This is temporary until we can link against shared libraries
1460 powerpcle-
*-solaris*)
1461 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}"
1464 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1467 noconfigdirs
="$noconfigdirs ${libgcj}"
1470 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1473 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1476 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1479 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1482 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1485 # Linking libjava exceeds command-line length limits on at least
1486 # IRIX 6.2, but not on IRIX 6.5.
1487 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1488 # <oldham@codesourcery.com>
1489 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1492 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1495 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1498 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1501 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1504 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1507 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1510 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1514 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1515 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1516 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1517 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1519 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1522 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1525 noconfigdirs
="$noconfigdirs ${libgcj}"
1528 noconfigdirs
="$noconfigdirs ${libgcj}"
1531 noconfigdirs
="$noconfigdirs ${libgcj}"
1534 noconfigdirs
="$noconfigdirs ${libgcj}"
1535 if test x
${is_cross_compiler} != xno
; then
1536 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1541 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1544 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1547 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1550 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1553 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1556 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1559 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1562 noconfigdirs
="$noconfigdirs ${libgcj}"
1565 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1568 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1571 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1574 noconfigdirs
="$noconfigdirs ${libgcj}"
1578 # If we aren't building newlib, then don't build libgloss, since libgloss
1579 # depends upon some newlib header files.
1580 case "${noconfigdirs}" in
1581 *target-libgloss
*) ;;
1582 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1585 # Work in distributions that contain no compiler tools, like Autoconf.
1587 host_makefile_frag
=/dev
/null
1588 if test -d ${srcdir}/config
; then
1591 # Avoid "too much defining" errors from HPUX compiler.
1592 tentative_cc
="cc -Wp,-H256000"
1593 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1594 # If it's HP/UX ar, this should be harmless.
1598 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1601 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1602 # chokes on bfd, the compiler won't let you assign integers to enums, and
1603 # other problems. Defining CC to gcc is a questionable way to say "don't use
1604 # the apollo compiler" (the preferred version of GCC could be called cc,
1605 # or whatever), but I'm not sure leaving CC as cc is any better...
1606 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1607 # Used to have BISON=yacc.
1611 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1614 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1615 tentative_cc
="cc -Xa"
1616 host_makefile_frag
="config/mh-cxux"
1618 m88k-motorola-sysv
*)
1621 tentative_cc
="cc -Wf,-XNg1000"
1622 host_makefile_frag
="config/mh-decstation"
1625 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1626 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1627 host_makefile_frag
="config/mh-necv4"
1630 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1631 # environment. Also bump switch table size so that cp-parse will
1632 # compile. Bump string length limit so linker builds.
1633 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1636 host_makefile_frag
="config/mh-sysv4"
1639 # This is for a MIPS running RISC/os 4.52C.
1641 # This is needed for GDB, but needs to be in the top-level make because
1642 # if a library is compiled with the bsd headers and gets linked with the
1643 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1644 # a different size).
1645 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1646 # known except to select the sysv environment. Could we use /proc instead?
1647 # These "sysv environments" and "bsd environments" often end up being a pain.
1649 # This is not part of CFLAGS because perhaps not all C compilers have this
1651 tentative_cc
="cc -systype sysv"
1656 i
[3456789]86-*-sysv5*)
1657 host_makefile_frag
="config/mh-sysv5"
1659 i
[3456789]86-*-dgux*)
1660 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1661 host_makefile_frag
="config/mh-dgux386"
1663 i
[3456789]86-ncr-sysv4.3
*)
1664 # The MetaWare compiler will generate a copyright message unless you
1665 # turn it off by adding the -Hnocopyr flag.
1666 tentative_cc
="cc -Hnocopyr"
1668 i
[3456789]86-ncr-sysv4*)
1669 # for an NCR 3000 (i486/SVR4) system.
1670 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1671 # This compiler not only emits obnoxious copyright messages every time
1672 # you run it, but it chokes and dies on a whole bunch of GNU source
1673 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1674 tentative_cc
="/usr/ccs/ATT/cc"
1675 host_makefile_frag
="config/mh-ncr3000"
1677 i
[3456789]86-*-sco3.2v5
*)
1679 i
[3456789]86-*-sco*)
1680 # The native C compiler botches some simple uses of const. Unfortunately,
1681 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1682 tentative_cc
="cc -Dconst="
1683 host_makefile_frag
="config/mh-sco"
1685 i
[3456789]86-*-udk*)
1686 host_makefile_frag
="config/mh-sysv5"
1688 i
[3456789]86-*-solaris2*)
1689 host_makefile_frag
="config/mh-sysv4"
1691 i
[3456789]86-*-msdosdjgpp*)
1692 host_makefile_frag
="config/mh-djgpp"
1695 host_makefile_frag
="config/mh-cygwin"
1698 host_makefile_frag
="config/mh-mingw32"
1701 host_makefile_frag
="config/mh-interix"
1704 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1708 host_makefile_frag
="config/mh-solaris"
1711 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1712 # without overflowing the jump tables (-J says to use a 32 bit table)
1713 tentative_cc
="cc -J"
1716 tentative_cc
="cc -Wp,-H256000"
1719 tentative_cc
="cc -Wp,-H256000"
1722 # /bin/cc is less than useful for our purposes. Always use GCC
1723 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1724 host_makefile_frag
="config/mh-lynxrs6k"
1727 # /bin/cc is less than useful for our purposes. Always use GCC
1728 tentative_cc
="/bin/gcc"
1731 host_makefile_frag
="config/mh-sysv4"
1736 # If we aren't going to be using gcc, see if we can extract a definition
1737 # of CC from the fragment.
1738 # Actually, use the 'pre-extracted' version above.
1739 if test -z "${CC}" && test "${build}" = "${host}" ; then
1740 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1742 for dir
in $PATH; do
1743 test -z "$dir" && dir
=.
1744 if test -f $dir/gcc
; then
1750 if test -z "${found}" && test -n "${tentative_cc}" ; then
1755 if test "${build}" != "${host}" ; then
1756 # If we are doing a Canadian Cross, in which the host and build systems
1757 # are not the same, we set reasonable default values for the tools.
1759 CC
=${CC-${host_alias}-gcc}
1760 CFLAGS
=${CFLAGS-"-g -O2"}
1761 CXX
=${CXX-${host_alias}-c++}
1762 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1763 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1764 CC_FOR_TARGET
=${CC_FOR_TARGET-${target_alias}-gcc}
1765 CXX_FOR_TARGET
=${CXX_FOR_TARGET-${target_alias}-c++}
1766 GCJ_FOR_TARGET
=${GCJ_FOR_TARGET-${target_alias}-gcj}
1767 GCC_FOR_TARGET
=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}}
1768 BUILD_DIR_PREFIX
=${build_subdir}
1769 BUILD_PREFIX
=${build_alias}-
1770 BUILD_PREFIX_1
=${build_alias}-
1773 # Set reasonable default values for some tools even if not Canadian.
1774 # Of course, these are different reasonable default values, originally
1775 # specified directly in the Makefile.
1776 # We don't export, so that autoconf can do its job.
1777 # Note that all these settings are above the fragment inclusion point
1778 # in Makefile.in, so can still be overridden by fragments.
1779 # This is all going to change when we autoconfiscate...
1781 CC_FOR_BUILD
="\$(CC)"
1782 GCC_FOR_TARGET
="\$(USUAL_GCC_FOR_TARGET)"
1785 BUILD_PREFIX_1
=loser-
1787 # Extract the first word of "gcc", so it can be a program name with args.
1788 set dummy gcc
; ac_word
=$2
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_word" >&5
1791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC
="$CC" # Let the user override the test.
1797 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1799 for ac_dir
in $ac_dummy; do
1800 test -z "$ac_dir" && ac_dir
=.
1801 if test -f $ac_dir/$ac_word; then
1810 if test -n "$CC"; then
1811 echo "$ac_t""$CC" 1>&6
1813 echo "$ac_t""no" 1>&6
1816 if test -z "$CC"; then
1817 # Extract the first word of "cc", so it can be a program name with args.
1818 set dummy cc
; ac_word
=$2
1819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1820 echo "configure:1821: checking for $ac_word" >&5
1821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC
="$CC" # Let the user override the test.
1827 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1830 for ac_dir
in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir
=.
1832 if test -f $ac_dir/$ac_word; then
1833 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1834 ac_prog_rejected
=yes
1842 if test $ac_prog_rejected = yes; then
1843 # We found a bogon in the path, so make sure we never use it.
1844 set dummy
$ac_cv_prog_CC
1846 if test $# -gt 0; then
1847 # We chose a different compiler from the bogus one.
1848 # However, it has the same basename, so the bogon will be chosen
1849 # first if we set CC to just the basename; use the full file name.
1851 set dummy
"$ac_dir/$ac_word" "$@"
1859 if test -n "$CC"; then
1860 echo "$ac_t""$CC" 1>&6
1862 echo "$ac_t""no" 1>&6
1865 if test -z "$CC"; then
1866 case "`uname -s`" in
1868 # Extract the first word of "cl", so it can be a program name with args.
1869 set dummy cl
; ac_word
=$2
1870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1871 echo "configure:1872: checking for $ac_word" >&5
1872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC
="$CC" # Let the user override the test.
1878 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1880 for ac_dir
in $ac_dummy; do
1881 test -z "$ac_dir" && ac_dir
=.
1882 if test -f $ac_dir/$ac_word; then
1891 if test -n "$CC"; then
1892 echo "$ac_t""$CC" 1>&6
1894 echo "$ac_t""no" 1>&6
1899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1907 ac_cpp
='$CPP $CPPFLAGS'
1908 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1909 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1910 cross_compiling
=$ac_cv_prog_cc_cross
1912 cat > conftest.
$ac_ext << EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1919 if { (eval echo configure
:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1920 ac_cv_prog_cc_works
=yes
1921 # If we can't run a trivial program, we are probably using a cross compiler.
1922 if (.
/conftest
; exit) 2>/dev
/null
; then
1923 ac_cv_prog_cc_cross
=no
1925 ac_cv_prog_cc_cross
=yes
1928 echo "configure: failed program was:" >&5
1929 cat conftest.
$ac_ext >&5
1930 ac_cv_prog_cc_works
=no
1934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1935 ac_cpp
='$CPP $CPPFLAGS'
1936 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1937 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1938 cross_compiling
=$ac_cv_prog_cc_cross
1940 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1941 if test $ac_cv_prog_cc_works = no
; then
1942 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1944 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1945 echo "configure:1946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1946 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1947 cross_compiling
=$ac_cv_prog_cc_cross
1949 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1950 echo "configure:1951: checking whether we are using GNU C" >&5
1951 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 cat > conftest.c
<<EOF
1959 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1966 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1968 if test $ac_cv_prog_gcc = yes; then
1974 ac_test_CFLAGS
="${CFLAGS+set}"
1975 ac_save_CFLAGS
="$CFLAGS"
1977 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1978 echo "configure:1979: checking whether ${CC-cc} accepts -g" >&5
1979 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1982 echo 'void f(){}' > conftest.c
1983 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1992 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1993 if test "$ac_test_CFLAGS" = set; then
1994 CFLAGS
="$ac_save_CFLAGS"
1995 elif test $ac_cv_prog_cc_g = yes; then
1996 if test "$GCC" = yes; then
2002 if test "$GCC" = yes; then
2010 # We must set the default linker to the linker used by gcc for the correct
2011 # operation of libtool. If LD is not defined and we are using gcc, try to
2012 # set the LD default to the ld used by gcc.
2013 if test -z "$LD"; then
2014 if test "$GCC" = yes; then
2017 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2019 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2021 case $gcc_prog_ld in
2022 # Accept absolute paths.
2023 [\\/]* |
[A-Za-z
]:[\\/]*)
2024 LD
="$gcc_prog_ld" ;;
2030 CFLAGS
=${CFLAGS-"-g"}
2031 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2034 if test $host != $build; then
2035 ac_tool_prefix
=${host_alias}-
2042 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2043 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_word" >&5
2046 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 if test -n "$GNATBIND"; then
2050 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2052 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2054 for ac_dir
in $ac_dummy; do
2055 test -z "$ac_dir" && ac_dir
=.
2056 if test -f $ac_dir/$ac_word; then
2057 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2064 GNATBIND
="$ac_cv_prog_GNATBIND"
2065 if test -n "$GNATBIND"; then
2066 echo "$ac_t""$GNATBIND" 1>&6
2068 echo "$ac_t""no" 1>&6
2072 if test -z "$ac_cv_prog_GNATBIND"; then
2073 if test -n "$ac_tool_prefix"; then
2074 # Extract the first word of "gnatbind", so it can be a program name with args.
2075 set dummy gnatbind
; ac_word
=$2
2076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_word" >&5
2078 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 if test -n "$GNATBIND"; then
2082 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2086 for ac_dir
in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir
=.
2088 if test -f $ac_dir/$ac_word; then
2089 ac_cv_prog_GNATBIND
="gnatbind"
2094 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2097 GNATBIND
="$ac_cv_prog_GNATBIND"
2098 if test -n "$GNATBIND"; then
2099 echo "$ac_t""$GNATBIND" 1>&6
2101 echo "$ac_t""no" 1>&6
2109 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2110 echo "configure:2111: checking whether compiler driver understands Ada" >&5
2111 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 cat >conftest.adb
<<EOF
2115 procedure conftest is begin null; end conftest;
2117 acx_cv_cc_gcc_supports_ada
=no
2118 # There is a bug in old released versions of GCC which causes the
2119 # driver to exit successfully when the appropriate language module
2120 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2121 # Therefore we must check for the error message as well as an
2122 # unsuccessful exit.
2123 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2124 # given a .adb file, but produce no object file. So we must check
2125 # if an object file was really produced to guard against this.
2126 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2127 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2128 acx_cv_cc_gcc_supports_ada
=yes
2134 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2136 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2142 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2143 echo "configure:2144: checking how to compare bootstrapped objects" >&5
2144 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2149 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2150 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2151 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2154 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2157 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2158 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2161 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2168 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2169 do_compare
="$gcc_cv_prog_cmp_skip"
2177 # Specify a location for gmp
2178 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2179 if test "${with_gmp_dir+set}" = set; then
2180 withval
="$with_gmp_dir"
2185 if test "x$with_gmp_dir" != x
&& test -f "$with_gmp_dir/gmp.h"; then
2186 gmpinc
="-I$with_gmp_dir"
2187 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2188 gmplibs
="$with_gmp_dir/.libs/libgmp.a"
2189 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2190 gmplibs
="$with_gmp_dir/_libs/libgmp.a"
2192 # One of the later tests will catch the error if neither library is present.
2195 # Check whether --with-gmp or --without-gmp was given.
2196 if test "${with_gmp+set}" = set; then
2202 if test "x$with_gmp" != x
&& test -d "$with_gmp"; then
2203 gmplibs
="-L$with_gmp/lib -lgmp"
2204 gmpinc
="-I$with_gmp/include"
2207 # Use system gmp if nothing else specified
2208 if test "x$gmplibs" = x
; then
2212 saved_CFLAGS
="$CFLAGS"
2213 CFLAGS
="$CFLAGS $gmpinc"
2214 # Check GMP actually works
2215 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2216 echo "configure:2217: checking for correct version of gmp.h" >&5
2217 cat > conftest.
$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2223 #if __GNU_MP_VERSION < 3
2229 if { (eval echo configure
:2230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2231 echo "$ac_t""yes" 1>&6
2233 echo "configure: failed program was:" >&5
2234 cat conftest.
$ac_ext >&5
2236 echo "$ac_t""no" 1>&6; have_gmp
=no
2240 if test x
"$have_gmp" = xyes
; then
2241 echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6
2242 echo "configure:2243: checking for mpf_init in -lgmp" >&5
2245 LIBS
="$LIBS $gmplibs"
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2251 mpf_t n; mpf_init(n);
2254 if { (eval echo configure
:2255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2256 echo "$ac_t""yes" 1>&6
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2261 echo "$ac_t""no" 1>&6; have_gmp
=no
2265 CFLAGS
="$saved_CFLAGS"
2271 # By default, C is the only stage 1 language.
2275 # Figure out what language subdirectories are present.
2276 # Look if the user specified --enable-languages="..."; if not, use
2277 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2279 # NB: embedded tabs in this IF block -- do not untabify
2280 if test -d ${srcdir}/gcc
; then
2281 if test x
"${enable_languages+set}" != xset
; then
2282 if test x
"${LANGUAGES+set}" = xset
; then
2283 enable_languages
="${LANGUAGES}"
2284 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2286 enable_languages
=all
2289 if test x
"${enable_languages}" = x ||
2290 test x
"${enable_languages}" = xyes
;
2292 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2296 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2298 # First scan to see if an enabled language requires some other language.
2299 # We assume that a given config-lang.in will list all the language
2300 # front ends it requires, even if some are required indirectly.
2301 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2302 case ${lang_frag} in
2304 # The odd quoting in the next line works around
2305 # an apparent bug in bash 1.12 on linux.
2306 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2308 # From the config-lang.in, get $language, $lang_requires
2312 for other
in ${lang_requires} ; do
2313 case ,${enable_languages}, in
2317 echo " \`$other' language required by \`$language'; enabling" 1>&2
2318 enable_languages
="${enable_languages},${other}"
2326 new_enable_languages
=c
2327 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2329 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2330 case ${lang_frag} in
2332 # The odd quoting in the next line works around
2333 # an apparent bug in bash 1.12 on linux.
2334 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2336 # From the config-lang.in, get $language, $target_libs,
2337 # $lang_dirs, $boot_language, and $build_by_default
2345 # This is quite sensitive to the ordering of the case statement arms.
2346 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2348 echo "${lang_frag} doesn't set \$language." 1>&2
2352 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2355 *,${language},*:*:*:*)
2356 # Language was explicitly selected; include it.
2360 # 'all' was selected, but this is not a default language
2361 # so do not include it.
2365 # 'all' was selected and this is a default language; include it.
2373 # Disable language that need GMP if it isn't available.
2374 if test x
"$need_gmp" = xyes
&& test x
"$have_gmp" = xno
; then
2378 case $add_this_lang in
2380 # Remove language-dependent dirs.
2381 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2384 new_enable_languages
="$new_enable_languages,$language"
2385 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2386 case ${boot_language} in
2388 # Add to (comma-separated) list of stage 1 languages.
2389 stage1_languages
="${stage1_languages},${language}"
2398 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2399 if test "x$missing_languages" != x
; then
2400 { echo "configure: error:
2401 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
2404 if test "x$new_enable_languages" != "x$enable_languages"; then
2405 echo The following languages will be built
: ${new_enable_languages}
2407 enable_languages
="$new_enable_languages"
2408 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2411 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
2412 # $target_configdirs.
2413 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2416 for dir
in .
$skipdirs $noconfigdirs ; do
2417 dirname=`echo $dir | sed -e s/target-//g`
2418 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2419 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2420 if test -r $srcdir/$dirname/configure
; then
2421 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2424 notsupp
="$notsupp $dir"
2428 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2429 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2430 if test -r $srcdir/$dirname/configure
; then
2431 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2434 notsupp
="$notsupp $dir"
2440 # Sometimes the tools are distributed with libiberty but with no other
2441 # libraries. In that case, we don't want to build target-libiberty.
2442 if test -n "${target_configdirs}" ; then
2444 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2445 if test "$i" != "libiberty" ; then
2446 if test -r $srcdir/$i/configure
; then
2452 if test -z "${others}" ; then
2457 # Quietly strip out all directories which aren't configurable in this tree.
2458 # This relies on all configurable subdirectories being autoconfiscated, which
2460 build_configdirs_all
="$build_configdirs"
2462 for i
in ${build_configdirs_all} ; do
2463 j
=`echo $i | sed -e s/build-//g`
2464 if test -f ${srcdir}/$j/configure
; then
2465 build_configdirs
="${build_configdirs} $i"
2469 configdirs_all
="$configdirs"
2471 for i
in ${configdirs_all} ; do
2472 if test -f ${srcdir}/$i/configure
; then
2473 configdirs
="${configdirs} $i"
2477 target_configdirs_all
="$target_configdirs"
2479 for i
in ${target_configdirs_all} ; do
2480 j
=`echo $i | sed -e s/target-//g`
2481 if test -f ${srcdir}/$j/configure
; then
2482 target_configdirs
="${target_configdirs} $i"
2486 # Produce a warning message for the subdirs we can't configure.
2487 # This isn't especially interesting in the Cygnus tree, but in the individual
2488 # FSF releases, it's important to let people know when their machine isn't
2489 # supported by the one or two programs in a package.
2491 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2492 # If $appdirs is non-empty, at least one of those directories must still
2493 # be configured, or we error out. (E.g., if the gas release supports a
2494 # specified target in some subdirs but not the gas subdir, we shouldn't
2495 # pretend that all is well.)
2496 if test -n "$appdirs" ; then
2497 for dir
in $appdirs ; do
2498 if test -r $dir/Makefile.
in ; then
2499 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2503 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2509 if test -n "$appdirs" ; then
2510 echo "*** This configuration is not supported by this package." 1>&2
2514 # Okay, some application will build, or we don't care to check. Still
2515 # notify of subdirs not getting built.
2516 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2517 echo " ${notsupp}" 1>&2
2518 echo " (Any other directories should still work fine.)" 1>&2
2528 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2529 # the named directory are copied to $(tooldir)/sys-include.
2530 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2531 if test x
${is_cross_compiler} = xno
; then
2532 echo 1>&2 '***' --with-headers is only supported when cross compiling
2535 if test x
"${with_headers}" != xyes
; then
2536 case "${exec_prefixoption}" in
2538 *) x
=${exec_prefix} ;;
2540 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2544 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2545 # the name directories are copied to $(tooldir)/lib. Multiple directories
2547 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2548 if test x
${is_cross_compiler} = xno
; then
2549 echo 1>&2 '***' --with-libs is only supported when cross compiling
2552 if test x
"${with_libs}" != xyes
; then
2553 # Copy the libraries in reverse order, so that files in the first named
2554 # library override files in subsequent libraries.
2555 case "${exec_prefixoption}" in
2557 *) x
=${exec_prefix} ;;
2559 for l
in ${with_libs}; do
2560 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2565 # Handle ${copy_dirs}
2566 set fnord
${copy_dirs}
2568 while test $# != 0 ; do
2569 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2572 echo Copying
$1 to
$2
2574 # Use the install script to create the directory and all required
2575 # parent directories.
2576 if test -d $2 ; then
2580 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2583 # Copy the directory, assuming we have tar.
2584 # FIXME: Should we use B in the second tar? Not all systems support it.
2585 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2587 # It is the responsibility of the user to correctly adjust all
2588 # symlinks. If somebody can figure out how to handle them correctly
2589 # here, feel free to add the code.
2596 extra_arflags_for_target
=
2597 extra_nmflags_for_target
=
2598 extra_ranlibflags_for_target
=
2599 target_makefile_frag
=/dev
/null
2601 i
[3456789]86-*-netware*)
2602 target_makefile_frag
="config/mt-netware"
2605 target_makefile_frag
="config/mt-netware"
2607 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2608 target_makefile_frag
="config/mt-gnu"
2610 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2611 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2612 # commands to handle both 32-bit and 64-bit objects. These flags are
2613 # harmless if we're using GNU nm or ar.
2614 extra_arflags_for_target
=" -X32_64"
2615 extra_nmflags_for_target
=" -B -X32_64"
2618 # ranlib from Darwin requires the -c flag to look at common symbols.
2619 extra_ranlibflags_for_target
=" -c"
2621 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2622 target_makefile_frag
="config/mt-wince"
2626 alphaieee_frag
=/dev
/null
2629 # This just makes sure to use the -mieee option to build target libs.
2630 # This should probably be set individually by each library.
2631 alphaieee_frag
="config/mt-alphaieee"
2635 # If --enable-target-optspace always use -Os instead of -O2 to build
2636 # the target libraries, similarly if it is not specified, use -Os
2637 # on selected platforms.
2638 ospace_frag
=/dev
/null
2639 case "${enable_target_optspace}:${target}" in
2641 ospace_frag
="config/mt-ospace"
2644 ospace_frag
="config/mt-d30v"
2646 :m32r-
* |
:d10v-
* |
:fr30-
*)
2647 ospace_frag
="config/mt-ospace"
2652 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2656 # Set with_gnu_as and with_gnu_ld as appropriate.
2658 # This is done by determining whether or not the appropriate directory
2659 # is available, and by checking whether or not specific configurations
2660 # have requested that this magic not happen.
2662 # The command line options always override the explicit settings in
2663 # configure.in, and the settings in configure.in override this magic.
2665 # If the default for a toolchain is to use GNU as and ld, and you don't
2666 # want to do that, then you should use the --without-gnu-as and
2667 # --without-gnu-ld options for the configure script.
2669 if test x
${use_gnu_as} = x
&&
2670 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2672 extra_host_args
="$extra_host_args --with-gnu-as"
2675 if test x
${use_gnu_ld} = x
&&
2676 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2678 extra_host_args
="$extra_host_args --with-gnu-ld"
2681 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2682 # can detect this case.
2684 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2686 extra_host_args
="$extra_host_args --with-newlib"
2689 if test x
${with_libbanshee} = xyes
&& echo " ${configdirs} " |
grep " libbanshee " >/dev
/null
2>&1; then
2690 extra_host_args
="$extra_host_args --with-libbanshee"
2693 # Default to using --with-stabs for certain targets.
2694 if test x
${with_stabs} = x
; then
2698 mips
*-*-* | alpha
*-*-osf*)
2700 extra_host_args
="${extra_host_args} --with-stabs"
2705 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2706 # them automatically.
2709 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2713 # Some systems (e.g., one of the i386-aix systems the gas testers are
2714 # using) don't handle "\$" correctly, so don't use it here.
2715 tooldir
='${exec_prefix}'/${target_alias}
2716 build_tooldir
=${tooldir}
2718 # Generate default definitions for YACC, M4, LEX and other programs that run
2719 # on the build machine. These are used if the Makefile can't locate these
2720 # programs in objdir.
2721 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2722 for ac_prog
in bison
2724 # Extract the first word of "$ac_prog", so it can be a program name with args.
2725 set dummy
$ac_prog; ac_word
=$2
2726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2727 echo "configure:2728: checking for $ac_word" >&5
2728 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 if test -n "$CONFIGURED_BISON"; then
2732 ac_cv_prog_CONFIGURED_BISON
="$CONFIGURED_BISON" # Let the user override the test.
2734 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2736 for ac_dir
in $ac_dummy; do
2737 test -z "$ac_dir" && ac_dir
=.
2738 if test -f $ac_dir/$ac_word; then
2739 ac_cv_prog_CONFIGURED_BISON
="$ac_prog"
2746 CONFIGURED_BISON
="$ac_cv_prog_CONFIGURED_BISON"
2747 if test -n "$CONFIGURED_BISON"; then
2748 echo "$ac_t""$CONFIGURED_BISON" 1>&6
2750 echo "$ac_t""no" 1>&6
2753 test -n "$CONFIGURED_BISON" && break
2755 test -n "$CONFIGURED_BISON" || CONFIGURED_BISON
="$MISSING bison"
2757 for ac_prog
in 'bison -y' byacc
yacc
2759 # Extract the first word of "$ac_prog", so it can be a program name with args.
2760 set dummy
$ac_prog; ac_word
=$2
2761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2762 echo "configure:2763: checking for $ac_word" >&5
2763 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 if test -n "$CONFIGURED_YACC"; then
2767 ac_cv_prog_CONFIGURED_YACC
="$CONFIGURED_YACC" # Let the user override the test.
2769 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2771 for ac_dir
in $ac_dummy; do
2772 test -z "$ac_dir" && ac_dir
=.
2773 if test -f $ac_dir/$ac_word; then
2774 ac_cv_prog_CONFIGURED_YACC
="$ac_prog"
2781 CONFIGURED_YACC
="$ac_cv_prog_CONFIGURED_YACC"
2782 if test -n "$CONFIGURED_YACC"; then
2783 echo "$ac_t""$CONFIGURED_YACC" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 test -n "$CONFIGURED_YACC" && break
2790 test -n "$CONFIGURED_YACC" || CONFIGURED_YACC
="$MISSING bison -y"
2792 for ac_prog
in gm4 gnum4
m4
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy
$ac_prog; ac_word
=$2
2796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2797 echo "configure:2798: checking for $ac_word" >&5
2798 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 if test -n "$CONFIGURED_M4"; then
2802 ac_cv_prog_CONFIGURED_M4
="$CONFIGURED_M4" # Let the user override the test.
2804 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2806 for ac_dir
in $ac_dummy; do
2807 test -z "$ac_dir" && ac_dir
=.
2808 if test -f $ac_dir/$ac_word; then
2809 ac_cv_prog_CONFIGURED_M4
="$ac_prog"
2816 CONFIGURED_M4
="$ac_cv_prog_CONFIGURED_M4"
2817 if test -n "$CONFIGURED_M4"; then
2818 echo "$ac_t""$CONFIGURED_M4" 1>&6
2820 echo "$ac_t""no" 1>&6
2823 test -n "$CONFIGURED_M4" && break
2825 test -n "$CONFIGURED_M4" || CONFIGURED_M4
="$MISSING m4"
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy
$ac_prog; ac_word
=$2
2831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2832 echo "configure:2833: checking for $ac_word" >&5
2833 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 if test -n "$CONFIGURED_FLEX"; then
2837 ac_cv_prog_CONFIGURED_FLEX
="$CONFIGURED_FLEX" # Let the user override the test.
2839 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2841 for ac_dir
in $ac_dummy; do
2842 test -z "$ac_dir" && ac_dir
=.
2843 if test -f $ac_dir/$ac_word; then
2844 ac_cv_prog_CONFIGURED_FLEX
="$ac_prog"
2851 CONFIGURED_FLEX
="$ac_cv_prog_CONFIGURED_FLEX"
2852 if test -n "$CONFIGURED_FLEX"; then
2853 echo "$ac_t""$CONFIGURED_FLEX" 1>&6
2855 echo "$ac_t""no" 1>&6
2858 test -n "$CONFIGURED_FLEX" && break
2860 test -n "$CONFIGURED_FLEX" || CONFIGURED_FLEX
="$MISSING flex"
2862 for ac_prog
in flex
lex
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy
$ac_prog; ac_word
=$2
2866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_word" >&5
2868 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 if test -n "$CONFIGURED_LEX"; then
2872 ac_cv_prog_CONFIGURED_LEX
="$CONFIGURED_LEX" # Let the user override the test.
2874 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2876 for ac_dir
in $ac_dummy; do
2877 test -z "$ac_dir" && ac_dir
=.
2878 if test -f $ac_dir/$ac_word; then
2879 ac_cv_prog_CONFIGURED_LEX
="$ac_prog"
2886 CONFIGURED_LEX
="$ac_cv_prog_CONFIGURED_LEX"
2887 if test -n "$CONFIGURED_LEX"; then
2888 echo "$ac_t""$CONFIGURED_LEX" 1>&6
2890 echo "$ac_t""no" 1>&6
2893 test -n "$CONFIGURED_LEX" && break
2895 test -n "$CONFIGURED_LEX" || CONFIGURED_LEX
="$MISSING flex"
2897 for ac_prog
in makeinfo
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy
$ac_prog; ac_word
=$2
2901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2902 echo "configure:2903: checking for $ac_word" >&5
2903 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 if test -n "$CONFIGURED_MAKEINFO"; then
2907 ac_cv_prog_CONFIGURED_MAKEINFO
="$CONFIGURED_MAKEINFO" # Let the user override the test.
2909 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2911 for ac_dir
in $ac_dummy; do
2912 test -z "$ac_dir" && ac_dir
=.
2913 if test -f $ac_dir/$ac_word; then
2914 ac_cv_prog_CONFIGURED_MAKEINFO
="$ac_prog"
2921 CONFIGURED_MAKEINFO
="$ac_cv_prog_CONFIGURED_MAKEINFO"
2922 if test -n "$CONFIGURED_MAKEINFO"; then
2923 echo "$ac_t""$CONFIGURED_MAKEINFO" 1>&6
2925 echo "$ac_t""no" 1>&6
2928 test -n "$CONFIGURED_MAKEINFO" && break
2930 test -n "$CONFIGURED_MAKEINFO" || CONFIGURED_MAKEINFO
="$MISSING makeinfo"
2933 # Create a .gdbinit file which runs the one in srcdir
2934 # and tells GDB to look there for source files.
2936 if test -r ${srcdir}/.gdbinit
; then
2939 *) cat > .
/.gdbinit
<<EOF
2943 source ${srcdir}/.gdbinit
2949 # Make sure that the compiler is able to generate an executable. If it
2950 # can't, we are probably in trouble. We don't care whether we can run the
2951 # executable--we might be using a cross compiler--we only care whether it
2952 # can be created. At this point the main configure script has set CC.
2954 echo "int main () { return 0; }" > conftest.c
2955 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2956 if test $?
= 0 ; then
2957 if test -s conftest ||
test -s conftest.exe
; then
2963 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2964 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2971 # The Solaris /usr/ucb/cc compiler does not appear to work.
2973 sparc-sun-solaris2
*)
2974 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2975 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2977 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2978 if test -d /opt
/cygnus
/bin
; then
2979 if test "$could_use" = "" ; then
2980 could_use
="/opt/cygnus/bin"
2982 could_use
="$could_use or /opt/cygnus/bin"
2985 if test "$could_use" = "" ; then
2986 echo "Warning: compilation may fail because you're using"
2987 echo "/usr/ucb/cc. You should change your PATH or CC "
2988 echo "variable and rerun configure."
2990 echo "Warning: compilation may fail because you're using"
2991 echo "/usr/ucb/cc, when you should use the C compiler from"
2992 echo "$could_use. You should change your"
2993 echo "PATH or CC variable and rerun configure."
2999 # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
3000 # binutils tools will find libbfd.so.
3001 case "${enable_shared}" in
3002 no |
"") SET_LIB_PATH
= ;;
3003 *) SET_LIB_PATH
="\$(REALLY_SET_LIB_PATH)" ;;
3007 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
3008 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
3011 # Record target_configdirs and the configure arguments for target and
3012 # build configuration in Makefile.
3013 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
3014 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
3016 # Determine whether gdb needs tk/tcl or not.
3017 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
3018 # and in that case we want gdb to be built without tk. Ugh!
3019 # In fact I believe gdb is the *only* package directly dependent on tk,
3020 # so we should be able to put the 'maybe's in unconditionally and
3021 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
3022 # 100% sure that that's safe though.
3024 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui"
3025 case "$enable_gdbtk" in
3029 GDB_TK
="${gdb_tk}" ;;
3031 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3032 # distro. Eventually someone will fix this and move Insight, nee
3033 # gdbtk to a separate directory.
3034 if test -d ${srcdir}/gdb
/gdbtk
; then
3042 # Strip out unwanted targets.
3044 # While at that, we remove Makefiles if we were started for recursive
3045 # configuration, so that the top-level Makefile reconfigures them,
3046 # like we used to do when configure itself was recursive.
3048 # Loop over modules. $extrasub must be used with care, limiting as
3049 # much as possible the usage of range addresses. That's because autoconf
3050 # splits the sed script to overcome limits in the number of commands,
3051 # and relying on carefully-timed sed passes may turn out to be very hard
3052 # to maintain later. In this particular case, you just have to be careful
3053 # not to nest @if/@endif pairs, because configure will not warn you at all.
3055 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3056 if test "${enable_bootstrap+set}" = set; then
3057 enableval
="$enable_bootstrap"
3063 if test -d ${srcdir}/gcc
; then
3064 case "$host:$target:$enable_bootstrap" in
3065 $build:$build:yes |
*:no
) ;;
3066 *:yes) { echo "configure: error: cannot bootstrap a cross-compiler" 1>&2; exit 1; } ;;
3067 *) { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; } ;;
3070 if test $enable_bootstrap = yes; then
3071 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; }
3075 case "$enable_bootstrap" in
3077 default_target
=bootstrap
3078 bootstrap_suffix
=bootstrap
;;
3081 bootstrap_suffix
=no-bootstrap
;;
3085 for module
in ${build_configdirs} ; do
3086 if test -z "${no_recursion}" \
3087 && test -f ${build_subdir}/${module}/Makefile
; then
3088 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3089 rm -f ${build_subdir}/${module}/Makefile
3092 /^@if build-$module\$/d
3093 /^@endif build-$module\$/d
3094 /^@if build-$module-$bootstrap_suffix\$/d
3095 /^@endif build-$module-$bootstrap_suffix\$/d"
3097 for module
in ${configdirs} ; do
3098 if test -z "${no_recursion}" \
3099 && test -f ${module}/Makefile
; then
3100 echo 1>&2 "*** removing ${module}/Makefile to force reconfigure"
3101 rm -f ${module}/Makefile
3105 /^@endif $module\$/d
3106 /^@if $module-$bootstrap_suffix\$/d
3107 /^@endif $module-$bootstrap_suffix\$/d"
3109 for module
in ${target_configdirs} ; do
3110 if test -z "${no_recursion}" \
3111 && test -f ${target_subdir}/${module}/Makefile
; then
3112 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3113 rm -f ${target_subdir}/${module}/Makefile
3116 /^@if target-$module\$/d
3117 /^@endif target-$module\$/d
3118 /^@if target-$module-$bootstrap_suffix\$/d
3119 /^@endif target-$module-$bootstrap_suffix\$/d"
3123 /^@if /,/^@endif /d"
3125 # Create the serialization dependencies. This uses a temporary file.
3127 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3128 if test "${enable_serial_configure+set}" = set; then
3129 enableval
="$enable_serial_configure"
3134 case ${enable_serial_configure} in
3136 enable_serial_build_configure
=yes
3137 enable_serial_host_configure
=yes
3138 enable_serial_target_configure
=yes
3142 # These force 'configure's to be done one at a time, to avoid problems
3143 # with contention over a shared config.cache.
3145 echo '# serdep.tmp' > serdep.tmp
3147 test "x${enable_serial_build_configure}" = xyes
&&
3148 for item
in ${build_configdirs} ; do
3151 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3156 test "x${enable_serial_host_configure}" = xyes
&&
3157 for item
in ${configdirs} ; do
3160 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3165 test "x${enable_serial_target_configure}" = xyes
&&
3166 for item
in ${target_configdirs} ; do
3169 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3173 serialization_dependencies
=serdep.tmp
3176 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3177 # target and nonopt. These are the ones we might not want to pass
3178 # down to subconfigures. Also strip program-prefix, program-suffix,
3179 # and program-transform-name, so that we can pass down a consistent
3180 # program-transform-name. If autoconf has put single quotes around
3181 # any of these arguments (because they contain shell metacharacters)
3182 # then this will fail; in practice this only happens for
3183 # --program-transform-name, so be sure to override --program-transform-name
3184 # at the end of the argument list.
3185 # These will be expanded by make, so quote '$'.
3186 cat <<\EOF_SED
> conftestsed
3188 s
/ --c[a-z-
]*[= ][^
]*//g
3189 s
/ --sr[a-z-
]*[= ][^
]*//g
3190 s
/ --ho[a-z-
]*[= ][^
]*//g
3191 s
/ --bu[a-z-
]*[= ][^
]*//g
3192 s
/ --t[a-z-
]*[= ][^
]*//g
3193 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3194 s
/ -cache-file[= ][^
]*//g
3195 s
/ -srcdir[= ][^
]*//g
3196 s
/ -host[= ][^
]*//g
3197 s
/ -build[= ][^
]*//g
3198 s
/ -target[= ][^
]*//g
3199 s
/ -program-prefix[= ][^
]*//g
3200 s
/ -program-suffix[= ][^
]*//g
3201 s
/ -program-transform-name[= ][^
]*//g
3206 sed -f conftestsed <<EOF_SED > conftestsed.out
3207 ${ac_configure_args}
3209 baseargs=`cat conftestsed.out`
3210 rm -f conftestsed conftestsed.out
3212 # Add in --program-transform-name, after --program-prefix and
3213 # --program-suffix have been applied to it. Autoconf has already
3214 # doubled dollar signs and backslashes in program_transform_name; we want
3215 # the backslashes un-doubled, and then the entire thing wrapped in single
3216 # quotes, because this will be expanded first by make and then by the shell.
3217 # Also, because we want to override the logic in subdir configure scripts to
3218 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3219 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3220 ${program_transform_name}
3222 gcc_transform_name=`cat conftestsed.out`
3223 rm -f conftestsed.out
3224 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3226 # For the build-side libraries, we just need to pretend we're native
,
3227 # and not use the same cache file. Multilibs are neither needed nor
3229 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
3231 # For host modules, accept cache file option, or specification as blank.
3232 case "${cache_file}" in
3234 cache_file_option
="" ;;
3235 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3236 cache_file_option
="--cache-file=${cache_file}" ;;
3238 cache_file_option
="--cache-file=../${cache_file}" ;;
3241 # Host dirs don't like to share a cache file either, horribly enough.
3242 # This seems to be due to autoconf 2.5x stupidity.
3243 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3245 target_configargs
=${baseargs}
3247 # Passing a --with-cross-host argument lets the target libraries know
3248 # whether they are being built with a cross-compiler or being built
3249 # native. However, it would be better to use other mechanisms to make the
3250 # sorts of decisions they want to make on this basis. Please consider
3251 # this option to be deprecated. FIXME.
3252 if test x
${is_cross_compiler} = xyes
; then
3253 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3256 # Default to --enable-multilib.
3257 if test x
${enable_multilib} = x
; then
3258 target_configargs
="--enable-multilib ${target_configargs}"
3261 # Pass --with-newlib if appropriate. Note that target_configdirs has
3262 # changed from the earlier setting of with_newlib.
3263 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3264 target_configargs
="--with-newlib ${target_configargs}"
3267 # Different target subdirs use different values of certain variables
3268 # (notably CXX). Worse, multilibs use *lots* of different values.
3269 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3270 # it doesn't automatically accept command-line overrides of them.
3271 # This means it's not safe for target subdirs to share a cache file,
3272 # which is disgusting, but there you have it. Hopefully this can be
3273 # fixed in future. It's still worthwhile to use a cache file for each
3274 # directory. I think.
3276 # Pass the appropriate --host, --build, and --cache-file arguments.
3277 target_configargs
="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}"
3279 # provide a proper gxx_include_dir.
3280 # Note, if you change the default, make sure to fix both here and in
3281 # the gcc and libstdc++-v3 subdirectories.
3282 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
3283 case "${with_gxx_include_dir}" in
3285 { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; }
3288 case "${enable_version_specific_runtime_libs}" in
3289 yes) gxx_include_dir
='${libsubdir}/include/c++' ;;
3291 .
${srcdir}/config.
if
3292 gxx_include_dir
='${prefix}/include/'${libstdcxx_incdir} ;;
3294 *) gxx_include_dir
=${with_gxx_include_dir} ;;
3298 case " $target_configdirs " in
3300 case " $target_configargs " in
3301 *" --with-newlib "*)
3304 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
3307 # If we're not building GCC, don't discard standard headers.
3308 if test -d ${srcdir}/gcc
; then
3309 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3311 if test "${build}" != "${host}"; then
3312 # On Canadian crosses, CC_FOR_TARGET will have already been set
3313 # by `configure', so we won't have an opportunity to add -Bgcc/
3314 # to it. This is right: we don't want to search that directory
3315 # for binaries, but we want the header files in there, so add
3317 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include'
3319 # Someone might think of using the pre-installed headers on
3320 # Canadian crosses, in case the installed compiler is not fully
3321 # compatible with the compiler being built. In this case, it
3322 # would be better to flag an error than risking having
3323 # incompatible object files being constructed. We can't
3324 # guarantee that an error will be flagged, but let's hope the
3325 # compiler will do it, when presented with incompatible header
3330 case "${target}-${is_cross_compiler}" in
3331 i
[3456789]86-*-linux*-no)
3332 # Here host == target, so we don't need to build gcc,
3333 # so we don't want to discard standard headers.
3334 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3337 # If we're building newlib, use its generic headers last, but search
3338 # for any libc-related directories first (so make it the last -B
3340 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3348 # Allow the user to override the flags for
3349 # our build compiler if desired.
3350 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3352 # On Canadian crosses, we'll be searching the right directories for
3353 # the previously-installed cross compiler, so don't bother to add
3354 # flags for directories within the install tree of the compiler
3355 # being built; programs in there won't even run.
3356 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3357 # Search for pre-installed headers if nothing else fits.
3358 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3361 if test "x
${use_gnu_ld}" = x &&
3362 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3363 # Arrange for us to find uninstalled linker scripts.
3364 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld'
3367 if test "x
${CC_FOR_TARGET+set}" = xset; then
3369 elif test -d ${srcdir}/gcc; then
3370 CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
3371 elif test "$host" = "$target"; then
3372 CC_FOR_TARGET='$(CC)'
3374 CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"`
3376 CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3378 if test "x
${GCJ_FOR_TARGET+set}" = xset; then
3380 elif test -d ${srcdir}/gcc; then
3381 GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
3382 elif test "$host" = "$target"; then
3383 GCJ_FOR_TARGET='gcj'
3385 GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"`
3387 GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3389 if test "x
${GFORTRAN_FOR_TARGET+set}" = xset; then
3391 elif test -d ${srcdir}/gcc; then
3392 GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/'
3393 elif test "$host" = "$target"; then
3394 GFORTRAN_FOR_TARGET='gfortran'
3396 GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"`
3398 case $GFORTRAN_FOR_TARGET in
3399 *' $(FLAGS_FOR_TARGET)') ;;
3400 *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;;
3403 # Don't use libstdc++-v3's flags to configure/build itself.
3404 libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3405 raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
3407 if test "x
${CXX_FOR_TARGET+set}" = xset; then
3408 if test "x
${RAW_CXX_FOR_TARGET+set}" != xset; then
3409 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3411 elif test -d ${srcdir}/gcc; then
3412 # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
3413 # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
3414 # default whereas gcc does not.
3415 # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for
3417 CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags
3418 RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags
3419 elif test "$host" = "$target"; then
3420 CXX_FOR_TARGET='$(CXX)'
3421 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3423 CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"`
3424 RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET}
3426 CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3427 RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)'
3429 qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3430 qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
3432 # We want to defer the evaluation of `cmd`s and shell variables in
3433 # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for
3434 # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single
3435 # quotes, but we still have to duplicate `$'s so that shell variables
3436 # can be expanded by the nested make as shell variables, not as make
3438 qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3439 qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
3441 # Wrap CC_FOR_TARGET and friends, for certain types of builds.
3442 CC_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${CC_FOR_TARGET}"
3443 GCJ_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GCJ_FOR_TARGET}"
3444 GFORTRAN_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${GFORTRAN_FOR_TARGET}"
3445 CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qCXX_FOR_TARGET}"
3446 RAW_CXX_FOR_TARGET="\$
(STAGE_CC_WRAPPER
) ${qRAW_CXX_FOR_TARGET}"
3447 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqCXX_FOR_TARGET}"
3448 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$
(STAGE_CC_WRAPPER
) ${qqRAW_CXX_FOR_TARGET}"
3450 # Makefile fragments.
3451 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3453 eval fragval=\$$frag
3454 if test $fragval != /dev/null; then
3455 eval $frag=${srcdir}/$fragval
3463 # Miscellanea: directories, flags, etc.
3477 # Build module lists & subconfigure args.
3481 # Host module lists & subconfigure args.
3485 # Target module lists & subconfigure args.
3495 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3496 ncn_target_tool_prefix=
3497 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3499 if test -n "$ncn_tool_prefix"; then
3500 # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args.
3501 set dummy ${ncn_tool_prefix}ar; ac_word=$2
3502 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3503 echo "configure
:3504: checking
for $ac_word" >&5
3504 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3505 echo $ac_n "(cached
) $ac_c" 1>&6
3507 if test -n "$AR"; then
3508 ac_cv_prog_AR="$AR" # Let the user override the test.
3510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3512 for ac_dir in $ac_dummy; do
3513 test -z "$ac_dir" && ac_dir=.
3514 if test -f $ac_dir/$ac_word; then
3515 ac_cv_prog_AR="${ncn_tool_prefix}ar"
3523 if test -n "$AR"; then
3524 echo "$ac_t""$AR" 1>&6
3526 echo "$ac_t""no
" 1>&6
3530 if test -z "$ac_cv_prog_AR" ; then
3531 if test $build = $host ; then
3533 # Extract the first word of "ar", so it can be a program name with args.
3534 set dummy ar; ac_word=$2
3535 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3536 echo "configure
:3537: checking
for $ac_word" >&5
3537 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
3538 echo $ac_n "(cached
) $ac_c" 1>&6
3540 if test -n "$ncn_cv_AR"; then
3541 ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test.
3543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3545 for ac_dir in $ac_dummy; do
3546 test -z "$ac_dir" && ac_dir=.
3547 if test -f $ac_dir/$ac_word; then
3548 ac_cv_prog_ncn_cv_AR="ar"
3553 test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar"
3556 ncn_cv_AR="$ac_cv_prog_ncn_cv_AR"
3557 if test -n "$ncn_cv_AR"; then
3558 echo "$ac_t""$ncn_cv_AR" 1>&6
3560 echo "$ac_t""no
" 1>&6
3565 AR="${ncn_tool_prefix}ar"
3571 if test -n "$ncn_tool_prefix"; then
3572 # Extract the first word of "${ncn_tool_prefix}as
", so it can be a program name with args.
3573 set dummy ${ncn_tool_prefix}as; ac_word=$2
3574 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3575 echo "configure
:3576: checking
for $ac_word" >&5
3576 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3577 echo $ac_n "(cached
) $ac_c" 1>&6
3579 if test -n "$AS"; then
3580 ac_cv_prog_AS="$AS" # Let the user override the test.
3582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3584 for ac_dir in $ac_dummy; do
3585 test -z "$ac_dir" && ac_dir=.
3586 if test -f $ac_dir/$ac_word; then
3587 ac_cv_prog_AS="${ncn_tool_prefix}as
"
3595 if test -n "$AS"; then
3596 echo "$ac_t""$AS" 1>&6
3598 echo "$ac_t""no
" 1>&6
3602 if test -z "$ac_cv_prog_AS" ; then
3603 if test $build = $host ; then
3605 # Extract the first word of "as
", so it can be a program name with args.
3606 set dummy as; ac_word=$2
3607 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3608 echo "configure
:3609: checking
for $ac_word" >&5
3609 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
3610 echo $ac_n "(cached
) $ac_c" 1>&6
3612 if test -n "$ncn_cv_AS"; then
3613 ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test.
3615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3617 for ac_dir in $ac_dummy; do
3618 test -z "$ac_dir" && ac_dir=.
3619 if test -f $ac_dir/$ac_word; then
3620 ac_cv_prog_ncn_cv_AS="as
"
3625 test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as
"
3628 ncn_cv_AS="$ac_cv_prog_ncn_cv_AS"
3629 if test -n "$ncn_cv_AS"; then
3630 echo "$ac_t""$ncn_cv_AS" 1>&6
3632 echo "$ac_t""no
" 1>&6
3637 AS="${ncn_tool_prefix}as
"
3643 if test -n "$ncn_tool_prefix"; then
3644 # Extract the first word of "${ncn_tool_prefix}dlltool
", so it can be a program name with args.
3645 set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
3646 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3647 echo "configure
:3648: checking
for $ac_word" >&5
3648 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3649 echo $ac_n "(cached
) $ac_c" 1>&6
3651 if test -n "$DLLTOOL"; then
3652 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3656 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/$ac_word; then
3659 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool
"
3666 DLLTOOL="$ac_cv_prog_DLLTOOL"
3667 if test -n "$DLLTOOL"; then
3668 echo "$ac_t""$DLLTOOL" 1>&6
3670 echo "$ac_t""no
" 1>&6
3674 if test -z "$ac_cv_prog_DLLTOOL" ; then
3675 if test $build = $host ; then
3676 ncn_cv_DLLTOOL=$DLLTOOL
3677 # Extract the first word of "dlltool
", so it can be a program name with args.
3678 set dummy dlltool; ac_word=$2
3679 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3680 echo "configure
:3681: checking
for $ac_word" >&5
3681 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then
3682 echo $ac_n "(cached
) $ac_c" 1>&6
3684 if test -n "$ncn_cv_DLLTOOL"; then
3685 ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test.
3687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3689 for ac_dir in $ac_dummy; do
3690 test -z "$ac_dir" && ac_dir=.
3691 if test -f $ac_dir/$ac_word; then
3692 ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3697 test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool
"
3700 ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL"
3701 if test -n "$ncn_cv_DLLTOOL"; then
3702 echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6
3704 echo "$ac_t""no
" 1>&6
3707 DLLTOOL=$ncn_cv_DLLTOOL
3709 DLLTOOL="${ncn_tool_prefix}dlltool
"
3712 DLLTOOL="$ac_cv_prog_DLLTOOL"
3715 if test -n "$ncn_tool_prefix"; then
3716 # Extract the first word of "${ncn_tool_prefix}ld
", so it can be a program name with args.
3717 set dummy ${ncn_tool_prefix}ld; ac_word=$2
3718 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3719 echo "configure
:3720: checking
for $ac_word" >&5
3720 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3721 echo $ac_n "(cached
) $ac_c" 1>&6
3723 if test -n "$LD"; then
3724 ac_cv_prog_LD="$LD" # Let the user override the test.
3726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3728 for ac_dir in $ac_dummy; do
3729 test -z "$ac_dir" && ac_dir=.
3730 if test -f $ac_dir/$ac_word; then
3731 ac_cv_prog_LD="${ncn_tool_prefix}ld
"
3739 if test -n "$LD"; then
3740 echo "$ac_t""$LD" 1>&6
3742 echo "$ac_t""no
" 1>&6
3746 if test -z "$ac_cv_prog_LD" ; then
3747 if test $build = $host ; then
3749 # Extract the first word of "ld
", so it can be a program name with args.
3750 set dummy ld; ac_word=$2
3751 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3752 echo "configure
:3753: checking
for $ac_word" >&5
3753 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
3754 echo $ac_n "(cached
) $ac_c" 1>&6
3756 if test -n "$ncn_cv_LD"; then
3757 ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test.
3759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3761 for ac_dir in $ac_dummy; do
3762 test -z "$ac_dir" && ac_dir=.
3763 if test -f $ac_dir/$ac_word; then
3764 ac_cv_prog_ncn_cv_LD="ld
"
3769 test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld
"
3772 ncn_cv_LD="$ac_cv_prog_ncn_cv_LD"
3773 if test -n "$ncn_cv_LD"; then
3774 echo "$ac_t""$ncn_cv_LD" 1>&6
3776 echo "$ac_t""no
" 1>&6
3781 LD="${ncn_tool_prefix}ld
"
3787 if test -n "$ncn_tool_prefix"; then
3788 # Extract the first word of "${ncn_tool_prefix}nm
", so it can be a program name with args.
3789 set dummy ${ncn_tool_prefix}nm; ac_word=$2
3790 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3791 echo "configure
:3792: checking
for $ac_word" >&5
3792 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
3793 echo $ac_n "(cached
) $ac_c" 1>&6
3795 if test -n "$NM"; then
3796 ac_cv_prog_NM="$NM" # Let the user override the test.
3798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3800 for ac_dir in $ac_dummy; do
3801 test -z "$ac_dir" && ac_dir=.
3802 if test -f $ac_dir/$ac_word; then
3803 ac_cv_prog_NM="${ncn_tool_prefix}nm
"
3811 if test -n "$NM"; then
3812 echo "$ac_t""$NM" 1>&6
3814 echo "$ac_t""no
" 1>&6
3818 if test -z "$ac_cv_prog_NM" ; then
3819 if test $build = $host ; then
3821 # Extract the first word of "nm
", so it can be a program name with args.
3822 set dummy nm; ac_word=$2
3823 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3824 echo "configure
:3825: checking
for $ac_word" >&5
3825 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
3826 echo $ac_n "(cached
) $ac_c" 1>&6
3828 if test -n "$ncn_cv_NM"; then
3829 ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test.
3831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3833 for ac_dir in $ac_dummy; do
3834 test -z "$ac_dir" && ac_dir=.
3835 if test -f $ac_dir/$ac_word; then
3836 ac_cv_prog_ncn_cv_NM="nm
"
3841 test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm
"
3844 ncn_cv_NM="$ac_cv_prog_ncn_cv_NM"
3845 if test -n "$ncn_cv_NM"; then
3846 echo "$ac_t""$ncn_cv_NM" 1>&6
3848 echo "$ac_t""no
" 1>&6
3853 NM="${ncn_tool_prefix}nm
"
3859 if test -n "$ncn_tool_prefix"; then
3860 # Extract the first word of "${ncn_tool_prefix}ranlib
", so it can be a program name with args.
3861 set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
3862 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3863 echo "configure
:3864: checking
for $ac_word" >&5
3864 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3865 echo $ac_n "(cached
) $ac_c" 1>&6
3867 if test -n "$RANLIB"; then
3868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3872 for ac_dir in $ac_dummy; do
3873 test -z "$ac_dir" && ac_dir=.
3874 if test -f $ac_dir/$ac_word; then
3875 ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib
"
3882 RANLIB="$ac_cv_prog_RANLIB"
3883 if test -n "$RANLIB"; then
3884 echo "$ac_t""$RANLIB" 1>&6
3886 echo "$ac_t""no
" 1>&6
3890 if test -z "$ac_cv_prog_RANLIB" ; then
3891 if test $build = $host ; then
3892 ncn_cv_RANLIB=$RANLIB
3893 # Extract the first word of "ranlib
", so it can be a program name with args.
3894 set dummy ranlib; ac_word=$2
3895 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3896 echo "configure
:3897: checking
for $ac_word" >&5
3897 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then
3898 echo $ac_n "(cached
) $ac_c" 1>&6
3900 if test -n "$ncn_cv_RANLIB"; then
3901 ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test.
3903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3905 for ac_dir in $ac_dummy; do
3906 test -z "$ac_dir" && ac_dir=.
3907 if test -f $ac_dir/$ac_word; then
3908 ac_cv_prog_ncn_cv_RANLIB="ranlib
"
3913 test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":"
3916 ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB"
3917 if test -n "$ncn_cv_RANLIB"; then
3918 echo "$ac_t""$ncn_cv_RANLIB" 1>&6
3920 echo "$ac_t""no
" 1>&6
3923 RANLIB=$ncn_cv_RANLIB
3928 RANLIB="$ac_cv_prog_RANLIB"
3931 if test -n "$ncn_tool_prefix"; then
3932 # Extract the first word of "${ncn_tool_prefix}windres
", so it can be a program name with args.
3933 set dummy ${ncn_tool_prefix}windres; ac_word=$2
3934 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3935 echo "configure
:3936: checking
for $ac_word" >&5
3936 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3937 echo $ac_n "(cached
) $ac_c" 1>&6
3939 if test -n "$WINDRES"; then
3940 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3944 for ac_dir in $ac_dummy; do
3945 test -z "$ac_dir" && ac_dir=.
3946 if test -f $ac_dir/$ac_word; then
3947 ac_cv_prog_WINDRES="${ncn_tool_prefix}windres
"
3954 WINDRES="$ac_cv_prog_WINDRES"
3955 if test -n "$WINDRES"; then
3956 echo "$ac_t""$WINDRES" 1>&6
3958 echo "$ac_t""no
" 1>&6
3962 if test -z "$ac_cv_prog_WINDRES" ; then
3963 if test $build = $host ; then
3964 ncn_cv_WINDRES=$WINDRES
3965 # Extract the first word of "windres
", so it can be a program name with args.
3966 set dummy windres; ac_word=$2
3967 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3968 echo "configure
:3969: checking
for $ac_word" >&5
3969 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then
3970 echo $ac_n "(cached
) $ac_c" 1>&6
3972 if test -n "$ncn_cv_WINDRES"; then
3973 ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test.
3975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3977 for ac_dir in $ac_dummy; do
3978 test -z "$ac_dir" && ac_dir=.
3979 if test -f $ac_dir/$ac_word; then
3980 ac_cv_prog_ncn_cv_WINDRES="windres
"
3985 test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres
"
3988 ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES"
3989 if test -n "$ncn_cv_WINDRES"; then
3990 echo "$ac_t""$ncn_cv_WINDRES" 1>&6
3992 echo "$ac_t""no
" 1>&6
3995 WINDRES=$ncn_cv_WINDRES
3997 WINDRES="${ncn_tool_prefix}windres
"
4000 WINDRES="$ac_cv_prog_WINDRES"
4003 if test -n "$ncn_tool_prefix"; then
4004 # Extract the first word of "${ncn_tool_prefix}objcopy
", so it can be a program name with args.
4005 set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
4006 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4007 echo "configure
:4008: checking
for $ac_word" >&5
4008 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4009 echo $ac_n "(cached
) $ac_c" 1>&6
4011 if test -n "$OBJCOPY"; then
4012 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4016 for ac_dir in $ac_dummy; do
4017 test -z "$ac_dir" && ac_dir=.
4018 if test -f $ac_dir/$ac_word; then
4019 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy
"
4026 OBJCOPY="$ac_cv_prog_OBJCOPY"
4027 if test -n "$OBJCOPY"; then
4028 echo "$ac_t""$OBJCOPY" 1>&6
4030 echo "$ac_t""no
" 1>&6
4034 if test -z "$ac_cv_prog_OBJCOPY" ; then
4035 if test $build = $host ; then
4036 ncn_cv_OBJCOPY=$OBJCOPY
4037 # Extract the first word of "objcopy
", so it can be a program name with args.
4038 set dummy objcopy; ac_word=$2
4039 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4040 echo "configure
:4041: checking
for $ac_word" >&5
4041 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then
4042 echo $ac_n "(cached
) $ac_c" 1>&6
4044 if test -n "$ncn_cv_OBJCOPY"; then
4045 ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test.
4047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4049 for ac_dir in $ac_dummy; do
4050 test -z "$ac_dir" && ac_dir=.
4051 if test -f $ac_dir/$ac_word; then
4052 ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4057 test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy
"
4060 ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY"
4061 if test -n "$ncn_cv_OBJCOPY"; then
4062 echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6
4064 echo "$ac_t""no
" 1>&6
4067 OBJCOPY=$ncn_cv_OBJCOPY
4069 OBJCOPY="${ncn_tool_prefix}objcopy
"
4072 OBJCOPY="$ac_cv_prog_OBJCOPY"
4075 if test -n "$ncn_tool_prefix"; then
4076 # Extract the first word of "${ncn_tool_prefix}objdump
", so it can be a program name with args.
4077 set dummy ${ncn_tool_prefix}objdump; ac_word=$2
4078 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4079 echo "configure
:4080: checking
for $ac_word" >&5
4080 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4081 echo $ac_n "(cached
) $ac_c" 1>&6
4083 if test -n "$OBJDUMP"; then
4084 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4088 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if test -f $ac_dir/$ac_word; then
4091 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump
"
4098 OBJDUMP="$ac_cv_prog_OBJDUMP"
4099 if test -n "$OBJDUMP"; then
4100 echo "$ac_t""$OBJDUMP" 1>&6
4102 echo "$ac_t""no
" 1>&6
4106 if test -z "$ac_cv_prog_OBJDUMP" ; then
4107 if test $build = $host ; then
4108 ncn_cv_OBJDUMP=$OBJDUMP
4109 # Extract the first word of "objdump
", so it can be a program name with args.
4110 set dummy objdump; ac_word=$2
4111 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4112 echo "configure
:4113: checking
for $ac_word" >&5
4113 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then
4114 echo $ac_n "(cached
) $ac_c" 1>&6
4116 if test -n "$ncn_cv_OBJDUMP"; then
4117 ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test.
4119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4121 for ac_dir in $ac_dummy; do
4122 test -z "$ac_dir" && ac_dir=.
4123 if test -f $ac_dir/$ac_word; then
4124 ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4129 test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump
"
4132 ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP"
4133 if test -n "$ncn_cv_OBJDUMP"; then
4134 echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6
4136 echo "$ac_t""no
" 1>&6
4139 OBJDUMP=$ncn_cv_OBJDUMP
4141 OBJDUMP="${ncn_tool_prefix}objdump
"
4144 OBJDUMP="$ac_cv_prog_OBJDUMP"
4154 if test -n "$ncn_target_tool_prefix"; then
4155 # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args.
4156 set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
4157 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4158 echo "configure
:4159: checking
for $ac_word" >&5
4159 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4160 echo $ac_n "(cached
) $ac_c" 1>&6
4162 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4163 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4167 for ac_dir in $ac_dummy; do
4168 test -z "$ac_dir" && ac_dir=.
4169 if test -f $ac_dir/$ac_word; then
4170 ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4177 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4178 if test -n "$CONFIGURED_AR_FOR_TARGET"; then
4179 echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6
4181 echo "$ac_t""no
" 1>&6
4185 if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then
4186 if test $build = $target ; then
4187 ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET
4188 # Extract the first word of "ar", so it can be a program name with args.
4189 set dummy ar; ac_word=$2
4190 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4191 echo "configure
:4192: checking
for $ac_word" >&5
4192 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
4193 echo $ac_n "(cached
) $ac_c" 1>&6
4195 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4196 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test.
4198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4200 for ac_dir in $ac_dummy; do
4201 test -z "$ac_dir" && ac_dir=.
4202 if test -f $ac_dir/$ac_word; then
4203 ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4208 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar"
4211 ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET"
4212 if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then
4213 echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6
4215 echo "$ac_t""no
" 1>&6
4218 CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET
4220 CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar"
4223 CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET"
4226 if test -n "$ncn_target_tool_prefix"; then
4227 # Extract the first word of "${ncn_target_tool_prefix}as
", so it can be a program name with args.
4228 set dummy ${ncn_target_tool_prefix}as; ac_word=$2
4229 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4230 echo "configure
:4231: checking
for $ac_word" >&5
4231 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4232 echo $ac_n "(cached
) $ac_c" 1>&6
4234 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4235 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4239 for ac_dir in $ac_dummy; do
4240 test -z "$ac_dir" && ac_dir=.
4241 if test -f $ac_dir/$ac_word; then
4242 ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4249 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4250 if test -n "$CONFIGURED_AS_FOR_TARGET"; then
4251 echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6
4253 echo "$ac_t""no
" 1>&6
4257 if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then
4258 if test $build = $target ; then
4259 ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET
4260 # Extract the first word of "as
", so it can be a program name with args.
4261 set dummy as; ac_word=$2
4262 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4263 echo "configure
:4264: checking
for $ac_word" >&5
4264 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
4265 echo $ac_n "(cached
) $ac_c" 1>&6
4267 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4268 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test.
4270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4272 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 if test -f $ac_dir/$ac_word; then
4275 ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4280 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as
"
4283 ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET"
4284 if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then
4285 echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6
4287 echo "$ac_t""no
" 1>&6
4290 CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET
4292 CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as
"
4295 CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET"
4298 if test -n "$ncn_target_tool_prefix"; then
4299 # Extract the first word of "${ncn_target_tool_prefix}dlltool
", so it can be a program name with args.
4300 set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
4301 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4302 echo "configure
:4303: checking
for $ac_word" >&5
4303 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4304 echo $ac_n "(cached
) $ac_c" 1>&6
4306 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4307 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4311 for ac_dir in $ac_dummy; do
4312 test -z "$ac_dir" && ac_dir=.
4313 if test -f $ac_dir/$ac_word; then
4314 ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4321 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4322 if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then
4323 echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4325 echo "$ac_t""no
" 1>&6
4329 if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then
4330 if test $build = $target ; then
4331 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET
4332 # Extract the first word of "dlltool
", so it can be a program name with args.
4333 set dummy dlltool; ac_word=$2
4334 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4335 echo "configure
:4336: checking
for $ac_word" >&5
4336 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
4337 echo $ac_n "(cached
) $ac_c" 1>&6
4339 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4340 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test.
4342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4344 for ac_dir in $ac_dummy; do
4345 test -z "$ac_dir" && ac_dir=.
4346 if test -f $ac_dir/$ac_word; then
4347 ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4352 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool
"
4355 ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"
4356 if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then
4357 echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6
4359 echo "$ac_t""no
" 1>&6
4362 CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET
4364 CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool
"
4367 CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET"
4370 if test -n "$ncn_target_tool_prefix"; then
4371 # Extract the first word of "${ncn_target_tool_prefix}ld
", so it can be a program name with args.
4372 set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
4373 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4374 echo "configure
:4375: checking
for $ac_word" >&5
4375 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4376 echo $ac_n "(cached
) $ac_c" 1>&6
4378 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4379 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4383 for ac_dir in $ac_dummy; do
4384 test -z "$ac_dir" && ac_dir=.
4385 if test -f $ac_dir/$ac_word; then
4386 ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4393 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4394 if test -n "$CONFIGURED_LD_FOR_TARGET"; then
4395 echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6
4397 echo "$ac_t""no
" 1>&6
4401 if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then
4402 if test $build = $target ; then
4403 ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET
4404 # Extract the first word of "ld
", so it can be a program name with args.
4405 set dummy ld; ac_word=$2
4406 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4407 echo "configure
:4408: checking
for $ac_word" >&5
4408 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
4409 echo $ac_n "(cached
) $ac_c" 1>&6
4411 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4412 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test.
4414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4416 for ac_dir in $ac_dummy; do
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f $ac_dir/$ac_word; then
4419 ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4424 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld
"
4427 ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET"
4428 if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then
4429 echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6
4431 echo "$ac_t""no
" 1>&6
4434 CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET
4436 CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld
"
4439 CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET"
4442 if test -n "$ncn_target_tool_prefix"; then
4443 # Extract the first word of "${ncn_target_tool_prefix}nm
", so it can be a program name with args.
4444 set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
4445 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4446 echo "configure
:4447: checking
for $ac_word" >&5
4447 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4448 echo $ac_n "(cached
) $ac_c" 1>&6
4450 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4451 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4455 for ac_dir in $ac_dummy; do
4456 test -z "$ac_dir" && ac_dir=.
4457 if test -f $ac_dir/$ac_word; then
4458 ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4465 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4466 if test -n "$CONFIGURED_NM_FOR_TARGET"; then
4467 echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6
4469 echo "$ac_t""no
" 1>&6
4473 if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then
4474 if test $build = $target ; then
4475 ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET
4476 # Extract the first word of "nm
", so it can be a program name with args.
4477 set dummy nm; ac_word=$2
4478 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4479 echo "configure
:4480: checking
for $ac_word" >&5
4480 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
4481 echo $ac_n "(cached
) $ac_c" 1>&6
4483 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4484 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test.
4486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4488 for ac_dir in $ac_dummy; do
4489 test -z "$ac_dir" && ac_dir=.
4490 if test -f $ac_dir/$ac_word; then
4491 ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4496 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm
"
4499 ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET"
4500 if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then
4501 echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6
4503 echo "$ac_t""no
" 1>&6
4506 CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET
4508 CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm
"
4511 CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET"
4514 if test -n "$ncn_target_tool_prefix"; then
4515 # Extract the first word of "${ncn_target_tool_prefix}ranlib
", so it can be a program name with args.
4516 set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
4517 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4518 echo "configure
:4519: checking
for $ac_word" >&5
4519 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4520 echo $ac_n "(cached
) $ac_c" 1>&6
4522 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4523 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4527 for ac_dir in $ac_dummy; do
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f $ac_dir/$ac_word; then
4530 ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib
"
4537 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4538 if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then
4539 echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4541 echo "$ac_t""no
" 1>&6
4545 if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then
4546 if test $build = $target ; then
4547 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET
4548 # Extract the first word of "ranlib
", so it can be a program name with args.
4549 set dummy ranlib; ac_word=$2
4550 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4551 echo "configure
:4552: checking
for $ac_word" >&5
4552 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
4553 echo $ac_n "(cached
) $ac_c" 1>&6
4555 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4556 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test.
4558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4560 for ac_dir in $ac_dummy; do
4561 test -z "$ac_dir" && ac_dir=.
4562 if test -f $ac_dir/$ac_word; then
4563 ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib
"
4568 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":"
4571 ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"
4572 if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then
4573 echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6
4575 echo "$ac_t""no
" 1>&6
4578 CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET
4580 CONFIGURED_RANLIB_FOR_TARGET=":"
4583 CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET"
4586 if test -n "$ncn_target_tool_prefix"; then
4587 # Extract the first word of "${ncn_target_tool_prefix}windres
", so it can be a program name with args.
4588 set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
4589 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4590 echo "configure
:4591: checking
for $ac_word" >&5
4591 if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4592 echo $ac_n "(cached
) $ac_c" 1>&6
4594 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4595 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4599 for ac_dir in $ac_dummy; do
4600 test -z "$ac_dir" && ac_dir=.
4601 if test -f $ac_dir/$ac_word; then
4602 ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4609 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4610 if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then
4611 echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4613 echo "$ac_t""no
" 1>&6
4617 if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then
4618 if test $build = $target ; then
4619 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET
4620 # Extract the first word of "windres
", so it can be a program name with args.
4621 set dummy windres; ac_word=$2
4622 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4623 echo "configure
:4624: checking
for $ac_word" >&5
4624 if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
4625 echo $ac_n "(cached
) $ac_c" 1>&6
4627 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4628 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test.
4630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4632 for ac_dir in $ac_dummy; do
4633 test -z "$ac_dir" && ac_dir=.
4634 if test -f $ac_dir/$ac_word; then
4635 ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4640 test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres
"
4643 ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"
4644 if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then
4645 echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6
4647 echo "$ac_t""no
" 1>&6
4650 CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET
4652 CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres
"
4655 CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET"
4669 # Fix up target tools.
4670 if test "x
${build}" = "x
${host}" ; then
4671 # In this case, the newly built tools can and should be used,
4672 # so we override the results of the autoconf tests.
4673 # This should really only happen when the tools are actually being built,
4674 # but that's a further refinement. The new build scheme, where
4675 # tools are built into a structure paralleling where they're installed,
4676 # should also eliminate all of this cleanly.
4677 AR_FOR_TARGET="\$
(USUAL_AR_FOR_TARGET
)"
4678 AS_FOR_TARGET="\$
(USUAL_AS_FOR_TARGET
)"
4679 DLLTOOL_FOR_TARGET="\$
(USUAL_DLLTOOL_FOR_TARGET
)"
4680 LD_FOR_TARGET="\$
(USUAL_LD_FOR_TARGET
)"
4681 NM_FOR_TARGET="\$
(USUAL_NM_FOR_TARGET
)"
4682 RANLIB_FOR_TARGET="\$
(USUAL_RANLIB_FOR_TARGET
)"
4683 WINDRES_FOR_TARGET="\$
(USUAL_WINDRES_FOR_TARGET
)"
4685 # Just use the ones we found.
4686 AR_FOR_TARGET="\$
(CONFIGURED_AR_FOR_TARGET
)"
4687 AS_FOR_TARGET="\$
(CONFIGURED_AS_FOR_TARGET
)"
4688 DLLTOOL_FOR_TARGET="\$
(CONFIGURED_DLLTOOL_FOR_TARGET
)"
4689 LD_FOR_TARGET="\$
(CONFIGURED_LD_FOR_TARGET
)"
4690 NM_FOR_TARGET="\$
(CONFIGURED_NM_FOR_TARGET
)"
4691 RANLIB_FOR_TARGET="\$
(CONFIGURED_RANLIB_FOR_TARGET
)"
4692 WINDRES_FOR_TARGET="\$
(CONFIGURED_WINDRES_FOR_TARGET
)"
4702 # Certain tools may need extra flags.
4703 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
4704 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
4705 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
4707 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
4708 echo "configure
:4709: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
4709 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4710 if test "${enable_maintainer_mode+set}" = set; then
4711 enableval="$enable_maintainer_mode"
4712 USE_MAINTAINER_MODE=$enableval
4714 USE_MAINTAINER_MODE=no
4717 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4720 if test "$USE_MAINTAINER_MODE" = yes; then
4721 MAINTAINER_MODE_TRUE=
4722 MAINTAINER_MODE_FALSE='#'
4724 MAINTAINER_MODE_TRUE='#'
4725 MAINTAINER_MODE_FALSE=
4727 MAINT=$MAINTAINER_MODE_TRUE
4729 # ---------------------
4730 # GCC bootstrap support
4731 # ---------------------
4733 # Stage specific cflags for build.
4738 yes) stage1_cflags="-g -Wa,-J" ;;
4739 *) stage1_cflags="-g -J" ;;
4742 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
4743 # sources; use -no-cpp-precomp to get to GNU cpp.
4744 # Apple's GCC has bugs in designated initializer handling, so disable
4746 stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
4751 # It makes debugging easier if we create as symlinks the stage directories
4752 # gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not
4753 # possible, however, we can resort to mv.
4754 echo $ac_n "checking
if symbolic links between directories work
""...
$ac_c" 1>&6
4755 echo "configure
:4756: checking
if symbolic links between directories work
" >&5
4756 if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
4757 echo $ac_n "(cached
) $ac_c" 1>&6
4759 if test "${LN_S}" = "ln -s" \
4760 && mkdir confdir.s1 \
4761 && ln -s confdir.s1 confdir.s2 \
4762 && echo timestamp1 > confdir.s1/conftest.1 \
4763 && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \
4764 && echo timestamp2 > confdir.s2/conftest.2 \
4765 && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \
4766 && rm -f confdir.s2; then
4767 gcc_cv_prog_ln_s_dir=yes
4769 gcc_cv_prog_ln_s_dir=yes
4771 rm -rf confdir.s1 confdir.s2
4774 echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6
4776 case ${gcc_cv_prog_ln_s_dir} in
4778 CREATE_LINK_TO_DIR='ln -s $$1 $$2'
4779 UNDO_LINK_TO_DIR='rm -f $$1' ;;
4781 CREATE_LINK_TO_DIR='mv $$1 $$2'
4782 UNDO_LINK_TO_DIR='mv $$1 $$2' ;;
4787 # Enable -Werror in bootstrap stage2 and later.
4788 # Change the default to "no
" on release branches.
4789 # Check whether --enable-werror or --disable-werror was given.
4790 if test "${enable_werror+set}" = set; then
4791 enableval="$enable_werror"
4797 case ${enable_werror} in
4798 yes) stage2_werror_flag="--enable-werror-always" ;;
4799 *) stage2_werror_flag="" ;;
4804 cat > confcache <<\EOF
4805 # This file is a shell script that caches the results of configure
4806 # tests run on this system so they can be shared between configure
4807 # scripts and configure runs. It is not useful on other systems.
4808 # If it contains results you don't want to keep, you may remove or edit it.
4810 # By default, configure uses ./config.cache as the cache file,
4811 # creating it if it does not exist already. You can give configure
4812 # the --cache-file=FILE option to use a different cache file; that is
4813 # what configure does when it calls configure scripts in
4814 # subdirectories, so they share the cache.
4815 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4816 # config.status only pays attention to the cache file if you give it the
4817 # --recheck option to rerun configure.
4820 # The following way of writing the cache mishandles newlines in values,
4821 # but we know of no workaround that is simple, portable, and efficient.
4822 # So, don't put newlines in cache variables' values.
4823 # Ultrix sh set writes to stderr and can't be redirected directly,
4824 # and sets the high bit in the cache file unless we assign to the vars.
4826 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4828 # `set' does not quote correctly, so add quotes (double-quote substitution
4829 # turns \\\\ into \\, and sed turns \\ into \).
4831 -e "s
/'/'\\\\''/g
" \
4832 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
4835 # `set' quotes correctly as required by POSIX, so do not add quotes.
4836 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4839 if cmp -s $cache_file confcache; then
4842 if test -w $cache_file; then
4843 echo "updating cache
$cache_file"
4844 cat confcache > $cache_file
4846 echo "not updating unwritable cache
$cache_file"
4851 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4853 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
4854 # Let make expand exec_prefix.
4855 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
4857 # Any assignment to VPATH causes Sun make to only execute
4858 # the first set of double-colon rules, so remove it if not needed.
4859 # If there is a colon in the path, we need to keep it.
4860 if test "x
$srcdir" = x.; then
4861 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4864 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4866 # Transform confdefs.h into DEFS.
4867 # Protect against shell expansion while executing Makefile rules.
4868 # Protect against Makefile macro expansion.
4870 # If the first sed substitution is executed (which looks for macros that
4871 # take arguments), then we branch to the quote section. Otherwise,
4872 # look for a macro that doesn't take arguments.
4873 cat >confdef2opt.sed <<\_ACEOF
4876 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4878 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4882 s,[ `~#$^&*(){}\\|;'"<>?
],\\&,g
4888 # We use echo to avoid assuming a particular line-breaking character.
4889 # The extra dot is to prevent the shell from consuming trailing
4890 # line-breaks from the sub-command output. A line-break within
4891 # single-quotes doesn't work because, if this script is created in a
4892 # platform that uses two characters for line-breaks (e.g., DOS), tr
4894 ac_LF_and_DOT
=`echo; echo .`
4895 DEFS
=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4896 rm -f confdef2opt.
sed
4899 # Without the "./", some shells look in PATH for config.status.
4900 : ${CONFIG_STATUS=./config.status}
4902 echo creating
$CONFIG_STATUS
4903 rm -f $CONFIG_STATUS
4904 cat > $CONFIG_STATUS <<EOF
4906 # Generated automatically by configure.
4907 # Run this file to recreate the current configuration.
4908 # This directory was configured as follows,
4909 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4911 # $0 $ac_configure_args
4913 # Compiler output produced by configure, useful for debugging
4914 # configure, is in ./config.log if it exists.
4916 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4919 case "\$ac_option" in
4920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4921 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4922 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4923 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4924 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4926 -help | --help | --hel | --he | --h)
4927 echo "\$ac_cs_usage"; exit 0 ;;
4928 *) echo "\$ac_cs_usage"; exit 1 ;;
4932 ac_given_srcdir=$srcdir
4933 ac_given_INSTALL="$INSTALL"
4935 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4937 cat >> $CONFIG_STATUS <<EOF
4939 # Protect against being on the right side of a sed subst in config.status.
4940 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4941 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4945 s%@CFLAGS@%$CFLAGS%g
4946 s%@CPPFLAGS@%$CPPFLAGS%g
4947 s%@CXXFLAGS@%$CXXFLAGS%g
4948 s%@FFLAGS@%$FFLAGS%g
4950 s%@LDFLAGS@%$LDFLAGS%g
4952 s%@exec_prefix@%$exec_prefix%g
4953 s%@prefix@%$prefix%g
4954 s%@program_transform_name@%$program_transform_name%g
4955 s%@bindir@%$bindir%g
4956 s%@sbindir@%$sbindir%g
4957 s%@libexecdir@%$libexecdir%g
4958 s%@datadir@%$datadir%g
4959 s%@sysconfdir@%$sysconfdir%g
4960 s%@sharedstatedir@%$sharedstatedir%g
4961 s%@localstatedir@%$localstatedir%g
4962 s%@libdir@%$libdir%g
4963 s%@includedir@%$includedir%g
4964 s%@oldincludedir@%$oldincludedir%g
4965 s%@infodir@%$infodir%g
4966 s%@mandir@%$mandir%g
4968 s%@host_alias@%$host_alias%g
4969 s%@host_cpu@%$host_cpu%g
4970 s%@host_vendor@%$host_vendor%g
4971 s%@host_os@%$host_os%g
4972 s%@target@%$target%g
4973 s%@target_alias@%$target_alias%g
4974 s%@target_cpu@%$target_cpu%g
4975 s%@target_vendor@%$target_vendor%g
4976 s%@target_os@%$target_os%g
4978 s%@build_alias@%$build_alias%g
4979 s%@build_cpu@%$build_cpu%g
4980 s%@build_vendor@%$build_vendor%g
4981 s%@build_os@%$build_os%g
4982 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4983 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4984 s%@INSTALL_DATA@%$INSTALL_DATA%g
4987 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
4988 s%@build_subdir@%$build_subdir%g
4989 s%@host_subdir@%$host_subdir%g
4990 s%@target_subdir@%$target_subdir%g
4992 s%@GNATBIND@%$GNATBIND%g
4993 s%@do_compare@%$do_compare%g
4994 s%@gmplibs@%$gmplibs%g
4995 s%@gmpinc@%$gmpinc%g
4996 s%@stage1_languages@%$stage1_languages%g
4997 s%@CONFIGURED_BISON@%$CONFIGURED_BISON%g
4998 s%@CONFIGURED_YACC@%$CONFIGURED_YACC%g
4999 s%@CONFIGURED_M4@%$CONFIGURED_M4%g
5000 s%@CONFIGURED_FLEX@%$CONFIGURED_FLEX%g
5001 s%@CONFIGURED_LEX@%$CONFIGURED_LEX%g
5002 s%@CONFIGURED_MAKEINFO@%$CONFIGURED_MAKEINFO%g
5003 s%@default_target@%$default_target%g
5004 /@serialization_dependencies@/r $serialization_dependencies
5005 s%@serialization_dependencies@%%g
5006 /@host_makefile_frag@/r $host_makefile_frag
5007 s%@host_makefile_frag@%%g
5008 /@target_makefile_frag@/r $target_makefile_frag
5009 s%@target_makefile_frag@%%g
5010 /@alphaieee_frag@/r $alphaieee_frag
5011 s%@alphaieee_frag@%%g
5012 /@ospace_frag@/r $ospace_frag
5014 s%@SET_LIB_PATH@%$SET_LIB_PATH%g
5015 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
5016 s%@BUILD_DIR_PREFIX@%$BUILD_DIR_PREFIX%g
5017 s%@BUILD_PREFIX@%$BUILD_PREFIX%g
5018 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g
5019 s%@gcc_version_trigger@%$gcc_version_trigger%g
5020 s%@gcc_version@%$gcc_version%g
5021 s%@tooldir@%$tooldir%g
5022 s%@build_tooldir@%$build_tooldir%g
5023 s%@GDB_TK@%$GDB_TK%g
5024 s%@gxx_include_dir@%$gxx_include_dir%g
5025 s%@libstdcxx_incdir@%$libstdcxx_incdir%g
5026 s%@build_configargs@%$build_configargs%g
5027 s%@build_configdirs@%$build_configdirs%g
5028 s%@host_configargs@%$host_configargs%g
5029 s%@configdirs@%$configdirs%g
5030 s%@target_configargs@%$target_configargs%g
5031 s%@target_configdirs@%$target_configdirs%g
5032 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5033 s%@config_shell@%$config_shell%g
5035 s%@ncn_cv_AR@%$ncn_cv_AR%g
5037 s%@ncn_cv_AS@%$ncn_cv_AS%g
5038 s%@DLLTOOL@%$DLLTOOL%g
5039 s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g
5041 s%@ncn_cv_LD@%$ncn_cv_LD%g
5043 s%@ncn_cv_NM@%$ncn_cv_NM%g
5044 s%@RANLIB@%$RANLIB%g
5045 s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g
5046 s%@WINDRES@%$WINDRES%g
5047 s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g
5048 s%@OBJCOPY@%$OBJCOPY%g
5049 s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g
5050 s%@OBJDUMP@%$OBJDUMP%g
5051 s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g
5053 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
5054 s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g
5055 s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g
5056 s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g
5057 s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g
5058 s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g
5059 s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g
5060 s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g
5061 s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g
5062 s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g
5063 s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g
5064 s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g
5065 s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g
5066 s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g
5067 s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g
5068 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
5069 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
5070 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
5071 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
5072 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
5073 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
5074 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
5075 s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5076 s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g
5077 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
5078 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
5079 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
5080 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
5081 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
5082 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
5083 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
5084 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5085 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5087 s%@stage1_cflags@%$stage1_cflags%g
5088 s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g
5089 s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g
5090 s%@stage2_werror_flag@%$stage2_werror_flag%g
5095 cat >> $CONFIG_STATUS <<\EOF
5097 # Split the substitutions into bite-sized pieces for seds with
5098 # small command number limits, like on Digital OSF/1 and HP-UX.
5099 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5100 ac_file
=1 # Number of current file.
5101 ac_beg
=1 # First line for current file.
5102 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5105 while $ac_more_lines; do
5106 if test $ac_beg -gt 1; then
5107 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5109 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5111 if test ! -s conftest.s
$ac_file; then
5113 rm -f conftest.s
$ac_file
5115 if test -z "$ac_sed_cmds"; then
5116 ac_sed_cmds
="sed -f conftest.s$ac_file"
5118 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5120 ac_file
=`expr $ac_file + 1`
5122 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5125 if test -z "$ac_sed_cmds"; then
5130 cat >> $CONFIG_STATUS <<EOF
5132 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5134 cat >> $CONFIG_STATUS <<\EOF
5135 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5138 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5139 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5140 *) ac_file_in
="${ac_file}.in" ;;
5143 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5145 # Remove last slash and all that follows it. Not all systems have dirname.
5146 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5147 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5148 # The file is in a subdirectory.
5149 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5150 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5151 # A "../" for each directory in $ac_dir_suffix.
5152 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5154 ac_dir_suffix
= ac_dots
=
5157 case "$ac_given_srcdir" in
5159 if test -z "$ac_dots"; then top_srcdir
=.
5160 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5161 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5163 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5164 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5167 case "$ac_given_INSTALL" in
5168 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5169 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5172 echo creating
"$ac_file"
5174 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5176 *Makefile
*) ac_comsub
="1i\\
5177 # $configure_input" ;;
5181 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5183 s%@configure_input@%$configure_input%g
5184 s%@srcdir@%$srcdir%g
5185 s%@top_srcdir@%$top_srcdir%g
5186 s%@INSTALL@%$INSTALL%g
5187 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5192 cat >> $CONFIG_STATUS <<EOF
5195 cat >> $CONFIG_STATUS <<\EOF
5199 chmod +x
$CONFIG_STATUS
5200 rm -fr confdefs
* $ac_clean_files
5201 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1