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 --enable-libada Builds libada directory"
17 --enable-libssp Builds libssp directory"
19 --enable-libgcc-math Builds libgcc-math directory"
21 --with-mpfr-dir=PATH Specify source directory for MPFR library"
23 --with-mpfr=PATH Specify directory for installed MPFR library"
25 --with-gmp-dir=PATH Specify source directory for GMP library"
27 --with-gmp=PATH Specify directory for installed GMP library"
29 --with-build-sysroot=sysroot
30 use sysroot as the system root during the build"
32 --enable-bootstrap Enable bootstrapping [yes if native build]"
34 --enable-serial-[{host,target,build}-]configure
35 Force sequential configuration of
36 sub-packages for the host, target or build
37 machine, or all sub-packages"
39 --with-build-time-tools=path
40 use given path to find target tools during the build"
42 --enable-maintainer-mode enable make rules and dependencies not useful
43 (and sometimes confusing) to the casual installer"
45 --enable-werror enable -Werror in bootstrap stage2 and later"
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file
=.
/config.cache
60 program_transform_name
=s
,x
,x
,
68 bindir
='${exec_prefix}/bin'
69 sbindir
='${exec_prefix}/sbin'
70 libexecdir
='${exec_prefix}/libexec'
71 datadir
='${prefix}/share'
72 sysconfdir
='${prefix}/etc'
73 sharedstatedir
='${prefix}/com'
74 localstatedir
='${prefix}/var'
75 libdir
='${exec_prefix}/lib'
76 includedir
='${prefix}/include'
77 oldincludedir
='/usr/include'
78 infodir
='${prefix}/info'
79 mandir
='${prefix}/man'
81 # Initialize some other variables.
84 SHELL
=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
110 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
111 bindir
="$ac_optarg" ;;
113 -build |
--build |
--buil |
--bui |
--bu)
115 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
116 build
="$ac_optarg" ;;
118 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
119 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
120 ac_prev
=cache_file
;;
121 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
122 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
123 cache_file
="$ac_optarg" ;;
125 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
127 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
129 datadir
="$ac_optarg" ;;
131 -disable-* |
--disable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* |
--enable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
154 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
155 |
--exec |
--exe |
--ex)
156 ac_prev
=exec_prefix
;;
157 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
158 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
159 |
--exec=* |
--exe=* |
--ex=*)
160 exec_prefix
="$ac_optarg" ;;
162 -gas |
--gas |
--ga |
--g)
163 # Obsolete; use --with-gas.
166 -help |
--help |
--hel |
--he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host |
--host |
--hos |
--ho)
223 -host=* |
--host=* |
--hos=* |
--ho=*)
226 -includedir |
--includedir |
--includedi |
--included |
--include \
227 |
--includ |
--inclu |
--incl |
--inc)
228 ac_prev
=includedir
;;
229 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
230 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
231 includedir
="$ac_optarg" ;;
233 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
235 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
236 infodir
="$ac_optarg" ;;
238 -libdir |
--libdir |
--libdi |
--libd)
240 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
241 libdir
="$ac_optarg" ;;
243 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
244 |
--libexe |
--libex |
--libe)
245 ac_prev
=libexecdir
;;
246 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
247 |
--libexe=* |
--libex=* |
--libe=*)
248 libexecdir
="$ac_optarg" ;;
250 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
251 |
--localstate |
--localstat |
--localsta |
--localst \
252 |
--locals |
--local |
--loca |
--loc |
--lo)
253 ac_prev
=localstatedir
;;
254 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
255 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
256 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
257 localstatedir
="$ac_optarg" ;;
259 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
261 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
262 mandir
="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
272 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
273 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
276 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
277 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
278 |
--oldin |
--oldi |
--old |
--ol |
--o)
279 ac_prev
=oldincludedir
;;
280 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
281 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
282 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
283 oldincludedir
="$ac_optarg" ;;
285 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
287 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
288 prefix
="$ac_optarg" ;;
290 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
291 |
--program-pre |
--program-pr |
--program-p)
292 ac_prev
=program_prefix
;;
293 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
294 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
295 program_prefix
="$ac_optarg" ;;
297 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
298 |
--program-suf |
--program-su |
--program-s)
299 ac_prev
=program_suffix
;;
300 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
301 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
302 program_suffix
="$ac_optarg" ;;
304 -program-transform-name |
--program-transform-name \
305 |
--program-transform-nam |
--program-transform-na \
306 |
--program-transform-n |
--program-transform- \
307 |
--program-transform |
--program-transfor \
308 |
--program-transfo |
--program-transf \
309 |
--program-trans |
--program-tran \
310 |
--progr-tra |
--program-tr |
--program-t)
311 ac_prev
=program_transform_name
;;
312 -program-transform-name=* |
--program-transform-name=* \
313 |
--program-transform-nam=* |
--program-transform-na=* \
314 |
--program-transform-n=* |
--program-transform-=* \
315 |
--program-transform=* |
--program-transfor=* \
316 |
--program-transfo=* |
--program-transf=* \
317 |
--program-trans=* |
--program-tran=* \
318 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
319 program_transform_name
="$ac_optarg" ;;
321 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
322 |
-silent |
--silent |
--silen |
--sile |
--sil)
325 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
327 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
329 sbindir
="$ac_optarg" ;;
331 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
332 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
333 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
335 ac_prev
=sharedstatedir
;;
336 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
337 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
338 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
340 sharedstatedir
="$ac_optarg" ;;
342 -site |
--site |
--sit)
344 -site=* |
--site=* |
--sit=*)
347 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
349 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
350 srcdir
="$ac_optarg" ;;
352 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
353 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
354 ac_prev
=sysconfdir
;;
355 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
356 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
357 sysconfdir
="$ac_optarg" ;;
359 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
361 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
362 target
="$ac_optarg" ;;
364 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
367 -version |
--version |
--versio |
--versi |
--vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* |
--without-*)
385 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
399 ac_prev
=x_includes
;;
400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
402 x_includes
="$ac_optarg" ;;
404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
406 ac_prev
=x_libraries
;;
407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
409 x_libraries
="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE
; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
460 |
--no-cr |
--no-c) ;;
461 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
462 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
463 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest
* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file
=move-if-change
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted
=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted
=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE
; then
514 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file
in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp
='$CPP $CPPFLAGS'
537 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling
=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
552 ac_n
= ac_c
='\c' ac_t
=
558 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
559 if test -f $ac_dir/install-sh
; then
561 ac_install_sh
="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh
; then
565 ac_install_sh
="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
572 ac_config_guess
=$ac_aux_dir/config.guess
573 ac_config_sub
=$ac_aux_dir/config.sub
574 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias
=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
628 case "$target_alias" in
631 NONE
) target_alias
=$host_alias ;;
632 *) target_alias
=$nonopt ;;
636 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
646 case "$build_alias" in
649 NONE
) build_alias
=$host_alias ;;
650 *) build_alias
=$nonopt ;;
654 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
663 program_prefix
=${target_alias}-
665 if test "$program_transform_name" = s
,x
,x
,; then
666 program_transform_name
=
668 # Double any \ or $. echo might interpret backslashes.
669 cat <<\EOF_SED
> conftestsed
670 s
,\\,\\\\,g
; s
,\$
,$$
,g
672 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
675 test "$program_prefix" != NONE
&&
676 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
677 # Use a double $ so make ignores it.
678 test "$program_suffix" != NONE
&&
679 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
681 # sed with no file args requires a program.
682 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
685 # Get 'install' or 'install-sh' and its variants.
686 # Find a good install program. We prefer a C program (faster),
687 # so one script is as good as another. But avoid the broken or
688 # incompatible versions:
689 # SysV /etc/install, /usr/sbin/install
690 # SunOS /usr/etc/install
693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
696 # ./install, which can be erroneously created by make from ./install.sh.
697 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
698 echo "configure:699: checking for a BSD compatible install" >&5
699 if test -z "$INSTALL"; then
700 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
704 for ac_dir
in $PATH; do
705 # Account for people who put trailing slashes in PATH elements.
707 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
709 # OSF1 and SCO ODT 3.0 have their own names for install.
710 # Don't use installbsd from OSF since it installs stuff as root
712 for ac_prog
in ginstall scoinst
install; do
713 if test -f $ac_dir/$ac_prog; then
714 if test $ac_prog = install &&
715 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
716 # AIX install. It has an incompatible calling convention.
719 ac_cv_path_install
="$ac_dir/$ac_prog -c"
730 if test "${ac_cv_path_install+set}" = set; then
731 INSTALL
="$ac_cv_path_install"
733 # As a last resort, use the slow shell script. We don't cache a
734 # path for INSTALL within a source directory, because that will
735 # break other packages using the cache if that directory is
736 # removed, or if the path is relative.
737 INSTALL
="$ac_install_sh"
740 echo "$ac_t""$INSTALL" 1>&6
742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
743 # It thinks the first close brace ends the variable substitution.
744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
748 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
750 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
751 echo "configure:752: checking whether ln works" >&5
752 if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
757 if ln conftestdata_f conftestdata_t
2>/dev
/null
763 rm -f conftestdata_f conftestdata_t
766 if test $acx_cv_prog_LN = no
; then
768 echo "$ac_t""no, using $LN" 1>&6
771 echo "$ac_t""yes" 1>&6
774 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
775 echo "configure:776: checking whether ln -s works" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
780 if ln -s X conftestdata
2>/dev
/null
783 ac_cv_prog_LN_S
="ln -s"
788 LN_S
="$ac_cv_prog_LN_S"
789 if test "$ac_cv_prog_LN_S" = "ln -s"; then
790 echo "$ac_t""yes" 1>&6
792 echo "$ac_t""no" 1>&6
796 ### we might need to use some other shell than /bin/sh for running subshells
797 ### If we are on Windows, search for the shell. This will permit people
798 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
799 ### without also having to set CONFIG_SHELL. This code will work when
800 ### using bash, which sets OSTYPE.
803 if test x
${CONFIG_SHELL} = x
; then
804 if test ! -f /bin
/sh
; then
805 if test x
${SHELL} != x
&& test -f ${SHELL} ; then
806 CONFIG_SHELL
=${SHELL}
809 for prog
in sh sh.exe bash bash.exe
; do
810 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
812 test -z "$dir" && dir
=.
813 if test -f $dir/$prog; then
814 CONFIG_SHELL
=$dir/$prog
820 test -n "${CONFIG_SHELL}" && break
828 config_shell
=${CONFIG_SHELL-/bin/sh}
831 # if PWD already has a value, it is probably wrong.
832 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
834 # Export original configure arguments for use by sub-configures. These
835 # will be expanded by make, so quote '$'.
837 sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
840 TOPLEVEL_CONFIGURE_ARGUMENTS
=`cat conftestsed.out`
841 rm -f conftestsed.out
844 moveifchange
=${srcdir}/move-if-change
846 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
848 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
850 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
851 INSTALL
="${srcpwd}/install-sh -c"
854 # Set srcdir to "." if that's what it is.
855 # This is important for multilib support.
857 if test "${pwd}" = "${srcpwd}" ; then
865 ### To add a new directory to the tree, first choose whether it is a target
866 ### or a host dependent tool. Then put it into the appropriate list
867 ### (library or tools, host or target), doing a dependency sort.
869 # Subdirs will be configured in the order listed in build_configdirs,
870 # configdirs, or target_configdirs; see the serialization section below.
872 # Dependency sorting is only needed when *configuration* must be done in
873 # a particular order. In all cases a dependency should be specified in
874 # the Makefile, whether or not it's implicitly specified here.
876 # Double entries in build_configdirs, configdirs, or target_configdirs may
877 # cause circular dependencies and break everything horribly.
879 # these library is used by various programs built for the build
882 build_libs
="build-libiberty"
884 # these tools are built for the build environment
885 build_tools
="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
887 # these libraries are used by various programs built for the host environment
889 host_libs
="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
891 # these tools are built for the host environment
892 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
893 # know that we are building the simulator.
894 # binutils, gas and ld appear in that order because it makes sense to run
895 # "make check" in that particular order.
896 host_tools
="texinfo byacc flex bison binutils gas ld fixincludes 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 gnattools"
898 # libgcj represents the runtime libraries only used by gcj.
899 libgcj
="target-libffi \
905 # these libraries are built for the target environment, and are built after
906 # the host libraries and the host tools (which may be a cross compiler)
908 target_libraries
="target-libiberty \
911 target-libstdc++-v3 \
921 # these tools are built using the target libraries, and are intended to
922 # run only in the target environment
924 # note: any program that *uses* libraries that are in the "target_libraries"
925 # list belongs in this list. those programs are also very likely
926 # candidates for the "native_only" list which follows
928 target_tools
="target-examples target-groff target-gperf target-rda"
930 ################################################################################
932 ## All tools belong in one of the four categories, and are assigned above
933 ## We assign ${configdirs} this way to remove all embedded newlines. This
934 ## is important because configure will choke if they ever get through.
935 ## ${configdirs} is directories we build using the host tools.
936 ## ${target_configdirs} is directories we build using the target tools.
937 configdirs
=`echo ${host_libs} ${host_tools}`
938 target_configdirs
=`echo ${target_libraries} ${target_tools}`
939 build_configdirs
=`echo ${build_libs} ${build_tools}`
941 ################################################################################
943 srcname
="gnu development package"
945 # This gets set non-empty for some net releases of packages.
948 # Define is_cross_compiler to save on calls to 'test'.
950 if test x
"${host}" = x
"${target}" ; then
953 is_cross_compiler
=yes
956 # Find the build and target subdir names.
957 case ${build_alias} in
958 "") build_noncanonical
=${build} ;;
959 *) build_noncanonical
=${build_alias} ;;
962 case ${host_alias} in
963 "") host_noncanonical
=${build_noncanonical} ;;
964 *) host_noncanonical
=${host_alias} ;;
967 case ${target_alias} in
968 "") target_noncanonical
=${host_noncanonical} ;;
969 *) target_noncanonical
=${target_alias} ;;
972 # Prefix 'build-' so this never conflicts with target_subdir.
973 build_subdir
="build-${build_noncanonical}"
974 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
975 if ( test $srcdir = .
&& test -d gcc
) \
976 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
977 host_subdir
="host-${host_noncanonical}"
982 target_subdir
=${target_noncanonical}
985 # Skipdirs are removed silently.
987 # Noconfigdirs are removed loudly.
991 # Make sure we don't let GNU ld be added if we didn't want it.
992 if test x
$with_gnu_ld = xno
; then
994 noconfigdirs
="$noconfigdirs ld"
998 # Make sure we don't let GNU as be added if we didn't want it.
999 if test x
$with_gnu_as = xno
; then
1001 noconfigdirs
="$noconfigdirs gas"
1004 # some tools are so dependent upon X11 that if we're not building with X,
1005 # it's not even worth trying to configure, much less build, that tool.
1008 yes |
"") ;; # the default value for this tree is that X11 is available
1010 skipdirs
="${skipdirs} tk itcl libgui"
1011 # We won't be able to build gdbtk without X.
1014 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1017 # Some tools are only suitable for building in a "native" situation.
1018 # Remove these if host!=target.
1019 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"
1021 # Similarly, some are only suitable for cross toolchains.
1022 # Remove these if host=target.
1023 cross_only
="target-libgloss target-newlib target-opcodes"
1025 case $is_cross_compiler in
1026 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
1027 yes) skipdirs
="${skipdirs} ${native_only}" ;;
1030 # If both --with-headers and --with-libs are specified, default to
1032 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
1033 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
1034 if test x
"${with_newlib}" = x
; then
1039 # Recognize --with-newlib/--without-newlib.
1040 case ${with_newlib} in
1041 no
) skipdirs
="${skipdirs} target-newlib" ;;
1042 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1045 # Configure extra directories which are host specific
1049 configdirs
="$configdirs libtermcap" ;;
1052 # A target can indicate whether a language isn't supported for some reason.
1053 # Only spaces may be used in this macro; not newlines or tabs.
1054 unsupported_languages
=
1056 # Remove more programs from consideration, based on the host or
1057 # target this usually means that a port of the program doesn't
1062 noconfigdirs
="$noconfigdirs byacc"
1064 i
[3456789]86-*-vsta)
1065 noconfigdirs
="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1067 i
[3456789]86-*-go32* | i
[3456789]86-*-msdosdjgpp*)
1068 noconfigdirs
="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1070 i
[3456789]86-*-mingw32*)
1071 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1072 noconfigdirs
="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool"
1074 i
[3456789]86-*-beos*)
1075 noconfigdirs
="$noconfigdirs tk itcl libgui gdb"
1078 noconfigdirs
="$noconfigdirs autoconf automake send-pr rcs guile perl"
1081 noconfigdirs
="$noconfigdirs rcs"
1084 noconfigdirs
="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1087 noconfigdirs
="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1092 # Check whether --enable-libada or --disable-libada was given.
1093 if test "${enable_libada+set}" = set; then
1094 enableval
="$enable_libada"
1095 ENABLE_LIBADA
=$enableval
1100 if test "${ENABLE_LIBADA}" != "yes" ; then
1101 noconfigdirs
="$noconfigdirs gnattools"
1104 # Check whether --enable-libssp or --disable-libssp was given.
1105 if test "${enable_libssp+set}" = set; then
1106 enableval
="$enable_libssp"
1107 ENABLE_LIBSSP
=$enableval
1113 # Set the default so we build libgcc-math for ix86 and x86_64
1114 # Check whether --enable-libgcc-math or --disable-libgcc-math was given.
1115 if test "${enable_libgcc_math+set}" = set; then
1116 enableval
="$enable_libgcc_math"
1122 enable_libgcc_math
=yes ;;
1124 enable_libgcc_math
=no
;;
1130 # Save it here so that, even in case of --enable-libgcj, if the Java
1131 # front-end isn't enabled, we still get libgcj disabled.
1132 libgcj_saved
=$libgcj
1133 case $enable_libgcj in
1135 # If we reset it here, it won't get added to noconfigdirs in the
1136 # target-specific build rules, so it will be forcibly enabled
1137 # (unless the Java language itself isn't enabled).
1141 # Make sure we get it printed in the list of not supported target libs.
1142 noconfigdirs
="$noconfigdirs ${libgcj}"
1147 # Disable libmudflap on some systems.
1148 if test x
$enable_libmudflap = x
; then
1150 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1151 # Enable libmudflap by default in GNU and friends.
1154 # Enable libmudflap by default in FreeBSD.
1157 # Disable it by default everywhere else.
1158 noconfigdirs
="$noconfigdirs target-libmudflap"
1163 # Disable libgomp on non POSIX hosted systems.
1164 if test x
$enable_libgomp = x
; then
1165 # Enable libgomp by default on hosted POSIX systems.
1167 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1169 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd*)
1171 *-*-solaris2* |
*-*-sysv4* |
*-*-irix* |
*-*-osf* |
*-*-hpux*)
1173 *-*-darwin* |
*-*-aix*)
1176 noconfigdirs
="$noconfigdirs target-libgomp"
1184 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1187 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1188 noconfigdirs
="$noconfigdirs sim target-rda"
1191 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
1192 noconfigdirs
="$noconfigdirs sim target-rda"
1193 noconfigdirs
="$noconfigdirs ${libgcj}"
1195 *-*-freebsd[12] |
*-*-freebsd[12].
* |
*-*-freebsd*aout
*)
1196 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1199 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1200 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
1201 && test -f /usr
/local
/include
/gmp.h
; then
1205 # Skip some stuff that's unsupported on some FreeBSD configurations.
1210 noconfigdirs
="$noconfigdirs ${libgcj}"
1215 # Remove unsupported stuff on all kaOS configurations.
1216 skipdirs
="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1217 skipdirs
="$skipdirs target-libobjc target-examples target-groff target-gperf"
1218 skipdirs
="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1219 noconfigdirs
="$noconfigdirs target-libgloss"
1222 # Skip some stuff on all NetBSD configurations.
1223 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss"
1225 # Skip some stuff that's unsupported on some NetBSD configurations.
1227 i
*86-*-netbsdelf*) ;;
1228 arm
*-*-netbsdelf*) ;;
1230 noconfigdirs
="$noconfigdirs ${libgcj}"
1235 noconfigdirs
="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
1238 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1240 # The tpf target doesn't support gdb yet.
1242 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1245 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
1248 noconfigdirs
="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
1251 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1254 # ld works, but does not support shared libraries.
1255 # newlib is not 64 bit ready. I'm not sure about fileutils.
1256 # gas doesn't generate exception information.
1257 noconfigdirs
="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1260 noconfigdirs
="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
1263 # newlib is not 64 bit ready
1264 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1267 # newlib is not 64 bit ready
1268 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1271 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1274 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1276 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
1277 noconfigdirs
="$noconfigdirs ${libgcj}"
1278 noconfigdirs
="$noconfigdirs target-examples"
1279 noconfigdirs
="$noconfigdirs target-libiberty texinfo send-pr"
1280 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
1281 noconfigdirs
="$noconfigdirs expect dejagnu"
1282 # the C++ libraries don't build on top of CE's C libraries
1283 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1284 noconfigdirs
="$noconfigdirs target-newlib"
1286 *-*-cygwin*) ;; # keep gdb and readline
1287 *) noconfigdirs
="$noconfigdirs gdb readline"
1292 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1296 arm-
*-coff | strongarm-
*-coff | xscale-
*-coff)
1297 noconfigdirs
="$noconfigdirs ${libgcj}"
1299 arm-
*-elf* | strongarm-
*-elf* | xscale-
*-elf* | arm
*-*-eabi* )
1300 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1302 arm
*-*-linux-gnueabi)
1303 noconfigdirs
="$noconfigdirs target-libffi target-qthreads"
1304 noconfigdirs
="$noconfigdirs target-libjava target-libobjc"
1307 noconfigdirs
="$noconfigdirs ${libgcj} target-libiberty"
1310 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1313 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1316 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1319 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1322 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1325 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1328 noconfigdirs
="$noconfigdirs target-libgloss gdb"
1329 if test x
${is_cross_compiler} != xno
; then
1330 target_configdirs
="${target_configdirs} target-bsp target-cygmon"
1333 c4x-
*-* | tic4x-
*-*)
1334 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1336 c54x
*-*-* | tic54x-
*-*)
1337 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
1339 cris-
*-* | crisv32-
*-*)
1340 unsupported_languages
="$unsupported_languages java"
1343 unsupported_languages
="$unsupported_languages fortran"
1344 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc";;
1346 unsupported_languages
="$unsupported_languages fortran"
1347 noconfigdirs
="$noconfigdirs target-boehm-gc";;
1349 noconfigdirs
="$noconfigdirs target-newlib target-libgloss";;
1351 unsupported_languages
="$unsupported_languages fortran"
1352 noconfigdirs
="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
1356 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
1359 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1362 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1365 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1368 noconfigdirs
="$noconfigdirs ${libgcj}"
1371 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1374 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1376 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
1378 hppa
*64*-*-linux* | parisc
*64*-*-linux*)
1379 # In this case, it's because the hppa64-linux target is for
1380 # the kernel only at this point and has no libc, and thus no
1381 # headers, crt*.o, etc., all of which are needed by these.
1382 noconfigdirs
="$noconfigdirs target-zlib"
1384 parisc
*-*-linux* | hppa
*-*-linux*)
1388 hppa
*-*-openbsd* | \
1390 noconfigdirs
="$noconfigdirs ${libgcj}"
1393 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
1394 # build on HP-UX 10.20.
1395 noconfigdirs
="$noconfigdirs ld shellutils ${libgcj}"
1398 noconfigdirs
="$noconfigdirs ${libgcj} gdb"
1401 # No gdb support yet.
1402 noconfigdirs
="$noconfigdirs readline mmalloc libgui itcl gdb"
1405 # No gdb or ld support yet.
1406 noconfigdirs
="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
1410 i
[3456789]86-*-coff | i
[3456789]86-*-elf)
1411 noconfigdirs
="$noconfigdirs ${libgcj}"
1413 i
[3456789]86-*-linux*)
1414 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
1415 # not build java stuff by default.
1418 noconfigdirs
="$noconfigdirs ${libgcj}";;
1421 # This section makes it possible to build newlib natively on linux.
1422 # If we are using a cross compiler then don't configure newlib.
1423 if test x
${is_cross_compiler} != xno
; then
1424 noconfigdirs
="$noconfigdirs target-newlib"
1426 noconfigdirs
="$noconfigdirs target-libgloss"
1427 # If we are not using a cross compiler, do configure newlib.
1428 # Note however, that newlib will only be configured in this situation
1429 # if the --with-newlib option has been given, because otherwise
1430 # 'target-newlib' will appear in skipdirs.
1432 i
[3456789]86-*-mingw32*)
1433 target_configdirs
="$target_configdirs target-mingw"
1434 noconfigdirs
="$noconfigdirs expect target-libgloss ${libgcj}"
1436 # Can't build gdb for mingw32 if not native.
1438 i
[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc.
1439 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl gnuserv"
1444 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
1445 noconfigdirs
="$noconfigdirs target-gperf target-libgloss ${libgcj}"
1446 # always build newlib if winsup directory is present.
1447 if test -d "$srcdir/winsup"; then
1448 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1449 elif test -d "$srcdir/newlib"; then
1450 echo "Warning: winsup is missing so newlib can't be built."
1453 # Can't build gdb for Cygwin if not native.
1455 *-*-cygwin*) ;; # keep gdb tcl tk expect etc.
1456 *) noconfigdirs
="$noconfigdirs gdb tcl tk expect itcl libgui gnuserv"
1460 i
[3456789]86-moss-msdos | i
[3456789]86-*-moss* | \
1461 i
[3456789]86-*-uwin* | i
[3456789]86-*-interix* )
1464 noconfigdirs
="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
1466 i
[3456789]86-*-sco3.2v5
*)
1467 # The linker does not yet know about weak symbols in COFF,
1468 # and is not configured to handle mixed ELF and COFF.
1469 noconfigdirs
="$noconfigdirs ld target-libgloss ${libgcj}"
1471 i
[3456789]86-*-sco*)
1472 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1474 i
[3456789]86-*-solaris2*)
1475 noconfigdirs
="$noconfigdirs target-libgloss"
1477 i
[3456789]86-*-sysv4*)
1478 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1480 i
[3456789]86-*-beos*)
1481 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1483 i
[3456789]86-*-rdos*)
1484 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1487 noconfigdirs
="$noconfigdirs ${libgcj}"
1489 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
1490 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1493 noconfigdirs
="$noconfigdirs ${libgcj}"
1496 noconfigdirs
="$noconfigdirs ${libgcj}"
1499 # The EPOC C++ environment does not support exceptions or rtti,
1500 # and so building libstdc++-v3 tends not to always work.
1501 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
1504 noconfigdirs
="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
1505 unsupported_languages
="$unsupported_languages fortran java"
1508 noconfigdirs
="$noconfigdirs ${libgcj}"
1511 noconfigdirs
="$noconfigdirs ${libgcj}"
1514 noconfigdirs
="$noconfigdirs sim"
1517 # copied from rs6000-*-* entry
1518 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1520 powerpc
*-*-winnt* | powerpc
*-*-pe* | ppc
*-*-pe)
1521 target_configdirs
="$target_configdirs target-winsup"
1522 noconfigdirs
="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
1523 # always build newlib.
1524 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
1526 # This is temporary until we can link against shared libraries
1527 powerpcle-
*-solaris*)
1528 noconfigdirs
="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
1531 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
1534 noconfigdirs
="$noconfigdirs ${libgcj}"
1536 powerpc-
*-eabi* | powerpcle-
*-eabi* | powerpc-
*-rtems* )
1539 noconfigdirs
="$noconfigdirs target-newlib gprof ${libgcj}"
1542 noconfigdirs
="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
1545 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1548 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
1551 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1554 # Linking libjava exceeds command-line length limits on at least
1555 # IRIX 6.2, but not on IRIX 6.5.
1556 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
1557 # <oldham@codesourcery.com>
1558 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1561 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1564 noconfigdirs
="$noconfigdirs gprof target-libgloss ${libgcj}"
1567 noconfigdirs
="$noconfigdirs gprof ${libgcj}" # same as generic mips
1570 noconfigdirs
="$noconfigdirs target-newlib ${libgcj}"
1573 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1576 noconfigdirs
="$noconfigdirs gprof ${libgcj}"
1579 noconfigdirs
="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
1583 i
[3456789]86-*-vsta) ;; # don't add gprof back in
1584 i
[3456789]86-*-go32*) ;; # don't add gprof back in
1585 i
[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
1586 *) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1588 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1591 noconfigdirs
="$noconfigdirs ${libgcj}"
1594 noconfigdirs
="$noconfigdirs ${libgcj}"
1597 noconfigdirs
="$noconfigdirs ${libgcj}"
1600 noconfigdirs
="$noconfigdirs ${libgcj}"
1601 if test x
${is_cross_compiler} != xno
; then
1602 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
1607 sparc-
*-solaris2.
[0-6] | sparc-
*-solaris2.
[0-6].
*)
1608 noconfigdirs
="$noconfigdirs ${libgcj}"
1610 sparc-
*-solaris* | sparc64-
*-solaris* | sparcv9-
*-solaris*)
1613 noconfigdirs
="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
1616 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1619 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1622 noconfigdirs
="$noconfigdirs target-libgloss ${libgcj}"
1625 noconfigdirs
="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
1628 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1631 noconfigdirs
="$noconfigdirs ${libgcj}"
1634 noconfigdirs
="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
1636 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
1637 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
1640 noconfigdirs
="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1643 noconfigdirs
="$noconfigdirs ${libgcj}"
1647 # If we aren't building newlib, then don't build libgloss, since libgloss
1648 # depends upon some newlib header files.
1649 case "${noconfigdirs}" in
1650 *target-libgloss
*) ;;
1651 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
1654 # Work in distributions that contain no compiler tools, like Autoconf.
1656 host_makefile_frag
=/dev
/null
1657 if test -d ${srcdir}/config
; then
1660 # Avoid "too much defining" errors from HPUX compiler.
1661 tentative_cc
="cc -Wp,-H256000"
1662 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
1663 # If it's HP/UX ar, this should be harmless.
1667 tentative_cc
="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
1670 #None of the Apollo compilers can compile gas or binutils. The preprocessor
1671 # chokes on bfd, the compiler won't let you assign integers to enums, and
1672 # other problems. Defining CC to gcc is a questionable way to say "don't use
1673 # the apollo compiler" (the preferred version of GCC could be called cc,
1674 # or whatever), but I'm not sure leaving CC as cc is any better...
1675 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
1676 # Used to have BISON=yacc.
1680 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1683 # Under CX/UX, we want to tell the compiler to use ANSI mode.
1684 tentative_cc
="cc -Xa"
1685 host_makefile_frag
="config/mh-cxux"
1687 m88k-motorola-sysv
*)
1690 tentative_cc
="cc -Wf,-XNg1000"
1691 host_makefile_frag
="config/mh-decstation"
1694 # The C compiler on NEC MIPS SVR4 needs bigger tables.
1695 tentative_cc
="cc -ZXNd=5000 -ZXNg=1000"
1696 host_makefile_frag
="config/mh-necv4"
1699 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
1700 # environment. Also bump switch table size so that cp-parse will
1701 # compile. Bump string length limit so linker builds.
1702 tentative_cc
="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
1705 host_makefile_frag
="config/mh-sysv4"
1708 # This is for a MIPS running RISC/os 4.52C.
1710 # This is needed for GDB, but needs to be in the top-level make because
1711 # if a library is compiled with the bsd headers and gets linked with the
1712 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
1713 # a different size).
1714 # ptrace(2) apparently has problems in the BSD environment. No workaround is
1715 # known except to select the sysv environment. Could we use /proc instead?
1716 # These "sysv environments" and "bsd environments" often end up being a pain.
1718 # This is not part of CFLAGS because perhaps not all C compilers have this
1720 tentative_cc
="cc -systype sysv"
1725 i
[3456789]86-*-sysv5*)
1726 host_makefile_frag
="config/mh-sysv5"
1728 i
[3456789]86-*-dgux*)
1729 tentative_cc
="gcc -Wall -ansi -D__using_DGUX"
1730 host_makefile_frag
="config/mh-dgux386"
1732 i
[3456789]86-ncr-sysv4.3
*)
1733 # The MetaWare compiler will generate a copyright message unless you
1734 # turn it off by adding the -Hnocopyr flag.
1735 tentative_cc
="cc -Hnocopyr"
1737 i
[3456789]86-ncr-sysv4*)
1738 # for an NCR 3000 (i486/SVR4) system.
1739 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
1740 # This compiler not only emits obnoxious copyright messages every time
1741 # you run it, but it chokes and dies on a whole bunch of GNU source
1742 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
1743 tentative_cc
="/usr/ccs/ATT/cc"
1744 host_makefile_frag
="config/mh-ncr3000"
1746 i
[3456789]86-*-sco3.2v5
*)
1748 i
[3456789]86-*-sco*)
1749 # The native C compiler botches some simple uses of const. Unfortunately,
1750 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
1751 tentative_cc
="cc -Dconst="
1752 host_makefile_frag
="config/mh-sco"
1754 i
[3456789]86-*-udk*)
1755 host_makefile_frag
="config/mh-sysv5"
1757 i
[3456789]86-*-solaris2*)
1758 host_makefile_frag
="config/mh-sysv4"
1760 i
[3456789]86-*-msdosdjgpp*)
1761 host_makefile_frag
="config/mh-djgpp"
1764 host_makefile_frag
="config/mh-cygwin"
1769 host_makefile_frag
="config/mh-interix"
1772 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
1776 host_makefile_frag
="config/mh-solaris"
1779 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
1780 # without overflowing the jump tables (-J says to use a 32 bit table)
1781 tentative_cc
="cc -J"
1784 tentative_cc
="cc -Wp,-H256000"
1787 tentative_cc
="cc -Wp,-H256000"
1790 # /bin/cc is less than useful for our purposes. Always use GCC
1791 tentative_cc
="/usr/cygnus/progressive/bin/gcc"
1792 host_makefile_frag
="config/mh-lynxrs6k"
1795 host_makefile_frag
="config/mh-ppc-darwin"
1798 host_makefile_frag
="config/mh-ppc-aix"
1801 host_makefile_frag
="config/mh-ppc-aix"
1804 # /bin/cc is less than useful for our purposes. Always use GCC
1805 tentative_cc
="/bin/gcc"
1808 host_makefile_frag
="config/mh-sysv4"
1810 # This is placed last to prevent interfering with the cases above.
1812 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1813 host_makefile_frag
="config/mh-x86omitfp"
1818 # If we aren't going to be using gcc, see if we can extract a definition
1819 # of CC from the fragment.
1820 # Actually, use the 'pre-extracted' version above.
1821 if test -z "${CC}" && test "${build}" = "${host}" ; then
1822 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
="${IFS}:"
1824 for dir
in $PATH; do
1825 test -z "$dir" && dir
=.
1826 if test -f $dir/gcc
; then
1832 if test -z "${found}" && test -n "${tentative_cc}" ; then
1837 if test "${build}" != "${host}" ; then
1838 # If we are doing a Canadian Cross, in which the host and build systems
1839 # are not the same, we set reasonable default values for the tools.
1841 CC
=${CC-${host_alias}-gcc}
1842 CFLAGS
=${CFLAGS-"-g -O2"}
1843 CXX
=${CXX-${host_alias}-c++}
1844 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
1845 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
1848 # Set reasonable default values for some tools even if not Canadian.
1849 # Of course, these are different reasonable default values, originally
1850 # specified directly in the Makefile.
1851 # We don't export, so that autoconf can do its job.
1852 # Note that all these settings are above the fragment inclusion point
1853 # in Makefile.in, so can still be overridden by fragments.
1854 # This is all going to change when we autoconfiscate...
1856 CC_FOR_BUILD
="\$(CC)"
1857 # Extract the first word of "gcc", so it can be a program name with args.
1858 set dummy gcc
; ac_word
=$2
1859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1860 echo "configure:1861: checking for $ac_word" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 if test -n "$CC"; then
1865 ac_cv_prog_CC
="$CC" # Let the user override the test.
1867 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1869 for ac_dir
in $ac_dummy; do
1870 test -z "$ac_dir" && ac_dir
=.
1871 if test -f $ac_dir/$ac_word; then
1880 if test -n "$CC"; then
1881 echo "$ac_t""$CC" 1>&6
1883 echo "$ac_t""no" 1>&6
1886 if test -z "$CC"; then
1887 # Extract the first word of "cc", so it can be a program name with args.
1888 set dummy cc
; ac_word
=$2
1889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1890 echo "configure:1891: checking for $ac_word" >&5
1891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC
="$CC" # Let the user override the test.
1897 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1900 for ac_dir
in $ac_dummy; do
1901 test -z "$ac_dir" && ac_dir
=.
1902 if test -f $ac_dir/$ac_word; then
1903 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1904 ac_prog_rejected
=yes
1912 if test $ac_prog_rejected = yes; then
1913 # We found a bogon in the path, so make sure we never use it.
1914 set dummy
$ac_cv_prog_CC
1916 if test $# -gt 0; then
1917 # We chose a different compiler from the bogus one.
1918 # However, it has the same basename, so the bogon will be chosen
1919 # first if we set CC to just the basename; use the full file name.
1921 set dummy
"$ac_dir/$ac_word" "$@"
1929 if test -n "$CC"; then
1930 echo "$ac_t""$CC" 1>&6
1932 echo "$ac_t""no" 1>&6
1935 if test -z "$CC"; then
1936 case "`uname -s`" in
1938 # Extract the first word of "cl", so it can be a program name with args.
1939 set dummy cl
; ac_word
=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC
="$CC" # Let the user override the test.
1948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1950 for ac_dir
in $ac_dummy; do
1951 test -z "$ac_dir" && ac_dir
=.
1952 if test -f $ac_dir/$ac_word; then
1961 if test -n "$CC"; then
1962 echo "$ac_t""$CC" 1>&6
1964 echo "$ac_t""no" 1>&6
1969 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1977 ac_cpp
='$CPP $CPPFLAGS'
1978 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1979 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1980 cross_compiling
=$ac_cv_prog_cc_cross
1982 cat > conftest.
$ac_ext << EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1989 if { (eval echo configure
:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1990 ac_cv_prog_cc_works
=yes
1991 # If we can't run a trivial program, we are probably using a cross compiler.
1992 if (.
/conftest
; exit) 2>/dev
/null
; then
1993 ac_cv_prog_cc_cross
=no
1995 ac_cv_prog_cc_cross
=yes
1998 echo "configure: failed program was:" >&5
1999 cat conftest.
$ac_ext >&5
2000 ac_cv_prog_cc_works
=no
2004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2005 ac_cpp
='$CPP $CPPFLAGS'
2006 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2007 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2008 cross_compiling
=$ac_cv_prog_cc_cross
2010 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2011 if test $ac_cv_prog_cc_works = no
; then
2012 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2014 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2016 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2017 cross_compiling
=$ac_cv_prog_cc_cross
2019 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2020 echo "configure:2021: checking whether we are using GNU C" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 cat > conftest.c
<<EOF
2029 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2036 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2038 if test $ac_cv_prog_gcc = yes; then
2044 ac_test_CFLAGS
="${CFLAGS+set}"
2045 ac_save_CFLAGS
="$CFLAGS"
2047 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2048 echo "configure:2049: checking whether ${CC-cc} accepts -g" >&5
2049 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 echo 'void f(){}' > conftest.c
2053 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2062 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2063 if test "$ac_test_CFLAGS" = set; then
2064 CFLAGS
="$ac_save_CFLAGS"
2065 elif test $ac_cv_prog_cc_g = yes; then
2066 if test "$GCC" = yes; then
2072 if test "$GCC" = yes; then
2080 # We must set the default linker to the linker used by gcc for the correct
2081 # operation of libtool. If LD is not defined and we are using gcc, try to
2082 # set the LD default to the ld used by gcc.
2083 if test -z "$LD"; then
2084 if test "$GCC" = yes; then
2087 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
2089 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
2091 case $gcc_prog_ld in
2092 # Accept absolute paths.
2093 [\\/]* |
[A-Za-z
]:[\\/]*)
2094 LD
="$gcc_prog_ld" ;;
2100 CFLAGS
=${CFLAGS-"-g"}
2101 CXXFLAGS
=${CXXFLAGS-"-g -O2"}
2104 if test $host != $build; then
2105 ac_tool_prefix
=${host_alias}-
2112 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
2113 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
2114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2115 echo "configure:2116: checking for $ac_word" >&5
2116 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 if test -n "$GNATBIND"; then
2120 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2122 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2124 for ac_dir
in $ac_dummy; do
2125 test -z "$ac_dir" && ac_dir
=.
2126 if test -f $ac_dir/$ac_word; then
2127 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
2134 GNATBIND
="$ac_cv_prog_GNATBIND"
2135 if test -n "$GNATBIND"; then
2136 echo "$ac_t""$GNATBIND" 1>&6
2138 echo "$ac_t""no" 1>&6
2142 if test -z "$ac_cv_prog_GNATBIND"; then
2143 if test -n "$ac_tool_prefix"; then
2144 # Extract the first word of "gnatbind", so it can be a program name with args.
2145 set dummy gnatbind
; ac_word
=$2
2146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_word" >&5
2148 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 if test -n "$GNATBIND"; then
2152 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
2154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2156 for ac_dir
in $ac_dummy; do
2157 test -z "$ac_dir" && ac_dir
=.
2158 if test -f $ac_dir/$ac_word; then
2159 ac_cv_prog_GNATBIND
="gnatbind"
2164 test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND
="no"
2167 GNATBIND
="$ac_cv_prog_GNATBIND"
2168 if test -n "$GNATBIND"; then
2169 echo "$ac_t""$GNATBIND" 1>&6
2171 echo "$ac_t""no" 1>&6
2179 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
2180 echo "configure:2181: checking whether compiler driver understands Ada" >&5
2181 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat >conftest.adb
<<EOF
2185 procedure conftest is begin null; end conftest;
2187 acx_cv_cc_gcc_supports_ada
=no
2188 # There is a bug in old released versions of GCC which causes the
2189 # driver to exit successfully when the appropriate language module
2190 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
2191 # Therefore we must check for the error message as well as an
2192 # unsuccessful exit.
2193 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
2194 # given a .adb file, but produce no object file. So we must check
2195 # if an object file was really produced to guard against this.
2196 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
2197 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
2198 acx_cv_cc_gcc_supports_ada
=yes
2203 echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6
2205 if test x
$GNATBIND != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
2211 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
2212 echo "configure:2213: checking how to compare bootstrapped objects" >&5
2213 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2218 gcc_cv_prog_cmp_skip
='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2219 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
2220 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
2223 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
2226 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
2227 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
2230 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
2237 echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6
2238 do_compare
="$gcc_cv_prog_cmp_skip"
2242 # Check for GMP and MPFR
2246 # Specify a location for mpfr
2247 # check for this first so it ends up on the link line before gmp.
2248 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
2249 if test "${with_mpfr_dir+set}" = set; then
2250 withval
="$with_mpfr_dir"
2255 if test "x$with_mpfr_dir" != x
; then
2256 gmpinc
="-I$with_mpfr_dir"
2257 gmplibs
="$with_mpfr_dir/libmpfr.a"
2262 # Check whether --with-mpfr or --without-mpfr was given.
2263 if test "${with_mpfr+set}" = set; then
2264 withval
="$with_mpfr"
2269 if test "x$with_mpfr" != x
; then
2270 gmplibs
="-L$with_mpfr/lib $gmplibs"
2271 gmpinc
="-I$with_mpfr/include"
2274 # Specify a location for gmp
2275 # Check whether --with-gmp-dir or --without-gmp-dir was given.
2276 if test "${with_gmp_dir+set}" = set; then
2277 withval
="$with_gmp_dir"
2282 if test "x$with_gmp_dir" != x
; then
2283 gmpinc
="$gmpinc -I$with_gmp_dir"
2284 if test -f "$with_gmp_dir/.libs/libgmp.a"; then
2285 gmplibs
="$gmplibs $with_gmp_dir/.libs/libgmp.a"
2286 elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
2287 gmplibs
="$gmplibs $with_gmp_dir/_libs/libgmp.a"
2289 # One of the later tests will catch the error if neither library is present.
2291 gmplibs
="$gmplibs -lgmp"
2294 # Check whether --with-gmp or --without-gmp was given.
2295 if test "${with_gmp+set}" = set; then
2301 if test "x$with_gmp" != x
; then
2302 gmplibs
="-L$with_gmp/lib $gmplibs"
2303 gmpinc
="-I$with_gmp/include $gmpinc"
2306 saved_CFLAGS
="$CFLAGS"
2307 CFLAGS
="$CFLAGS $gmpinc"
2308 # Check GMP actually works
2309 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
2310 echo "configure:2311: checking for correct version of gmp.h" >&5
2311 cat > conftest.
$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2317 #if __GNU_MP_VERSION < 3
2323 if { (eval echo configure
:2324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2325 echo "$ac_t""yes" 1>&6
2327 echo "configure: failed program was:" >&5
2328 cat conftest.
$ac_ext >&5
2330 echo "$ac_t""no" 1>&6; have_gmp
=no
2334 if test x
"$have_gmp" = xyes
; then
2335 echo $ac_n "checking for MPFR""... $ac_c" 1>&6
2336 echo "configure:2337: checking for MPFR" >&5
2339 LIBS
="$LIBS $gmplibs"
2340 cat > conftest.
$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2346 mpfr_t n; mpfr_init(n);
2349 if { (eval echo configure
:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2351 echo "$ac_t""yes" 1>&6
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2356 echo "$ac_t""no" 1>&6; have_gmp
=no
2360 CFLAGS
="$saved_CFLAGS"
2363 # Flags needed for both GMP and/or MPFR
2367 # By default, C is the only stage 1 language.
2371 # Figure out what language subdirectories are present.
2372 # Look if the user specified --enable-languages="..."; if not, use
2373 # the environment variable $LANGUAGES if defined. $LANGUAGES might
2375 # NB: embedded tabs in this IF block -- do not untabify
2376 if test -d ${srcdir}/gcc
; then
2377 if test x
"${enable_languages+set}" != xset
; then
2378 if test x
"${LANGUAGES+set}" = xset
; then
2379 enable_languages
="${LANGUAGES}"
2380 echo configure.
in: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
2382 enable_languages
=all
2385 if test x
"${enable_languages}" = x ||
2386 test x
"${enable_languages}" = xyes
;
2388 echo configure.
in: --enable-languages needs
at least one language argument
1>&2
2392 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
2394 # 'f95' is the old name for the 'fortran' language. We issue a warning
2395 # and make the substitution.
2396 case ,${enable_languages}, in
2398 echo configure.
in: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
2399 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
2403 # First scan to see if an enabled language requires some other language.
2404 # We assume that a given config-lang.in will list all the language
2405 # front ends it requires, even if some are required indirectly.
2406 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2407 case ${lang_frag} in
2409 # The odd quoting in the next line works around
2410 # an apparent bug in bash 1.12 on linux.
2411 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2413 # From the config-lang.in, get $language, $lang_requires
2417 for other
in ${lang_requires} ; do
2418 case ,${enable_languages}, in
2422 echo " \`$other' language required by \`$language'; enabling" 1>&2
2423 enable_languages
="${enable_languages},${other}"
2431 new_enable_languages
=c
2432 missing_languages
=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
2433 potential_languages
=c
2435 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
2436 case ${lang_frag} in
2438 # The odd quoting in the next line works around
2439 # an apparent bug in bash 1.12 on linux.
2440 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
2442 # From the config-lang.in, get $language, $target_libs,
2443 # $lang_dirs, $boot_language, and $build_by_default
2451 potential_languages
="${potential_languages},${language}"
2452 # This is quite sensitive to the ordering of the case statement arms.
2453 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
2455 echo "${lang_frag} doesn't set \$language." 1>&2
2459 # Ada was requested with no preexisting GNAT. Disable unconditionally.
2462 *,${language},*:*:*:*)
2463 # Language was explicitly selected; include it.
2467 # 'all' was selected, but this is not a default language
2468 # so do not include it.
2472 # 'all' was selected and this is a default language; include it.
2480 # Disable languages that need GMP if it isn't available.
2481 case ,${enable_languages},:${have_gmp}:${need_gmp} in
2482 *,${language},*:no
:yes)
2483 # Specifically requested language; tell them.
2484 { echo "configure: error: GMP with MPFR support is required to build $language" 1>&2; exit 1; }
2492 # Disable a language that is unsupported by the target.
2493 case " $unsupported_languages " in
2499 case $add_this_lang in
2501 # Remove language-dependent dirs.
2502 eval noconfigdirs
='"$noconfigdirs "'\"$target_libs $lang_dirs\"
2505 new_enable_languages
="$new_enable_languages,$language"
2506 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
2507 case ${boot_language} in
2509 # Add to (comma-separated) list of stage 1 languages.
2510 stage1_languages
="${stage1_languages},${language}"
2519 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
2520 if test "x$missing_languages" != x
; then
2521 { echo "configure: error:
2522 The following requested languages could not be built: ${missing_languages}
2523 Recognised languages are: ${potential_languages}" 1>&2; exit 1; }
2526 if test "x$new_enable_languages" != "x$enable_languages"; then
2527 echo The following languages will be built
: ${new_enable_languages}
2529 enable_languages
="$new_enable_languages"
2530 ac_configure_args
=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
2533 # Handle --disable-<component> generically.
2534 for dir
in $configdirs $build_configdirs $target_configdirs ; do
2535 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
2536 if eval test x\
${enable_${dirname}} "=" xno
; then
2537 noconfigdirs
="$noconfigdirs $dir"
2541 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
2542 # $build_configdirs and $target_configdirs.
2543 # If we have the source for $noconfigdirs entries, add them to $notsupp.
2546 for dir
in .
$skipdirs $noconfigdirs ; do
2547 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
2548 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2549 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
2550 if test -r $srcdir/$dirname/configure
; then
2551 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2554 notsupp
="$notsupp $dir"
2558 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2559 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
2560 if test -r $srcdir/$dirname/configure
; then
2561 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2564 notsupp
="$notsupp $dir"
2568 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2569 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
2570 if test -r $srcdir/$dirname/configure
; then
2571 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2574 notsupp
="$notsupp $dir"
2580 # Sometimes the tools are distributed with libiberty but with no other
2581 # libraries. In that case, we don't want to build target-libiberty.
2582 if test -n "${target_configdirs}" ; then
2584 for i
in `echo ${target_configdirs} | sed -e s/target-//g` ; do
2585 if test "$i" != "libiberty" ; then
2586 if test -r $srcdir/$i/configure
; then
2592 if test -z "${others}" ; then
2597 # Quietly strip out all directories which aren't configurable in this tree.
2598 # This relies on all configurable subdirectories being autoconfiscated, which
2600 build_configdirs_all
="$build_configdirs"
2602 for i
in ${build_configdirs_all} ; do
2603 j
=`echo $i | sed -e s/build-//g`
2604 if test -f ${srcdir}/$j/configure
; then
2605 build_configdirs
="${build_configdirs} $i"
2609 configdirs_all
="$configdirs"
2611 for i
in ${configdirs_all} ; do
2612 if test -f ${srcdir}/$i/configure
; then
2613 configdirs
="${configdirs} $i"
2617 target_configdirs_all
="$target_configdirs"
2619 for i
in ${target_configdirs_all} ; do
2620 j
=`echo $i | sed -e s/target-//g`
2621 if test -f ${srcdir}/$j/configure
; then
2622 target_configdirs
="${target_configdirs} $i"
2626 # Produce a warning message for the subdirs we can't configure.
2627 # This isn't especially interesting in the Cygnus tree, but in the individual
2628 # FSF releases, it's important to let people know when their machine isn't
2629 # supported by the one or two programs in a package.
2631 if test -n "${notsupp}" && test -z "${norecursion}" ; then
2632 # If $appdirs is non-empty, at least one of those directories must still
2633 # be configured, or we error out. (E.g., if the gas release supports a
2634 # specified target in some subdirs but not the gas subdir, we shouldn't
2635 # pretend that all is well.)
2636 if test -n "$appdirs" ; then
2637 for dir
in $appdirs ; do
2638 if test -r $dir/Makefile.
in ; then
2639 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
2643 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
2649 if test -n "$appdirs" ; then
2650 echo "*** This configuration is not supported by this package." 1>&2
2654 # Okay, some application will build, or we don't care to check. Still
2655 # notify of subdirs not getting built.
2656 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
2657 echo " ${notsupp}" 1>&2
2658 echo " (Any other directories should still work fine.)" 1>&2
2668 # Check whether --with-build-sysroot or --without-build-sysroot was given.
2669 if test "${with_build_sysroot+set}" = set; then
2670 withval
="$with_build_sysroot"
2671 if test x
"$withval" != x
; then
2672 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
2675 SYSROOT_CFLAGS_FOR_TARGET
=
2680 # Handle --with-headers=XXX. If the value is not "yes", the contents of
2681 # the named directory are copied to $(tooldir)/sys-include.
2682 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
2683 if test x
${is_cross_compiler} = xno
; then
2684 echo 1>&2 '***' --with-headers is only supported when cross compiling
2687 if test x
"${with_headers}" != xyes
; then
2688 case "${exec_prefixoption}" in
2690 *) x
=${exec_prefix} ;;
2692 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
2696 # Handle --with-libs=XXX. If the value is not "yes", the contents of
2697 # the name directories are copied to $(tooldir)/lib. Multiple directories
2699 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2700 if test x
${is_cross_compiler} = xno
; then
2701 echo 1>&2 '***' --with-libs is only supported when cross compiling
2704 if test x
"${with_libs}" != xyes
; then
2705 # Copy the libraries in reverse order, so that files in the first named
2706 # library override files in subsequent libraries.
2707 case "${exec_prefixoption}" in
2709 *) x
=${exec_prefix} ;;
2711 for l
in ${with_libs}; do
2712 copy_dirs
="$l $x/${target_alias}/lib ${copy_dirs}"
2717 # Set with_gnu_as and with_gnu_ld as appropriate.
2719 # This is done by determining whether or not the appropriate directory
2720 # is available, and by checking whether or not specific configurations
2721 # have requested that this magic not happen.
2723 # The command line options always override the explicit settings in
2724 # configure.in, and the settings in configure.in override this magic.
2726 # If the default for a toolchain is to use GNU as and ld, and you don't
2727 # want to do that, then you should use the --without-gnu-as and
2728 # --without-gnu-ld options for the configure script.
2730 if test x
${use_gnu_as} = x
&&
2731 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
2733 extra_host_args
="$extra_host_args --with-gnu-as"
2736 if test x
${use_gnu_ld} = x
&&
2737 echo " ${configdirs} " |
grep " ld " > /dev
/null
2>&1 ; then
2739 extra_host_args
="$extra_host_args --with-gnu-ld"
2742 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
2743 # can detect this case.
2745 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
2747 extra_host_args
="$extra_host_args --with-newlib"
2750 # Handle ${copy_dirs}
2751 set fnord
${copy_dirs}
2753 while test $# != 0 ; do
2754 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
2757 echo Copying
$1 to
$2
2759 # Use the install script to create the directory and all required
2760 # parent directories.
2761 if test -d $2 ; then
2765 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
2768 # Copy the directory, assuming we have tar.
2769 # FIXME: Should we use B in the second tar? Not all systems support it.
2770 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
2772 # It is the responsibility of the user to correctly adjust all
2773 # symlinks. If somebody can figure out how to handle them correctly
2774 # here, feel free to add the code.
2781 # Determine a target-dependent exec_prefix that the installed
2782 # gcc will search in. Keep this list sorted by triplet, with
2783 # the *-*-osname triplets last.
2787 md_exec_prefix
=/gnu
/lib
/gcc-lib
2789 i3456786-pc-msdosdjgpp
*)
2790 md_exec_prefix
=/dev
/env
/DJDIR
/bin
2792 i3456786-
*-sco3.2v5
*)
2793 if test $with_gnu_as = yes; then
2794 md_exec_prefix
=/usr
/gnu
/bin
2796 md_exec_prefix
=/usr
/ccs
/bin
/elf
2801 powerpc-
*-chorusos* | \
2802 powerpc
*-*-eabi* | \
2803 powerpc
*-*-sysv* | \
2804 powerpc
*-*-kaos* | \
2806 md_exec_prefix
=/usr
/ccs
/bin
2811 md_exec_prefix
=/usr
/ccs
/bin
2826 md_exec_prefix
=/usr
/ccs
/bin
2830 extra_arflags_for_target
=
2831 extra_nmflags_for_target
=
2832 extra_ranlibflags_for_target
=
2833 target_makefile_frag
=/dev
/null
2836 target_makefile_frag
="config/mt-netware"
2838 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu)
2839 target_makefile_frag
="config/mt-gnu"
2841 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
2842 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
2843 # commands to handle both 32-bit and 64-bit objects. These flags are
2844 # harmless if we're using GNU nm or ar.
2845 extra_arflags_for_target
=" -X32_64"
2846 extra_nmflags_for_target
=" -B -X32_64"
2849 # ranlib from Darwin requires the -c flag to look at common symbols.
2850 extra_ranlibflags_for_target
=" -c"
2852 mips
*-*-pe | sh
*-*-pe |
*arm-wince-pe
)
2853 target_makefile_frag
="config/mt-wince"
2857 alphaieee_frag
=/dev
/null
2860 # This just makes sure to use the -mieee option to build target libs.
2861 # This should probably be set individually by each library.
2862 alphaieee_frag
="config/mt-alphaieee"
2866 # If --enable-target-optspace always use -Os instead of -O2 to build
2867 # the target libraries, similarly if it is not specified, use -Os
2868 # on selected platforms.
2869 ospace_frag
=/dev
/null
2870 case "${enable_target_optspace}:${target}" in
2872 ospace_frag
="config/mt-ospace"
2875 ospace_frag
="config/mt-d30v"
2877 :m32r-
* |
:d10v-
* |
:fr30-
*)
2878 ospace_frag
="config/mt-ospace"
2883 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
2887 # Default to using --with-stabs for certain targets.
2888 if test x
${with_stabs} = x
; then
2892 mips
*-*-* | alpha
*-*-osf*)
2894 extra_host_args
="${extra_host_args} --with-stabs"
2899 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
2900 # them automatically.
2903 extra_host_args
="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
2907 # Some systems (e.g., one of the i386-aix systems the gas testers are
2908 # using) don't handle "\$" correctly, so don't use it here.
2909 tooldir
='${exec_prefix}'/${target_alias}
2910 build_tooldir
=${tooldir}
2912 # Create a .gdbinit file which runs the one in srcdir
2913 # and tells GDB to look there for source files.
2915 if test -r ${srcdir}/.gdbinit
; then
2918 *) cat > .
/.gdbinit
<<EOF
2922 source ${srcdir}/.gdbinit
2928 # Make sure that the compiler is able to generate an executable. If it
2929 # can't, we are probably in trouble. We don't care whether we can run the
2930 # executable--we might be using a cross compiler--we only care whether it
2931 # can be created. At this point the main configure script has set CC.
2933 echo "int main () { return 0; }" > conftest.c
2934 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
2935 if test $?
= 0 ; then
2936 if test -s conftest ||
test -s conftest.exe
; then
2942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
2943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
2950 # The Solaris /usr/ucb/cc compiler does not appear to work.
2952 sparc-sun-solaris2
*)
2953 CCBASE
="`echo ${CC-cc} | sed 's/ .*$//'`"
2954 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
2956 test -d /opt
/SUNWspro
/bin
&& could_use
="/opt/SUNWspro/bin"
2957 if test -d /opt
/cygnus
/bin
; then
2958 if test "$could_use" = "" ; then
2959 could_use
="/opt/cygnus/bin"
2961 could_use
="$could_use or /opt/cygnus/bin"
2964 if test "$could_use" = "" ; then
2965 echo "Warning: compilation may fail because you're using"
2966 echo "/usr/ucb/cc. You should change your PATH or CC "
2967 echo "variable and rerun configure."
2969 echo "Warning: compilation may fail because you're using"
2970 echo "/usr/ucb/cc, when you should use the C compiler from"
2971 echo "$could_use. You should change your"
2972 echo "PATH or CC variable and rerun configure."
2979 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
2980 *-*-darwin* |
*-*-rhapsody* ) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
2981 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
2984 # Record target_configdirs and the configure arguments for target and
2985 # build configuration in Makefile.
2986 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2987 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
2989 # Determine whether gdb needs tk/tcl or not.
2990 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
2991 # and in that case we want gdb to be built without tk. Ugh!
2992 # In fact I believe gdb is the *only* package directly dependent on tk,
2993 # so we should be able to put the 'maybe's in unconditionally and
2994 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
2995 # 100% sure that that's safe though.
2997 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
2998 case "$enable_gdbtk" in
3002 GDB_TK
="${gdb_tk}" ;;
3004 # Only add the dependency on gdbtk when GDBtk is part of the gdb
3005 # distro. Eventually someone will fix this and move Insight, nee
3006 # gdbtk to a separate directory.
3007 if test -d ${srcdir}/gdb
/gdbtk
; then
3014 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
3015 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
3017 # Strip out unwanted targets.
3019 # While at that, we remove Makefiles if we were started for recursive
3020 # configuration, so that the top-level Makefile reconfigures them,
3021 # like we used to do when configure itself was recursive.
3023 # Loop over modules. $extrasub must be used with care, limiting as
3024 # much as possible the usage of range addresses. That's because autoconf
3025 # splits the sed script to overcome limits in the number of commands,
3026 # and relying on carefully-timed sed passes may turn out to be very hard
3027 # to maintain later. In this particular case, you just have to be careful
3028 # not to nest @if/@endif pairs, because configure will not warn you at all.
3030 # Check whether --enable-bootstrap or --disable-bootstrap was given.
3031 if test "${enable_bootstrap+set}" = set; then
3032 enableval
="$enable_bootstrap"
3035 enable_bootstrap
=default
3039 # Issue errors and warnings for invalid/strange bootstrap combinations.
3040 case "$configdirs" in
3041 *gcc
*) have_compiler
=yes ;;
3042 *) have_compiler
=no
;;
3045 case "$have_compiler:$host:$target:$enable_bootstrap" in
3048 # Default behavior. Enable bootstrap if we have a compiler
3049 # and we are in a native configuration.
3050 yes:$build:$build:default
)
3051 enable_bootstrap
=yes ;;
3054 enable_bootstrap
=no
;;
3056 # We have a compiler and we are in a native configuration, bootstrap is ok
3057 yes:$build:$build:yes)
3060 # Other configurations, but we have a compiler. Assume the user knows
3063 echo "configure: warning: trying to bootstrap a cross compiler" 1>&2
3066 # No compiler: if they passed --enable-bootstrap explicitly, fail
3068 { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } ;;
3070 # Fail if wrong command line
3072 { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; }
3076 # Adjust the toplevel makefile according to whether bootstrap was selected.
3077 case "$enable_bootstrap" in
3079 bootstrap_suffix
=bootstrap
;;
3081 bootstrap_suffix
=no-bootstrap
;;
3084 for module
in ${build_configdirs} ; do
3085 if test -z "${no_recursion}" \
3086 && test -f ${build_subdir}/${module}/Makefile
; then
3087 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
3088 rm -f ${build_subdir}/${module}/Makefile
3091 /^@if build-$module\$/d
3092 /^@endif build-$module\$/d
3093 /^@if build-$module-$bootstrap_suffix\$/d
3094 /^@endif build-$module-$bootstrap_suffix\$/d"
3096 for module
in ${configdirs} ; do
3097 if test -z "${no_recursion}"; then
3098 for file in stage
*-${module}/Makefile
${module}/Makefile
; do
3099 if test -f ${file}; then
3100 echo 1>&2 "*** removing ${file} to force reconfigure"
3107 /^@endif $module\$/d
3108 /^@if $module-$bootstrap_suffix\$/d
3109 /^@endif $module-$bootstrap_suffix\$/d"
3111 for module
in ${target_configdirs} ; do
3112 if test -z "${no_recursion}" \
3113 && test -f ${target_subdir}/${module}/Makefile
; then
3114 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
3115 rm -f ${target_subdir}/${module}/Makefile
3118 /^@if target-$module\$/d
3119 /^@endif target-$module\$/d
3120 /^@if target-$module-$bootstrap_suffix\$/d
3121 /^@endif target-$module-$bootstrap_suffix\$/d"
3125 /^@if /,/^@endif /d"
3127 # Create the serialization dependencies. This uses a temporary file.
3129 # Check whether --enable-serial-configure or --disable-serial-configure was given.
3130 if test "${enable_serial_configure+set}" = set; then
3131 enableval
="$enable_serial_configure"
3136 case ${enable_serial_configure} in
3138 enable_serial_build_configure
=yes
3139 enable_serial_host_configure
=yes
3140 enable_serial_target_configure
=yes
3144 # These force 'configure's to be done one at a time, to avoid problems
3145 # with contention over a shared config.cache.
3147 echo '# serdep.tmp' > serdep.tmp
3149 test "x${enable_serial_build_configure}" = xyes
&&
3150 for item
in ${build_configdirs} ; do
3153 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
3158 test "x${enable_serial_host_configure}" = xyes
&&
3159 for item
in ${configdirs} ; do
3162 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
3167 test "x${enable_serial_target_configure}" = xyes
&&
3168 for item
in ${target_configdirs} ; do
3171 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
3175 serialization_dependencies
=serdep.tmp
3178 # Base args. Strip norecursion, cache-file, srcdir, host, build,
3179 # target and nonopt. These are the ones we might not want to pass
3180 # down to subconfigures. Also strip program-prefix, program-suffix,
3181 # and program-transform-name, so that we can pass down a consistent
3182 # program-transform-name. If autoconf has put single quotes around
3183 # any of these arguments (because they contain shell metacharacters)
3184 # then this will fail; in practice this only happens for
3185 # --program-transform-name, so be sure to override --program-transform-name
3186 # at the end of the argument list.
3187 # These will be expanded by make, so quote '$'.
3188 cat <<\EOF_SED
> conftestsed
3190 s
/ --c[a-z-
]*[= ][^
]*//g
3191 s
/ --sr[a-z-
]*[= ][^
]*//g
3192 s
/ --ho[a-z-
]*[= ][^
]*//g
3193 s
/ --bu[a-z-
]*[= ][^
]*//g
3194 s
/ --t[a-z-
]*[= ][^
]*//g
3195 s
/ --program-[pst
][a-z-
]*[= ][^
]*//g
3196 s
/ -cache-file[= ][^
]*//g
3197 s
/ -srcdir[= ][^
]*//g
3198 s
/ -host[= ][^
]*//g
3199 s
/ -build[= ][^
]*//g
3200 s
/ -target[= ][^
]*//g
3201 s
/ -program-prefix[= ][^
]*//g
3202 s
/ -program-suffix[= ][^
]*//g
3203 s
/ -program-transform-name[= ][^
]*//g
3208 sed -f conftestsed <<EOF_SED > conftestsed.out
3209 ${ac_configure_args}
3211 baseargs=`cat conftestsed.out`
3212 rm -f conftestsed conftestsed.out
3214 # Add in --program-transform-name, after --program-prefix and
3215 # --program-suffix have been applied to it. Autoconf has already
3216 # doubled dollar signs and backslashes in program_transform_name; we want
3217 # the backslashes un-doubled, and then the entire thing wrapped in single
3218 # quotes, because this will be expanded first by make and then by the shell.
3219 # Also, because we want to override the logic in subdir configure scripts to
3220 # choose program_transform_name, replace any s,x,x, with s,y,y,.
3221 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
3222 ${program_transform_name}
3224 gcc_transform_name=`cat conftestsed.out`
3225 rm -f conftestsed.out
3226 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
3228 # For the build-side libraries, we just need to pretend we're native
,
3229 # and not use the same cache file. Multilibs are neither needed nor
3231 build_configargs
="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
3233 # For host modules, accept cache file option, or specification as blank.
3234 case "${cache_file}" in
3236 cache_file_option
="" ;;
3237 /* |
[A-Za-z
]:[\\/]* ) # absolute path
3238 cache_file_option
="--cache-file=${cache_file}" ;;
3240 cache_file_option
="--cache-file=../${cache_file}" ;;
3243 # Host dirs don't like to share a cache file either, horribly enough.
3244 # This seems to be due to autoconf 2.5x stupidity.
3245 host_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
3247 target_configargs
=${baseargs}
3249 # Passing a --with-cross-host argument lets the target libraries know
3250 # whether they are being built with a cross-compiler or being built
3251 # native. However, it would be better to use other mechanisms to make the
3252 # sorts of decisions they want to make on this basis. Please consider
3253 # this option to be deprecated. FIXME.
3254 if test x
${is_cross_compiler} = xyes
; then
3255 target_configargs
="--with-cross-host=${host_alias} ${target_configargs}"
3258 # Default to --enable-multilib.
3259 if test x
${enable_multilib} = x
; then
3260 target_configargs
="--enable-multilib ${target_configargs}"
3263 # Pass --with-newlib if appropriate. Note that target_configdirs has
3264 # changed from the earlier setting of with_newlib.
3265 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
3266 target_configargs
="--with-newlib ${target_configargs}"
3269 # Different target subdirs use different values of certain variables
3270 # (notably CXX). Worse, multilibs use *lots* of different values.
3271 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
3272 # it doesn't automatically accept command-line overrides of them.
3273 # This means it's not safe for target subdirs to share a cache file,
3274 # which is disgusting, but there you have it. Hopefully this can be
3275 # fixed in future. It's still worthwhile to use a cache file for each
3276 # directory. I think.
3278 # Pass the appropriate --build, --host, --target and --cache-file arguments.
3279 # We need to pass --target, as newer autoconf's requires consistency
3280 # for target_alias and gcc doesn't manage it consistently.
3281 target_configargs
="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
3284 case " $target_configdirs " in
3286 case " $target_configargs " in
3287 *" --with-newlib "*)
3290 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' ;;
3293 # If we're not building GCC, don't discard standard headers.
3294 if test -d ${srcdir}/gcc
; then
3295 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
3297 if test "${build}" != "${host}"; then
3298 # On Canadian crosses, CC_FOR_TARGET will have already been set
3299 # by `configure', so we won't have an opportunity to add -Bgcc/
3300 # to it. This is right: we don't want to search that directory
3301 # for binaries, but we want the header files in there, so add
3303 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
3305 # Someone might think of using the pre-installed headers on
3306 # Canadian crosses, in case the installed compiler is not fully
3307 # compatible with the compiler being built. In this case, it
3308 # would be better to flag an error than risking having
3309 # incompatible object files being constructed. We can't
3310 # guarantee that an error will be flagged, but let's hope the
3311 # compiler will do it, when presented with incompatible header
3316 case "${target}-${is_cross_compiler}" in
3317 i
[3456789]86-*-linux*-no)
3318 # Here host == target, so we don't need to build gcc,
3319 # so we don't want to discard standard headers.
3320 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
3323 # If we're building newlib, use its generic headers last, but search
3324 # for any libc-related directories first (so make it the last -B
3326 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
3334 # Allow the user to override the flags for
3335 # our build compiler if desired.
3336 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
3338 # On Canadian crosses, we'll be searching the right directories for
3339 # the previously-installed cross compiler, so don't bother to add
3340 # flags for directories within the install tree of the compiler
3341 # being built; programs in there won't even run.
3342 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
3343 # Search for pre-installed headers if nothing else fits.
3344 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
3347 if test "x
${use_gnu_ld}" = x &&
3348 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
3349 # Arrange for us to find uninstalled linker scripts.
3350 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
3353 # Makefile fragments.
3354 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
3356 eval fragval=\$$frag
3357 if test $fragval != /dev/null; then
3358 eval $frag=${srcdir}/$fragval
3366 # Miscellanea: directories, flags, etc.
3374 # Build module lists & subconfigure args.
3378 # Host module lists & subconfigure args.
3382 # Target module lists & subconfigure args.
3390 # Generate default definitions for YACC, M4, LEX and other programs that run
3391 # on the build machine. These are used if the Makefile can't locate these
3392 # programs in objdir.
3393 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3395 for ac_prog in 'bison -y' byacc yacc
3397 # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3400 echo "configure
:3401: checking
for $ac_word" >&5
3401 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3402 echo $ac_n "(cached
) $ac_c" 1>&6
3404 if test -n "$YACC"; then
3405 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3409 for ac_dir in $ac_dummy; do
3410 test -z "$ac_dir" && ac_dir=.
3411 if test -f $ac_dir/$ac_word; then
3412 ac_cv_prog_YACC="$ac_prog"
3419 YACC="$ac_cv_prog_YACC"
3420 if test -n "$YACC"; then
3421 echo "$ac_t""$YACC" 1>&6
3423 echo "$ac_t""no
" 1>&6
3426 test -n "$YACC" && break
3428 test -n "$YACC" || YACC="$MISSING bison
-y"
3430 case " $build_configdirs " in
3431 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
3432 *" byacc
"*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
3435 for ac_prog in bison
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3440 echo "configure
:3441: checking
for $ac_word" >&5
3441 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
3442 echo $ac_n "(cached
) $ac_c" 1>&6
3444 if test -n "$BISON"; then
3445 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3449 for ac_dir in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f $ac_dir/$ac_word; then
3452 ac_cv_prog_BISON="$ac_prog"
3459 BISON="$ac_cv_prog_BISON"
3460 if test -n "$BISON"; then
3461 echo "$ac_t""$BISON" 1>&6
3463 echo "$ac_t""no
" 1>&6
3466 test -n "$BISON" && break
3468 test -n "$BISON" || BISON="$MISSING bison
"
3470 case " $build_configdirs " in
3471 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
3474 for ac_prog in gm4 gnum4 m4
3476 # Extract the first word of "$ac_prog", so it can be a program name with args.
3477 set dummy $ac_prog; ac_word=$2
3478 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3479 echo "configure
:3480: checking
for $ac_word" >&5
3480 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
3481 echo $ac_n "(cached
) $ac_c" 1>&6
3483 if test -n "$M4"; then
3484 ac_cv_prog_M4="$M4" # Let the user override the test.
3486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3488 for ac_dir in $ac_dummy; do
3489 test -z "$ac_dir" && ac_dir=.
3490 if test -f $ac_dir/$ac_word; then
3491 ac_cv_prog_M4="$ac_prog"
3499 if test -n "$M4"; then
3500 echo "$ac_t""$M4" 1>&6
3502 echo "$ac_t""no
" 1>&6
3505 test -n "$M4" && break
3507 test -n "$M4" || M4="$MISSING m4"
3509 case " $build_configdirs " in
3510 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
3513 for ac_prog in flex lex
3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3516 set dummy $ac_prog; ac_word=$2
3517 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3518 echo "configure
:3519: checking
for $ac_word" >&5
3519 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3520 echo $ac_n "(cached
) $ac_c" 1>&6
3522 if test -n "$LEX"; then
3523 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3527 for ac_dir in $ac_dummy; do
3528 test -z "$ac_dir" && ac_dir=.
3529 if test -f $ac_dir/$ac_word; then
3530 ac_cv_prog_LEX="$ac_prog"
3537 LEX="$ac_cv_prog_LEX"
3538 if test -n "$LEX"; then
3539 echo "$ac_t""$LEX" 1>&6
3541 echo "$ac_t""no
" 1>&6
3544 test -n "$LEX" && break
3546 test -n "$LEX" || LEX="$MISSING flex
"
3548 case " $build_configdirs " in
3549 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3550 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 set dummy $ac_prog; ac_word=$2
3557 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3558 echo "configure
:3559: checking
for $ac_word" >&5
3559 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
3560 echo $ac_n "(cached
) $ac_c" 1>&6
3562 if test -n "$FLEX"; then
3563 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3567 for ac_dir in $ac_dummy; do
3568 test -z "$ac_dir" && ac_dir=.
3569 if test -f $ac_dir/$ac_word; then
3570 ac_cv_prog_FLEX="$ac_prog"
3577 FLEX="$ac_cv_prog_FLEX"
3578 if test -n "$FLEX"; then
3579 echo "$ac_t""$FLEX" 1>&6
3581 echo "$ac_t""no
" 1>&6
3584 test -n "$FLEX" && break
3586 test -n "$FLEX" || FLEX="$MISSING flex
"
3588 case " $build_configdirs " in
3589 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
3592 for ac_prog in makeinfo
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2
3596 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3597 echo "configure
:3598: checking
for $ac_word" >&5
3598 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
3599 echo $ac_n "(cached
) $ac_c" 1>&6
3601 if test -n "$MAKEINFO"; then
3602 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3606 for ac_dir in $ac_dummy; do
3607 test -z "$ac_dir" && ac_dir=.
3608 if test -f $ac_dir/$ac_word; then
3609 ac_cv_prog_MAKEINFO="$ac_prog"
3616 MAKEINFO="$ac_cv_prog_MAKEINFO"
3617 if test -n "$MAKEINFO"; then
3618 echo "$ac_t""$MAKEINFO" 1>&6
3620 echo "$ac_t""no
" 1>&6
3623 test -n "$MAKEINFO" && break
3625 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
3627 case " $build_configdirs " in
3628 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
3631 # For an installed makeinfo, we require it to be from texinfo 4.2 or
3632 # higher, else we use the "missing
" dummy.
3633 if ${MAKEINFO} --version \
3634 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])' >/dev/null 2>&1; then
3637 MAKEINFO="$MISSING makeinfo
"
3643 # FIXME: expect and dejagnu may become build tools?
3645 for ac_prog in expect
3647 # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3650 echo "configure
:3651: checking
for $ac_word" >&5
3651 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
3652 echo $ac_n "(cached
) $ac_c" 1>&6
3654 if test -n "$EXPECT"; then
3655 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
3657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3659 for ac_dir in $ac_dummy; do
3660 test -z "$ac_dir" && ac_dir=.
3661 if test -f $ac_dir/$ac_word; then
3662 ac_cv_prog_EXPECT="$ac_prog"
3669 EXPECT="$ac_cv_prog_EXPECT"
3670 if test -n "$EXPECT"; then
3671 echo "$ac_t""$EXPECT" 1>&6
3673 echo "$ac_t""no
" 1>&6
3676 test -n "$EXPECT" && break
3678 test -n "$EXPECT" || EXPECT="expect
"
3680 case " $configdirs " in
3682 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
3686 for ac_prog in runtest
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3691 echo "configure
:3692: checking
for $ac_word" >&5
3692 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
3693 echo $ac_n "(cached
) $ac_c" 1>&6
3695 if test -n "$RUNTEST"; then
3696 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
3698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3700 for ac_dir in $ac_dummy; do
3701 test -z "$ac_dir" && ac_dir=.
3702 if test -f $ac_dir/$ac_word; then
3703 ac_cv_prog_RUNTEST="$ac_prog"
3710 RUNTEST="$ac_cv_prog_RUNTEST"
3711 if test -n "$RUNTEST"; then
3712 echo "$ac_t""$RUNTEST" 1>&6
3714 echo "$ac_t""no
" 1>&6
3717 test -n "$RUNTEST" && break
3719 test -n "$RUNTEST" || RUNTEST="runtest
"
3721 case " $configdirs " in
3723 test $host = $build && RUNTEST='$$r/$(HOST_SUBDIR)/dejagnu/runtest'
3730 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
3731 ncn_target_tool_prefix=
3732 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
3734 for ncn_progname in ar; do
3735 if test -n "$ncn_tool_prefix"; then
3736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3737 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3738 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3739 echo "configure
:3740: checking
for $ac_word" >&5
3740 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3741 echo $ac_n "(cached
) $ac_c" 1>&6
3743 if test -n "$AR"; then
3744 ac_cv_prog_AR="$AR" # Let the user override the test.
3746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 for ac_dir in $ac_dummy; do
3749 test -z "$ac_dir" && ac_dir=.
3750 if test -f $ac_dir/$ac_word; then
3751 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
3759 if test -n "$AR"; then
3760 echo "$ac_t""$AR" 1>&6
3762 echo "$ac_t""no
" 1>&6
3766 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
3767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3768 set dummy ${ncn_progname}; ac_word=$2
3769 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3770 echo "configure
:3771: checking
for $ac_word" >&5
3771 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3772 echo $ac_n "(cached
) $ac_c" 1>&6
3774 if test -n "$AR"; then
3775 ac_cv_prog_AR="$AR" # Let the user override the test.
3777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3779 for ac_dir in $ac_dummy; do
3780 test -z "$ac_dir" && ac_dir=.
3781 if test -f $ac_dir/$ac_word; then
3782 ac_cv_prog_AR="${ncn_progname}"
3790 if test -n "$AR"; then
3791 echo "$ac_t""$AR" 1>&6
3793 echo "$ac_t""no
" 1>&6
3797 test -n "$ac_cv_prog_AR" && break
3800 if test -z "$ac_cv_prog_AR" ; then
3802 if test $build = $host ; then
3805 AR="${ncn_tool_prefix}$2"
3809 for ncn_progname in as; do
3810 if test -n "$ncn_tool_prefix"; then
3811 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3812 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3813 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3814 echo "configure
:3815: checking
for $ac_word" >&5
3815 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3816 echo $ac_n "(cached
) $ac_c" 1>&6
3818 if test -n "$AS"; then
3819 ac_cv_prog_AS="$AS" # Let the user override the test.
3821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3823 for ac_dir in $ac_dummy; do
3824 test -z "$ac_dir" && ac_dir=.
3825 if test -f $ac_dir/$ac_word; then
3826 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
3834 if test -n "$AS"; then
3835 echo "$ac_t""$AS" 1>&6
3837 echo "$ac_t""no
" 1>&6
3841 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
3842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3843 set dummy ${ncn_progname}; ac_word=$2
3844 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3845 echo "configure
:3846: checking
for $ac_word" >&5
3846 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3847 echo $ac_n "(cached
) $ac_c" 1>&6
3849 if test -n "$AS"; then
3850 ac_cv_prog_AS="$AS" # Let the user override the test.
3852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3854 for ac_dir in $ac_dummy; do
3855 test -z "$ac_dir" && ac_dir=.
3856 if test -f $ac_dir/$ac_word; then
3857 ac_cv_prog_AS="${ncn_progname}"
3865 if test -n "$AS"; then
3866 echo "$ac_t""$AS" 1>&6
3868 echo "$ac_t""no
" 1>&6
3872 test -n "$ac_cv_prog_AS" && break
3875 if test -z "$ac_cv_prog_AS" ; then
3877 if test $build = $host ; then
3880 AS="${ncn_tool_prefix}$2"
3884 for ncn_progname in dlltool; do
3885 if test -n "$ncn_tool_prefix"; then
3886 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3887 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3888 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3889 echo "configure
:3890: checking
for $ac_word" >&5
3890 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3891 echo $ac_n "(cached
) $ac_c" 1>&6
3893 if test -n "$DLLTOOL"; then
3894 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3898 for ac_dir in $ac_dummy; do
3899 test -z "$ac_dir" && ac_dir=.
3900 if test -f $ac_dir/$ac_word; then
3901 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
3908 DLLTOOL="$ac_cv_prog_DLLTOOL"
3909 if test -n "$DLLTOOL"; then
3910 echo "$ac_t""$DLLTOOL" 1>&6
3912 echo "$ac_t""no
" 1>&6
3916 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
3917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3918 set dummy ${ncn_progname}; ac_word=$2
3919 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3920 echo "configure
:3921: checking
for $ac_word" >&5
3921 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3922 echo $ac_n "(cached
) $ac_c" 1>&6
3924 if test -n "$DLLTOOL"; then
3925 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3929 for ac_dir in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir=.
3931 if test -f $ac_dir/$ac_word; then
3932 ac_cv_prog_DLLTOOL="${ncn_progname}"
3939 DLLTOOL="$ac_cv_prog_DLLTOOL"
3940 if test -n "$DLLTOOL"; then
3941 echo "$ac_t""$DLLTOOL" 1>&6
3943 echo "$ac_t""no
" 1>&6
3947 test -n "$ac_cv_prog_DLLTOOL" && break
3950 if test -z "$ac_cv_prog_DLLTOOL" ; then
3952 if test $build = $host ; then
3955 DLLTOOL="${ncn_tool_prefix}$2"
3959 for ncn_progname in ld; do
3960 if test -n "$ncn_tool_prefix"; then
3961 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
3962 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
3963 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3964 echo "configure
:3965: checking
for $ac_word" >&5
3965 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3966 echo $ac_n "(cached
) $ac_c" 1>&6
3968 if test -n "$LD"; then
3969 ac_cv_prog_LD="$LD" # Let the user override the test.
3971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3973 for ac_dir in $ac_dummy; do
3974 test -z "$ac_dir" && ac_dir=.
3975 if test -f $ac_dir/$ac_word; then
3976 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
3984 if test -n "$LD"; then
3985 echo "$ac_t""$LD" 1>&6
3987 echo "$ac_t""no
" 1>&6
3991 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
3992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
3993 set dummy ${ncn_progname}; ac_word=$2
3994 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
3995 echo "configure
:3996: checking
for $ac_word" >&5
3996 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
3997 echo $ac_n "(cached
) $ac_c" 1>&6
3999 if test -n "$LD"; then
4000 ac_cv_prog_LD="$LD" # Let the user override the test.
4002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4004 for ac_dir in $ac_dummy; do
4005 test -z "$ac_dir" && ac_dir=.
4006 if test -f $ac_dir/$ac_word; then
4007 ac_cv_prog_LD="${ncn_progname}"
4015 if test -n "$LD"; then
4016 echo "$ac_t""$LD" 1>&6
4018 echo "$ac_t""no
" 1>&6
4022 test -n "$ac_cv_prog_LD" && break
4025 if test -z "$ac_cv_prog_LD" ; then
4027 if test $build = $host ; then
4030 LD="${ncn_tool_prefix}$2"
4034 for ncn_progname in lipo; do
4035 if test -n "$ncn_tool_prefix"; then
4036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4037 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4038 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4039 echo "configure
:4040: checking
for $ac_word" >&5
4040 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4041 echo $ac_n "(cached
) $ac_c" 1>&6
4043 if test -n "$LIPO"; then
4044 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4048 for ac_dir in $ac_dummy; do
4049 test -z "$ac_dir" && ac_dir=.
4050 if test -f $ac_dir/$ac_word; then
4051 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
4058 LIPO="$ac_cv_prog_LIPO"
4059 if test -n "$LIPO"; then
4060 echo "$ac_t""$LIPO" 1>&6
4062 echo "$ac_t""no
" 1>&6
4066 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
4067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4068 set dummy ${ncn_progname}; ac_word=$2
4069 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4070 echo "configure
:4071: checking
for $ac_word" >&5
4071 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
4072 echo $ac_n "(cached
) $ac_c" 1>&6
4074 if test -n "$LIPO"; then
4075 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4079 for ac_dir in $ac_dummy; do
4080 test -z "$ac_dir" && ac_dir=.
4081 if test -f $ac_dir/$ac_word; then
4082 ac_cv_prog_LIPO="${ncn_progname}"
4089 LIPO="$ac_cv_prog_LIPO"
4090 if test -n "$LIPO"; then
4091 echo "$ac_t""$LIPO" 1>&6
4093 echo "$ac_t""no
" 1>&6
4097 test -n "$ac_cv_prog_LIPO" && break
4100 if test -z "$ac_cv_prog_LIPO" ; then
4102 if test $build = $host ; then
4105 LIPO="${ncn_tool_prefix}$2"
4109 for ncn_progname in nm; do
4110 if test -n "$ncn_tool_prefix"; then
4111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4112 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4113 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4114 echo "configure
:4115: checking
for $ac_word" >&5
4115 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4116 echo $ac_n "(cached
) $ac_c" 1>&6
4118 if test -n "$NM"; then
4119 ac_cv_prog_NM="$NM" # Let the user override the test.
4121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4123 for ac_dir in $ac_dummy; do
4124 test -z "$ac_dir" && ac_dir=.
4125 if test -f $ac_dir/$ac_word; then
4126 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
4134 if test -n "$NM"; then
4135 echo "$ac_t""$NM" 1>&6
4137 echo "$ac_t""no
" 1>&6
4141 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
4142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4143 set dummy ${ncn_progname}; ac_word=$2
4144 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4145 echo "configure
:4146: checking
for $ac_word" >&5
4146 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
4147 echo $ac_n "(cached
) $ac_c" 1>&6
4149 if test -n "$NM"; then
4150 ac_cv_prog_NM="$NM" # Let the user override the test.
4152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4154 for ac_dir in $ac_dummy; do
4155 test -z "$ac_dir" && ac_dir=.
4156 if test -f $ac_dir/$ac_word; then
4157 ac_cv_prog_NM="${ncn_progname}"
4165 if test -n "$NM"; then
4166 echo "$ac_t""$NM" 1>&6
4168 echo "$ac_t""no
" 1>&6
4172 test -n "$ac_cv_prog_NM" && break
4175 if test -z "$ac_cv_prog_NM" ; then
4177 if test $build = $host ; then
4180 NM="${ncn_tool_prefix}$2"
4184 for ncn_progname in ranlib; do
4185 if test -n "$ncn_tool_prefix"; then
4186 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4187 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4188 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4189 echo "configure
:4190: checking
for $ac_word" >&5
4190 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4191 echo $ac_n "(cached
) $ac_c" 1>&6
4193 if test -n "$RANLIB"; then
4194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4198 for ac_dir in $ac_dummy; do
4199 test -z "$ac_dir" && ac_dir=.
4200 if test -f $ac_dir/$ac_word; then
4201 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
4208 RANLIB="$ac_cv_prog_RANLIB"
4209 if test -n "$RANLIB"; then
4210 echo "$ac_t""$RANLIB" 1>&6
4212 echo "$ac_t""no
" 1>&6
4216 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
4217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4218 set dummy ${ncn_progname}; ac_word=$2
4219 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4220 echo "configure
:4221: checking
for $ac_word" >&5
4221 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4222 echo $ac_n "(cached
) $ac_c" 1>&6
4224 if test -n "$RANLIB"; then
4225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4229 for ac_dir in $ac_dummy; do
4230 test -z "$ac_dir" && ac_dir=.
4231 if test -f $ac_dir/$ac_word; then
4232 ac_cv_prog_RANLIB="${ncn_progname}"
4239 RANLIB="$ac_cv_prog_RANLIB"
4240 if test -n "$RANLIB"; then
4241 echo "$ac_t""$RANLIB" 1>&6
4243 echo "$ac_t""no
" 1>&6
4247 test -n "$ac_cv_prog_RANLIB" && break
4250 if test -z "$ac_cv_prog_RANLIB" ; then
4254 for ncn_progname in strip; do
4255 if test -n "$ncn_tool_prefix"; then
4256 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4257 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4258 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4259 echo "configure
:4260: checking
for $ac_word" >&5
4260 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4261 echo $ac_n "(cached
) $ac_c" 1>&6
4263 if test -n "$STRIP"; then
4264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4268 for ac_dir in $ac_dummy; do
4269 test -z "$ac_dir" && ac_dir=.
4270 if test -f $ac_dir/$ac_word; then
4271 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
4278 STRIP="$ac_cv_prog_STRIP"
4279 if test -n "$STRIP"; then
4280 echo "$ac_t""$STRIP" 1>&6
4282 echo "$ac_t""no
" 1>&6
4286 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
4287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4288 set dummy ${ncn_progname}; ac_word=$2
4289 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4290 echo "configure
:4291: checking
for $ac_word" >&5
4291 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4292 echo $ac_n "(cached
) $ac_c" 1>&6
4294 if test -n "$STRIP"; then
4295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4299 for ac_dir in $ac_dummy; do
4300 test -z "$ac_dir" && ac_dir=.
4301 if test -f $ac_dir/$ac_word; then
4302 ac_cv_prog_STRIP="${ncn_progname}"
4309 STRIP="$ac_cv_prog_STRIP"
4310 if test -n "$STRIP"; then
4311 echo "$ac_t""$STRIP" 1>&6
4313 echo "$ac_t""no
" 1>&6
4317 test -n "$ac_cv_prog_STRIP" && break
4320 if test -z "$ac_cv_prog_STRIP" ; then
4324 for ncn_progname in windres; do
4325 if test -n "$ncn_tool_prefix"; then
4326 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4327 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4328 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4329 echo "configure
:4330: checking
for $ac_word" >&5
4330 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4331 echo $ac_n "(cached
) $ac_c" 1>&6
4333 if test -n "$WINDRES"; then
4334 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4338 for ac_dir in $ac_dummy; do
4339 test -z "$ac_dir" && ac_dir=.
4340 if test -f $ac_dir/$ac_word; then
4341 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
4348 WINDRES="$ac_cv_prog_WINDRES"
4349 if test -n "$WINDRES"; then
4350 echo "$ac_t""$WINDRES" 1>&6
4352 echo "$ac_t""no
" 1>&6
4356 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
4357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4358 set dummy ${ncn_progname}; ac_word=$2
4359 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4360 echo "configure
:4361: checking
for $ac_word" >&5
4361 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
4362 echo $ac_n "(cached
) $ac_c" 1>&6
4364 if test -n "$WINDRES"; then
4365 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4369 for ac_dir in $ac_dummy; do
4370 test -z "$ac_dir" && ac_dir=.
4371 if test -f $ac_dir/$ac_word; then
4372 ac_cv_prog_WINDRES="${ncn_progname}"
4379 WINDRES="$ac_cv_prog_WINDRES"
4380 if test -n "$WINDRES"; then
4381 echo "$ac_t""$WINDRES" 1>&6
4383 echo "$ac_t""no
" 1>&6
4387 test -n "$ac_cv_prog_WINDRES" && break
4390 if test -z "$ac_cv_prog_WINDRES" ; then
4392 if test $build = $host ; then
4395 WINDRES="${ncn_tool_prefix}$2"
4399 for ncn_progname in objcopy; do
4400 if test -n "$ncn_tool_prefix"; then
4401 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4402 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
4403 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4404 echo "configure
:4405: checking
for $ac_word" >&5
4405 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4406 echo $ac_n "(cached
) $ac_c" 1>&6
4408 if test -n "$OBJCOPY"; then
4409 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4413 for ac_dir in $ac_dummy; do
4414 test -z "$ac_dir" && ac_dir=.
4415 if test -f $ac_dir/$ac_word; then
4416 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
4423 OBJCOPY="$ac_cv_prog_OBJCOPY"
4424 if test -n "$OBJCOPY"; then
4425 echo "$ac_t""$OBJCOPY" 1>&6
4427 echo "$ac_t""no
" 1>&6
4431 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
4432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4433 set dummy ${ncn_progname}; ac_word=$2
4434 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4435 echo "configure
:4436: checking
for $ac_word" >&5
4436 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
4437 echo $ac_n "(cached
) $ac_c" 1>&6
4439 if test -n "$OBJCOPY"; then
4440 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4444 for ac_dir in $ac_dummy; do
4445 test -z "$ac_dir" && ac_dir=.
4446 if test -f $ac_dir/$ac_word; then
4447 ac_cv_prog_OBJCOPY="${ncn_progname}"
4454 OBJCOPY="$ac_cv_prog_OBJCOPY"
4455 if test -n "$OBJCOPY"; then
4456 echo "$ac_t""$OBJCOPY" 1>&6
4458 echo "$ac_t""no
" 1>&6
4462 test -n "$ac_cv_prog_OBJCOPY" && break
4465 if test -z "$ac_cv_prog_OBJCOPY" ; then
4467 if test $build = $host ; then
4470 OBJCOPY="${ncn_tool_prefix}$2"
4474 for ncn_progname in objdump; do
4475 if test -n "$ncn_tool_prefix"; then
4476 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
4477 set dummy ${ncn_tool_prefix}${ncn_progname}; 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_OBJDUMP'+set}'`\" = set"; then
4481 echo $ac_n "(cached
) $ac_c" 1>&6
4483 if test -n "$OBJDUMP"; then
4484 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
4498 OBJDUMP="$ac_cv_prog_OBJDUMP"
4499 if test -n "$OBJDUMP"; then
4500 echo "$ac_t""$OBJDUMP" 1>&6
4502 echo "$ac_t""no
" 1>&6
4506 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
4507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4508 set dummy ${ncn_progname}; ac_word=$2
4509 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4510 echo "configure
:4511: checking
for $ac_word" >&5
4511 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
4512 echo $ac_n "(cached
) $ac_c" 1>&6
4514 if test -n "$OBJDUMP"; then
4515 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4519 for ac_dir in $ac_dummy; do
4520 test -z "$ac_dir" && ac_dir=.
4521 if test -f $ac_dir/$ac_word; then
4522 ac_cv_prog_OBJDUMP="${ncn_progname}"
4529 OBJDUMP="$ac_cv_prog_OBJDUMP"
4530 if test -n "$OBJDUMP"; then
4531 echo "$ac_t""$OBJDUMP" 1>&6
4533 echo "$ac_t""no
" 1>&6
4537 test -n "$ac_cv_prog_OBJDUMP" && break
4540 if test -z "$ac_cv_prog_OBJDUMP" ; then
4542 if test $build = $host ; then
4545 OBJDUMP="${ncn_tool_prefix}$2"
4556 # Check whether --with-build-time-tools or --without-build-time-tools was given.
4557 if test "${with_build_time_tools+set}" = set; then
4558 withval="$with_build_time_tools"
4562 with_build_time_tools=
4563 echo "configure
: warning
: argument to
--with-build-time-tools must be an absolute path
" 1>&2
4567 with_build_time_tools=
4571 if test -n "$with_build_time_tools"; then
4572 for ncn_progname in cc gcc; do
4573 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4574 echo "configure
:4575: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4575 if test -x $with_build_time_tools/${ncn_progname}; then
4576 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4577 echo "$ac_t""yes" 1>&6
4580 echo "$ac_t""no
" 1>&6
4585 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
4586 for ncn_progname in cc gcc; do
4587 if test -n "$ncn_target_tool_prefix"; then
4588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4590 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4591 echo "configure
:4592: checking
for $ac_word" >&5
4592 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4593 echo $ac_n "(cached
) $ac_c" 1>&6
4595 if test -n "$CC_FOR_TARGET"; then
4596 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4600 for ac_dir in $ac_dummy; do
4601 test -z "$ac_dir" && ac_dir=.
4602 if test -f $ac_dir/$ac_word; then
4603 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4610 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4611 if test -n "$CC_FOR_TARGET"; then
4612 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4614 echo "$ac_t""no
" 1>&6
4618 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
4619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4620 set dummy ${ncn_progname}; ac_word=$2
4621 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4622 echo "configure
:4623: checking
for $ac_word" >&5
4623 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
4624 echo $ac_n "(cached
) $ac_c" 1>&6
4626 if test -n "$CC_FOR_TARGET"; then
4627 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4631 for ac_dir in $ac_dummy; do
4632 test -z "$ac_dir" && ac_dir=.
4633 if test -f $ac_dir/$ac_word; then
4634 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
4641 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4642 if test -n "$CC_FOR_TARGET"; then
4643 echo "$ac_t""$CC_FOR_TARGET" 1>&6
4645 echo "$ac_t""no
" 1>&6
4649 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
4653 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
4655 if test $build = $target ; then
4658 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4662 if test -n "$with_build_time_tools"; then
4663 for ncn_progname in c++ g++ cxx gxx; do
4664 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4665 echo "configure
:4666: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4666 if test -x $with_build_time_tools/${ncn_progname}; then
4667 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4668 echo "$ac_t""yes" 1>&6
4671 echo "$ac_t""no
" 1>&6
4676 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
4677 for ncn_progname in c++ g++ cxx gxx; do
4678 if test -n "$ncn_target_tool_prefix"; then
4679 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4680 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4681 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4682 echo "configure
:4683: checking
for $ac_word" >&5
4683 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4684 echo $ac_n "(cached
) $ac_c" 1>&6
4686 if test -n "$CXX_FOR_TARGET"; then
4687 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 for ac_dir in $ac_dummy; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f $ac_dir/$ac_word; then
4694 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4701 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4702 if test -n "$CXX_FOR_TARGET"; then
4703 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4705 echo "$ac_t""no
" 1>&6
4709 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
4710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4711 set dummy ${ncn_progname}; ac_word=$2
4712 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4713 echo "configure
:4714: checking
for $ac_word" >&5
4714 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
4715 echo $ac_n "(cached
) $ac_c" 1>&6
4717 if test -n "$CXX_FOR_TARGET"; then
4718 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4722 for ac_dir in $ac_dummy; do
4723 test -z "$ac_dir" && ac_dir=.
4724 if test -f $ac_dir/$ac_word; then
4725 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
4732 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
4733 if test -n "$CXX_FOR_TARGET"; then
4734 echo "$ac_t""$CXX_FOR_TARGET" 1>&6
4736 echo "$ac_t""no
" 1>&6
4740 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
4744 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
4745 set dummy c++ g++ cxx gxx
4746 if test $build = $target ; then
4749 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4753 if test -n "$with_build_time_tools"; then
4754 for ncn_progname in gcc; do
4755 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4756 echo "configure
:4757: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4757 if test -x $with_build_time_tools/${ncn_progname}; then
4758 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4759 echo "$ac_t""yes" 1>&6
4762 echo "$ac_t""no
" 1>&6
4767 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
4768 for ncn_progname in gcc; do
4769 if test -n "$ncn_target_tool_prefix"; then
4770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4772 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4773 echo "configure
:4774: checking
for $ac_word" >&5
4774 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4775 echo $ac_n "(cached
) $ac_c" 1>&6
4777 if test -n "$GCC_FOR_TARGET"; then
4778 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4782 for ac_dir in $ac_dummy; do
4783 test -z "$ac_dir" && ac_dir=.
4784 if test -f $ac_dir/$ac_word; then
4785 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4792 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4793 if test -n "$GCC_FOR_TARGET"; then
4794 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4796 echo "$ac_t""no
" 1>&6
4800 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
4801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4802 set dummy ${ncn_progname}; ac_word=$2
4803 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4804 echo "configure
:4805: checking
for $ac_word" >&5
4805 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
4806 echo $ac_n "(cached
) $ac_c" 1>&6
4808 if test -n "$GCC_FOR_TARGET"; then
4809 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
4811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4813 for ac_dir in $ac_dummy; do
4814 test -z "$ac_dir" && ac_dir=.
4815 if test -f $ac_dir/$ac_word; then
4816 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
4823 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
4824 if test -n "$GCC_FOR_TARGET"; then
4825 echo "$ac_t""$GCC_FOR_TARGET" 1>&6
4827 echo "$ac_t""no
" 1>&6
4831 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
4835 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
4836 GCC_FOR_TARGET="${CC_FOR_TARGET}"
4839 if test -n "$with_build_time_tools"; then
4840 for ncn_progname in gcj; do
4841 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4842 echo "configure
:4843: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4843 if test -x $with_build_time_tools/${ncn_progname}; then
4844 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4845 echo "$ac_t""yes" 1>&6
4848 echo "$ac_t""no
" 1>&6
4853 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
4854 for ncn_progname in gcj; do
4855 if test -n "$ncn_target_tool_prefix"; then
4856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4857 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4858 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4859 echo "configure
:4860: checking
for $ac_word" >&5
4860 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4861 echo $ac_n "(cached
) $ac_c" 1>&6
4863 if test -n "$GCJ_FOR_TARGET"; then
4864 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4868 for ac_dir in $ac_dummy; do
4869 test -z "$ac_dir" && ac_dir=.
4870 if test -f $ac_dir/$ac_word; then
4871 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4878 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4879 if test -n "$GCJ_FOR_TARGET"; then
4880 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4882 echo "$ac_t""no
" 1>&6
4886 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
4887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4888 set dummy ${ncn_progname}; ac_word=$2
4889 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4890 echo "configure
:4891: checking
for $ac_word" >&5
4891 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
4892 echo $ac_n "(cached
) $ac_c" 1>&6
4894 if test -n "$GCJ_FOR_TARGET"; then
4895 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
4897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4899 for ac_dir in $ac_dummy; do
4900 test -z "$ac_dir" && ac_dir=.
4901 if test -f $ac_dir/$ac_word; then
4902 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
4909 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
4910 if test -n "$GCJ_FOR_TARGET"; then
4911 echo "$ac_t""$GCJ_FOR_TARGET" 1>&6
4913 echo "$ac_t""no
" 1>&6
4917 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
4921 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
4923 if test $build = $target ; then
4926 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
4930 if test -n "$with_build_time_tools"; then
4931 for ncn_progname in gfortran; do
4932 echo $ac_n "checking
for ${ncn_progname} in $with_build_time_tools""...
$ac_c" 1>&6
4933 echo "configure
:4934: checking
for ${ncn_progname} in $with_build_time_tools" >&5
4934 if test -x $with_build_time_tools/${ncn_progname}; then
4935 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
4936 echo "$ac_t""yes" 1>&6
4939 echo "$ac_t""no
" 1>&6
4944 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
4945 for ncn_progname in gfortran; do
4946 if test -n "$ncn_target_tool_prefix"; then
4947 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
4948 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
4949 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4950 echo "configure
:4951: checking
for $ac_word" >&5
4951 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4952 echo $ac_n "(cached
) $ac_c" 1>&6
4954 if test -n "$GFORTRAN_FOR_TARGET"; then
4955 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4959 for ac_dir in $ac_dummy; do
4960 test -z "$ac_dir" && ac_dir=.
4961 if test -f $ac_dir/$ac_word; then
4962 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
4969 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
4970 if test -n "$GFORTRAN_FOR_TARGET"; then
4971 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
4973 echo "$ac_t""no
" 1>&6
4977 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
4978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
4979 set dummy ${ncn_progname}; ac_word=$2
4980 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4981 echo "configure
:4982: checking
for $ac_word" >&5
4982 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
4983 echo $ac_n "(cached
) $ac_c" 1>&6
4985 if test -n "$GFORTRAN_FOR_TARGET"; then
4986 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
4988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4990 for ac_dir in $ac_dummy; do
4991 test -z "$ac_dir" && ac_dir=.
4992 if test -f $ac_dir/$ac_word; then
4993 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5000 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
5001 if test -n "$GFORTRAN_FOR_TARGET"; then
5002 echo "$ac_t""$GFORTRAN_FOR_TARGET" 1>&6
5004 echo "$ac_t""no
" 1>&6
5008 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
5012 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
5014 if test $build = $target ; then
5015 GFORTRAN_FOR_TARGET="$2"
5017 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
5023 # The user is always right.
5024 if test "${PATH_SEPARATOR+set}" != set; then
5025 echo "#! /bin/sh" >conf$$.sh
5026 echo "exit 0" >>conf$$.sh
5028 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5038 if test "x$exec_prefix" = xNONE
; then
5039 if test "x$prefix" = xNONE
; then
5040 gcc_cv_tool_prefix
=$ac_default_prefix
5042 gcc_cv_tool_prefix
=$prefix
5045 gcc_cv_tool_prefix
=$exec_prefix
5048 # If there is no compiler in the tree, use the PATH only. In any
5049 # case, if there is no compiler in the tree nobody should use
5050 # AS_FOR_TARGET and LD_FOR_TARGET.
5051 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
5052 gcc_version
=`cat $srcdir/gcc/BASE-VER`
5053 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5054 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5055 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5056 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5057 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5058 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5063 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
5064 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5069 cat > conftest.c
<< \EOF
5074 if ($GCC_FOR_TARGET -E conftest.c |
grep gcc_yay
) > /dev
/null
2>&1; then
5075 have_gcc_for_target
=yes
5077 GCC_FOR_TARGET
=${ncn_target_tool_prefix}gcc
5078 have_gcc_for_target
=no
5085 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5086 if test -n "$with_build_time_tools"; then
5087 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
5088 echo "configure:5089: checking for ar in $with_build_time_tools" >&5
5089 if test -x $with_build_time_tools/ar; then
5090 AR_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ar
5091 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5092 echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
5094 echo "$ac_t""no" 1>&6
5096 elif test $build != $host && test $have_gcc_for_target = yes; then
5097 AR_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ar`
5098 test $AR_FOR_TARGET=ar && AR_FOR_TARGET
=
5099 ac_cv_path_AR_FOR_TARGET
=$AR_FOR_TARGET
5102 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5103 # Extract the first word of "ar", so it can be a program name with args.
5104 set dummy
ar; ac_word
=$2
5105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_word" >&5
5107 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5110 case "$AR_FOR_TARGET" in
5112 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a path.
5115 ac_cv_path_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test with a dos path.
5118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5119 ac_dummy
="$gcc_cv_tool_dirs"
5120 for ac_dir
in $ac_dummy; do
5121 test -z "$ac_dir" && ac_dir
=.
5122 if test -f $ac_dir/$ac_word; then
5123 ac_cv_path_AR_FOR_TARGET
="$ac_dir/$ac_word"
5131 AR_FOR_TARGET
="$ac_cv_path_AR_FOR_TARGET"
5132 if test -n "$AR_FOR_TARGET"; then
5133 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5135 echo "$ac_t""no" 1>&6
5139 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
5140 if test -n "$with_build_time_tools"; then
5141 for ncn_progname
in ar; do
5142 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5143 echo "configure:5144: checking for ${ncn_progname} in $with_build_time_tools" >&5
5144 if test -x $with_build_time_tools/${ncn_progname}; then
5145 ac_cv_prog_AR_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5146 echo "$ac_t""yes" 1>&6
5149 echo "$ac_t""no" 1>&6
5154 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
5155 for ncn_progname
in ar; do
5156 if test -n "$ncn_target_tool_prefix"; then
5157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5158 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5160 echo "configure:5161: checking for $ac_word" >&5
5161 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 if test -n "$AR_FOR_TARGET"; then
5165 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5167 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5169 for ac_dir
in $ac_dummy; do
5170 test -z "$ac_dir" && ac_dir
=.
5171 if test -f $ac_dir/$ac_word; then
5172 ac_cv_prog_AR_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5179 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5180 if test -n "$AR_FOR_TARGET"; then
5181 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5183 echo "$ac_t""no" 1>&6
5187 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
5188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5189 set dummy
${ncn_progname}; ac_word
=$2
5190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5191 echo "configure:5192: checking for $ac_word" >&5
5192 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 if test -n "$AR_FOR_TARGET"; then
5196 ac_cv_prog_AR_FOR_TARGET
="$AR_FOR_TARGET" # Let the user override the test.
5198 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5200 for ac_dir
in $ac_dummy; do
5201 test -z "$ac_dir" && ac_dir
=.
5202 if test -f $ac_dir/$ac_word; then
5203 ac_cv_prog_AR_FOR_TARGET
="${ncn_progname}"
5210 AR_FOR_TARGET
="$ac_cv_prog_AR_FOR_TARGET"
5211 if test -n "$AR_FOR_TARGET"; then
5212 echo "$ac_t""$AR_FOR_TARGET" 1>&6
5214 echo "$ac_t""no" 1>&6
5218 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
5222 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
5224 if test $build = $target ; then
5227 AR_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5232 AR_FOR_TARGET
=$ac_cv_path_AR_FOR_TARGET
5238 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5239 if test -n "$with_build_time_tools"; then
5240 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
5241 echo "configure:5242: checking for as in $with_build_time_tools" >&5
5242 if test -x $with_build_time_tools/as
; then
5243 AS_FOR_TARGET
=`cd $with_build_time_tools && pwd`/as
5244 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5245 echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
5247 echo "$ac_t""no" 1>&6
5249 elif test $build != $host && test $have_gcc_for_target = yes; then
5250 AS_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=as`
5251 test $AS_FOR_TARGET=as
&& AS_FOR_TARGET
=
5252 ac_cv_path_AS_FOR_TARGET
=$AS_FOR_TARGET
5255 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5256 # Extract the first word of "as", so it can be a program name with args.
5257 set dummy as
; ac_word
=$2
5258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5259 echo "configure:5260: checking for $ac_word" >&5
5260 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 case "$AS_FOR_TARGET" in
5265 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a path.
5268 ac_cv_path_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test with a dos path.
5271 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5272 ac_dummy
="$gcc_cv_tool_dirs"
5273 for ac_dir
in $ac_dummy; do
5274 test -z "$ac_dir" && ac_dir
=.
5275 if test -f $ac_dir/$ac_word; then
5276 ac_cv_path_AS_FOR_TARGET
="$ac_dir/$ac_word"
5284 AS_FOR_TARGET
="$ac_cv_path_AS_FOR_TARGET"
5285 if test -n "$AS_FOR_TARGET"; then
5286 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5288 echo "$ac_t""no" 1>&6
5292 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
5293 if test -n "$with_build_time_tools"; then
5294 for ncn_progname
in as
; do
5295 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5296 echo "configure:5297: checking for ${ncn_progname} in $with_build_time_tools" >&5
5297 if test -x $with_build_time_tools/${ncn_progname}; then
5298 ac_cv_prog_AS_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5299 echo "$ac_t""yes" 1>&6
5302 echo "$ac_t""no" 1>&6
5307 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
5308 for ncn_progname
in as
; do
5309 if test -n "$ncn_target_tool_prefix"; then
5310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5311 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_word" >&5
5314 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 if test -n "$AS_FOR_TARGET"; then
5318 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5320 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5322 for ac_dir
in $ac_dummy; do
5323 test -z "$ac_dir" && ac_dir
=.
5324 if test -f $ac_dir/$ac_word; then
5325 ac_cv_prog_AS_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5332 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5333 if test -n "$AS_FOR_TARGET"; then
5334 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5336 echo "$ac_t""no" 1>&6
5340 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
5341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5342 set dummy
${ncn_progname}; ac_word
=$2
5343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5344 echo "configure:5345: checking for $ac_word" >&5
5345 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 if test -n "$AS_FOR_TARGET"; then
5349 ac_cv_prog_AS_FOR_TARGET
="$AS_FOR_TARGET" # Let the user override the test.
5351 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5353 for ac_dir
in $ac_dummy; do
5354 test -z "$ac_dir" && ac_dir
=.
5355 if test -f $ac_dir/$ac_word; then
5356 ac_cv_prog_AS_FOR_TARGET
="${ncn_progname}"
5363 AS_FOR_TARGET
="$ac_cv_prog_AS_FOR_TARGET"
5364 if test -n "$AS_FOR_TARGET"; then
5365 echo "$ac_t""$AS_FOR_TARGET" 1>&6
5367 echo "$ac_t""no" 1>&6
5371 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
5375 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
5377 if test $build = $target ; then
5380 AS_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5385 AS_FOR_TARGET
=$ac_cv_path_AS_FOR_TARGET
5391 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5392 if test -n "$with_build_time_tools"; then
5393 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
5394 echo "configure:5395: checking for dlltool in $with_build_time_tools" >&5
5395 if test -x $with_build_time_tools/dlltool
; then
5396 DLLTOOL_FOR_TARGET
=`cd $with_build_time_tools && pwd`/dlltool
5397 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5398 echo "$ac_t""$ac_cv_path_DLLTOOL_FOR_TARGET" 1>&6
5400 echo "$ac_t""no" 1>&6
5402 elif test $build != $host && test $have_gcc_for_target = yes; then
5403 DLLTOOL_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=dlltool`
5404 test $DLLTOOL_FOR_TARGET=dlltool
&& DLLTOOL_FOR_TARGET
=
5405 ac_cv_path_DLLTOOL_FOR_TARGET
=$DLLTOOL_FOR_TARGET
5408 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5409 # Extract the first word of "dlltool", so it can be a program name with args.
5410 set dummy dlltool
; ac_word
=$2
5411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5412 echo "configure:5413: checking for $ac_word" >&5
5413 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5416 case "$DLLTOOL_FOR_TARGET" in
5418 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
5421 ac_cv_path_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test with a dos path.
5424 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5425 ac_dummy
="$gcc_cv_tool_dirs"
5426 for ac_dir
in $ac_dummy; do
5427 test -z "$ac_dir" && ac_dir
=.
5428 if test -f $ac_dir/$ac_word; then
5429 ac_cv_path_DLLTOOL_FOR_TARGET
="$ac_dir/$ac_word"
5437 DLLTOOL_FOR_TARGET
="$ac_cv_path_DLLTOOL_FOR_TARGET"
5438 if test -n "$DLLTOOL_FOR_TARGET"; then
5439 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5441 echo "$ac_t""no" 1>&6
5445 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
5446 if test -n "$with_build_time_tools"; then
5447 for ncn_progname
in dlltool
; do
5448 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5449 echo "configure:5450: checking for ${ncn_progname} in $with_build_time_tools" >&5
5450 if test -x $with_build_time_tools/${ncn_progname}; then
5451 ac_cv_prog_DLLTOOL_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5452 echo "$ac_t""yes" 1>&6
5455 echo "$ac_t""no" 1>&6
5460 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
5461 for ncn_progname
in dlltool
; do
5462 if test -n "$ncn_target_tool_prefix"; then
5463 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5464 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5466 echo "configure:5467: checking for $ac_word" >&5
5467 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5470 if test -n "$DLLTOOL_FOR_TARGET"; then
5471 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5473 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5475 for ac_dir
in $ac_dummy; do
5476 test -z "$ac_dir" && ac_dir
=.
5477 if test -f $ac_dir/$ac_word; then
5478 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5485 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5486 if test -n "$DLLTOOL_FOR_TARGET"; then
5487 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5489 echo "$ac_t""no" 1>&6
5493 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
5494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5495 set dummy
${ncn_progname}; ac_word
=$2
5496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_word" >&5
5498 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 if test -n "$DLLTOOL_FOR_TARGET"; then
5502 ac_cv_prog_DLLTOOL_FOR_TARGET
="$DLLTOOL_FOR_TARGET" # Let the user override the test.
5504 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5506 for ac_dir
in $ac_dummy; do
5507 test -z "$ac_dir" && ac_dir
=.
5508 if test -f $ac_dir/$ac_word; then
5509 ac_cv_prog_DLLTOOL_FOR_TARGET
="${ncn_progname}"
5516 DLLTOOL_FOR_TARGET
="$ac_cv_prog_DLLTOOL_FOR_TARGET"
5517 if test -n "$DLLTOOL_FOR_TARGET"; then
5518 echo "$ac_t""$DLLTOOL_FOR_TARGET" 1>&6
5520 echo "$ac_t""no" 1>&6
5524 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
5528 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
5530 if test $build = $target ; then
5531 DLLTOOL_FOR_TARGET
="$2"
5533 DLLTOOL_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5538 DLLTOOL_FOR_TARGET
=$ac_cv_path_DLLTOOL_FOR_TARGET
5544 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5545 if test -n "$with_build_time_tools"; then
5546 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
5547 echo "configure:5548: checking for ld in $with_build_time_tools" >&5
5548 if test -x $with_build_time_tools/ld
; then
5549 LD_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ld
5550 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5551 echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
5553 echo "$ac_t""no" 1>&6
5555 elif test $build != $host && test $have_gcc_for_target = yes; then
5556 LD_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ld`
5557 test $LD_FOR_TARGET=ld
&& LD_FOR_TARGET
=
5558 ac_cv_path_LD_FOR_TARGET
=$LD_FOR_TARGET
5561 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5562 # Extract the first word of "ld", so it can be a program name with args.
5563 set dummy ld
; ac_word
=$2
5564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5565 echo "configure:5566: checking for $ac_word" >&5
5566 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6
5569 case "$LD_FOR_TARGET" in
5571 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a path.
5574 ac_cv_path_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test with a dos path.
5577 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5578 ac_dummy
="$gcc_cv_tool_dirs"
5579 for ac_dir
in $ac_dummy; do
5580 test -z "$ac_dir" && ac_dir
=.
5581 if test -f $ac_dir/$ac_word; then
5582 ac_cv_path_LD_FOR_TARGET
="$ac_dir/$ac_word"
5590 LD_FOR_TARGET
="$ac_cv_path_LD_FOR_TARGET"
5591 if test -n "$LD_FOR_TARGET"; then
5592 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5594 echo "$ac_t""no" 1>&6
5598 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
5599 if test -n "$with_build_time_tools"; then
5600 for ncn_progname
in ld
; do
5601 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5602 echo "configure:5603: checking for ${ncn_progname} in $with_build_time_tools" >&5
5603 if test -x $with_build_time_tools/${ncn_progname}; then
5604 ac_cv_prog_LD_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5605 echo "$ac_t""yes" 1>&6
5608 echo "$ac_t""no" 1>&6
5613 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
5614 for ncn_progname
in ld
; do
5615 if test -n "$ncn_target_tool_prefix"; then
5616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5617 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5619 echo "configure:5620: checking for $ac_word" >&5
5620 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 if test -n "$LD_FOR_TARGET"; then
5624 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5626 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5628 for ac_dir
in $ac_dummy; do
5629 test -z "$ac_dir" && ac_dir
=.
5630 if test -f $ac_dir/$ac_word; then
5631 ac_cv_prog_LD_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5638 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5639 if test -n "$LD_FOR_TARGET"; then
5640 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5642 echo "$ac_t""no" 1>&6
5646 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
5647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5648 set dummy
${ncn_progname}; ac_word
=$2
5649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5650 echo "configure:5651: checking for $ac_word" >&5
5651 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 if test -n "$LD_FOR_TARGET"; then
5655 ac_cv_prog_LD_FOR_TARGET
="$LD_FOR_TARGET" # Let the user override the test.
5657 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5659 for ac_dir
in $ac_dummy; do
5660 test -z "$ac_dir" && ac_dir
=.
5661 if test -f $ac_dir/$ac_word; then
5662 ac_cv_prog_LD_FOR_TARGET
="${ncn_progname}"
5669 LD_FOR_TARGET
="$ac_cv_prog_LD_FOR_TARGET"
5670 if test -n "$LD_FOR_TARGET"; then
5671 echo "$ac_t""$LD_FOR_TARGET" 1>&6
5673 echo "$ac_t""no" 1>&6
5677 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
5681 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
5683 if test $build = $target ; then
5686 LD_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5691 LD_FOR_TARGET
=$ac_cv_path_LD_FOR_TARGET
5697 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5698 if test -n "$with_build_time_tools"; then
5699 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
5700 echo "configure:5701: checking for lipo in $with_build_time_tools" >&5
5701 if test -x $with_build_time_tools/lipo
; then
5702 LIPO_FOR_TARGET
=`cd $with_build_time_tools && pwd`/lipo
5703 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5704 echo "$ac_t""$ac_cv_path_LIPO_FOR_TARGET" 1>&6
5706 echo "$ac_t""no" 1>&6
5708 elif test $build != $host && test $have_gcc_for_target = yes; then
5709 LIPO_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=lipo`
5710 test $LIPO_FOR_TARGET=lipo
&& LIPO_FOR_TARGET
=
5711 ac_cv_path_LIPO_FOR_TARGET
=$LIPO_FOR_TARGET
5714 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5715 # Extract the first word of "lipo", so it can be a program name with args.
5716 set dummy lipo
; ac_word
=$2
5717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5718 echo "configure:5719: checking for $ac_word" >&5
5719 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 case "$LIPO_FOR_TARGET" in
5724 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a path.
5727 ac_cv_path_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test with a dos path.
5730 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5731 ac_dummy
="$gcc_cv_tool_dirs"
5732 for ac_dir
in $ac_dummy; do
5733 test -z "$ac_dir" && ac_dir
=.
5734 if test -f $ac_dir/$ac_word; then
5735 ac_cv_path_LIPO_FOR_TARGET
="$ac_dir/$ac_word"
5743 LIPO_FOR_TARGET
="$ac_cv_path_LIPO_FOR_TARGET"
5744 if test -n "$LIPO_FOR_TARGET"; then
5745 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5747 echo "$ac_t""no" 1>&6
5751 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
5752 if test -n "$with_build_time_tools"; then
5753 for ncn_progname
in lipo
; do
5754 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5755 echo "configure:5756: checking for ${ncn_progname} in $with_build_time_tools" >&5
5756 if test -x $with_build_time_tools/${ncn_progname}; then
5757 ac_cv_prog_LIPO_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5758 echo "$ac_t""yes" 1>&6
5761 echo "$ac_t""no" 1>&6
5766 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
5767 for ncn_progname
in lipo
; do
5768 if test -n "$ncn_target_tool_prefix"; then
5769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5770 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5772 echo "configure:5773: checking for $ac_word" >&5
5773 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5774 echo $ac_n "(cached) $ac_c" 1>&6
5776 if test -n "$LIPO_FOR_TARGET"; then
5777 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5779 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5781 for ac_dir
in $ac_dummy; do
5782 test -z "$ac_dir" && ac_dir
=.
5783 if test -f $ac_dir/$ac_word; then
5784 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5791 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5792 if test -n "$LIPO_FOR_TARGET"; then
5793 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5795 echo "$ac_t""no" 1>&6
5799 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
5800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5801 set dummy
${ncn_progname}; ac_word
=$2
5802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5803 echo "configure:5804: checking for $ac_word" >&5
5804 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5807 if test -n "$LIPO_FOR_TARGET"; then
5808 ac_cv_prog_LIPO_FOR_TARGET
="$LIPO_FOR_TARGET" # Let the user override the test.
5810 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5812 for ac_dir
in $ac_dummy; do
5813 test -z "$ac_dir" && ac_dir
=.
5814 if test -f $ac_dir/$ac_word; then
5815 ac_cv_prog_LIPO_FOR_TARGET
="${ncn_progname}"
5822 LIPO_FOR_TARGET
="$ac_cv_prog_LIPO_FOR_TARGET"
5823 if test -n "$LIPO_FOR_TARGET"; then
5824 echo "$ac_t""$LIPO_FOR_TARGET" 1>&6
5826 echo "$ac_t""no" 1>&6
5830 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
5834 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
5836 if test $build = $target ; then
5837 LIPO_FOR_TARGET
="$2"
5839 LIPO_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5844 LIPO_FOR_TARGET
=$ac_cv_path_LIPO_FOR_TARGET
5850 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5851 if test -n "$with_build_time_tools"; then
5852 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
5853 echo "configure:5854: checking for nm in $with_build_time_tools" >&5
5854 if test -x $with_build_time_tools/nm
; then
5855 NM_FOR_TARGET
=`cd $with_build_time_tools && pwd`/nm
5856 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5857 echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
5859 echo "$ac_t""no" 1>&6
5861 elif test $build != $host && test $have_gcc_for_target = yes; then
5862 NM_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=nm`
5863 test $NM_FOR_TARGET=nm
&& NM_FOR_TARGET
=
5864 ac_cv_path_NM_FOR_TARGET
=$NM_FOR_TARGET
5867 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5868 # Extract the first word of "nm", so it can be a program name with args.
5869 set dummy nm
; ac_word
=$2
5870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5871 echo "configure:5872: checking for $ac_word" >&5
5872 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5875 case "$NM_FOR_TARGET" in
5877 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a path.
5880 ac_cv_path_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test with a dos path.
5883 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5884 ac_dummy
="$gcc_cv_tool_dirs"
5885 for ac_dir
in $ac_dummy; do
5886 test -z "$ac_dir" && ac_dir
=.
5887 if test -f $ac_dir/$ac_word; then
5888 ac_cv_path_NM_FOR_TARGET
="$ac_dir/$ac_word"
5896 NM_FOR_TARGET
="$ac_cv_path_NM_FOR_TARGET"
5897 if test -n "$NM_FOR_TARGET"; then
5898 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5900 echo "$ac_t""no" 1>&6
5904 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
5905 if test -n "$with_build_time_tools"; then
5906 for ncn_progname
in nm
; do
5907 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
5908 echo "configure:5909: checking for ${ncn_progname} in $with_build_time_tools" >&5
5909 if test -x $with_build_time_tools/${ncn_progname}; then
5910 ac_cv_prog_NM_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
5911 echo "$ac_t""yes" 1>&6
5914 echo "$ac_t""no" 1>&6
5919 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
5920 for ncn_progname
in nm
; do
5921 if test -n "$ncn_target_tool_prefix"; then
5922 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5923 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
5924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5925 echo "configure:5926: checking for $ac_word" >&5
5926 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5929 if test -n "$NM_FOR_TARGET"; then
5930 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5932 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5934 for ac_dir
in $ac_dummy; do
5935 test -z "$ac_dir" && ac_dir
=.
5936 if test -f $ac_dir/$ac_word; then
5937 ac_cv_prog_NM_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
5944 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5945 if test -n "$NM_FOR_TARGET"; then
5946 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5948 echo "$ac_t""no" 1>&6
5952 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
5953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5954 set dummy
${ncn_progname}; ac_word
=$2
5955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5956 echo "configure:5957: checking for $ac_word" >&5
5957 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
5958 echo $ac_n "(cached) $ac_c" 1>&6
5960 if test -n "$NM_FOR_TARGET"; then
5961 ac_cv_prog_NM_FOR_TARGET
="$NM_FOR_TARGET" # Let the user override the test.
5963 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5965 for ac_dir
in $ac_dummy; do
5966 test -z "$ac_dir" && ac_dir
=.
5967 if test -f $ac_dir/$ac_word; then
5968 ac_cv_prog_NM_FOR_TARGET
="${ncn_progname}"
5975 NM_FOR_TARGET
="$ac_cv_prog_NM_FOR_TARGET"
5976 if test -n "$NM_FOR_TARGET"; then
5977 echo "$ac_t""$NM_FOR_TARGET" 1>&6
5979 echo "$ac_t""no" 1>&6
5983 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
5987 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
5989 if test $build = $target ; then
5992 NM_FOR_TARGET
="${ncn_target_tool_prefix}$2"
5997 NM_FOR_TARGET
=$ac_cv_path_NM_FOR_TARGET
6003 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6004 if test -n "$with_build_time_tools"; then
6005 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
6006 echo "configure:6007: checking for objdump in $with_build_time_tools" >&5
6007 if test -x $with_build_time_tools/objdump
; then
6008 OBJDUMP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/objdump
6009 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6010 echo "$ac_t""$ac_cv_path_OBJDUMP_FOR_TARGET" 1>&6
6012 echo "$ac_t""no" 1>&6
6014 elif test $build != $host && test $have_gcc_for_target = yes; then
6015 OBJDUMP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=objdump`
6016 test $OBJDUMP_FOR_TARGET=objdump
&& OBJDUMP_FOR_TARGET
=
6017 ac_cv_path_OBJDUMP_FOR_TARGET
=$OBJDUMP_FOR_TARGET
6020 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6021 # Extract the first word of "objdump", so it can be a program name with args.
6022 set dummy objdump
; ac_word
=$2
6023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6024 echo "configure:6025: checking for $ac_word" >&5
6025 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6026 echo $ac_n "(cached) $ac_c" 1>&6
6028 case "$OBJDUMP_FOR_TARGET" in
6030 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
6033 ac_cv_path_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test with a dos path.
6036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6037 ac_dummy
="$gcc_cv_tool_dirs"
6038 for ac_dir
in $ac_dummy; do
6039 test -z "$ac_dir" && ac_dir
=.
6040 if test -f $ac_dir/$ac_word; then
6041 ac_cv_path_OBJDUMP_FOR_TARGET
="$ac_dir/$ac_word"
6049 OBJDUMP_FOR_TARGET
="$ac_cv_path_OBJDUMP_FOR_TARGET"
6050 if test -n "$OBJDUMP_FOR_TARGET"; then
6051 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6053 echo "$ac_t""no" 1>&6
6057 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
6058 if test -n "$with_build_time_tools"; then
6059 for ncn_progname
in objdump
; do
6060 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6061 echo "configure:6062: checking for ${ncn_progname} in $with_build_time_tools" >&5
6062 if test -x $with_build_time_tools/${ncn_progname}; then
6063 ac_cv_prog_OBJDUMP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6064 echo "$ac_t""yes" 1>&6
6067 echo "$ac_t""no" 1>&6
6072 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
6073 for ncn_progname
in objdump
; do
6074 if test -n "$ncn_target_tool_prefix"; then
6075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6076 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6078 echo "configure:6079: checking for $ac_word" >&5
6079 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6082 if test -n "$OBJDUMP_FOR_TARGET"; then
6083 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6087 for ac_dir
in $ac_dummy; do
6088 test -z "$ac_dir" && ac_dir
=.
6089 if test -f $ac_dir/$ac_word; then
6090 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6097 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6098 if test -n "$OBJDUMP_FOR_TARGET"; then
6099 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6101 echo "$ac_t""no" 1>&6
6105 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
6106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6107 set dummy
${ncn_progname}; ac_word
=$2
6108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_word" >&5
6110 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6113 if test -n "$OBJDUMP_FOR_TARGET"; then
6114 ac_cv_prog_OBJDUMP_FOR_TARGET
="$OBJDUMP_FOR_TARGET" # Let the user override the test.
6116 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6118 for ac_dir
in $ac_dummy; do
6119 test -z "$ac_dir" && ac_dir
=.
6120 if test -f $ac_dir/$ac_word; then
6121 ac_cv_prog_OBJDUMP_FOR_TARGET
="${ncn_progname}"
6128 OBJDUMP_FOR_TARGET
="$ac_cv_prog_OBJDUMP_FOR_TARGET"
6129 if test -n "$OBJDUMP_FOR_TARGET"; then
6130 echo "$ac_t""$OBJDUMP_FOR_TARGET" 1>&6
6132 echo "$ac_t""no" 1>&6
6136 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
6140 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
6142 if test $build = $target ; then
6143 OBJDUMP_FOR_TARGET
="$2"
6145 OBJDUMP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6150 OBJDUMP_FOR_TARGET
=$ac_cv_path_OBJDUMP_FOR_TARGET
6156 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6157 if test -n "$with_build_time_tools"; then
6158 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
6159 echo "configure:6160: checking for ranlib in $with_build_time_tools" >&5
6160 if test -x $with_build_time_tools/ranlib
; then
6161 RANLIB_FOR_TARGET
=`cd $with_build_time_tools && pwd`/ranlib
6162 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6163 echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
6165 echo "$ac_t""no" 1>&6
6167 elif test $build != $host && test $have_gcc_for_target = yes; then
6168 RANLIB_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=ranlib`
6169 test $RANLIB_FOR_TARGET=ranlib
&& RANLIB_FOR_TARGET
=
6170 ac_cv_path_RANLIB_FOR_TARGET
=$RANLIB_FOR_TARGET
6173 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6174 # Extract the first word of "ranlib", so it can be a program name with args.
6175 set dummy ranlib
; ac_word
=$2
6176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6177 echo "configure:6178: checking for $ac_word" >&5
6178 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6181 case "$RANLIB_FOR_TARGET" in
6183 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
6186 ac_cv_path_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
6189 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6190 ac_dummy
="$gcc_cv_tool_dirs"
6191 for ac_dir
in $ac_dummy; do
6192 test -z "$ac_dir" && ac_dir
=.
6193 if test -f $ac_dir/$ac_word; then
6194 ac_cv_path_RANLIB_FOR_TARGET
="$ac_dir/$ac_word"
6202 RANLIB_FOR_TARGET
="$ac_cv_path_RANLIB_FOR_TARGET"
6203 if test -n "$RANLIB_FOR_TARGET"; then
6204 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6206 echo "$ac_t""no" 1>&6
6210 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
6211 if test -n "$with_build_time_tools"; then
6212 for ncn_progname
in ranlib
; do
6213 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6214 echo "configure:6215: checking for ${ncn_progname} in $with_build_time_tools" >&5
6215 if test -x $with_build_time_tools/${ncn_progname}; then
6216 ac_cv_prog_RANLIB_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6217 echo "$ac_t""yes" 1>&6
6220 echo "$ac_t""no" 1>&6
6225 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
6226 for ncn_progname
in ranlib
; do
6227 if test -n "$ncn_target_tool_prefix"; then
6228 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6229 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6231 echo "configure:6232: checking for $ac_word" >&5
6232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6235 if test -n "$RANLIB_FOR_TARGET"; then
6236 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6238 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6240 for ac_dir
in $ac_dummy; do
6241 test -z "$ac_dir" && ac_dir
=.
6242 if test -f $ac_dir/$ac_word; then
6243 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6250 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6251 if test -n "$RANLIB_FOR_TARGET"; then
6252 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6254 echo "$ac_t""no" 1>&6
6258 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
6259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6260 set dummy
${ncn_progname}; ac_word
=$2
6261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6262 echo "configure:6263: checking for $ac_word" >&5
6263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
6264 echo $ac_n "(cached) $ac_c" 1>&6
6266 if test -n "$RANLIB_FOR_TARGET"; then
6267 ac_cv_prog_RANLIB_FOR_TARGET
="$RANLIB_FOR_TARGET" # Let the user override the test.
6269 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6271 for ac_dir
in $ac_dummy; do
6272 test -z "$ac_dir" && ac_dir
=.
6273 if test -f $ac_dir/$ac_word; then
6274 ac_cv_prog_RANLIB_FOR_TARGET
="${ncn_progname}"
6281 RANLIB_FOR_TARGET
="$ac_cv_prog_RANLIB_FOR_TARGET"
6282 if test -n "$RANLIB_FOR_TARGET"; then
6283 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
6285 echo "$ac_t""no" 1>&6
6289 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
6293 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
6295 if test $build = $target ; then
6296 RANLIB_FOR_TARGET
="$2"
6298 RANLIB_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6303 RANLIB_FOR_TARGET
=$ac_cv_path_RANLIB_FOR_TARGET
6309 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6310 if test -n "$with_build_time_tools"; then
6311 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
6312 echo "configure:6313: checking for strip in $with_build_time_tools" >&5
6313 if test -x $with_build_time_tools/strip
; then
6314 STRIP_FOR_TARGET
=`cd $with_build_time_tools && pwd`/strip
6315 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6316 echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
6318 echo "$ac_t""no" 1>&6
6320 elif test $build != $host && test $have_gcc_for_target = yes; then
6321 STRIP_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=strip`
6322 test $STRIP_FOR_TARGET=strip
&& STRIP_FOR_TARGET
=
6323 ac_cv_path_STRIP_FOR_TARGET
=$STRIP_FOR_TARGET
6326 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6327 # Extract the first word of "strip", so it can be a program name with args.
6328 set dummy strip
; ac_word
=$2
6329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6330 echo "configure:6331: checking for $ac_word" >&5
6331 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 case "$STRIP_FOR_TARGET" in
6336 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a path.
6339 ac_cv_path_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
6342 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6343 ac_dummy
="$gcc_cv_tool_dirs"
6344 for ac_dir
in $ac_dummy; do
6345 test -z "$ac_dir" && ac_dir
=.
6346 if test -f $ac_dir/$ac_word; then
6347 ac_cv_path_STRIP_FOR_TARGET
="$ac_dir/$ac_word"
6355 STRIP_FOR_TARGET
="$ac_cv_path_STRIP_FOR_TARGET"
6356 if test -n "$STRIP_FOR_TARGET"; then
6357 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6359 echo "$ac_t""no" 1>&6
6363 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
6364 if test -n "$with_build_time_tools"; then
6365 for ncn_progname
in strip
; do
6366 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6367 echo "configure:6368: checking for ${ncn_progname} in $with_build_time_tools" >&5
6368 if test -x $with_build_time_tools/${ncn_progname}; then
6369 ac_cv_prog_STRIP_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6370 echo "$ac_t""yes" 1>&6
6373 echo "$ac_t""no" 1>&6
6378 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
6379 for ncn_progname
in strip
; do
6380 if test -n "$ncn_target_tool_prefix"; then
6381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6382 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6384 echo "configure:6385: checking for $ac_word" >&5
6385 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6388 if test -n "$STRIP_FOR_TARGET"; then
6389 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6391 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6393 for ac_dir
in $ac_dummy; do
6394 test -z "$ac_dir" && ac_dir
=.
6395 if test -f $ac_dir/$ac_word; then
6396 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6403 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6404 if test -n "$STRIP_FOR_TARGET"; then
6405 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6407 echo "$ac_t""no" 1>&6
6411 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
6412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6413 set dummy
${ncn_progname}; ac_word
=$2
6414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_word" >&5
6416 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 if test -n "$STRIP_FOR_TARGET"; then
6420 ac_cv_prog_STRIP_FOR_TARGET
="$STRIP_FOR_TARGET" # Let the user override the test.
6422 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6424 for ac_dir
in $ac_dummy; do
6425 test -z "$ac_dir" && ac_dir
=.
6426 if test -f $ac_dir/$ac_word; then
6427 ac_cv_prog_STRIP_FOR_TARGET
="${ncn_progname}"
6434 STRIP_FOR_TARGET
="$ac_cv_prog_STRIP_FOR_TARGET"
6435 if test -n "$STRIP_FOR_TARGET"; then
6436 echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
6438 echo "$ac_t""no" 1>&6
6442 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
6446 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
6448 if test $build = $target ; then
6449 STRIP_FOR_TARGET
="$2"
6451 STRIP_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6456 STRIP_FOR_TARGET
=$ac_cv_path_STRIP_FOR_TARGET
6462 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6463 if test -n "$with_build_time_tools"; then
6464 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
6465 echo "configure:6466: checking for windres in $with_build_time_tools" >&5
6466 if test -x $with_build_time_tools/windres
; then
6467 WINDRES_FOR_TARGET
=`cd $with_build_time_tools && pwd`/windres
6468 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6469 echo "$ac_t""$ac_cv_path_WINDRES_FOR_TARGET" 1>&6
6471 echo "$ac_t""no" 1>&6
6473 elif test $build != $host && test $have_gcc_for_target = yes; then
6474 WINDRES_FOR_TARGET
=`$GCC_FOR_TARGET --print-prog-name=windres`
6475 test $WINDRES_FOR_TARGET=windres
&& WINDRES_FOR_TARGET
=
6476 ac_cv_path_WINDRES_FOR_TARGET
=$WINDRES_FOR_TARGET
6479 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6480 # Extract the first word of "windres", so it can be a program name with args.
6481 set dummy windres
; ac_word
=$2
6482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6483 echo "configure:6484: checking for $ac_word" >&5
6484 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6487 case "$WINDRES_FOR_TARGET" in
6489 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
6492 ac_cv_path_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test with a dos path.
6495 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6496 ac_dummy
="$gcc_cv_tool_dirs"
6497 for ac_dir
in $ac_dummy; do
6498 test -z "$ac_dir" && ac_dir
=.
6499 if test -f $ac_dir/$ac_word; then
6500 ac_cv_path_WINDRES_FOR_TARGET
="$ac_dir/$ac_word"
6508 WINDRES_FOR_TARGET
="$ac_cv_path_WINDRES_FOR_TARGET"
6509 if test -n "$WINDRES_FOR_TARGET"; then
6510 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6512 echo "$ac_t""no" 1>&6
6516 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
6517 if test -n "$with_build_time_tools"; then
6518 for ncn_progname
in windres
; do
6519 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
6520 echo "configure:6521: checking for ${ncn_progname} in $with_build_time_tools" >&5
6521 if test -x $with_build_time_tools/${ncn_progname}; then
6522 ac_cv_prog_WINDRES_FOR_TARGET
=$with_build_time_tools/${ncn_progname}
6523 echo "$ac_t""yes" 1>&6
6526 echo "$ac_t""no" 1>&6
6531 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
6532 for ncn_progname
in windres
; do
6533 if test -n "$ncn_target_tool_prefix"; then
6534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6535 set dummy
${ncn_target_tool_prefix}${ncn_progname}; ac_word
=$2
6536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6537 echo "configure:6538: checking for $ac_word" >&5
6538 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6541 if test -n "$WINDRES_FOR_TARGET"; then
6542 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6546 for ac_dir
in $ac_dummy; do
6547 test -z "$ac_dir" && ac_dir
=.
6548 if test -f $ac_dir/$ac_word; then
6549 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}${ncn_progname}"
6556 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6557 if test -n "$WINDRES_FOR_TARGET"; then
6558 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6560 echo "$ac_t""no" 1>&6
6564 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
6565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6566 set dummy
${ncn_progname}; ac_word
=$2
6567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6568 echo "configure:6569: checking for $ac_word" >&5
6569 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 if test -n "$WINDRES_FOR_TARGET"; then
6573 ac_cv_prog_WINDRES_FOR_TARGET
="$WINDRES_FOR_TARGET" # Let the user override the test.
6575 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6577 for ac_dir
in $ac_dummy; do
6578 test -z "$ac_dir" && ac_dir
=.
6579 if test -f $ac_dir/$ac_word; then
6580 ac_cv_prog_WINDRES_FOR_TARGET
="${ncn_progname}"
6587 WINDRES_FOR_TARGET
="$ac_cv_prog_WINDRES_FOR_TARGET"
6588 if test -n "$WINDRES_FOR_TARGET"; then
6589 echo "$ac_t""$WINDRES_FOR_TARGET" 1>&6
6591 echo "$ac_t""no" 1>&6
6595 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
6599 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
6601 if test $build = $target ; then
6602 WINDRES_FOR_TARGET
="$2"
6604 WINDRES_FOR_TARGET
="${ncn_target_tool_prefix}$2"
6609 WINDRES_FOR_TARGET
=$ac_cv_path_WINDRES_FOR_TARGET
6613 RAW_CXX_FOR_TARGET
="$CXX_FOR_TARGET"
6615 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
6616 echo "configure:6617: checking where to find the target ar" >&5
6617 if test "x${build}" != "x${host}" ; then
6618 if expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6619 # We already found the complete path
6620 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6622 # Canadian cross, just use what we found
6623 echo "$ac_t""pre-installed" 1>&6
6627 case " ${configdirs} " in
6632 if test $ok = yes; then
6633 # An in-tree tool is available and we can use it
6634 AR_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ar'
6635 echo "$ac_t""just compiled" 1>&6
6636 elif expr "x$AR_FOR_TARGET" : "x/" > /dev
/null
; then
6637 # We already found the complete path
6638 echo "$ac_t""pre-installed in `dirname $AR_FOR_TARGET`" 1>&6
6639 elif test "x$target" = "x$host"; then
6640 # We can use an host tool
6641 AR_FOR_TARGET
='$(AR)'
6642 echo "$ac_t""host tool" 1>&6
6644 # We need a cross tool
6645 echo "$ac_t""pre-installed" 1>&6
6648 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
6649 echo "configure:6650: checking where to find the target as" >&5
6650 if test "x${build}" != "x${host}" ; then
6651 if expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6652 # We already found the complete path
6653 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6655 # Canadian cross, just use what we found
6656 echo "$ac_t""pre-installed" 1>&6
6660 case " ${configdirs} " in
6665 if test $ok = yes; then
6666 # An in-tree tool is available and we can use it
6667 AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gas/as-new'
6668 echo "$ac_t""just compiled" 1>&6
6669 elif expr "x$AS_FOR_TARGET" : "x/" > /dev
/null
; then
6670 # We already found the complete path
6671 echo "$ac_t""pre-installed in `dirname $AS_FOR_TARGET`" 1>&6
6672 elif test "x$target" = "x$host"; then
6673 # We can use an host tool
6674 AS_FOR_TARGET
='$(AS)'
6675 echo "$ac_t""host tool" 1>&6
6677 # We need a cross tool
6678 echo "$ac_t""pre-installed" 1>&6
6681 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
6682 echo "configure:6683: checking where to find the target cc" >&5
6683 if test "x${build}" != "x${host}" ; then
6684 if expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6685 # We already found the complete path
6686 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6688 # Canadian cross, just use what we found
6689 echo "$ac_t""pre-installed" 1>&6
6693 case " ${configdirs} " in
6698 if test $ok = yes; then
6699 # An in-tree tool is available and we can use it
6700 CC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6701 echo "$ac_t""just compiled" 1>&6
6702 elif expr "x$CC_FOR_TARGET" : "x/" > /dev
/null
; then
6703 # We already found the complete path
6704 echo "$ac_t""pre-installed in `dirname $CC_FOR_TARGET`" 1>&6
6705 elif test "x$target" = "x$host"; then
6706 # We can use an host tool
6707 CC_FOR_TARGET
='$(CC)'
6708 echo "$ac_t""host tool" 1>&6
6710 # We need a cross tool
6711 echo "$ac_t""pre-installed" 1>&6
6714 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
6715 echo "configure:6716: checking where to find the target c++" >&5
6716 if test "x${build}" != "x${host}" ; then
6717 if expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6718 # We already found the complete path
6719 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6721 # Canadian cross, just use what we found
6722 echo "$ac_t""pre-installed" 1>&6
6726 case " ${configdirs} " in
6730 case ,${enable_languages}, in
6734 if test $ok = yes; then
6735 # An in-tree tool is available and we can use it
6736 CXX_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `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'
6737 echo "$ac_t""just compiled" 1>&6
6738 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6739 # We already found the complete path
6740 echo "$ac_t""pre-installed in `dirname $CXX_FOR_TARGET`" 1>&6
6741 elif test "x$target" = "x$host"; then
6742 # We can use an host tool
6743 CXX_FOR_TARGET
='$(CXX)'
6744 echo "$ac_t""host tool" 1>&6
6746 # We need a cross tool
6747 echo "$ac_t""pre-installed" 1>&6
6750 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
6751 echo "configure:6752: checking where to find the target c++ for libstdc++" >&5
6752 if test "x${build}" != "x${host}" ; then
6753 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6754 # We already found the complete path
6755 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6757 # Canadian cross, just use what we found
6758 echo "$ac_t""pre-installed" 1>&6
6762 case " ${configdirs} " in
6766 case ,${enable_languages}, in
6770 if test $ok = yes; then
6771 # An in-tree tool is available and we can use it
6772 RAW_CXX_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
6773 echo "$ac_t""just compiled" 1>&6
6774 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev
/null
; then
6775 # We already found the complete path
6776 echo "$ac_t""pre-installed in `dirname $RAW_CXX_FOR_TARGET`" 1>&6
6777 elif test "x$target" = "x$host"; then
6778 # We can use an host tool
6779 RAW_CXX_FOR_TARGET
='$(CXX)'
6780 echo "$ac_t""host tool" 1>&6
6782 # We need a cross tool
6783 echo "$ac_t""pre-installed" 1>&6
6786 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
6787 echo "configure:6788: checking where to find the target dlltool" >&5
6788 if test "x${build}" != "x${host}" ; then
6789 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6790 # We already found the complete path
6791 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6793 # Canadian cross, just use what we found
6794 echo "$ac_t""pre-installed" 1>&6
6798 case " ${configdirs} " in
6803 if test $ok = yes; then
6804 # An in-tree tool is available and we can use it
6805 DLLTOOL_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/dlltool'
6806 echo "$ac_t""just compiled" 1>&6
6807 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev
/null
; then
6808 # We already found the complete path
6809 echo "$ac_t""pre-installed in `dirname $DLLTOOL_FOR_TARGET`" 1>&6
6810 elif test "x$target" = "x$host"; then
6811 # We can use an host tool
6812 DLLTOOL_FOR_TARGET
='$(DLLTOOL)'
6813 echo "$ac_t""host tool" 1>&6
6815 # We need a cross tool
6816 echo "$ac_t""pre-installed" 1>&6
6819 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
6820 echo "configure:6821: checking where to find the target gcc" >&5
6821 if test "x${build}" != "x${host}" ; then
6822 if expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6823 # We already found the complete path
6824 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6826 # Canadian cross, just use what we found
6827 echo "$ac_t""pre-installed" 1>&6
6831 case " ${configdirs} " in
6836 if test $ok = yes; then
6837 # An in-tree tool is available and we can use it
6838 GCC_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
6839 echo "$ac_t""just compiled" 1>&6
6840 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev
/null
; then
6841 # We already found the complete path
6842 echo "$ac_t""pre-installed in `dirname $GCC_FOR_TARGET`" 1>&6
6843 elif test "x$target" = "x$host"; then
6844 # We can use an host tool
6845 GCC_FOR_TARGET
='$()'
6846 echo "$ac_t""host tool" 1>&6
6848 # We need a cross tool
6849 echo "$ac_t""pre-installed" 1>&6
6852 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
6853 echo "configure:6854: checking where to find the target gcj" >&5
6854 if test "x${build}" != "x${host}" ; then
6855 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6856 # We already found the complete path
6857 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6859 # Canadian cross, just use what we found
6860 echo "$ac_t""pre-installed" 1>&6
6864 case " ${configdirs} " in
6868 case ,${enable_languages}, in
6872 if test $ok = yes; then
6873 # An in-tree tool is available and we can use it
6874 GCJ_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
6875 echo "$ac_t""just compiled" 1>&6
6876 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev
/null
; then
6877 # We already found the complete path
6878 echo "$ac_t""pre-installed in `dirname $GCJ_FOR_TARGET`" 1>&6
6879 elif test "x$target" = "x$host"; then
6880 # We can use an host tool
6881 GCJ_FOR_TARGET
='$(GCJ)'
6882 echo "$ac_t""host tool" 1>&6
6884 # We need a cross tool
6885 echo "$ac_t""pre-installed" 1>&6
6888 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
6889 echo "configure:6890: checking where to find the target gfortran" >&5
6890 if test "x${build}" != "x${host}" ; then
6891 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6892 # We already found the complete path
6893 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6895 # Canadian cross, just use what we found
6896 echo "$ac_t""pre-installed" 1>&6
6900 case " ${configdirs} " in
6904 case ,${enable_languages}, in
6908 if test $ok = yes; then
6909 # An in-tree tool is available and we can use it
6910 GFORTRAN_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
6911 echo "$ac_t""just compiled" 1>&6
6912 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev
/null
; then
6913 # We already found the complete path
6914 echo "$ac_t""pre-installed in `dirname $GFORTRAN_FOR_TARGET`" 1>&6
6915 elif test "x$target" = "x$host"; then
6916 # We can use an host tool
6917 GFORTRAN_FOR_TARGET
='$(GFORTRAN)'
6918 echo "$ac_t""host tool" 1>&6
6920 # We need a cross tool
6921 echo "$ac_t""pre-installed" 1>&6
6924 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
6925 echo "configure:6926: checking where to find the target ld" >&5
6926 if test "x${build}" != "x${host}" ; then
6927 if expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6928 # We already found the complete path
6929 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6931 # Canadian cross, just use what we found
6932 echo "$ac_t""pre-installed" 1>&6
6936 case " ${configdirs} " in
6941 if test $ok = yes; then
6942 # An in-tree tool is available and we can use it
6943 LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/ld/ld-new'
6944 echo "$ac_t""just compiled" 1>&6
6945 elif expr "x$LD_FOR_TARGET" : "x/" > /dev
/null
; then
6946 # We already found the complete path
6947 echo "$ac_t""pre-installed in `dirname $LD_FOR_TARGET`" 1>&6
6948 elif test "x$target" = "x$host"; then
6949 # We can use an host tool
6950 LD_FOR_TARGET
='$(LD)'
6951 echo "$ac_t""host tool" 1>&6
6953 # We need a cross tool
6954 echo "$ac_t""pre-installed" 1>&6
6957 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
6958 echo "configure:6959: checking where to find the target lipo" >&5
6959 if test "x${build}" != "x${host}" ; then
6960 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
6961 # We already found the complete path
6962 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6964 # Canadian cross, just use what we found
6965 echo "$ac_t""pre-installed" 1>&6
6968 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev
/null
; then
6969 # We already found the complete path
6970 echo "$ac_t""pre-installed in `dirname $LIPO_FOR_TARGET`" 1>&6
6971 elif test "x$target" = "x$host"; then
6972 # We can use an host tool
6973 LIPO_FOR_TARGET
='$(LIPO)'
6974 echo "$ac_t""host tool" 1>&6
6976 # We need a cross tool
6977 echo "$ac_t""pre-installed" 1>&6
6980 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
6981 echo "configure:6982: checking where to find the target nm" >&5
6982 if test "x${build}" != "x${host}" ; then
6983 if expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
6984 # We already found the complete path
6985 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
6987 # Canadian cross, just use what we found
6988 echo "$ac_t""pre-installed" 1>&6
6992 case " ${configdirs} " in
6997 if test $ok = yes; then
6998 # An in-tree tool is available and we can use it
6999 NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/nm-new'
7000 echo "$ac_t""just compiled" 1>&6
7001 elif expr "x$NM_FOR_TARGET" : "x/" > /dev
/null
; then
7002 # We already found the complete path
7003 echo "$ac_t""pre-installed in `dirname $NM_FOR_TARGET`" 1>&6
7004 elif test "x$target" = "x$host"; then
7005 # We can use an host tool
7006 NM_FOR_TARGET
='$(NM)'
7007 echo "$ac_t""host tool" 1>&6
7009 # We need a cross tool
7010 echo "$ac_t""pre-installed" 1>&6
7013 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
7014 echo "configure:7015: checking where to find the target objdump" >&5
7015 if test "x${build}" != "x${host}" ; then
7016 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7017 # We already found the complete path
7018 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7020 # Canadian cross, just use what we found
7021 echo "$ac_t""pre-installed" 1>&6
7025 case " ${configdirs} " in
7030 if test $ok = yes; then
7031 # An in-tree tool is available and we can use it
7032 OBJDUMP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/objdump'
7033 echo "$ac_t""just compiled" 1>&6
7034 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev
/null
; then
7035 # We already found the complete path
7036 echo "$ac_t""pre-installed in `dirname $OBJDUMP_FOR_TARGET`" 1>&6
7037 elif test "x$target" = "x$host"; then
7038 # We can use an host tool
7039 OBJDUMP_FOR_TARGET
='$(OBJDUMP)'
7040 echo "$ac_t""host tool" 1>&6
7042 # We need a cross tool
7043 echo "$ac_t""pre-installed" 1>&6
7046 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
7047 echo "configure:7048: checking where to find the target ranlib" >&5
7048 if test "x${build}" != "x${host}" ; then
7049 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7050 # We already found the complete path
7051 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7053 # Canadian cross, just use what we found
7054 echo "$ac_t""pre-installed" 1>&6
7058 case " ${configdirs} " in
7063 if test $ok = yes; then
7064 # An in-tree tool is available and we can use it
7065 RANLIB_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/ranlib'
7066 echo "$ac_t""just compiled" 1>&6
7067 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev
/null
; then
7068 # We already found the complete path
7069 echo "$ac_t""pre-installed in `dirname $RANLIB_FOR_TARGET`" 1>&6
7070 elif test "x$target" = "x$host"; then
7071 # We can use an host tool
7072 RANLIB_FOR_TARGET
='$(RANLIB)'
7073 echo "$ac_t""host tool" 1>&6
7075 # We need a cross tool
7076 echo "$ac_t""pre-installed" 1>&6
7079 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
7080 echo "configure:7081: checking where to find the target strip" >&5
7081 if test "x${build}" != "x${host}" ; then
7082 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7083 # We already found the complete path
7084 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7086 # Canadian cross, just use what we found
7087 echo "$ac_t""pre-installed" 1>&6
7091 case " ${configdirs} " in
7096 if test $ok = yes; then
7097 # An in-tree tool is available and we can use it
7098 STRIP_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/strip'
7099 echo "$ac_t""just compiled" 1>&6
7100 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev
/null
; then
7101 # We already found the complete path
7102 echo "$ac_t""pre-installed in `dirname $STRIP_FOR_TARGET`" 1>&6
7103 elif test "x$target" = "x$host"; then
7104 # We can use an host tool
7105 STRIP_FOR_TARGET
='$(STRIP)'
7106 echo "$ac_t""host tool" 1>&6
7108 # We need a cross tool
7109 echo "$ac_t""pre-installed" 1>&6
7112 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
7113 echo "configure:7114: checking where to find the target windres" >&5
7114 if test "x${build}" != "x${host}" ; then
7115 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7116 # We already found the complete path
7117 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7119 # Canadian cross, just use what we found
7120 echo "$ac_t""pre-installed" 1>&6
7124 case " ${configdirs} " in
7129 if test $ok = yes; then
7130 # An in-tree tool is available and we can use it
7131 WINDRES_FOR_TARGET
='$$r/$(HOST_SUBDIR)/binutils/windres'
7132 echo "$ac_t""just compiled" 1>&6
7133 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev
/null
; then
7134 # We already found the complete path
7135 echo "$ac_t""pre-installed in `dirname $WINDRES_FOR_TARGET`" 1>&6
7136 elif test "x$target" = "x$host"; then
7137 # We can use an host tool
7138 WINDRES_FOR_TARGET
='$(WINDRES)'
7139 echo "$ac_t""host tool" 1>&6
7141 # We need a cross tool
7142 echo "$ac_t""pre-installed" 1>&6
7149 # Certain tools may need extra flags.
7150 AR_FOR_TARGET
=${AR_FOR_TARGET}${extra_arflags_for_target}
7151 RANLIB_FOR_TARGET
=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
7152 NM_FOR_TARGET
=${NM_FOR_TARGET}${extra_nmflags_for_target}
7154 # When building target libraries, except in a Canadian cross, we use
7155 # the same toolchain as the compiler we just built.
7156 COMPILER_AS_FOR_TARGET
='$(AS_FOR_TARGET)'
7157 COMPILER_LD_FOR_TARGET
='$(LD_FOR_TARGET)'
7158 COMPILER_NM_FOR_TARGET
='$(NM_FOR_TARGET)'
7159 if test $host = $build; then
7160 case " $configdirs " in
7162 COMPILER_AS_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/as'
7163 COMPILER_LD_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
7164 COMPILER_NM_FOR_TARGET
='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
7173 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
7174 echo "configure:7175: checking whether to enable maintainer-specific portions of Makefiles" >&5
7175 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7176 if test "${enable_maintainer_mode+set}" = set; then
7177 enableval
="$enable_maintainer_mode"
7178 USE_MAINTAINER_MODE
=$enableval
7180 USE_MAINTAINER_MODE
=no
7183 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
7186 if test "$USE_MAINTAINER_MODE" = yes; then
7187 MAINTAINER_MODE_TRUE
=
7188 MAINTAINER_MODE_FALSE
='#'
7190 MAINTAINER_MODE_TRUE
='#'
7191 MAINTAINER_MODE_FALSE
=
7193 MAINT
=$MAINTAINER_MODE_TRUE
7195 # ---------------------
7196 # GCC bootstrap support
7197 # ---------------------
7199 # Stage specific cflags for build.
7204 yes) stage1_cflags
="-g -Wa,-J" ;;
7205 *) stage1_cflags
="-g -J" ;;
7208 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
7209 # sources; use -no-cpp-precomp to get to GNU cpp.
7210 # Apple's GCC has bugs in designated initializer handling, so disable
7212 stage1_cflags
="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
7217 # Enable -Werror in bootstrap stage2 and later.
7218 # Change the default to "no" on release branches.
7219 # Check whether --enable-werror or --disable-werror was given.
7220 if test "${enable_werror+set}" = set; then
7221 enableval
="$enable_werror"
7227 case ${enable_werror} in
7228 yes) stage2_werror_flag
="--enable-werror-always" ;;
7229 *) stage2_werror_flag
="" ;;
7234 cat > confcache
<<\EOF
7235 # This file is a shell script that caches the results of configure
7236 # tests run on this system so they can be shared between configure
7237 # scripts and configure runs. It is not useful on other systems.
7238 # If it contains results you don't want to keep, you may remove or edit it.
7240 # By default, configure uses ./config.cache as the cache file,
7241 # creating it if it does not exist already. You can give configure
7242 # the --cache-file=FILE option to use a different cache file; that is
7243 # what configure does when it calls configure scripts in
7244 # subdirectories, so they share the cache.
7245 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7246 # config.status only pays attention to the cache file if you give it the
7247 # --recheck option to rerun configure.
7250 # The following way of writing the cache mishandles newlines in values,
7251 # but we know of no workaround that is simple, portable, and efficient.
7252 # So, don't put newlines in cache variables' values.
7253 # Ultrix sh set writes to stderr and can't be redirected directly,
7254 # and sets the high bit in the cache file unless we assign to the vars.
7256 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7258 # `set' does not quote correctly, so add quotes (double-quote substitution
7259 # turns \\\\ into \\, and sed turns \\ into \).
7261 -e "s/'/'\\\\''/g" \
7262 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7265 # `set' quotes correctly as required by POSIX, so do not add quotes.
7266 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7269 if cmp -s $cache_file confcache
; then
7272 if test -w $cache_file; then
7273 echo "updating cache $cache_file"
7274 cat confcache
> $cache_file
7276 echo "not updating unwritable cache $cache_file"
7281 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7283 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7284 # Let make expand exec_prefix.
7285 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7287 # Any assignment to VPATH causes Sun make to only execute
7288 # the first set of double-colon rules, so remove it if not needed.
7289 # If there is a colon in the path, we need to keep it.
7290 if test "x$srcdir" = x.
; then
7291 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7294 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7296 # Transform confdefs.h into DEFS.
7297 # Protect against shell expansion while executing Makefile rules.
7298 # Protect against Makefile macro expansion.
7299 cat > conftest.defs
<<\EOF
7300 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
7301 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
7306 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
7310 # Without the "./", some shells look in PATH for config.status.
7311 : ${CONFIG_STATUS=./config.status}
7313 echo creating $CONFIG_STATUS
7314 rm -f $CONFIG_STATUS
7315 cat > $CONFIG_STATUS <<EOF
7317 # Generated automatically by configure.
7318 # Run this file to recreate the current configuration.
7319 # This directory was configured as follows,
7320 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
7322 # $0 $ac_configure_args
7324 # Compiler output produced by configure, useful for debugging
7325 # configure, is in ./config.log if it exists.
7327 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7330 case "\$ac_option" in
7331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7332 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7333 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7334 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7335 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7337 -help | --help | --hel | --he | --h)
7338 echo "\$ac_cs_usage"; exit 0 ;;
7339 *) echo "\$ac_cs_usage"; exit 1 ;;
7343 ac_given_srcdir=$srcdir
7344 ac_given_INSTALL="$INSTALL"
7346 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7348 cat >> $CONFIG_STATUS <<EOF
7350 # Protect against being on the right side of a sed subst in config.status.
7351 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7352 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7356 s%@CFLAGS@%$CFLAGS%g
7357 s%@CPPFLAGS@%$CPPFLAGS%g
7358 s%@CXXFLAGS@%$CXXFLAGS%g
7359 s%@FFLAGS@%$FFLAGS%g
7361 s%@LDFLAGS@%$LDFLAGS%g
7363 s%@exec_prefix@%$exec_prefix%g
7364 s%@prefix@%$prefix%g
7365 s%@program_transform_name@%$program_transform_name%g
7366 s%@bindir@%$bindir%g
7367 s%@sbindir@%$sbindir%g
7368 s%@libexecdir@%$libexecdir%g
7369 s%@datadir@%$datadir%g
7370 s%@sysconfdir@%$sysconfdir%g
7371 s%@sharedstatedir@%$sharedstatedir%g
7372 s%@localstatedir@%$localstatedir%g
7373 s%@libdir@%$libdir%g
7374 s%@includedir@%$includedir%g
7375 s%@oldincludedir@%$oldincludedir%g
7376 s%@infodir@%$infodir%g
7377 s%@mandir@%$mandir%g
7379 s%@host_alias@%$host_alias%g
7380 s%@host_cpu@%$host_cpu%g
7381 s%@host_vendor@%$host_vendor%g
7382 s%@host_os@%$host_os%g
7383 s%@target@%$target%g
7384 s%@target_alias@%$target_alias%g
7385 s%@target_cpu@%$target_cpu%g
7386 s%@target_vendor@%$target_vendor%g
7387 s%@target_os@%$target_os%g
7389 s%@build_alias@%$build_alias%g
7390 s%@build_cpu@%$build_cpu%g
7391 s%@build_vendor@%$build_vendor%g
7392 s%@build_os@%$build_os%g
7393 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7394 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7395 s%@INSTALL_DATA@%$INSTALL_DATA%g
7398 s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g
7399 s%@build_subdir@%$build_subdir%g
7400 s%@host_subdir@%$host_subdir%g
7401 s%@target_subdir@%$target_subdir%g
7403 s%@GNATBIND@%$GNATBIND%g
7404 s%@do_compare@%$do_compare%g
7405 s%@gmplibs@%$gmplibs%g
7406 s%@gmpinc@%$gmpinc%g
7407 s%@stage1_languages@%$stage1_languages%g
7408 s%@SYSROOT_CFLAGS_FOR_TARGET@%$SYSROOT_CFLAGS_FOR_TARGET%g
7409 /@serialization_dependencies@/r $serialization_dependencies
7410 s%@serialization_dependencies@%%g
7411 /@host_makefile_frag@/r $host_makefile_frag
7412 s%@host_makefile_frag@%%g
7413 /@target_makefile_frag@/r $target_makefile_frag
7414 s%@target_makefile_frag@%%g
7415 /@alphaieee_frag@/r $alphaieee_frag
7416 s%@alphaieee_frag@%%g
7417 /@ospace_frag@/r $ospace_frag
7419 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
7420 s%@tooldir@%$tooldir%g
7421 s%@build_tooldir@%$build_tooldir%g
7422 s%@CONFIGURE_GDB_TK@%$CONFIGURE_GDB_TK%g
7423 s%@GDB_TK@%$GDB_TK%g
7424 s%@INSTALL_GDB_TK@%$INSTALL_GDB_TK%g
7425 s%@build_configargs@%$build_configargs%g
7426 s%@build_configdirs@%$build_configdirs%g
7427 s%@host_configargs@%$host_configargs%g
7428 s%@configdirs@%$configdirs%g
7429 s%@target_configargs@%$target_configargs%g
7430 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7431 s%@config_shell@%$config_shell%g
7437 s%@MAKEINFO@%$MAKEINFO%g
7438 s%@EXPECT@%$EXPECT%g
7439 s%@RUNTEST@%$RUNTEST%g
7442 s%@DLLTOOL@%$DLLTOOL%g
7446 s%@RANLIB@%$RANLIB%g
7448 s%@WINDRES@%$WINDRES%g
7449 s%@OBJCOPY@%$OBJCOPY%g
7450 s%@OBJDUMP@%$OBJDUMP%g
7452 s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g
7453 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
7454 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
7455 s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g
7456 s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g
7457 s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g
7458 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
7459 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
7460 s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g
7461 s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
7462 s%@LIPO_FOR_TARGET@%$LIPO_FOR_TARGET%g
7463 s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
7464 s%@OBJDUMP_FOR_TARGET@%$OBJDUMP_FOR_TARGET%g
7465 s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
7466 s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
7467 s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g
7468 s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g
7469 s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g
7470 s%@COMPILER_AS_FOR_TARGET@%$COMPILER_AS_FOR_TARGET%g
7471 s%@COMPILER_LD_FOR_TARGET@%$COMPILER_LD_FOR_TARGET%g
7472 s%@COMPILER_NM_FOR_TARGET@%$COMPILER_NM_FOR_TARGET%g
7473 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7474 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7476 s%@stage1_cflags@%$stage1_cflags%g
7477 s%@stage2_werror_flag@%$stage2_werror_flag%g
7482 cat >> $CONFIG_STATUS <<\EOF
7484 # Split the substitutions into bite-sized pieces for seds with
7485 # small command number limits, like on Digital OSF/1 and HP-UX.
7486 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7487 ac_file=1 # Number of current file.
7488 ac_beg=1 # First line for current file.
7489 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7492 while $ac_more_lines; do
7493 if test $ac_beg -gt 1; then
7494 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7496 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7498 if test ! -s conftest.s$ac_file; then
7500 rm -f conftest.s$ac_file
7502 if test -z "$ac_sed_cmds"; then
7503 ac_sed_cmds="sed -f conftest.s$ac_file"
7505 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7507 ac_file=`expr $ac_file + 1`
7509 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7512 if test -z "$ac_sed_cmds"; then
7517 cat >> $CONFIG_STATUS <<EOF
7519 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
7521 cat >> $CONFIG_STATUS <<\EOF
7522 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7525 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
7526 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
7527 *) ac_file_in="${ac_file}.in" ;;
7530 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7532 # Remove last slash and all that follows it. Not all systems have dirname.
7533 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7535 # The file is in a subdirectory.
7536 test ! -d "$ac_dir" && mkdir "$ac_dir"
7537 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
7538 # A "../" for each directory in $ac_dir_suffix.
7539 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
7541 ac_dir_suffix= ac_dots=
7544 case "$ac_given_srcdir" in
7546 if test -z "$ac_dots"; then top_srcdir=.
7547 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
7548 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7550 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7551 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7554 case "$ac_given_INSTALL" in
7555 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7556 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7559 echo creating "$ac_file"
7561 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
7563 *Makefile*) ac_comsub="1i\\
7564 # $configure_input" ;;
7568 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7570 s%@configure_input@%$configure_input%g
7571 s%@srcdir@%$srcdir%g
7572 s%@top_srcdir@%$top_srcdir%g
7573 s%@INSTALL@%$INSTALL%g
7574 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7579 cat >> $CONFIG_STATUS <<EOF
7582 cat >> $CONFIG_STATUS <<\EOF
7586 chmod +x $CONFIG_STATUS
7587 rm -fr confdefs* $ac_clean_files
7588 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1